:root {
  --bg: #06120c; --surface: #0f1f16; --surface-2: #17301f; --ink: #e9ffef; --ink-2: #8fb59b; --line: #1f3a29;
  --accent: #7dff8a; --accent-ink: #04140a; --ok: #7dff8a; --warn: #ffd166; --bad: #ff6b8a; --info: #6fd6ff;
  --grid: rgba(120,200,140,.12); --stone: #1a3326; --stone-edge: #3b6a4c; --berry: #ff3b6b; --berry-glow: #ff8fb0; --gold: #ffd166;
  --font-display: "Righteous", "Nunito", system-ui, sans-serif; --font-ui: "Nunito", system-ui, sans-serif;
}
:root[data-theme="light"] { --bg: #eef7ef; --surface: #ffffff; --surface-2: #dcefe0; --ink: #0d2416; --ink-2: #4c7358; --line: #bcd9c3; --accent: #1f9d4a; --accent-ink: #fff; --grid: rgba(20,80,40,.12); --stone: #9cc4a6; --stone-edge: #5a8f69; }
body { background: radial-gradient(ellipse at 50% 0%, #0d2417 0%, var(--bg) 55%); }
:root[data-theme="light"] body { background: radial-gradient(ellipse at 50% 0%, #ffffff 0%, var(--bg) 55%); }
.logo { display: flex; justify-content: center; margin-bottom: -10px; } .logo canvas { width: 240px; height: 90px; }
.title { text-shadow: 0 0 14px rgba(125,255,138,.7), 0 0 44px rgba(125,255,138,.35); }
.mode { background: color-mix(in oklab, var(--surface) 85%, transparent); }
.play .stage { padding: calc(var(--hud-h) + 12px + env(safe-area-inset-top)) 6px calc(96px + env(safe-area-inset-bottom)); }
@media (pointer: fine) { .play .stage { padding-bottom: 12px; } }
.play .stage-canvas { box-shadow: 0 0 0 1px rgba(125,255,138,.12), 0 0 60px rgba(50,200,110,.12); }
.controls-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
:root[data-touch="swipe"] #dpad { display: none !important; }
:root[data-touch="buttons"] #dpad[data-layout="dpad"] { --tc: 54px; }
@media (pointer: coarse) { :root[data-touch="buttons"] #dpad[data-layout="dpad"] { display: grid; } }
.boost { margin-left: auto; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a3, var(--gold) 55%, #b8862a); color: #3a2600; font-family: var(--font-display); font-size: .8rem; letter-spacing: .08em; box-shadow: 0 0 24px rgba(255,209,102,.45), inset 0 -4px 0 rgba(0,0,0,.25); touch-action: none; display: none; }
@media (pointer: coarse) { .boost { display: grid; place-items: center; } }
.boost.on { transform: scale(.94); box-shadow: 0 0 40px rgba(255,209,102,.8), inset 0 2px 0 rgba(0,0,0,.25); }
#hud-speed-pill[data-boost="1"] { color: var(--gold); box-shadow: 0 0 14px rgba(255,209,102,.5); }
#ready { pointer-events: none; }
.overlay h2 { color: var(--accent); text-shadow: 0 0 20px rgba(125,255,138,.6); }
.overlay p { color: var(--ink-2); }
.result-verdict { text-align: center; color: var(--ink-2); font-weight: 700; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: var(--s-2); }
.result-actions .btn-primary { grid-column: 1 / -1; }
.hud-pill { font-family: var(--font-display); font-weight: 400; }
@container screen (min-width: 640px) { .arcade-home .modes { grid-template-columns: 1fr 1fr; } }
/* compact home so five modes fit a 640 px phone */
.arcade-home { gap: var(--s-4); }
.logo canvas { width: 200px; height: 75px; }
.title { font-size: clamp(2.2rem, 11vw, 4rem); }
.modes { grid-template-columns: 1fr 1fr; }
.mode { min-height: 52px; padding: 9px 12px; } .mode span { font-size: .74rem; }
.mode[data-mode="zen"] { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; min-height: 44px; }
#ready { backdrop-filter: none; background: color-mix(in oklab, var(--bg) 35%, transparent); }
