:root { color-scheme: dark; --accent:#f5c451; --text:#eaeaf0; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 20% -10%, #2a1a4a 0%, transparent 60%), #0b0b12; display: flex; flex-direction: column; }
header { display: flex; align-items: baseline; gap: 1rem; padding: 1rem 1.5rem; border-bottom: 1px solid #ffffff12; }
header h1 { margin: 0; font-size: 1.3rem; }
a.home { color: #aaa; text-decoration: none; font-size: .9rem; }
a.home:hover { color: #fff; }

main { flex: 1; display: grid; place-items: center; padding: 1rem; }
#stage { position: relative; width: min(92vw, 480px); aspect-ratio: 480/720; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -30px #000; background: #70c5ce; }
canvas { display: block; width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }

#overlay { position: absolute; inset: 0; display: grid; place-items: center; background: #0008; backdrop-filter: blur(6px); }
#panel { text-align: center; background: #13131ccc; border: 1px solid #ffffff1a; padding: 1.5rem 2rem; border-radius: 14px; min-width: 240px; }
#panel h2 { margin: 0 0 .35rem; font-size: 2rem; letter-spacing: -.02em; background: linear-gradient(90deg, #ffd166, #ef476f); -webkit-background-clip: text; background-clip: text; color: transparent; }
#panel p { margin: 0 0 1rem; opacity: .75; font-size: .9rem; }
.kbd { font-family: ui-monospace, monospace; font-size: .8rem; padding: .1rem .4rem; border: 1px solid #ffffff33; border-radius: 4px; background: #ffffff0c; }
#scores { margin: .5rem 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
.scoreRow { display: flex; justify-content: space-between; gap: 2rem; background: #ffffff08; padding: .4rem .8rem; border-radius: 8px; }
.scoreRow b { font-variant-numeric: tabular-nums; }
#play { font: inherit; padding: .75rem 1.5rem; font-size: 1rem; font-weight: 700; background: var(--accent); color: #111; border: none; border-radius: 10px; cursor: pointer; }
#play:hover { filter: brightness(1.08); }

#hud { position: absolute; top: 1rem; left: 0; right: 0; text-align: center; pointer-events: none; font-size: 3rem; font-weight: 800; color: #fff; text-shadow: 0 3px 0 #0008, 0 6px 20px #0006; font-variant-numeric: tabular-nums; }
