#board.ultimate-board{max-width:580px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(4px,1vw,9px);padding:clamp(4px,1vw,9px);background:#a49a92;border:1px solid #827670}
.small-board{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));aspect-ratio:1;gap:2px;padding:3px;border-radius:8px;background:#bbb0a4;border:2px solid transparent}
.small-board.active{background:#688d78;border-color:#476c54}
.small-board.preview{outline:3px dashed #985a35;outline-offset:-2px;z-index:1}
.small-board.winning{background:#e8c471;border-color:#755121}
.small-board button{min-height:0;min-width:0;padding:0;border:0;border-radius:4px;background:#eee5cd;color:#534d46;touch-action:manipulation;font-size:clamp(.8rem,4vw,1.8rem);font-weight:760}
.small-board button:disabled{opacity:1}
.small-board button[data-piece="1"]{color:#a1462d}
.small-board button[data-piece="2"]{color:#24685d}
.small-board button:not(:disabled):hover{background:#d3e4bc}
.small-board button:focus-visible{outline-offset:-2px;z-index:2}
.small-board button.recent{box-shadow:inset 0 0 0 2px #8d623d}
.small-board:not([data-closed="0"]) button{opacity:.35}
.board-mark{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none;font-size:clamp(1.55rem,9vw,4.8rem);font-weight:800;color:#594c43;text-shadow:0 1px 3px #fff4d7}
.small-board[data-closed="1"] .board-mark{color:#923f2a}
.small-board[data-closed="2"] .board-mark{color:#165b51}
@media(max-width:370px){#board.ultimate-board{gap:3px;padding:3px}.small-board{gap:1px;padding:2px;border-width:1px}}
