.academy-table{--ink:#f2ead4;--muted:#c1c2ae;--gold:#d4b879;--edge:#cab8773a;background:linear-gradient(110deg,#1c2b2bea,#263b37e8),url('assets/medieval/aged-parchment.webp') center/1000px fixed,#253b32}.academy-table .site-header{background:#182a27bf}.academy-table .match-layout{grid-template-columns:minmax(0,700px) minmax(280px,350px);gap:30px}.academy-table .panel{background:linear-gradient(130deg,#314a41,#20392f)}.academy-table .player-strip,.academy-table .captures{background:#203a32}.academy-table #board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:2px;background:#4b3c28;padding:3px;border:1px solid #d0b783;border-radius:3px}.academy-table .mini-board-frame{padding:20px;background:linear-gradient(120deg,#947750,#4c3926);box-shadow:0 18px 42px #0006,inset 0 0 0 7px #3b3020,inset 0 0 0 10px #bc9f69;border-radius:8px}.academy-table .mini-cell{background:#d0c69e}.academy-table .mini-cell.dark{background:#698071}.academy-table .mini-piece img{image-rendering:pixelated;width:100%;height:100%}.academy-table .mini-piece{width:86%;height:86%}.academy-table .piece-owner{background:#f0ddba;border-color:#645335}.academy-table .mini-piece.p2 .piece-owner{background:#203327;border-color:#e1c994}.academy-table .cell-coordinate{font-size:8px;color:#4a5943}.academy-table .mini-cell.dark .cell-coordinate{color:#e7e0ba}.academy-table .guide-cards{grid-template-columns:repeat(3,1fr)}.academy-table .guide-card{background:#243c33}.academy-table .guide-card img{image-rendering:pixelated;object-fit:contain;width:52px;height:52px}.academy-table .guide-card .quiet-button{margin-top:14px;width:100%}.academy-table .selection-detail img{width:50px;height:50px;object-fit:contain;image-rendering:pixelated}.academy-table select{width:100%;margin-top:12px;padding:12px;background:#1b3027;color:var(--ink);border:1px solid var(--edge);border-radius:4px;font:13px system-ui}.academy-table .lesson-tip{font-size:13px;color:#decc9d}.academy-table .piece-guide{grid-template-columns:200px 1fr}.academy-table .capture-list img{image-rendering:pixelated}.academy-table .mini-cell.selected{outline:3px solid #ffe9a5}.academy-table .mini-cell.legal::after{background:#2b8650}.academy-table .mini-cell.capture::after{border-color:#a73b29}.academy-table .mini-cell.lesson-focus{box-shadow:inset 0 0 0 2px #f1d184}.academy-table .quiet-button{background:#294635}.academy-table .quiet-button:hover{background:#405d45}.academy-table dialog{background:#233c31}.academy-table .player-mark{color:#dfcfaa}.academy-table .turquoise .player-mark{color:#9ba999}@media(max-width:1000px){.academy-table .match-layout{grid-template-columns:minmax(0,1fr) 290px;gap:20px}.academy-table .piece-guide{grid-template-columns:1fr}}@media(max-width:760px){.academy-table .match-layout{grid-template-columns:1fr;max-width:620px}.academy-table .match-panel>.panel{grid-column:1/-1}.academy-table .mini-board-frame{padding:13px}.academy-table #board{gap:1px;padding:2px}.academy-table .mini-cell{min-height:0}.academy-table .guide-cards{grid-template-columns:1fr 1fr}.academy-table .cell-coordinate{font-size:6px}.academy-table .mini-cell.capture::after{border-width:2px}.academy-table .mini-piece{width:83%;height:83%}}
.academy-table{background-size:auto,cover;background-repeat:no-repeat;background-position:center;background-attachment:fixed}
.academy-table .mini-cell.capture::after{background:none}

/* Gold sanctuaries are one file by two central ranks on each edge. */
.academy-table .mini-cell.sanctuary{background:linear-gradient(135deg,#ffdf6b,#d4a332);color:#493415;box-shadow:inset 0 0 0 2px #ffeaa0;}
.academy-table .mini-cell.sanctuary .cell-coordinate{color:#493415;font-weight:bold;}
.academy-table .mini-cell.palace-locked{background-image:repeating-linear-gradient(135deg,#ffe8a51a 0 2px,transparent 2px 9px);outline:1px solid #e6ce83;outline-offset:-1px;}
.academy-table .mini-cell.selected{outline:3px solid #ffe9a5;outline-offset:-3px;}
.academy-table .mini-cell.sanctuary.last{box-shadow:inset 0 0 0 3px #fff5c3;}
.sanctuary-key{display:inline-block;width:10px;height:10px;background:#ffda58;border:1px solid #8b6827;vertical-align:middle;margin-left:8px;}
