/* The neon board shared by Number Slide (s-007) and Little Sudoku (s-008).
   These two rooms keep the Spike Run look on both sites, so their styles live
   here rather than in either site's theme. */

.synth {
  --neon: #35f3ff; --neon-2: #ff2bd6; --neon-3: #ffd319; --neon-ink: #f3e9ff;
  width: min(100%, 30rem); margin-inline: auto; padding: var(--space-4);
  background: linear-gradient(#12002b, #05010f);
  color: var(--neon-ink);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 24px rgb(138 43 226 / .45);
}
.synth-bar { display: flex; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); font-family: var(--font-mono); font-size: var(--step-0); }
.synth-grid { display: grid; gap: 6px; aspect-ratio: 1; touch-action: none; }
.synth-cell {
  display: grid; place-items: center; border-radius: var(--radius);
  background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08);
  font: 700 clamp(1.1rem, 6.5vw, 2.1rem)/1 var(--font-display); color: var(--neon-ink);
}
.synth-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-top: var(--space-4); }
.synth-btn {
  min-height: var(--tap); padding: 0 var(--space-4); border: 0; border-radius: var(--radius);
  background: transparent; color: var(--neon); box-shadow: inset 0 0 0 2px var(--neon);
  font: 600 var(--step-0)/1 var(--font-ui); cursor: pointer; touch-action: manipulation;
}
.synth-btn:disabled { opacity: .4; }
.synth-status { min-height: 1.6em; margin: var(--space-3) 0 0; text-align: center; font-weight: 600; color: var(--neon-3); }

/* Number Slide */
.slide-pad { display: grid; grid-template-columns: repeat(3, var(--tap)); gap: var(--space-2); justify-content: center; margin-top: var(--space-4); }
.slide-pad .synth-btn { padding: 0; }
.slide-pad .up { grid-column: 2; }
.slide-pad .down { grid-column: 2; }

/* Little Sudoku */
.sudoku-cell { cursor: pointer; border: 0; font-family: var(--font-display); }
.sudoku-cell.given { color: var(--neon); }
.sudoku-cell.clash { color: #ff6b6b; }
.sudoku-cell[aria-pressed="true"] { box-shadow: inset 0 0 0 3px var(--neon-3); }
.sudoku-cell.edge-right { margin-right: 4px; }
.sudoku-cell.edge-bottom { margin-bottom: 4px; }
.sudoku-pad { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--tap), 1fr)); gap: var(--space-2); margin-top: var(--space-4); }
.sudoku-pad .erase { grid-column: 1 / -1; }

/* Number Slide: a tile that just merged gives a little thump, a new tile fades
   in. Both are short on purpose — the board must never feel slow to swipe. */
@keyframes tile-pop { 0% { transform: scale(1); } 45% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes tile-in { from { transform: scale(.45); opacity: .25; } to { transform: scale(1); opacity: 1; } }
@keyframes score-bump { 0% { transform: scale(1); } 40% { transform: scale(1.15); color: var(--neon-3); } 100% { transform: scale(1); } }
.synth-cell.pop { animation: tile-pop .2s ease-out; }
.synth-cell.fresh { animation: tile-in .18s ease-out; }
.synth-bar span { display: inline-block; }
.synth-bar .bump { animation: score-bump .22s ease-out; }

/* Little Sudoku: the board shrinks its own type and gaps as it gets bigger, so
   a 9x9 still fits a 390px phone. */
.synth-grid { --cells: 4; }
.sudoku-cell { font-size: clamp(.75rem, calc(46vw / var(--cells)), 2rem); }
.synth-grid:has(.sudoku-cell) { gap: clamp(2px, 1vw, 6px); }
.synth-actions.sizes { margin-top: var(--space-2); }
.synth-btn.size[aria-pressed="true"] { background: var(--neon); color: #05010f; }
