/* Spooky Pals · glow.css — Ghosties that glow in the dark (Brillo 2.0: a full light jar, see glow.js) and the veiled
 * secret friend. The look is phosphor, like glow-in-the-dark stickers: a soft green-aqua light that seems to come
 * from the Ghostie itself (a bright rim + a halo + a little pool of light), while the place around it dims a little.
 * No frames, no breathing: phosphor light just stays. Tokens (named by job):
 *   --gl-core  the hottest light, almost white   --gl-phos  phosphor green (~520 nm)   --gl-aqua  the aqua tail (~490 nm)
 *   --gl-dim   how much the scene darkens around a glowing Ghostie */
:root{--gl-core:#eafff4;--gl-phos:#8cffc9;--gl-aqua:#45e3c2;--gl-dim:.62;
  --gl-halo:drop-shadow(0 0 1.5px #e6fff3) drop-shadow(0 0 7px #7dffc4b8) drop-shadow(0 0 18px #2fe0b366)}

/* ---------- cards: the scene dims, the Ghostie lights it ---------- */
.character.gl-glow .character-art.card-scene::before{filter:brightness(var(--gl-dim)) saturate(.8)}
.character.gl-glow .character-art img{filter:var(--gl-halo)}
/* glow.js adds .gl-lume: ::before darkens only the edges (the pastel cards too), ::after is the light it gives off */
.gl-lume{position:absolute;inset:0;z-index:2;pointer-events:none}
.gl-lume::before,.gl-lume::after{content:'';position:absolute;inset:0}
.gl-lume::before{background:radial-gradient(75% 70% at 50% 60%,#0a141800 45%,#0a1418 100%);opacity:.38;mix-blend-mode:multiply}
.gl-lume::after{background:radial-gradient(40% 36% at 50% 58%,#8cffc947,#45e3c214 60%,#45e3c200 100%),radial-gradient(34% 9% at 50% calc(100% - var(--card-floor,17px)),#8cffc966,#45e3c200);mix-blend-mode:screen}
.character.gl-glow .character-art.card-scene::after{background:radial-gradient(closest-side,#06030e8c,#06030e33 55%,transparent 100%)}

/* ---------- games shelf tile ---------- */
.gsh-tile.gl-glow .gsh-scene{filter:brightness(var(--gl-dim)) saturate(.8)}
.gsh-tile.gl-glow .gsh-cut{filter:var(--gl-halo)}
.gsh-tile.gl-glow .gsh-frame::before{content:'';position:absolute;left:6%;right:6%;bottom:0;height:62%;z-index:1;pointer-events:none;
  background:radial-gradient(50% 58% at 50% 62%,#8cffc94d,#45e3c21a 60%,#45e3c200),radial-gradient(42% 12% at 50% 94%,#8cffc973,#45e3c200);mix-blend-mode:screen}

/* ---------- family photo: the street dims (album.js .ga-night), each glowing Ghostie gives off light ---------- */
.ga-night{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,#040a1473 0,#050c164d 55%,#03070e66 100%);opacity:0;transition:opacity .9s cubic-bezier(.23,1,.32,1)}
.gl-night>.ga-night{opacity:1}
.ga-pal.gl-glow.is-in .ga-pal-color{filter:var(--gl-halo)}
.ga-pal.gl-glow.is-in::before{background:radial-gradient(ellipse at 50% 70%,#8cffc95c 0,#45e3c224 46%,#45e3c200 70%)}
/* the inner light: the Ghostie's own shape, washed with phosphor (album.js .ga-pal-phos, masked like the gold foil) */
.ga-pal.gl-glow.is-in .ga-pal-phos{display:block}
/* golden sticker + glow: the gold rim stays, the halo turns phosphor */
.ga-pal.gl-glow.is-in.is-shiny .ga-pal-color{filter:drop-shadow(1.3px 0 0 #f2c14e) drop-shadow(-1.3px 0 0 #e7b23a) drop-shadow(0 1.3px 0 #c98f1c) drop-shadow(0 -1.3px 0 #ffe9a3) drop-shadow(0 0 9px #7dffc4c4) drop-shadow(0 0 18px #2fe0b359)}

/* Secret friend: veiled tile at the end of the shelf */
.gl-veil,.gsh-frame.gl-veil{display:grid;place-items:center;background:radial-gradient(120% 90% at 50% 30%,#3d2f6e,#1d1736 70%)}
.gl-veil-art{width:82%;height:82%;overflow:visible}
.gl-secret-tile .gsh-frame{box-shadow:0 0 0 2px #8f7bd0,0 12px 20px -14px rgba(0,0,0,.8)}
.gl-secret-tile.is-awake .gsh-frame{box-shadow:0 0 0 2px #d9ccff,0 0 24px 2px #a88cffcc}
@media (prefers-reduced-motion:no-preference){
  .gl-veil-eye{animation:gl-blink 5.5s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 50%}
  .gl-veil-spark{animation:gl-twinkle 2.8s ease-in-out infinite;transform-box:fill-box;transform-origin:50% 50%}
  .gl-veil-spark.gl-s2{animation-delay:.9s}.gl-veil-spark.gl-s3{animation-delay:1.7s}
}
@keyframes gl-blink{0%,92%,100%{transform:scaleY(1)}95%{transform:scaleY(.1)}}
@keyframes gl-twinkle{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.1)}}

/* The small sky dialog */
.gl-dialog{max-width:420px;width:calc(100% - 32px);max-height:94dvh;border:0;border-radius:24px;padding:0;background:transparent;overflow:auto}
.gl-dialog::backdrop{background:#120d22c4;backdrop-filter:blur(6px)}
.gl-card{position:relative;padding:22px 20px 20px;border-radius:24px;text-align:center;color:#f3eeff;background:radial-gradient(130% 80% at 50% 0%,#3f3172,#1b1533 72%);box-shadow:0 0 0 1px #8f7bd066,0 24px 60px -20px #000}
.gl-close{position:absolute;top:8px;right:8px;width:48px;height:48px;display:grid;place-items:center;border:0;border-radius:50%;background:#ffffff14;color:#f3eeff}
.gl-close:focus-visible{outline:3px solid #d9ccff;outline-offset:2px}
.gl-veil-big{width:132px;height:132px;margin:4px auto 10px;border-radius:50%;box-shadow:0 0 0 2px #8f7bd0,0 0 40px -6px #a88cffaa}
.gl-card.is-awake .gl-veil-big{box-shadow:0 0 0 2px #e4d9ff,0 0 60px 4px #b9a2ffdd}
.gl-title{margin:0 0 8px;font:700 24px/1.15 var(--display,system-ui,sans-serif);letter-spacing:-.4px;color:#fff;text-wrap:balance}
.gl-text{margin:0 auto 12px;max-width:32ch;font-size:15px;line-height:1.5;color:#ddd3f7;text-wrap:balance}
.gl-sky{display:block;width:100%;height:auto;margin:4px 0}
.gl-star{fill:#5a4c8a}
.gl-star.is-charging{fill:#8cffc9}
.gl-star.is-lit{fill:var(--gl-core);filter:drop-shadow(0 0 4px #8cffc9) drop-shadow(0 0 9px #45e3c2)}
.gl-count{margin:4px 0 0;font-weight:800;font-size:14px;letter-spacing:.3px;color:#cbb8ff}
@media (forced-colors:active){.character.gl-glow .character-art img,.gsh-tile.gl-glow .gsh-cut,.ga-pal.gl-glow.is-in .ga-pal-color{filter:none}.gl-lume{display:none}}
