:root {
  --ink: #fff6e8;
  --night: #170f2e;
  --panel: rgba(23, 15, 46, 0.88);
  --violet: #9b6bff;
  --sun: #ffb35c;
  --pink: #ff5d8f;
  --line: #3e2f6b;
  --t0: #d9d4e8; --t1: #7cc7f2; --t2: #8fdc6a; --t3: #f6d365; --t4: #f59e5b; --t5: #ff4f6d; --miss: #6b6386;
  --pixel: 'Pixelify Sans', ui-monospace, monospace;
  --mark: 'Silkscreen', 'Pixelify Sans', ui-monospace, monospace;
  --mono: 'VT323', ui-monospace, monospace;
  --dim: #cbbcf5;
  --glow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; position: fixed; inset: 0; overflow: hidden; overscroll-behavior: none; background: var(--night); color: var(--ink); font-family: var(--mono); font-size: 20px; -webkit-tap-highlight-color: transparent; }
canvas#scene { position: fixed; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

.hud { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: max(10px, env(safe-area-inset-top)) 12px 8px; z-index: 5; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-run { display: flex; align-items: center; gap: 12px; }
.hud-right { display: flex; gap: 8px; margin-left: auto; }
.logo-sm { font-family: var(--pixel); font-weight: 700; letter-spacing: 2px; background: var(--panel); padding: 6px 10px; border: 2px solid var(--line); }
.pill { background: var(--panel); border: 2px solid var(--line); padding: 4px 10px; font-family: var(--pixel); }
.pill b { color: var(--sun); }
.icon { background: var(--panel); border: 2px solid var(--line); width: 40px; height: 36px; }

.picks { display: flex; gap: 4px; list-style: none; margin: 0; padding: 6px 8px; background: var(--panel); border: 2px solid var(--line); }
.picks li { width: 14px; height: 14px; margin: 1px 2px 3px; border: 2px solid var(--ink); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); opacity: 0.45; }
.picks li.now { opacity: 1; animation: bob 0.8s ease-in-out infinite alternate; }
.picks li[data-t] { opacity: 1; border-color: transparent; }
@keyframes bob { to { transform: rotate(-45deg) translate(-2px, 2px); } }

.zone-tag { position: fixed; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 4; background: var(--panel); border: 2px solid var(--ink); padding: 6px 12px; display: grid; line-height: 1; }
.zone-tag small { color: var(--sun); letter-spacing: 2px; }
.zone-tag b { font-family: var(--pixel); font-size: 22px; letter-spacing: 1px; margin: 4px 0; }
.zone-tag i { font-style: normal; color: var(--dim); }
.zone-tag.flash { animation: flash 0.9s; }
@keyframes flash { 30% { border-color: var(--sun); transform: scale(1.06); } }

