:root {
  /* 색 */
  --bg: #e8eaee;
  --surface: #ffffff;
  --ink: #101216;
  --ink-2: #3d434c;
  --muted: #6e747f;
  --rule: #dfe3e9;
  --rule-soft: #eef0f4;
  --accent: #1d4ed8;
  --accent-soft: #eef2ff;
  --mark: #1d4ed8;
  --grid: #e6e9ee;
  --ok: #15803d;
  --danger: #b91c1c;
  --day: #d97706;
  --night: #1d4ed8;

  /* 글꼴 */
  --sans: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif;
  --mono: ui-monospace, Consolas, "Courier New", monospace;

  /* 글자 크기는 이 여덟 단계만 쓴다. 중간값을 따로 적지 않는다. */
  --fs-cap: 11px;   /* 대문자 라벨과 가장 작은 보조 표기 */
  --fs-xs: 13px;    /* 숫자 메타와 각주 */
  --fs-sm: 14px;    /* 보조 설명문 */
  --fs-md: 16px;    /* 본문 */
  --fs-lg: 18px;    /* 카드 제목과 항목 이름 */
  --fs-xl: 22px;    /* 숫자 강조 */
  --fs-2xl: 32px;   /* 공항 코드 */
  --fs-hero: clamp(36px, 4.6vw, 54px);

  /* 여백은 4px 단위로만 올린다. */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-7: 32px;

  --pad: 24px;       /* 카드 안쪽 좌우 여백. 모든 카드가 같은 값을 쓴다. */
  --gap: 20px;       /* 네 칸 격자의 간격 */
  --gap-in: 12px;    /* 카드 안 목록 간격 */
  --card-head: 60px; /* 카드 제목 아래 점선까지의 높이 */
  --r: 10px;
  --r-sm: 6px;
  --wrap: 1180px;
  --notch: 15px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: var(--s-6) 0 56px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
code { font-family: var(--mono); font-size: var(--fs-xs); background: var(--rule-soft); padding: 1px 5px; border-radius: 3px; }

.label-cap { font-size: var(--fs-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* 탑승권 머리 */
.hero {
  position: relative;
  width: min(var(--wrap), calc(100% - 2 * var(--gap)));
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--r) var(--r) 0 0;
  padding: var(--s-6) var(--pad) var(--s-5);
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  align-items: center;
  gap: var(--s-6);
  overflow: hidden;
}
.hero-text .kicker {
  font-size: var(--fs-cap);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.hero-text h1 {
  font-size: var(--fs-hero);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: var(--s-2);
}
.hero-text .sub { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--s-2); max-width: 64ch; }

/* 구간 */
.route-line {
  position: relative;
  width: min(var(--wrap), calc(100% - 2 * var(--gap)));
  margin: 0 auto;
  background: var(--surface);
  padding: var(--s-5) var(--pad);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  border-top: 1px dashed var(--rule);
}
.route-line::before,
.route-line::after {
  content: "";
  position: absolute;
  top: calc(var(--notch) * -1);
  width: calc(var(--notch) * 2);
  height: calc(var(--notch) * 2);
  background: var(--bg);
  border-radius: 50%;
}
.route-line::before { left: calc(var(--notch) * -1); }
.route-line::after { right: calc(var(--notch) * -1); }
.rl-code { font-family: var(--mono); font-size: var(--fs-2xl); font-weight: 700; letter-spacing: 0.04em; line-height: 1.2; }
.rl-city { font-size: var(--fs-xs); color: var(--muted); }
.rl-path {
  flex: 1;
  position: relative;
  height: var(--s-5);
  min-width: 60px;
}
.rl-path::before {
  content: "";
  position: absolute;
  left: 8px; right: 8px; top: 50%;
  border-top: 1px dashed var(--rule);
}
.rl-plane {
  position: absolute;
  top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  fill: var(--accent);
  animation: rl-fly 9s cubic-bezier(.45, 0, .55, 1) infinite;
}
@keyframes rl-fly {
  0%   { left: 4px; opacity: 0; transform: translateY(2px); }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { left: calc(100% - 22px); opacity: 0; transform: translateY(-2px); }
}
.rl-dur { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }

/* 좌석 정보 칸 */
.tiles {
  position: relative;
  width: min(var(--wrap), calc(100% - 2 * var(--gap)));
  margin: 0 auto var(--s-6);
  background: var(--surface);
  border-radius: 0 0 var(--r) var(--r);
  padding: var(--s-5) var(--pad) var(--s-7);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  border-top: 1px solid var(--rule-soft);
}
.tiles::after {
  content: "";
  position: absolute;
  left: var(--pad); right: var(--pad); bottom: 10px;
  height: 12px;
  background-image: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px);
  opacity: 0.5;
}
.tile dt { font-size: var(--fs-cap); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.tile dd { margin: var(--s-1) 0 0; font-family: var(--mono); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.tile:first-child dd { color: var(--accent); }

/* 격자. 모든 카드는 두 칸 또는 네 칸을 차지한다. */
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  width: min(var(--wrap), calc(100% - 2 * var(--gap)));
  margin: 0 auto;
}
.span2 { grid-column: span 2; }
.span4 { grid-column: span 4; }

/* 각 칸은 한 장의 표 */
.card {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--r);
  padding: var(--s-5) var(--pad) var(--s-6);
}
.card::before,
.card::after {
  content: "";
  position: absolute;
  top: calc(var(--card-head) - var(--notch));
  width: calc(var(--notch) * 2);
  height: calc(var(--notch) * 2);
  background: var(--bg);
  border-radius: 50%;
}
.card::before { left: calc(var(--notch) * -1); }
.card::after { right: calc(var(--notch) * -1); }
.card h2 {
  font-size: var(--fs-lg);
  letter-spacing: -0.01em;
  min-height: var(--s-6);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-4);
  border-bottom: 1px dashed var(--rule);
}
.card-note { color: var(--muted); font-size: var(--fs-sm); margin-top: calc(var(--s-2) * -1); }
.card-foot {
  color: var(--muted);
  font-size: var(--fs-xs);
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--rule);
}
.badge {
  font-family: var(--mono);
  font-size: var(--fs-cap);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 2px 8px;
}

