/* ══════════════════════════════════════════════════
   마션(火星探險) — Premium Redesign
   "화성 탐사의 절제된 세련미 + 따뜻한 로컬 감성"
   ══════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Accent */
  --acc: #c8492e;
  --acc-d: #a63a22;
  --acc-l: #f6ede8;
  --acc-glow: rgba(200, 73, 46, .12);

  /* Ink & Muted */
  --ink: #1a1e24;
  --sub: #3d4753;
  --mut: #6b7480;
  --line: #e4e2dd;
  --line-s: #d4d2cc;

  /* Surfaces */
  --bg: #faf8f5;
  --bg-sub: #f4f1ec;
  --card: #ffffff;
  --card-hover: #fffefe;

  /* Semantic */
  --gold: #b8860b;
  --ok: #2e7d32;
  --cold: #c8492e;
  --mid: #c9962f;
  --hot: #8a94a0;
  --navy: #1f3550;

  /* Shape */
  --radius: 16px;
  --radius-s: 10px;
  --radius-pill: 100px;
  --shadow-s: 0 1px 3px rgba(30, 20, 10, .04), 0 1px 2px rgba(30, 20, 10, .06);
  --shadow: 0 2px 8px rgba(30, 20, 10, .05), 0 4px 16px rgba(30, 20, 10, .04);
  --shadow-l: 0 4px 12px rgba(30, 20, 10, .06), 0 8px 32px rgba(30, 20, 10, .06);
  --shadow-hover: 0 8px 24px rgba(30, 20, 10, .10), 0 2px 8px rgba(30, 20, 10, .06);

  /* Type */
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --dur: .2s;
  --dur-l: .35s;
}

/* ─── Dark Mode Tokens ─── */
[data-theme="dark"] {
  --ink: #e8e6e1;
  --sub: #b0aaa0;
  --mut: #8a8478;
  --line: #2a2f38;
  --line-s: #353b46;
  --bg: #12161c;
  --bg-sub: #181d25;
  --card: #1a1f28;
  --card-hover: #1e2430;
  --acc-l: rgba(200, 73, 46, .15);
  --acc-glow: rgba(200, 73, 46, .18);
  --shadow-s: 0 1px 3px rgba(0, 0, 0, .2);
  --shadow: 0 2px 8px rgba(0, 0, 0, .2), 0 4px 16px rgba(0, 0, 0, .15);
  --shadow-l: 0 4px 12px rgba(0, 0, 0, .25), 0 8px 32px rgba(0, 0, 0, .2);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, .35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8e6e1;
    --sub: #b0aaa0;
    --mut: #8a8478;
    --line: #2a2f38;
    --line-s: #353b46;
    --bg: #12161c;
    --bg-sub: #181d25;
    --card: #1a1f28;
    --card-hover: #1e2430;
    --acc-l: rgba(200, 73, 46, .15);
    --acc-glow: rgba(200, 73, 46, .18);
    --shadow-s: 0 1px 3px rgba(0, 0, 0, .2);
    --shadow: 0 2px 8px rgba(0, 0, 0, .2), 0 4px 16px rgba(0, 0, 0, .15);
    --shadow-l: 0 4px 12px rgba(0, 0, 0, .25), 0 8px 32px rgba(0, 0, 0, .2);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, .35);
  }
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background var(--dur-l) var(--ease), color var(--dur-l) var(--ease);
}
.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px }
.narrow { max-width: 580px }
.hidden { display: none !important }
a { color: inherit; text-decoration: none }
b { color: var(--ink) }

/* ─── Animations ─── */
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes pop { from { transform: scale(.94); opacity: 0 } to { transform: scale(1); opacity: 1 } }
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px) }
  to   { opacity: 1; transform: translateY(0) }
}
@keyframes livepulse { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: .6 }
  50%      { transform: translateY(6px); opacity: 1 }
}
@keyframes shimmer {
  0%   { background-position: -200% 0 }
  100% { background-position: 200% 0 }
}

