/* Chess (/games/chess/): extras on top of the shared board styles in boards.css (#chess-board, .cp-sq, .pc) */
.ch-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; }
.ch-strip { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: min(100%, 520px); min-height: 28px; padding: 0 4px; font: 650 14px/1.2 var(--font-body); color: var(--text); }
.ch-who { display: inline-flex; align-items: center; gap: 7px; opacity: .75; }
.ch-who.on { opacity: 1; }
.ch-who.on .ch-dot { box-shadow: 0 0 0 3px rgba(212,255,58,.75); }
.ch-dot { width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid #12142a; }
.ch-dot.w { background: #fffdf6; } .ch-dot.b { background: #191c2e; }
.ch-cap { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; }
.ch-cap .pc { font-size: 17px; letter-spacing: -3px; text-shadow: none; }
.ch-cap .pc.w { color: #fffdf6; -webkit-text-stroke: .8px #12142a; } .ch-cap .pc.b { color: #191c2e; }
.ch-cap b { font-size: 12px; color: var(--text-dim); }
#chess-board .cp-sq.last::before { content: ""; position: absolute; inset: 0; background: rgba(255,200,61,.42); }
#chess-board .cp-sq.hint::before { content: ""; position: absolute; inset: 0; background: rgba(59,130,246,.5); }
#chess-board .cp-sq.bad::before { content: ""; position: absolute; inset: 0; background: rgba(239,68,68,.55); }
#chess-board .cp-sq.check { background-image: radial-gradient(circle, rgba(239,68,68,.85) 0 30%, rgba(239,68,68,0) 70%); }
#chess-board .cp-sq.dot::after { content: ""; position: absolute; width: 28%; height: 28%; border-radius: 50%; background: rgba(18,20,42,.28); z-index: 2; pointer-events: none; }
#chess-board .cp-sq.cap::after { content: ""; position: absolute; inset: 4%; border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(18,20,42,.3); z-index: 2; pointer-events: none; }
#chess-board .pc { touch-action: none; }
.cp-promo { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(10,12,24,.55); }
.cp-promo > div { display: flex; gap: 6px; background: var(--bg-card,#fff); padding: 8px; border-radius: 12px; box-shadow: var(--shadow-3); }
.cp-promo button { width: min(16cqw,70px); aspect-ratio: 1; border: 0; border-radius: 10px; background: #eee7d3; cursor: pointer; display: grid; place-items: center; container-type: inline-size; }
.cp-promo .pc { font-size: 80cqw; }
.ch-ghost { filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.ch-ghost.w { color: #fffdf6; text-shadow: 0 0 1px #12142a, 1px 1px 0 #12142a, -1px -1px 0 #12142a, 1px -1px 0 #12142a, -1px 1px 0 #12142a; }
.ch-ghost.b { color: #191c2e; }
.cp-status { min-height: 20px; font: 650 14px/1.3 var(--font-body); color: var(--text-dim); text-align: center; }
.cp-status.good { color: #16a34a; } .cp-status.bad { color: #ef4444; }
#ch-ctrl { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
#ch-ctrl .btn { min-height: 36px; }
#ch-ctrl [hidden] { display: none !important; }
#ch-movelist { display: flex; flex-wrap: wrap; gap: 2px 8px; justify-content: center; max-width: 520px; max-height: 84px; overflow-y: auto; font: 600 13px/1.5 var(--font-body); color: var(--text); }
#ch-movelist .n { color: var(--text-dim); }
