/* CHESS (Шатар) — flat warm board, no animations or transitions. */
.games-view .chess-view.game-panel, .chess-view * { animation:none !important; transition:none !important; }
.ch-hero { margin-bottom:18px; }
.ch-hero .eyebrow { color:var(--green-700); font-weight:800; letter-spacing:.14em; font-size:11px; }
.ch-hero h2 { font-family:var(--display,inherit); font-size:clamp(24px,4vw,32px); margin:2px 0 4px; letter-spacing:-.02em; }
.ch-hero p { margin:0; font-size:13px; color:var(--ink-3); }

.ch-layout { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:18px; align-items:start; }
.ch-board-wrap { position:relative; width:100%; max-width:640px; margin:0 auto; }
.ch-board { container-type:inline-size; display:grid; grid-template-columns:repeat(8,1fr); aspect-ratio:1; border:6px solid #6b5a43; border-radius:12px; overflow:hidden; box-shadow:var(--shadow); }

.ch-sq { position:relative; display:grid; place-items:center; min-width:0; aspect-ratio:1; margin:0; padding:0; border:0; border-radius:0; font:inherit; cursor:pointer; }
.ch-sq.light { background:#efe3cc; }
.ch-sq.dark { background:#b58f68; }
.ch-sq.is-last.light { background:#e3d08a; }
.ch-sq.is-last.dark { background:#c4a259; }
.ch-sq.is-check { background:#d9776a !important; }
.ch-sq.is-sel { box-shadow:inset 0 0 0 4px #4f6b3f; }
.ch-sq:focus-visible { outline:3px solid #4f6b3f; outline-offset:-3px; }
.ch-sq.is-target::after { content:""; width:28%; height:28%; border-radius:50%; background:rgba(55,75,42,.45); }
.ch-sq.is-capture::after { content:""; position:absolute; inset:5%; border-radius:50%; border:max(3px,.8cqi) solid rgba(55,75,42,.55); }

.ch-pc { font-family:"Segoe UI Symbol","Noto Sans Symbols 2","Apple Symbols","DejaVu Sans",serif; font-size:9cqi; line-height:1; pointer-events:none; user-select:none; }
.ch-pc.w { color:#fbf8f1; text-shadow:0 0 1px #2b241b, 0 0 1px #2b241b, 0 0 2px #2b241b, 0 1px 1px #2b241b; }
.ch-pc.b { color:#2b241b; text-shadow:0 1px 0 rgba(255,255,255,.25); }
.ch-rank, .ch-file { position:absolute; font-size:max(8px,1.5cqi); font-weight:800; pointer-events:none; }
.ch-rank { top:3%; left:5%; }
.ch-file { bottom:2%; right:6%; }
.ch-sq.light .ch-rank, .ch-sq.light .ch-file { color:#9a7552; }
.ch-sq.dark .ch-rank, .ch-sq.dark .ch-file { color:#f3e8d4; }

.ch-promo { position:absolute; inset:0; display:grid; place-items:center; padding:12px; background:rgba(33,28,21,.45); border-radius:12px; }
.ch-promo[hidden] { display:none; }
.ch-promo-box { display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px; border-radius:16px; background:var(--surface); box-shadow:var(--shadow-lg); }
.ch-promo-box p { margin:0; font-weight:800; }
.ch-promo-box > div { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.ch-promo-box [data-promo]:not(.btn) { display:flex; flex-direction:column; align-items:center; gap:4px; width:72px; padding:8px 4px; border-radius:12px; border:1px solid var(--line-2); background:#efe3cc; color:#2b241b; font:inherit; cursor:pointer; }
.ch-promo-box [data-promo]:not(.btn):hover { border-color:var(--accent); }
.ch-promo-box .ch-pc { font-size:44px; }
.ch-promo-box small { font-size:11px; font-weight:800; }

.ch-side { display:flex; flex-direction:column; gap:14px; min-width:0; }
.ch-box { padding:16px; border-radius:18px; }
.ch-box h4 { margin:0 0 10px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-3); }
.ch-status { margin:0; display:flex; align-items:center; gap:10px; font-size:16px; font-weight:800; }
.ch-status.is-check { color:var(--danger); }
.ch-status.is-over { color:var(--accent-hover,var(--accent)); }
.ch-dot { flex:none; display:inline-block; width:16px; height:16px; border-radius:50%; border:2px solid #2b241b; }
.ch-dot.w { background:#fbf8f1; }
.ch-dot.b { background:#2b241b; }
.ch-player { display:flex; align-items:center; gap:8px; min-height:40px; padding:6px 10px; border-radius:12px; border:1px solid transparent; }
.ch-player + .ch-player { margin-top:4px; }
.ch-player.is-turn { background:var(--accent-soft); border-color:var(--line-2); }
.ch-player b { font-weight:800; }
.ch-taken { margin-left:auto; display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:0 1px; }
.ch-taken .ch-pc { font-size:18px; }
.ch-adv { margin-left:5px; font-size:12px; font-weight:800; color:var(--ink-3); }
.ch-moves { display:grid; grid-template-columns:auto 1fr 1fr; gap:4px 10px; max-height:260px; overflow:auto; font-size:13px; font-variant-numeric:tabular-nums; }
.ch-moves .n { color:var(--ink-3); }
.ch-moves .is-last { font-weight:800; color:var(--accent-hover,var(--accent)); }
.ch-empty { grid-column:1 / -1; color:var(--ink-3); }
.ch-actions { display:flex; flex-wrap:wrap; gap:6px; }

@media (max-width:900px) { .ch-layout { grid-template-columns:1fr; } }
