/* The custom cursor, the flashlight, and the Void's hidden drawings (brief 4.3 / 6.5, master 1.3). */

/* the system pointer is hidden only after the custom one has proven it works (see js/cursor.js) */
html.cursor-on, html.cursor-on * { cursor: none !important; }

#phd-cursor { position: fixed; left: 0; top: 0; z-index: 2147483647; pointer-events: none; will-change: transform; }
/* the visible light, centered on the pointer. It rides the cursor's transform, so it has no lag. Only a flat gradient on a
   fixed-size layer (no blur, no blend modes), kept faint so it never hides text. V3's chosen style "d": 150px, soft, even. */
#phd-cursor .disc {
  position: absolute; left: calc(var(--light-r, 150px) * -1); top: calc(var(--light-r, 150px) * -1);
  width: calc(var(--light-r, 150px) * 2); height: calc(var(--light-r, 150px) * 2); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle closest-side, rgba(245, 243, 238, .09) 0%, rgba(245, 243, 238, .048) 55%, rgba(245, 243, 238, 0) 100%);
}
body:not(.home) #phd-cursor .disc { opacity: .35; }                 /* internal pages: the light never washes out reading text */
#phd-cursor .shape { position: absolute; display: none; }
#phd-cursor .arrow { left: 0; top: 0; }                              /* click point = the tip, at the origin */
#phd-cursor .circle { left: -14px; top: -14px; }                     /* click point = the circle's center */
#phd-cursor[data-shape="arrow"] .arrow { display: block; }
#phd-cursor[data-shape="circle"] .circle { display: block; }
#phd-cursor .f { display: none; }
#phd-cursor[data-f="0"] .f0, #phd-cursor[data-f="1"] .f1, #phd-cursor[data-f="2"] .f2 { display: inline; }

/* the Void: a page-long layer BEHIND everything. contain:strict means nothing in here can ever change the page's layout. */
#void { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
#void .mark { position: absolute; opacity: 0; pointer-events: none; }
.mark img { width: 100%; height: auto; display: block; }
.mark.invert img { filter: invert(1); }                                /* Jihbert is drawn in black ink: shown white on the Void (boil filters in js/void.js out-rank this) */

/* ?dev=1: show every drawing's box faintly so placement can be checked without the flashlight */
html[data-dev="1"] #void .mark { opacity: .35 !important; outline: 1px dashed #666; }
