/* ─────────────────────────────────────────────
 * 한봇 체커 (2026-11-13) — specs/checkers.md §4 디자인 토큰. 소재: 모래 마당에 쑥 이끼 낀 판, 붉은 먹·상아 원판 말
 * 쑥 밤 #2c3524(바탕) · 판 둘레 #38432e · 밝은 모래 #e3cf9f · 짙은 쑥 #55663e · 흑 말(붉은 먹) #6b2323 · 백 말(상아) #f1e8d2 · 놋쇠 #d6a645(고르기·지나간 길) · 홍 #d4573b(경고)
 * 시그니처(하나): 마지막 수가 지나간 길을 잇는 놋쇠 선(.ck-path.draw) — 연속 잡기의 길이 한 번 그어진다.
 * 배치·단추·설정 칸은 공용 public/css/boardgame/room.css — 여기선 토큰과 판만.
 * ───────────────────────────────────────────── */
.ck-root, .chat-fab, .chat-panel {
    --ck-olive: #2c3524;
    --ck-olive-2: #38432e;
    --ck-sand: #e3cf9f;
    --ck-moss: #55663e;
    --ck-red: #6b2323;
    --ck-ivory: #f1e8d2;
    --ck-brass: #d6a645;
    --ck-warn: #d4573b;
    --bg-bg: var(--ck-olive);
    --bg-panel: var(--ck-olive-2);
    --bg-line: color-mix(in srgb, var(--ck-sand) 18%, var(--ck-olive-2));
    --bg-ink: #f0efe6;
    --bg-dim: color-mix(in srgb, #f0efe6 60%, var(--ck-olive));
    --bg-accent: var(--ck-brass);
    --bg-accent-ink: #231c08;
    --bg-warn: var(--ck-warn);
    --chat-accent: var(--ck-brass);
    --chat-accent-ink: #231c08;
}
.ck-board { width: var(--bg-board); max-width: 100%; touch-action: manipulation; display: flex; flex-direction: column; gap: 8px; }
.ck-svg { width: 100%; aspect-ratio: 1 / 1; height: auto; display: block; border-radius: 8px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); cursor: pointer; user-select: none; }
@media (min-width: 1025px) { .ck-svgbox { width: min(100%, calc(var(--bg-board) - 64px)); margin: 0 auto; } }
.ck-svg:focus-visible { outline: 3px solid var(--ck-brass); outline-offset: 3px; }
.ck-l { fill: url(#ck-sand); } /* 칸 그림 img/checkers/art/sq-light·sq-dark.webp */
.ck-d { fill: url(#ck-moss); }
.ck-num { fill: color-mix(in srgb, var(--ck-sand) 75%, transparent); font-size: 0.2px; font-family: inherit; pointer-events: none; }
.ck-piece { pointer-events: none; }
.ck-piece.ghost { opacity: 0.32; }
.ck-piece.taken { opacity: 0.4; }
.ck-must { fill: none; stroke: var(--ck-brass); stroke-width: 0.06; pointer-events: none; }
.ck-sel { fill: none; stroke: #fff6d8; stroke-width: 0.07; pointer-events: none; }
.ck-dot { fill: var(--ck-brass); opacity: 0.85; pointer-events: none; }
.ck-dot.cap { fill: none; stroke: var(--ck-brass); stroke-width: 0.07; }
.ck-cursor { fill: none; stroke: transparent; stroke-width: 0.06; pointer-events: none; }
.ck-svg:focus-visible .ck-cursor, .ck-svg:focus .ck-cursor { stroke: #fff6d8; }
.ck-shake { animation: ck-shake 0.3s ease-in-out; }
@keyframes ck-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-0.08px); } 75% { transform: translateX(0.08px); } }
.ck-capfade { fill: var(--ck-warn); opacity: 0; pointer-events: none; }
.ck-capfade.draw { animation: ck-fade 0.4s ease-out; }
@keyframes ck-fade { from { opacity: 0.55; } to { opacity: 0; } }
/* 시그니처 — 지나간 길 놋쇠 선 */
.ck-path { fill: none; stroke: var(--ck-brass); stroke-width: 0.09; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; stroke-dasharray: 1; stroke-dashoffset: 0; pointer-events: none; }
.ck-path.draw { animation: ck-stroke 0.6s cubic-bezier(0.6, 0.05, 0.3, 1) both; }
@keyframes ck-stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ck-tools { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: clamp(12px, 0.8vw + 6px, 15px); color: var(--bg-dim); }
.ck-tools label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.ck-log { font-size: clamp(12px, 0.8vw + 6px, 15px); color: var(--bg-dim); }
.ck-log summary { cursor: pointer; }
.ck-log ol { margin: 6px 0 0; padding-left: 2.4em; max-height: 9em; overflow-y: auto; columns: 2; font-variant-numeric: tabular-nums; }
.ck-log li.cur { color: var(--ck-brass); font-weight: 700; }
.ck-mini { width: 22px; height: 22px; display: block; }
@media (prefers-reduced-motion: reduce) { .ck-path.draw, .ck-capfade.draw, .ck-shake { animation: none; } }
@media (max-width: 1024px) { .ck-board { width: min(var(--bg-board), 100%); } }
@media (min-width: 2400px) { .ck-tools, .ck-log { font-size: 18px; } }
