.chess-play-layout{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-width:0}
.chess-board-stack{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}
.chess-captures{width:152px;flex:0 0 152px;box-sizing:border-box;padding:12px;background:var(--bg2);border:1px solid var(--line);border-radius:8px}
.chess-captures h2{font-size:13px;margin:0 0 9px;color:var(--text)}
.chess-capture-row+.chess-capture-row{border-top:1px solid var(--line);padding-top:8px;margin-top:8px}
.chess-capture-row strong,.chess-capture-empty{font-size:12px;color:var(--muted)}
.chess-capture-list{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-height:22px;margin-top:3px}
.chess-capture-piece{display:inline-flex;align-items:center;gap:2px;font-size:11px}
.chess-capture-piece svg{width:20px;height:20px;flex:none}
@media(max-width:700px){
 .chess-play-layout{flex-direction:column;gap:8px}
 .chess-captures{display:grid;grid-template-columns:1fr 1fr;gap:4px 10px;width:min(100%,var(--chess-board-width,340px));flex:none;padding:7px 9px}
 .chess-captures h2{grid-column:1/-1;margin:0}
 .chess-capture-row+.chess-capture-row{border-top:0;border-inline-start:1px solid var(--line);padding:0 0 0 9px;margin:0}
}

/* Captures sit next to the side that made them. The order follows the board. */
.chess-captures {display:flex;flex-direction:column;justify-content:space-between;gap:8px;align-self:stretch}
.chess-capture-row {min-width:0;flex:1;display:flex;align-items:flex-start}
.chess-capture-row+.chess-capture-row {align-items:flex-end}
.chess-capture-empty {color:var(--muted);opacity:.8}
body.local-app[data-app=chess] header.dp-app-header #mode {appearance:auto;width:auto;min-width:9.5rem;padding-inline:10px 26px;line-height:normal;letter-spacing:normal}
.chess-flip-option {white-space:nowrap;min-height:36px;cursor:pointer}
.chess-flip-option input {width:16px;height:16px;accent-color:var(--green)}
.local-app[data-app=chess] .chessboard {grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));gap:0}
.local-app[data-app=chess] .chessboard .square {width:100%;height:100%;outline-offset:-3px}
.local-app[data-app=chess] .chessboard .square:focus:not(:focus-visible) {outline:none}
.local-app[data-app=chess] .chessboard .square:focus-visible {outline:2px solid #f5d742}
@media(max-width:700px){
 .chess-captures {display:grid;grid-template-columns:1fr 1fr;align-self:center}
 .chess-capture-row+.chess-capture-row {align-items:flex-start}
}