/* 연휴 길이 */
.opt-list { display: grid; gap: var(--gap-in); margin-top: var(--s-4); }
.opt {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
}
.opt.best { border: 1px solid var(--accent); background: var(--accent-soft); }
.opt-days { font-family: var(--mono); font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; }
.opt-days small {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-cap);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.opt-range { font-family: var(--mono); font-weight: 700; font-size: var(--fs-sm); }
.opt-memo { color: var(--ink-2); font-size: var(--fs-sm); }
.opt-leave { color: var(--muted); font-size: var(--fs-xs); }
.verdict { font-size: var(--fs-cap); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.verdict.ok { color: var(--accent); }
.verdict.mid { color: var(--ink-2); }
.verdict.no { color: var(--danger); }

/* 동선 */
.route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-in);
  margin-top: var(--s-4);
}
.route {
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--surface);
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
  padding: var(--s-4);
  cursor: pointer;
}
.route[aria-pressed="true"] { border: 1px solid var(--accent); background: var(--accent-soft); }
.route-name { font-weight: 700; font-size: var(--fs-md); display: flex; align-items: baseline; gap: var(--s-2); }
.route-days { font-family: var(--mono); font-size: var(--fs-cap); color: var(--muted); font-weight: 400; }
.route-sum { display: block; font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-1); }
.route-pc { margin: var(--s-2) 0 0; padding: 0; list-style: none; font-size: var(--fs-xs); }
.route-pc li { display: flex; gap: 5px; color: var(--ink-2); }
.route-pc .p { color: var(--ok); font-weight: 700; }
.route-pc .c { color: var(--danger); font-weight: 700; }

/* 일정표. 바깥 격자와 같은 네 칸으로 나눈다. */
.itin {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap-in);
}
.day {
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
}
.day.is-holiday { border: 1px solid var(--accent); background: var(--accent-soft); }
.day-head { display: flex; align-items: baseline; gap: var(--s-2); }
.day-n { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; color: var(--accent); }
.day-date { font-family: var(--mono); font-size: var(--fs-cap); color: var(--muted); }
.day-place { font-weight: 700; font-size: var(--fs-md); margin-top: var(--s-1); }
.day-body { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-1); }
.day-move { font-family: var(--mono); font-size: var(--fs-cap); color: var(--muted); margin-top: var(--s-2); }

