/* glowstick.css: rendered glow stick (img/o-glowstick.webp, built in Blender like the other desk props) lying between the
   ruler and the coffee mug. Lit only in night mode (html.dark): CSS emissive layers masked with the sprite, bloom, a pool of
   light on the desk, and a UV-ink message that fades with the stick's distance (--n set by glowstick.js). Only opacity/transform animate. */
.obj.o-glowstick .nt { opacity: 0; visibility: hidden; transition: opacity 1s ease-in-out; }
.obj.o-glowstick .nt.ok { visibility: visible; }
html.dark .obj.o-glowstick .nt.ok { opacity: 1; }
.gs-glow, .gs-bloom, .gs-halo, .gs-core { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease-in-out;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; }
/* saturated lime toward the edges; ends (caps) darker and less lit; gradient runs along the tube (sprite is tilted ~-17deg) */
.gs-glow { background: linear-gradient(17deg, #2f6a08 0, #3f8a0c 40%, #58bc0e 44%, #74d814 48%, #74d814 52%, #58bc0e 56%, #3f8a0c 60%, #2f6a08 100%); }
/* near-white core along the centre line: the sprite blurred so only the middle of the tube stays solid */
.gs-core { background: linear-gradient(17deg, transparent 0, transparent 44%, #dcf9a0 48%, #f0ffc8 50%, #dcf9a0 52%, transparent 56%, transparent 100%); filter: blur(2px); }
.gs-halo { background: #7fe818; filter: blur(3px); }
.gs-bloom { background: #6fe010; }
.gs-bloom.b1 { filter: blur(7px); }
.gs-bloom.b2 { filter: blur(20px); }
html.dark .gs-glow { opacity: 1; }
html.dark .gs-core { opacity: .85; }
html.dark .gs-halo { opacity: .75; }
/* a light source casts no dark drop shadow: fade it by night (the lime spill is the pool + blooms) */
html.dark .obj.o-glowstick .sh { opacity: .06 !important; transition: opacity 1s ease-in-out; }
html.dark .gs-bloom.b1 { opacity: .85; }
html.dark .gs-bloom.b2 { opacity: .95; }
.gs-pool { position: absolute; left: 50%; top: 50%; width: 640px; height: 400px; margin: -200px 0 0 -320px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(165, 255, 80, .30), rgba(120, 235, 60, .15) 45%, rgba(90, 210, 50, 0));
  transition: opacity 1s ease-in-out; z-index: -1; }
html.dark .gs-pool { opacity: 1; }
html.dark .gs-glow, html.dark .gs-bloom.b2, html.dark .gs-pool { animation: gs-breathe 6s ease-in-out 1s infinite; }
@keyframes gs-breathe { 0%, 100% { filter: none; opacity: 1; } 50% { opacity: .9; } }
html.dark .gs-bloom.b2 { animation-name: gs-breathe2; }
@keyframes gs-breathe2 { 0%, 100% { opacity: .95; } 50% { opacity: .8; } }
@media (prefers-reduced-motion: reduce) { html.dark .gs-glow, html.dark .gs-bloom.b2, html.dark .gs-pool { animation: none; } }
/* light wash on the other desk objects (glowstick.js): lime, screen-blended, clipped to each sprite's alpha, centred on the stick */
.gs-wash { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; mix-blend-mode: screen; --wo: 0;
  -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat;
  background: radial-gradient(circle 330px at var(--gx, 50%) var(--gy, 50%), rgba(170, 255, 70, .50), rgba(120, 240, 50, .24) 38%, rgba(100, 220, 40, 0)); }
html.dark .gs-wash { opacity: var(--wo); }
/* UV ink: painted on the desk, invisible by day, fluoresces violet/blue by night, brighter the nearer the stick */
.gs-ink { position: absolute; z-index: 1; pointer-events: none; margin: 0; width: 230px; transform: translate(-50%, -50%) rotate(-4deg);
  font-family: 'Caveat', cursive; font-weight: 500; font-size: 26px; line-height: 1.1; letter-spacing: 0; text-align: center;
  color: #c3adff; opacity: 0; transition: opacity 1s ease-in-out; }
.gs-ink .w { display: inline-block; white-space: pre; }
.gs-ink .c { display: inline-block; white-space: pre; text-shadow: 0 0 1.5px rgba(200, 175, 255, .9), 0 0 6px rgba(130, 95, 255, .8), 0 0 14px rgba(70, 120, 255, .5); }
html.dark .gs-ink { opacity: 1; }

/* phones: no blur/bloom layers (each is a full-size composited layer) and no breathing */
html.m .gs-bloom, html.m .gs-halo, html.m .gs-wash { display: none; }
html.m.dark .gs-glow, html.m.dark .gs-pool { animation: none; }