/* ═══════════════════════════════════════
   TOPBAR
   ═══════════════════════════════════════ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .88);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  transition: background var(--dur-l) var(--ease), border-color var(--dur-l) var(--ease), box-shadow var(--dur-l) var(--ease);
}
[data-theme="dark"] .topbar,
:root:not([data-theme="light"]) .topbar {
  background: rgba(18, 22, 28, .88);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .topbar {
    background: rgba(18, 22, 28, .88);
  }
}

.topbar-in {
  display: flex; align-items: center; gap: 12px; height: 60px;
}
.brand {
  font-size: 22px; font-weight: 900; color: var(--acc);
  letter-spacing: -.03em; display: flex; align-items: baseline; gap: 6px;
}
.brand-han { font-size: 12px; font-weight: 700; color: var(--acc-d); opacity: .7 }
.brand-tag { font-size: 12px; color: var(--mut) }

.topnav { margin-left: auto; display: flex; gap: 6px }
.topnav a {
  font-size: 13px; font-weight: 700; color: var(--mut);
  padding: 6px 12px; border-radius: var(--radius-s);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.topnav a:hover { color: var(--acc); background: var(--acc-glow) }

/* Dark mode toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  cursor: pointer; font-size: 16px; line-height: 1;
  transition: border-color var(--dur), background var(--dur);
  margin-left: 4px; flex-shrink: 0;
  color: var(--sub);
}
.theme-toggle:hover { border-color: var(--acc); color: var(--acc) }
.theme-toggle .icon-sun  { display: none }
.theme-toggle .icon-moon { display: inline }
[data-theme="dark"] .theme-toggle .icon-sun  { display: inline }
[data-theme="dark"] .theme-toggle .icon-moon { display: none }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun  { display: inline }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none }
}

/* ═══════════════════════════════════════
   HERO — Immersive Mars scene (always dark)
   ═══════════════════════════════════════ */
.hero {
  position: relative;
  background: #0a0d12;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  padding: 104px 0 96px;
  min-height: 580px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-bg .planet { animation: floaty 15s var(--ease) infinite }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
.hero-bg .tw { animation: twinkle 3.6s var(--ease) infinite }
.hero-bg .tw:nth-of-type(3n) { animation-delay: 1.1s }
.hero-bg .tw:nth-of-type(3n+1) { animation-delay: 2.2s }
@keyframes twinkle { 0%, 100% { opacity: .95 } 50% { opacity: .12 } }
@media (prefers-reduced-motion: reduce) {
  .hero-bg .planet, .hero-bg .tw { animation: none }
}

.hero .wrap { position: relative; z-index: 1 }
.hero-in { max-width: 660px }

.hero-kicker {
  font-size: 12px; font-weight: 800; color: #ffb493;
  letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(34px, 6.4vw, 56px);
  font-weight: 900; line-height: 1.14;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(0, 0, 0, .5);
}
.hero-title .grad {
  background: linear-gradient(92deg, #ff9160, #c8492e 85%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: 16.5px; color: #c6cedb;
  line-height: 1.7; margin-bottom: 34px;
  max-width: 540px;
}
.hero-sub b { color: #ff9b6e; font-weight: 700 }

.hero-cta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.hero .btn-primary {
  box-shadow: 0 8px 28px rgba(200, 73, 46, .5);
}
.hero .btn-primary:hover {
  box-shadow: 0 12px 36px rgba(200, 73, 46, .6);
}
.hero-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: #9fb0c8;
}
.hero-live .live-dot { flex-shrink: 0 }

/* Scroll hint */
.scroll-hint {
  display: flex; justify-content: flex-start;
  margin-top: 40px; padding-left: 4px;
}
.scroll-hint span {
  display: block; width: 22px; height: 22px;
  border-right: 2px solid rgba(255, 255, 255, .55);
  border-bottom: 2px solid rgba(255, 255, 255, .55);
  transform: rotate(45deg);
  animation: scrollHint 2s var(--ease) infinite;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: var(--radius-s);
  font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; padding: 12px 24px;
  transition: all var(--dur) var(--ease);
  position: relative; overflow: hidden;
}
.btn-primary {
  background: var(--acc); color: #fff;
  box-shadow: 0 2px 8px rgba(200, 73, 46, .2);
}
.btn-primary:hover {
  background: var(--acc-d);
  box-shadow: 0 4px 16px rgba(200, 73, 46, .3);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0) scale(.98) }
.btn-lg { font-size: 16px; padding: 16px 34px; border-radius: 12px }
.btn-ghost {
  background: transparent; color: var(--mut); font-weight: 600; padding: 10px 2px;
}
.btn-ghost:hover { color: var(--acc) }
.btn:disabled { opacity: .45; cursor: default; transform: none !important }

/* ═══════════════════════════════════════
   STEPS (01 / 02 / 03)
   ═══════════════════════════════════════ */
.steps3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; padding: 52px 24px 40px;
}
.s3 {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-s);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur-l) var(--ease);
}
.s3:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.s3-n {
  display: inline-block;
  font-size: 11px; font-weight: 900; color: var(--acc);
  background: var(--acc-l); border-radius: var(--radius-pill);
  padding: 3px 10px; margin-bottom: 12px;
  letter-spacing: .04em;
}
.s3 h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; color: var(--ink) }
.s3 p { font-size: 14px; color: var(--mut); line-height: 1.6 }

