.board-game-settings{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:10px 0}.board-game-settings label{font-size:14px;display:flex;gap:6px;align-items:center}.board-game-settings select{font:inherit;border-radius:8px;padding:8px;background:white;color:#173f33;border:1px solid #b5cdc0}
.board-game-settings [hidden]{display:none!important}
#advanced-board{width:min(100%,600px);aspect-ratio:1;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));border:5px solid #36594b;border-radius:8px;overflow:hidden;margin:12px auto;box-shadow:0 5px 16px #163b3022;touch-action:manipulation}
#advanced-board .board-square{position:relative;display:grid;place-items:center;padding:0;margin:0;min-width:0;min-height:0;border:0;border-radius:0;cursor:pointer;font:inherit;aspect-ratio:1}
#advanced-board .board-square.light{background:#e8d9b8}#advanced-board .board-square.dark{background:#779780}#advanced-board[data-theme=ocean] .board-square.light{background:#deedf1}#advanced-board[data-theme=ocean] .board-square.dark{background:#5d90a5}
#advanced-board .board-square.selected{box-shadow:inset 0 0 0 4px #fbc64b;z-index:1}#advanced-board .board-square.legal:after{content:'';position:absolute;inset:38%;border-radius:50%;background:#183f32b5;outline:2px solid #fff8;pointer-events:none}
#advanced-board .board-square:focus-visible{outline:3px solid #1b5fbb;outline-offset:-3px;z-index:2}#advanced-board .board-square:disabled{cursor:default;opacity:1}
.chess-piece{font-family:'DejaVu Sans','Segoe UI Symbol','Noto Sans Symbols 2',sans-serif;font-size:clamp(21px,7vw,57px);line-height:1;text-shadow:0 1px 2px #0005}.chess-piece.white{color:#fff9eb;text-shadow:0 1px 2px #152f27,0 0 1px #152f27}.chess-piece.black{color:#172d26}
.checkers-piece{width:74%;aspect-ratio:1;border:3px solid #fff5;border-radius:50%;display:grid;place-items:center;font-size:clamp(15px,4vw,33px);box-shadow:0 2px 4px #0005;color:#fff9}.checkers-piece.red{background:#96352f}.checkers-piece.black{background:#243a34}
#advanced-history{max-height:112px;overflow:auto;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.awy-immersive #advanced-board{width:min(100%,61dvh,650px);margin:5px auto}.awy-immersive #advanced-history{max-height:55px}.awy-immersive #advanced-instructions{margin:3px 0;font-size:13px}.awy-immersive .board-game-settings{margin:4px 0}
@media(orientation:landscape) and (max-height:560px){.awy-immersive #advanced-board{width:min(100%,60dvh,650px)}.awy-immersive .chess-piece{font-size:clamp(17px,5dvh,32px)}}
/* Hand-finished board surfaces use lightweight CSS, with no downloaded textures. */
#advanced-board{border:clamp(5px,1.5vw,12px) solid #493523;border-radius:9px;box-shadow:0 10px 28px #1c2a2540,inset 0 0 0 2px #d7b787}
#advanced-board[data-theme=wood]{border-color:#51331b;box-shadow:0 8px 24px #201b1660,inset 0 0 0 2px #cf9a5b}
#advanced-board[data-theme=wood] .light{background:repeating-linear-gradient(0deg,#f4dfb7 0 4px,#e6c390 4px 5px,#f0d5a7 6px 12px)}
#advanced-board[data-theme=wood] .dark{background:repeating-linear-gradient(0deg,#86512e 0 5px,#70401e 5px 6px,#a46d40 7px 14px)}
#advanced-board[data-theme=marble]{border-color:#c6c4bc;box-shadow:0 8px 26px #28333c40,inset 0 0 0 2px #f4f3ee}
#advanced-board[data-theme=marble] .light{background:linear-gradient(135deg,#f8f8f5 10%,#dddcd9 31%,#f7f6f2 34%,#fff 60%,#d5d2cc 78%,#f8f8f6 82%)}
#advanced-board[data-theme=marble] .dark{background:linear-gradient(135deg,#3c424a 10%,#626a73 33%,#343a42 36%,#4a505a 67%,#747b84 79%,#3c424a 84%)}
#advanced-board .board-square{transition:box-shadow .12s ease,filter .12s ease}
#advanced-board .board-square.legal:after{inset:36%;background:#1b715bc7;outline:2px solid #ffead3;box-shadow:0 0 9px #132e28}
#advanced-board .board-square.selected{box-shadow:inset 0 0 0 4px #ffce56,inset 0 0 12px #ffe4a5}
.chess-piece{display:grid;place-items:center;width:90%;height:90%;font-size:clamp(18px,6.8vw,54px);filter:drop-shadow(0 3px 2px #0007)}
.chess-piece svg{display:block;width:100%;height:100%;overflow:visible}
.checkers-piece{width:76%;border:2px solid #0005;box-shadow:inset 0 0 0 3px #ffffff29,inset 0 -6px 8px #0006,0 4px 1px #0005,0 6px 5px #0005;text-shadow:0 1px 2px #000;position:relative}
.checkers-piece:before{content:'';position:absolute;inset:15%;border:1px solid #ffffff70;border-radius:50%;box-shadow:inset 0 0 0 2px #0003;pointer-events:none}
.checkers-piece.red{background:radial-gradient(circle at 30% 22%,#f69279,#b24232 48%,#77281f 90%)}
.checkers-piece.black{background:radial-gradient(circle at 30% 22%,#71807c,#2f3737 48%,#111b1b 90%)}
#advanced-captured{font-size:13px;line-height:1.4;min-height:1.4em;margin:5px 0;color:#41554c}
@media(prefers-reduced-motion:reduce){#advanced-board .board-square{transition:none}}
