:root {
  color-scheme: dark;
  --ink: #eef8ff;
  --muted: #8fa4b8;
  --line: rgba(154, 207, 242, .18);
  --cyan: #6ce5ff;
  --gold: #ffd37b;
  --bg: #07121f;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: radial-gradient(circle at 50% -10%, #173856 0, var(--bg) 48%, #040a12 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 18px; }
.topbar, footer { display: flex; align-items: center; justify-content: space-between; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 800; letter-spacing: .16em; }
.brand-mark { color: var(--gold); font-size: 17px; line-height: 1; text-shadow: 0 0 18px #ffd37b; }
.tagline { letter-spacing: .12em; }
.game-wrap { position: relative; margin: 18px 0 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 100px rgba(0, 0, 0, .38), inset 0 0 0 1px rgba(255,255,255,.025); background: #07121f; }
canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; cursor: crosshair; }
.hud { pointer-events: none; position: absolute; inset: 22px 25px auto; display: flex; justify-content: space-between; opacity: .95; }
.hud > div { display: flex; flex-direction: column; gap: 4px; min-width: 86px; }
.hud > div:nth-child(2) { text-align: center; }
.hud > div:last-child { text-align: right; }
.hud-label, .final-score span { color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.hud strong { font-size: 18px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.status { pointer-events: none; position: absolute; left: 50%; bottom: 21px; transform: translateX(-50%); color: var(--muted); font-size: 12px; letter-spacing: .08em; white-space: nowrap; }
.panel { position: absolute; left: 50%; top: 50%; width: min(510px, calc(100% - 40px)); transform: translate(-50%, -50%); padding: 34px 38px 30px; text-align: center; border: 1px solid rgba(170, 225, 255, .22); border-radius: 18px; background: rgba(6, 19, 33, .84); box-shadow: 0 22px 80px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(15px); }
.panel.hidden { display: none; }
.eyebrow { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .23em; }
h1, h2 { margin: 12px 0 15px; font-weight: 800; letter-spacing: -.045em; line-height: .96; }
h1 { font-size: clamp(38px, 6vw, 66px); }
h1 em { color: var(--gold); font-style: normal; }
h2 { font-size: clamp(28px, 4vw, 42px); }
.panel p { max-width: 410px; margin: 0 auto 24px; color: #b4c7d6; font-size: 14px; line-height: 1.65; }
.primary { border: 0; border-radius: 999px; padding: 13px 20px 13px 23px; color: #08111c; background: linear-gradient(100deg, var(--cyan), #b5f4ff); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 7px 25px rgba(108,229,255,.25); transition: transform .18s ease, box-shadow .18s ease; }
.primary span { display: inline-block; margin-left: 10px; font-size: 18px; transition: transform .18s ease; }
.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(108,229,255,.38); }
.primary:hover span { transform: translateX(3px); }
.primary:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.controls { margin-top: 24px; color: #7991a5; font-size: 10px; letter-spacing: .08em; }
.controls span { display: inline-block; margin: 0 5px; padding: 4px 6px; border: 1px solid rgba(154,207,242,.23); border-radius: 4px; color: #c8dbe7; font-size: 9px; }
.final-score { display: flex; flex-direction: column; gap: 5px; margin: 21px 0 24px; }
.final-score strong { color: var(--gold); font-size: 36px; letter-spacing: .1em; font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(255,211,123,.25); }
footer { padding: 0 4px; font-size: 9px; letter-spacing: .14em; }
@media (max-width: 620px) { .shell { width: min(100% - 18px, 1120px); padding-top: 16px; } .tagline { display: none; } .game-wrap { margin-top: 13px; border-radius: 15px; } .hud { inset: 13px 15px auto; } .hud > div { min-width: 62px; } .status { bottom: 12px; font-size: 10px; } .panel { padding: 27px 22px 24px; } .panel p { font-size: 13px; } footer { font-size: 8px; } }
