.sh-setup{margin-bottom:4px}
.sh-controls{align-items:center;flex-wrap:wrap}
.sh-layout{display:grid;grid-template-columns:minmax(0,520px) minmax(160px,1fr);gap:18px;align-items:start}
.sh-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));border:2px solid #4d392a;border-radius:10px;overflow:hidden;touch-action:manipulation}
.sh-square{position:relative;display:grid;place-items:center;min-width:0;aspect-ratio:1;border:0;padding:0;border-radius:0;color:#222;background:#f1dfc1;cursor:pointer}
.sh-square.sh-dark{background:#a77954}
.sh-square.sh-last{box-shadow:inset 0 0 0 999px #ffd74748}
.sh-square.sh-hint{box-shadow:inset 0 0 0 999px #4ade8066}
.sh-square[aria-pressed=true],.sh-square:focus-visible{outline:3px solid #176c69;outline-offset:-3px;z-index:1}
.sh-square.sh-check{background:#e78f88}
.sh-square.sh-target::after{content:"";position:absolute;width:22%;height:22%;border-radius:50%;background:#126560aa;pointer-events:none}
.sh-square.sh-capture::after{width:88%;height:88%;background:transparent;border:3px solid #126560aa}
.sh-piece{font:clamp(1.25rem,8.5vw,3rem)/1 "Segoe UI Symbol","DejaVu Sans",sans-serif;pointer-events:none}
.sh-piece.sh-white{color:#fff9e8;text-shadow:0 1px 2px #26211e,0 0 2px #26211e}
.sh-coordinate{position:absolute;left:3px;bottom:1px;font-size:clamp(.52rem,1.3vw,.72rem);font-weight:700;pointer-events:none}
.sh-captured{min-height:1.6em;font:1.2rem/1.4 "Segoe UI Symbol","DejaVu Sans",sans-serif;letter-spacing:-.1em;display:flex;align-items:center;gap:6px}
.sh-captured b{font:600 .8rem/1 inherit;font-family:inherit;letter-spacing:0;margin-left:6px}
.sh-history{padding:12px;border:1px solid var(--border);border-radius:10px}
.sh-history h3{margin:0}
.sh-history ol{max-height:340px;overflow:auto;padding-left:30px;min-height:1.5em;font-variant-numeric:tabular-nums}
#sh-promote{max-width:min(92vw,440px);padding:20px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:inherit}
#sh-promote::backdrop{background:#0008}
@media(max-width:620px){.sh-layout{grid-template-columns:minmax(0,1fr)}}
