:root { --night: #1d2b53; --ink: #1b1e33; --gold: #ffd23f; --blue: #2f80ed; --line: #3b4a7d; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--night); color: #fff; font-family: system-ui, "Segoe UI", Roboto, sans-serif; line-height: 1.4; }
[hidden] { display: none !important; }
main { max-width: 860px; margin: auto; padding: 16px; }
.stage { position: relative; width: 100%; aspect-ratio: 800 / 480; border: 4px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; }
canvas { display: block; width: 100%; height: 100%; }
.hud { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; font-weight: 700; font-size: clamp(11px, 2.4vw, 17px); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); background: linear-gradient(rgba(0, 0, 0, .35), transparent); pointer-events: none; }
.lives { color: #ff5d73; letter-spacing: 2px; }
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; text-align: center; background: rgba(20, 26, 60, .82); }
.screen h1 { margin: 0; font-size: clamp(34px, 8vw, 68px); letter-spacing: -1px; color: var(--gold); text-shadow: 0 4px 0 #b8860b; }
.screen h2 { margin: 0; font-size: clamp(26px, 6vw, 44px); color: var(--gold); }
.screen p { margin: 0; font-size: clamp(13px, 2.6vw, 18px); max-width: 520px; }
.best strong, .screen strong { color: var(--gold); }
.record { color: #7dffa1; font-weight: 800; font-size: clamp(18px, 4vw, 28px) !important; }
.help { opacity: .75; font-size: clamp(11px, 2vw, 14px) !important; margin-top: 6px !important; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 10px; padding: 10px 22px; background: #fff; color: var(--ink); font-weight: 700; }
button:hover { background: #e8eeff; }
button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
button.big { background: var(--gold); font-size: clamp(18px, 3.5vw, 24px); padding: 12px 40px; }
button.big:hover { background: #ffc107; }
.level-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 560px; }
.level-grid button { min-width: 150px; }
.help-list { margin: 0; padding-left: 22px; text-align: left; max-width: 560px; font-size: clamp(12px, 2.3vw, 16px); }
.help-list li { margin: 3px 0; }
footer { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; color: #aab4d8; font-size: 13px; }
.cq-whoami { margin: 0; }
.cq-ghost { background: transparent; color: #aab4d8; border: 1px solid var(--line); padding: 6px 12px; font-size: 12px; }
.cq-ghost:hover { background: rgba(255, 255, 255, .08); }
.cq-login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.cq-login-card { width: 100%; max-width: 340px; padding: 1.75rem; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 10px 40px #0006; text-align: center; }
.cq-login-card h1 { font-size: 1.5rem; margin: 0 0 .5rem; }
.cq-primary, .cq-login-card .cq-ghost { display: block; width: 100%; margin-top: .75rem; }
.cq-login-card .cq-ghost { color: var(--ink); border-color: #ccd; }
.cq-primary { background: var(--blue); color: #fff; }
