/* ─────────────────────────────────────────────
 * 한봇 과일 종 (2026-11-13) — specs/gwail.md §4 디자인 토큰. 소재: 밤 장터 과일전, 쪽빛 천막 아래 놋쇠 손종
 * 남색 밤 #1d2240(바탕) · 천막 #282e55(상자) · 한지 #f5eedd(카드 앞면) · 놋쇠 #c9a03c(종·내 차례) · 짚 #b8964f(카드 뒷면) · 실수 #e05a4a
 * 과일은 색 + 모양(감=꼭지 둥근 것, 배=물방울, 머루=송이, 앵두=두 알, 참외=줄무늬 타원, 대추=길쭉)으로 색약도 구분.
 * 시그니처(하나): 판 가운데 놋쇠 종(.gw-bell) — 누르면 눌린 모양, 판정 말풍선이 종 위에.
 * 배치·단추·설정 칸은 공용 public/css/boardgame/room.css — 여기선 토큰과 과일판만.
 * ───────────────────────────────────────────── */
.gw-root, .chat-fab, .chat-panel {
    --gw-night: #1d2240;
    --gw-tent: #282e55;
    --gw-paper: #f5eedd;
    --gw-brass: #c9a03c;
    --gw-straw: #b8964f;
    --gw-miss: #e05a4a;
    --bg-bg: var(--gw-night);
    --bg-panel: var(--gw-tent);
    --bg-line: color-mix(in srgb, var(--gw-brass) 18%, var(--gw-tent));
    --bg-ink: #eef0f8;
    --bg-dim: color-mix(in srgb, #eef0f8 62%, var(--gw-night));
    --bg-accent: var(--gw-brass);
    --bg-accent-ink: #231c0a;
    --bg-warn: var(--gw-miss);
    --chat-accent: var(--gw-brass);
    --chat-accent-ink: #231c0a;
}
.gw-board { width: min(100%, calc(var(--bg-board) * 1.25)); display: grid; gap: 10px; color: var(--bg-ink); --gw-card: clamp(56px, calc(var(--bg-board) * 0.13), 132px); }
.gw-strip { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; font-size: 0.9rem; color: var(--bg-dim); }
.gw-time { font-family: "hb-games-display", var(--font-sans); font-size: 1.5rem; color: var(--bg-ink); font-variant-numeric: tabular-nums; }
.gw-goal b { font-family: "hb-games-display", var(--font-sans); font-weight: 400; font-size: 1.4rem; color: var(--gw-brass); }
.gw-goal.flag b { color: #ff9b6b; }
.gw-goal.shake { display: inline-block; animation: gw-shake 0.5s; }
@keyframes gw-shake { 20% { transform: rotate(-5deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
.gw-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(30%, calc(var(--gw-card) + 24px)), 1fr)); gap: 8px; }
.gw-seat { display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--gw-tent); border: 1px solid var(--bg-line); border-radius: 12px; padding: 6px; min-width: 0; }
.gw-seat.turn .gw-sname { text-decoration: underline 3px var(--gw-brass); text-underline-offset: 4px; }
.gw-seat.out { opacity: 0.45; }
.gw-seat.me.turn { box-shadow: 0 0 0 2px var(--gw-brass), 0 0 18px color-mix(in srgb, var(--gw-brass) 45%, transparent); }
.gw-sname { font-weight: 800; font-size: 0.82rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-top { width: var(--gw-card); display: block; }
.gw-cardsvg { width: 100%; height: auto; display: block; }
/* 카드 면·뒷면은 그림 — 아래 두 칸은 그림 위 테두리만 */
.gw-face { fill: none; stroke: #d8c9a4; stroke-width: 1.5; }
.gw-empty { fill: none; stroke: var(--bg-line); stroke-width: 1.5; stroke-dasharray: 4 3; }
.gw-back { fill: none; stroke: #7a5f2c; stroke-width: 1.5; }
.gw-straw { stroke: #8e7238; stroke-width: 1.2; fill: none; opacity: 0.7; }
.gw-cnt { font-size: 0.74rem; color: var(--bg-dim); font-variant-numeric: tabular-nums; text-align: center; }
.gw-mid { position: relative; display: grid; place-items: center; padding: 18px 0 6px; }
/* 시그니처 — 놋쇠 종 */
.gw-bell { width: clamp(120px, calc(var(--bg-board) * 0.3), 240px); aspect-ratio: 1; border-radius: 50%; border: 0; background: none; padding: 0; cursor: pointer; position: relative; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform 0.08s; }
.gw-bell svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.gw-bell-rim { fill: #8a6a22; }
.gw-bell-body { fill: var(--gw-brass); }
.gw-bell-shine { fill: #f4dc91; opacity: 0.7; }
.gw-bell-knob { fill: #7a5c1c; }
.gw-bell-txt { position: absolute; left: 50%; bottom: 14%; transform: translateX(-50%); font-family: "hb-games-display", var(--font-sans); color: #3a2a06; font-size: 1.05rem; pointer-events: none; white-space: nowrap; text-shadow: 0 0 4px rgba(255, 236, 180, 0.9); }
.gw-bell.pressed { transform: scale(0.92) translateY(3px); }
.gw-bell.pressed svg { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); }
.gw-bell.locked { filter: grayscale(0.7) brightness(0.8); }
.gw-bell:disabled { cursor: default; opacity: 0.55; }
.gw-bell:focus-visible { outline: 4px solid var(--gw-brass); outline-offset: 4px; }
.gw-bubble { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); margin: 0; background: var(--gw-paper); color: #1d2240; border-radius: 14px; padding: 6px 14px; font-weight: 800; font-size: 0.92rem; max-width: 92%; text-align: center; z-index: 2; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); }
.gw-bubble.miss { background: var(--gw-miss); color: #fff; }
.gw-mine { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.gw-mine .gw-seat { flex: none; }
.gw-flipbox { display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 220px; }
.gw-flipbox > .gw-cardsvg { width: calc(var(--gw-card) * 0.7); }
.gw-flipbox kbd { font-size: 0.66rem; opacity: 0.6; }
.gw-keys, .gw-spectate { margin: 0; text-align: center; }
.gw-wait { padding: 24px 12px; text-align: center; }
.gw-dot { display: grid; place-items: center; min-width: 22px; height: 22px; border-radius: 999px; background: var(--gw-brass); color: var(--bg-accent-ink); font-weight: 800; font-size: 0.72rem; font-variant-numeric: tabular-nums; padding: 0 4px; }
.gw-dot.out { background: var(--bg-line); color: var(--bg-dim); }
.gw-wrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gw-wrow .bg-chip:focus-visible { outline: 3px solid var(--gw-brass); outline-offset: 2px; }
.gw-wsum { margin: 6px 0 0; font-size: 0.84rem; }
.gw-wwarn { margin: 4px 0 0; color: #f0c24b; font-size: 0.84rem; }
@media (max-width: 640px) {
    .gw-board { width: 100%; --gw-card: clamp(48px, 17vw, 72px); }
    .gw-others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gw-bell { width: min(46vw, 190px); }
    .gw-keys { display: none; }
}
@media (min-width: 2400px) {
    .gw-board { --gw-card: clamp(96px, 9vmin, 260px); font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
    .gw-bell { transition: none; }
    .gw-goal.shake { animation: none; }
}
