/* ─────────────────────────────────────────────
 * 한봇 오목 (2026-11-13) — specs/omokpan.md §5 디자인 토큰. 소재: 은행나무 판의 나뭇결과 유리 흑백 돌(그림: img/omokpan/art)
 * 감색 밤 #243246(바탕) · 판 둘레 #2f3f57 · 판 #d8a85c(둘레 선 색 계산용) · 판 줄 #5b3e1f · 흑돌 #16181c · 백돌 #f3f1ea · 청록 #3f9e8a(내 차례·마지막 수) · 홍 #cf5a42(금지·경고)
 * 시그니처(하나): 이긴 다섯 돌을 잇는 붓 먹선(.op-ink.draw) — 한 번 그어짐.
 * 배치·단추·설정 칸은 공용 public/css/boardgame/room.css — 여기선 토큰과 판만.
 * ───────────────────────────────────────────── */
.op-root, .chat-fab, .chat-panel {
    --op-navy: #243246;
    --op-navy-2: #2f3f57;
    --op-wood: #d8a85c;
    --op-grain: #5b3e1f;
    --op-black: #16181c;
    --op-white: #f3f1ea;
    --op-teal: #3f9e8a;
    --op-red: #cf5a42;
    --bg-bg: var(--op-navy);
    --bg-panel: var(--op-navy-2);
    --bg-line: color-mix(in srgb, var(--op-wood) 18%, var(--op-navy-2));
    --bg-ink: #eef0f3;
    --bg-dim: color-mix(in srgb, #eef0f3 60%, var(--op-navy));
    --bg-accent: var(--op-teal);
    --bg-accent-ink: #0f1c19;
    --bg-warn: var(--op-red);
    --chat-accent: var(--op-teal);
    --chat-accent-ink: #0f1c19;
}
.op-board { position: relative; width: var(--bg-board); max-width: 100%; aspect-ratio: 1 / 1; touch-action: manipulation; }
/* 돌은 캔버스(.op-stones)에 그림 — 브라우저의 '웹사이트 어둡게 보기'가 돌 그림 색을 바꾸지 못하게. 그 위 층(.op-top)에 마지막 수·먹선·키보드 칸 */
.op-stones, .op-top { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.op-svg { width: 100%; height: 100%; display: block; border-radius: 10px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); cursor: pointer; }
.op-svg:focus-visible { outline: 3px solid var(--op-teal); outline-offset: 3px; }
.op-wood { fill: url(#op-tex); } /* 은행나무 판 그림(img/omokpan/art/board.webp) */
.op-grid { stroke: var(--op-grain); stroke-width: 0.035; fill: none; }
.op-star { fill: var(--op-grain); }
.op-last { fill: var(--op-teal); }
.op-forbid { stroke: var(--op-red); stroke-width: 0.07; stroke-linecap: round; }
.op-cursor { fill: none; stroke: transparent; stroke-width: 0.06; }
.op-svg:focus-visible ~ .op-top .op-cursor, .op-svg:focus ~ .op-top .op-cursor { stroke: var(--op-teal); }
.op-ghost { position: absolute; opacity: 0.38; pointer-events: none; }
/* 시그니처 — 붓 먹선 */
.op-ink { fill: none; stroke: #1a120c; stroke-width: 0.3; stroke-linecap: round; opacity: 0.82; stroke-dasharray: 1; stroke-dashoffset: 0; }
.op-ink.draw { animation: op-stroke 0.9s cubic-bezier(0.6, 0.05, 0.3, 1) both; }
@keyframes op-stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.op-mini { width: 22px; height: 22px; display: block; }
@media (prefers-reduced-motion: reduce) { .op-ink.draw { animation: none; } }
@media (max-width: 1024px) { .op-board { width: min(var(--bg-board), 100%); } }