/* 패키지 비교 */
.pkg-group { margin-bottom: var(--s-5); }
.pkg-group h3 {
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: baseline;
}
.pkg-group-memo { font-size: var(--fs-cap); letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--muted); }
.pkg-row { padding: var(--s-3) 0; border-bottom: 1px dashed var(--rule); }
.pkg-top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.pkg-name { font-weight: 500; font-size: var(--fs-md); }
.pkg-name a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.pkg-name a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.pkg-seller { display: block; font-size: var(--fs-cap); color: var(--muted); font-weight: 400; }
.pkg-price { font-family: var(--mono); font-size: var(--fs-lg); font-weight: 700; white-space: nowrap; }
.pkg-bar { height: 4px; background: var(--rule-soft); border-radius: 2px; margin-top: var(--s-2); }
.pkg-fill { height: 4px; background: var(--mark); border-radius: 2px; }
.pkg-meta { font-family: var(--mono); font-size: var(--fs-cap); color: var(--ink-2); margin-top: var(--s-1); }
.pkg-memo { font-size: var(--fs-xs); color: var(--muted); }

/* 차트 */
.chart { margin-top: var(--s-4); overflow-x: auto; }
.chart svg { width: 100%; height: auto; display: block; min-width: 440px; }
.chart .ax { fill: var(--muted); font-size: var(--fs-xs); font-family: var(--mono); }
.chart .lbl { fill: var(--ink); font-size: var(--fs-xs); font-weight: 700; font-family: var(--mono); }
.legend { margin-left: var(--s-2); display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; padding: 0; border-radius: 50%; }
.dot.is-day { background: var(--day); }
.dot.is-night { background: var(--night); }
.bar-solid { display: inline-block; width: 10px; height: 10px; background: var(--mark); border-radius: 2px; }
.bar-dash { display: inline-block; width: 10px; height: 10px; border: 1.5px dashed var(--mark); border-radius: 2px; }

/* 날씨 */
.wx-row { padding: var(--s-3) 0; border-bottom: 1px dashed var(--rule); }
.wx-row:last-child { border-bottom: 0; }
.wx-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); }
.wx-area { font-weight: 500; font-size: var(--fs-md); }
.wx-temp { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink-2); }
.wx-track { position: relative; height: 6px; background: var(--rule-soft); border-radius: 3px; margin: var(--s-2) 0 5px; }
.wx-span { position: absolute; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--night), var(--day)); }
.wx-memo { font-size: var(--fs-xs); color: var(--muted); }

/* 예산 */
.bud-row { padding: var(--s-3) 0; border-bottom: 1px dashed var(--rule); }
.bud-top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.bud-name { font-weight: 500; font-size: var(--fs-md); }
.bud-val { font-family: var(--mono); font-size: var(--fs-sm); white-space: nowrap; }
.bud-bar { height: 5px; background: var(--rule-soft); border-radius: 3px; margin-top: var(--s-2); }
.bud-fill { height: 5px; background: var(--mark); border-radius: 0 3px 3px 0; }
.bud-memo { font-size: var(--fs-xs); color: var(--muted); margin-top: var(--s-1); }
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--rule);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
}
.total span:last-child { font-family: var(--mono); color: var(--accent); font-size: var(--fs-xl); letter-spacing: 0; text-transform: none; }

.calc { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-4); }
.calc label {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-cap);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  gap: var(--s-1);
}
.calc input {
  font-family: var(--mono);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  padding: var(--s-2) var(--s-3);
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
  background: var(--surface);
  width: 100%;
  min-width: 0;
}
.calc input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-style: solid; }
.calc-arrow { color: var(--muted); padding-top: var(--s-5); }