/* ═══════════════════════════════════════
   VIEW / PAGE TITLES
   ═══════════════════════════════════════ */
.view { padding-bottom: 56px }
.page-title {
  font-size: 28px; font-weight: 900;
  margin: 44px 0 8px;
  letter-spacing: -.02em;
}
.page-desc {
  color: var(--mut); margin-bottom: 28px;
  font-size: 15px; line-height: 1.65;
}

/* ═══════════════════════════════════════
   FORM
   ═══════════════════════════════════════ */
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.form-grid label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--sub);
}
.form-grid select,
.start-input #f-start {
  font-family: inherit; font-size: 15px; font-weight: 500;
  color: var(--ink);
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur-l);
  appearance: none;
  -webkit-appearance: none;
}
.form-grid select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7480' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-grid select:focus,
.start-input #f-start:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc-glow);
}

.span2 { grid-column: span 2 }
.lbl-hint { font-size: 11px; font-weight: 500; color: var(--mut) }
.start-input {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch;
}
.start-input #f-start {
  flex: 1; min-width: 180px; cursor: pointer;
}
.start-btn {
  font-size: 13px; font-weight: 700;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  white-space: nowrap;
  background: var(--card); color: var(--sub);
  transition: border-color var(--dur), color var(--dur), background var(--dur);
}
.start-btn:hover { border-color: var(--acc); color: var(--acc) }

/* ═══════════════════════════════════════
   LOADING
   ═══════════════════════════════════════ */
.loading-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 24px; padding: 100px 0;
}
.spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--acc-l);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
.loading-msg {
  color: var(--mut); font-weight: 600; font-size: 15px;
  animation: fadeSlideUp .4s var(--ease-out);
}

/* ═══════════════════════════════════════
   TRIP HEAD
   ═══════════════════════════════════════ */
.trip-head { margin: 40px 0 22px; animation: fadeSlideUp .4s var(--ease-out) }
.trip-title {
  font-size: 28px; font-weight: 900; line-height: 1.25;
  letter-spacing: -.02em;
}
.trip-summary { color: var(--sub); margin-top: 10px; font-size: 15px; line-height: 1.6 }
.demo-flag {
  display: inline-block; margin-top: 12px;
  font-size: 11px; font-weight: 700;
  color: var(--acc-d); background: var(--acc-l);
  border: 1px solid rgba(200, 73, 46, .2);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
}
[data-theme="dark"] .demo-flag { color: var(--acc) }

/* ═══════════════════════════════════════
   PROGRESS BAR
   ═══════════════════════════════════════ */
