/* 숨은 종 탐사 화면 (도형 임시 그림). 껍데기 변수(--card, --line …)를 그대로 쓴다. 휴대폰 세로 우선. */
.s-game { display: grid; gap: 0; max-width: 640px; margin: 0 auto; }
.s-game .card { margin: 6px 0; }
.s-game .small { font-size: 12px; }
.s-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; }
.s-stats .off { color: var(--muted); text-decoration: line-through; }
.s-tokens { display: inline-flex; gap: 6px; }
.s-tokens > span { display: inline-flex; align-items: center; gap: 1px; }
.s-icon { vertical-align: -2px; flex: none; }

/* 시간 트랙 */
.s-track-card { padding: 8px; }
.s-track { display: flex; flex-wrap: wrap; gap: 3px; }
.s-space { position: relative; width: 34px; height: 40px; border-radius: 6px; background: color-mix(in srgb, #4dabf7 18%, var(--card)); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 1px 0 3px; }
.s-space.start { border-color: var(--accent); }
.s-space-no { font-size: 10px; color: var(--muted); font-weight: 700; }
.s-pawns { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px; max-width: 32px; }
.s-tpawn { width: 9px; height: 13px; border-radius: 5px 5px 2px 2px; border: 1px solid rgba(0, 0, 0, .4); }
.s-tpawn.active { outline: 2px solid var(--hl, #f59f00); outline-offset: 1px; }
.s-stop { position: relative; min-width: 26px; height: 40px; border-radius: 6px; background: #d8b98a; color: #3b2a12; border: 1px solid #a8844a; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; line-height: 1.15; font-weight: 700; padding: 0 2px; }
.s-stop.done { opacity: .4; }
.s-stop.here { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #7a4b12; }
.s-leader { position: absolute; top: -9px; font-size: 10px; color: #7a4b12; }

/* 지도 */
.s-board-wrap { width: 100%; }
.s-board { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.s-board text { text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.s-sea { fill: #1f5f99; }
:root[data-theme="dark"] .s-sea { fill: #133a5e; }
.s-area { cursor: pointer; }
.s-area.can polygon:first-child { stroke: #ffe066; stroke-width: 3.2; filter: brightness(1.12); }
.s-area.picked polygon:first-child { stroke: #fff; stroke-width: 3.6; }
.s-num { font-size: 11px; font-weight: 800; fill: rgba(0, 0, 0, .7); }
.s-pick { font-size: 12px; font-weight: 800; fill: #fff; paint-order: stroke; stroke: #000; stroke-width: 2.5px; }
.s-cross { stroke: #c92a2a; stroke-width: 1.8; stroke-linecap: round; }
.s-circle { fill: none; stroke: #2b8a3e; stroke-width: 1.6; }
.s-ridge { stroke: #5c3a12; stroke-width: 7; stroke-linecap: round; }
.s-town { cursor: pointer; }
.s-town > polygon:first-child { fill: #f3c4cf; stroke: #fff; stroke-width: 1.5; }
.s-town.can > polygon:first-child { stroke: #ffe066; stroke-width: 3.2; }
.s-roof { fill: #c2255c; }
.s-house { fill: #fff0f6; stroke: #c2255c; stroke-width: 1; }
.s-town-name { font-size: 8px; font-weight: 700; fill: #5c0f2e; }
.s-path { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 6 4; pointer-events: none; }
.s-step circle { fill: #212529; stroke: #fff; stroke-width: 1.5; }
.s-step text { font-size: 9px; font-weight: 800; fill: #fff; }
.s-pawn { pointer-events: none; }
.s-pawn.active circle { stroke: #ffe066; stroke-width: 2; }
.s-sight, .s-camera { pointer-events: none; }

/* 메모 */
.s-memo .row { gap: 4px; }
.s-mark { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 4px 6px; }
.s-mark.m1 { opacity: .5; text-decoration: line-through; border-color: var(--warn); }
.s-mark.m2 { border-color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }

/* 행동 */
.s-actions p { margin: 4px 0 8px; }
.s-act-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 6px; }
.s-act-grid button { display: flex; flex-direction: column; align-items: center; min-height: 54px; }
.s-actions .primary { margin-top: 8px; width: 100%; min-height: 44px; }
.s-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.s-card { display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
.s-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.chip.done { opacity: .7; }

.s-score { width: 100%; border-collapse: collapse; font-size: 13px; }
.s-score th, .s-score td { padding: 4px; border-bottom: 1px solid var(--line); text-align: center; }
.s-score td:nth-child(2) { text-align: left; }

/* 설명서 (원작 한글 룰북) — 화면 전체를 덮는 창 */
.s-manual { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--bg); }
.s-manual-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.s-manual-bar .muted { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-manual-bar a.chip { text-decoration: none; color: inherit; }
.s-manual iframe { flex: 1; width: 100%; border: 0; background: #fff; }
