:root{--accent:#fbbf24;--accent2:#a78bfa}
.board-wrap{background:radial-gradient(circle at 50% 42%,rgba(255,255,255,.08),transparent 58%),linear-gradient(145deg,#0b7048,#075437);border-color:#c69a3b;box-shadow:inset 0 0 34px rgba(0,0,0,.28)}
.grid-board{grid-template-columns:repeat(8,minmax(0,1fr))!important;grid-template-rows:repeat(8,minmax(0,1fr));grid-auto-flow:row;grid-auto-rows:0;gap:0;border:clamp(5px,1vw,10px) solid #21160f;border-radius:9px;background:#111214;box-shadow:0 10px 28px rgba(0,0,0,.5),0 0 0 2px #c69a3b;overflow:hidden}
.grid-board>.cell{width:100%;height:100%;min-width:0;min-height:0;aspect-ratio:auto;overflow:hidden;align-self:stretch;justify-self:stretch;transform:none!important;border:0;border-radius:0;transition:background-color .12s ease,box-shadow .12s ease}
.grid-board>.cell.light{background:#f7f7f4}
.grid-board>.cell.dark{background:#111214}
.grid-board>.cell:hover{filter:brightness(1.09)}
.chess-piece{position:relative;z-index:1;display:block;width:94%;height:94%;object-fit:contain;pointer-events:none;user-select:none;filter:drop-shadow(0 2px 2px rgba(0,0,0,.58));transition:transform .13s ease,filter .13s ease}
.cell:hover .chess-piece,.cell.selected .chess-piece{transform:translateY(-2%) scale(1.04);filter:drop-shadow(0 3px 3px rgba(0,0,0,.7))}
.cell.legal:after,.cell.capture:after{z-index:2}
@media(max-width:420px){.grid-board{border-width:4px;border-radius:6px}.chess-piece{width:98%;height:98%}}
