/* 디자인 규칙 한 벌. 라이트/다크는 색만 바뀌고 글꼴·크기·배치는 같다.
   다크 = 계기판(깊은 남색 바탕 + 화보식 남색 판 + 청록 신호), 라이트 = 관측 기록지(차가운 회녹 바탕 + 진한 청록).
   글꼴: Pretendard, 숫자 강조는 IBM Plex Mono. 크기: 12 / 13 / 15 / 17 / 20 / 24. */
:root {
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --num: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 17px; --fs-xl: 20px; --fs-2xl: 24px;
  --r-card: 12px; --r-ctl: 8px; --ease: cubic-bezier(.22, 1, .36, 1);
  --bg: #e9eeec; --surface: #f7f9f8; --surface-2: #eef2f0; --glass: rgba(247, 249, 248, .9); --fg: #101c22; --fg-2: #34444b; --fg-3: #5d6d73;
  --line: #d3dbd8; --line-strong: #a4b2b0; --accent: #0e7f78; --accent-soft: #d5ece9; --on-accent: #ffffff;
  --ok: #1f7a50; --fair: #8a6400; --warn: #c2501a; --bad: #c0262d;
  --ok-bg: #dcefe5; --fair-bg: #f5ecd0; --warn-bg: #f8e2d6; --bad-bg: #f6dada;
  --shadow: 0 1px 2px rgb(16 28 34 / .08), 0 2px 8px rgb(16 28 34 / .06);
}
:root[data-theme="dark"] {
  --bg: #080d13; --surface: #0f1720; --surface-2: #16212c; --glass: rgba(14, 20, 30, .86); --fg: #eef4f6; --fg-2: #b4c3ca; --fg-3: #7d909a;
  --line: #1e2b36; --line-strong: #2f4150; --accent: #35d0c4; --accent-soft: #0f3433; --on-accent: #062224;
  --ok: #3ddc97; --fair: #e3cf5f; --warn: #ff9a3c; --bad: #ff5a5f;
  --ok-bg: #0f2a22; --fair-bg: #2a2712; --warn-bg: #2f1e10; --bad-bg: #321417;
  --shadow: 0 1px 3px rgb(0 0 0 / .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #080d13; --surface: #0f1720; --surface-2: #16212c; --glass: rgba(14, 20, 30, .86); --fg: #eef4f6; --fg-2: #b4c3ca; --fg-3: #7d909a;
  --line: #1e2b36; --line-strong: #2f4150; --accent: #35d0c4; --accent-soft: #0f3433; --on-accent: #062224;
  --ok: #3ddc97; --fair: #e3cf5f; --warn: #ff9a3c; --bad: #ff5a5f;
  --ok-bg: #0f2a22; --fair-bg: #2a2712; --warn-bg: #2f1e10; --bad-bg: #321417;
  --shadow: 0 1px 3px rgb(0 0 0 / .5);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 400 var(--fs-md)/1.55 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent-soft); color: var(--fg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.ph { font-size: 20px; line-height: 1; }
#app { max-width: 840px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; padding: 12px 16px 40px; display: grid; gap: 16px; align-content: start; }
.muted { color: var(--fg-3); }
.err { color: var(--bad); }

/* 단계: data-lv 0 적합 · 1 가능 · 2 주의 · 3 부적합 */
[data-lv="0"] { --c: var(--ok); --cb: var(--ok-bg); } [data-lv="1"] { --c: var(--fair); --cb: var(--fair-bg); }
[data-lv="2"] { --c: var(--warn); --cb: var(--warn-bg); } [data-lv="3"] { --c: var(--bad); --cb: var(--bad-bg); }

/* 머리줄 */
.bar { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 4px;
  padding: calc(8px + env(safe-area-inset-top)) 8px 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--fg-2); }
.icon-btn:hover { background: var(--surface-2); }
.title { min-width: 0; text-align: center; }
.title h1 { margin: 0; font-size: var(--fs-lg); font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title small { display: block; font-size: var(--fs-xs); color: var(--fg-3); }
.brand { font-weight: 700; font-size: var(--fs-lg); padding-left: 8px; grid-column: 1 / 3; }

/* 공통 판 */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
.panel-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px 0; }
.panel-h h2 { margin: 0; font-size: var(--fs-md); font-weight: 650; }
.panel-h small { font-size: var(--fs-xs); color: var(--fg-3); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 650; padding: 2px 8px; border-radius: 999px; color: var(--c); background: var(--cb); white-space: nowrap; }
.sec-title { font-size: var(--fs-sm); font-weight: 650; color: var(--fg-2); margin: 8px 0 -6px; }

.splash { min-height: 100dvh; display: grid; place-content: center; text-align: center; gap: 6px; }
.splash h1 { margin: 0; font-size: var(--fs-2xl); font-weight: 700; }
.splash p { margin: 0; color: var(--fg-3); font-size: var(--fs-sm); }

/* 목록 */
.list { list-style: none; margin: 0; padding: 0; }
.list li + li { border-top: 1px solid var(--line); }
.list a, .list .row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 56px; }
.list a:hover { background: var(--surface-2); }
.list .lead { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.list .txt { flex: 1; min-width: 0; }
.list .txt b { display: block; font-weight: 600; }
.list .txt small { display: block; font-size: var(--fs-sm); color: var(--fg-3); }
.list .off { opacity: .55; }
.list .end { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.list .end small { font-size: var(--fs-xs); color: var(--fg-3); }
.chev { color: var(--fg-3); }

.skel { display: flex; gap: 6px; }
.skel span { width: 64px; height: 20px; border-radius: 999px; background: var(--line); animation: pulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .skel span { animation: none; } }
@keyframes pulse { 50% { opacity: .45; } }

/* 지도 */
main.wide { padding-left: 0; padding-right: 0; }
main.wide > :not(.mapwrap) { margin-left: 16px; margin-right: 16px; }
.mapwrap { position: relative; margin-top: -12px; }
.map { height: 52dvh; min-height: 300px; background: var(--surface-2); }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; box-shadow: var(--shadow); }
.seg button { font-size: var(--fs-sm); padding: 6px 12px; border-radius: 999px; color: var(--fg-2); }
.seg button.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.maplayers { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.hint { font-size: var(--fs-sm); color: var(--fg-3); margin: 0; }
.pin { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); cursor: pointer; }
.pin.picked { width: 18px; height: 18px; background: var(--bad); }

/* 활동 줄(장소 화면·지도 선택) */
.act-row .end .badge { font-size: var(--fs-xs); }
.act-row .when { font-size: var(--fs-sm); color: var(--fg-2); }

/* 상세: 판정 판 */
.verdict { padding: 16px; display: grid; gap: 12px; }
.v-top { display: flex; align-items: center; gap: 12px; }
.v-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--cb); color: var(--c); flex: 0 0 auto; }
.v-icon .ph { font-size: 22px; }
.v-word { font-size: var(--fs-2xl); font-weight: 700; color: var(--c); line-height: 1.2; letter-spacing: -0.01em; }
.v-when { font-size: var(--fs-sm); color: var(--fg-3); }
.v-text { margin: 0; font-size: var(--fs-md); line-height: 1.6; color: var(--fg); }
.v-best { font-size: var(--fs-sm); color: var(--fg-2); padding-top: 10px; border-top: 1px solid var(--line); }
.v-best b { color: var(--fg); font-weight: 650; }

/* 관문 점검표(로그북 기입 칸) */
.check { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; }
.check li { display: grid; grid-template-columns: 20px 56px 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; font-size: var(--fs-sm); }
.check li + li { border-top: 1px solid var(--line); }
.check .ph { font-size: 18px; color: var(--c); }
.check b { font-weight: 650; }
.check span { color: var(--fg-2); }
.check em { font-style: normal; font-weight: 650; color: var(--c); white-space: nowrap; }
.check li.skip { opacity: .55; }

/* 날짜·시간 */
.days { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 -16px; padding: 0 16px; }
.day { flex: 0 0 auto; display: grid; justify-items: center; gap: 4px; min-width: 64px; padding: 8px 10px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); color: var(--fg-2); }
.day b { font-size: var(--fs-xs); font-weight: 600; color: var(--c); }
.day.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 650; }
.profile { padding: 14px 16px 12px; }
.bars { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; align-items: end; height: 72px; margin-top: 10px; }
.hr { height: 100%; position: relative; display: flex; align-items: flex-end; border-radius: 4px; }
.hr::before { content: ""; position: absolute; inset: auto 0 0; height: var(--h); background: var(--c); border-radius: 4px; opacity: .9; }
.hr[data-lv="0"] { --h: 100%; } .hr[data-lv="1"] { --h: 72%; } .hr[data-lv="2"] { --h: 46%; } .hr[data-lv="3"] { --h: 22%; }
.hr[data-block]::before { background: repeating-linear-gradient(135deg, var(--c) 0 2px, transparent 2px 5px); border: 1px solid var(--c); }
.hr.past::before { opacity: .3; }
.hr.on { outline: 2px solid var(--fg); outline-offset: 2px; }
.hours { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 3px; margin-top: 4px; font-size: 11px; color: var(--fg-3); text-align: center; }
.legend-line { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 10px; font-size: var(--fs-xs); color: var(--fg-3); }
.legend-line i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c); margin-right: 4px; vertical-align: -1px; }
.legend-line i.block { background: repeating-linear-gradient(135deg, var(--fg-3) 0 2px, transparent 2px 4px); border: 1px solid var(--fg-3); }

/* 근거(관문별) */
.gate { padding: 0 16px 6px; }
.gate + .gate { border-top: 1px solid var(--line); }
.gate summary { display: flex; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; list-style: none; }
.gate summary::-webkit-details-marker { display: none; }
.gate summary b { font-size: var(--fs-md); font-weight: 650; }
.gate summary .n { font-size: var(--fs-xs); color: var(--fg-3); width: 18px; }
.gate summary .badge { margin-left: auto; }
.gate summary .caret { color: var(--fg-3); transition: transform .2s; }
.gate[open] summary .caret { transform: rotate(180deg); }
.gate .note-skip { font-size: var(--fs-xs); color: var(--fg-3); margin: -8px 0 10px 26px; }
.items { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 0; }
.items li { display: grid; grid-template-columns: 8px 1fr auto; column-gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.items li > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-top: 7px; }
.items .k { font-weight: 600; font-size: var(--fs-md); }
.items .v { font-size: var(--fs-sm); color: var(--fg); text-align: right; font-weight: 600; }
.items p { grid-column: 2 / 4; margin: 2px 0 0; font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.55; }

/* 그림 */
.figs { display: grid; gap: 16px; }
@media (min-width: 720px) { .figs { grid-template-columns: 1fr 1fr; } }
.fig { padding: 14px 16px 16px; margin: 0; }
figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
figcaption span { font-size: var(--fs-sm); font-weight: 650; }
figcaption b { font-size: var(--fs-lg); font-weight: 650; }
figcaption em { font-style: normal; font-size: var(--fs-xs); color: var(--fg-3); margin-left: 3px; font-weight: 400; }
.fig svg { width: 100%; height: auto; display: block; overflow: visible; }
.note { font-size: var(--fs-xs); color: var(--fg-3); margin: 8px 0 0; line-height: 1.55; }
.g-line { fill: none; stroke: var(--accent); stroke-width: 2; }
.g-dot { fill: var(--accent); }
.g-bar { fill: var(--accent); opacity: .75; }
.g-th { stroke: var(--line-strong); stroke-dasharray: 3 3; stroke-width: 1; }
.g-tick { font: 10px var(--font); fill: var(--fg-3); }
.g-sel { fill: var(--accent); opacity: .08; }
.g-hatch { stroke: var(--bad); stroke-width: 1.5; opacity: .35; }
.g-now { stroke: var(--bad); stroke-width: 1.5; }
.g-ring, .s-horizon { fill: none; stroke: var(--line-strong); stroke-width: 1.2; }
.s-ring { fill: none; stroke: var(--line); stroke-dasharray: 2 3; }
.g-dotc { fill: var(--fg-2); }
.g-card { font: 600 11px var(--font); fill: var(--fg-3); }
.g-lab { font: 10px var(--font); fill: var(--fg-2); }
.g-ah { fill: var(--fg-2); }
.g-wind { stroke: var(--fg); stroke-width: 2.5; }
.g-wave { stroke: var(--accent); stroke-width: 2.5; }
.g-swell { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; }
.g-cur { stroke: var(--ok); stroke-width: 2.5; }
.compass svg { max-width: 220px; margin: 0 auto; }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--fg-2); }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 3px solid var(--fg); margin-right: 8px; vertical-align: middle; }
.legend .k-wave { border-color: var(--accent); } .legend .k-swell { border-top-style: dashed; border-color: var(--accent); } .legend .k-cur { border-color: var(--ok); }
.sky svg { max-width: 300px; margin: 0 auto; }
.s-band { fill: none; stroke: var(--accent); stroke-width: 14; stroke-linecap: round; opacity: .18; }
.s-band-edge { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .35; stroke-dasharray: 2 3; }
.s-gc { fill: var(--warn); }
.s-moon { fill: var(--fg-3); stroke: var(--fg); }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.facts div { padding: 10px 0; border-top: 1px dashed var(--line); }
.facts dt { font-size: var(--fs-xs); color: var(--fg-3); }
.facts dd { margin: 0; font-size: var(--fs-lg); font-weight: 650; }

.status, .criteria { font-size: var(--fs-xs); color: var(--fg-3); margin: 0; }
.planned { display: flex; flex-wrap: wrap; gap: 8px; }
.planned span { display: inline-flex; gap: 6px; align-items: center; font-size: var(--fs-sm); padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--fg-3); background: var(--surface); }
.planned .ph { font-size: 16px; }

.foot { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); color: var(--fg-3); font-size: var(--fs-xs); line-height: 1.6; }
.foot p { margin: 0 0 4px; }
.foot a { text-decoration: underline; text-underline-offset: 2px; }

