/* Atmosphere: lightweight transforms and opacity, no full-screen filters. */
@keyframes lunar-twinkle{0%,100%{opacity:.42}50%{opacity:.82}}
@keyframes lunar-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes lunar-reveal{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@keyframes lunar-gleam{0%{transform:translateX(-140%) skewX(-18deg);opacity:0}25%{opacity:.65}100%{transform:translateX(240%) skewX(-18deg);opacity:0}}
@keyframes lunar-steam{0%{transform:translate(-50%,8px) scale(.65);opacity:0}25%{opacity:.65}85%{opacity:.18}100%{transform:translate(calc(-50% + var(--drift)), -95px) scale(1.65);opacity:0}}
@keyframes lunar-spark{0%{transform:translate(0,0) scale(.4);opacity:0}25%{opacity:.9}100%{transform:translate(var(--dx),var(--dy)) scale(.15);opacity:0}}
@keyframes lunar-ripple{0%{transform:scale(.75);opacity:0}35%{opacity:.6}100%{transform:scale(1.4);opacity:0}}
@keyframes lunar-hit{0%,100%{opacity:0}20%{opacity:.72}65%{opacity:.18}}
@keyframes lunar-shake{0%,100%{transform:translateX(0)}20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}
@keyframes lunar-seal{0%{transform:scale(.86);opacity:0}65%{transform:scale(1.035);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes lunar-orbit{to{transform:rotate(360deg)}}
.sky{animation:lunar-twinkle 7s ease-in-out infinite alternate}
.hero-art,.game-art img{animation:lunar-breathe 14s ease-in-out infinite;transform-origin:50% 40%}
.moon:after{animation:lunar-orbit 45s linear infinite}
.hero .eyebrow,.hero h1,.hero .lead,.hero .ornament{animation:lunar-reveal .6s ease both}
.hero h1{animation-delay:.09s}.hero .lead{animation-delay:.18s}
#home .game{animation:lunar-reveal .55s ease both}#home .game:nth-child(2){animation-delay:.1s}
.primary,.secondary,.ticket,.action{transition:transform .16s ease,background .2s ease,border-color .2s ease,opacity .2s ease}
button:active:not(:disabled){transform:scale(.975)}
.primary:focus-visible,.ticket:focus-visible,.action:focus-visible{outline:2px solid #d5eaff;outline-offset:3px}
.admin-shell[open]>.sol-admin{animation:lunar-reveal .24s ease both}
.witch-reveal{animation:lunar-reveal .42s ease both}
.witch-round{position:relative;text-align:center;padding:22px 18px;isolation:isolate}
.witch-round .eyebrow{letter-spacing:.18em}
.witch-round.round-fresh{animation:lunar-seal .48s ease both}
.witch-round.round-fresh:after{content:"";position:absolute;inset:0;top:0;width:38%;height:100%;background:linear-gradient(90deg,transparent,#c4dfff55,transparent);animation:lunar-gleam 1s ease-out both;pointer-events:none}
.witch-round-progress{height:3px;border-radius:4px;background:#23334a;margin:15px 0 0;overflow:hidden}
.witch-round-progress>i{display:block;height:100%;background:#c9e0ff;transition:width .5s ease}
.witch-content .ticket{position:relative;overflow:hidden;isolation:isolate}
.witch-content .ticket:not(:disabled):after{content:"";position:absolute;inset:0;width:40%;background:linear-gradient(90deg,transparent,#d5eaff33,transparent);transform:translateX(-150%);pointer-events:none}
.witch-content .ticket.ticket-pending:after{animation:lunar-gleam .7s ease-out infinite}
.witch-content .ticket.ticket-pending{border-color:#e4f0ff;background:#344d71}
.witch-ticket-seal{padding:18px;text-align:center;border:1px solid #a6c2e8;border-radius:9px;background:radial-gradient(ellipse at center,#334968,#0c1726 76%);margin-top:15px}
.witch-ticket-seal>strong{display:block;font:600 52px/1.1 var(--title);color:#e4edff}
.witch-ticket-seal.seal-fresh{animation:lunar-seal .65s ease both}
.witch-ticket-seal.seal-fresh+.recipe{animation:lunar-reveal .6s .12s ease both}
.witch-scene{position:relative;isolation:isolate;overflow:hidden;margin:0 -18px 16px;height:clamp(210px,60vw,320px);background:radial-gradient(ellipse at 50% 60%,#3b5f9077,transparent 65%),#0a1422;--magic:#b5d8ff}
.witch-scene>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 45%}
.witch-scene>img[hidden]{display:none}
.witch-scene:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 62%,#09111c9c 100%);pointer-events:none}
.witch-scene-glow{position:absolute;left:15%;right:15%;top:38%;height:36%;background:radial-gradient(ellipse,var(--magic),transparent 65%);opacity:.2;mix-blend-mode:screen;animation:lunar-breathe 3s ease-in-out infinite alternate;pointer-events:none}
.witch-scene[data-danger="true"]{--magic:#f8a276}
.witch-scene[data-mood="help"]{--magic:#9ef5dc}.witch-scene[data-mood="prank"]{--magic:#d9a1f7}
.witch-steam,.witch-spark,.witch-ripple,.witch-flash{position:absolute;pointer-events:none}
.witch-steam{left:var(--x);top:49%;width:75px;height:85px;background:radial-gradient(ellipse,var(--magic),transparent 68%);mix-blend-mode:screen;animation:lunar-steam var(--duration) var(--delay) ease-out infinite}
.witch-spark{left:var(--x);top:var(--y);height:3px;width:3px;border-radius:50%;background:#edf6ff;box-shadow:0 0 5px var(--magic);animation:lunar-spark var(--duration) var(--delay) ease-out infinite}
.witch-ripple{left:25%;right:25%;top:42%;height:13%;border:1px solid var(--magic);border-radius:50%;animation:lunar-ripple 3.2s ease-out infinite}
.witch-flash{inset:0;background:radial-gradient(ellipse at 50% 50%,var(--magic),transparent 72%);opacity:0;mix-blend-mode:screen;z-index:3}
.witch-scene.hit .witch-flash{animation:lunar-hit .85s ease-out}
.witch-scene.burst .witch-flash{background:radial-gradient(ellipse,#fff1ce,#ee855a80,transparent 78%);animation:lunar-hit 1s ease-out}
.witch-scene.burst>img{animation:lunar-shake .42s ease-in-out}
.witch-scene[data-dead="true"] .witch-steam,.witch-scene[data-dead="true"] .witch-ripple,.witch-scene[data-dead="true"] .witch-spark{display:none}
.witch-scene[data-dead="true"] .witch-scene-glow{opacity:.06;animation:none}
.witch-score{font-variant-numeric:tabular-nums;min-height:1.15em}
.witch-score.score-fresh{animation:lunar-seal .55s ease both}
.witch-meter{font-variant-numeric:tabular-nums}
.witch-meter .track{height:8px}.witch-meter .fill{transform-origin:left center;transition:transform .55s cubic-bezier(.2,.8,.2,1);width:100%}
.witch-meter.meter-danger p{color:#ffd0ad}.witch-meter.meter-danger .track{outline:1px solid #e7a08088}
.witch-familiar{position:relative;display:grid;grid-template-columns:45px minmax(0,1fr);gap:10px;align-items:center;padding:13px;border:1px solid #a4d8c688;border-radius:8px;margin:12px 0;background:#18382f75}
.witch-familiar.prank{border-color:#bf97dd88;background:#38274488}
.witch-familiar.familiar-fresh{animation:lunar-seal .55s ease both}
.witch-familiar .familiar-sigil{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid #c0def299;background:#182b40;color:#e3f2ff;font-size:23px}
.witch-familiar strong{display:block;color:#f0f8ff}.witch-familiar small{display:block;color:#d0dbe9}
.witch-wait{display:flex;align-items:center;gap:12px}.witch-wait:before{content:"";width:13px;height:13px;flex:none;border:1px solid #a6bdd8;border-top-color:transparent;border-radius:50%;animation:lunar-orbit 1.8s linear infinite}
.witch-victory{position:relative;isolation:isolate;overflow:hidden}.witch-victory .victory-crown{font-size:44px;color:#e9dfbc;margin:0 0 8px;display:block}.witch-victory.victory-fresh{animation:lunar-seal .75s ease both}
.witch-victory .victory-stars{position:absolute;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(ellipse at 50% 35%,#a7c7ff30,transparent 65%)}
.witch-victory .witch-spark{box-shadow:0 0 5px #f4e3b1;background:#f4e3b1}
@media(prefers-reduced-motion:reduce){.sky,.hero-art,.game-art img,.moon:after,.hero .eyebrow,.hero h1,.hero .lead,.hero .ornament,#home .game,.admin-shell[open]>.sol-admin,.witch-reveal,.witch-round.round-fresh,.witch-round.round-fresh:after,.witch-ticket-seal,.witch-ticket-seal+.recipe,.witch-score,.witch-familiar,.witch-victory,.witch-wait:before,.witch-scene-glow,.witch-steam,.witch-spark,.witch-ripple,.witch-flash{animation:none!important}.witch-steam,.witch-spark,.witch-ripple{display:none!important}.witch-meter .fill{transition:none!important}}

/* Compact stat vocabulary shared across recipes, effects and controls. */
.stat-effects{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:6px;margin:6px 0;font-size:12px;line-height:1.35;color:#dce8f9}
.stat-chip{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid #809aba45;background:#0b152688;border-radius:6px;font-variant-numeric:tabular-nums;white-space:nowrap}
.stat-slot,.stat-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;vertical-align:middle;font-size:17px}
.stat-icon img{width:100%;height:100%;object-fit:contain;display:block}
.witch-meter>p{display:flex;align-items:center;gap:7px}.witch-meter .stat-label{flex:1;font-size:13px}.witch-meter>p>span:last-child{font-weight:600}
.witch-round .notice>small{display:block;color:#aebbd0}.witch-round .notice{margin:8px 0;padding:7px 10px}.witch-round .notice .stat-effects{margin:3px 0}
.witch-content .action{min-height:84px;font-size:13px}.witch-content .action .stat-effects{gap:3px;margin:7px 0 0}.witch-content .action .stat-chip{padding:2px 3px;gap:2px;font-size:11px}.witch-content .action .stat-slot,.witch-content .action .stat-icon{width:17px;height:17px;font-size:13px}
.witch-familiar .stat-effects{justify-content:flex-start}.recipe-targets{justify-content:flex-start}

.stat-icon video,.stat-icon .stat-vector,.stat-icon .stat-vector svg{display:block;width:100%;height:100%;object-fit:contain;overflow:hidden}.stat-icon{position:relative}.stat-icon video{pointer-events:none}
