/* variant.css — sudoku size-variant board/pad styling (dark, matches site) */
:root { --sd-line:#243; --sd-thick:#5eead4; --sd-cell:#0b1220; --sd-sel:#134e4a; }
.variant-wrap { max-width: 640px; margin: 0 auto; padding: 40px 12px 72px; }
#board {
  display: grid;
  grid-template-columns: repeat(var(--n), 1fr);
  gap: 1px; background: var(--sd-line);
  border: 3px solid var(--sd-thick); border-radius: 8px; overflow: hidden;
  touch-action: manipulation; aspect-ratio: 1/1;
}
#board .cell {
  display: flex; align-items: center; justify-content: center;
  background: var(--sd-cell); color: #e2e8f0; cursor: pointer;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(11px, calc(46px / var(--n) * 3), 26px);
  aspect-ratio: 1/1; user-select: none;
}
#board .cell.given { color: #7dd3fc; font-weight: 600; }
#board .cell.sel { background: var(--sd-sel); outline: 2px solid var(--sd-thick); }
#board .cell.bR { border-right: 2px solid var(--sd-thick); }
#board .cell.bB { border-bottom: 2px solid var(--sd-thick); }
.numpad { display: grid; gap: 6px; margin: 14px 0; grid-template-columns: repeat(var(--n), 1fr); }
.numpad button {
  padding: 10px 0; font-size: clamp(12px, calc(60px / var(--n) * 3), 20px);
  background: #0b1220; color: #e2e8f0; border: 1px solid var(--sd-line); border-radius: 6px; cursor: pointer;
}
.numpad button:hover { background: var(--sd-sel); }
.sd-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 12px 0; }
.sd-controls button { padding: 10px 16px; border-radius: 8px; border: 1px solid var(--sd-thick); background: transparent; color: var(--sd-thick); cursor: pointer; font-weight: 600; }
.sd-controls button:disabled { opacity: .5; cursor: default; }
.sd-status { text-align: center; min-height: 1.4em; color: #94a3b8; }
.size-switch { display: flex; gap: 8px; justify-content: center; margin: 10px 0 18px; }
.size-switch a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--sd-line); color: #cbd5e1; text-decoration: none; }
.size-switch a[aria-current="page"] { background: var(--sd-thick); color: #04201c; font-weight: 700; }
@media (max-width: 420px) { .variant-wrap { padding: 24px 6px 56px; } }
