/* ─────────────────────────────────────────────
 * 고누 (2026-11-13) — specs/gonu.md §4 디자인 토큰. 소재: 마당 흙에 꼬챙이로 그은 판, 조약돌 대 기와 조각
 * 화강암 #33424a(바탕) · 판(다져진 흙) #a88a63 · 새긴 홈 #5a4530 · 조약돌 #ece7da · 기와 조각 #3e4752 · 개나리 #e2b13c(강조) · 경고 #d2553f
 * 시그니처(하나): 꼰·잡기 줄을 분필처럼 한 번 긋는 선(.gn-chalk.draw).
 * 배치·단추·설정 칸은 공용 public/css/boardgame/room.css — 여기선 토큰과 판만.
 * ───────────────────────────────────────────── */
.gn-root, .chat-fab, .chat-panel {
    --gn-granite: #33424a;
    --gn-granite-2: #3e4f58;
    --gn-earth: #a88a63;
    --gn-groove: #5a4530;
    --gn-ridge: #c9ad84;
    --gn-pebble: #ece7da;
    --gn-tile: #3e4752;
    --gn-forsythia: #e2b13c;
    --gn-warn: #d2553f;
    --gn-chalk: #fff6dc;
    --bg-bg: var(--gn-granite);
    --bg-panel: var(--gn-granite-2);
    --bg-line: color-mix(in srgb, var(--gn-pebble) 16%, var(--gn-granite-2));
    --bg-ink: #eef0ec;
    --bg-dim: color-mix(in srgb, #eef0ec 62%, var(--gn-granite));
    --bg-accent: var(--gn-forsythia);
    --bg-accent-ink: #2a1f05;
    --bg-warn: var(--gn-warn);
    --chat-accent: var(--gn-forsythia);
    --chat-accent-ink: #2a1f05;
}
.gn-board { width: var(--bg-board); max-width: 100%; touch-action: manipulation; display: flex; flex-direction: column; gap: 8px; }
.gn-svgbox { width: 100%; }
.gn-svg { width: 100%; aspect-ratio: 1 / 1; height: auto; display: block; border-radius: 10px; box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35); cursor: pointer; user-select: none; }
.gn-svg:focus-visible { outline: 3px solid var(--gn-forsythia); outline-offset: 3px; }
.gn-earth { stroke: color-mix(in srgb, var(--gn-groove) 50%, transparent); stroke-width: 0.4; }
.gn-groove { fill: none; stroke: var(--gn-groove); stroke-width: 1.6; stroke-linecap: round; }
.gn-ridge { fill: none; stroke: var(--gn-ridge); stroke-width: 0.5; stroke-linecap: round; opacity: 0.8; pointer-events: none; }
.gn-umul .gn-groove { stroke-width: 2.2; }
.gn-hole { fill: var(--gn-groove); }
.gn-name { fill: color-mix(in srgb, var(--gn-groove) 85%, #000); font-size: 3px; font-family: inherit; pointer-events: none; }
.gn-cham .gn-name { font-size: 2.6px; }
.gn-hit { fill: transparent; }
.gn-pc { pointer-events: none; }
.gn-pc .gn-shadow, .gn-stake .gn-shadow { fill: rgba(40, 25, 10, 0.35); }
.gn-ring { fill: none; stroke: none; }
.gn-pc.ghost { opacity: 0.6; }
.gn-pc.sel .gn-ring { stroke: var(--gn-forsythia); stroke-width: 1.2; }
.gn-pc.last .gn-ring { stroke: var(--gn-forsythia); stroke-width: 0.8; }
.gn-last-from { fill: none; stroke: var(--gn-forsythia); stroke-width: 0.5; stroke-dasharray: 1.2 1; opacity: 0.8; pointer-events: none; }
.gn-dot { fill: var(--gn-forsythia); opacity: 0.9; pointer-events: none; }
.gn-dot.soft { opacity: 0.45; }
.gn-take { fill: none; stroke: var(--gn-warn); stroke-width: 0.9; stroke-dasharray: 2 1.2; pointer-events: none; }
.gn-take.on { stroke-dasharray: none; stroke-width: 1.4; }
.gn-cursor { fill: none; stroke: transparent; stroke-width: 0.8; pointer-events: none; }
.gn-svg:focus-visible .gn-cursor, .gn-svg:focus .gn-cursor { stroke: var(--gn-chalk); }
.gn-pc.shake { animation: gn-shake 0.3s ease-in-out; }
@keyframes gn-shake { 0%, 100% { translate: 0 0; } 25% { translate: -1px 0; } 75% { translate: 1px 0; } }
/* 시그니처 — 분필 선 */
.gn-chalk { fill: none; stroke: var(--gn-chalk); stroke-width: 1.3; stroke-linecap: round; opacity: 0.9; stroke-dasharray: 1; stroke-dashoffset: 0; pointer-events: none; filter: drop-shadow(0 0 0.6px rgba(255, 250, 230, 0.9)); }
.gn-chalk.draw { animation: gn-stroke 0.6s cubic-bezier(0.6, 0.05, 0.3, 1) both; }
@keyframes gn-stroke { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.gn-poof { fill: var(--gn-chalk); opacity: 0; pointer-events: none; }
.gn-poof.draw { animation: gn-fade 0.45s ease-out; }
@keyframes gn-fade { from { opacity: 0.6; } to { opacity: 0; } }
.gn-bar { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: clamp(12px, 0.8vw + 6px, 15px); color: var(--bg-dim); min-height: 1.6em; }
.gn-bname { color: var(--bg-ink); }
.gn-phase { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--gn-forsythia) 22%, transparent); color: var(--bg-ink); }
.gn-side { display: inline-flex; gap: 5px; align-items: center; font-variant-numeric: tabular-nums; }
.gn-quiet { font-variant-numeric: tabular-nums; }
.gn-mini { width: 18px; height: 18px; display: block; }
.bg-sicon .gn-mini { width: 22px; height: 22px; }
.gn-tools { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: clamp(12px, 0.8vw + 6px, 15px); color: var(--bg-dim); }
.gn-tools label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.gn-log { font-size: clamp(12px, 0.8vw + 6px, 15px); color: var(--bg-dim); }
.gn-log summary { cursor: pointer; }
.gn-log ol { margin: 6px 0 0; padding-left: 2.4em; max-height: 9em; overflow-y: auto; columns: 2; font-variant-numeric: tabular-nums; }
.gn-log li.cur { color: var(--gn-forsythia); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .gn-chalk.draw, .gn-poof.draw, .gn-pc.shake { animation: none; } }
@media (max-width: 1024px) { .gn-board { width: min(var(--bg-board), 100%); } }
@media (max-width: 640px) { .gn-board { width: 100%; } .gn-bar { gap: 2px 10px; } }
@media (min-width: 2400px) { .gn-bar, .gn-tools, .gn-log { font-size: 18px; } .gn-mini { width: 24px; height: 24px; } }