.progress-wrap {
  display: flex; align-items: center; gap: 14px; margin-bottom: 24px;
}
.progress-bar {
  flex: 1; height: 8px;
  background: var(--line); border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--acc), var(--acc-d));
  border-radius: var(--radius-pill);
  transition: width .5s var(--ease);
}
.progress-label {
  font-size: 12px; font-weight: 700; color: var(--mut); white-space: nowrap;
}

/* ═══════════════════════════════════════
   SPOT CARDS (Timeline)
   ═══════════════════════════════════════ */
.spot-list { position: relative }
.spot {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 22px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-s);
  border-left: 4px solid var(--acc);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur-l);
  animation: fadeSlideUp .35s var(--ease-out) both;
}
.spot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
/* stagger */
.spot:nth-child(1) { animation-delay: 0s }
.spot:nth-child(2) { animation-delay: .06s }
.spot:nth-child(3) { animation-delay: .12s }
.spot:nth-child(4) { animation-delay: .18s }

.spot-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.spot-order {
  font-size: 11px; font-weight: 900; color: var(--acc);
  letter-spacing: .04em;
}
.spot-name {
  font-size: 20px; font-weight: 800; margin: 3px 0 4px;
  letter-spacing: -.01em;
}
.spot-tagline { font-size: 14px; color: var(--mut) }
.spot-why {
  font-size: 13.5px; color: var(--sub);
  margin: 14px 0; padding: 12px 14px;
  background: var(--bg-sub);
  border-radius: var(--radius-s); line-height: 1.6;
}
.spot-why b { color: var(--acc-d) }
.spot-move {
  font-size: 12px; color: var(--mut); margin-bottom: 14px;
}
.spot-move::before { content: "이동 "; font-weight: 800; color: var(--sub) }

/* Tier badges */
.tier-badge {
  font-size: 11px; font-weight: 700;
  padding: 4px 12px; border-radius: var(--radius-pill);
  white-space: nowrap; flex-shrink: 0;
}
.tier-cold { background: rgba(200, 73, 46, .1); color: var(--cold) }
.tier-mid  { background: rgba(201, 150, 47, .12); color: #9a7420 }
.tier-hot  { background: rgba(138, 148, 160, .12); color: #5c6773 }
[data-theme="dark"] .tier-mid { color: var(--mid) }

/* ═══════════════════════════════════════
   MISSION BLOCK
   ═══════════════════════════════════════ */
.mission {
  border-top: 1px dashed var(--line); padding-top: 16px; margin-top: 6px;
}
.mission-label {
  font-size: 11px; font-weight: 900; color: var(--acc);
  letter-spacing: .04em;
}
.mission-text { font-size: 14.5px; font-weight: 600; margin: 6px 0 14px; line-height: 1.5 }
.mission-actions {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.file-btn {
  font-size: 13px; font-weight: 700; color: var(--acc);
  background: var(--acc-l); border: 1px solid rgba(200, 73, 46, .2);
  border-radius: var(--radius-s); padding: 10px 16px; cursor: pointer;
  transition: background var(--dur);
}
.file-btn:hover { background: rgba(200, 73, 46, .15) }
.verify-btn { font-size: 13px }
.verify-state { font-size: 13px; font-weight: 700 }
.verify-ok { color: var(--ok) }
.verify-no { color: var(--acc) }
.mini-spin {
  width: 16px; height: 16px;
  border: 2px solid var(--acc-l); border-top-color: var(--acc);
  border-radius: 50%; animation: spin .8s linear infinite;
  display: inline-block; vertical-align: middle;
}
.thumb {
  width: 56px; height: 56px; object-fit: cover;
  border-radius: var(--radius-s); border: 1px solid var(--line);
}

/* ═══════════════════════════════════════
   CHECKIN STEP
   ═══════════════════════════════════════ */
.step-checkin {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px;
}
.chk-btn { font-size: 13px }
.demo-mini {
  font-size: 12px; padding: 6px 10px;
  color: var(--acc); text-decoration: underline;
  background: none; border: none; cursor: pointer;
}

/* ═══════════════════════════════════════
   COUPON
   ═══════════════════════════════════════ */
.coupon {
  margin-top: 16px;
  border: 2px dashed var(--acc);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--card) 0%, rgba(253, 243, 238, .5) 100%);
  padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  animation: pop .35s var(--ease);
}
[data-theme="dark"] .coupon {
  background: linear-gradient(135deg, var(--card) 0%, rgba(200, 73, 46, .06) 100%);
}
.coupon-l .c-rate { font-size: 28px; font-weight: 900; color: var(--acc); line-height: 1 }
.coupon-l .c-sub  { font-size: 12px; color: var(--mut); margin-top: 4px }
.coupon-r { text-align: right; font-size: 11.5px; color: var(--mut); line-height: 1.6 }
.coupon-r b { color: var(--ink) }
.coupon-r .leave-btn {
  margin-top: 6px; font-size: 10.5px; color: var(--mut);
  background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 3px 8px; cursor: pointer;
  transition: border-color var(--dur), color var(--dur);
}
.coupon-r .leave-btn:hover { border-color: var(--acc); color: var(--acc) }
.coupon.expired {
  opacity: .5; border-style: solid; border-color: var(--line);
  background: var(--bg-sub); filter: grayscale(.6);
}
.coupon.expired .c-rate { text-decoration: line-through; color: var(--mut) }
.coupon-r .exp { color: var(--acc) }

/* ═══════════════════════════════════════
   TRIP DONE
   ═══════════════════════════════════════ */
.trip-done {
  background: var(--acc-l);
  border: 1px solid rgba(200, 73, 46, .2);
  border-radius: var(--radius);
  padding: 28px; text-align: center;
  margin: 10px 0 22px;
  animation: fadeSlideUp .4s var(--ease-out);
}
.trip-done h3 { font-size: 20px; color: var(--acc-d); margin-bottom: 10px; font-weight: 800 }
[data-theme="dark"] .trip-done h3 { color: var(--acc) }
.trip-done p { font-size: 14px; color: var(--sub); margin-bottom: 18px; line-height: 1.6 }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap }
.back-btn { display: block; margin: 0 auto }

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0; margin-top: 24px;
  transition: border-color var(--dur-l);
}
.foot p { font-size: 12px; color: var(--mut); text-align: center }