/* 준비물 */
.pack { columns: 2; column-gap: var(--gap); }
.pack-group { break-inside: avoid; margin-bottom: var(--s-4); }
.pack-group h3 { font-size: var(--fs-cap); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 var(--s-2); color: var(--accent); }
.pack-item { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-1) 0; cursor: pointer; }
.pack-item input { margin: 6px 0 0; accent-color: var(--accent); flex: none; width: 15px; height: 15px; }
.pack-item.done .pack-t { color: var(--muted); text-decoration: line-through; }
.pack-t { font-size: var(--fs-sm); }
.who {
  font-family: var(--mono);
  font-size: var(--fs-cap);
  color: var(--muted);
  border: 1px dashed var(--rule);
  border-radius: 3px;
  padding: 0 5px;
  flex: none;
  margin-left: auto;
}
.who.공용 { color: var(--accent); border-color: #c7d2fe; }
.reset {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--muted);
  background: none;
  border: 1px dashed var(--rule);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3);
  cursor: pointer;
  margin-top: var(--s-1);
}
.reset:hover { color: var(--ink); border-color: var(--ink); }

/* 칩·표·팁 */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 0; padding: 0; }
.chips li { font-size: var(--fs-xs); border: 1px dashed var(--rule); border-radius: 4px; padding: var(--s-1) var(--s-3); }
.chips.links li { border: 1px solid var(--accent); }
.chips a { color: var(--accent); text-decoration: none; }
.chips a:hover { text-decoration: underline; }

.kv-row { padding: var(--s-3) 0; border-bottom: 1px dashed var(--rule); }
.kv-row:last-child { border-bottom: 0; }
.kv-top { display: flex; justify-content: space-between; gap: var(--s-3); align-items: baseline; }
.kv-k { font-size: var(--fs-cap); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); flex: none; }
.kv-v { font-weight: 500; font-size: var(--fs-md); text-align: right; }
.kv-v a { font-family: var(--mono); text-decoration: none; color: var(--accent); }
.kv-memo { font-size: var(--fs-xs); color: var(--muted); text-align: right; }
.kv-warn { font-size: var(--fs-xs); color: var(--danger); margin-top: var(--s-1); }

.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-in); }
.tip { border: 1px dashed var(--rule); border-radius: var(--r-sm); padding: var(--s-3) var(--s-4); }
.tip-t { font-weight: 700; font-size: var(--fs-sm); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.tip-b { font-size: var(--fs-sm); color: var(--ink-2); margin-top: var(--s-1); }

.foot {
  width: min(var(--wrap), calc(100% - 2 * var(--gap)));
  margin: var(--s-6) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-cap);
}

