.game { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(240px,.75fr); gap:1rem; align-items:start; }
.play { padding:clamp(12px,3vw,28px); background:#14251f; border:1px solid #385748; border-radius:16px; }
.heading,.tools,.modes { display:flex; justify-content:space-between; align-items:center; gap:.5rem; }
.heading h2 { margin:0; font-size:clamp(.9rem,3.5vw,1.2rem); }
#filled { color:#e7c77c; font-family:monospace; }
#board { display:grid; grid-template-columns:repeat(var(--side),minmax(0,1fr)); gap:4px; margin:1rem auto; max-width:480px; }
.cell { position:relative; border-radius:6px; aspect-ratio:1; min-width:0; min-height:0; padding:0; background:#1b3027; border:1px solid #47685a; font:600 clamp(1.1rem,4.3vw,2.4rem) monospace; }
.cell[data-value="0"] { background:#3f7d66; border-color:#6aa58c; color:#eefaf3; }
.cell[data-value="1"] { background:#a8742f; border-color:#d39b54; color:#fff3df; }
.cell.fixed::after { content:""; position:absolute; bottom:10%; left:39%; right:39%; border-bottom:2px solid currentColor; }
.cell.error { box-shadow:inset 0 0 0 2px #c94c42; }
#status { min-height:1.7em; }
#status.warn { color:#ffc59c; }
.tools button,.modes button { flex:1; }
.modes { margin:1rem 0 1.6rem; }

.controls ul { padding-left:1.3rem; line-height:1.7; }
@media(max-width:700px){.game{grid-template-columns:1fr;}.cell{border-radius:4px;}}
[data-theme="light"] .play { color:#eef5ef;--text-2:#c5d9ca; }
[data-theme="light"] #filled { color:#f3d088; }
