/* Compact action groups scale independently of the playing surface. */
.game-actions,.board-go .buttons,.board-go .review-actions,.board-go .result-actions{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px
}
.board-gomuku .game-actions{justify-content:center}
.board-gomuku .game-actions button,.board-gomuku #online-panel button,
.board-go .buttons button,.board-go .review-actions button,.board-go .result-actions button{
  width:auto;max-width:100%;min-height:44px;margin:0;padding:6px 12px;
  border-width:2px;border-radius:10px;font-size:.94rem;line-height:1.25;
  letter-spacing:normal;white-space:normal;overflow-wrap:anywhere
}
.board-gomuku .game-actions button{box-shadow:2px 2px 0 var(--text-dark)}
.board-gomuku #online-panel button{margin-block:4px}
.board-gomuku #h1-title{margin:18px auto;text-align:center}
.board-gomuku .control-panel{min-width:0;padding:clamp(14px,2vw,24px)}
.board-gomuku .main-content{width:min(1180px,calc(100% - 24px));padding:clamp(8px,2vw,24px);gap:18px}
.board-gomuku .chessboard-area{width:min(58%,660px)}
@media(max-width:950px){
  .board-gomuku .main-content{align-items:center}
  .board-gomuku .chessboard-area,.board-gomuku .control-panel{width:min(100%,660px)}
}

/* The board frame and intersection spacing are shared by Go play and replay. */
.site-theme.board-go .page{width:min(1180px,calc(100% - 24px))}
.site-theme.board-go .topbar{min-height:0;margin-bottom:16px}
.site-theme:is(.board-gomuku,.board-go) :is(.board-shell,.review-shell,#chessboard-wrapper){
  background:#edce91;border:2px solid #775336;border-radius:12px;box-shadow:inset 0 0 0 3px #f9dfa4
}
.site-theme.board-gomuku .chessboard-area{padding:clamp(6px,1vw,14px)}
.site-theme.board-gomuku #chessboard-wrapper{padding:0;overflow:hidden}
.site-theme.board-gomuku #chessboard{width:100%;aspect-ratio:1;height:auto;border-radius:0}
