:root {
  --navy: #081a33;
  --surface: #0e2a4f;
  --edge: #1e4a7a;
  --cyan: #3ee0ff;
  --cyan-dim: #1fa8c4;
  --ink: #eef4fa;
  --ink-dim: #9db4cc;
  --gold: #ffd166;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--navy); color: var(--ink); font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.5; }
a { color: var(--cyan); }
.wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font-weight: 900; letter-spacing: 3px; font-size: 22px; text-decoration: none; color: var(--ink); }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; margin-top: 48px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 16px; font-weight: 900; }
.hero h1 span { color: var(--cyan); }
.hero p { color: var(--ink-dim); font-size: 18px; margin: 0 0 24px; }
.btn { display: inline-block; padding: 16px 28px; border-radius: 14px; font-weight: 800; text-decoration: none; }
.btn.primary { background: var(--cyan); color: var(--navy); }
.btn.ghost { border: 1.5px solid var(--cyan-dim); color: var(--cyan); margin-left: 8px; }
/* Rows are sized explicitly and `min-height: 0`, and the numbers set their own
   `line-height`. All three are load-bearing, and the board silently loses two
   of its three tile states without them:
   - `auto` rows take their height from their content, so the two rows holding
     no number -- the gold captured tile and the black hole -- flatten to a 2px
     hairline.
   - `repeat(8, 1fr)` alone does not save them. A grid item's automatic minimum
     size is its content, and body `line-height: 1.5` makes a 3vw number taller
     than its 1fr share, so the numbered rows overrun the square, free space
     hits zero, and every fr row falls back to min-content -- 0 for the empty
     ones. `min-height: 0` is what lets the fr sizes actually win.
   - `line-height: 1` then keeps the glyph inside the tile it is centred in. */
.board { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); gap: 4px; aspect-ratio: 1; }
.board i { display: block; border-radius: 4px; background: #123761; border: 1px solid var(--edge); min-height: 0; }
.board i.n { background: var(--navy); color: var(--cyan); font-style: normal; font-weight: 900; display: grid; place-items: center; font-size: 3vw; line-height: 1; }
.board i.c { background: var(--gold); }
.board i.v { background: #03080f; border-color: #03080f; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 64px; }
.step { background: var(--surface); border: 1px solid var(--edge); border-radius: 20px; padding: 20px; }
.step b { color: var(--cyan); display: block; font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-dim); }
.modes { margin-top: 56px; }
.modes h2, .stores h2 { font-size: 28px; margin: 0 0 12px; }
.stores { margin-top: 56px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { padding: 12px 18px; border: 1.5px solid var(--edge); border-radius: 12px; color: var(--ink-dim); }
footer { margin-top: 64px; color: var(--ink-dim); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 20px; margin-top: 28px; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .board i.n { font-size: 7vw; }
}