/* ═══════════════════════════════════════
   MAP
   ═══════════════════════════════════════ */
.trip-map {
  background: var(--bg-sub);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 18px;
  box-shadow: var(--shadow-s);
  transition: background var(--dur-l), border-color var(--dur-l);
}
.mapsvg { display: block }
.trip-map.realmap { height: 360px }

/* map legend */
.map-legend {
  display: flex; gap: 18px; margin: -6px 0 16px;
  font-size: 12px; color: var(--mut); flex-wrap: wrap;
  padding: 0 4px;
}
.map-legend span {
  display: inline-flex; align-items: center; gap: 7px;
}
.lg-line {
  display: inline-block; width: 22px; height: 0;
  border-top-width: 3px; border-top-style: solid;
}
.lg-move    { border-top-color: var(--navy); border-top-style: dotted }
.lg-explore { border-top-color: var(--acc) }

/* ═══════════════════════════════════════
   REWARD PANEL
   ═══════════════════════════════════════ */
.reward-panel { margin: -2px 0 18px; font-size: 13px }
.reward-panel:empty { display: none }
.rw-tag {
  display: inline-block; font-size: 11px; font-weight: 800;
  color: #fff; background: var(--acc);
  border-radius: 6px; padding: 3px 10px; margin-right: 8px;
}
.rw-medal { background: var(--gold) }
.rw-txt { color: var(--sub) }
.rw-txt b { color: var(--acc-d) }
[data-theme="dark"] .rw-txt b { color: var(--acc) }

