:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #0b1714;
  color: #eff8f1;
  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(39, 102, 75, .3), transparent 60%), #0b1714;
}

.game-shell { width: min(100% - 32px, 640px); margin: 0 auto; padding: 22px 0 36px; }
.heading { text-align: center; }
.home-link { display: inline-block; color: #abc5b3; font-size: .86rem; text-decoration: none; }
.home-link:hover { color: #fff; }
.eyebrow { margin: 20px 0 4px; color: #83e0a0; 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: #83e0a0; }
.tagline { margin: 10px 0 22px; color: #abc5b3; }
.game-card { overflow: hidden; border: 1px solid rgba(169, 237, 187, .16); border-radius: 22px; background: #13251e; box-shadow: 0 22px 70px rgba(0, 0, 0, .32); }
.score-row { display: flex; justify-content: space-between; padding: 14px 20px 10px; color: #abc5b3; 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: #182e25; }
.controls { display: grid; gap: 12px; padding: 14px 18px 19px; text-align: center; }
.controls > p { min-height: 1.4em; margin: 0; color: #bdcfc1; font-size: .9rem; }
.control-row { display: flex; align-items: center; justify-content: center; gap: 28px; }
button { border: 0; border-radius: 12px; background: #83e0a0; color: #10251a; font: inherit; font-weight: 800; cursor: pointer; }
button:hover { background: #a0f0b4; }
button:focus-visible, a:focus-visible { outline: 3px solid #cff8d6; outline-offset: 3px; }
.d-pad { display: grid; grid-template-columns: repeat(3, 42px); grid-template-rows: repeat(2, 38px); gap: 4px; }
.d-pad button { border-radius: 9px; font-size: 1.05rem; }
.d-pad button:nth-child(1) { grid-column: 2; }
.d-pad button:nth-child(2) { grid-column: 1; grid-row: 2; }
.d-pad button:nth-child(3) { grid-column: 2; grid-row: 2; }
.d-pad button:nth-child(4) { grid-column: 3; grid-row: 2; }
.restart { padding: 12px 20px; }
.hint { color: #91a99a; font-size: .83rem; line-height: 1.7; text-align: center; }
kbd { margin: 0 2px; border: 1px solid #486454; border-radius: 5px; padding: 1px 5px; color: #e6f4e9; font: inherit; }
