/* ─────────────────────────────────────────────
 * 마을 지도 (2026-11-13) — 소재: 조선 고지도(읍치 지도). 물빛 바탕 위에 석록 논밭, 주홍 길선, 돌담 읍성과 기와 지붕
 * 쪽빛 #1c3347(바탕) · 패널 #26445d · 물빛 #2e5a72(지도 빈 곳) · 석록 #8fae6b(논밭) · 주홍 #d4553a(길) · 석황 #f0c24b(내 차례·강조) · 경고 #e0492f
 * 자리 색 = 오방색: 청 #3a7bd5 · 적 #d8434e · 황 #e8b931 · 백 #f2f2ea · 흑 #2b2b2b (일꾼 몸에 자리 번호를 함께)
 * 시그니처(하나): 고지도 화풍 타일 — 붉은 길선이 타일을 건너 이어지고 돌담 읍성 안에 기와 지붕이 앉음(지붕·깃발·일꾼은 늘 똑바로).
 * 배치·단추·설정 칸은 공용 public/css/boardgame/room.css — 여기선 토큰과 지도만.
 * ───────────────────────────────────────────── */
.mu-root, .chat-fab, .chat-panel {
    --mu-indigo: #1c3347;
    --mu-panel: #26445d;
    --mu-water: #2e5a72;
    --mu-paddy: #8fae6b;
    --mu-paddy-ln: #7d9c5a;
    --mu-road: #d4553a;
    --mu-earth: #efe2c2;
    --mu-town: #d9cdb0;
    --mu-wall: #5e5446;
    --mu-roof: #33404f;
    --mu-gold: #f0c24b;
    --mu-red: #e0492f;
    --mu-s0: #3a7bd5;
    --mu-s1: #d8434e;
    --mu-s2: #e8b931;
    --mu-s3: #f2f2ea;
    --mu-s4: #2b2b2b;
    --bg-bg: var(--mu-indigo);
    --bg-panel: var(--mu-panel);
    --bg-line: color-mix(in srgb, #dfe9f2 16%, var(--mu-panel));
    --bg-ink: #edf2f6;
    --bg-dim: color-mix(in srgb, #edf2f6 62%, var(--mu-indigo));
    --bg-accent: var(--mu-gold);
    --bg-accent-ink: #2b1f02;
    --bg-warn: var(--mu-red);
    --chat-accent: var(--mu-gold);
    --chat-accent-ink: #2b1f02;
}
.mu-board { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.mu-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mu-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 6px; border-radius: 999px; background: var(--bg-panel); border: 1px solid var(--bg-line); color: var(--bg-ink); font-size: clamp(12px, 1.3vw, 15px); }
.mu-chip.turn { border-color: var(--mu-gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mu-gold) 35%, transparent); }
.mu-chip b { font-variant-numeric: tabular-nums; font-size: 1.15em; }
.mu-chip small { color: var(--bg-dim); font-variant-numeric: tabular-nums; }
.mu-chip-n { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-mini { width: 18px; height: 24px; display: block; flex: none; }
.mu-seaticon { width: 20px; height: 26px; display: block; }
.mu-mapbox { height: var(--bg-board); max-height: 78vh; min-height: 240px; border-radius: 10px; background: var(--mu-water); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 6px 22px rgba(0, 0, 0, 0.35); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.mu-mapbox.zoomed { overflow: auto; display: block; }
.mu-svg { width: 100%; height: 100%; display: block; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.mu-mapbox.zoomed .mu-svg { height: auto; min-width: 100%; }
.mu-svg:focus-visible { outline: 3px solid var(--mu-gold); outline-offset: -3px; border-radius: 10px; }
/* 타일 그림 */
.mu-field { fill: url(#mu-tex-field) var(--mu-paddy); } /* 질감 그림(지도 svg의 pattern) */
.mu-city { fill: url(#mu-tex-city) var(--mu-town); }
.mu-wall { fill: none; stroke: var(--mu-wall); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 7 2; }
.mu-road-u { fill: none; stroke: var(--mu-earth); stroke-width: 10; stroke-linecap: round; }
.mu-road { fill: none; stroke: var(--mu-road); stroke-width: 5; stroke-linecap: round; }
.mu-up { filter: drop-shadow(0 1px 1.2px rgba(0, 0, 0, 0.45)); pointer-events: none; }
.mu-tile { shape-rendering: geometricPrecision; }
/* 일꾼 */
.mu-wk image { filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.8)) drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, 0.45)); }
.mu-wk-n { fill: #fff; font-size: 8px; font-weight: 800; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(0, 0, 0, 0.55); stroke-width: 2px; }
.mu-s3 .mu-wk-n { fill: #1c1c1c; stroke: rgba(255, 255, 255, 0.6); }
/* 놓기 */
.mu-cand { fill: color-mix(in srgb, var(--mu-gold) 14%, transparent); stroke: var(--mu-gold); stroke-width: 3; stroke-dasharray: 10 7; cursor: pointer; }
.mu-cand:hover { fill: color-mix(in srgb, var(--mu-gold) 30%, transparent); }
.mu-ghost { cursor: pointer; }
.mu-ghost > g { opacity: 0.9; }
.mu-ghostbox { fill: none; stroke: var(--mu-gold); stroke-width: 5; }
.mu-wspot { fill: rgba(255, 255, 255, 0.82); stroke: var(--mu-indigo); stroke-width: 3; cursor: pointer; }
.mu-wspot:hover { fill: var(--mu-gold); }
.mu-lastbox { fill: none; stroke: var(--mu-gold); stroke-width: 3; stroke-dasharray: 4 4; pointer-events: none; }
.mu-done { fill: var(--mu-gold); opacity: 0; pointer-events: none; animation: mu-glow 1.4s ease-out; }
@keyframes mu-glow { 0% { opacity: 0.45; } 100% { opacity: 0; } }
.mu-drop { animation: mu-drop 0.28s ease-out both; }
@keyframes mu-drop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.mu-off .mu-cand { cursor: default; }
/* 손 타일·도구 줄 */
.mu-tray { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 8px 10px; border-radius: 10px; background: var(--bg-panel); border: 1px solid var(--bg-line); }
.mu-tray.mine { border-color: color-mix(in srgb, var(--mu-gold) 60%, var(--bg-line)); }
.mu-handbox { display: flex; align-items: center; gap: 8px; }
.mu-hand { width: clamp(56px, 7vw, 84px); height: clamp(56px, 7vw, 84px); border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.mu-cap { font-size: 13px; color: var(--bg-dim); max-width: 11em; }
.mu-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.mu-wlabel { font-size: 13px; color: var(--bg-ink); padding: 0 4px; }
.mu-left, .mu-next { font-size: 13px; color: var(--bg-dim); display: inline-flex; align-items: center; gap: 4px; }
.mu-left b { color: var(--bg-ink); font-variant-numeric: tabular-nums; }
.mu-nexticon { width: 30px; height: 30px; border-radius: 3px; }
.mu-place { padding: 8px 16px; }
.mu-tools .bg-mini[aria-pressed="true"] { border-color: var(--mu-gold); color: var(--mu-gold); }
.mu-tally { border-collapse: collapse; font-size: 14px; color: var(--bg-ink); min-width: min(100%, 420px); }
.mu-tally caption { text-align: left; color: var(--bg-dim); font-size: 13px; padding-bottom: 4px; }
.mu-tally th, .mu-tally td { padding: 4px 8px; border-bottom: 1px solid var(--bg-line); text-align: right; font-variant-numeric: tabular-nums; }
.mu-tally th[scope="row"], .mu-tally thead th:first-child { text-align: left; font-weight: 600; }
.mu-who { display: inline-flex; align-items: center; gap: 6px; }
.mu-tally thead th { color: var(--bg-dim); font-weight: 600; }
.mu-note { margin: 0; font-size: 13px; color: var(--bg-dim); text-align: center; }
@media (prefers-reduced-motion: reduce) { .mu-drop, .mu-done { animation: none; } }
@media (max-width: 640px) {
    .mu-board { gap: 6px; }
    .mu-mapbox { max-height: 62vh; }
    .mu-tray { gap: 6px; padding: 6px; }
    .mu-tools .bg-mini { padding: 6px 9px; }
    .mu-place { width: 100%; }
}
@media (min-width: 2400px) { .mu-chip { font-size: 18px; padding: 5px 14px 5px 8px; } .mu-mini { width: 24px; height: 32px; } .mu-cap, .mu-wlabel, .mu-left, .mu-next, .mu-note { font-size: 16px; } .mu-tally { font-size: 17px; } }
