.next-board .next-controls{display:flex;gap:.4rem;flex-wrap:wrap;align-items:center;margin-block:.55rem}
.next-board .next-controls button,.next-board .history-jump{min-block-size:44px}
.next-board .next-controls button:focus-visible,.pro-study button:focus-visible{outline:3px solid #b26531;outline-offset:2px}
.gm-board-view{overflow:auto;border-radius:14px;overscroll-behavior:contain;max-inline-size:100%}
.gm-board-view.zoomed{max-block-size:min(62vh,600px)}
.gm-board-view.zoomed .gm-board{inline-size:max(100%,645px);max-inline-size:none}
.gm-board-view .gm-board{touch-action:pan-x pan-y}
.next-board .gm-cell{background:linear-gradient(#72573172,#72573172) center/1px 100% no-repeat,linear-gradient(#72573172,#72573172) center/100% 1px no-repeat!important}
.next-board .gm-cell.winning:after{outline-color:#07654d;outline-width:3px;box-shadow:0 0 0 1px #fff6d2}
.next-board .gm-cell.last:not(.winning):before{inset:39%;border-color:#e78d32}
.next-board .gm-cell.hint-point:not(.selected):before{content:"";position:absolute;inset:24%;border:2px dashed #923619;border-radius:50%}
#gm-pro-hint:empty{display:none}
#gm-pro-hint{margin:.35em 0}
.next-board #gm-confirm{min-height:44px;padding-inline:1rem}
.next-board .board .square.capture::after{outline:2px solid #b0452e;outline-offset:-2px}
.next-board .board .square.check{box-shadow:inset 0 0 0 3px #b2452e}
.next-board #promotions button{min-inline-size:50px;min-block-size:54px}
.next-board .history-jump{min-inline-size:4rem;margin:.1rem}
.pro-study .study-board.gomoku-study{max-inline-size:100%}
.pro-study .gomoku-study .study-square{background:#ddbe88;border-color:#94663834}
.pro-study .gomoku-study .study-piece[data-side=black]{background:#222e2b}
.pro-study .gomoku-study .study-piece[data-side=white]{background:#fff8dc;border:1px solid #a59268}
.pro-study .gomoku-study .study-win{box-shadow:inset 0 0 0 2px #087a60}
.pro-study .chess-study .study-square{background:#f1e3c4}
.pro-study .chess-study .study-dark{background:#8f9d7d}
.pro-study .chess-study svg{width:83%;height:83%;pointer-events:none}
.pro-study .study-actions[hidden],.next-board [hidden]{display:none}
@media(max-width:480px){
  .next-board .next-controls{gap:.3rem}
  .next-board .next-controls button{font-size:.88rem;padding-inline:.55rem}
}
