/* 귀인 영역지도 — 미니멀 · 모바일 우선 */

:root {
  --bg: #F2F2F7;
  --surface: #FFFFFF;
  --surface-2: #F7F7FA;
  --fg: #1C1C1E;
  --fg-2: #6E6E73;
  --fg-3: #A1A1A6;
  --sep: rgba(60,60,67,.10);
  --accent: #0A84FF;
  --danger: #FF3B30;
  --gold: #D9A72C;
  --gold-line: #E7B93A;
  /* 하늘은 테마와 무관하게 늘 밤이다 — 밝은 바탕 위의 성좌는 성립하지 않는다 */
  --sky-0: #0A0C12;
  --sky-1: #141A28;
  --thread-x: rgba(160,190,240,.16);
  --orbit: rgba(190,210,255,.10);
  --orbit-label: rgba(190,210,255,.30);
  --thread: #B4CDFF;
  --link-hot: #7FD1FF;
  --star-label: rgba(238,244,255,.94);
  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1C1C1E;
    --surface-2: #2C2C2E;
    --fg: #F5F5F7;
    --fg-2: #98989D;
    --fg-3: #636366;
    --sep: rgba(84,84,88,.36);
    --accent: #0A84FF;
    --gold: #E8BE4E;
    --gold-line: #F2CD63;
    --shadow: 0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--fg);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Pretendard", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.02em; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--fg-2); }
.tiny { font-size: 12px; line-height: 1.45; }

/* ── 공통 컨트롤 ─────────────────────────────────────────────── */
.field {
  width: 100%; background: var(--surface); border: none;
  border-radius: var(--r-md); padding: 15px 16px; font-size: 16px;
  outline: none; box-shadow: inset 0 0 0 1px var(--sep);
}
.field:focus { box-shadow: inset 0 0 0 2px var(--accent); }
select.field { appearance: none; background-image: none; }

.btn {
  width: 100%; border: none; border-radius: var(--r-md);
  padding: 15px 18px; font-size: 16px; font-weight: 600;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep);
  cursor: pointer; transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.985); opacity: .85; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: none; }
.btn.plain { background: transparent; box-shadow: none; color: var(--accent); font-weight: 500; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .45; }

.pill {
  border: none; border-radius: 999px; padding: 9px 15px;
  font-size: 14px; font-weight: 600; background: var(--surface-2); cursor: pointer;
}
.pill.primary { background: var(--accent); color: #fff; }
.pill:active { opacity: .8; }

.icon {
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--surface-2); color: var(--fg-2); font-weight: 700; cursor: pointer;
}

.seg {
  display: flex; gap: 2px; padding: 2px;
  background: var(--surface-2); border-radius: var(--r-sm);
}
.seg button {
  flex: 1; border: none; background: transparent; color: var(--fg-2);
  padding: 8px 10px; font-size: 14px; font-weight: 600;
  border-radius: 8px; cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--fg-2); padding: 2px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.err { margin: 0; color: var(--danger); font-size: 13px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.preview {
  background: var(--surface); border-radius: var(--r-md); padding: 13px 15px;
  font-size: 14px; line-height: 1.55; box-shadow: inset 0 0 0 1px var(--sep);
}
.preview b { font-size: 17px; letter-spacing: -.01em; }

/* ── 시작 화면 ───────────────────────────────────────────────── */
.gate {
  min-height: 100dvh; display: grid; place-items: center;
  padding: calc(28px + var(--safe-t)) 20px calc(28px + var(--safe-b));
}
.gate-inner { width: 100%; max-width: 380px; }
.gate-mark { font-size: 52px; line-height: 1; margin-bottom: 14px; }
.gate-title { font-size: 30px; line-height: 1.2; margin-bottom: 6px; }
.gate-sub { margin: 0 0 22px; color: var(--fg-2); font-size: 15px; }
.gate .btn.primary { margin-top: 4px; }

/* ── 메인 레이아웃 ───────────────────────────────────────────── */
main { display: flex; flex-direction: column; height: 100dvh; }
.stage { display: flex; flex-direction: column; flex: none; min-height: 0; min-width: 0; }

.hdr {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  background: var(--bg);
}
.me {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  border: none; background: transparent; padding: 0; cursor: pointer; text-align: left;
}
.me-mark {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 20px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--sep);
}
.me-txt { display: flex; flex-direction: column; min-width: 0; }
/* 두 줄로 밀리면 헤더 높이가 튀면서 아래 지도까지 흔들린다. 한 줄로 못 박는다. */
.me-txt b, .me-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.me-txt b { font-size: 16px; letter-spacing: -.01em; }
.me-txt small { font-size: 12.5px; color: var(--fg-2); }
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }

/* 지도는 남는 높이를 다 먹지 않고 고정 비율 박스로 둔다.
   레퍼런스도 viewBox 460×470 의 거의 정사각 섹션이다. */
.mapwrap { position: relative; flex: none; min-height: 0; padding: 0 12px; }
canvas#map {
  width: 100%; aspect-ratio: 46 / 47; height: auto; display: block;
  max-height: 56dvh; margin: 0 auto;
  border-radius: var(--r-lg); background: var(--sky-0);
  touch-action: none; cursor: grab;
}
.toolbar {
  display: flex; gap: 7px; align-items: center;
  padding: 0 14px 9px; overflow-x: auto; scrollbar-width: none;
}
.toolbar::-webkit-scrollbar { display: none; }
.toolbar > * { flex: none; }
.gold-toggle {
  border: none; cursor: pointer; border-radius: 999px;
  padding: 9px 15px; font-size: 13.5px; font-weight: 600;
  background: var(--surface); color: var(--fg-2); box-shadow: var(--shadow);
}
.gold-toggle[aria-pressed="true"] { background: var(--gold); color: #2A1E06; }
.row.gold { background: color-mix(in srgb, var(--gold) 14%, transparent); border-radius: 10px; }
.gold-dot { color: var(--gold); font-style: normal; font-size: 12px; }
.toolbar select {
  appearance: none; border: none; cursor: pointer;
  background: var(--surface); color: var(--fg);
  border-radius: 999px; padding: 9px 30px 9px 15px;
  font-size: 13.5px; font-weight: 600; width: auto;
  box-shadow: var(--shadow);
  background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%),
                    linear-gradient(135deg, var(--fg-2) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.map-fabs { position: absolute; right: 22px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.fab {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--surface); color: var(--fg-2); font-size: 17px;
  box-shadow: var(--shadow); cursor: pointer;
}
.fab:active { opacity: .75; }
.tip {
  position: absolute; left: 22px; top: 14px; pointer-events: none;
  background: var(--surface); border-radius: var(--r-sm); padding: 8px 11px;
  font-size: 12.5px; line-height: 1.5; box-shadow: var(--shadow); max-width: 220px;
}

/* ── 하단 시트 ───────────────────────────────────────────────── */
.sheet {
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -2px 20px rgba(0,0,0,.08);
  padding: 6px 16px calc(14px + var(--safe-b));
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; transition: max-height .28s cubic-bezier(.32,.72,0,1);
}
/* 3단 높이를 전부 명시한다. 가운데 단만 flex 로 두면 실제 높이가 스냅 목표와 달라져
   손을 떼는 순간 엉뚱한 데로 튕긴다. */
@media (max-width: 899px) {
  .sheet { flex: none; height: 46dvh; max-height: none; }
}
.sheet.collapsed { flex: none; height: calc(86px + var(--safe-b)); max-height: none; }
/* 펼침은 지도 위를 덮는다. 예전에는 .sheet 와 .expanded 가 둘 다 flex:1 이라
   클래스만 붙고 높이가 한 픽셀도 안 변했다 — 그래서 아무 반응이 없어 보였다. */
.sheet.expanded { flex: none; height: calc(100dvh - 96px - var(--safe-t)); max-height: none; }
/* 끄는 동안에는 flex 성장에서 빼야 한다.
   .sheet 가 flex:1 이면 인라인 height 를 넣어도 flex 레이아웃이 도로 늘려버려서
   손가락을 따라오지 않는다 — 아무 반응이 없는 것처럼 보이던 원인이다. */
.sheet.dragging { transition: none; flex: none; }
/* 손잡이 — 5px 막대는 손가락으로 못 잡는다.
   막대는 그대로 얇게 보이되, 실제로 만져지는 영역은 44px 을 준다(애플 권장 최소 터치 크기). */
.sheet-handle {
  flex: none; display: flex; align-items: center; justify-content: center;
  height: 30px; margin: -4px -16px 4px; cursor: grab;
  touch-action: none;              /* 여기서 스크롤에 먹히면 드래그가 안 잡힌다 */
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.sheet-handle:active { cursor: grabbing; }
.grabber-bar {
  width: 40px; height: 5px; border-radius: 3px; background: var(--fg-3);
  opacity: .35; transition: opacity .15s, width .15s;
}
.sheet-handle:active .grabber-bar { opacity: .7; width: 52px; }
.sheet { position: relative; }
.tabs { margin-bottom: 12px; flex: none; touch-action: none; }
/* 탭 줄에서도 시트를 끌 수 있게 한다. touch-action 을 남겨두면
   브라우저가 먼저 스크롤로 판정해 버려서 preventDefault 가 먹지 않는다. */
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }

.verdict { margin: 0 0 12px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 14px; }
.count {
  background: var(--surface-2); border-radius: var(--r-sm);
  padding: 9px 2px; text-align: center;
}
.count b { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.02em; }
.count span { font-size: 10.5px; color: var(--fg-2); }

.sec { font-size: 13px; color: var(--fg-2); margin: 16px 0 8px; font-weight: 600; }
.sec small { font-weight: 400; color: var(--fg-3); }

.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 11px; padding: 11px 2px;
  border-bottom: 1px solid var(--sep); cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left;
}
.row:last-child { border-bottom: none; }
.row:active { background: var(--surface-2); }
.row-mark {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 16px;
}
.row-main { min-width: 0; flex: 1; }
.row-main b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.row-main small { display: block; font-size: 12.5px; color: var(--fg-2); }
.row-tail { text-align: right; flex: none; }
.row-tail b { font-size: 15px; font-weight: 600; }
.row-tail small { display: block; font-size: 11px; color: var(--fg-3); }
.deg {
  font-size: 11px; font-weight: 600; color: var(--fg-2);
  background: var(--surface-2); border-radius: 999px; padding: 2px 7px; flex: none;
}

.balance {
  background: var(--surface-2); border-radius: var(--r-md);
  padding: 12px 14px; font-size: 14px; line-height: 1.6;
}
.territory { display: flex; flex-direction: column; gap: 9px; }
.terr { display: grid; grid-template-columns: 74px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.terr-bar { height: 7px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.terr-bar i { display: block; height: 100%; border-radius: 999px; }
.terr-pct { text-align: right; color: var(--fg-2); font-size: 12px; }

.routes { display: flex; flex-direction: column; gap: 10px; }
.route { background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; }
.route-h { font-size: 14px; font-weight: 600; }
.route-w { font-size: 12px; color: var(--fg-2); margin-bottom: 7px; }
.route-i { font-size: 13.5px; padding: 6px 0; border-top: 1px solid var(--sep); cursor: pointer; }
.route-i:first-of-type { border-top: none; }
.route-none { font-size: 13px; color: var(--fg-2); }

.reading { font-size: 15px; line-height: 1.72; margin-bottom: 14px; }
.reading .blk { margin-bottom: 12px; }
.reading .lbl { display: block; font-size: 12px; color: var(--fg-2); font-weight: 600; margin-bottom: 2px; }
.danger-zone {
  margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--sep);
  display: flex; flex-wrap: wrap; gap: 8px;
}
.danger-zone .btn { flex: 1 1 auto; min-width: 44%; margin: 0; }
.danger-zone .tiny { flex: 1 0 100%; margin: 2px 0 0; }

/* ── 모달 시트 ───────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; }
.modal-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.35); backdrop-filter: blur(2px); }
.modal-card {
  position: relative; width: 100%; max-height: 88dvh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 10px 18px calc(20px + var(--safe-b));
  animation: slideUp .3s cubic-bezier(.32,.72,0,1);
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.modal-card .grabber { cursor: default; }
.modal-title { font-size: 21px; margin-bottom: 3px; letter-spacing: -.02em; }
.modal-sub { color: var(--fg-2); font-size: 13.5px; margin: 0 0 16px; }

.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.kv div { background: var(--surface-2); border-radius: var(--r-sm); padding: 9px 11px; }
.kv .k { font-size: 11.5px; color: var(--fg-2); }
.kv .v { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.line { font-size: 14.5px; line-height: 1.65; margin: 8px 0; }
.shadowline { font-size: 13.5px; color: var(--fg-2); border-left: 2px solid var(--sep); padding-left: 10px; margin: 10px 0; }
.pathline { font-size: 13px; color: var(--fg-2); margin: 12px 0; }
.pathline code { background: var(--surface-2); border-radius: 6px; padding: 3px 7px; font: inherit; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.steps { counter-reset: s; margin: 0 0 16px; padding: 0; list-style: none; }
.steps li {
  position: relative; padding: 0 0 16px 38px; font-size: 14.5px; line-height: 1.6;
}
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}
.steps b { display: block; font-size: 15px; }

.linkbox {
  display: flex; gap: 8px; align-items: center;
  background: var(--surface-2); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 12px;
}
.linkbox code { flex: 1; min-width: 0; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── 데스크톱 ────────────────────────────────────────────────── */
@media (min-width: 860px) {
  main { flex-direction: row; height: 100dvh; padding: 0; }
  .hdr {
    position: fixed; top: 0; left: 0; right: 380px; z-index: 10;
    background: linear-gradient(var(--bg) 62%, transparent);
    padding: calc(14px + var(--safe-t)) 22px 16px;
  }
  .stage { padding-top: 66px; }
  .mapwrap { flex: 1; padding: 0 16px 16px; display: flex; align-items: center; }
  canvas#map { max-height: calc(100dvh - 150px); }
  .toolbar { padding: 0 16px 10px; }
  .map-fabs { right: 30px; bottom: 26px; }
  .sheet {
    width: 380px; flex: none; max-height: none; height: 100dvh;
    border-radius: 0; box-shadow: -1px 0 0 var(--sep);
    padding: calc(16px + var(--safe-t)) 20px 20px;
  }
  .sheet.collapsed, .sheet.expanded { max-height: none; }
  .sheet-handle { display: none; }
  .modal { align-items: center; justify-content: center; padding: 24px; }
  .modal-card {
    max-width: 460px; border-radius: var(--r-lg); padding: 22px 24px 24px;
    animation: pop .22s cubic-bezier(.32,.72,0,1);
  }
  @keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  .modal-card .grabber { display: none; }
}

/* ── 명식(命式) 여덟 글자 ─────────────────────────────────────────── */
.chart {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 6px; margin: 14px 0 4px;
}
.chart-col {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 0 10px;
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 12px;
}
.chart-h { font-size: 11px; letter-spacing: .04em; opacity: .5; }
.chart .gz {
  font-size: 22px; line-height: 1.15; font-weight: 600;
  font-family: 'Apple SD Gothic Neo', 'Noto Serif KR', serif;
}
.chart .gz.none { opacity: .22; font-weight: 400; }
.chart .gz[data-el="mok"]  { color: #5FD08A; }
.chart .gz[data-el="hwa"]  { color: #FF7E6B; }
.chart .gz[data-el="to"]   { color: #E5B463; }
.chart .gz[data-el="geum"] { color: #BCC9DE; }
.chart .gz[data-el="su"]   { color: #5FADF2; }
.chart-note { margin: 2px 0 0; }

/* ── 오행 세력 막대 ───────────────────────────────────────────────── */
.power { display: flex; flex-direction: column; gap: 7px; margin: 14px 0 6px; }
.power-row { display: flex; align-items: center; gap: 9px; }
.power-el {
  width: 20px; text-align: center; font-size: 14px; font-weight: 600;
  font-family: 'Apple SD Gothic Neo', 'Noto Serif KR', serif;
}
.power-track {
  flex: 1; height: 7px; border-radius: 4px;
  background: var(--line, rgba(255,255,255,.08));
  overflow: hidden;
}
.power-track i {
  display: block; height: 100%; border-radius: 4px;
  transition: width .35s cubic-bezier(.22,.9,.3,1);
}
.power-num { width: 46px; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; opacity: .75; }
.power-num.zero { opacity: .3; }
.power [data-el="mok"]  { color: #5FD08A; background: #5FD08A; }
.power [data-el="hwa"]  { color: #FF7E6B; background: #FF7E6B; }
.power [data-el="to"]   { color: #E5B463; background: #E5B463; }
.power [data-el="geum"] { color: #BCC9DE; background: #BCC9DE; }
.power [data-el="su"]   { color: #5FADF2; background: #5FADF2; }
.power .power-el { background: none; }
.balance-line { margin: 10px 0 0; }

/* ── 세력으로 읽은 상태 ───────────────────────────────────────────── */
.state {
  margin: 12px 0 2px; padding: 12px 14px;
  background: var(--card, rgba(255,255,255,.04));
  border: 1px solid var(--line, rgba(255,255,255,.08));
  border-radius: 14px;
}
.state-name { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.state-tag {
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-variant-numeric: tabular-nums;
  border: 1px solid currentColor; opacity: .85;
}
.state-tag[data-lv="strong"]   { color: #E5B463; }
.state-tag[data-lv="balanced"] { color: #5FD08A; }
.state-tag[data-lv="weak"]     { color: #5FADF2; }
.state-tag[data-lv="veryweak"] { color: #FF7E6B; }
.state-desc { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; opacity: .78; }

/* ── 해석 로딩 골격 ───────────────────────────────────────────────── */
.sk-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; opacity: .6; margin-bottom: 12px;
}
.sk-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent, #5FADF2);
  animation: sk-pulse 1.4s ease-in-out infinite;
}
@keyframes sk-pulse { 0%,100% { opacity:.25; transform:scale(.8) } 50% { opacity:1; transform:scale(1.15) } }

.sk-line {
  display: block; height: 11px; border-radius: 6px; margin: 9px 0;
  background: linear-gradient(90deg,
    rgba(255,255,255,.05) 0%, rgba(255,255,255,.11) 40%,
    rgba(255,255,255,.05) 80%);
  background-size: 260% 100%;
  animation: sk-shimmer 1.6s linear infinite;
}
.sk .blk .sk-line:last-child { margin-bottom: 2px; }
@keyframes sk-shimmer { from { background-position: 160% 0 } to { background-position: -100% 0 } }

@media (prefers-reduced-motion: reduce) {
  .sk-dot, .sk-line { animation: none; }
}
.preview .hint { display: inline-block; margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--accent, #5FADF2); opacity: .85; }
.timerow { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.timerow select:disabled { opacity: .4; }

/* ── 모바일 제스처 차단 ─────────────────────────────────────────────
   지도는 자체 핀치 확대·이동을 가지고 있다. 그런데 브라우저의 페이지 확대와
   좌우 스와이프 뒤로가기가 그 위에서 같이 발동하면, 지도를 조작하려다
   페이지가 통째로 확대되거나 이전 화면으로 넘어가 버린다.
   viewport 의 maximum-scale 은 iOS 가 무시하므로 CSS·JS 로 막아야 한다. */
html, body {
  overscroll-behavior: none;          /* 당겨서 새로고침 · 좌우 스와이프 내비게이션 차단 */
  overscroll-behavior-x: contain;
  touch-action: pan-y;                /* 세로 스크롤만 허용 — 핀치·좌우 스와이프 제외 */
}
canvas#map {
  touch-action: none;                 /* 지도는 자기 제스처를 직접 처리한다 */
}
.sheet-body { overscroll-behavior-y: contain; }  /* 시트 끝에서 페이지로 스크롤이 새지 않게 */
.state-why {
  margin: 9px 0 0; font-size: 12.5px; line-height: 1.6; opacity: .62;
  padding-top: 9px; border-top: 1px solid var(--line, rgba(255,255,255,.08));
}
