:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #0b1425;
  color: #f5f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(50, 83, 134, .3), transparent 60%),
    #0b1425;
}

.game-shell { width: min(100% - 32px, 520px); margin: 0 auto; padding: 22px 0 36px; }
.heading { text-align: center; }
.home-link { display: inline-block; color: #a8b8d4; font-size: .86rem; text-decoration: none; }
.home-link:hover { color: #fff; }
.eyebrow { margin: 20px 0 4px; color: #86d7f2; font-size: .72rem; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(2.8rem, 12vw, 4.4rem); line-height: 1; letter-spacing: -.07em; }
h1 span { color: #ffbd69; }
.tagline { margin: 10px 0 22px; color: #a8b8d4; }
.game-card { overflow: hidden; border: 1px solid rgba(169, 199, 237, .18); border-radius: 22px; background: #13223a; box-shadow: 0 22px 70px rgba(0, 0, 0, .32); }
.score-row { display: flex; justify-content: space-between; padding: 14px 20px 10px; color: #a8b8d4; font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.score-row p { margin: 0; }
.score-row strong { margin-left: 7px; color: #fff; font-size: 1rem; letter-spacing: 0; }
canvas { display: block; width: 100%; height: auto; background: #b9e8f5; touch-action: manipulation; }
.controls { display: grid; justify-items: center; gap: 10px; padding: 15px 18px 19px; text-align: center; }
.controls p { min-height: 1.4em; margin: 0; color: #bdcbe0; font-size: .9rem; }
button { min-width: 150px; border: 0; border-radius: 999px; padding: 11px 22px; background: #ffbd69; color: #172136; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #ffd092; }
button:focus-visible, a:focus-visible { outline: 3px solid #86d7f2; outline-offset: 3px; }
.hint { color: #8fa1be; font-size: .83rem; line-height: 1.7; text-align: center; }
kbd { border: 1px solid #455574; border-radius: 5px; padding: 1px 5px; color: #e6edf8; font: inherit; }
