.scoreboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prompt { min-height: 1.6em; margin: .75rem 0; font-weight: 700; }
.arcade-cell { font-size: clamp(1.35rem, 4vw, 2.65rem); font-weight: 800; }
.board[data-mode="math"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.board[data-mode="signal"] { grid-template-columns: 1fr; }
.board[data-mode="signal"] .cell { aspect-ratio: auto; min-height: 9rem; }
.board[data-mode="signal"] .ready { background: #215440; border-color: #8ef1b7; color: #e0fff0; }
/* One different leaf: a pale field of large, high-contrast shapes. */
[data-game="odd"] { background:linear-gradient(145deg,#16362e,#102323); }
[data-game="odd"] .console { background:#d9e5ca; color:#19352a; border-color:#b0c5aa; }
[data-game="odd"] .scoreboard div { background:#284638; color:#f4fff2; }
[data-game="odd"] .board { gap:.3rem; padding:.35rem; background:#b6cba8; border-radius:.65rem; }
[data-game="odd"] .cell { aspect-ratio:1.5; background:#f3f7e9; color:#254d38; border:0; border-radius:.3rem; }
[data-game="odd"] .controls p { color:#19352a; }
[data-game="odd"] .controls button { background:#244d38; color:#fff; }
[data-game="odd"] .console :focus-visible { outline-color:#244d38; }

/* Mental arithmetic: the question is the main display, with four answer keys. */
[data-game="math"] { background:linear-gradient(135deg,#30203e,#151528); }
[data-game="math"] .console { background:#241b37; border-color:#7c6594; }
[data-game="math"] .prompt { padding:.75rem .45rem; text-align:center; background:#f4e9fb; color:#38254a; font-size:clamp(1.8rem,6vw,3.1rem); border-radius:.4rem; font-variant-numeric:tabular-nums; }
[data-game="math"] .cell { aspect-ratio:auto; min-height:3.7rem; background:#503c66; color:#fff2ff; border-color:#987bb3; }
[data-game="math"] .controls button { background:#eac5ff; color:#332044; }

/* Signal: a single, full-width control replaces the grid. */
[data-game="signal"] { background:linear-gradient(135deg,#282019,#151c1a); }
[data-game="signal"] .console { background:#202522; border-color:#626852; }
[data-game="signal"] .prompt { text-align:center; }
[data-game="signal"] .cell { min-height:clamp(10rem,25vw,15rem); display:flex; flex-direction:column; justify-content:center; gap:.5rem; background:#352b1d; color:#ffdc9e; border-color:#9f8154; }
[data-game="signal"] .cell::before { content:""; width:2.75rem; aspect-ratio:1; border-radius:50%; background:#f4aa42; box-shadow:0 0 1.5rem #f4aa4277; }
[data-game="signal"] .cell.ready { background:#19432c; border-color:#78e6a6; color:#edfff3; }
[data-game="signal"] .cell.ready::before { background:#79f9a8; box-shadow:0 0 2rem #79f9a888; }
@media (min-width: 46.01rem) {
  [data-game="odd"] .game-layout { grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); }
  [data-game="odd"] .console { grid-column:1; grid-row:1; }
  [data-game="odd"] .intro { grid-column:2; grid-row:1; }
  [data-game="signal"] .game-layout { grid-template-columns:1fr; gap:1rem; padding-top:2rem; }
  [data-game="signal"] .intro { text-align:center; }
  [data-game="signal"] h1 { font-size:clamp(2.25rem,5vw,3.5rem); }
  [data-game="signal"] .console { width:min(100%,34rem); margin-inline:auto; }
}
[data-game="signal"] .controls { justify-content:center; }
[data-game="signal"] .controls p { flex-basis:100%; text-align:center; }
[data-game="math"] .controls button { margin-left:auto; }
