/* 돼동여지도 v2: 「오래됐지만 세련된」 대동여지도 콘셉트
   한지 바탕 · 먹선 · 남색 패널+가는 금테 · 주홍 낙관(유일한 강조색: 핵심 버튼·선택 상태) */
:root {
  --hanji: #efe6d2;
  --hanji-2: #e6dabf;
  --hanji-3: #f6f0e2;
  --ink: #1a1714;
  --ink-2: #4a433a;
  --ink-3: #7a7062;
  --rule: rgba(26, 23, 20, 0.16);
  --navy: #14213a;
  --navy-2: #1d2d4b;
  --gold: #b9975b;
  --gold-soft: rgba(185, 151, 91, 0.55);
  --seal: #b8322a;
  --seal-press: #9c2821;
  --cream: #f3ead6;
  --star: #a8823a;
  --shadow: 0 10px 30px rgba(20, 16, 10, 0.22), 0 1px 3px rgba(20, 16, 10, 0.12);
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', 'AppleMyungjo', 'Batang', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  /* 한지 결: 아주 옅은 섬유 노이즈 (SVG feTurbulence) */
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8 0.35' numOctaves='3' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.27  0 0 0 0 0.16  0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E");
  /* 붓으로 그은 가는 먹선 */
  --brush-rule: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C 60 2.6, 140 3.4, 220 3.6 S 360 4.6, 398 3.2 L 398 4.4 C 330 6.4, 230 5.6, 150 5.8 S 40 6.6, 2 5.6 Z' fill='%231a1714' fill-opacity='.55'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { word-break: keep-all; overflow-wrap: anywhere; margin: 0; height: 100%; background: var(--hanji); color: var(--ink); font-family: var(--serif); -webkit-font-smoothing: antialiased; }
body { overflow: hidden; overscroll-behavior: none; background-image: var(--paper); }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.app { position: fixed; inset: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }

/* ---- 스플래시: 표지처럼 ---- */
.splash { position: fixed; inset: 0; z-index: 100; background: var(--hanji); background-image: var(--paper); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: opacity .6s ease, visibility .6s; cursor: pointer; }
.splash.out { opacity: 0; visibility: hidden; }
.splash-map { position: absolute; right: -18%; top: 50%; height: 104%; transform: translateY(-50%); opacity: .13; pointer-events: none; }
.splash-inner { position: relative; display: flex; align-items: center; gap: 4px; height: min(78dvh, 640px); padding-top: var(--sat); }
.splash-logo { height: 100%; width: auto; filter: drop-shadow(0 1px 0 rgba(255,255,255,.25)); animation: inkIn 1.1s cubic-bezier(.2,.7,.2,1) both; }
.splash-box { align-self: center; padding: 16px 9px; background: var(--navy); box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4px var(--gold); animation: fadeUp .9s .35s both; }
.splash-sub { display: block; width: 15px; height: auto; } /* 세로 부제는 벡터 SVG(brand/make-sub.py): writing-mode 는 WebKit 에서 글자가 눕거나 잘림 */
.splash-hint { position: absolute; bottom: calc(28px + var(--sab)); left: 0; right: 0; text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink-3); letter-spacing: .08em; animation: fadeUp .9s .8s both; }
@keyframes inkIn { from { opacity: 0; filter: blur(6px); transform: scale(1.04); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .splash-logo, .splash-box, .splash-hint { animation: none; } .splash { transition: none; } }

/* ---- 상단 바: 남색 패널 + 가는 금테 ---- */
.topbar { position: relative; z-index: 30; background: var(--navy); padding-top: var(--sat); box-shadow: 0 2px 10px rgba(10, 14, 24, .28); }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--gold-soft); pointer-events: none; }
.topbar-row { display: flex; align-items: center; gap: 12px; padding: 8px 14px 6px; padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
.brand { margin: 0; flex: none; line-height: 0; }
.brand img { height: 32px; width: auto; display: block; } /* 헤더 전용 순수 벡터 로고(필터 없음) */
.search { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; gap: 6px; padding: 0 8px 0 10px; background: var(--hanji-3); border-radius: 6px; color: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(185,151,91,.5); }
.search-icon { width: 17px; height: 17px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-family: var(--sans); font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { width: 22px; height: 22px; color: #b5aa95; display: grid; place-items: center; }
.search-clear svg { width: 17px; height: 17px; }
.search-cancel { font-family: var(--sans); font-size: 16px; color: var(--cream); white-space: nowrap; }
.topbar.searching .brand { display: none; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--gold-soft); color: var(--cream); font-family: var(--sans); font-size: 14px; font-weight: 500; transition: background .15s, border-color .15s; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--cream); }
.chip .count { color: rgba(243,234,214,.6); font-weight: 400; font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] { background: var(--seal); border-color: var(--seal); color: #fff8ec; }
.chip[aria-pressed='true'] .count { color: rgba(255,248,236,.75); }
.chip.toggle { border-style: dashed; }
.chip.solo { cursor: default; border-color: transparent; padding-left: 2px; font-family: var(--serif); font-size: 15px; font-weight: 700; }
.chip.solo .count { font-family: var(--sans); font-size: 13px; }
.chip.toggle .tick { width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 2px; display: grid; place-items: center; font-size: 11px; line-height: 1; }

/* ---- 지도 ---- */
.stage { position: relative; flex: 1; min-height: 0; }
.map { position: absolute; inset: 0; background: var(--hanji-2); }
/* 카카오 타일만 아주 옅게 따뜻한 톤 (가독성 유지) */
.map img[src*="daumcdn"] { filter: sepia(.2) saturate(.88) contrast(.98) brightness(1.01); }
.notice { position: absolute; left: 14px; right: 14px; top: 12px; z-index: 5; padding: 12px 14px; border-radius: 4px; background: var(--hanji-3); background-image: var(--paper); box-shadow: var(--shadow), inset 0 0 0 1px var(--gold-soft); font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.notice b { font-family: var(--serif); color: var(--ink); font-weight: 700; }
.fab { position: absolute; right: 14px; bottom: calc(20px + var(--sab)); z-index: 6; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); box-shadow: var(--shadow), inset 0 0 0 2px var(--navy), inset 0 0 0 3px var(--gold); display: grid; place-items: center; color: var(--cream); }
.fab svg { width: 21px; height: 21px; }
.fab[aria-busy='true'] { opacity: .5; }
body.sheet-open .fab { opacity: 0; pointer-events: none; }

.map-label.sel { background: var(--navy); color: var(--cream); box-shadow: 0 1px 4px rgba(20,16,10,.35), inset 0 0 0 1px var(--gold); }
.map-label { padding: 2px 7px 3px; border-radius: 2px; background: rgba(246,240,226,.95); box-shadow: 0 1px 3px rgba(20,16,10,.25), inset 0 0 0 1px rgba(26,23,20,.18); font-family: var(--serif); font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; pointer-events: none; }
.map-label-wrap { position: relative; width: 0; height: 0; pointer-events: none; }
.map-label-wrap .map-label { position: absolute; width: max-content; } /* 크기 0 상자 안이라 폭을 글자에 맞춤(안 하면 한 글자씩 줄바꿈) */
.map-label.sm { font-size: 10.5px; padding: 1px 5px 2px; width: max-content; max-width: 6.5em; white-space: normal; word-break: keep-all; line-height: 1.25; text-align: center; }
.map-leader { position: absolute; overflow: visible; pointer-events: none; }
.map-leader line { stroke: rgba(26,23,20,.55); stroke-width: 1.2; }
/* 행정구역 배지: 시도 = 남색 낙관 + 금테, 시군구 = 한지 이름표 + 먹선 */
.rg { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; font-family: var(--serif); line-height: 1; }
.rg-sido { height: 32px; padding: 0 10px 0 11px; border-radius: 4px; background: var(--navy); color: var(--cream); box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3px var(--gold), 0 3px 8px rgba(20,16,10,.32); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.rg-sido .rg-c { color: #e9cf96; font-family: var(--sans); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rg-sigungu { height: 26px; padding: 0 8px 0 9px; border-radius: 3px; background: rgba(246,240,226,.97); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(26,23,20,.55), 0 2px 5px rgba(20,16,10,.25); font-size: 13px; font-weight: 700; }
.rg-sigungu .rg-c { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 2px; background: var(--navy); color: var(--cream); font-family: var(--sans); font-size: 11.5px; display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.rg:active { filter: brightness(.92); }
.pin-count { padding: 1px 6px; border-radius: 2px; background: var(--navy); color: var(--cream); font-family: var(--sans); font-size: 11px; font-weight: 700; line-height: 16px; box-shadow: inset 0 0 0 1px var(--gold); }
.user-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 3px solid var(--cream); box-shadow: 0 0 0 6px rgba(20,33,58,.18), 0 1px 4px rgba(0,0,0,.3); }

/* ---- 검색 결과 ---- */
.results { position: absolute; z-index: 25; left: 0; right: 0; bottom: 0; top: var(--results-top, 104px); background: var(--hanji); background-image: var(--paper); overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(16px + var(--sab)); }
.results-meta { padding: 14px 20px 6px; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.results-list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 20px; text-align: left; }
.results-list li + li .row { background-image: var(--brush-rule); background-repeat: no-repeat; background-size: calc(100% - 40px) 4px; background-position: 20px 0; }
.row:active { background-color: rgba(26,23,20,.05); }
.row-main { flex: 1; min-width: 0; }
.row-title { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 700; }
.row-title span.n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { display: flex; gap: 6px; align-items: center; margin-top: 4px; font-family: var(--sans); font-size: 13px; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.row-sub .addr { overflow: hidden; text-overflow: ellipsis; }
.row-dots { display: flex; gap: 4px; flex: none; }
.row-dots i { width: 8px; height: 8px; border-radius: 50%; }
.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* ---- 하단 카드: 한지 + 금테 ---- */
.sheet { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; max-height: 74vh; max-height: 74dvh; display: flex; flex-direction: column; background: var(--hanji-3); background-image: var(--paper); border-radius: 10px 10px 0 0; box-shadow: 0 -6px 26px rgba(20,16,10,.22), inset 0 1px 0 var(--gold); transform: translateY(0); transition: transform .25s cubic-bezier(.22,.9,.3,1); overscroll-behavior: contain; will-change: transform; }
.sheet.dragging { transition: none; }
.sheet::before { content: ''; position: absolute; inset: 5px 5px 0; border: 1px solid var(--gold-soft); border-bottom: 0; border-radius: 7px 7px 0 0; pointer-events: none; }
.sheet.enter { transform: translateY(100%); }
.sheet-grabber { width: 40px; height: 5px; border-radius: 3px; background: rgba(26,23,20,.25); margin: 9px auto 0; flex: none; position: relative; }
.sheet-grabber::after { content: ''; position: absolute; left: -60px; right: -60px; top: -12px; bottom: -12px; } /* 손잡이 터치 영역 확대 */
.sheet-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; color: rgba(26,23,20,.08); z-index: 2; }
.sheet-close svg { width: 30px; height: 30px; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; padding: 8px 22px calc(18px + var(--sab)); }

.place-head { padding-right: 40px; }
.place-name { margin: 6px 0 0; font-size: 24px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.25; }
.place-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); }
/* 풍자 한줄평: 먹 인용 */
.fj { margin: 12px 0 2px; padding: 0; }
.fj-label { display: inline-block; margin-bottom: 4px; padding: 1px 6px; border: 1px solid rgba(26,23,20,.35); border-radius: 2px; font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); }
.fj-quote .nb { white-space: nowrap; }
.fj-quote { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--ink); letter-spacing: -0.005em; text-indent: -0.5em; padding-left: .5em; }
.place-addr { margin-top: 6px; font-family: var(--sans); font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.place-head::after { content: ''; display: block; height: 5px; margin-top: 14px; background: var(--brush-rule) no-repeat center / 100% 100%; }
.creator-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 600; }
.creator-tag i { width: 8px; height: 8px; border-radius: 50%; }
.badge { display: inline-flex; align-items: center; height: 21px; padding: 0 6px; border-radius: 2px; font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-2); border: 1px solid rgba(26,23,20,.3); }
/* 낙관 배지: 또간집 선정 */
.badge.seal { color: #fff6ea; background: var(--seal); border-color: var(--seal); font-family: var(--serif); font-weight: 700; letter-spacing: .04em; transform: rotate(-2deg); box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255,246,234,.7); padding: 0 7px; height: 23px; }
.badge.visited { color: var(--ink-3); border-style: dashed; }

.stars { display: inline-flex; align-items: center; gap: 1px; color: var(--star); vertical-align: middle; }
.stars svg { width: 15px; height: 15px; }
.stars.sm svg { width: 12px; height: 12px; }
.rating-num { font-family: var(--serif); font-weight: 700; color: var(--ink); margin-left: 4px; font-size: 14px; }
.stars.sm + .rating-num { font-size: 12px; margin-left: 2px; }
.rating-basis { display: block; margin-top: 3px; font-family: var(--sans); font-size: 12px; color: var(--ink-3); }

.video-feature { display: flex; gap: 12px; align-items: center; margin: 14px -10px 0; padding: 10px; border-radius: 6px; border: 1px solid rgba(26,23,20,.16); background: rgba(255,255,255,.22); transition: background .12s, transform .12s; }
.video-feature:active { background: rgba(26,23,20,.08); transform: scale(.985); }
.video-feature .thumb { width: 128px; }
.video-go { flex: none; width: 18px; height: 18px; color: var(--ink-3); margin-left: -4px; }
.video-go svg { width: 18px; height: 18px; display: block; }
/* 썸네일 재생 표시: 눌러서 영상으로 */
.thumb .play { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(184,50,42,.92); color: #fff8ec; display: grid; place-items: center; box-shadow: 0 1px 6px rgba(0,0,0,.35), inset 0 0 0 1.5px rgba(255,248,236,.55); }
.thumb .play svg { width: 15px; height: 15px; margin-left: 2px; }
.video-list .thumb .play { width: 26px; height: 26px; margin: -13px 0 0 -13px; }
.video-list .thumb .play svg { width: 12px; height: 12px; }
.video-list a:active { background: rgba(26,23,20,.06); }
.thumb { position: relative; flex: none; width: 116px; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--hanji-2); box-shadow: 0 0 0 1px rgba(26,23,20,.2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); }
.thumb .t { position: absolute; right: 4px; bottom: 4px; padding: 1px 4px; border-radius: 2px; background: rgba(20,16,10,.78); color: #fff; font-family: var(--sans); font-size: 11px; font-variant-numeric: tabular-nums; }
.video-text { min-width: 0; flex: 1; }
.video-title { font-size: 15px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; font-family: var(--sans); font-size: 12px; color: var(--ink-3); }

/* 핵심 버튼: 주홍 낙관색 (화면당 하나) */
.cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 16px; border-radius: 4px; background: var(--seal); color: #fff8ec; font-family: var(--serif); font-size: 17px; font-weight: 700; letter-spacing: .06em; box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4px rgba(255,248,236,.45), 0 2px 6px rgba(120,24,18,.25); }
.cta:active { background: var(--seal-press); box-shadow: inset 0 0 0 3px var(--seal-press), inset 0 0 0 4px rgba(255,248,236,.45); }
.cta svg { width: 16px; height: 16px; }

.actions { display: flex; gap: 8px; margin-top: 10px; }
.action { flex: 1; min-width: 0; height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 4px; border: 1px solid rgba(26,23,20,.22); background: rgba(255,255,255,.18); font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); }
.action:active { background: rgba(26,23,20,.06); }
.action svg { width: 21px; height: 21px; color: var(--navy); }
/* t45u 예약·줄서기: 한 개면 한 줄 가득, 여러 개면 네이버 한 줄 + 나머지 반반 */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.book { grid-column: 1 / -1; min-width: 0; height: 46px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border-radius: 4px; background: var(--navy); color: var(--cream); box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3px var(--gold); font-family: var(--serif); font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; overflow: hidden; }
.book span { overflow: hidden; text-overflow: ellipsis; }
.book svg { flex: none; width: 19px; height: 19px; color: var(--gold); }
.booking.multi .book-catchtable, .booking.multi .book-tabling { grid-column: auto; background: rgba(255,255,255,.18); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(26,23,20,.22); }
.booking.multi .book-catchtable svg, .booking.multi .book-tabling svg { color: var(--navy); }
.booking.multi .book.wide { grid-column: 1 / -1; }
.book:active { filter: brightness(.94); }

.section-title { margin: 22px 0 2px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.video-list { list-style: none; margin: 0; padding: 0; }
.video-list li + li { background: var(--brush-rule) no-repeat top / 100% 4px; }
.video-list a { display: flex; gap: 12px; align-items: center; padding: 11px 0; }
.video-list .thumb { width: 100px; }

.report { display: block; margin: 22px auto 2px; background: none; font-family: var(--sans); font-size: 13px; color: var(--ink-3); text-align: center; }
.report u { text-decoration: none; color: var(--ink-2); border-bottom: 1px solid var(--rule); }

/* ---- 길안내 시트 ---- */
.action-sheet { position: fixed; inset: 0; z-index: 60; }
.action-backdrop { position: absolute; inset: 0; background: rgba(12,14,20,.42); }
.action-panel { position: absolute; left: 10px; right: 10px; bottom: calc(10px + var(--sab)); display: flex; flex-direction: column; gap: 8px; }
.action-group { background: var(--hanji-3); background-image: var(--paper); border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--gold-soft); }
.action-title { padding: 14px 16px; text-align: center; font-family: var(--sans); font-size: 13px; color: var(--ink-3); }
.action-item { display: block; width: 100%; height: 56px; font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); background: transparent; }
.action-group .action-item { background: var(--brush-rule) no-repeat top / 100% 4px; }
.action-cancel { border-radius: 6px; background: var(--navy); color: var(--cream); box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4px var(--gold); }
.action-item:active { background-color: rgba(26,23,20,.06); }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--sab)); z-index: 70; transform: translateX(-50%); max-width: calc(100% - 48px); padding: 10px 16px; border-radius: 4px; background: var(--navy); color: var(--cream); font-family: var(--sans); font-size: 14px; line-height: 1.4; text-align: center; box-shadow: var(--shadow), inset 0 0 0 1px var(--gold-soft); }