/* 도구 줄(지도·하늘 아래) */
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px 0; }
main.wide > .tools { padding: 0; }
.tools > button { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-2); }
.tools > button .ph { font-size: 16px; }
.tools > button:hover { background: var(--surface-2); }
.tools > button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 650; }
.tools .seg { box-shadow: none; }
.panel > .legend-line { padding: 0 16px 14px; }
.panel > .note { padding: 0 16px 14px; }
.mapbox { margin-top: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.map.small { height: 280px; min-height: 0; }
.sky3d { position: relative; height: 360px; margin-top: 12px; background: #05070b; overflow: hidden; }
.sky3d canvas { display: block; cursor: grab; }
.sky-hud { position: absolute; left: 10px; bottom: 8px; font-size: var(--fs-xs); color: #cbd5e1; background: rgb(5 7 11 / .6); padding: 3px 8px; border-radius: 6px; pointer-events: none; }
.fig { position: relative; }
.fig-zoom { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; }
.fig-zoom .ph { font-size: 16px; }
figcaption { padding-right: 32px; }

/* 크게 보기 */
.viewer { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: calc(6px + env(safe-area-inset-top)) 8px 6px 16px; border-bottom: 1px solid var(--line); }
.viewer-bar b { font-size: var(--fs-lg); font-weight: 650; }
.viewer-body { flex: 1; position: relative; overflow: hidden; display: grid; place-items: center; }
.viewer-body > .in-viewer { width: 100%; height: 100%; margin: 0; transform-origin: center; }
.viewer-body > .mapbox.in-viewer, .viewer-body > .mapwrap.in-viewer { border: 0; margin: 0; }
.viewer-body .in-viewer .map { height: 100%; }
.viewer-body > .sky3d.in-viewer { height: 100%; margin: 0; }
.viewer-body > .fig.in-viewer { width: min(100%, 900px); height: auto; border: 0; background: transparent; }
.viewer-body > .fig.in-viewer .fig-zoom { display: none; }
.update-bar { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 200; padding: 12px 16px; border-radius: var(--r-card); background: var(--accent); color: #fff; font-weight: 650; box-shadow: 0 6px 20px rgb(0 0 0 / .25); }

/* 지도·하늘 위에 얹는 도구(크게 보기에도 같이 간다) */
.mapwrap, .mapbox, .skywrap { position: relative; }
.skywrap { margin-top: 12px; }
.skywrap .sky3d { margin-top: 0; }
.map-ui { position: absolute; left: 10px; right: 10px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.map-ui > * { pointer-events: auto; }
.map-ui.top { top: 10px; justify-content: flex-start; right: 56px; overflow-x: auto; scrollbar-width: none; }
.map-ui.bottom { bottom: 26px; }
.map-ui.bottom.right { justify-content: flex-end; bottom: 10px; }
.map-ui .seg { box-shadow: var(--shadow); white-space: nowrap; }
.map-ui .seg button { display: inline-flex; align-items: center; gap: 4px; }
.map-ui .seg .ph { font-size: 15px; }
.btns { display: flex; gap: 8px; }
.fab { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--fg-2); border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.fab .ph { font-size: 18px; }
.fab.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.chips-row { display: flex; gap: 6px; }
.chipbtn { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); padding: 6px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--fg); box-shadow: var(--shadow); white-space: nowrap; }
.chipbtn i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.map-legend { position: absolute; left: 10px; right: 10px; bottom: 74px; z-index: 3; font-size: var(--fs-sm); line-height: 1.5; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 8px 10px; box-shadow: var(--shadow); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 3px 0 8px; vertical-align: -1px; }
.mapwrap .map { height: 58dvh; }
.sky-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.sky3d canvas { position: relative; z-index: 1; }
.sky-hud { z-index: 2; bottom: 58px; }
.maplibregl-popup-content { font: 13px/1.5 var(--font); color: #202124; border-radius: 8px; padding: 8px 10px; }
.viewer-body > .skywrap.in-viewer, .viewer-body > .mapbox.in-viewer, .viewer-body > .mapwrap.in-viewer { width: 100%; height: 100%; margin: 0; border: 0; }
.viewer-body > .skywrap.in-viewer .sky3d { height: 100%; }
.viewer-body > .mapwrap.in-viewer .map { height: 100%; }

/* 아래 탭 */
#app { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 840px; margin: 0 auto;
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 8px 0 10px; font-size: var(--fs-xs); color: var(--fg-3); }
.tabbar a .ph { font-size: 22px; }
.tabbar a.on { color: var(--accent); font-weight: 650; }
.bar { grid-template-columns: auto 1fr auto; }
.bar-r { display: flex; gap: 2px; justify-content: flex-end; }
.fav.on { color: #f9ab00; }
.fav.on .ph::before { font-weight: 900; }

/* 활동 표: 지금 / 오늘 최적 */
.pick-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pick-h > div { flex: 1; min-width: 0; }
.pick-h b { display: block; font-size: var(--fs-lg); font-weight: 650; }
.pick-h small { color: var(--fg-3); font-size: var(--fs-sm); }
.lead { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.ag { display: grid; }
.ag-h, .ag-r { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 8px; align-items: center; padding: 10px 16px; }
.ag-h { font-size: var(--fs-xs); color: var(--fg-3); padding-top: 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ag-r + .ag-r { border-top: 1px solid var(--line); }
.ag-r:hover { background: var(--surface-2); }
.ag-a { display: flex; align-items: center; gap: 10px; }
.ag-a b { font-weight: 600; }
.ag-r small { display: block; font-size: var(--fs-xs); color: var(--fg-3); margin-top: 2px; }
.ag-r .badge { font-size: var(--fs-sm); padding: 3px 10px; }

/* 장소 검색, 빈 상태 */
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 48px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--fg); outline: none; }
.sec-title small { color: var(--fg-3); font-weight: 400; margin-left: 4px; }
.list a .chev { color: var(--fg-3); font-size: 18px; }
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 48px 16px; color: var(--fg-2); }
.empty > .ph { font-size: 40px; color: var(--fg-3); }
.empty small { color: var(--fg-3); max-width: 28ch; }

/* 지도: 첫 화면, 고른 지점 핀, 범례 */
.mapwrap.home .map { height: 60dvh; }
.pick-pin { color: var(--accent); filter: drop-shadow(0 2px 2px rgb(0 0 0 / .35)); }
.pick-pin .ph { font-size: 36px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.map-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.map-legend .lg-note { color: var(--fg-3); font-size: var(--fs-xs); width: 100%; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sw.cloud { background: #ffffff; border: 1px solid #bdc1c6; }
.sw.lights { background: radial-gradient(circle, #ffe9a8 0 30%, #2a2a2a 70%); }
.chips-row .chipbtn.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.map-ui .seg + .seg { margin-left: 6px; }

/* 7일 값 곡선(크게 보기) */
.fullchart { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 8px 0; }
.fc-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fc-scroll svg { display: block; }
.fullchart .note { padding: 0 16px; }
.g-mean { font: 600 11px var(--font); fill: var(--fg-2); }
.g-val { font: 10px var(--font); fill: var(--fg); }
.g-day { stroke: var(--line-strong); stroke-width: 1; }
.g-dayl { font: 600 11px var(--font); fill: var(--fg-2); }
.map-legend[hidden] { display: none; }
.chipbtn .ph { font-size: 15px; line-height: 1; }
.tabbar { grid-template-columns: repeat(4, 1fr); }
.chipbtn.big { justify-content: center; padding: 12px 16px; font-size: var(--fs-md); font-weight: 650; color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
/* 활동 허브 */
.hub { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .hub { grid-template-columns: repeat(4, 1fr); } }
.hub-t { display: grid; gap: 6px; align-content: start; padding: 14px; min-height: 132px; position: relative; }
.hub-t:hover { background: var(--surface-2); }
.hub-t b { font-size: var(--fs-md); font-weight: 650; }
.hub-t small { font-size: var(--fs-xs); color: var(--fg-3); line-height: 1.45; }
.hub-t .badge, .hub-t .soon { justify-self: start; margin-top: auto; }
.soon { font-size: var(--fs-xs); color: var(--fg-3); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 2px 8px; }
.plan h3 { font-size: var(--fs-sm); color: var(--fg-2); margin: 0 16px 6px; }
.plan ul { margin: 0 0 16px; padding: 0 16px 0 34px; display: grid; gap: 6px; font-size: var(--fs-md); }
/* 계산기 */
.tool-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 12px 16px 4px; }
.tool-in label { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--fg-2); }
.inp { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r-ctl); background: var(--surface-2); padding: 0 10px; }
.inp input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 var(--fs-lg) var(--font); color: var(--fg); padding: 8px 0; outline: none; }
.inp em { font-style: normal; color: var(--fg-3); font-size: var(--fs-sm); }
.tool-out { margin: 8px 16px 4px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.tool-out div { padding: 10px 0; border-top: 1px dashed var(--line); }
.tool-out dt { font-size: var(--fs-xs); color: var(--fg-3); }
.tool-out dd { margin: 0; font-size: var(--fs-xl); font-weight: 700; color: var(--accent); }
.tool .note { padding: 0 16px 14px; }
/* 글 */
.article { padding: 14px 16px; }
.article h2 { font-size: var(--fs-lg); margin: 0 0 6px; }
.article p { margin: 0 0 8px; line-height: 1.65; color: var(--fg); }
.article .src { font-size: var(--fs-xs); color: var(--fg-3); margin: 8px 0 0; }
.article .src a { text-decoration: underline; text-underline-offset: 2px; }
.tag { font-size: 11px; color: var(--warn); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
/* 기록장 */
.book form { display: grid; gap: 10px; padding: 12px 16px 16px; }
.book label { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--fg-2); }
.book input, .book select, .book textarea { font: inherit; color: var(--fg); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 9px 10px; }
.book fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.book legend { font-size: var(--fs-sm); color: var(--fg-2); margin-bottom: 4px; width: 100%; }
.book .pick { display: inline-flex; }
.book .pick input { position: absolute; opacity: 0; }
.book .pick span { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-sm); cursor: pointer; }
.book .pick input:checked + span { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 650; }
.list .cond { color: var(--accent) !important; }
/* 상세 탭 */
.panes { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(57px + env(safe-area-inset-top)); z-index: 8; background: var(--bg); padding: 6px 0; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.panes button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-2); font-size: var(--fs-sm); }
.panes button .ph { font-size: 16px; }
.panes button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 650; }
[data-pane][hidden] { display: none !important; }
/* 카드(배우기·안전) */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { display: grid; overflow: hidden; }
.card img, .card-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; background: var(--surface-2); color: var(--fg-3); }
.card-ph .ph { font-size: 32px; }
.card-t { display: grid; gap: 4px; padding: 10px 12px 12px; }
.card-t b { font-size: var(--fs-md); font-weight: 650; line-height: 1.35; }
.card-t small { font-size: var(--fs-xs); color: var(--fg-3); line-height: 1.45; }
.photo { margin: 0 0 12px; }
.photo img { width: 100%; max-height: 360px; object-fit: cover; border-radius: var(--r-ctl); display: block; }
.photo figcaption { font-size: 11px; color: var(--fg-3); margin-top: 4px; display: block; }
.photo figcaption a { text-decoration: underline; }
.hero .photo img { max-height: 220px; border-radius: var(--r-card); }
.pager { display: flex; justify-content: space-between; }
.tabbar { grid-template-columns: repeat(3, 1fr); }
.list-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.list-link > .ph:first-child { font-size: 24px; color: var(--accent); }
.list-link span { flex: 1; } .list-link b { display: block; } .list-link small { color: var(--fg-3); font-size: var(--fs-sm); }
.pin-sample { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); vertical-align: -1px; }
.panes a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-2); font-size: var(--fs-sm); }
.panes a .ph { font-size: 16px; }
.panes a.on { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 650; }
.lead-text { margin: 0; font-size: var(--fs-md); line-height: 1.6; }
.guide h2 { display: flex; align-items: center; gap: 8px; }
.guide h2 .n { font-size: var(--fs-xs); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.guide ul { list-style: none; margin: 8px 0 0; padding: 0 16px 8px; }
.guide li { padding: 10px 0; border-top: 1px dashed var(--line); }
.g-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.g-top .good { font-size: var(--fs-sm); color: var(--ok); font-weight: 600; text-align: right; }
.guide li p { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.55; }
.chipbtn.file { cursor: pointer; }
.from-gear { font-style: normal; font-size: 11px; color: var(--accent); margin-left: 4px; }
.stats .tool-out dd { color: var(--fg); }
/* 배우기 도식 */
.diagram { margin: 0 0 12px; background: var(--surface-2); border-radius: var(--r-ctl); padding: 8px; }
.dg { width: 100%; height: auto; display: block; }
.dg-t { font: 600 11px var(--font); fill: var(--fg); }
.dg-s { font: 10px var(--font); fill: var(--fg-2); }
.dg-h { font: 700 12px var(--font); fill: var(--fg); }
.dg-cap { font: 600 10.5px var(--font); fill: var(--accent); }
.dg-water { fill: var(--accent); opacity: .08; }
.dg-surface { stroke: var(--accent); stroke-width: 1.5; opacity: .6; }
.dg-box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.dg-box2 { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.2; }
.dg-strong { stroke: var(--fg); stroke-width: 3; fill: none; }
.dg-tube { stroke: var(--fg-3); stroke-width: 6; fill: none; stroke-linecap: round; }
.dg-press { stroke: var(--warn); stroke-width: 2.5; }
.dg-air { stroke: var(--accent); stroke-width: 2.5; fill: none; }
.dg-eye { stroke: var(--ok); stroke-width: 1.8; stroke-dasharray: 4 3; fill: none; }
.dg-ah { fill: var(--accent); } .dg-aha { fill: var(--warn); }
.dg-lung { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.dg-div { stroke: var(--line); stroke-dasharray: 3 3; }
.dg-rope { stroke: var(--fg-3); stroke-width: 1.5; }
.dg-buoy { fill: #f9ab00; stroke: var(--fg-3); }
.dg-weight { fill: var(--fg-2); }
.dg-lanyard { stroke: #e8710a; stroke-width: 2; fill: none; }
.dg-diver circle, .dg-diver rect { fill: var(--fg-2); }
.dg-fin { fill: var(--accent); }
.dg-zone1 { fill: var(--ok-bg); } .dg-zone2 { fill: var(--fair-bg); } .dg-zone3 { fill: var(--accent-soft); }
.dg-warn { fill: var(--warn-bg); stroke: var(--warn); }
/* 배우기 비교표 */
.cmp { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.cmp th, .cmp td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.cmp th { font-size: var(--fs-xs); color: var(--fg-3); font-weight: 600; }
.cmp-wrap { overflow-x: auto; padding: 0 6px 8px; }
.sec h3 { font-size: var(--fs-md); margin: 14px 0 6px; }
.sec ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.pick-h small { display: block; }
.kinds { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 2px; }
.kinds span { font-size: 11px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; }
.chips-row.wrap { flex-wrap: wrap; }
.more summary { padding: 10px 16px; font-size: var(--fs-sm); color: var(--accent); cursor: pointer; border-top: 1px solid var(--line); }
/* 지도 점 옆 말풍선 */
.bubble .maplibregl-popup-content { padding: 12px 14px 10px; border-radius: 12px; background: var(--surface); color: var(--fg); box-shadow: 0 4px 16px rgb(0 0 0 / .25); min-width: 210px; }
.bubble .maplibregl-popup-tip { border-top-color: var(--surface) !important; border-bottom-color: var(--surface) !important; }
.bubble .maplibregl-popup-close-button { font-size: 18px; color: var(--fg-3); padding: 2px 8px; }
.bb-h b { display: block; font-size: var(--fs-md); padding-right: 18px; }
.bb-h small { display: block; font-size: 11px; color: var(--fg-3); }
.bb-body { margin-top: 8px; display: grid; gap: 2px; }
.bb-field { margin: 0 0 4px; font-size: var(--fs-sm); font-weight: 600; }
.bb-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.bb-row span:first-of-type { flex: 1; }
.bb-row .ph { color: var(--accent); }
.bb-more { display: flex; justify-content: flex-end; align-items: center; gap: 2px; padding-top: 6px; font-size: var(--fs-sm); font-weight: 650; color: var(--accent); border-top: 1px solid var(--line); }
.map-legend.static { position: static; margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; }
/* 장비 칸 정렬: 숫자 칸 안의 입력은 테두리 없이 */
.book .inp { background: var(--surface-2); }
.book .inp input { border: 0; background: transparent; padding: 9px 0; border-radius: 0; font-size: var(--fs-md); font-weight: 600; }
.book .tool-in { grid-template-columns: 1fr 1fr; }
/* 지도 바탕: 라이트·다크·위성 모두 우주 */
.map, .mapbox .map, .mapwrap .map { background: radial-gradient(1px 1px at 12% 22%, #fff9, transparent 60%), radial-gradient(1px 1px at 72% 14%, #fff8, transparent 60%), radial-gradient(1.2px 1.2px at 38% 68%, #fffa, transparent 60%), radial-gradient(1px 1px at 86% 58%, #fff7, transparent 60%), radial-gradient(1px 1px at 58% 88%, #fff8, transparent 60%), radial-gradient(1px 1px at 22% 82%, #fff6, transparent 60%), radial-gradient(1.3px 1.3px at 92% 30%, #fff9, transparent 60%), radial-gradient(ellipse at 50% 50%, #0f1a2e 0%, #05070d 70%) !important; }
.maplibregl-canvas { background: transparent !important; }
.map-ui.search { top: 56px; right: 56px; }
.search.small { height: 40px; padding: 0 12px; box-shadow: var(--shadow); width: 100%; max-width: 360px; }
.search.small input { font-size: var(--fs-sm); }

/* PC(넓은 화면): 아래 탭을 위로 올린다 */
@media (min-width: 900px) {
  #app { padding-bottom: 0; }
  .bar { order: 0; }
  .tabbar { order: 1; position: sticky; top: calc(57px + env(safe-area-inset-top)); bottom: auto; z-index: 9; max-width: none; margin: 0; border-top: 0; border-bottom: 1px solid var(--line); background: var(--bg); padding-bottom: 0; display: flex; gap: 4px; padding: 0 12px; }
  .tabbar a { display: flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: var(--fs-sm); border-bottom: 2px solid transparent; }
  .tabbar a .ph { font-size: 18px; }
  .tabbar a.on { border-bottom-color: var(--accent); }
  main { order: 2; } .foot { order: 3; }
  .panes { top: calc(101px + env(safe-area-inset-top)); }
}
/* 범례는 지도를 가리지 않게 지도 아래 한 줄로 */
.mapwrap .map-legend, .mapbox + .map-legend { position: static; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); box-shadow: none; padding: 8px 16px; font-size: var(--fs-xs); }
.mapwrap .map-legend .lg-note { width: auto; }
.map-legend.under { position: static; margin: 0 !important; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); box-shadow: none; padding: 8px 16px; font-size: var(--fs-xs); background: var(--surface); }
.map-legend.under .lg-note { width: auto; }
/* 입력칸 높이 통일: 사파리는 기본 select 에 여백을 안 먹여서 작아진다. 모양을 직접 그린다 */
.book input:not([type=checkbox]):not([type=radio]):not([type=file]), .book select, .inp, .tool-in select { min-height: 46px; box-sizing: border-box; }
.book .inp input { min-height: 0; }
select { -webkit-appearance: none; appearance: none; font: inherit; color: var(--fg); background-color: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--r-ctl); padding: 9px 36px 9px 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%239aa0a6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.book input[type=date] { -webkit-appearance: none; appearance: none; text-align: left; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.gear-part { display: grid; gap: 12px; }
.gear-part:empty { display: none; }
.gear-part + .gear-part:not(:empty) { border-top: 1px solid var(--line); padding-top: 12px; }
.part-h { margin: 0; font-size: var(--fs-md); font-weight: 700; color: var(--fg); }
/* 이 밤 시간표 */
.nb-day { fill: #8ab4f8; opacity: .35 } .nb-civil { fill: #5b7fbf; opacity: .45 } .nb-naut { fill: #34507f; opacity: .55 } .nb-astro { fill: #1f2d4a; opacity: .7 } .nb-night { fill: #0b1020; opacity: .85 }
.nb-ground { fill: #6b5a45; opacity: .35 } .nb-hz { stroke: #a08a6a; stroke-width: 1 }
.nb-gc { fill: none; stroke: #f9ab00; stroke-width: 2.2 } .nb-moon { fill: none; stroke: #dadce0; stroke-width: 1.6; stroke-dasharray: 4 3 }
.nb-good { fill: #34a853 } .nb-sel { stroke: var(--fg); stroke-width: 1.5; stroke-dasharray: 2 2 } .nb-ev { stroke: rgba(255,255,255,.35); stroke-width: 1 }
.fig[data-night] svg { width: 100%; height: auto; display: block; border-radius: 6px; margin: 4px 0 6px; }
.nb-key { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-xs); color: var(--fg-2); margin: 6px 0; }
.nb-key i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.nb-key .k-gc { background: #f9ab00 } .nb-key .k-moon { background: #dadce0 } .nb-key .k-good { background: #34a853 }
.nb-key .nb-night { background: #0b1020 } .nb-key .nb-astro { background: #1f2d4a } .nb-key .nb-naut { background: #34507f } .nb-key .nb-civil { background: #5b7fbf }
.night-full { padding: 16px; max-width: 1100px; margin: 0 auto; }
.night-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; margin-top: 12px; }
.night-table th, .night-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.night-table th { color: var(--fg-3); font-weight: 600; font-size: var(--fs-xs); }
.night-table tr.good td { background: color-mix(in srgb, #34a853 14%, transparent); }
.night-table tr.sel td { font-weight: 700; }
/* 촬영 설정 */
.shoot { padding: 0 16px 16px; display: grid; gap: 12px; }
.shoot .kit { display: grid; gap: 6px; font-size: var(--fs-md); }
.shoot .tool-out small { display: block; font-size: var(--fs-xs); color: var(--fg-3); margin-top: 2px; }
.shoot-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: var(--fs-sm); color: var(--fg-2); }
.shoot-notes li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; }
.shoot-notes b { color: var(--fg); margin-right: 4px; }
.nt-wrap { overflow-x: auto; }
.night-table { min-width: 520px; }
.night-table td { white-space: nowrap; }
.book form, .book label, .gear-part, .gear-part > *, .tool-in label { min-width: 0; }
.book input, .book select, .book textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.book .inp input { width: auto; }
/* 장비 안내 */
.gg-lead { margin: 4px 0 8px; color: var(--fg-2); font-size: var(--fs-md); line-height: 1.6; }
.gg { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 8px; }
.gg-item { margin: 0; overflow: hidden; display: flex; flex-direction: column; }
.gg-item .photo { margin: 0; }
.gg-item .photo img { aspect-ratio: 4 / 3; max-height: none; border-radius: 0; }
.gg-item .photo figcaption { padding: 4px 12px 0; }
.gg-noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface-2); color: var(--fg-3); font-size: 40px; }
.gg-body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.gg-body h3 { margin: 0 0 2px; font-size: var(--fs-lg); }
.gg-body p { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--fg-2); }
.gg-body p b { display: inline-block; min-width: 64px; color: var(--fg); font-weight: 650; }
.gg-src { font-size: 11px; color: var(--fg-3); }
.gg-src a { text-decoration: underline; }
.chips-row:empty { display: none; }
@media (max-width: 600px) { .gg-noimg { aspect-ratio: 16 / 9; } }
/* 장비 카드 글: 이름표 칸과 내용 칸을 나눠 줄을 맞춘다 */
#gguide { padding-top: 8px; }
.gg-body p { display: grid; grid-template-columns: 68px 1fr; column-gap: 10px; align-items: baseline; }
.gg-body p b { display: block; min-width: 0; }
.gg-art { aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.gg-art svg { width: 100%; height: 100%; display: block; }
/* 장비 그림 */
.ga-rub { fill: #2b2e33; stroke: #15171a; stroke-width: 1.2; }
.ga-rub2 { fill: #4a4f57; stroke: #15171a; stroke-width: 1.2; }
.ga-glass { fill: #cfe3f5; stroke: #15171a; stroke-width: 1.4; opacity: .95; }
.ga-blade { fill: #33373d; stroke: #15171a; stroke-width: 1.2; }
.ga-rail { stroke: #8a929c; stroke-width: 2; fill: none; stroke-linecap: round; }
.ga-lead { fill: #8d939b; stroke: #3c4043; stroke-width: 1.2; }
.ga-metal { fill: #c4c9cf; stroke: #3c4043; stroke-width: 1.2; }
.ga-orange { fill: #f28b30; stroke: #8a4a12; stroke-width: 1.2; }
.ga-yellow { fill: #f9c932; stroke: #7a5d00; stroke-width: 1.2; }
.ga-rope { stroke: #e8eaed; stroke-width: 2.4; fill: none; }
:root[data-theme="light"] .ga-rope { stroke: #9aa0a6; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .ga-rope { stroke: #9aa0a6; } }
.ga-coil { stroke: #f28b30; stroke-width: 2.4; fill: none; stroke-linecap: round; }
.ga-screen { fill: #0d1117; stroke: #3c4043; stroke-width: 2; }
.ga-lcd { font: 700 22px var(--font); fill: #e8eaed; font-variant-numeric: tabular-nums; }
.ga-lcd2 { font: 600 10px var(--font); fill: #9aa0a6; }
.ga-water { fill: #1a73e8; opacity: .12; } .ga-surf { stroke: #1a73e8; stroke-width: 1.5; opacity: .6; }
.ga-call { stroke: var(--fg-3); stroke-width: 1; fill: none; }
.ga-dot { fill: var(--fg-3); }
.ga-t { font: 600 10.5px var(--font); fill: var(--fg-2); }
.ga-hole { fill: var(--surface-2); stroke: #15171a; stroke-width: 1.2; }
/* 장비 그림은 밝은 바탕(제품 사진처럼) 위에, 글자 크게 */
.gg-art { background: #eef1f4; }
.gg-art .ga-t { font: 600 13px var(--font); fill: #3c4043; }
.gg-art .ga-call { stroke: #80868b; }
.gg-art .ga-dot { fill: #5f6368; }
.gg-art .ga-hole { fill: #eef1f4; }
.gg-art .ga-rope { stroke: #7a8088; }

/* 사진 비율 고정: 잘림을 미리 정해 둔다.
   표지: 폰 16:9(만든 비율 그대로, 안 잘림), 넓은 화면 21:9(위아래 약 14%씩만 잘림, 프롬프트의 안전 구역 밖).
   장비: 4:3 그대로, 잘라 내지 않고 다 보이게(contain). 바탕은 프롬프트의 밝은 회색과 같게. */
.hero .photo img { aspect-ratio: 16 / 9; max-height: none; height: auto; width: 100%; object-fit: cover; }
@media (min-width: 700px) { .hero .photo img { aspect-ratio: 21 / 9; } }
.gg-item .photo img { aspect-ratio: 4 / 3; object-fit: contain; background: #eef1f4; }
/* 배우기 목록 작은 그림, 글 위 넓은 그림 */
.list .thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; }
.article > .photo img, .article .photo.wide img { aspect-ratio: 16 / 9; max-height: none; object-fit: cover; }
/* 표지: 화보형. 사진 위 아래쪽에 어둡게 깔고 큰 제목 */
.mag { position: relative; margin: 0 0 16px; border-radius: var(--r-card); overflow: hidden; background: #0b0d10; isolation: isolate; }
.mag picture, .mag img { display: block; width: 100%; }
.mag img { aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 700px) { .mag img { aspect-ratio: 21 / 9; } }
/* 그림자는 글자 층(.mag-txt)에 같이 둔다: 화면 전환 때 사진과 함께 떠오르게 */
.mag-txt { position: absolute; inset: 0; z-index: 1; padding: 18px 20px; color: #fff; display: grid; gap: 2px; align-content: end; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.55) 100%); pointer-events: none; }
.mag-k { font: 600 12px var(--font); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.mag-k:empty { display: none; }
.mag h2 { margin: 0; font: 800 clamp(28px, 6vw, 52px)/1.05 var(--font); letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.mag p { margin: 2px 0 0; font: 500 clamp(13px, 2.4vw, 17px)/1.4 var(--font); opacity: .92; }
.mag-credit { position: absolute; top: 8px; right: 10px; z-index: 1; font-size: 10px; color: rgba(255,255,255,.75); }
@media (min-width: 700px) { .mag-txt { padding: 28px 32px; } }
/* 장비 안내: 작은 사진 + 한 줄, 누르면 펼침 */
.gx-list { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 900px) { .gx-list { grid-template-columns: 1fr 1fr; align-items: start; } }
.gx { margin: 0; overflow: hidden; }
.gx summary { list-style: none; display: grid; grid-template-columns: 88px 1fr 20px; gap: 12px; align-items: center; padding: 10px 12px 10px 10px; cursor: pointer; }
.gx summary::-webkit-details-marker { display: none; }
.gx-img { width: 88px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #eef1f4; display: grid; place-items: center; }
.gx-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gx-ph { color: #80868b; font-size: 28px; }
.gx-t { display: grid; gap: 2px; min-width: 0; }
.gx-t b { font-size: var(--fs-md); }
.gx-t small { color: var(--fg-2); font-size: var(--fs-sm); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gx[open] .gx-t small { -webkit-line-clamp: unset; display: block; }
.gx .caret { transition: transform .15s; color: var(--fg-3); }
.gx[open] .caret { transform: rotate(180deg); }
.gx-body { padding: 0 14px 14px 110px; display: grid; gap: 8px; }
@media (max-width: 520px) { .gx-body { padding-left: 14px; } }
.gx-body p { margin: 0; display: grid; grid-template-columns: 68px 1fr; column-gap: 10px; font-size: var(--fs-sm); line-height: 1.55; color: var(--fg-2); }
.gx-body p b { color: var(--fg); font-weight: 650; }
.gx-body .chipbtn { justify-self: start; }
/* 조건 화면의 현재 조건 묶음: 날짜 줄이 넓어도 화면 밖으로 밀지 않게 */
#nowbox { min-width: 0; display: grid; gap: 12px; }
#nowbox > * { min-width: 0; margin: 0; }
#nowbox .days { overflow-x: auto; }
.gearcmp .gc { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.gearcmp .gc li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--ok); }
.gearcmp .gc li[data-lv="2"] { border-left-color: var(--warn); } .gearcmp .gc li[data-lv="3"] { border-left-color: var(--bad); }
.gearcmp .gc b { font-size: var(--fs-sm); } .gearcmp .gc span { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.gearcmp .gc small { grid-column: 1 / -1; color: var(--fg-3); font-size: var(--fs-xs); margin-top: 2px; }
/* 장비 안내 다듬기: 제목이 카드에 깔리지 않게, 묶음 제목은 또렷하게 */
#gguide { display: grid; gap: 0; padding-top: 4px; }
#gguide .gg-lead { margin: 4px 0 4px; max-width: 72ch; font-size: var(--fs-sm); line-height: 1.65; color: var(--fg-2); }
#gguide .sec-title { margin: 22px 0 10px; font-size: var(--fs-md); font-weight: 700; color: var(--fg); display: flex; align-items: baseline; gap: 6px; }
#gguide .sec-title small { margin: 0; font-size: var(--fs-xs); font-weight: 600; color: var(--fg-3); background: var(--surface-2); border-radius: 999px; padding: 1px 8px; }
[data-g="mine"] > .sec-title { margin: 8px 0 10px; }
#gtabs { margin-bottom: 4px; }
.gx summary { min-height: 84px; }
.gx-t b { font-size: var(--fs-md); font-weight: 700; line-height: 1.3; }
/* 현장 영상 */
.campanel { padding-bottom: 8px; }
.cam-view { margin: 0 16px 10px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.cam-view iframe { width: 100%; height: 100%; border: 0; display: block; }
.cam-thumb { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; display: block; }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; }
.cam-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.cam-cap { position: absolute; left: 12px; bottom: 10px; color: #fff; font: 600 13px var(--font); background: rgba(0,0,0,.55); padding: 4px 8px; border-radius: 6px; }
.campanel .chipbtn small { color: var(--fg-3); margin-left: 4px; }
.cam-note { margin: 6px 16px 0 !important; }
.cam-play i { font-size: 64px; }
/* 합친 날씨·환경 자료(접기) */
.envp { padding: 0; }
.envp summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 14px 16px; cursor: pointer; flex-wrap: wrap; }
.envp summary::-webkit-details-marker { display: none; }
.envp summary small { color: var(--fg-3); font-size: var(--fs-xs); flex: 1; }
.envp[open] .caret { transform: rotate(180deg); }
.env-wrap { overflow-x: auto; padding: 0 16px 14px; }
.envt { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.envt th, .envt td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.envt thead th { color: var(--fg-3); font-size: var(--fs-xs); font-weight: 600; }
.envt tbody th { font-weight: 500; color: var(--fg-2); }
.envt td small { color: var(--fg-3); margin-left: 2px; }
.envt td em { font-style: normal; color: var(--fg-3); font-size: var(--fs-xs); }
.envt tr.grp th { padding-top: 14px; color: var(--fg); font-weight: 700; border-bottom: 0; }
/* 이곳 규정 */
.rules ul { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; gap: 8px; }
.rules li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline; font-size: var(--fs-sm); line-height: 1.5; }
.rules .tag { font-size: var(--fs-xs); font-weight: 650; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.rules a { text-decoration: underline; color: var(--fg-3); font-size: var(--fs-xs); }
/* 지도 종목 고르기 줄 */
.map-ui.filters { top: 108px; left: 10px; right: 56px; pointer-events: none; }
.actfilter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; padding: 2px; }
.actfilter::-webkit-scrollbar { display: none; }
.actfilter button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font: 600 12px var(--font); box-shadow: 0 1px 4px rgba(0,0,0,.18); cursor: pointer; }
.actfilter button i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.actfilter button.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* 지도 위 안내(전체 화면에서도 보이게) */
.map-ui.note { left: 50%; transform: translateX(-50%); bottom: 64px; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: min(92%, 560px); padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-strong); box-shadow: 0 4px 18px rgba(0,0,0,.25); font-size: var(--fs-sm); color: var(--fg); }
.map-ui.note[hidden] { display: none; }
.map-ui.note .chipbtn { flex: 0 0 auto; }
.map-ui.note { width: min(92%, 560px); right: auto; top: auto; }
.map-ui.note > span { flex: 1; min-width: 0; line-height: 1.5; }
/* 추천 장소 묶음·정렬 */
.spotbar { display: grid; gap: 6px; }
.spotbar .seg { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.grp-c { margin-top: 18px !important; font-size: var(--fs-md); color: var(--fg); }
.grp-n { padding: 0; margin: 8px 0 0; }
.grp-n summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; }
.grp-n summary::-webkit-details-marker { display: none; }
.grp-n summary small { color: var(--fg-3); flex: 1; }
.grp-n[open] .caret { transform: rotate(180deg); }
.grp-a { padding: 6px 16px; font-size: var(--fs-xs); font-weight: 650; color: var(--fg-3); background: var(--surface-2); }
.grp-n .list { margin: 0; border-radius: 0; }
.spotbar .seg { display: flex; flex-wrap: nowrap; width: max-content; max-width: 100%; } .spotbar .seg button { white-space: nowrap; flex: 0 0 auto; }
/* 모바일: 장소 줄 이름이 눌려 세로로 쌓이지 않게 */
.list .txt { flex: 1 1 8em; min-width: 7em; }
.list .txt b, .list .txt small { overflow-wrap: anywhere; }
.list .end { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; min-width: 0; }
@media (max-width: 600px) {
  .list a:has(.end .badge:nth-child(3)) { flex-wrap: wrap; row-gap: 8px; }
  .list a:has(.end .badge:nth-child(3)) .end { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .list a:has(.end .badge:nth-child(3)) .chev { order: 2; }
}
/* 폰: 지도 위 버튼을 작게, 검색은 돋보기 하나로 접어 두고 누르면 펼친다(지도를 덜 가리게) */
@media (max-width: 600px) {
  .map-ui.top { top: 8px; right: 46px; }
  .map-ui .seg button { padding: 5px 9px; font-size: 12px; }
  .map-ui .seg .ph { font-size: 13px; }
  .map-ui.search { top: 46px; left: 8px; right: auto; z-index: 4; }
  .search.small { width: 34px; height: 34px; padding: 0; justify-content: center; gap: 0; transition: width .18s ease; overflow: hidden; }
  .search.small input { width: 0; padding: 0; border: 0; opacity: 0; }
  .search.small:focus-within { width: calc(100vw - 72px); max-width: none; padding: 0 12px; gap: 8px; justify-content: flex-start; }
  .search.small:focus-within input { width: 100%; opacity: 1; }
  .map-ui.filters { top: 46px; left: 48px; right: 46px; }
  .map-ui.search:focus-within ~ .map-ui.filters, .mapwrap:has(.search.small:focus-within) .map-ui.filters { visibility: hidden; }
  .actfilter { gap: 5px; }
  .actfilter button { padding: 4px 9px; font-size: 11px; gap: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
  .actfilter button i { width: 7px; height: 7px; }
  .map-ui.bottom { bottom: 22px; }
  .map-ui.bottom .seg button { padding: 5px 9px; font-size: 12px; }
  .fab { width: 34px; height: 34px; }
  .fab .ph { font-size: 16px; }
  /* 확대·축소는 손가락으로 하니 버튼 묶음은 숨기고 내 위치만 남긴다 */
  .maplibregl-ctrl-top-right .maplibregl-ctrl-group:has(.maplibregl-ctrl-zoom-in) { display: none; }
  .mapbox .map-ui.top { right: 8px; }
}
/* 검색을 감싼 칸(map-ui search)에 검색창 모양이 겹쳐 붙지 않게 */
.map-ui.search { background: none; border: 0; padding: 0; height: auto; box-shadow: none; }
@media (max-width: 600px) {
  .maplibregl-ctrl-attrib.maplibregl-compact-show:not(.user-open) .maplibregl-ctrl-attrib-inner { display: none; }
  .maplibregl-ctrl-attrib.maplibregl-compact-show:not(.user-open) { padding: 0; background: transparent; }
}

/* ---- 1차: 실력별 기준, 예보 신뢰, 기준표, 장비 판정, 타임랩스, 드론 안내 ---- */
.seg.sm button { padding: 5px 10px; font-size: var(--fs-xs); }
.linkish { font-size: var(--fs-sm); color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.v-trust { display: grid; gap: 6px; margin-top: 12px; }
.v-trust > span { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: start; padding: 8px 10px; border-radius: 10px; background: var(--cb); }
.v-trust > span .ph { color: var(--c); font-size: 18px; grid-row: span 2; margin-top: 1px; }
.v-trust b { font-size: var(--fs-sm); font-weight: 650; }
.v-trust small { font-size: var(--fs-xs); color: var(--fg-2); line-height: 1.5; }
.v-skill { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.v-skill > span { font-size: var(--fs-sm); color: var(--fg-2); }
.v-skill .seg { box-shadow: none; }
.day .far { display: block; font-size: 10px; color: var(--fg-3); font-weight: 500; margin-top: 2px; }
details.crit, details.dguide { padding: 0 16px; }
details.crit > summary, details.dguide > summary { display: flex; align-items: center; gap: 8px; padding: 14px 0; cursor: pointer; list-style: none; flex-wrap: wrap; }
details.crit > summary::-webkit-details-marker, details.dguide > summary::-webkit-details-marker { display: none; }
details.crit > summary small, details.dguide > summary small { color: var(--fg-3); font-size: var(--fs-xs); }
details.crit > summary .caret, details.dguide > summary .caret { margin-left: auto; color: var(--fg-3); transition: transform .2s; }
details.crit[open] > summary .caret, details.dguide[open] > summary .caret { transform: rotate(180deg); }
.crit-note { font-size: var(--fs-xs); color: var(--fg-2); margin: 0 0 10px; line-height: 1.6; }
.crit-list { list-style: none; margin: 0 0 14px; padding: 0; }
.crit-list li { padding: 10px 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; }
.crit-list li > b { font-size: var(--fs-sm); }
.crit-list li p { margin: 0; font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.55; }
.crit-list li small { font-size: var(--fs-xs); color: var(--fg-3); }
.bands { display: flex; flex-wrap: wrap; gap: 4px; }
.bands span { font-size: var(--fs-xs); padding: 3px 8px; border-radius: 6px; background: var(--cb); color: var(--fg); font-variant-numeric: tabular-nums; }
.gear-verdict { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 0 0 12px; padding: 12px; border-radius: 12px; background: var(--cb); }
.gear-verdict > .ph { color: var(--c); font-size: 22px; }
.gear-verdict b { font-size: var(--fs-md); }
.gear-verdict p { margin: 4px 0 0; font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.55; }
.tl-calc { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.tl-calc > summary { display: flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; list-style: none; flex-wrap: wrap; }
.tl-calc > summary::-webkit-details-marker { display: none; }
.tl-calc > summary small { color: var(--fg-3); font-size: var(--fs-xs); }
.tl-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.tl-in label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--fg-2); }
.tl-in input, .tl-in select { width: 72px; min-height: 40px; }
.tl-out { font-size: var(--fs-md); margin: 10px 0 6px; }
.dg-q { display: grid; gap: 10px; margin-bottom: 12px; }
.dg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.dg-row.col { flex-direction: column; align-items: flex-start; }
.dg-row > span { font-size: var(--fs-sm); color: var(--fg-2); min-width: 9em; }
.dg-row .seg { box-shadow: none; flex-wrap: wrap; border-radius: 14px; }
.dguide .chipbtn { box-shadow: none; white-space: normal; text-align: left; }
.dg-out { list-style: none; margin: 0; padding: 0; }
.dg-out li { display: grid; grid-template-columns: 8px 1fr; column-gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); }
.dg-out li > i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-top: 7px; grid-row: span 2; }
.dg-out li b { font-size: var(--fs-sm); }
.dg-out li p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.6; }
.dg-foot { font-size: var(--fs-xs); color: var(--fg-3); line-height: 1.6; margin: 10px 0 14px; }
@media (max-width: 600px) { .dg-row > span { min-width: 100%; } .v-skill .linkish { margin-left: auto; } }

/* ---- 조건 화면: 장소부터 고른다 ---- */
.cpick { padding: 16px; display: grid; gap: 12px; }
.cp-h { display: grid; gap: 2px; }
.cp-label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--fg-2); }
.cp-h b { font-size: var(--fs-xl, 22px); font-weight: 750; letter-spacing: -0.01em; }
.cpick:not(.done) .cp-h b { color: var(--accent); }
.cp-h small { font-size: var(--fs-sm); color: var(--fg-3); }
.cp-search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 12px; background: var(--bg); }
.cp-search .ph { color: var(--fg-3); }
.cp-search input { flex: 1; border: 0; background: transparent; min-height: 46px; font-size: 16px; color: var(--fg); outline: none; }
.cp-res { list-style: none; margin: -4px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 2px; }
.cp-res li.muted { padding: 10px; font-size: var(--fs-sm); }
.cp-res button { width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px; border-radius: 8px; }
.cp-res button:hover, .cp-res button:focus-visible { background: var(--accent-soft); }
.cp-res small { color: var(--fg-3); font-size: var(--fs-xs); }
.cp-chips .chipbtn, #cpnear .chipbtn { box-shadow: none; }
#cpnear:empty { display: none; }
#cpnear small { color: var(--fg-3); font-size: var(--fs-xs); }
.cp-empty { display: flex; align-items: center; gap: 12px; padding: 20px 16px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--fg-2); }
.cp-empty .ph { font-size: 26px; color: var(--accent); }
.cp-empty p { margin: 0; font-size: var(--fs-sm); line-height: 1.6; }
details.guidewrap { padding: 0 16px; margin-top: 16px; }
details.guidewrap > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 14px 0; cursor: pointer; list-style: none; }
details.guidewrap > summary::-webkit-details-marker { display: none; }
details.guidewrap > summary small { color: var(--fg-3); font-size: var(--fs-xs); flex-basis: 100%; order: 3; }
details.guidewrap > summary .caret { margin-left: auto; color: var(--fg-3); transition: transform .2s; }
details.guidewrap[open] > summary .caret { transform: rotate(180deg); }
details.guidewrap .guide { padding-bottom: 8px; border-top: 1px solid var(--line); }
.cp-res[hidden] { display: none; }

/* ---- 3층 화면 ---- */
.v-key { margin: 2px 0 0; font-size: var(--fs-lg, 18px); line-height: 1.45; color: var(--fg); }
.v-key strong { font-weight: 750; font-variant-numeric: tabular-nums; }
.v-key span { color: var(--fg-2); font-size: var(--fs-md); }
.v-sub { margin: 0; font-size: var(--fs-sm); line-height: 1.6; color: var(--fg-2); }
.check.gauged li { cursor: pointer; align-items: center; }
.check.gauged li:hover { background: var(--surface-2, rgba(127,127,127,.06)); }
.check.gauged .cv strong { color: var(--fg); font-weight: 700; font-variant-numeric: tabular-nums; }
.check.gauged .gauge { grid-column: 2 / -1; }
.gauge { position: relative; display: flex; height: 6px; border-radius: 3px; overflow: visible; margin: 2px 0 2px; }
.gauge i { display: block; height: 100%; background: var(--c); opacity: .28; }
.gauge i:first-child { border-radius: 3px 0 0 3px; } .gauge i:nth-child(4) { border-radius: 0 3px 3px 0; }
.gauge em { position: absolute; top: -4px; width: 3px; height: 14px; margin-left: -1.5px; border-radius: 2px; background: var(--fg); box-shadow: 0 0 0 2px var(--surface); }
.heat { padding-bottom: 12px; }
.heat-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.heat table { border-collapse: separate; border-spacing: 2px; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; min-width: 100%; }
.heat th { position: sticky; left: 0; background: var(--surface); text-align: left; font-weight: 600; color: var(--fg-2); white-space: nowrap; padding: 4px 8px 4px 0; z-index: 1; }
.heat th small { display: block; font-weight: 400; color: var(--fg-3); font-size: 10px; }
.heat thead th { position: static; text-align: center; color: var(--fg-3); font-weight: 500; padding: 2px 0; }
.heat thead th.on { color: var(--fg); font-weight: 700; }
.heat td { min-width: 34px; height: 30px; text-align: center; border-radius: 5px; background: var(--line); color: var(--fg); }
.heat td[data-lv] { background: var(--cb); }
.heat td.on { outline: 2px solid var(--fg); outline-offset: -2px; }
.heat .vrow td i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.heat { min-width: 0; max-width: 100%; overflow: hidden; }
.heat-scroll { max-width: 100%; }
.heat table { min-width: 0; width: max-content; }

/* ================= 첫 화면: 지구본 ================= */
body.is-home { overflow: hidden; }
body.is-home #app { max-width: none; }
.h2 { position: fixed; inset: 0; background: var(--bg); color: var(--fg); overflow: hidden; }
.h2-map { position: absolute; inset: 0; }
.h2 .maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-inner { display: none; }
.h2 .maplibregl-ctrl-attrib.maplibregl-compact.user-open .maplibregl-ctrl-attrib-inner { display: block; }
.h2 .maplibregl-ctrl-bottom-right { bottom: calc(76px + env(safe-area-inset-bottom)); }
.h2-scrim { position: absolute; inset: 0; pointer-events: none; transition: opacity .6s var(--ease); background: radial-gradient(120% 90% at 50% 48%, transparent 56%, color-mix(in srgb, var(--bg) 80%, transparent)); }
:root[data-theme="dark"] .h2-scrim, :root:not([data-theme="light"]) .h2-scrim { background:
  linear-gradient(rgba(53, 208, 196, .045) 1px, transparent 1px) 0 0 / 100% 48px,
  linear-gradient(90deg, rgba(53, 208, 196, .045) 1px, transparent 1px) 0 0 / 48px 100%,
  radial-gradient(120% 90% at 50% 48%, transparent 55%, rgba(4, 8, 12, .72)); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .h2-scrim { background: radial-gradient(130% 100% at 50% 45%, transparent 60%, rgba(233, 238, 236, .85)); } }
:root[data-theme="light"] .h2-scrim { background: radial-gradient(130% 100% at 50% 45%, transparent 60%, rgba(233, 238, 236, .85)); }
.h2 .eyebrow { margin: 0; font: 500 11px var(--num); letter-spacing: .14em; color: var(--fg-3); display: flex; gap: 8px; align-items: center; }
.h2 .eyebrow span { color: var(--accent); }
.h2-hero { position: absolute; left: 20px; right: 20px; top: calc(18px + env(safe-area-inset-top)); max-width: 560px; z-index: 3; transition: opacity .5s var(--ease), transform .7s var(--ease); }
.h2-hero h1 { margin: 8px 0 0; font: 800 clamp(30px, 5.6vw, 54px)/1.04 var(--font); letter-spacing: -.035em; }
.h2-hero .lede { margin: 10px 0 0; max-width: 34ch; color: var(--fg-2); font-size: var(--fs-md); line-height: 1.6; }
.h2-ctl { position: absolute; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 6; display: flex; flex-direction: column-reverse; gap: 8px; transition: opacity .4s var(--ease), transform .6s var(--ease); }
.h2-search { position: relative; }
.h2-search label { display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 16px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); box-shadow: 0 14px 36px rgb(0 0 0 / .22); }
.h2-search .ph { font-size: 20px; color: var(--accent); }
.h2-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--fg); font: 500 16px var(--font); }
.h2-search input::placeholder { color: var(--fg-3); }
.h2-res { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; max-height: 50vh; overflow: auto; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 20px 50px rgb(0 0 0 / .3); animation: h2rise .25s var(--ease); z-index: 8; }
.h2-res[hidden] { display: none; }
.h2-res button { width: 100%; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 8px; }
.h2-res button:hover, .h2-res button:focus-visible { background: var(--accent-soft); outline: 0; }
.h2-res .ph { color: var(--accent); font-size: 18px; } .h2-res b { display: block; font-weight: 650; } .h2-res small { color: var(--fg-3); font-size: 12px; }
.h2-res em { font: 500 10px var(--num); font-style: normal; color: var(--fg-3); }
.h2-res .none, .h2-res .note { padding: 10px; font-size: 12px; color: var(--fg-3); } .h2-res .note { border-top: 1px solid var(--line); }
.h2-acts { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.h2-acts button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: var(--fs-sm); border-radius: 999px; background: var(--glass); border: 1px solid var(--line); color: var(--fg-2); backdrop-filter: blur(10px); }
.h2-acts button.on { color: var(--fg); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.h2-acts .ph { font-size: 16px; }
.h2:not([data-state="globe"]) .h2-hero { opacity: 0; transform: translateY(-24px); pointer-events: none; }
.h2:not([data-state="globe"]) .h2-ctl { opacity: 0; transform: translateY(24px); pointer-events: none; }
.h2[data-state="flying"] .h2-scrim { opacity: .35; }
@keyframes h2rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 찍은 자리·확인 말풍선 */
.h2-pin { position: relative; width: 18px; height: 18px; }
.h2-pin b { position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg), 0 0 18px var(--accent); }
.h2-pin i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: h2ping 1.8s var(--ease) infinite; } .h2-pin i + i { animation-delay: .9s; }
@keyframes h2ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.h2-popup .maplibregl-popup-content { background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; box-shadow: 0 14px 40px rgb(0 0 0 / .35); }
.h2-popup .maplibregl-popup-tip { border-top-color: var(--surface); border-bottom-color: var(--surface); }
.h2-popup .maplibregl-popup-close-button { color: var(--fg-3); font-size: 18px; padding: 2px 8px; }
.h2-pop { display: grid; gap: 4px; min-width: 190px; }
.h2-pop b { font-size: var(--fs-md); padding-right: 18px; } .h2-pop small { color: var(--fg-3); font: 500 11px var(--num); }
.h2-pop .go { margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 750; }
.h2-pop p { margin: 8px 0 2px; font-size: 11px; color: var(--fg-3); }
.h2-pop .near { text-align: left; padding: 7px 8px; border-radius: 8px; border: 1px solid var(--line); font-size: var(--fs-sm); display: flex; justify-content: space-between; gap: 8px; }
.h2-pop .near small { font-size: 11px; }

/* 판정 카드: 폰은 아래 작은 카드(위로 펼침), 넓은 화면은 왼쪽 판 */
.h2-sheet { position: absolute; z-index: 7; left: 8px; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); max-height: calc(100dvh - 150px); background: var(--glass); border: 1px solid var(--line-strong); border-radius: 18px; backdrop-filter: blur(18px); transform: translateY(calc(100% + 90px)); transition: transform .7s var(--ease), max-height .45s var(--ease); display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgb(0 0 0 / .28); overflow: hidden; }
:root[data-theme="dark"] .h2-sheet, :root:not([data-theme="light"]) .h2-sheet { background: linear-gradient(180deg, rgba(20, 30, 44, .9), rgba(12, 18, 27, .92)); border-color: rgba(120, 170, 200, .22); box-shadow: 0 -10px 40px rgb(0 0 0 / .45), inset 0 1px 0 rgba(160, 220, 255, .08); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .h2-sheet { background: var(--glass); border-color: var(--line-strong); } }
:root[data-theme="light"] .h2-sheet { background: var(--glass); border-color: var(--line-strong); }
.h2[data-state="flying"] .h2-sheet { transform: translateY(calc(100% - 96px)); }
.h2[data-state="place"] .h2-sheet { transform: none; }
.h2-grip { flex: 0 0 auto; height: 18px; display: grid; place-items: center; }
.h2-grip::before { content: ''; width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong); }
.h2-body { overflow: auto; padding: 0 16px 14px; overscroll-behavior: contain; }
.h2:not(.tall) .hs-more { display: none; }
.h2.tall .h2-sheet { max-height: calc(100dvh - 120px); }
.hs-head { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.hs-back { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--fg); }
.hs-back .ph { font-size: 18px; }
.hs-t h2 { margin: 2px 0 0; font: 800 20px/1.2 var(--font); letter-spacing: -.02em; }
.hs-t .sub { margin: 2px 0 0; color: var(--fg-3); font-size: var(--fs-xs); }
.hs-sk { display: grid; gap: 8px; margin-top: 12px; } .hs-sk span { height: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, var(--line-strong) 50%, var(--line) 75%) 0 0 / 300% 100%; animation: h2sh 1.2s linear infinite; } .hs-sk span:first-child { height: 30px; width: 55%; }
@keyframes h2sh { to { background-position: -150% 0; } }
.hs-msg { margin: 12px 0 4px; color: var(--fg-2); line-height: 1.65; display: flex; gap: 8px; font-size: var(--fs-sm); }
.hs-lbl { margin: 10px 0 6px; font-size: 11px; color: var(--fg-3); }
.hs-near { display: flex; flex-wrap: wrap; gap: 6px; } .hs-near button { padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); font-size: var(--fs-sm); display: inline-flex; gap: 6px; } .hs-near small { color: var(--fg-3); }
.hs-v { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; margin: 12px 0 2px; }
.hs-v b { font: 850 27px/1.1 var(--font); letter-spacing: -.025em; color: var(--c); }
.hs-v span { font: 500 11px var(--num); color: var(--fg-3); }
.hs-key { margin: 2px 0 10px; font-size: var(--fs-md); line-height: 1.5; }
.hs-key b { font: 600 16px var(--num); } .hs-key span { color: var(--fg-2); font-size: var(--fs-sm); }
.hs-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.hs-days span { display: grid; gap: 3px; justify-items: center; padding: 6px 1px; border-radius: 7px; background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); }
.hs-days small { font: 500 10px var(--num); color: var(--fg-3); }
.hs-days i { width: 80%; height: 3px; background: var(--c); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.h2-body.in .hs-days i { transform: scaleX(1); }
.hs-days b { font-size: 11px; color: var(--c); font-weight: 700; } .hs-days .far { opacity: .62; }
.hs-more { margin-top: 10px; }
.hs-gates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hs-gates li { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hs-gates .gn { font: 500 11px var(--num); letter-spacing: .1em; color: var(--fg-3); }
.hs-gates .gv { font-size: var(--fs-sm); color: var(--fg-2); } .hs-gates .gv b { font: 600 14px var(--num); color: var(--fg); }
.hs-gates .gs { font-size: 12px; font-weight: 650; color: var(--c, var(--fg-3)); }
.hg { grid-column: 1 / -1; position: relative; height: 7px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--ok) 38%, transparent) 0 var(--x), color-mix(in srgb, var(--fair) 38%, transparent) var(--x) var(--y), color-mix(in srgb, var(--warn) 38%, transparent) var(--y) var(--z), color-mix(in srgb, var(--bad) 38%, transparent) var(--z) 100%); }
.hg em { position: absolute; top: -5px; left: 0; width: 4px; height: 17px; margin-left: -2px; border-radius: 2px; background: var(--fg); box-shadow: 0 0 0 2px var(--surface); transition: left 1.1s var(--ease) .1s; }
.h2-body.in .hg em { left: var(--v); }
.hs-best { margin: 10px 0 6px; font-size: var(--fs-sm); color: var(--fg-2); } .hs-best b { font: 600 14px var(--num); color: var(--fg); }
.hs-trust { margin: 6px 0 0; font-size: 12px; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; color: var(--c); } .hs-trust small { color: var(--fg-3); flex-basis: 100%; }
.hs-acts { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 12px; }
.hs-cmp { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; height: 48px; border-radius: 12px; border: 1px solid var(--line-strong); font-size: var(--fs-sm); color: var(--fg-2); }
.hs-go { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 750; }
.h2-body > * { transition: opacity .45s var(--ease), transform .55s var(--ease); }
.h2-body:not(.in) > :not(.hs-head):not(.hs-sk) { opacity: 0; transform: translateY(8px); }
/* 자세히 보기: 카드가 화면을 덮으며 커진다 */
.h2.expanding .h2-sheet { left: 0; right: 0; bottom: 0; top: 0; max-height: 100dvh; border-radius: 0; transition: all .55s var(--ease); }
.h2.expanding .h2-body > :not(.hs-head) { opacity: 0; transition: opacity .25s; }
body.is-home .tabbar { background: var(--glass); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .h2-hero { left: 40px; top: 90px; }
  .h2-ctl { left: 40px; right: auto; width: 540px; bottom: auto; top: 300px; flex-direction: column; }
  .h2-res { bottom: auto; top: calc(100% + 8px); }
  .h2-acts { flex-wrap: wrap; overflow: visible; }
  .h2-sheet { top: 78px; bottom: auto; left: 16px; right: auto; width: 430px; max-height: calc(100dvh - 100px); transform: translateX(-115%); }
  .h2[data-state="flying"] .h2-sheet { transform: translateX(-115%); }
  .h2:not(.tall) .hs-more { display: block; }
  .h2-grip { display: none; }
  .h2-body { padding-top: 14px; }
  .h2 .maplibregl-ctrl-bottom-right { bottom: 0; }
  body.is-home .tabbar { position: fixed; top: 14px; right: 16px; left: auto; bottom: auto; width: auto; border: 1px solid var(--line); border-radius: 12px; padding: 0 6px; z-index: 60; }
}

/* ================= 비교 ================= */
.cmp-map { overflow: hidden; } .cmp-map .map { height: 260px; }
.cmp { padding: 4px 0; overflow-x: auto; }
.cmp-grid { display: grid; grid-template-columns: 88px repeat(var(--n), minmax(130px, 1fr)); }
.cmp-grid > div { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); display: grid; gap: 3px; align-content: start; }
.cmp-h { position: relative; border-bottom-width: 2px !important; } .cmp-h b { font-size: var(--fs-md); padding-right: 28px; display: block; }
.cmp-h .icon-btn { position: absolute; top: 4px; right: 2px; width: 32px; height: 32px; }
.cmp-h.best { background: var(--accent-soft); border-radius: 10px 10px 0 0; } .cmp-h em { font-style: normal; font-size: 11px; color: var(--accent); font-weight: 700; }
.cmp-k { color: var(--fg-3); font-size: var(--fs-xs) !important; }
.cmp-c small { color: var(--fg-3); font-size: 11px; } .cmp-c b { font-family: var(--num); font-weight: 600; }
.cmp-days { display: flex; gap: 3px; } .cmp-days i { width: 12px; height: 12px; border-radius: 3px; background: var(--c); }

/* ================= 화면 전환 ================= */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) { animation: vt-out .26s cubic-bezier(.4, 0, 1, 1) both; }
  ::view-transition-new(root) { animation: vt-in .44s var(--ease) both; }
}
@keyframes vt-out { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
main > * { animation: none; }
.h2 .h2-map.maplibregl-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmp-c .badge { justify-self: start; } .cmp-more { justify-self: start; }
.bb-here { margin-top: 6px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-weight: 750; }
/* 화면 안 지도는 크게 */
.mapbox .map.small, .map.small { height: min(62vh, 560px); }
@media (min-width: 760px) { .mapbox .map.small, .map.small { height: min(66vh, 640px); } }
.viewer-body .in-viewer .map.small, .viewer-body .in-viewer .map { height: 100% !important; }
.h2-legend { display: none; position: absolute; z-index: 5; left: 20px; top: calc(150px + env(safe-area-inset-top)); margin: 0; padding: 6px 10px; border-radius: 8px; background: var(--glass); border: 1px solid var(--line); font-size: 11px; color: var(--fg-2); backdrop-filter: blur(10px); align-items: center; gap: 6px; }
.h2-legend i { width: 28px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #05070a, #6b5a2a, #ffd56b, #fff7d6); }
.h2.night[data-state="globe"] .h2-legend { display: inline-flex; }
@media (min-width: 760px) { .h2-legend { left: 40px; top: 250px; } }
.sky-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--fg-3); text-align: center; padding: 24px; background: radial-gradient(80% 60% at 50% 60%, #101a2a, #05080d); }
.sky-wait .ph { font-size: 34px; color: #b9a3ff; } .sky-wait p { margin: 0; font-size: var(--fs-sm); max-width: 26ch; color: #9fb0c0; }
.sky3d { position: relative; }
.h2 .h2-map canvas { opacity: 0; transition: opacity .9s var(--ease); } .h2 .h2-map.ready canvas { opacity: 1; }
.motion { padding-bottom: 10px; overflow: hidden; }
.mo-c { display: block; width: 100%; height: 210px; }
.mo-cap { margin: 8px 16px 2px; font-size: var(--fs-sm); color: var(--fg-2); line-height: 1.6; }
@media (min-width: 760px) { .mo-c { height: 240px; } }

/* 상세 · 시뮬 칸("전체"에는 안 나옴) */
.simcard { display: grid; gap: 12px; }
.simcard p { margin: 0; color: var(--fg-2); line-height: 1.65; }
.sim-hero { display: flex; align-items: center; gap: 12px; }
.sim-hero > div { display: grid; line-height: 1.25; }
.sim-hero b { font-size: var(--fs-lg); }
.sim-ic { width: 48px; height: 48px; flex: 0 0 auto; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 26px; }
.sim-k { font: 500 11px var(--num); letter-spacing: .12em; color: var(--accent); }
.simcard .sim-ctx { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 10px 12px; border-radius: var(--r-ctl); background: var(--surface-2); color: var(--fg); font-size: var(--fs-sm); }
.sim-ctx .ph { color: var(--accent); }
.sim-ctx small { flex-basis: 100%; color: var(--fg-3); }
.sim-go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: var(--fs-md); text-decoration: none; transition: transform .12s var(--ease); }
.sim-go:active { transform: scale(.98); }
.simcard .hint { font-size: var(--fs-xs); color: var(--fg-3); }

/* 첫 화면 카드 끌기 */
.h2-sheet.dragging { transition: none !important; }
@media (max-width: 759px) {
  .h2-grip { height: 26px; touch-action: none; cursor: grab; }
  .h2-sheet .hs-head { touch-action: none; }   /* 머리만 끌기, 나머지는 카드 안 스크롤 */
}
/* 자세히 보기: 카드가 화면을 덮을 때 상세 화면 바탕색이 되어 이어지게 */
.h2.expanding .h2-sheet, :root .h2.expanding .h2-sheet { background: var(--bg) !important; border-color: transparent !important; box-shadow: none !important; backdrop-filter: none; }
/* 느린 연결에서만 로딩 뼈대가 보이게(빠르면 바로 내용) */
.skel-wait { animation: appear .2s .35s both; }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
#d > section, #d > .days, #d > nav, #d > div, .dl > *, .dr > * { animation: rise .42s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
/* 화면 전환 기능이 없는 브라우저: 새 화면이 살짝 떠오르며 나타난다 */
.no-vt main { animation: rise .38s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .skel-wait, #d > *, .no-vt main { animation: none !important; } }
/* 아무 데나 찍은 지점 안내 */
.hs-note, .pt-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--fg); font-size: var(--fs-sm); line-height: 1.6; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.hs-note .ph, .pt-note .ph { color: var(--warn); font-size: 18px; flex: 0 0 auto; margin-top: 2px; }
.pt-note { margin: 0 0 12px; }
.pt-block .pt-msg { display: flex; gap: 10px; font-size: var(--fs-md); line-height: 1.6; margin: 0 0 14px; }
.pt-block .pt-msg .ph { font-size: 22px; color: var(--warn); flex: 0 0 auto; }
.pt-block h3 { font-size: var(--fs-sm); color: var(--fg-2); margin: 6px 0; }
.hs-force { margin-top: 10px; font-size: var(--fs-sm); }
/* 조건 화면 → 상세로: 장소 이름은 위, 버튼은 짧게 */
.go-detail { display: grid; justify-items: center; gap: 6px; margin: 18px 0 8px; text-align: center; }
.go-detail small { color: var(--fg-3); font-size: var(--fs-xs); }
.go-detail small:first-child { color: var(--fg-2); font-size: var(--fs-sm); font-weight: 600; }
.go-detail .chipbtn.big { width: 100%; max-width: 420px; justify-content: center; gap: 8px; }
/* 3D 지형 단추: 아이콘 + "3D" 글자 */
.fab[data-terrain] { width: auto; min-width: 44px; border-radius: 999px; padding: 0 12px; display: inline-flex; align-items: center; gap: 5px; }
.fab[data-terrain] span { font: 700 12px var(--num); letter-spacing: .02em; }
.sky-sum { display: grid; gap: 6px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: var(--fs-sm); line-height: 1.5; }
.sky-sum span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sky-sum i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
/* 이곳 규정: 아이콘을 글자 크기에 맞추고, 금지·통제만 빨갛게 */
.rules .rules-h { padding: 14px 16px 10px; display: grid; gap: 2px; }
.rules .rules-h h2 { margin: 0; display: flex; align-items: center; gap: 6px; font-size: var(--fs-md); line-height: 1.3; }
.rules .rules-h h2 .ph { font-size: 1.05em; color: var(--accent); }
.rules .rules-h small { color: var(--fg-3); font-size: var(--fs-xs); }
.rules .tag { background: var(--surface-2); color: var(--fg-2); border: 1px solid var(--line-strong); white-space: nowrap; }
.rules .tag.strict { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
/* 시간표 제목은 한 줄, 설명은 그 아래 줄 */
.heat .panel-h { flex-wrap: wrap; row-gap: 2px; }
.heat .panel-h h2 { white-space: nowrap; }
/* 지구본: 여러 종목 */
.h2-acts button.on.main { background: var(--accent-soft); }
.h2-acts-hint { flex: 0 0 auto; align-self: center; font-size: var(--fs-xs); color: var(--fg-3); padding: 0 6px; }
.hs-multi { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 6px; }
.hs-multi button { width: 100%; display: grid; grid-template-columns: auto auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); text-align: left; color: var(--fg); }
.hs-multi button > .ph:first-child { grid-row: 1 / 3; font-size: 22px; color: var(--fg-2); }
.hs-multi .mn { font-size: var(--fs-sm); color: var(--fg-2); }
.hs-multi b { font-size: var(--fs-md); }
.hs-multi button[data-lv="0"] b { color: var(--ok); } .hs-multi button[data-lv="1"] b { color: var(--fair); } .hs-multi button[data-lv="2"] b { color: var(--warn); } .hs-multi button[data-lv="3"] b { color: var(--bad); }
.hs-multi small { grid-column: 2 / 4; font-size: var(--fs-xs); color: var(--fg-3); }
.hs-multi button > .ph:last-child { grid-column: 4; grid-row: 1 / 3; color: var(--fg-3); }
.hs-multi button.main { border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.h2-pop b.wait { color: var(--fg-3); font-weight: 500; }

/* 활동: 정사각 타일(사진 옅게 + 지금 조건 움직임) */
.tile-h { margin: 18px 2px 8px; font-size: var(--fs-sm); letter-spacing: .08em; color: var(--fg-3); }
.atiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .atiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .atiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.atile { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; isolation: isolate; background: #0b1118; color: #fff; text-decoration: none; display: block; border: 1px solid rgba(255, 255, 255, .08); transform: translateZ(0); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.atile:active { transform: scale(.975); }
@media (hover: hover) { .atile:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgb(0 0 0 / .35); } .atile:hover img { transform: scale(1.06); } }
.atile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: saturate(.85); transition: transform 6s var(--ease); z-index: -2; }
.atile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 9, 13, .05) 30%, rgba(5, 9, 13, .82) 100%); }
.atile canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.at-k { position: absolute; top: 12px; left: 12px; font: 500 10px var(--num); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.at-b { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 3px; }
.at-b b { font-size: 18px; font-weight: 750; letter-spacing: -.01em; line-height: 1.2; }
.at-live { font-size: 11.5px; color: rgba(255, 255, 255, .78); line-height: 1.35; display: flex; align-items: center; gap: 5px; overflow: hidden; }
.at-live i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: #8a9aa2; }
.at-live i[data-lv="0"] { background: #3ddc97; } .at-live i[data-lv="1"] { background: #e3cf5f; } .at-live i[data-lv="2"] { background: #ffb547; } .at-live i[data-lv="3"] { background: #ff5a5f; }
.mag img { view-transition-name: act-cover; }
::view-transition-group(act-cover) { animation-duration: .5s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
/* 조건 화면 장소 칸: 고르면 한 줄로 접히고 ⌄로 펼친다 */
.cp-h { position: relative; padding-right: 48px; }
.cp-tog { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: none; place-items: center; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg-2); font-size: 18px; transition: transform .35s var(--ease); }
.cpick.done .cp-tog { display: grid; }
.cpick.open .cp-tog { transform: translateY(-50%) rotate(180deg); }
.cp-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .42s var(--ease), opacity .3s; }
.cp-in { min-height: 0; overflow: hidden; display: grid; gap: 12px; }
.cpick.done:not(.open) .cp-body { grid-template-rows: 0fr; opacity: 0; }
.cpick.done:not(.open) { gap: 0; }
.cpick.done .cp-label { display: none; }
#nowbox > * { animation: rise .45s var(--ease) both; }
#nowbox > *:nth-child(2) { animation-delay: .05s; } #nowbox > *:nth-child(3) { animation-delay: .1s; }
/* 화면 전환: 위 제목줄·아래 탭은 제자리, 내용만 앞(왼쪽)/뒤(오른쪽)로 밀리며 바뀐다 */
.tabbar { view-transition-name: tabbar; }
.bar { view-transition-name: topbar; }
@media (prefers-reduced-motion: no-preference) {
  html[data-nav="fwd"]::view-transition-old(root) { animation: vt-out-l .32s cubic-bezier(.4, 0, .2, 1) both; }
  html[data-nav="fwd"]::view-transition-new(root) { animation: vt-in-r .46s cubic-bezier(.22, 1, .36, 1) both; }
  html[data-nav="back"]::view-transition-old(root) { animation: vt-out-r .32s cubic-bezier(.4, 0, .2, 1) both; }
  html[data-nav="back"]::view-transition-new(root) { animation: vt-in-l .46s cubic-bezier(.22, 1, .36, 1) both; }
  ::view-transition-group(topbar), ::view-transition-group(tabbar) { animation-duration: .35s; }
  ::view-transition-old(topbar) { animation: vt-fade-out .2s both; } ::view-transition-new(topbar) { animation: vt-fade-in .3s .05s both; }
  html[data-nav="back"] .no-vt main { animation-name: rise-back; }
}
@keyframes vt-out-l { to { opacity: 0; transform: translateX(-28px); } }
@keyframes vt-in-r { from { opacity: 0; transform: translateX(36px); } }
@keyframes vt-out-r { to { opacity: 0; transform: translateX(28px); } }
@keyframes vt-in-l { from { opacity: 0; transform: translateX(-36px); } }
@keyframes vt-fade-out { to { opacity: 0; } } @keyframes vt-fade-in { from { opacity: 0; } }
@keyframes rise-back { from { opacity: 0; transform: translateX(-20px); } }
/* 상세 안의 탭(근거·현장 지도 등) 바꿀 때도 부드럽게 */
[data-pane]:not([hidden]) { animation: rise .35s var(--ease) both; }
/* 하늘 보기 크게 */
.skywrap .sky3d, .sky3d { height: clamp(380px, 62vh, 620px); }
.viewer-body > .skywrap.in-viewer .sky3d, .viewer-body > .sky3d.in-viewer { height: 100%; }
/* 현장 지도: 내 위치 사진 핀, 달·은하수 중심 그림 표식 */
.photo-pin { display: grid; justify-items: center; pointer-events: none; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .45)); }
.photo-pin .pp-card, .photo-pin .pp-tip { animation: pin-drop .5s var(--ease) both; }
.pp-card { display: flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--accent); }
.pp-img { width: 30px; height: 30px; border-radius: 50%; background: center / cover no-repeat #10202a; flex: 0 0 auto; }
.pp-card b { font-size: 12px; font-weight: 700; color: var(--fg); white-space: nowrap; }
.pp-tip { width: 12px; height: 12px; margin-top: -7px; background: var(--surface); border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-14px); } }
.sky-mark { width: 34px; height: 34px; border-radius: 50%; background: center / cover no-repeat #10161d; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 6px 16px rgb(0 0 0 / .5); }
.sky-mark.gc { width: 40px; height: 40px; box-shadow: 0 0 0 2px #fbbc04, 0 0 18px rgba(251, 188, 4, .55); }
.sky-mark.moon { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 0 16px rgba(255, 255, 240, .45); }
@media (min-width: 760px) { .h2.expanding .h2-sheet { left: 0 !important; right: 0 !important; bottom: 0 !important; top: 0 !important; max-height: 100dvh !important; width: auto !important; transform: none !important; border-radius: 0; } }
/* 판정 기준 패널 안의 관문 안내(조건 화면의 "판정은 이렇게 합니다"를 합침) */
.crit-h { margin: 14px 16px 6px; font-size: var(--fs-sm); display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.crit-h small { color: var(--fg-3); font-weight: 400; font-size: var(--fs-xs); }
.crit-guide { margin: 0; padding: 0 16px 14px 34px; display: grid; gap: 10px; font-size: var(--fs-sm); }
.crit-guide > li > b { display: block; margin-bottom: 4px; }
.crit-guide ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.crit-guide ul li { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; }
.crit-guide ul li span { font-weight: 600; }
.crit-guide ul li em { font-style: normal; color: var(--ok); font-size: var(--fs-xs); align-self: center; }
.crit-guide ul li p { grid-column: 1 / -1; margin: 0; color: var(--fg-3); font-size: var(--fs-xs); line-height: 1.55; }
@media (min-width: 760px) { .figs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#nowbox .skel-wait { margin-top: 12px; }
/* 지구본: 밤 불빛 켜고 끄기 */
.h2-night { position: absolute; right: 12px; top: calc(58px + env(safe-area-inset-top)); z-index: 6; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: var(--fs-xs); color: var(--fg-2); transition: opacity .4s, background .25s, color .25s; }
.h2-night .ph { font-size: 16px; color: var(--fg-3); }
.h2-night.on { background: #1d1638; color: #e4dcff; border-color: #6c5ad6; }
.h2-night.on .ph { color: #c9b8ff; }
.h2:not([data-state="globe"]) .h2-night { opacity: 0; pointer-events: none; }
@media (min-width: 760px) { .h2-night { top: 62px; right: 300px; } }
@media (max-width: 759px) { .h2-hero .lede { max-width: calc(100% - 112px); } }

/* 장소 사진·볼거리 */
.pm-strip { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 10px -2px 4px; padding: 0 2px; scroll-snap-type: x mandatory; }
.pm-strip::-webkit-scrollbar { display: none; }
.pm-th { flex: 0 0 auto; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); scroll-snap-align: start; cursor: zoom-in; }
.pm-strip .pm-th { width: 132px; height: 92px; }
.pm-strip .pm-th:first-child { width: 168px; }
.pm-th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
@media (hover: hover) { .pm-th:hover img { transform: scale(1.05); } }
.pm-hero { margin: 0 0 14px; display: grid; gap: 10px; }
.pm-main { position: relative; margin: 0; border-radius: var(--r-card); overflow: hidden; background: #0b1118; }
.pm-main > .pm-th { width: 100%; height: clamp(200px, 38vw, 380px); border-radius: 0; display: block; }
.pm-main figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 26px 14px 10px; background: linear-gradient(180deg, transparent, rgba(5, 9, 13, .78)); color: #fff; font-size: var(--fs-sm); pointer-events: none; }
.pm-main figcaption a { pointer-events: auto; color: rgba(255, 255, 255, .72); font-size: 10.5px; text-decoration: underline; white-space: nowrap; }
.pm-more { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.pm-more .pm-th { width: 54px; height: 54px; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); }
.pm-hl { padding: 0 4px; }
.pm-h { margin: 0 0 4px; font-size: var(--fs-xs); color: var(--fg-3); letter-spacing: .04em; }
.pm-hl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--fg-2); }
.pm-hl li::before { content: '·'; margin-right: 6px; color: var(--accent); font-weight: 700; }
.pm-hl a, .pm-season a { font-size: 10.5px; color: var(--fg-3); text-decoration: underline; }
.pm-season { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--fg-2); }
.pm-season b { color: var(--fg); margin-right: 6px; font-weight: 650; }
.hs-ph:empty { display: none; }
.h2-pop .near.has-ph { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 10px; text-align: left; padding: 6px; }
.h2-pop .near.has-ph img { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.pm-box { position: fixed; inset: 0; z-index: 200; background: rgba(4, 7, 10, .94); display: grid; place-items: center; animation: fadein .2s; }
.pm-box.out { opacity: 0; transition: opacity .2s; }
@keyframes fadein { from { opacity: 0; } }
.pm-box figure { margin: 0; max-width: min(1100px, 96vw); display: grid; gap: 8px; }
.pm-box img { max-width: 100%; max-height: 78vh; object-fit: contain; border-radius: 10px; display: block; margin: 0 auto; }
.pm-box figcaption { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #dfe7ea; font-size: 13px; justify-content: center; text-align: center; }
.pm-box figcaption a { color: #9fb2bb; text-decoration: underline; }
.pm-box figcaption span { color: #7d8f97; }
.pm-x, .pm-nav { position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; border: 0; font-size: 20px; }
.pm-x { top: 16px; right: 16px; } .pm-nav.prev { left: 12px; top: 50%; } .pm-nav.next { right: 12px; top: 50%; }
/* 지구본 확대 중: 제목 접기 + 지구본으로 단추 */
.h2-reset { position: absolute; z-index: 6; right: 12px; top: calc(118px + env(safe-area-inset-top)); display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-strong); color: var(--fg); font-size: var(--fs-sm); backdrop-filter: blur(12px); animation: rise .3s var(--ease) both; }
.h2-reset .ph { color: var(--accent); font-size: 16px; }
.h2.zoomed[data-state="globe"] .h2-hero .lede, .h2.zoomed[data-state="globe"] .h2-hero .eyebrow { opacity: 0; height: 0; margin: 0; overflow: hidden; }
.h2.zoomed[data-state="globe"] .h2-hero h1 { font-size: 22px; padding: 6px 12px; border-radius: 12px; background: var(--glass); backdrop-filter: blur(12px); display: inline-block; }
.h2-hero h1, .h2-hero .lede, .h2-hero .eyebrow { transition: font-size .35s var(--ease), opacity .3s, padding .3s; }
@media (min-width: 760px) { .h2-reset { top: 78px; right: auto; left: 40px; } .h2.zoomed .h2-reset { top: 150px; } }
.h2:not([data-state="globe"]) .h2-reset { display: none; }
/* 사진: 16:9로 자르되 사진마다 중심점, 그늘은 사진 바닥까지 끊김 없이 */
.pm-main { line-height: 0; }
.pm-main > .pm-th { height: auto; aspect-ratio: 16 / 9; max-height: 440px; }
.pm-main::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; pointer-events: none; background: linear-gradient(180deg, rgba(5, 9, 13, 0) 0%, rgba(5, 9, 13, .18) 35%, rgba(5, 9, 13, .55) 70%, rgba(5, 9, 13, .82) 100%); }
.pm-main figcaption { z-index: 1; background: none; padding: 0 14px 12px; line-height: 1.4; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.pm-more { z-index: 1; }
/* 특징·시기: 작은 글씨 나열, 화살표로 접기 */
.pm-hl { display: grid; gap: 6px; }
.pm-sec summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); color: var(--fg-3); letter-spacing: .04em; padding: 2px 0; }
.pm-sec summary::-webkit-details-marker { display: none; }
.pm-sec summary .ph { font-size: 12px; transition: transform .25s var(--ease); }
.pm-sec:not([open]) summary .ph { transform: rotate(-90deg); }
.pm-sec ul { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: var(--fs-sm); color: var(--fg-2); }
.pm-sec li::before { content: '·'; margin-right: 6px; color: var(--accent); font-weight: 700; }
.pm-sec .pm-season { display: grid; gap: 2px; margin: 2px 0 0; }
.pm-sec li.src::before { content: none; }
.pm-sec a { font-size: 10.5px; color: var(--fg-3); text-decoration: underline; }

/* 쉽게 보기(초보·체험자, 시범) */
.ez-toggle { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; flex-wrap: wrap; }
.ez-toggle button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-2); font-size: var(--fs-sm); }
.ez-toggle button.on { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 650; }
.ez-toggle small { color: var(--fg-3); font-size: var(--fs-xs); margin-left: 4px; }
.easy-on .verdict .v-key, .easy-on .verdict .check, .easy-on .verdict .v-trust, .easy-on .verdict .v-skill, .easy-on .verdict .v-sub,
.easy-on .profile, .easy-on nav.panes, .easy-on [data-pane], .easy-on .criteria, .easy-on .status { display: none !important; }
.easy { display: grid; gap: 14px; }
.ez-act { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-lg); line-height: 1.5; font-weight: 650; }
.ez-act .ph { color: var(--accent); font-size: 22px; margin-top: 3px; flex: 0 0 auto; }
.ez-feel { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ez-feel li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.ez-ic { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 18px; }
.ez-t { display: grid; line-height: 1.35; } .ez-t b { font-size: var(--fs-md); } .ez-t small { font-size: var(--fs-xs); color: var(--fg-2); }
.ez-feel em { grid-column: 2; font-style: normal; font: 500 11px var(--num); color: var(--fg-3); margin-top: 2px; }
.ez-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 520px) { .ez-feel, .ez-two { grid-template-columns: 1fr; } }
.ez-h { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 650; } .ez-h .ph { color: var(--accent); }
.ez-list { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: var(--fs-sm); color: var(--fg-2); }
.ez-words summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--fg-2); }
.ez-words summary::-webkit-details-marker { display: none; }
.ez-words:not([open]) summary .ph-caret-down { transform: rotate(-90deg); }
.ez-words dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: var(--fs-sm); }
.ez-words dt { font-weight: 650; } .ez-words dd { margin: 0; color: var(--fg-2); }
.ez-more { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg); font-size: var(--fs-sm); }
.ez-act span { display: grid; gap: 4px; } .ez-why { font-size: var(--fs-sm); font-weight: 500; color: var(--warn); }

/* 상세: 폰은 한 줄(사진 → 규정 → 쉽게/자세히 → 판정 → 날짜 → 시간 → 근거…), PC는 두 칸 */
.dgrid { display: grid; gap: 16px; min-width: 0; }
.dl, .dr { display: contents; }
.dr > .pm-hero { order: 1; } .dr > .pt-note { order: 2; } .dr > .rules { order: 3; }
.dl > .ez-toggle { order: 4; } .dl > .verdict { order: 5; } .dl > .days { order: 6; } .dl > .profile { order: 7; } .dl > .easy { order: 8; }
.dr > * { order: 9; }
.dr > .pm-hero, .dr > .pt-note, .dr > .rules { order: initial; }
.dr > .pm-hero { order: 1; } .dr > .pt-note { order: 2; } .dr > .rules { order: 3; }
@media (min-width: 1100px) {
  #app:has(.dgrid) { max-width: 1280px; }
  .dgrid { grid-template-columns: minmax(360px, 420px) minmax(0, 1fr); align-items: start; gap: 22px; }
  .dl, .dr { display: grid; gap: 16px; min-width: 0; align-content: start; }
  .dl { position: sticky; top: 64px; max-height: calc(100dvh - 76px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: transparent transparent; transition: scrollbar-color .2s; }
  .dl:hover { scrollbar-color: color-mix(in srgb, var(--fg) 28%, transparent) transparent; }
  .dl.more { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 36px), transparent); }
  .dl .days { margin: 0; padding: 0; flex-wrap: wrap; }
  .dr > * { order: 0; }
  .ez-feel, .ez-two { grid-template-columns: 1fr; }
}
/* PC 지구본: 장소를 고른 뒤에도 종목 칩을 카드 위에 남겨 바로 바꾸거나 더할 수 있게 */
@media (min-width: 760px) {
  .h2[data-state="place"] .h2-ctl, .h2[data-state="flying"] .h2-ctl { opacity: 1; transform: none; pointer-events: auto; top: 16px; left: 16px; width: 430px; }
  .h2[data-state="place"] .h2-search, .h2[data-state="flying"] .h2-search { display: none; }
  .h2[data-state="place"] .h2-acts, .h2[data-state="flying"] .h2-acts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .h2[data-state="place"] .h2-acts-hint { display: none; }
  .h2[data-state="place"] .h2-sheet { top: 70px; }
}
.newbuild { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 120; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: var(--fg); color: var(--bg); box-shadow: 0 10px 30px rgb(0 0 0 / .35); font-size: var(--fs-sm); animation: rise .35s var(--ease) both; white-space: nowrap; }
.newbuild button { padding: 7px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; border: 0; }
.newbuild button.x { background: transparent; color: var(--bg); padding: 6px; }
/* 활동 타일 PC: 묶음마다 타일 수만큼 한 줄로(혼자 남는 타일 없이), 너무 커지지 않게 */
@media (min-width: 1000px) {
  #app:has(.atiles) { max-width: 1280px; }
  .atiles[style*="--n"] { grid-template-columns: repeat(var(--n), minmax(0, 250px)); }
}
/* 지구본으로 단추: 글자 없이, 작은 지구가 자전한다(세계지도가 동그란 창 안에서 흐름) */
.h2-reset { top: calc(104px + env(safe-area-inset-top)); right: 12px; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
.h2-reset .gl { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2) 0 50% / auto 100% repeat-x; box-shadow: inset -6px -3px 8px rgba(0, 0, 0, .55), inset 2px 2px 4px rgba(255, 255, 255, .25), 0 0 0 1px rgba(255, 255, 255, .15); animation: gl-spin 9s linear infinite; }
@keyframes gl-spin { from { background-position-x: 0; } to { background-position-x: -56px; } }
@media (prefers-reduced-motion: reduce) { .h2-reset .gl { animation: none; } }
.h2:not([data-state="globe"]) .h2-reset { display: inline-flex; }
@media (min-width: 760px) { .h2-reset, .h2.zoomed .h2-reset { top: 62px; right: 16px; left: auto; } .h2[data-state="place"] .h2-reset { top: 16px; right: 16px; } }
/* 카드: 크게 펼쳐 스크롤해도 머리(이름·뒤로)는 위에 붙어 있어 잡고 내릴 수 있게 */
.h2-sheet .hs-head { position: sticky; top: 0; z-index: 3; background: inherit; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
:root:not([data-theme="light"]) .h2-sheet .hs-head, :root[data-theme="dark"] .h2-sheet .hs-head { background: rgb(18, 27, 39); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .h2-sheet .hs-head { background: var(--surface); } }
:root[data-theme="light"] .h2-sheet .hs-head { background: var(--surface); }
/* 사진 핀: 점 위로 띄워 점이 보이게(꼬리가 점을 가리킴) */
/* 지도 표식은 지도가 위치를 transform으로 잡으므로 표식 자체엔 transform을 주지 않는다 */
.photo-pin .pp-tip { margin-top: -7px; }
.photo-pin::after { content: ''; width: 2px; height: 12px; background: var(--accent); margin-top: -2px; border-radius: 1px; }
/* 날짜·시간·기준·쉽게/자세히를 바꿔 다시 그릴 땐 떠오르는 효과 없이 살짝만 바뀐다(덜컹임 없음) */
.settled .dl > *, .settled .dr > *, #nowbox.settled > *, .settled > .dgrid, .settled [data-pane]:not([hidden]) { animation: none; }
/* 다시 그릴 땐 깜빡이지 않는다(어두워졌다 밝아지는 효과 없음) */
.pane-anim [data-pane]:not([hidden]) { animation: fadein .3s ease-out both !important; }
/* 비교: 표가 폰 폭보다 넓어도 화면 전체가 옆으로 밀리지 않게(사파리 뒤로가기 제스처 방지), 표 안에서만 옆으로 넘김 */
main > * { min-width: 0; }
html, body { overflow-x: clip; }
.cmp { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.cmp-grid { width: max-content; min-width: 100%; }
.cmp-grid > .cmp-k { position: sticky; left: 0; z-index: 1; background: var(--surface); }
main { grid-template-columns: minmax(0, 1fr); }

/* 폰 카드 3단계: 높이(--sh)로 움직인다. 1 살짝 · 2 반 화면(넘치면 카드 안 스크롤) · 3 크게. 끌 때는 손가락을 그대로 따라간다. */
@media (max-width: 759px) {
  .h2-sheet { transform: none !important; height: var(--sh, 0px); max-height: none !important; transition: height .5s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
  .h2[data-state="globe"] .h2-sheet { opacity: 0; pointer-events: none; }
  .h2:not([data-state="globe"]) .h2-sheet { opacity: 1; }
  .h2-sheet .h2-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .h2:not(.tall) .hs-more { display: block; }
  .h2[data-stage="1"] .h2-body { overflow: hidden; }
  .h2-sheet .hs-head { touch-action: none; }
  .h2.expanding .h2-sheet { height: calc(100dvh - 0px) !important; bottom: 0 !important; }
}

/* 두 번 눌러 확대 막기(손가락 두 개로 벌리는 확대는 그대로) */
html { touch-action: manipulation; }
button, a, [role="tab"], [role="radio"], .day, .hr { touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }

/* ===== 글자 역할 통일(전체 검수): 제목 15/650 · 항목 이름 13/650 · 값 13/650 숫자 자릿수 맞춤 · 큰 숫자 17/650 · 설명 13/400 · 메모 12/400 =====
   숫자 전용 글꼴(Mono)은 영문 머리글에만. 한글·단위가 섞인 값은 본문 글꼴로. 이 블록은 파일 맨 끝에 있어야 한다. */
.maplibregl-map, .maplibregl-popup, .maplibregl-marker { font-family: var(--font); }
.panel-h h2, figcaption span, details.crit > summary b, .rules .rules-h h2 { font-size: var(--fs-md); font-weight: 650; line-height: 1.55; }
.items .k, .check b, .crit-list li > b, .gearcmp .gc b, .shoot .kit b { font-size: var(--fs-sm); font-weight: 650; color: var(--fg); }
.items .v, .check .cv strong, .gearcmp .gc span, .hs-key b, .hs-gates .gv b, .hs-best b, .cmp-c b { font-family: var(--font); font-size: var(--fs-sm); font-weight: 650; font-variant-numeric: tabular-nums; color: var(--fg); }
.hs-key b { font-size: var(--fs-md); }
.facts dd, figcaption b, .tool-out dd { font-size: var(--fs-lg); font-weight: 650; color: var(--fg); font-variant-numeric: tabular-nums; }
.facts dd.dd-text { font-size: var(--fs-md); }
.cap-sub { font-size: var(--fs-xs); color: var(--fg-3); }
.items p, .crit-list li p, .mo-cap, .compass li, .shoot .kit, .shoot p, .tl-out, .pm-sec li, .rules li { font-size: var(--fs-sm); font-weight: 400; color: var(--fg-2); line-height: 1.55; }
.rules li span:not(.tag) { color: var(--fg); }
.note, .crit-note, .shoot small.hint, .panel-h small, figure p.muted, .panel p.muted, .legend-line, .facts dt, .gearcmp .gc small { font-size: var(--fs-xs); font-weight: 400; color: var(--fg-3); line-height: 1.55; }
.hs-gates .gn { font: 500 12px var(--font); letter-spacing: 0; color: var(--fg-3); }
.hs-days small, .hs-v span, .h2-pop small, .h2-res em { font-family: var(--font); font-size: 11px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.ez-feel em { font: 500 12px var(--font); font-variant-numeric: tabular-nums; }
.day .far { font-size: 11px; }
.pp-card b { font-family: var(--font); }
/* 다시 그릴 때(날짜·시간·쉽게/자세히·기준): 어떤 등장 효과도 걸리지 않게(우선순위 강제). 탭 바꿈만 예외로 살짝 나타남. */
.settled, .settled * { animation: none !important; }
.settled.pane-anim [data-pane]:not([hidden]) { animation: fadein .25s ease-out both !important; }
/* 쉽게 보기 칸: 판정 칸과 같은 안쪽 여백 */
.panel.easy { padding: 18px 16px; }
.panel.easy .ez-feel li { padding: 12px 14px; }
/* 날짜 줄: 다른 칸과 같은 폭 안에(화면 끝까지 튀어나오지 않게), 오른쪽 끝을 흐리게 해 옆으로 넘어감을 보인다 */
.days { margin: 0 !important; padding: 2px 0 !important; scroll-padding-left: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.days.at-end { -webkit-mask-image: none; mask-image: none; }
/* 지구본 종목 칩: 켜진 종목은 지도 점과 같은 색 점 */
.h2-acts button .ad, .h2-acts-hint .ad { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ac, var(--accent)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ac, var(--accent)) 25%, transparent); flex: 0 0 auto; }
.h2-acts button.on { border-color: color-mix(in srgb, var(--ac) 70%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 70%, transparent); }
.h2-acts-hint .ad.multi { background: #fff; box-shadow: 0 0 0 1.5px #0b1118; margin: 0 4px 0 2px; vertical-align: middle; }
/* 레이어 지도 ↔ 지구본 전환 단추(첫 화면의 '레이어 지도'와 같은 자리·모양) */
.bar-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); font-size: var(--fs-xs); color: var(--fg-2); text-decoration: none; margin-right: 6px; }
.bar-chip .ph { font-size: 16px; color: var(--accent); }
/* 폰 레이어 지도 돋보기: 접힌 상태에서 동그라미 가운데에 바로 앉게(입력칸이 자리를 차지하지 않게) */
@media (max-width: 600px) {
  .search.small { box-sizing: border-box; flex: 0 0 auto; }
  .search.small .ph { margin: 0; font-size: 17px; flex: 0 0 auto; }
  .search.small input { flex: 0 0 0; min-width: 0; -webkit-appearance: none; appearance: none; }
  .search.small:focus-within input { flex: 1 1 auto; }
}

/* 지구본 화면 오른쪽 위: 레이어 지도 단추 + 화면 모드. 레이어 지도 화면의 위 막대(지구본 + 화면 모드)와 같은 자리 */
.h2-top { position: absolute; z-index: 6; top: calc(10px + env(safe-area-inset-top)); right: 8px; display: flex; align-items: flex-start; gap: 2px; }
.h2-top .bar-chip { backdrop-filter: blur(10px); transition: opacity .4s; }
.h2-top .icon-btn { background: var(--glass); backdrop-filter: blur(10px); }
.h2:not([data-state="globe"]) .h2-top .bar-chip { opacity: 0; pointer-events: none; }
/* PC: 지구본 화면은 메뉴(탭)가 오른쪽 위에 있어서 그 왼쪽에 붙인다 */
@media (min-width: 760px) { .h2-top { top: 14px; right: 284px; height: 44px; align-items: center; } }
/* 폰 카드 2단계: 판정~날짜 줄만. 안쪽 스크롤 없이 위로 밀면 3단계(가로 사진 줄은 그대로 넘김) */
@media (max-width: 759px) { .h2[data-stage="1"] .h2-body, .h2[data-stage="2"] .h2-body { overflow: hidden; touch-action: pan-x; } }

/* 활동 화면: 사진이 타일에서 날아와 커지는 동안 제목도 사진 위 층에서 함께 떠오른다(전환이 끝난 뒤 늦게 뜨지 않게) */
.mag-txt { view-transition-name: act-title; }
::view-transition-new(act-title) { animation: act-title-in .5s cubic-bezier(.22, 1, .36, 1) both; }
::view-transition-old(act-title) { animation: act-title-out .18s ease both; }
@keyframes act-title-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes act-title-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { ::view-transition-new(act-title), ::view-transition-old(act-title) { animation: none; } }
/* 광해 지도 단추: 지구본(처음 크기로) 단추 바로 왼쪽, 같은 줄(지구본 단추는 늘 보인다) */
.h2-night { top: calc(108px + env(safe-area-inset-top)); right: 64px; transition: right .3s var(--ease), opacity .4s; }
@media (min-width: 760px) { .h2-night { top: 66px; right: 68px; } }
/* 종목별 장소 수: PC는 단추 옆에 작게, 폰은 단추 줄이 길어지지 않게 숨기고 아래 안내 줄에 합계만 */
.h2-acts button .cnt { font: 600 11px/1 var(--font); font-variant-numeric: tabular-nums; color: var(--fg-3); padding: 2px 5px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.h2-acts button.on .cnt { color: var(--fg-2); }
.h2-acts-hint b { font-weight: 650; color: var(--fg-2); }
@media (max-width: 759px) { .h2-acts button:not(.on) .cnt { display: none; } }   /* 폰: 고른 종목에만 숫자(안내 줄 합계는 옆으로 밀어야 보여서) */
/* 한글 작은 글씨는 보통 글씨체·좁은 간격(고정폭+넓은 간격이면 띄엄띄엄해 보임). 숫자(번호·좌표)만 고정폭 */
.h2 .eyebrow { font: 600 11.5px/1.4 var(--font); letter-spacing: .01em; }
.h2 .eyebrow span { font-family: var(--num); letter-spacing: .06em; }
.hs-t .eyebrow { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-t .eyebrow .co { font: 500 10.5px var(--num); font-style: normal; letter-spacing: 0; color: var(--fg-3); opacity: .8; margin-left: 8px; }

/* 처음 온 사람: "어떤 활동 하세요?" 카드. 뒤의 지구본은 흐리게 */
.h2-welcome { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px 16px calc(84px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 45%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .35s var(--ease); }
.h2-welcome.in { opacity: 1; }
.hw-card { width: min(520px, 100%); max-height: 100%; overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 22px 18px 16px; box-shadow: 0 20px 60px rgb(0 0 0 / .3); transform: translateY(12px) scale(.98); transition: transform .4s var(--ease); }
.h2-welcome.in .hw-card { transform: none; }
.hw-card h2 { margin: 0; font: 800 22px/1.25 var(--font); letter-spacing: -.02em; }
.hw-card > p { margin: 6px 0 16px; color: var(--fg-2); font-size: var(--fs-sm); line-height: 1.5; }
.hw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .hw-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hw-grid button { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2, var(--bg)); color: var(--fg-2); font-size: var(--fs-sm); transition: border-color .15s, background .15s, transform .1s; }
.hw-grid button .ph { font-size: 22px; color: var(--ac); }
.hw-grid button.on { border-color: var(--ac); background: color-mix(in srgb, var(--ac) 14%, transparent); color: var(--fg); box-shadow: inset 0 0 0 1px var(--ac); }
.hw-grid button:active { transform: scale(.97); }
.hw-go { width: 100%; margin-top: 16px; height: 48px; border-radius: 12px; background: var(--accent); color: var(--on-accent, #062a27); font: 700 16px var(--font); border: 0; }
.hw-go:disabled { opacity: .45; }
.hw-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; margin-top: 8px; }
.hw-alt button { background: none; border: 0; color: var(--fg-2); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px; min-height: 40px; }
.hw-note { margin: 4px 0; color: var(--fg-2); font-size: var(--fs-sm); text-align: center; }

/* 사용법 안내(코치마크): 어둡게 깔고 설명할 곳만 밝게 뚫는다 */
.tour { position: fixed; inset: 0; z-index: 9000; cursor: pointer; opacity: 0; transition: opacity .3s var(--ease); }
.tour.in { opacity: 1; }
.tour-hole { position: fixed; box-shadow: 0 0 0 9999px rgb(5 10 14 / .68); border: 2px solid color-mix(in srgb, var(--accent) 80%, white); transition: left .38s var(--ease), top .38s var(--ease), width .38s var(--ease), height .38s var(--ease), border-radius .38s var(--ease); pointer-events: none; }
.tour-tip { position: fixed; background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 14px; padding: 14px 14px 10px; box-shadow: 0 14px 40px rgb(0 0 0 / .35); transition: left .38s var(--ease), top .38s var(--ease); cursor: default; }
.tour-tip.pop { animation: tour-pop .32s var(--ease) both; }
@keyframes tour-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.tour-arrow { position: absolute; width: 14px; height: 14px; background: var(--surface); border: 1px solid var(--line-strong); transform: translateX(-50%) rotate(45deg); }
.tour-tip[data-side="below"] .tour-arrow { top: -8px; border-right: 0; border-bottom: 0; }
.tour-tip[data-side="above"] .tour-arrow { bottom: -8px; border-left: 0; border-top: 0; }
.tour-t { display: block; font: 750 16px/1.3 var(--font); margin-bottom: 4px; }
.tour-x { margin: 0 0 10px; color: var(--fg-2); font-size: var(--fs-sm); line-height: 1.55; }
.tour-row { display: flex; align-items: center; gap: 8px; }
.tour-n { margin-right: auto; color: var(--fg-3); font: 600 12px var(--num); }
.tour-skip { background: none; border: 0; color: var(--fg-3); font-size: var(--fs-sm); padding: 8px 6px; }
.tour-next { background: var(--accent); color: var(--on-accent, #062a27); border: 0; border-radius: 10px; padding: 8px 14px; font: 700 14px var(--font); }
@media (prefers-reduced-motion: reduce) { .tour-hole, .tour-tip { transition: none; } .tour-tip.pop { animation: none; } }

/* 지구본 카드 맨 아래 접힌 "이 장소 날씨·환경 자료" */
.h2-body .envp { margin: 12px 0 2px; background: transparent; border: 1px solid var(--line); box-shadow: none; }
.h2-body .envp summary { padding: 10px 12px; font-size: var(--fs-sm); }
.h2-body .envp summary small { flex-basis: 100%; }
.h2-body .envt { font-size: var(--fs-xs); }
.h2-body .envp summary small { order: 3; }
/* 사용법 안내: 스크롤로 이동하는 동안 구멍은 대상에 딱 붙어 따라가고, 말풍선은 잠깐 숨긴다 */
.tour-hole.follow { transition: none; }
.tour-tip { transition: left .38s var(--ease), top .38s var(--ease), opacity .2s; }
.tour-tip.hide { opacity: 0; pointer-events: none; }

/* 지도 아래 바탕 고르기 + 광해 켜기 */
.baseswitch { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.lightbtn { padding: 6px 10px; }
.lightbtn .ph { color: var(--fg-3); }
.lightbtn.on { background: #1d1638; color: #e4dcff; border-color: #6c5ad6; }
.lightbtn.on .ph { color: #c9b8ff; }

/* 즐겨찾기 별: 지구본 카드 이름 옆, 조건 화면 장소 이름 옆 */
.hs-t h2 { display: inline; }
.hs-fav, .cp-fav { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 6px; vertical-align: -6px; border-radius: 50%; background: none; border: 0; color: var(--fg-3); font-size: 20px; }
.hs-fav.on, .cp-fav.on, .icon-btn.fav.on { color: #f5b400; }
.hs-fav.on, .cp-fav.on { background: color-mix(in srgb, #f5b400 16%, transparent); }
.tour-tip[data-side="right"] .tour-arrow { left: -8px !important; border-right: 0; border-top: 0; transform: translateY(-50%) rotate(45deg); }
.tour-tip[data-side="left"] .tour-arrow { left: auto !important; right: -8px; border-left: 0; border-bottom: 0; transform: translateY(-50%) rotate(45deg); }
.tour-tip[data-side="over"] .tour-arrow { display: none; }

/* 근거 등급·상태·일대 표식: 이름 옆 작은 색 표식(글 흐름을 해치지 않게) */
.mps { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 1px; flex-wrap: wrap; }
.mp { font: 650 10.5px/1 var(--font); padding: 3px 6px; border-radius: 999px; letter-spacing: 0; white-space: nowrap; }
.mp.t2 { background: color-mix(in srgb, #3b82f6 14%, transparent); color: #3b82f6; }
.mp.t3 { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #c27c00; }
.mp.t4 { background: color-mix(in srgb, #a78bfa 18%, transparent); color: #8b5cf6; }
.mp.area { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.mp.approx { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg-3); }
.mp.st-banned, .mp.st-closed, .mp.st-suspended { background: color-mix(in srgb, #ef4444 16%, transparent); color: #dc2626; }
.mp.st-restricted { background: color-mix(in srgb, #f59e0b 18%, transparent); color: #b45309; }
.d-meta { margin: 0 0 10px; } .d-meta .mps { margin-left: 0; }
/* 금지·폐업 안내: 판정 자리 위에 따로, 눈에 띄게 */
.st-banner { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, #ef4444 10%, var(--surface)); border: 1px solid color-mix(in srgb, #ef4444 40%, transparent); }
.st-banner[data-type="restricted"] { background: color-mix(in srgb, #f59e0b 10%, var(--surface)); border-color: color-mix(in srgb, #f59e0b 45%, transparent); }
.st-banner > .ph { font-size: 22px; color: #dc2626; margin-top: 1px; } .st-banner[data-type="restricted"] > .ph { color: #b45309; }
.st-banner b { display: block; font-size: var(--fs-md, 15px); } .st-banner span { display: block; font-size: var(--fs-sm); color: var(--fg); margin-top: 2px; }
.st-banner small { display: block; font-size: var(--fs-xs); color: var(--fg-3); margin-top: 4px; }
.no-judge .panel.verdict, .no-judge .days, .no-judge .profile, .no-judge .ez-toggle, .no-judge .panel.easy { display: none !important; }

/* 조건 화면: 장소 이름 바로 옆에 별 */
.cp-name { display: inline-flex; align-items: center; gap: 2px; min-width: 0; }
.cp-name .cp-fav { margin-left: 2px; vertical-align: 0; }
/* PC 쉽게 보기 오른쪽 칸(챙길 것·처음이라면·낱말 풀이) */
@media (min-width: 1100px) { .easy-side { order: 4; } .easy-side .ez-two { grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 0; } .easy-side .ez-words { margin-top: 14px; } }
@media (min-width: 1100px) { .dr > .panel.easy:not(.easy-side) { order: 4; } .dr > .easy-side { order: 5; } }
@media (min-width: 1100px) { .dr .panel.easy .ez-feel { grid-template-columns: 1fr 1fr; } }

/* PC 지구본 카드: 비율 그대로 조금 크게(작은 글씨·지역명이 잘 보이게). 칩 줄도 카드 폭에 맞춘다 */
@media (min-width: 760px) {
  .h2-sheet { zoom: 1.14; width: 430px; top: calc(78px / 1.14); left: calc(16px / 1.14); max-height: calc((100dvh - 100px) / 1.14); }
  .h2[data-state="place"] .h2-sheet { top: calc(70px / 1.14); }
  .h2[data-state="place"] .h2-ctl, .h2[data-state="flying"] .h2-ctl { width: 490px; }
}
/* 종목 칩 줄이 옆으로 넘칠 때: 끝을 뚝 자르지 말고 은은하게 사라지게(스크롤 위치에 따라 왼쪽·오른쪽) */
.h2-acts.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.h2-acts.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.h2-acts.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
/* 쉽게/자세히: 다른 알약 버튼들과 섞여 안 보이던 문제 → 한 덩어리 스위치, 고른 쪽은 꽉 찬 색 */
.ez-toggle { gap: 10px; margin: 2px 0 12px; }
.ez-seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 7%, var(--surface)); border: 1px solid var(--line-strong); box-shadow: inset 0 1px 2px rgb(0 0 0 / .08); }
.ez-seg .ez-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 10px; background: var(--accent); box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .32s var(--ease); }
.ez-seg[data-on="full"] .ez-knob { transform: translateX(100%); }
.ez-toggle .ez-seg button { position: relative; z-index: 1; justify-content: center; min-width: 108px; padding: 10px 18px; border: 0; border-radius: 10px; background: transparent; color: var(--fg-2); font-size: var(--fs-md, 15px); font-weight: 600; }
.ez-toggle .ez-seg button.on { background: transparent; color: #fff; border: 0; font-weight: 700; }
:root[data-theme="dark"] .ez-toggle .ez-seg button.on, :root:not([data-theme="light"]) .ez-toggle .ez-seg button.on { color: #04161a; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .ez-toggle .ez-seg button.on { color: #fff; } }
:root[data-theme="light"] .ez-toggle .ez-seg button.on { color: #fff; }
.ez-toggle small { font-size: var(--fs-sm); color: var(--fg-2); }
@media (prefers-reduced-motion: reduce) { .ez-seg .ez-knob { transition: none; } }
@media (min-width: 760px) { .h2-sheet, .h2-sheet * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--fg) 25%, transparent) transparent; } }
/* 화면 모드 바꿀 때 가운데 큰 아이콘(반투명하지만 또렷하게) */
.theme-flash { position: fixed; z-index: 200; left: 50%; top: 50%; width: 148px; height: 148px; margin: -74px 0 0 -74px; display: grid; place-items: center; border-radius: 36px; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 50px rgb(0 0 0 / .28); color: var(--fg); opacity: 0; transform: scale(.82); transition: opacity .22s ease, transform .32s cubic-bezier(.2, 1.4, .4, 1); }
.theme-flash .ph { font-size: 84px; opacity: .92; }
.theme-flash.in { opacity: 1; transform: scale(1); }
.theme-flash.out { opacity: 0; transform: scale(1.06); transition: opacity .35s ease, transform .35s ease; }
@media (prefers-reduced-motion: reduce) { .theme-flash { transition: opacity .2s; transform: none !important; } }
.theme-flash { background: color-mix(in srgb, var(--surface) 72%, transparent); border-color: color-mix(in srgb, var(--fg) 24%, transparent); }
:root[data-theme="dark"] .theme-flash, :root:not([data-theme="light"]) .theme-flash { background: color-mix(in srgb, #fff 14%, rgb(20 28 40 / .6)); box-shadow: 0 18px 50px rgb(0 0 0 / .5), inset 0 1px 0 rgb(255 255 255 / .12); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .theme-flash { background: color-mix(in srgb, var(--surface) 72%, transparent); } }
:root[data-theme="light"] .theme-flash { background: color-mix(in srgb, var(--surface) 72%, transparent); }
.theme-flash .ph { opacity: 1; }
/* 폰 지구본: 광해 버튼은 제목 줄 오른쪽(레이어 아래), 설명 줄은 소개 문구 바로 아래(버튼이 있던 자리) */
@media (max-width: 759px) {
  .h2-night { top: calc(56px + env(safe-area-inset-top)); right: 12px; height: 34px; padding: 0 11px; }
  .h2-legend { top: calc(112px + env(safe-area-inset-top)); left: 20px; right: 64px; font-size: 11px; line-height: 1.35; }
}
/* 폰 상세: 칸 폭을 화면에 묶는다(사진 원본 폭이 칸을 807px까지 늘려 오른쪽이 잘리던 문제) */
@media (max-width: 1099px) { .dgrid { grid-template-columns: minmax(0, 1fr); } .pm-hero img, .pm-th img { max-width: 100%; } }
.chips-row.wrap .chipbtn { max-width: 100%; white-space: normal; text-align: left; min-width: 0; } .chips-row.wrap .chipbtn small { white-space: normal; }
/* 지구본 카드 머리: 이름 줄과 지역 줄 사이를 좁게(별 단추가 줄 높이를 키우지 않게) */
.hs-t .hs-fav { width: 30px; height: 30px; margin: -6px 0 -6px 2px; vertical-align: middle; font-size: 19px; }
.hs-t .sub { margin-top: 1px; }
/* 기대 단어: 점으로 잇는 한 줄(넘치면 두 줄까지) */
.hs-tags { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--fs-xs); font-weight: 600; color: var(--fg-2); line-height: 1.35; max-height: 2.8em; overflow: hidden; }
.hs-tags span { white-space: nowrap; }
.hs-tags span + span::before { content: '·'; margin: 0 6px; color: var(--fg-3); font-weight: 400; }
/* 별 단추는 머리 오른쪽 위에 따로 붙인다(긴 이름이면 별이 다음 줄로 내려가 틈이 생기던 문제) */
.hs-t { position: relative; padding-right: 34px; min-width: 0; }
.hs-t h2 { display: block; }
.hs-t .hs-fav { position: absolute; top: 14px; right: -4px; margin: 0; }
/* 기대 단어는 작은 알약으로(줄이 바뀌어도 점이 줄 앞에 매달리지 않게) */
.hs-tags { gap: 4px; max-height: none; }
.hs-tags span { padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--fg); font-weight: 600; font-size: 11.5px; }
.hs-tags span + span::before { content: none; }
.hs-t h2 { word-break: keep-all; overflow-wrap: anywhere; }
.chipbtn i.ph { width: auto; height: auto; border-radius: 0; display: inline-block; font-size: 16px; line-height: 1; }   /* 범례 색띠용 i 규칙이 아이콘까지 4px로 눌러 아래로 처지던 문제 */
/* ===== 로고(고노고): 꽉 찬 점 = 갈까, 빈 원 = 말까 ===== */
:root { --logo-go: #12a597; --logo-no: #101c22; }
:root[data-theme="dark"], :root:not([data-theme="light"]) { --logo-go: #35d0c4; --logo-no: #eef4f6; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --logo-go: #12a597; --logo-no: #101c22; } }
:root[data-theme="light"] { --logo-go: #12a597; --logo-no: #101c22; }
.logo { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); text-decoration: none; }
.logo .logo-mk { width: 30px; height: 15px; flex: 0 0 auto; }
.logo b { font: 800 17px/1 var(--font); letter-spacing: -.01em; }
.brand.logo { padding-left: 8px; }
/* 지구본 첫 화면: 왼쪽 위에 로고, 제목 묶음은 그만큼 아래로 */
.h2-logo { position: absolute; z-index: 6; left: 20px; top: calc(16px + env(safe-area-inset-top)); transition: opacity .4s; }
.h2:not([data-state="globe"]) .h2-logo { opacity: 0; pointer-events: none; }
@media (max-width: 759px) {
  .h2-hero { top: calc(52px + env(safe-area-inset-top)); }
  .h2-night { top: calc(90px + env(safe-area-inset-top)); }
  .h2-legend { top: calc(146px + env(safe-area-inset-top)); }
  .h2-reset { top: calc(138px + env(safe-area-inset-top)); }
}
@media (min-width: 760px) { .h2-logo { left: 40px; top: 28px; } .h2-logo .logo-mk { width: 34px; height: 17px; } .h2-logo b { font-size: 19px; } }
/* 글자 로고 G●N○G●: O 자리를 점(갈까)·빈 원(말까)으로 */
.logo .wm { display: inline-flex; align-items: center; gap: .06em; font: 900 17px/1 var(--font); letter-spacing: .02em; }
.logo .wm i { display: inline-block; width: .78em; height: .78em; border-radius: 50%; box-sizing: border-box; }
.logo .wm i.d { background: var(--logo-go); }
.logo .wm i.r { border: .15em solid var(--logo-o); }
@media (min-width: 760px) { .h2-logo .wm { font-size: 19px; } }

/* 글자 로고 G●N○G● 의 빈 원은 회색(마크 ●○ 의 빈 원만 검정/흰색) */
:root { --logo-o: #8597a8; }
:root[data-theme="dark"], :root:not([data-theme="light"]) { --logo-o: #5c7186; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --logo-o: #8597a8; } }
:root[data-theme="light"] { --logo-o: #8597a8; }
/* ===== 상세 첫 화면(친구 평가 반영): 알약 → 쉽게/자세히 → 판정 → 날짜, 사진·글은 그 아래. 글은 접은 칩 ===== */
.d-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.d-tags span { padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--fg); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pm-hl { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; }
.pm-hl .pm-sec { flex: 0 0 auto; }
.pm-hl .pm-sec[open] { flex: 1 0 100%; }
.pm-hl .pm-sec summary { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--fg-2); font-size: 12.5px; font-weight: 650; letter-spacing: 0; gap: 5px; }
.pm-hl .pm-sec summary small { font-weight: 600; color: var(--fg-3); }
.pm-hl .pm-sec[open] summary { border-color: var(--accent); color: var(--fg); }
.pm-hl .pm-sec ul { margin-top: 8px; flex-direction: column; gap: 6px; }
@media (max-width: 1099px) {
  .dl > .d-tags { order: 0; }
  .dl > .ez-toggle { order: 1; } .dl > .verdict { order: 2; } .dl > .days { order: 3; } .dl > .profile { order: 4; } .dl > .easy { order: 5; }
  .dr > .pm-hero { order: 6; } .dr > .pt-note { order: 7; } .dr > .rules { order: 8; }
  .dr > * { order: 9; }
  .dr > .pm-hero { order: 6; } .dr > .pt-note { order: 7; } .dr > .rules { order: 8; }
  .pm-hero .pm-main img { max-height: 46vw; }
}
/* ===== 언제 가요?(여행 날짜) + 카드 시즌(지난 기록) ===== */
.h2-when-wrap { position: relative; margin-top: 12px; pointer-events: auto; }
.h2-when { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--glass); backdrop-filter: blur(10px); color: var(--fg-2); font-size: var(--fs-sm); font-weight: 600; }
.h2-when .ph { font-size: 16px; color: var(--accent); }
.h2-when.on { color: var(--fg); border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--glass)); }
.h2-when-pop { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: 260px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 14px 40px rgb(0 0 0 / .3); display: grid; gap: 10px; }
.h2-when-pop[hidden] { display: none; }
.h2-when-pop label { display: grid; gap: 4px; font-size: var(--fs-xs); color: var(--fg-3); font-weight: 600; }
.h2-when-pop input { font: inherit; font-size: var(--fs-md); padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg); color-scheme: light dark; }
.h2-when-pop .row { display: flex; gap: 8px; }
.h2-when-pop .row button { flex: 1; padding: 9px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--fg); font-weight: 650; }
.h2-when-pop .row .go { background: var(--accent); border-color: var(--accent); color: #04161a; }
.h2-when-pop small { color: var(--fg-3); font-size: 11.5px; line-height: 1.4; }
.h2.zoomed[data-state="globe"] .h2-when-wrap { margin-top: 8px; }
.hs-season { margin-top: 12px; display: grid; gap: 8px; }
.hs-trip { margin: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.hs-trip b { font-size: var(--fs-md); font-weight: 800; }
.hs-trip span { font-weight: 800; font-size: var(--fs-md); }
.hs-trip em { font-style: normal; justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.hs-trip small { grid-column: 1 / -1; color: var(--fg-3); font-size: 11px; }
.hs-trip[data-b="good"] span { color: var(--ok, #2fbf71); } .hs-trip[data-b="mid"] span { color: var(--fair); } .hs-trip[data-b="low"] span { color: var(--bad, #e25b4b); }
.ms { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; align-items: end; height: 56px; }
.ms button { all: unset; cursor: pointer; display: grid; grid-template-rows: 1fr auto; height: 100%; gap: 3px; text-align: center; border-radius: 6px; }
.ms button i { align-self: end; height: var(--h); min-height: 3px; border-radius: 3px 3px 1px 1px; background: var(--fg-3); opacity: .55; transition: opacity .2s; }
.ms button[data-b="good"] i { background: var(--ok, #2fbf71); opacity: .85; } .ms button[data-b="mid"] i { background: var(--fair); opacity: .85; } .ms button[data-b="low"] i { background: var(--bad, #e25b4b); opacity: .7; }
.ms button small { font-size: 10px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.ms button.now small { color: var(--fg); font-weight: 800; }
.ms button.trip { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ms button.sel i { outline: 2px solid var(--fg); outline-offset: 1px; opacity: 1; }
.ms-say { margin: 0; font-size: 12px; color: var(--fg-2); }
.ms-say span, .ms-say small { color: var(--fg-3); }

/* 여행 날짜 줄(카드·상세 공통): 판정 위 한 줄, 날짜는 늘 보인다 */
.trip-slot { margin: 10px 0 6px; }
.dl > .trip-slot { margin: 0; order: 0; }
.trip-line { margin: 0; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 2px 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface-2); }
.trip-line b { font-size: var(--fs-md); font-weight: 800; font-variant-numeric: tabular-nums; }
.trip-line span { font-weight: 800; font-size: var(--fs-md); }
.trip-line em { font-style: normal; justify-self: end; font-weight: 700; font-variant-numeric: tabular-nums; }
.trip-line small { grid-column: 1 / -1; color: var(--fg-3); font-size: 11px; }
.trip-line[data-b="good"] span { color: var(--ok); } .trip-line[data-b="mid"] span { color: var(--fair); } .trip-line[data-b="low"] span { color: var(--bad); }
.trip-line[data-b="near"], .trip-line[data-b="na"] { border-style: dashed; }
.trip-line[data-b="near"] span { color: var(--accent); } .trip-line[data-b="na"] span { color: var(--fg-2); }
.days-cap { margin: 8px 0 4px; font-size: 11px; color: var(--fg-3); font-weight: 700; letter-spacing: .02em; }
.hs-days span.trip { outline: 2px solid var(--accent); outline-offset: 1px; }
