.board8-panel { max-width: 590px; margin: 16px auto 0; }
.board8 { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 1px solid #526b5a; border-radius: 4px; overflow: hidden; }
.board8-square { position: relative; display: grid; place-items: center; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 0; background: #ead9b5; color: #26473a; }
.board8-square[data-shade="dark"] { background: #789184; color: #101f1a; }
.board8-square[aria-disabled="true"] { cursor: default; }
.board8-square[aria-disabled="false"]:hover { box-shadow: inset 0 0 0 2px #244138; }
.board8-square.last { background: #d8bf77; }
.board8-square.last[data-shade="dark"] { background: #b6a362; }
.board8-square.selected { box-shadow: inset 0 0 0 3px #224838; background: #b8cb88; }
.board8-square.check { background: #e99b82; }
.board8-square:focus-visible { z-index: 2; outline-color: #173b59; outline-offset: -3px; }
.board8-square.target::after { content: ""; position: absolute; width: 27%; aspect-ratio: 1; border-radius: 50%; background: #20382d91; pointer-events: none; }
.board8-square.capture::after { width: 92%; border: 3px solid #20382dc2; background: none; }
.board8-figure { display: block; width: 86%; aspect-ratio: 1; pointer-events: none; }
.board8-coordinate { position: absolute; font: 750 clamp(9px, 1.4vw, 12px)/1 var(--mono); pointer-events: none; }
.board8-coordinate.rank { inset: 4px auto auto 4px; }
.board8-coordinate.file { inset: auto 4px 4px auto; }
.board8-player { display: flex; align-items: center; gap: 8px; min-height: 43px; font-size: 14px; }
.board8-player:first-child { margin-top: -5px; }
.piece-chip { display: block; flex: none; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 4px; background: #e7ebe5; }
.board8-turn { margin-left: auto; color: #285744; font: 700 10px/1.3 var(--mono); text-transform: uppercase; }
.board8-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.board8-tools p { margin: 0; color: var(--muted); font: 650 12px/1.5 var(--mono); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