.rw-coupon {
  display: flex; align-items: center; gap: 16px;
  border: 2px dashed var(--acc);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--card), rgba(253, 243, 238, .4));
  padding: 14px 18px;
  animation: pop .35s var(--ease);
}
[data-theme="dark"] .rw-coupon {
  background: linear-gradient(135deg, var(--card), rgba(200, 73, 46, .06));
}
.rw-l { text-align: center; line-height: 1 }
.rw-rate { font-size: 32px; font-weight: 900; color: var(--acc) }
.rw-unit { font-size: 11px; color: var(--mut); margin-top: 3px }
.rw-r { font-size: 12px; color: var(--sub); line-height: 1.6 }
.rw-r b { color: var(--ink) }
.rw-parking {
  margin-top: 10px; font-size: 12px; color: var(--ink);
  background: var(--bg-sub); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 8px 12px;
}
.rw-parking b { color: var(--acc-d) }
[data-theme="dark"] .rw-parking b { color: var(--acc) }

/* ═══════════════════════════════════════
   LIVE STAT
   ═══════════════════════════════════════ */
.spot-live {
  font-size: 11.5px; color: var(--mut);
  margin: 8px 0 2px;
  display: flex; align-items: center; gap: 6px;
}
.spot-live b { color: var(--acc-d); font-weight: 700 }
[data-theme="dark"] .spot-live b { color: var(--acc) }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .18);
  animation: livepulse 1.6s infinite;
}

/* ═══════════════════════════════════════
   RETURN CARD
   ═══════════════════════════════════════ */
.return-card {
  background: var(--acc-l);
  border: 1px solid rgba(200, 73, 46, .2);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius); padding: 18px 20px;
  margin-bottom: 18px;
  animation: fadeSlideUp .35s var(--ease-out);
}
.return-tag { font-size: 11px; font-weight: 900; color: var(--navy); letter-spacing: .04em }
.return-text { font-size: 14.5px; color: var(--sub); margin: 8px 0 6px; line-height: 1.6 }
.return-note { font-size: 12px; color: var(--acc-d); font-weight: 600 }
[data-theme="dark"] .return-note { color: var(--acc) }
.navi-link {
  font-size: 12px; font-weight: 700; color: var(--acc); text-decoration: underline;
  transition: color var(--dur);
}
.navi-link:hover { color: var(--acc-d) }

/* ═══════════════════════════════════════
   COURSE TYPE / HINT / MISSION TYPE / EVENT
   ═══════════════════════════════════════ */
.type-chip {
  display: inline-block; font-size: 11px; font-weight: 800;
  color: #fff; background: var(--navy);
  border-radius: var(--radius-pill); padding: 4px 14px; margin-bottom: 10px;
}
.spot-hint {
  font-size: 13.5px; color: var(--sub);
  margin: 14px 0; padding: 12px 14px;
  background: var(--bg-sub); border-radius: var(--radius-s);
  font-style: italic; line-height: 1.6;
}
.spot-hint b { color: var(--acc); font-style: normal; font-weight: 700 }
.mtype {
  font-size: 10px; font-weight: 800; color: var(--mut);
  background: var(--bg-sub); border-radius: 5px;
  padding: 2px 8px; margin-left: 6px; vertical-align: middle;
}
.mtype-social { color: var(--acc); background: var(--acc-l) }
.event-banner {
  margin-top: 14px;
  background: linear-gradient(135deg, var(--card), rgba(253, 241, 234, .5));
  border: 1px solid rgba(200, 73, 46, .2);
  border-radius: 12px;
  padding: 14px 16px; font-size: 13px;
  color: var(--sub); line-height: 1.6;
}
[data-theme="dark"] .event-banner {
  background: linear-gradient(135deg, var(--card), rgba(200, 73, 46, .06));
}
.event-banner b { color: var(--ink) }
.ev-tag {
  display: inline-block; font-size: 10.5px; font-weight: 800;
  color: #fff; background: var(--acc);
  border-radius: 5px; padding: 2px 9px; margin-right: 7px;
}
.ev-count {
  display: inline-block; margin-left: 8px;
  font-size: 11.5px; font-weight: 700; color: var(--acc-d);
}
[data-theme="dark"] .ev-count { color: var(--acc) }