/* ─ 3D 비행기 ─ */
.hero-3d {
  position: relative;
  height: 260px;
  min-width: 0;
}
.hero-3d::before {
  content: "";
  position: absolute;
  inset: 8% 4% 12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, var(--accent-soft) 0%, rgba(238, 242, 255, 0) 68%);
}
.hero-3d model-viewer {
  width: 100%;
  height: 100%;
  background: transparent;
  --poster-color: transparent;
  --progress-bar-color: transparent;
  --progress-mask: transparent;
  cursor: grab;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-3d model-viewer.ready { opacity: 1; }
.hero-3d model-viewer:active { cursor: grabbing; }
.hero-3d.no-3d { display: none; }

/* ─ 떠 있는 요약 줄 ─ */
.minibar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
  transition: transform 0.28s cubic-bezier(.2, .8, .3, 1);
}
.minibar.show { transform: translateY(0); }
.minibar-in {
  width: min(var(--wrap), calc(100% - 2 * var(--gap)));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding: var(--s-3) 0;
}
.mb-title { font-weight: 700; font-size: var(--fs-md); letter-spacing: -0.01em; }
.mb-item { display: flex; align-items: baseline; gap: var(--s-2); min-width: 0; }
.mb-item i {
  font-style: normal;
  font-size: var(--fs-cap);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mb-item b {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mb-item:nth-child(2) b { color: var(--accent); }
.mb-top {
  margin-left: auto;
  font: inherit;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  background: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: var(--s-1) var(--s-3);
  cursor: pointer;
  flex: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.mb-top:hover { border-color: var(--accent); color: var(--accent); }

/* ─ 차트 툴팁 ─ */
.tip-pop {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  font-size: var(--fs-xs);
  line-height: 1.5;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transform: translate(-50%, -100%);
  box-shadow: 0 6px 18px rgba(16, 18, 22, 0.22);
  opacity: 0;
  transition: opacity 0.12s ease;
}
.tip-pop.show { opacity: 1; }
.tip-pop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px; height: 8px;
  margin-left: -4px;
  background: var(--ink);
  transform: rotate(45deg);
}
[data-tip] { cursor: pointer; outline: none; }
[data-tip].hot { filter: brightness(1.12); }
[data-tip]:focus-visible { stroke: var(--ink); stroke-width: 2; }

/* ─ 카드가 차례로 떠오르는 효과 ─ */
/* 자바스크립트와 무관하게 CSS 만으로 돈다. 끝나면 항상 보이는 상태로 남는다. */
.card { animation: card-in 0.5s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.grid .card:nth-child(1) { animation-delay: 0ms; }
.grid .card:nth-child(2) { animation-delay: 45ms; }
.grid .card:nth-child(3) { animation-delay: 90ms; }
.grid .card:nth-child(4) { animation-delay: 135ms; }
.grid .card:nth-child(5) { animation-delay: 180ms; }
.grid .card:nth-child(6) { animation-delay: 225ms; }
.grid .card:nth-child(7) { animation-delay: 270ms; }
.grid .card:nth-child(8) { animation-delay: 315ms; }
.grid .card:nth-child(9) { animation-delay: 360ms; }
.grid .card:nth-child(10) { animation-delay: 405ms; }
.grid .card:nth-child(11) { animation-delay: 450ms; }
.grid .card:nth-child(12) { animation-delay: 495ms; }
.grid .card:nth-child(13) { animation-delay: 540ms; }

.bud-fill, .pkg-fill, .wx-span {
  transform-origin: left center;
  animation: grow 0.7s cubic-bezier(.2, .8, .3, 1) 0.25s both;
}
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ─ 일정표가 차례로 나타나는 효과 ─ */
.itin .day { animation: day-in 0.4s ease both; animation-delay: calc(var(--i) * 40ms); }
@keyframes day-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─ 누르는 느낌 ─ */
.route { transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease; }
.route:hover { border-color: var(--accent); }
.route:active { transform: scale(0.994); }
.opt { transition: border-color 0.15s ease; }
.pkg-row, .bud-row, .tip, .kv-row { transition: background 0.15s ease; }
.pkg-row:hover, .bud-row:hover { background: var(--rule-soft); }
.pack-item { transition: color 0.15s ease; }
.pack-item:hover .pack-t { color: var(--accent); }

/* ─ 준비물 진행률 ─ */
.pack-meter {
  height: 4px;
  background: var(--rule-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: var(--s-3) 0 var(--s-4);
}
.pack-meter-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(.2, .8, .3, 1);
}

/* ─ 키보드 초점 ─ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─ 좁은 화면 ─ */
/* 칸 수를 줄일 때 카드 안 목록도 같은 수로 줄여서 격자를 맞춘다. */
@media (max-width: 1040px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .span4 { grid-column: span 2; }
  .itin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 280px) minmax(0, 1fr); }
  .hero-3d { height: 210px; }
}
@media (max-width: 720px) {
  :root { --pad: 18px; --gap: 14px; }
  .grid { grid-template-columns: 1fr; }
  .span2, .span4 { grid-column: span 1; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .itin, .route-list, .tips { grid-template-columns: 1fr; }
  .pack { columns: 1; }
  .hero { grid-template-columns: 1fr; gap: var(--s-2); }
  .hero-3d { height: 200px; }
  .minibar-in { gap: var(--s-4); }
  .mb-item:nth-child(4) { display: none; }
  .opt { grid-template-columns: 70px minmax(0, 1fr); }
  .verdict { grid-column: 2; }
  .route-line { flex-wrap: wrap; gap: var(--s-2); }
  .rl-path { flex: none; width: 100%; }
  .rl-dur { width: 100%; }
  .card::before, .card::after { display: none; }
}

/* ─ 움직임을 줄이는 설정 ─ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .rl-plane { left: calc(100% - 22px); opacity: 1; }
  .card { animation: none; }
}
