:root { --bg:#0f172a; --panel:#1e293b; --line:#334155; --text:#e2e8f0; --muted:#94a3b8; --accent:#38bdf8; color-scheme:dark; }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
body { margin:0; background:var(--bg); color:var(--text); font-family:system-ui,-apple-system,"Segoe UI",sans-serif; overscroll-behavior:none; }
main { display:flex; flex-direction:column; align-items:center; gap:8px; padding:8px; }
.top { width:100%; max-width:820px; display:flex; justify-content:space-between; align-items:center; }
.home { color:var(--accent); text-decoration:none; }
#wins { color:var(--muted); }
.bar { display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }
button { font:inherit; color:inherit; background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:5px 12px; cursor:pointer; }
button.on, button:hover { border-color:var(--accent); }
.stage { position:relative; line-height:0; }
canvas { border-radius:8px; touch-action:none; display:block; }
#overlay { position:absolute; inset:0; background:rgba(11,18,32,.8); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; line-height:1.4; text-align:center; padding:12px; border-radius:8px; }
#overlay[hidden] { display:none; }
#overlay h2 { margin:0; }
#overlay p { margin:0; color:var(--muted); max-width:420px; }
#go { background:var(--accent); color:#0b1220; font-weight:700; padding:8px 22px; }