/* ---- 제보 시트: 한지 장부 ---- */
.report-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 20px calc(18px + var(--sab)); background: var(--hanji-3); background-image: var(--paper); border-radius: 10px 10px 0 0; box-shadow: 0 -6px 26px rgba(20,16,10,.25), inset 0 1px 0 var(--gold); }
.report-panel::before { content: ''; position: absolute; inset: 5px 5px 0; border: 1px solid var(--gold-soft); border-bottom: 0; border-radius: 7px 7px 0 0; pointer-events: none; }
.report-head { display: flex; align-items: center; justify-content: space-between; }
.report-title { margin: 0; font-size: 22px; font-weight: 900; letter-spacing: .02em; }
.report-x { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-2); }
.report-x svg { width: 18px; height: 18px; }
.report-place { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; padding: 9px 12px; border-left: 3px solid var(--navy); background: rgba(20,33,58,.06); font-size: 16px; }
.report-place span { font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
.report-field { display: block; margin-top: 14px; }
.report-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.report-label em { font-style: normal; font-weight: 400; color: var(--ink-3); font-family: var(--sans); font-size: 12px; margin-left: 4px; margin-right: auto; }
.report-count { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.report-field input, .report-field textarea { width: 100%; padding: 10px 12px; border: 1px solid rgba(26,23,20,.28); border-radius: 3px; background: rgba(255,255,255,.45); font-family: var(--sans); font-size: 16px; color: var(--ink); outline: 0; resize: vertical; }
.report-field textarea { min-height: 96px; line-height: 1.5; }
.report-field input:focus, .report-field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(20,33,58,.15); }
.report-types { margin: 14px 0 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.report-types legend { width: 100%; }
.report-types label { position: relative; }
.report-types input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.report-types span { display: inline-flex; align-items: center; height: 36px; padding: 0 13px; border-radius: 3px; border: 1px solid rgba(26,23,20,.3); font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--ink); background: rgba(255,255,255,.3); }
.report-types input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--cream); box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 3px var(--gold); }
.report-types input:focus-visible + span { outline: 2px solid var(--seal); outline-offset: 2px; }
.report-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.report-error { margin: 12px 0 0; font-family: var(--sans); font-size: 14px; color: var(--seal); }
.report-submit { border: 0; }
.report-submit:disabled { opacity: .6; }
.report-note { margin: 10px 0 0; text-align: center; font-family: var(--sans); font-size: 12px; color: var(--ink-3); }
.report-done { text-align: center; padding: 18px 4px 4px; }
.report-done p { font-family: var(--sans); font-size: 15px; color: var(--ink-2); margin: 8px 0 20px; }
.report-seal { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; background: var(--seal); color: #fff6ea; font-size: 20px; font-weight: 900; letter-spacing: .1em; transform: rotate(-4deg); box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4px rgba(255,246,234,.7); border-radius: 4px; }
.results-foot .report { margin: 18px auto 8px; }

@media (min-width: 720px) {
  .report-panel { left: 50%; right: auto; bottom: 16px; width: 440px; transform: translateX(-50%); border-radius: 8px; }
  .report-panel::before { border-bottom: 1px solid var(--gold-soft); border-radius: 5px; bottom: 5px; }
  .sheet { left: 16px; right: auto; width: 410px; bottom: 16px; border-radius: 8px; max-height: calc(100% - 32px); box-shadow: var(--shadow), inset 0 0 0 1px var(--gold); }
  .sheet::before { border-bottom: 1px solid var(--gold-soft); border-radius: 5px; bottom: 5px; }
  .results { left: 16px; right: auto; width: 410px; top: calc(var(--results-top, 104px) + 8px); bottom: 16px; border-radius: 8px; box-shadow: var(--shadow); }
  .action-panel { left: 50%; right: auto; width: 380px; transform: translateX(-50%); }
  .splash-map { right: 4%; }
}