main { position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 70px 14px 90px; z-index: 3; pointer-events: none; }
.screen { pointer-events: auto; width: min(760px, calc(100vw - 48px)); }
.home { text-align: center; display: grid; gap: 16px; justify-items: center; width: min(1280px, 96vw); align-self: start; margin-top: 7vh; }
.title { font-family: var(--mark); font-weight: 700; font-size: clamp(36px, 10.6vw, 148px); line-height: 1; margin: 0; letter-spacing: 0.05em; white-space: nowrap; color: var(--ink); text-shadow: -0.025em 0 0 var(--pink), 0.025em 0 0 #7cc7f2, 0 0.06em 0 #170f2e; }
.sub { margin: 0; font-family: var(--mark); font-weight: 700; letter-spacing: 0.28em; color: #fff6e8; font-size: clamp(13px, 1.7vw, 22px); background: rgba(23, 15, 46, 0.82); padding: 6px 14px 4px; }
.tag { margin: 0; color: #fff6e8; font-size: clamp(18px, 2.1vw, 28px); letter-spacing: 0.06em; background: rgba(23, 15, 46, 0.82); padding: 4px 14px 2px; }
.home .foot { color: #fff6e8; text-shadow: 0 2px 0 #170f2e, 0 0 8px rgba(23, 15, 46, 0.95); }
.home .btn.primary { width: min(620px, 92vw); min-width: 0; padding: 18px 24px 20px; font-size: clamp(18px, 2.2vw, 28px); letter-spacing: 0.18em; }
.home .row { width: min(620px, 92vw); }
.home .row .btn { flex: 1; }
.home-status { background: var(--panel); border: 2px solid var(--sun); padding: 6px 12px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.foot { color: var(--dim); letter-spacing: 1px; margin: 4px 0 0; }
.crowd { position: fixed; z-index: 4; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; color: rgba(255, 246, 232, 0.45); font-size: 15px; letter-spacing: 0.16em; text-shadow: 0 1px 0 #170f2e; pointer-events: none; white-space: nowrap; }

.btn { font-family: var(--pixel); font-weight: 700; letter-spacing: 2px; padding: 12px 20px; border: 3px solid var(--night); box-shadow: 4px 4px 0 var(--night); transition: transform 0.06s; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--night); }
.btn.primary { background: var(--sun); color: var(--night); font-size: 24px; min-width: 260px; }
.btn.ghost { background: var(--panel); border-color: var(--ink); color: var(--ink); }
.btn.sm { font-size: 18px; min-width: 0; padding: 10px 16px; }
.btn.fly { background: var(--pink); color: var(--night); white-space: nowrap; }

.card { background: var(--panel); border: 3px solid var(--ink); box-shadow: 6px 6px 0 rgba(0,0,0,0.45); padding: 16px; }
.meta { display: flex; align-items: center; gap: 10px; color: var(--dim); letter-spacing: 1px; }
.thermo { flex: 1; height: 12px; border: 2px solid var(--ink); border-radius: 6px; overflow: hidden; background: #241a46; }
#thermo-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pink), var(--sun)); }
.hot #thermo-fill { background: #ff3b3b; animation: blink 0.5s steps(1) infinite; }
.hot #q-time { color: #ff6a6a; }
@keyframes blink { 50% { opacity: 0.45; } }
.vignette { position: fixed; inset: 0; z-index: 2; pointer-events: none; opacity: 0; background: radial-gradient(circle, transparent 52%, rgba(255, 50, 80, 0.55) 100%); }
body[data-hurry='1'] .vignette { opacity: 0.72; animation: hurry 0.45s ease-in-out infinite alternate; }
@keyframes hurry { from { opacity: 0.4; } to { opacity: 0.95; } }
.q-text { font-family: var(--pixel); font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; margin: 12px 0 14px; }
form#answer-form { display: flex; gap: 8px; align-items: stretch; }
#answer, .btn.fly { height: 54px; box-sizing: border-box; margin: 0; }
#answer { flex: 1; min-width: 0; font: inherit; font-size: 24px; line-height: 1; padding: 0 12px; background: #fff6e8; color: var(--night); border: 3px solid var(--night); outline: none; }
.btn.fly { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; }
#answer:focus { box-shadow: 0 0 0 3px var(--sun); }
.feedback { min-height: 1.3em; margin: 10px 0 0; color: var(--pink); }
.feedback.ok { color: var(--sun); }
.shake { animation: shake 0.32s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.result { text-align: center; display: grid; gap: 0; justify-items: center; width: min(640px, 100%); background: var(--result-bg, rgba(20, 13, 40, 0.96)); border: 3px solid var(--tc, var(--ink)); padding: 28px 32px 22px; box-shadow: 6px 6px 0 rgba(0,0,0,0.45); animation: pop 0.35s cubic-bezier(.2,1.6,.4,1); }
@keyframes pop { from { transform: scale(0.85); opacity: 0; } }
.result .rank { display: grid; gap: 14px; justify-items: center; width: 100%; margin-bottom: 22px; }
.result .tier { font-family: var(--pixel); font-weight: 700; font-size: clamp(20px, 3.4vw, 30px); color: var(--tc); letter-spacing: 1px; line-height: 1.1; }
.result .find { display: grid; gap: 2px; justify-items: center; margin-bottom: 16px; }
.result .said { font-family: var(--pixel); font-weight: 700; font-size: clamp(18px, 2.2vw, 24px); letter-spacing: 0.5px; color: var(--ink); }
.result .pts { font-family: var(--pixel); font-weight: 700; color: var(--sun); font-size: 18px; letter-spacing: 1px; }
.result .where { font-weight: 400; font-size: 16px; letter-spacing: 0.16em; color: var(--dim); }
.result .blurb { margin: 0 0 20px; max-width: 36ch; font-weight: 400; font-size: 17px; line-height: 1.35; letter-spacing: 0.03em; color: var(--dim); }
.scale { display: flex; align-items: flex-end; justify-content: center; gap: 12px; width: 100%; max-width: 100%; color: var(--dim); }
.scale-label { font-family: var(--pixel); font-weight: 400; font-size: 13px; letter-spacing: 0.16em; line-height: 1; padding-bottom: 2px; }
.scale-bar { display: flex; align-items: flex-end; gap: 7px; height: 32px; }
.scale i { width: clamp(18px, 4.6vw, 40px); height: 14px; display: inline-block; opacity: 0.28; }
.scale i.lit { height: 16px; opacity: 0.78; }
.scale i.on { width: clamp(22px, 5.2vw, 46px); height: 28px; opacity: 1; box-shadow: 0 0 0 3px var(--ink); }

.end-card { max-height: calc(100dvh - 170px); overflow-y: auto; }
.end-head { display: flex; justify-content: space-between; align-items: end; gap: 10px; flex-wrap: wrap; }
.end-score { font-family: var(--pixel); font-weight: 700; font-size: 64px; line-height: 1; }
.end-score small { font-size: 24px; color: var(--dim); }
.end-zone { color: var(--sun); letter-spacing: 2px; }
.end-rank { font-family: var(--pixel); color: var(--pink); }
.grid { display: flex; gap: 4px; margin: 10px 0; }
.grid i { flex: 1; height: 10px; }
.rows { list-style: none; padding: 0; margin: 8px 0; }
.rows li { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.rows .q { color: var(--dim); font-size: 17px; }
.rows .a { font-size: 22px; }
.rows .share { color: var(--dim); font-size: 16px; }
.chip { font-family: var(--pixel); font-size: 13px; padding: 2px 6px; color: var(--night); background: var(--tc); white-space: nowrap; }
.rows .p { color: var(--sun); min-width: 40px; text-align: right; }
.hist { display: flex; align-items: end; gap: 1px; height: 56px; margin: 8px 0 2px; }
.hist i { flex: 1; background: #5e4b99; min-height: 1px; }
.hist i.you { background: var(--sun); }
.beat { color: var(--dim); letter-spacing: 1px; }
details { margin: 8px 0; }
summary { cursor: pointer; color: var(--sun); letter-spacing: 1px; }
.top { font-size: 15px; color: var(--dim); margin: 2px 0 0; }
.top b { color: var(--sun); font-weight: normal; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.share-box { width: 100%; min-height: 110px; font: inherit; font-size: 18px; margin-top: 8px; }

.modal { background: var(--night); color: var(--ink); border: 3px solid var(--ink); max-width: min(560px, 92vw); padding: 18px 20px; font-size: 20px; }
.modal::backdrop { background: rgba(10, 6, 24, 0.7); }
.modal h2 { font-family: var(--pixel); margin-top: 0; }
.legend { list-style: none; padding: 0; display: grid; gap: 4px; }
.legend li { display: flex; justify-content: space-between; gap: 8px; }

@media (max-width: 560px) {
  html, body { font-size: 18px; }
  main { place-items: start center; padding-top: 64px; }
  .home { margin-top: 2vh; gap: 10px; }
  .logo-sm { display: none; }
  .title { letter-spacing: 0.03em; }
  .sub { letter-spacing: 0.12em; font-size: 13px; }
  .zone-tag b { font-size: 18px; }
  .btn.primary { min-width: 0; width: 100%; }
  .end-score { font-size: 48px; }
  .result { padding: 22px 14px 16px; }
  .scale { gap: 6px; }
  .scale-label { font-size: 11px; letter-spacing: 0.08em; }
  .scale-bar { gap: 4px; }
  .scale i { width: 16px; height: 12px; }
  .scale i.lit { height: 13px; }
  .scale i.on { width: 18px; height: 22px; }
  .rows li { grid-template-columns: 1fr auto; row-gap: 2px; }
  .rows li > span:first-child { grid-row: span 2; }
  .rows .chip, .rows .p { grid-column: 2; justify-self: end; }
  body[data-screen='end'] .zone-tag { display: none; }
  .end-card { max-height: calc(100dvh - 90px); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- themes ---------- */
[data-theme='springs'] { --night: #0f3b45; --panel: rgba(250, 244, 228, 0.94); --ink: #12333a; --sun: #0d8a6a; --pink: #e05a2a; --line: #9fc9c4; --dim: #3c6b70; }
[data-theme='springs'] .card, [data-theme='springs'] .result, [data-theme='springs'] .modal { border-color: #12333a; }
[data-theme='springs'] .title { color: #fffdf6; text-shadow: 3px 3px 0 #0d8a6a, 6px 6px 0 #12333a; }
[data-theme='springs'] #answer { background: #fff; }
[data-theme='springs'] .btn.primary, [data-theme='springs'] .btn.fly { color: #fffdf6; }
[data-theme='springs'] .hist i { background: #9fc9c4; }
[data-theme='burnt'] { --night: #1a0a02; --panel: rgba(40, 16, 4, 0.92); --ink: #fff6e8; --sun: #ff8c2e; --pink: #cc5500; --line: #7a3510; --dim: #f2c9a0; }
[data-theme='burnt'] .title { text-shadow: 3px 3px 0 #cc5500, 6px 6px 0 #1a0a02; }
[data-theme='weird'] { --night: #12051f; --panel: rgba(27, 11, 46, 0.9); --ink: #f9ffe8; --sun: #b6ff3b; --pink: #ff4fd8; --line: #1fd1a5; --dim: #e0b6ff; }
[data-theme='weird'] .title { animation: wobble 2.4s ease-in-out infinite; text-shadow: 3px 3px 0 #ff4fd8, 6px 6px 0 #1fd1a5; }
[data-theme='weird'] .card { transform: rotate(-0.6deg); }
[data-theme='weird'] .btn { border-radius: 14px 4px 14px 4px; }
@keyframes wobble { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.04); } }

/* ---------- fonts ---------- */
[data-font='poster'] { --pixel: 'Bungee', Impact, sans-serif; }
[data-font='plain'] { --pixel: system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: system-ui, -apple-system, 'Segoe UI', sans-serif; }
[data-font='plain'] body { font-size: 17px; }
.font-poster { font-family: 'Bungee', Impact, sans-serif !important; }
.font-plain { font-family: system-ui, sans-serif !important; }
.cb-strip { display: flex; gap: 6px; margin: -4px 0 10px; }
.cb-strip i { width: 36px; height: 22px; display: grid; place-items: center; font-style: normal; font-family: var(--pixel); font-size: 13px; color: #170f2e; }
[data-colorblind] .cb-strip i::before { content: attr(data-n); }

/* ---------- colorblind: Okabe-Ito tiers plus a visible tier number ---------- */
[data-colorblind] { --t0: #f0f0f0; --t1: #56b4e9; --t2: #009e73; --t3: #f0e442; --t4: #e69f00; --t5: #d55e00; }
[data-colorblind] .chip[data-n]::before { content: attr(data-n) ' · '; }
[data-colorblind] .picks li[data-t]::after { content: attr(data-t); }
[data-colorblind] .scale i.on { display: grid; place-items: center; }
[data-colorblind] .scale i.on::after { content: attr(data-n); font-family: var(--pixel); font-size: 13px; font-weight: 700; color: var(--night); line-height: 1; }

/* ---------- settings ---------- */
.settings { width: min(560px, 94vw); max-height: 88dvh; }
.settings-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.settings-head h2 { margin: 0; line-height: 1; }
.settings-head form { margin: 0; display: flex; }
.icon { display: inline-grid; place-items: center; padding: 0; line-height: 1; font-size: 18px; }
.settings h3 { font-family: var(--pixel); color: var(--sun); letter-spacing: 3px; font-size: 16px; margin: 18px 0 6px; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.set-row.col { flex-direction: column; align-items: stretch; }
.set-row small { display: block; color: var(--dim); font-size: 16px; }
.switch { min-width: 64px; padding: 6px 10px; border: 2px solid var(--ink); background: transparent; font-family: var(--pixel); }
.switch[aria-checked='true'] { background: var(--sun); color: var(--night); }
.choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.choices button { padding: 6px 10px; border: 2px solid var(--line); background: transparent; font-size: 16px; }
.choices button[aria-checked='true'] { border-color: var(--sun); background: var(--sun); color: var(--night); }
.choices .swatch { padding-left: 30px; position: relative; }
.choices .swatch::before { content: ''; position: absolute; left: 6px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: linear-gradient(135deg, var(--a) 0 33%, var(--b) 33% 66%, var(--c) 66%); border: 1px solid var(--ink); }
.inspo { margin: 16px 0 8px; text-align: center; color: var(--dim); font-size: 15px; line-height: 1.45; font-weight: 400; }
.inspo a { color: inherit; }
.credit { color: var(--dim); text-align: center; margin: 14px 0 0; line-height: 1.45; }
.credit a { color: var(--sun); }
.credit .brand { display: inline-block; vertical-align: -2px; margin: 0 3px 0 1px; }
.modal { background: var(--modal-bg, var(--night)); color: var(--ink); }

/* ---------- zone postcard: "Greetings from…" ---------- */
.postcard { position: fixed; left: 50%; top: max(58px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 6; text-align: center; pointer-events: none; background: linear-gradient(180deg, #ffcf8a, #ff8c6a 55%, #c0508a); border: 4px solid #fff6e8; box-shadow: 8px 8px 0 rgba(0,0,0,.45); padding: 10px 18px 12px; color: #170f2e; }
.postcard small { font-family: var(--pixel); letter-spacing: 6px; font-size: 14px; }
.postcard em { display: block; font-style: normal; letter-spacing: 3px; font-size: 15px; margin-top: 4px; }
.pc-word { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px; }
.pc-word span { font-family: var(--pixel); font-weight: 700; font-size: clamp(30px, 7vw, 56px); color: var(--c); -webkit-text-stroke: 2px #170f2e; text-shadow: 3px 3px 0 #170f2e; display: inline-block; }
.pc-word .sp { width: 14px; }
.postcard.go { animation: pcIn 2.6s cubic-bezier(.2, 1.4, .4, 1) both; }
.postcard.go .pc-word span { animation: pcLetter 0.5s var(--d) both; }
@keyframes pcIn { 0% { transform: translateX(-50%) translateY(-40px) rotate(-6deg) scale(.6); opacity: 0; } 14% { transform: translateX(-50%) rotate(-2deg) scale(1.05); opacity: 1; } 80% { opacity: 1; transform: translateX(-50%) rotate(-2deg) scale(1); } 100% { opacity: 0; transform: translateX(-50%) translateY(-20px) rotate(-2deg) scale(.95); } }
@keyframes pcLetter { from { transform: translateY(18px) scale(.4); opacity: 0; } }

/* ---------- flight moment ---------- */
.floater { position: fixed; left: 38%; top: 34%; z-index: 6; pointer-events: none; font-family: var(--pixel); font-weight: 700; font-size: clamp(34px, 8vw, 64px); color: var(--c); -webkit-text-stroke: 2px var(--night); text-shadow: 4px 4px 0 var(--night); opacity: 0; }
.floater.go { animation: floatUp 1.4s ease-out both; }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 15% { opacity: 1; transform: scale(1.15); } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-70px) scale(1); } }
.flash { position: fixed; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at 38% 45%, rgba(255, 79, 109, .55), transparent 60%); opacity: 0; }
.flash.go { animation: flash 0.9s ease-out; }
@keyframes flash { 10% { opacity: 1; } 100% { opacity: 0; } }
#screen-play .card.leave { animation: leave 0.35s ease-in forwards; }
@keyframes leave { to { transform: translateY(-30px) scale(.96); opacity: 0; } }

/* ---------- report card ---------- */
.end-right { text-align: right; }
.sec { font-family: var(--pixel); color: var(--sun); letter-spacing: 3px; font-size: 15px; margin: 14px 0 4px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0 4px; }
.stat-row.small { grid-template-columns: repeat(6, 1fr); }
.stat-row > div { background: rgba(255,255,255,.04); border: 2px solid var(--line); padding: 6px 4px; text-align: center; }
.stat-row b { display: block; font-family: var(--pixel); font-size: 26px; color: var(--ink); }
.stat-row small { color: var(--dim); letter-spacing: 1px; font-size: 13px; }
.hist-axis { display: flex; justify-content: space-between; color: var(--dim); font-size: 14px; }
.log { width: 100%; height: auto; display: block; }
.log .lp { fill: none; stroke: var(--sun); stroke-width: 2; stroke-dasharray: 4 3; }
.log .zl { stroke: var(--line); stroke-width: 0.6; stroke-dasharray: 2 3; }
.log .zt { fill: var(--dim); font-size: 6px; font-family: var(--mono); letter-spacing: .5px; }
.rows li:hover { background: rgba(255,255,255,.03); }
.picks li[data-t] { display: grid; place-items: center; font-size: 10px; color: var(--night); }
.foot.dim { color: var(--dim); font-size: 17px; margin: 0; }
@media (max-width: 560px) {
  .stat-row.small { grid-template-columns: repeat(3, 1fr); }
  .stat-row b { font-size: 22px; }
  .floater { left: 28%; }
  .postcard { top: 54px; width: 92vw; padding: 6px 10px 8px; }
  .crowd { bottom: max(92px, calc(env(safe-area-inset-bottom) + 84px)); letter-spacing: 0.08em; }
}
[data-calm] *, [data-calm] *::before { animation-duration: 0.01ms !important; transition: none !important; }

/* ---------- YEEHAW! ---------- */
.yeehaw { position: fixed; left: 50%; top: 40%; z-index: 7; pointer-events: none; transform: translateX(-50%); opacity: 0; text-align: center; }
.yeehaw b { display: block; font-family: var(--pixel); font-weight: 700; font-size: clamp(40px, 10vw, 84px); color: #ffd36e; -webkit-text-stroke: 3px #3d2716; text-shadow: 5px 5px 0 #b8532a, 9px 9px 0 #170f2e; letter-spacing: 3px; }
.yeehaw.go { animation: yee 1.8s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes yee { 0% { opacity: 0; transform: translateX(-50%) scale(.3) rotate(-12deg); } 18% { opacity: 1; transform: translateX(-50%) scale(1.15) rotate(4deg); } 30% { transform: translateX(-50%) scale(1) rotate(-3deg); } 75% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-40px) scale(1) rotate(0); } }

/* Text that sits directly on the scene, not on a panel. Cream plus a hard night shadow so the dusk sky never washes it out. */
.home .sub, .home .tag, .home .foot { color: #fff6e8; text-shadow: 0 2px 0 #170f2e, 0 0 10px rgba(23, 15, 46, 0.9); }
[data-theme='springs'] { --modal-bg: #faf4e4; --on-accent: #fffdf6; }
[data-theme='springs'] .home .sub { color: #fffdf6; }
[data-theme='springs'] .home .tag, [data-theme='springs'] .home .foot { color: #f2fbff; }
[data-theme='springs'] .home .sub, [data-theme='springs'] .home .tag, [data-theme='springs'] .home .foot { text-shadow: 0 1px 0 #0b2a30, 0 0 8px rgba(11, 42, 48, .9), 0 0 2px #0b2a30; }
[data-theme='springs'] .choices button[aria-checked='true'], [data-theme='springs'] .switch[aria-checked='true'] { color: var(--on-accent); }
[data-theme='springs'] .choices button, [data-theme='springs'] .switch { color: var(--ink); border-color: #7fa9a5; }
[data-theme='springs'] .home-status { color: var(--ink); }
[data-theme='springs'] .chip { color: #0b2a30; }
[data-theme='springs'] .stat-row > div { background: rgba(13, 138, 106, .07); }
[data-theme='springs'] .postcard { color: #170f2e; }

/* The miss card's colour is a muted grey; keep its title readable. */
.result[style*='--miss'] .tier, .result.miss .tier { color: #c9c2e6; }
[data-theme='springs'] { --result-bg: rgba(250, 244, 228, 0.97); }
