/* Spelling Wolf: wolf-and-moon theme (2026-11-12, branch admin/wolf-moon). Loaded after the app's own <style>.
   Palette: night indigo, moonlight, warm lantern. Visual only: no layout logic, no saves. Spec: docs/wolf-moon-theme/THEME.md */
:root{
  --bg:#0b0c26; --bg2:#15163a;
  --panel:rgba(22,22,58,.76); --panel2:rgba(30,30,72,.86);
  --line:rgba(204,212,255,.20); --line2:rgba(204,212,255,.42);
  --cyan:#c9d6ff; --cyan-dim:#8a96d6; --mag:#c7a4ff; --gold:#ffcf6e;
  --green:#8ff0b8; --red:#ff9a8f; --ink:#f4f1ff; --ink-dim:#b4b5da;
  --lantern:#ffc45e; --moon:#fff4dc;
  --font-hd:'Fredoka','Nunito','Avenir Next',system-ui,sans-serif;
}
body{background:linear-gradient(180deg,#090a22 0%,#13143a 55%,#2a2556 100%) fixed var(--bg)}
/* the night sky: a moon glow up top right, dusk at the horizon */
#nebula{opacity:1;background:
  radial-gradient(38% 30% at 86% 10%,rgba(255,236,196,.16),transparent 70%),
  radial-gradient(70% 40% at 50% 100%,rgba(120,90,190,.28),transparent 72%),
  radial-gradient(45% 35% at 8% 18%,rgba(70,80,170,.20),transparent 70%)}
#wmMoon{position:fixed;z-index:0;pointer-events:none;top:max(26px,5vh);right:max(18px,7vw);width:clamp(76px,13vw,150px);aspect-ratio:1;border-radius:50%;
  background:radial-gradient(circle at 38% 36%,#fffcf3 0%,#f6ecd4 58%,#ddd0b2 100%);
  box-shadow:0 0 50px 14px rgba(255,236,196,.20),0 0 160px 60px rgba(180,190,255,.10)}
#wmMoon::before{content:"";position:absolute;inset:0;border-radius:50%;
  background:radial-gradient(circle at 34% 40%,rgba(160,148,124,.30) 0 9%,transparent 10%),
   radial-gradient(circle at 62% 64%,rgba(160,148,124,.24) 0 7%,transparent 8%),
   radial-gradient(circle at 50% 78%,rgba(160,148,124,.18) 0 5%,transparent 6%),
   radial-gradient(circle at 68% 30%,rgba(160,148,124,.16) 0 4%,transparent 5%)}
#wolfScape{position:fixed;z-index:1;left:0;right:0;bottom:0;height:clamp(110px,22vh,230px);pointer-events:none}
#wolfScape svg{display:block;width:100%;height:100%}
#wmBgArt{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;pointer-events:none}
html.wm-bgart #wmMoon,html.wm-bgart #wolfScape,html.wm-bgart #nebula{display:none}
#stars{z-index:0}

