#board.classics-board{position:relative;width:min(100%,610px);margin:auto;display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));isolation:isolate;border:1px solid #907655;border-radius:13px;overflow:hidden;background:#e3c58e}
.classics-board:not(.pits){aspect-ratio:1;grid-template-rows:repeat(var(--cols),minmax(0,1fr))}
.classics-board .cell{position:relative;display:grid;place-content:center;border:0;border-radius:0;min-height:0;min-width:0;padding:0;background:none;color:#382c25;isolation:isolate;touch-action:manipulation;opacity:1;font-weight:700}
.classics-board .cell:focus-visible{outline-offset:-2px;z-index:2}
.squares .cell{background:#eee0be}
.squares .cell[data-tone=b]{background:#a5795b;color:#fff}
.squares .cell.selected,.classics-board .cell.selected{box-shadow:inset 0 0 0 3px #285c52}
.classics-board .cell.target::before{content:'';position:absolute;inset:33%;border-radius:50%;background:#0f5b48a0;z-index:2}
.classics-board .cell.recent{box-shadow:inset 0 0 0 2px #67482680}
.classics-board .cell[data-piece]:not([data-piece=""])::after{content:'';position:absolute;width:76%;height:76%;inset:12%;border-radius:50%;z-index:-1;box-shadow:0 2px 4px #33271560,inset 0 0 0 1px #72593666}
.classics-board .cell[data-piece=a]::after{background:radial-gradient(circle at 32% 22%,#fffbe9,#edd4a8 75%)}
.classics-board .cell[data-piece=b]::after{background:radial-gradient(circle at 32% 22%,#506e68,#203633 78%)}
.classics-board .cell[data-piece=b]{color:#fff8e2}
.squares .cell[data-piece=a]{color:#493023}
.squares .cell{font-size:clamp(.92rem,4.7vw,2.3rem)}
#board.intersections{background:radial-gradient(ellipse at 35% 22%,#f5e1b2,#d6af73)}
[data-game=renju] #board.intersections{background:radial-gradient(ellipse at 35% 22%,#e1e9cd,#a8c6b2)}
.intersections .cell::before{content:'';position:absolute;inset:0;background:linear-gradient(#694827,#694827) center/100% 1px no-repeat,linear-gradient(#694827,#694827) center/1px 100% no-repeat;opacity:.72;clip-path:inset(var(--line-t,0) var(--line-r,0) var(--line-b,0) var(--line-l,0))}
.intersections .cell.edge-l::before{--line-l:50%}
.intersections .cell.edge-r::before{--line-r:50%}
.intersections .cell.edge-t::before{--line-t:50%}
.intersections .cell.edge-b::before{--line-b:50%}
.intersections .cell.star{background:radial-gradient(circle,#695034 12%,transparent 13%)}
.intersections .cell[data-piece]:not([data-piece=""])::after{z-index:1;width:82%;height:82%;inset:9%}
.intersections .cell.dead::after{opacity:.35}
.intersections .cell.recent{background:#754c4940}
#board.pits{background:linear-gradient(135deg,#dfb792,#9a6149);gap:4px;padding:6px}
.pits .cell{aspect-ratio:.78;border-radius:50%;background:radial-gradient(ellipse at 50% 65%,#f0d6ac,#c2956e);box-shadow:inset 0 2px 4px #613e27aa;font-size:clamp(.72rem,3vw,1.35rem)}
.pits .cell.start{border:2px solid #5d734c}
.pits .cell.marked{background:radial-gradient(ellipse,#ffe4ae,#d4a568)}
.race .cell{font-size:clamp(.51rem,1.6vw,1rem);background:#f4e7c9;border:.5px solid #a98c62}
.race .cell[data-tone=b]{background:#d5e3c9}
.race .cell[data-point="99"]{background:#36705c;color:white}
.race svg{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;opacity:.75}
.race svg path{fill:none;stroke-linecap:round}
.ladder{stroke:#28715a;stroke-width:.065}
.snake{stroke:#a44c32;stroke-width:.12;stroke-dasharray:.23 .08}
.token{position:absolute;z-index:2;inset:55% auto auto 9%;width:35%;aspect-ratio:1;border-radius:50%;background:#faffed;border:2px solid #335b49;box-shadow:0 1px 3px #43332088}
.token-1{left:53%;background:#50323f;border-color:#fcdfbd}
.classics-board .cell:not(:disabled):hover{box-shadow:inset 0 0 0 2px #285c5280}
.settings #size-label[hidden]{display:none}

#board .race svg,#board.race svg{z-index:1;pointer-events:none}