/* ═══════════════════════════════════════
   REAL MAP PINS (Kakao / Leaflet)
   ═══════════════════════════════════════ */
.kk-pin {
  background: #fff; border: 1.5px solid var(--acc); color: var(--acc-d);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill);
  white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.kk-pin.done { background: var(--ok); border-color: var(--ok); color: #fff }
.kk-me {
  width: 14px; height: 14px; background: #1a73e8;
  border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, .4);
}
.lf-pin {
  background: var(--acc); color: #fff;
  font-size: 12px; font-weight: 800;
  width: 28px; height: 28px; line-height: 28px; text-align: center;
  border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.lf-pin.done { background: var(--ok) }
.lf-home {
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 800;
  width: 30px; height: 30px; line-height: 30px; text-align: center;
  border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .4);
}

/* ═══════════════════════════════════════
   SIMULATION
   ═══════════════════════════════════════ */
.sim-ctrl {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.seg {
  font-size: 13px; padding: 10px 18px; border-radius: var(--radius-s);
}
.sim-stat { font-size: 13px; color: var(--mut); margin-left: 8px }
.sim-stat b { color: var(--acc) }
.legend {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin-top: 14px; font-size: 12px; color: var(--mut);
}
.legend span { display: inline-flex; align-items: center; gap: 7px }
.legend .dot { width: 10px; height: 10px; border-radius: 50% }

/* ═══════════════════════════════════════
   RECORD
   ═══════════════════════════════════════ */
.record-stat { font-size: 14px; color: var(--sub); margin-bottom: 8px }
.record-stat b { color: var(--acc); font-weight: 800 }
.sub-title {
  font-size: 17px; font-weight: 800; color: var(--ink);
  margin: 26px 0 14px;
}
.badge-shelf { display: flex; flex-wrap: wrap; gap: 10px }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 8px 16px; font-size: 13px; font-weight: 700;
  color: var(--ink); box-shadow: var(--shadow-s);
  transition: transform var(--dur), box-shadow var(--dur);
}
.badge:hover { transform: translateY(-1px); box-shadow: var(--shadow) }
.badge-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--mid) }
.badge-cold .badge-dot { background: var(--acc) }
.badge-route .badge-dot { background: var(--ink) }

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile First
   ═══════════════════════════════════════ */
@media (max-width: 680px) {
  .wrap { padding: 0 18px }
  .hero { padding: 68px 0 56px; min-height: 460px }
  .hero-title { font-size: 32px }
  .hero-sub { font-size: 15.5px }
  .hero-sub br { display: none }
  .hero-cta { gap: 14px }
  .steps3 { grid-template-columns: 1fr; gap: 12px; padding: 28px 18px }
  .form-grid { grid-template-columns: 1fr }
  .span2 { grid-column: span 1 }
  .brand-tag { display: none }
  .topnav a { font-size: 12px; padding: 6px 8px }
  .page-title { font-size: 24px; margin-top: 32px }
  .trip-title { font-size: 24px }
  .spot-name { font-size: 18px }
  .sim-ctrl { gap: 6px }
  .seg { font-size: 12px; padding: 8px 12px }
  .scroll-hint { margin-top: 24px }
  .s3 { padding: 22px 20px }

  /* Touch targets: minimum 44px */
  .btn { min-height: 44px }
  .chk-btn, .verify-btn, .start-btn, .file-btn { min-height: 44px }
  .topnav a { min-height: 44px; display: inline-flex; align-items: center }
  .theme-toggle { width: 40px; height: 40px }
}

/* Tablet */
@media (min-width: 681px) and (max-width: 960px) {
  .steps3 { gap: 16px }
  .hero { padding: 60px 0 50px }
}

/* Desktop wide */
@media (min-width: 1200px) {
  .wrap { max-width: 1040px; padding: 0 40px }
  .hero { padding: 80px 0 68px }
  .steps3 { gap: 24px; padding: 60px 40px }
}

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.mut { color: var(--mut) }