/* wordmark: moonlight letters, lantern subline */
.logo{font-family:'Fredoka',var(--font-hd);font-weight:700;letter-spacing:.03em;
  background:linear-gradient(180deg,#fffaf0 0%,#ece2ff 52%,#a9b0ec 100%);-webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:0 0 34px rgba(255,236,196,.28)}
.logo-sub{color:var(--lantern);letter-spacing:.36em}
.hd{letter-spacing:.05em}

/* buttons: moonlit glass; the main action is a warm lantern */
.btn{background:linear-gradient(180deg,rgba(150,150,232,.26),rgba(70,70,160,.30));border-color:var(--line2)}
.btn:hover{box-shadow:0 6px 22px rgba(255,207,110,.22)}
.btn.primary{background:linear-gradient(180deg,#ffdc95,#f0a640);color:#2a1700;border-color:rgba(255,232,180,.95)}
.btn.ghost{background:transparent}
.home-menu{background:rgba(16,16,44,.86)}

/* the mascot: a clever young wolf (code-drawn stand-in until the Gemini art lands) */
.wm-mascot{display:inline-block;line-height:0}
.wm-mascot svg,.wm-mascot img{width:100%;height:100%;display:block;object-fit:contain}
.title-ship.wm-mascot{width:128px;height:128px;font-size:0;filter:drop-shadow(0 8px 24px rgba(255,236,196,.18))}
.home-mast{display:flex;align-items:center;justify-content:center;gap:12px}
.home-mast .wm-mini{width:clamp(44px,9vw,62px);height:clamp(44px,9vw,62px);flex:none;animation:floaty 5s ease-in-out infinite}
.home-mast .wm-words{text-align:left}
.sum-hero{position:relative;overflow:hidden}
.sum-hero::before{content:"";position:absolute;left:50%;top:-70px;width:220px;height:220px;margin-left:-110px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,240,205,.30),rgba(200,210,255,.08) 55%,transparent 70%);pointer-events:none}
.sum-hero .wm-cheer{position:relative;width:96px;height:96px;margin:-6px auto 6px;display:block;animation:wmHop 1.6s ease-in-out 2}
.sum-hero .big{color:var(--moon);text-shadow:0 0 22px rgba(255,220,150,.35)}
@keyframes wmHop{0%,100%{transform:translateY(0)}30%{transform:translateY(-12px)}55%{transform:translateY(0)}70%{transform:translateY(-5px)}}

/* moonrise meter (was a warp bar): moonlit pips fill warm */
.warp i{border-radius:7px;background:rgba(220,226,255,.08);border-color:rgba(220,226,255,.10)}
.warp i.f{background:linear-gradient(180deg,#fff6dc,#ffcf6e);box-shadow:0 0 10px rgba(255,207,110,.55)}
.warp-label{color:var(--cyan)}

/* the end-of-round moment: the moon swells and the wolf howls. Motes rise like lantern sparks. */
#warpFx{background:radial-gradient(circle at 50% 42%,rgba(255,236,196,.20) 0%,rgba(13,14,40,.55) 45%,rgba(8,8,26,.92) 100%)}
#warpFx::before{content:"";position:absolute;left:50%;top:40%;width:min(46vmin,320px);aspect-ratio:1;z-index:0;border-radius:50%;transform:translate(-50%,-50%);
  background:radial-gradient(circle at 38% 36%,#fffcf3,#f4e9cf 60%,#d9cbaa);box-shadow:0 0 80px 30px rgba(255,236,196,.30),0 0 220px 90px rgba(180,190,255,.16);
  animation:wmMoonUp .9s ease-out both}
#warpFx::after{content:"";position:absolute;left:50%;top:calc(40% + min(23vmin,160px) * .88);width:min(20vmin,140px);aspect-ratio:88/108;transform:translate(-58%,-100%);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 88 108'%3E%3Cpath d='M8 100C2 96 0 88 6 84C12 80 20 84 26 90C24 80 26 68 32 58C36 50 40 44 44 38C46 32 46 26 46 20L44 6L50 14L54 4L56 14C62 12 70 6 76 0L81 7C75 13 69 16 62 20C60 24 61 30 64 36C60 40 66 44 62 48C64 58 62 70 60 80L62 100L55 100L54 84C50 88 46 90 42 92C42 96 44 99 46 100Z' fill='%230b0c24' stroke='%23e6ecff' stroke-opacity='.75' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") center bottom/contain no-repeat;animation:wmWolfUp .9s ease-out .25s both}
#warpFx i{top:auto;bottom:-6%;width:5px;height:5px;border-radius:50%;background:#ffd58a;box-shadow:0 0 10px 3px rgba(255,200,110,.6);animation:wmMote 1.4s ease-out infinite}
@keyframes wmMoonUp{from{transform:translate(-50%,-20%) scale(.7);opacity:0}to{transform:translate(-50%,-50%) scale(1);opacity:1}}
@keyframes wmWolfUp{from{transform:translate(-58%,-60%);opacity:0}to{transform:translate(-58%,-100%);opacity:1}}
@keyframes wmMote{from{transform:translateY(0);opacity:0}20%{opacity:1}to{transform:translateY(-80vh);opacity:0}}
@media (prefers-reduced-motion:reduce){#warpFx::before,#warpFx::after,#warpFx i,.sum-hero .wm-cheer,.home-mast .wm-mini{animation:none}}

/* mode cards keep their easy / medium / hard colours, re-tuned for the night palette */
.mode-card:hover{box-shadow:0 12px 30px rgba(255,236,196,.12)}
@media(max-width:640px){#wmMoon{top:max(64px,9vh)}}

/* ---- round 2 (seat review 2026-11-12): the wolf is a real presence ---- */
/* Home hero band: a moonlit stage, the wolf peeking over the ridge on the left, the word on the right, sharp */
.wl-band{height:230px;border-color:rgba(255,207,110,.40);box-shadow:0 0 30px rgba(255,236,196,.08);
  background:radial-gradient(40% 70% at 84% 22%,rgba(255,236,196,.18),transparent 70%),radial-gradient(circle at 22% 18%,#fff4dc 0 1px,transparent 2px),radial-gradient(circle at 48% 12%,#fff 0 1px,transparent 2px),radial-gradient(circle at 64% 34%,#c9d6ff 0 1px,transparent 2px),linear-gradient(180deg,#121442 0%,#22235c 62%,#3a3272 100%)}
.wl-band::before{opacity:.45}
.wl-band .wb-kicker{color:var(--lantern)}
.wm-band-moon{position:absolute;z-index:1;right:18px;top:16px;width:74px;height:74px;border-radius:50%;
  background:radial-gradient(circle at 38% 36%,#fffcf3,#f4e9cf 60%,#d9cbaa);box-shadow:0 0 34px 10px rgba(255,236,196,.22)}
.wm-band-back,.wm-band-front{position:absolute;left:0;right:0;bottom:0;height:64px;z-index:1;pointer-events:none}
.wm-band-front{z-index:3;height:46px}
.wm-band-back svg,.wm-band-front svg{display:block;width:100%;height:100%}
.wl-band .wm-bandwolf{position:absolute;z-index:2;left:22px;bottom:14px;width:150px;height:150px;animation:floaty 6s ease-in-out infinite}
.wl-band .wm-bandwolf.art{bottom:0;width:170px;height:190px;animation:none}
.wl-band .wm-bandwolf.art~.wm-band-front{display:none}
.wl-band .wb-entry{z-index:4;left:calc(50% + 84px);width:min(calc(100% - 210px),420px);filter:none!important}
.wl-band .wb-entry .wb-def{color:#fff8e6}
@media(max-width:640px){
  .wl-band{height:196px}
  .wm-band-moon{width:48px;height:48px;right:12px;top:12px}
  .wl-band .wm-bandwolf{left:6px;bottom:10px;width:104px;height:104px}
  .wl-band .wm-bandwolf.art{width:118px;height:132px}
  .wl-band .wb-entry{left:calc(50% + 52px);width:calc(100% - 124px);padding:4px 2px}
}
/* stand-in head: smirk at rest, open happy mouth when cheering */
.wm-mascot .wm-open{display:none}
.wm-mascot.cheer .wm-open{display:inline}.wm-mascot.cheer .wm-smirk{display:none}
/* round wolf: top-right corner of the stage, never over the word or the input */
.stage .wm-round{position:absolute;top:6px;right:8px;width:58px;height:58px;z-index:3;pointer-events:none;transform-origin:50% 100%;transition:transform .25s ease}
.stage .wm-round .wm-cheer-img{display:none}
.stage .wm-round.art-cheer.cheer img:not(.wm-cheer-img){display:none}.stage .wm-round.art-cheer.cheer .wm-cheer-img{display:block}
.stage .wm-round.watch{transform:translateY(2px) scale(1.04)}
.stage .wm-round.cheer{animation:wmCheer 1.1s ease-out}
.stage .wm-round.oops{animation:wmOops 1.2s ease-in-out}
.stage .wm-round::after{content:"";position:absolute;inset:-10px;border-radius:50%;background:radial-gradient(circle,rgba(255,207,110,.45),transparent 65%);opacity:0;pointer-events:none}
.stage .wm-round.cheer::after{animation:wmGlow 1.1s ease-out}
@keyframes wmCheer{0%{transform:none}25%{transform:translateY(-14px) scale(1.12)}45%{transform:none}60%{transform:translateY(-6px)}100%{transform:none}}
@keyframes wmOops{0%,100%{transform:none}30%,70%{transform:rotate(-8deg)}}
@keyframes wmGlow{0%{opacity:0}25%{opacity:1}100%{opacity:0}}
@media(max-width:640px){.stage .wm-round{width:44px;height:44px;top:4px;right:6px}}
@media (prefers-reduced-motion:reduce){.wl-band .wm-bandwolf,.stage .wm-round{animation:none!important}}
/* one moon at a time: Home has its own moon in the hero band */
body:has(#scrHome.on) #wmMoon{display:none}
/* the word never shrinks to an unreadable speck while it flies in */
.wl-band .wb-entry{transform:translate(-50%,-50%) translate3d(var(--x,0px),var(--y,0px),0) scale(max(.62,var(--s,1))) rotate(var(--r,0deg))}

/* ---- round 3 (2026-11-12): the Gemini art is in ---- */
/* page background art: a soft veil keeps text readable, the canvas stars only add a little twinkle */
html.wm-bgart #nebula{display:block;opacity:1;background:
  radial-gradient(30% 22% at 84% 9%,rgba(8,8,30,.30),transparent 70%),
  linear-gradient(180deg,rgba(8,8,30,.34) 0%,rgba(8,8,30,.16) 45%,rgba(8,8,30,.40) 100%)}
html.wm-bgart #stars{opacity:.45}
/* Home band over the painted sky: a lighter glass so the real moon and sky show through */
html.wm-bgart .wl-band{background:linear-gradient(180deg,rgba(14,15,48,.50),rgba(26,24,70,.62));backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
html.wm-bgart .wm-band-moon{display:none}
/* real wolf art sizes (the art is cropped tight, 315x400 / 360x400) */
.title-ship.wm-mascot.art{width:150px;height:190px}
.home-mast .wm-mini.art{width:clamp(46px,9vw,64px);height:clamp(58px,11vw,80px)}
.wl-band .wm-bandwolf.art{left:26px;bottom:4px;width:150px;height:200px;animation:floaty 7s ease-in-out infinite;filter:drop-shadow(0 6px 14px rgba(0,0,0,.45))}
.sum-hero .wm-cheer.art{width:130px;height:144px}
.stage .wm-round.art{width:64px;height:80px;top:2px}
@media(max-width:640px){.wl-band .wm-bandwolf.art{left:6px;width:102px;height:136px}.stage .wm-round.art{width:46px;height:58px}}
/* the word always reads: full opacity for most of its flight, a quick crossfade at the ends, a soft dark plate behind */
.wl-band .wb-entry{opacity:var(--o,0);transition:opacity .35s ease;
  background:radial-gradient(closest-side,rgba(10,10,34,.62),rgba(10,10,34,.35) 60%,transparent);border-radius:40%}
/* round end: the cheering wolf joins the moon and the howl */
html.wm-cheer-art #warpFx{background:
  url("art/wolf-moon/wolf-cheer.webp") right max(4vw,12px) bottom 2vh/auto min(38vh,300px) no-repeat,
  radial-gradient(circle at 50% 42%,rgba(255,236,196,.20) 0%,rgba(13,14,40,.55) 45%,rgba(8,8,26,.92) 100%)}
