#board.heritage-board{display:grid;position:relative;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--cols),minmax(0,1fr));aspect-ratio:1;max-width:540px;overflow:hidden;border:1px solid #7a745b;background:#dedcbe}
.heritage-board button{min-width:0;min-height:0;padding:0;border:0;border-radius:0;position:relative;isolation:isolate;touch-action:manipulation;background:#e5ddbc;color:#49372b;font-size:clamp(.9rem,4.5vw,2rem);font-weight:750}
.heritage-board button:disabled{opacity:1}
.heritage-board button:focus-visible{outline-offset:-2px;z-index:2}
.heritage-board button.shade{background:#a5b29b}
.heritage-board button:not([data-piece="0"])::after{content:'';position:absolute;inset:11%;border-radius:50%;z-index:-1;box-shadow:0 2px 4px #322e2870}
.heritage-board button[data-piece="1"]::after{background:radial-gradient(circle at 30% 22%,#ffefc4,#d0af79)}
[data-game=sittuyin] .heritage-board button[data-piece="1"]{color:#fff4d1}
[data-game=sittuyin] .heritage-board button[data-piece="1"]::after{background:radial-gradient(circle at 30% 22%,#bf684a,#843d31)}
.heritage-board button[data-piece="-1"]{color:#fbf0d5}
.heritage-board button[data-piece="-1"]::after{background:radial-gradient(circle at 30% 22%,#597867,#283d3c)}
.heritage-board .target::before,.heritage-board .promotion-point::before{content:'';position:absolute;border-radius:50%;inset:38%;background:#5f3d29}
.heritage-board .promotion-point:not(.target)::before{inset:46%;background:#6b6149;opacity:.65;z-index:-2}
.heritage-board .selected{box-shadow:inset 0 0 0 3px #844638}
.heritage-board .recent:not(.selected){box-shadow:inset 0 0 0 2px #75604470}
#board.heritage-board.lined{background:radial-gradient(ellipse at 30% 10%,#f6e6b8,#c4a67a)}
.heritage-board.lined button{background:transparent}
.heritage-board.lined svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.heritage-board.lined line{stroke:#6e583b;stroke-width:.027}
.reserve-piece{font-weight:750;min-width:42px}
.reserve-piece[aria-pressed=true]{background:#305b4e;color:#fff}
