/* Mines: a harbour chart. Unexplored water is deep teal with a ripple; cleared squares are pale sand with the
   numbers in chart ink; marked mines carry a red-and-white buoy. Always this one palette: a chart is printed. */
:root { --page: #0f3b52; --card: #134a66; --ink: #eaf6fb; --soft: #a9c9d8; --line: #2a6a88; --field: #0b2e40; --act: #ffd166; --on-act: #2a1d00; --stop: #ff8a80; --wide: 720px; color-scheme: dark; }
.top, .picks { justify-content: space-between; align-items: center; }
.hud { display: flex; gap: 16px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.small-note { font-size: 14px; flex: 1 1 200px; }
.board { display: grid; grid-template-columns: repeat(var(--w), minmax(0, 1fr)); gap: 2px; background: #0b2e40; padding: 3px; border-radius: 8px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.cell { aspect-ratio: 1; min-height: 0; padding: 0; border-radius: 3px; border: 0; font-weight: 800; font-size: clamp(11px, calc(70vw / var(--w)), 22px); display: grid; place-items: center; color: #0b2e40;
  background: radial-gradient(circle at 30% 25%, #2b7fa3, #1b6283 70%); box-shadow: inset 0 -2px 0 rgb(0 0 0 / .25); }
.cell.open { background: #f1e6c8; box-shadow: none; }
.cell.n1 { color: #1f5fa8; } .cell.n2 { color: #2e7d32; } .cell.n3 { color: #c0392b; } .cell.n4 { color: #4a2e8f; } .cell.n5 { color: #8a3b12; } .cell.n6 { color: #0b7285; } .cell.n7 { color: #1a1a1a; } .cell.n8 { color: #666; }
.cell svg { width: 70%; height: 70%; }
.cell.boom { background: #ff8a80; }
.cell:focus-visible { outline: 3px solid var(--act); outline-offset: -2px; }
#mode[aria-pressed="true"] { background: var(--act); color: var(--on-act); border-color: var(--act); }
.end { background: #f1e6c8; color: #0b2e40; border: 0; } .end button { justify-self: start; background: #0f3b52; color: #fff; }
footer a { color: var(--ink); }
