:root,
html[data-theme="dark"] {
  --bg: #070605;
  --bg2: #0f0d0a;
  --bg3: #171410;
  --bg-glass: rgba(15, 13, 10, 0.78);
  --border: #2a231c;
  --text: #f0e8dc;
  --muted: #8a7d6e;
  --red: #e34a33;
  --gold: #c9953a;
  --green: #4a9468;
  --blue: #3d6f9e;
  --lav: #7a62a8;
  --indigo: #2a3d5c;
  --ink: rgba(240, 232, 220, 0.04);
  --surface-glass: rgba(10, 9, 8, 0.85);
  --surface-nav: rgba(10, 9, 8, 0.92);
  --gate-kanji: rgba(255, 255, 255, 0.02);
  --map-fill: #1a1714;
  --map-stroke: #3a3028;
  --hero-overlay-top: rgba(7, 6, 5, 0.3);
  --hero-overlay-mid: rgba(7, 6, 5, 0.85);
  --hero-img-filter: grayscale(0.4) contrast(1.1) brightness(0.45);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
  --tooltip-bg: rgba(0, 0, 0, 0.85);
  --pattern-seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M0 20 Q10 0 20 20 T40 20' fill='none' stroke='%23c9953a' stroke-width='0.5' opacity='0.15'/%3E%3C/svg%3E");
  --pattern-asanoha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 0 L28 14 L14 28 L0 14 Z M14 0 L14 28 M0 14 L28 14' fill='none' stroke='%23c9953a' stroke-width='0.4' opacity='0.08'/%3E%3C/svg%3E");
}

html[data-theme="light"] {
  --bg: #f7f2ea;
  --bg2: #fffdf8;
  --bg3: #efe8dc;
  --bg-glass: rgba(255, 252, 247, 0.88);
  --border: #ddd2c4;
  --text: #2a2218;
  --muted: #6b5f52;
  --red: #c53d28;
  --gold: #a67628;
  --green: #3d8059;
  --blue: #2f5a82;
  --lav: #6650a8;
  --indigo: #324a68;
  --ink: rgba(42, 34, 24, 0.04);
  --surface-glass: rgba(255, 252, 247, 0.88);
  --surface-nav: rgba(255, 252, 247, 0.94);
  --gate-kanji: rgba(42, 34, 24, 0.04);
  --map-fill: #e8e0d4;
  --map-stroke: #c4b8a8;
  --hero-overlay-top: rgba(247, 242, 234, 0.15);
  --hero-overlay-mid: rgba(247, 242, 234, 0.82);
  --hero-img-filter: grayscale(0.15) contrast(1.05) brightness(0.82);
  --shadow-md: 0 8px 28px rgba(42, 34, 24, 0.1);
  --shadow-lg: 0 12px 36px rgba(42, 34, 24, 0.14);
  --tooltip-bg: rgba(42, 34, 24, 0.88);
  --pattern-seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M0 20 Q10 0 20 20 T40 20' fill='none' stroke='%23a67628' stroke-width='0.5' opacity='0.22'/%3E%3C/svg%3E");
  --pattern-asanoha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M14 0 L28 14 L14 28 L0 14 Z M14 0 L14 28 M0 14 L28 14' fill='none' stroke='%23a67628' stroke-width='0.4' opacity='0.12'/%3E%3C/svg%3E");
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(227, 74, 51, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(42, 61, 92, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(201, 149, 58, 0.07), transparent);
}

html[data-theme="light"] body::after {
  opacity: 0.02;
  mix-blend-mode: multiply;
}

:root,
html[data-theme="dark"],
html[data-theme="light"] {
  --radius: 16px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font-sans: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-serif: 'Zen Old Mincho', 'Hiragino Mincho ProN', serif;
}

html[data-theme="light"] .fx-cal-day.cal-tokyo { background: rgba(227, 74, 51, 0.16); }
html[data-theme="light"] .fx-cal-day.cal-hakone { background: rgba(122, 158, 106, 0.18); }
html[data-theme="light"] .fx-cal-day.cal-kyoto { background: rgba(199, 141, 78, 0.18); }
html[data-theme="light"] .fx-cal-day.cal-kinosaki { background: rgba(107, 143, 191, 0.18); }
html[data-theme="light"] .fx-cal-day.cal-hiroshima { background: rgba(155, 107, 158, 0.16); }
html[data-theme="light"] .fx-cal-day.cal-okinawa { background: rgba(72, 168, 181, 0.18); }
html[data-theme="light"] .fx-cal-day.cal-osaka { background: rgba(212, 168, 67, 0.2); }
html[data-theme="light"] .fx-cal-day.cal-departure { background: rgba(61, 111, 158, 0.22); }
html[data-theme="light"] .fx-cal-day.cal-sinout { background: rgba(74, 148, 104, 0.22); }
html[data-theme="light"] .fx-cal-day.cal-sin { background: rgba(107, 143, 113, 0.14); }
html[data-theme="light"] .fx-cal-day.cal-sinhome { background: rgba(61, 111, 158, 0.22); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 90% -10%, rgba(227, 74, 51, 0.14), transparent),
    radial-gradient(ellipse 60% 40% at 10% 100%, rgba(42, 61, 92, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 50% 50%, rgba(201, 149, 58, 0.05), transparent);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; }

/* ── PASSWORD GATE ── */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  padding-top: calc(24px + var(--safe-t));
  background: var(--bg);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.gate-kanji {
  position: absolute;
  font-family: var(--font-serif);
  font-size: clamp(8rem, 40vw, 18rem);
  font-weight: 900;
  color: var(--gate-kanji);
  line-height: 1;
  user-select: none;
  animation: floatKanji 12s ease-in-out infinite;
}

.gate-kanji:nth-child(1) { top: -5%; right: -5%; }
.gate-kanji:nth-child(2) { bottom: 10%; left: -8%; animation-delay: -4s; }
.gate-kanji:nth-child(3) { top: 40%; left: 30%; animation-delay: -8s; font-size: clamp(4rem, 20vw, 10rem); }

@keyframes floatKanji {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(1deg); }
}

.gate-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  animation: slideUp 0.6s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.gate-emoji { font-size: 2.8rem; margin-bottom: 12px; display: block; }
.gate-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 6px;
}
.gate-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 28px; }

.gate-input-wrap { position: relative; margin-bottom: 14px; }

.gate-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.gate-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 160, 74, 0.15);
}

.gate-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--red), #c04030);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  touch-action: manipulation;
}

.gate-btn:active { transform: scale(0.98); }
.gate-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.gate-error {
  color: var(--red);
  font-size: 0.78rem;
  margin-top: 12px;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.2s;
}
.gate-error.show { opacity: 1; }

/* ── LAYOUT ── */
.app { position: relative; z-index: 1; }
.app.locked { display: none; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── TOP BAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
  padding-top: calc(12px + var(--safe-t));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.topbar-brand {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-brand span { color: var(--red); }

.topbar-meta {
  font-size: 0.65rem;
  color: var(--muted);
  text-align: right;
}

.theme-toggle {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}
.theme-toggle:hover {
  border-color: var(--gold);
  background: var(--bg3);
}
.theme-toggle:active { transform: scale(0.94); }
.theme-toggle-icon { display: none; }
html[data-theme="dark"] .theme-toggle-icon--light { display: inline; }
html[data-theme="light"] .theme-toggle-icon--dark { display: inline; }

.theme-toggle-wrap {
  position: absolute;
  top: calc(16px + var(--safe-t));
  right: 16px;
  z-index: 2;
}

/* ── HERO ── */
.hero {
  padding: 48px 20px 40px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--pattern-seigaiha);
  opacity: 0.4;
  pointer-events: none;
}

.hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }

.hero-kanji {
  position: absolute;
  right: -20px;
  top: -30px;
  font-family: var(--font-serif);
  font-size: clamp(6rem, 28vw, 11rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  animation: inkReveal 2.5s ease forwards;
  background: linear-gradient(180deg, rgba(240,232,220,0.06) 0%, rgba(240,232,220,0.02) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes inkReveal {
  0% { opacity: 0; transform: scale(0.92) translateY(8px); filter: blur(4px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

.hero-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 10px;
}

.hero h1 em { color: var(--red); font-style: normal; }

.hero-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 300;
  line-height: 1.6;
  max-width: 480px;
}

/* ── CHIPS ── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }

.chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  white-space: nowrap;
}

.chip-r { border-color: #e05a4244; color: var(--red); }
.chip-g { border-color: #5faa7244; color: var(--green); }
.chip-y { border-color: #d4a04a44; color: var(--gold); }
.chip-b { border-color: #5a8fc444; color: var(--blue); }
.chip-p { border-color: #9a7ec444; color: var(--lav); }

/* ── ROUTE SCROLL ── */
.route-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}

.route-scroll::-webkit-scrollbar { display: none; }

.route-track {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  padding: 0 4px;
}

.rb-stop {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.2s;
}

.rb-stop:active { transform: scale(0.95); }

.rb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  transition: box-shadow 0.3s, transform 0.3s;
}

.rb-dot.active {
  box-shadow: 0 0 12px var(--red);
  transform: scale(1.3);
}

.rb-dot.fly { background: var(--gold); box-shadow: 0 0 8px rgba(212,160,74,0.5); }
.rb-dot.off { background: var(--green); }

.rb-name {
  font-size: 0.58rem;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.rb-days { font-size: 0.52rem; color: #555; }

.rb-line {
  flex: 1;
  min-width: 24px;
  height: 1px;
  background: var(--border);
  align-self: center;
  margin-bottom: 22px;
  position: relative;
}

.rb-line .ico {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
}

/* ── SECTIONS ── */
.section { padding: 28px 0; }
.section + .section { border-top: 1px solid var(--border); }

.section-h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.55;
}

.section-sub b { color: var(--text); }

/* ── CITY CARDS (Overview) ── */
.city-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.city-card {
  display: block;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  overflow: hidden;
}

.city-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(224,90,66,0.06));
  pointer-events: none;
}

.city-card:active { transform: scale(0.98); }

@media (hover: hover) {
  .city-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    text-decoration: none;
  }
}

.city-card-head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 10px;
}

.city-kanji {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.3s;
}

.city-card:hover .city-kanji { color: #3a3028; }

.city-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
}

.city-meta {
  font-size: 0.68rem;
  color: var(--muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 3px;
}

.city-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: var(--red);
  color: white;
  border-radius: 6px;
  padding: 3px 8px;
  text-transform: uppercase;
  margin-top: 8px;
}

.city-badge.green { background: var(--green); }
.city-badge.gold { background: var(--gold); color: #0a0908; }
.city-badge.blue { background: var(--blue); }
.city-badge.lav { background: var(--lav); }

.city-card-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.2rem;
  transition: transform 0.2s, color 0.2s;
}

.city-card:hover .city-card-arrow {
  transform: translateY(-50%) translateX(4px);
  color: var(--gold);
}

/* ── DAY CARDS ── */
.days { display: flex; flex-direction: column; gap: 10px; }

.day {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.25s;
  touch-action: manipulation;
}

.day.open { border-color: var(--red); }

.day-top {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: stretch;
}

.day-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  border-right: 1px solid var(--border);
  background: var(--bg3);
  gap: 2px;
}

.day-n {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--border);
  transition: color 0.2s;
  line-height: 1;
}

.day.open .day-n, .day:active .day-n { color: var(--red); }

.day-d { font-size: 0.55rem; color: var(--muted); text-align: center; }

.day-main { padding: 12px 14px; }
.day-title { font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.day-tags { display: flex; gap: 4px; flex-wrap: wrap; }

.t {
  font-size: 0.56rem;
  font-weight: 600;
  border-radius: 5px;
  padding: 2px 7px;
}

.t-nat { background: #5faa7222; color: var(--green); border: 1px solid #5faa7244; }
.t-tem { background: #e05a4222; color: var(--red); border: 1px solid #e05a4244; }
.t-eat { background: #d4a04a22; color: var(--gold); border: 1px solid #d4a04a44; }
.t-cul { background: #5a8fc422; color: var(--blue); border: 1px solid #5a8fc444; }
.t-onsen { background: #9a7ec422; color: var(--lav); border: 1px solid #9a7ec444; }
.t-off { background: #5faa7222; color: var(--green); border: 1px solid #5faa7244; }
.t-ani { background: #d4a04a22; color: var(--gold); border: 1px solid #d4a04a44; }
.t-rest { background: #2e2822; color: var(--muted); }
.t-tip { background: #e05a4233; color: #f0a090; border: 1px solid #e05a4266; }
.t-veg { background: #5faa7233; color: #8fd4a0; border: 1px solid #5faa7266; }

.day-chevron {
  display: none;
}

.day-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.day.open .day-body { grid-template-rows: 1fr; }

.day-body-inner {
  overflow: hidden;
  padding: 0 14px;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
}

.day.open .day-body-inner { padding: 0 14px 14px; border-top: 1px solid var(--border); padding-top: 12px; }

.day-body-inner p { margin-bottom: 8px; }

.hls { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }

.hl {
  font-size: 0.74rem;
  color: var(--text);
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.hl::before { content: "›"; color: var(--red); font-size: 0.9rem; line-height: 1.4; flex-shrink: 0; }
.hl.tip::before { color: var(--gold); content: "★"; }
.hl.off::before { color: var(--green); content: "⟶"; }
.hl.veg::before { color: var(--green); content: "🌱"; }

/* ── TIMELINE (Detail pages) ── */
.timeline { display: flex; flex-direction: column; gap: 0; }

.tl-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 14px;
  padding-bottom: 20px;
  position: relative;
}

.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 28px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.tl-time {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gold);
  text-align: right;
  padding-top: 4px;
  line-height: 1.3;
}

.tl-dot {
  position: absolute;
  left: 31px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
  transition: box-shadow 0.3s, transform 0.3s;
}

.tl-content h4 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tl-content p {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
}

.tl-fact {
  font-size: 0.72rem;
  color: var(--gold);
  line-height: 1.45;
  margin-top: 6px;
  padding: 8px 10px;
  background: #d4a04a0a;
  border-left: 2px solid #d4a04a55;
  border-radius: 0 6px 6px 0;
}

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.tl-ticket {
  font-size: 0.62rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.tl-ticket-free { background: #5faa7218; color: var(--green); border: 1px solid #5faa7244; }
.tl-ticket-suica { background: #5a8fc418; color: var(--blue); border: 1px solid #5a8fc444; }
.tl-ticket-jr { background: #9a7ec418; color: var(--lav); border: 1px solid #9a7ec444; }
.tl-ticket-paid { background: #d4a04a18; color: var(--gold); border: 1px solid #d4a04a44; }
.tl-ticket-reserve { background: #e05a4218; color: var(--red); border: 1px solid #e05a4244; }
.tl-ticket-pass { background: #5a8fc418; color: var(--blue); border: 1px solid #5a8fc444; }

.tl-links { display: flex; flex-wrap: wrap; gap: 6px; }

.tl-link {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
}

.tl-link:hover { border-color: var(--gold); text-decoration: none; }

.tl-content a { font-size: 0.74rem; }

/* ── SPOTLIGHT / ALERT ── */
.spotlight, .alert-box {
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid;
}

.spotlight.red, .alert-box.warn { border-color: #e05a4244; background: #e05a420a; }
.spotlight.gold { border-color: #d4a04a44; background: #d4a04a0a; }
.spotlight.green { border-color: #5faa7244; background: #5faa720a; }
.spotlight.lav { border-color: #9a7ec444; background: #9a7ec40a; }
.spotlight.blue { border-color: #5a8fc444; background: #5a8fc40a; }

.sp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sp-icon { font-size: 1.4rem; }
.sp-title { font-size: 0.9rem; font-weight: 700; }
.sp-subtitle { font-size: 0.66rem; color: var(--muted); }
.sp-body { font-size: 0.78rem; color: var(--muted); line-height: 1.6; }
.sp-body b { color: var(--text); }

/* ── TRANSFER ── */
.transfer {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  font-size: 0.78rem;
}

.tr-icon { font-size: 1.3rem; flex-shrink: 0; }
.tr-main b { color: var(--gold); }
.tr-main small { display: block; font-size: 0.66rem; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ── HOTEL ── */
.hotel-box {
  background: var(--bg3);
  border: 1px solid #d4a04a33;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}

.hotel-box-title {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.hotel-name {
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.hotel-stars { color: var(--gold); font-size: 0.68rem; }
.hotel-pick { font-size: 0.55rem; background: var(--gold); color: #0a0908; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.hotel-alt { font-size: 0.55rem; background: #2e2822; color: var(--muted); border-radius: 4px; padding: 1px 6px; font-weight: 600; }
.hotel-desc { font-size: 0.72rem; color: var(--muted); line-height: 1.5; margin-bottom: 6px; }
.hotel-divider { border: none; border-top: 1px solid var(--border); margin: 10px 0; }

/* ── TABLES ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  min-width: 480px;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg3);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

tr:last-child td { border-bottom: none; }
td { color: var(--muted); }
td b { color: var(--text); }

/* ── TIPS / GRIDS ── */
.tips, .vegan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }

.tip-c, .vg-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.vg-card { border-color: #5faa7233; }
.vg-city { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.vg-item { font-size: 0.72rem; margin-bottom: 6px; line-height: 1.4; }
.vg-item small { color: var(--muted); display: block; font-size: 0.64rem; }

.tip-i { font-size: 1.2rem; margin-bottom: 5px; }
.tip-t { font-size: 0.76rem; font-weight: 700; margin-bottom: 3px; }
.tip-b { font-size: 0.68rem; color: var(--muted); line-height: 1.45; }

.pack-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.pk {
  font-size: 0.74rem;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}

.pk::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pk small { color: var(--muted); }

/* ── BUDGET ── */
.budget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.budget h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.brow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  gap: 12px;
}

.brow:last-child { border: none; font-weight: 700; color: var(--gold); font-size: 0.88rem; }
.brow span:first-child { color: var(--muted); }

/* ── MAP ── */
.map-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.map-title {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}

.jm-island { fill: var(--map-fill); stroke: var(--map-stroke); stroke-width: 1.2; }
.jm-route { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; opacity: 0.9; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2s ease; }
.jm-route.drawn { stroke-dashoffset: 0; }
.jm-route-spur {
  stroke-width: 1.2;
  opacity: 0.55;
  stroke-dasharray: 5 4;
  stroke-dashoffset: 0;
}
.jm-route-flight {
  stroke-width: 1.2;
  opacity: 0.45;
  stroke-dasharray: 4 5;
  stroke-dashoffset: 0;
}
.jm-dot { fill: var(--red); stroke: var(--bg); stroke-width: 1.5; }
.jm-dot.off { fill: var(--green); }
.jm-dot.daytrip { fill: var(--gold); stroke: var(--bg); stroke-width: 1.5; }
.jm-inset-box { fill: var(--bg2); stroke: var(--border); stroke-width: 1; opacity: 0.85; }
.jm-inset-label { font-family: var(--font-sans); font-size: 8px; fill: var(--muted); }
.jm-label { font-family: var(--font-sans); font-size: 11px; font-weight: 600; fill: var(--text); }
.jm-sub { font-family: var(--font-sans); font-size: 8.5px; fill: var(--muted); }
.jm-iso { font-family: var(--font-sans); font-size: 9px; fill: var(--muted); opacity: 0.55; }
.map-legend { font-size: 0.62rem; color: var(--muted); padding-top: 8px; }

.jm-stop {
  cursor: pointer;
  text-decoration: none;
}

.jm-stop .jm-hit {
  fill: transparent;
  stroke: none;
  pointer-events: all;
}

.jm-stop:hover .jm-dot:not(.jm-hit),
.jm-stop:focus .jm-dot:not(.jm-hit) {
  fill: var(--gold);
  stroke: var(--bg);
  stroke-width: 2;
}
.jm-stop:hover .jm-dot.daytrip:not(.jm-hit),
.jm-stop:focus .jm-dot.daytrip:not(.jm-hit) {
  fill: #e8c468;
}

.jm-stop:hover .jm-label,
.jm-stop:focus .jm-label {
  fill: var(--gold);
}

.map-card--hero {
  margin-top: 0;
  margin-bottom: 16px;
}

/* ── ROUTE DIAGRAM (Startseite) ── */
.route-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 8px 4px 4px;
  max-width: 420px;
  margin: 0 auto;
}

.rd-flight {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 999px;
  background: var(--bg3);
  width: 100%;
  justify-content: center;
}

.rd-flight-icon { font-size: 0.85rem; }
.rd-flight-text { font-weight: 500; letter-spacing: 0.3px; }

.rd-spine {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  position: relative;
  padding: 4px 0;
}

.rd-spine::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
  opacity: 0.35;
  pointer-events: none;
}

.rd-link {
  display: flex;
  justify-content: center;
  padding: 2px 0;
  position: relative;
  z-index: 1;
}

.rd-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 50%;
  margin-left: 8px;
}

.rd-stop {
  display: grid;
  grid-template-columns: 12px 2.2rem 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin: 3px 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
}

.rd-stop:hover,
.rd-stop:focus-visible {
  border-color: var(--gold);
  transform: translateX(3px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  outline: none;
}

.rd-stop.active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px #d4a04a44;
}

.rd-stop.active .rd-name { color: var(--gold); }

.rd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--bg2), 0 0 8px rgba(224, 90, 66, 0.35);
  flex-shrink: 0;
}

.rd-stop--offbeat .rd-dot,
.rd-stop--okinawa .rd-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px var(--bg2), 0 0 8px rgba(95, 170, 114, 0.35);
}

.rd-stop--daytrip .rd-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px var(--bg2), 0 0 8px rgba(212, 160, 74, 0.35);
}

.rd-stop--hub {
  border-color: #d4a04a55;
  background: linear-gradient(135deg, var(--bg3) 0%, #d4a04a0a 100%);
}

.rd-stop--hub .rd-dot {
  width: 12px;
  height: 12px;
}

.rd-kanji {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  opacity: 0.9;
}

.rd-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.rd-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.rd-name small {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--gold);
  margin-left: 4px;
}

.rd-meta {
  font-size: 0.62rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd-arrow {
  font-size: 0.75rem;
  color: var(--muted);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.rd-stop:hover .rd-arrow,
.rd-stop:focus-visible .rd-arrow {
  opacity: 1;
  color: var(--gold);
  transform: translateX(2px);
}

.rd-hub-block {
  margin: 4px 0;
  padding: 10px;
  border: 1px dashed #d4a04a44;
  border-radius: var(--radius-sm);
  background: #d4a04a06;
}

.rd-branches {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.rd-branches-label {
  display: block;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 2px;
}

.rd-branch-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.rd-stop--daytrip {
  grid-template-columns: 8px 1fr;
  grid-template-rows: auto auto;
  gap: 2px 6px;
  padding: 8px;
  margin: 0;
}

.rd-stop--daytrip .rd-dot {
  grid-row: 1 / 3;
  align-self: center;
  width: 7px;
  height: 7px;
}

.rd-stop--daytrip .rd-name {
  font-size: 0.7rem;
  grid-column: 2;
}

.rd-stop--daytrip .rd-meta {
  font-size: 0.55rem;
  grid-column: 2;
  white-space: normal;
  line-height: 1.3;
}

.rd-stop--daytrip .rd-arrow,
.rd-stop--daytrip .rd-kanji { display: none; }

.rd-okinawa-panel {
  position: relative;
  margin: 6px 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, #5a8fc412 0%, #5faa7210 50%, #d4a04a08 100%);
  border: 1px solid #5a8fc433;
}

.rd-okinawa-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 80% 20%, #5a8fc418, transparent 55%);
  pointer-events: none;
}

.rd-okinawa-badge {
  display: block;
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  margin-bottom: 8px;
  opacity: 0.85;
}

.rd-okinawa-panel .rd-stop {
  margin: 0;
  background: var(--bg2);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  padding-top: 12px;
}

.map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--muted);
}

.map-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.map-legend-dot.overnight { background: var(--red); }
.map-legend-dot.daytrip { background: var(--gold); }
.map-legend-dot.offbeat { background: var(--green); }

.route-diagram.drawn .rd-link {
  animation: rd-link-in 0.4s ease backwards;
}

.route-diagram.drawn .rd-stop {
  animation: rd-stop-in 0.45s ease backwards;
}

.route-diagram.drawn .rd-link:nth-child(2) { animation-delay: 0.05s; }
.route-diagram.drawn .rd-stop:nth-child(1) { animation-delay: 0s; }
.route-diagram.drawn .rd-stop:nth-child(3) { animation-delay: 0.08s; }
.route-diagram.drawn .rd-stop:nth-child(5) { animation-delay: 0.16s; }
.route-diagram.drawn .rd-stop:nth-child(7) { animation-delay: 0.24s; }
.route-diagram.drawn .rd-hub-block { animation: rd-stop-in 0.45s ease 0.32s backwards; }
.route-diagram.drawn .rd-okinawa-panel { animation: rd-stop-in 0.45s ease 0.48s backwards; }

@keyframes rd-stop-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rd-link-in {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 380px) {
  .rd-branch-row { grid-template-columns: 1fr; }
  .rd-stop { grid-template-columns: 10px 1.8rem 1fr auto; gap: 8px; }
  .rd-kanji { font-size: 0.95rem; }
}

@media (min-width: 600px) {
  .route-diagram { max-width: 480px; }
  .rd-stop { padding: 12px 14px; }
}

/* ── CHECKLIST ── */
.checklist { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.check-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.74rem;
  cursor: pointer;
  transition: opacity 0.3s, border-color 0.3s;
  user-select: none;
}

.check-item:has(.check-box) .check-num { display: none; }

.check-item.checked {
  opacity: 0.55;
  border-color: var(--green);
}

.check-item.checked .check-body b { text-decoration: line-through; color: var(--muted); }

.check-item.checked .check-num { color: var(--green); }

.check-item .check-box {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 2px;
}

.check-item.checked .check-box {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.check-num {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--red);
  flex-shrink: 0;
  width: 20px;
}

.check-body b { display: block; margin-bottom: 2px; }
.check-body small { color: var(--muted); font-size: 0.66rem; }

.priority-high { border-left: 3px solid var(--red); }
.priority-med { border-left: 3px solid var(--gold); }

/* ── BOTTOM NAV (iPhone) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + var(--safe-b));
  display: flex;
  justify-content: flex-start;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bottom-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.5rem;
  font-weight: 600;
  transition: color 0.2s, background 0.2s;
  flex: 0 0 auto;
  min-width: 52px;
  touch-action: manipulation;
}

.nav-item .nav-ico { font-size: 1.15rem; line-height: 1; }

.nav-item.active, .nav-item:active {
  color: var(--gold);
  background: rgba(212, 160, 74, 0.1);
  text-decoration: none;
}

/* ── PAGE PADDING FOR NAV ── */
.has-nav { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 20px;
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--gold); text-decoration: none; }

/* ── STECKBRIEF ── */
.steckbrief {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
}

.steckbrief table { min-width: unset; }
.steckbrief th { width: 38%; }
.steckbrief td, .steckbrief th { font-size: 0.74rem; padding: 10px 14px; }

/* ── MUST-SEE LIST ── */
.must-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.must-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.78rem;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.must-item .ico { font-size: 1.1rem; flex-shrink: 0; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SAKURA PARTICLES ── */
.sakura-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.petal {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(ellipse, rgba(224,90,66,0.4), rgba(212,160,74,0.15));
  border-radius: 50% 0 50% 50%;
  animation: fall linear infinite;
  opacity: 0;
}

@keyframes fall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.3; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── RESPONSIVE ── */
@media (min-width: 600px) {
  .pack-grid { grid-template-columns: 1fr 1fr; gap: 9px 16px; }
  .tips, .vegan-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .bottom-nav { display: none; }
  .has-nav { padding-bottom: 40px; }

  .desktop-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  .desktop-nav a {
    font-size: 0.72rem;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
  }

  .desktop-nav a:hover, .desktop-nav a.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212,160,74,0.08);
    text-decoration: none;
  }
}

@media (max-width: 767px) {
  .desktop-nav { display: none; }
  .tips, .vegan-grid { grid-template-columns: 1fr; }
}

/* ── COMMENTS ── */
#comments-panel {
  min-height: 120px;
}

.comments-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  margin-top: 32px;
  margin-bottom: 8px;
  scroll-margin-bottom: calc(var(--nav-h) + var(--safe-b) + 24px);
  scroll-margin-top: 80px;
}

.comments-placeholder {
  min-height: 120px;
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.comments-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.comments-sub {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.5;
}

.comments-sub b { color: var(--text); }

.comments-pending-count {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  background: var(--red);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.comments-list.global-list { max-height: none; }

.comments-empty {
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
}

.comment-item {
  position: relative;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  padding-right: 56px;
}

.comment-item.pending {
  border-color: #d4a04a55;
  background: #d4a04a08;
}

.comment-item.done {
  opacity: 0.55;
}

.comment-item.done .comment-text {
  text-decoration: line-through;
  color: var(--muted);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.comment-date {
  font-size: 0.62rem;
  color: var(--muted);
}

.comment-page-tag {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.comment-badge {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.open-badge { background: #e05a4222; color: var(--red); }
.pending-badge { background: #d4a04a22; color: var(--gold); }
.done-badge { background: #5faa7222; color: var(--green); }

.comment-text {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}

.comment-del {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--bg2);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.comment-done {
  position: absolute;
  top: 10px;
  right: 42px;
  width: 28px;
  height: 28px;
  border: none;
  background: #5faa7222;
  color: var(--green);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.comment-done:active { background: #5faa7244; }
.comment-del:active { background: #e05a4233; color: var(--red); }

.comment-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.comments-llm {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.prompt-output {
  width: 100%;
  min-height: 200px;
  max-height: 400px;
  margin-top: 12px;
  padding: 14px;
  background: var(--bg3);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.68rem;
  line-height: 1.5;
  resize: vertical;
}

.comment-btn.llm {
  background: linear-gradient(135deg, #6a4fa8, #4a3580);
  color: white;
  border: none;
}

.comment-btn.llm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.comment-btn.llm:not(:disabled):active {
  transform: scale(0.98);
}

.comment-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.comment-input:focus {
  border-color: var(--gold);
}

.comments-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.comment-btn {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  touch-action: manipulation;
  transition: transform 0.15s, opacity 0.15s;
}

.comment-btn:active { transform: scale(0.98); }

.comment-btn.primary {
  background: linear-gradient(135deg, var(--gold), #b88830);
  color: #0a0908;
  flex: 1;
}

.comment-btn.secondary {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
}

.comments-export {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.comments-export-hint {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

.comments-export-hint b { color: var(--text); }
.comments-export-hint code {
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.65rem;
  color: var(--gold);
}
.comments-export-hint em { color: var(--gold); font-style: normal; }

.comments-export-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (min-width: 480px) {
  .comments-export-btns { flex-direction: row; }
  .comments-export-btns .comment-btn { flex: 1; }
}

.comments-export-status {
  font-size: 0.72rem;
  color: var(--green);
  margin-top: 10px;
  min-height: 1.2em;
  opacity: 0;
  transition: opacity 0.3s;
}

.comments-export-status.show { opacity: 1; }

.comments-fetch-warn {
  font-size: 0.68rem;
  color: var(--gold);
  background: #d4a04a12;
  border: 1px solid #d4a04a33;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.comments-db-error {
  font-size: 0.75rem;
  color: var(--text);
  background: #e05a4214;
  border: 1px solid #e05a4255;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
  line-height: 1.5;
}

.comments-db-error strong {
  display: block;
  color: var(--red);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.comments-db-error p { margin: 0 0 8px; color: var(--muted); font-size: 0.72rem; }
.comments-db-error p:last-child { margin-bottom: 0; }

.comments-db-error-hint {
  font-size: 0.68rem !important;
  opacity: 0.9;
}

.comments-db-error code {
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.62rem;
}

.db-status {
  font-weight: 700;
  margin-right: 6px;
}

.db-status-ok { color: var(--green); }

.comments-fetch-warn code {
  background: var(--bg3);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.62rem;
}

.comments-sync-hint {
  font-size: 0.68rem;
  color: var(--green);
  background: #5faa7212;
  border: 1px solid #5faa7233;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.comments-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--nav-h) + var(--safe-b) + 16px);
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #d4a04a55;
  background: var(--bg2);
  box-shadow: var(--shadow-md);
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, border-color 0.2s;
}

.comments-fab:hover {
  transform: scale(1.06);
  border-color: var(--gold);
}

@media (min-width: 768px) {
  .comments-fab {
    bottom: 24px;
    right: 24px;
  }
}

/* ── CITY FACTS ── */
.facts-section {
  margin: 20px 0 28px;
}

.facts-section:first-child {
  margin-top: 8px;
}

/* ── STOP COLLAGES ── */
.stop-collage-section {
  margin: 8px 0 32px;
}

.stop-collage-intro {
  color: var(--muted);
  font-size: 0.82rem;
  margin: -8px 0 16px;
}

.stop-collage {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg2);
  box-shadow: var(--shadow-lg);
}

.stop-collage-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  line-height: 0;
}

.stop-collage-btn img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.stop-collage-btn:hover img,
.stop-collage-btn:focus img {
  transform: scale(1.015);
}

.stop-collage-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.facts-section-intro,
.facts-intro {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: -8px 0 20px;
  max-width: 58ch;
}

.facts-region {
  font-size: 0.78rem;
  color: var(--gold);
  margin: -4px 0 12px;
  letter-spacing: 0.02em;
}

.facts-block {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.facts-block + .facts-block,
.facts-compact {
  margin-top: 20px;
}

.facts-city-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.facts-city-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.facts-city-link {
  font-size: 0.75rem;
  white-space: nowrap;
}

.facts-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 560px) {
  .facts-stats { grid-template-columns: repeat(2, 1fr); }
}

.facts-compact .facts-stats {
  grid-template-columns: 1fr;
  margin-bottom: 14px;
}

.fact-stat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.fact-stat-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.fact-stat-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3px;
}

.fact-stat-value {
  font-size: 0.8rem;
  line-height: 1.45;
}

.facts-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .facts-columns { grid-template-columns: 1fr 1fr; }
}

.facts-col-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.facts-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.facts-list li {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text);
  opacity: 0.9;
  padding-left: 14px;
  position: relative;
}

.facts-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.facts-fun li::before {
  content: '★';
  font-size: 0.55rem;
  top: 3px;
}

.facts-hacks li::before {
  content: '⚡';
  font-size: 0.65rem;
  top: 2px;
}

/* ── PHOTO SPOTS ── */
.photo-spots-section {
  margin: 48px 0 32px;
}

.photo-spots-intro {
  color: var(--muted);
  font-size: 0.88rem;
  margin: -8px 0 24px;
  line-height: 1.55;
  max-width: 52ch;
}

.photo-city-block { margin-bottom: 36px; }
.photo-city-block:last-child { margin-bottom: 0; }

.photo-city-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.photo-city-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.photo-city-link {
  font-size: 0.75rem;
  white-space: nowrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 560px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-city-compact .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

.photo-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.photo-card:hover {
  border-color: #d4a04a55;
  transform: translateY(-2px);
}

.photo-card-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: var(--bg2);
  cursor: zoom-in;
  line-height: 0;
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}

.photo-card-img-btn:hover img { opacity: 0.92; }

.photo-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.photo-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

.photo-card-loc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

.photo-card-tip {
  font-size: 0.78rem;
  color: var(--text);
  opacity: 0.88;
  line-height: 1.45;
  flex: 1;
}

.photo-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.photo-maps-link {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 10px;
  background: #d4a04a18;
  border: 1px solid #d4a04a44;
  border-radius: 8px;
  text-decoration: none;
}

.photo-maps-link:hover {
  background: #d4a04a28;
  text-decoration: none;
}

.photo-credit {
  font-size: 0.58rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.3;
}

.photo-lightbox {
  border: none;
  padding: 0;
  max-width: min(96vw, 1100px);
  width: 100%;
  background: transparent;
  overflow: visible;
}

.photo-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.photo-lightbox img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
}

.photo-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

/* ── UKIYO-E FOUNDATION ── */
.brush-title {
  position: relative;
  display: inline-block;
}

.brush-title::after {
  content: '';
  display: block;
  height: 6px;
  margin-top: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M0 6 Q30 0 60 5 T120 4 T200 6' fill='none' stroke='%23e34a33' stroke-width='2.5' stroke-linecap='round' opacity='0.7'/%3E%3C/svg%3E") no-repeat left center;
  background-size: 100% 100%;
  width: min(100%, 220px);
}

.section-h2.brush-title::after { width: min(100%, 160px); }

.hanko-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--red);
  border-radius: 4px;
  color: var(--red);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 900;
  flex-shrink: 0;
  transform: rotate(-3deg);
  opacity: 0.85;
}

.section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
}

.section-head .section-h2 { margin-bottom: 0; }

.vert-caption {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--font-serif);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  opacity: 0.55;
  position: absolute;
  right: -8px;
  top: 0;
  user-select: none;
  pointer-events: none;
}

@media (max-width: 767px) {
  .vert-caption { display: none; }
}

.ukiyo-divider {
  width: 100%;
  height: 48px;
  margin: 8px 0 24px;
  color: var(--gold);
  opacity: 0.35;
}

.ukiyo-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ukiyo-divider--mountains { height: 56px; opacity: 0.25; }

/* ── HERO CITY VARIANT ── */
.hero--city.hero--no-img .hero-backdrop--okinawa {
  background: linear-gradient(135deg, #0a2a3a 0%, #1a5a6e 40%, #2d8a9e 70%, #48a8b5 100%);
  min-height: 280px;
}
.hero--city.hero--no-img .hero-backdrop--okinawa::after {
  background: linear-gradient(to top, var(--bg) 0%, transparent 60%);
}
.hero--city {
  min-height: 280px;
  padding: 0;
  margin: 0 -20px 0;
  border-radius: 0;
}

.hero--city .hero-backdrop {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero--city .hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--hero-img-filter);
  transform: scale(1.05);
  transition: transform 8s ease;
}

.hero--city:hover .hero-backdrop-img { transform: scale(1.08); }

.hero--city .hero-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--hero-overlay-top) 0%, var(--hero-overlay-mid) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(42,61,92,0.25) 0%, transparent 50%, rgba(227,74,51,0.15) 100%);
  pointer-events: none;
}

.hero--city .hero-inner {
  position: relative;
  z-index: 2;
  padding: 32px 20px 28px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.hero--city .hero-kanji {
  right: 0;
  top: -20px;
  font-size: clamp(5rem, 24vw, 9rem);
  opacity: 0.12;
  color: var(--text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

/* ── COUNTDOWN ── */
.countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 16px;
  padding: 10px 16px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.countdown-label { color: var(--muted); }

/* ── ROUTE PROGRESS (topbar) ── */
.route-progress {
  display: flex;
  align-items: center;
  gap: 5px;
}

.rp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

.rp-dot.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 149, 58, 0.6);
  transform: scale(1.25);
}

.rp-dot.done { background: var(--green); opacity: 0.6; }

/* ── MAP ANIMATIONS ── */
.jm-stop .jm-dot:not(.jm-hit) {
  transition: fill 0.3s, transform 0.3s;
}

.jm-stop .jm-pulse {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  opacity: 0;
  animation: mapPulse 2s ease infinite;
  pointer-events: none;
}

.jm-stop:hover .jm-pulse,
.jm-stop:focus .jm-pulse { animation-play-state: running; opacity: 0.6; }

@keyframes mapPulse {
  0% { r: 5; opacity: 0.7; }
  100% { r: 18; opacity: 0; }
}

.map-tooltip {
  position: fixed;
  z-index: 300;
  padding: 10px 14px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
  max-width: 200px;
  box-shadow: var(--shadow-md);
}

.map-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.map-tooltip strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 4px;
}

.map-tooltip span { color: var(--muted); display: block; line-height: 1.4; }

/* ── INDEX DAY TIMELINE ── */
.day-overview { display: flex; flex-direction: column; gap: 8px; }

.day-overview .day { cursor: pointer; }

.day-overview .day-city {
  font-size: 0.62rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* ── CHECKLIST INTERACTIVE ── */
.checklist-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.checklist-bar {
  flex: 1;
  height: 6px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.checklist-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold));
  border-radius: 3px;
  transition: width 0.4s ease;
  width: 0%;
}

.checklist-progress-text {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

.checklist-progress-text b { color: var(--gold); }

/* ── BUDGET COUNT-UP ── */
.budget .brow span:last-child {
  font-variant-numeric: tabular-nums;
}

.budget.counted .brow span:last-child { color: var(--gold); }

/* ── TIMELINE SCROLL PROGRESS ── */
.timeline-progress-wrap {
  position: relative;
}

.timeline-progress-wrap::before {
  content: '';
  position: absolute;
  left: 35px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

.timeline-progress-line {
  position: absolute;
  left: 35px;
  top: 0;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--red), var(--gold));
  z-index: 1;
  transition: height 0.15s ease-out;
  border-radius: 1px;
}

.tl-item.active .tl-dot {
  box-shadow: 0 0 12px var(--red);
  transform: scale(1.2);
}

.tl-item.active .tl-content h4 { color: var(--gold); }

/* ── STAGGERED REVEAL ── */
.reveal-stagger.reveal > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-stagger.reveal.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.reveal.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.07s; }
.reveal-stagger.reveal.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.14s; }
.reveal-stagger.reveal.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.21s; }
.reveal-stagger.reveal.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.28s; }
.reveal-stagger.reveal.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.35s; }

/* ── MOMIJI LEAVES ── */
.momiji {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  animation: momijiFall linear infinite;
}

.momiji::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: currentColor;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 0 50% 0 50%;
}

.momiji--red { color: rgba(227, 74, 51, 0.55); }
.momiji--gold { color: rgba(201, 149, 58, 0.45); }

@keyframes momijiFall {
  0% { transform: translateY(-10vh) rotate(0deg) translateX(0); opacity: 0; }
  8% { opacity: 0.7; }
  50% { transform: translateY(50vh) rotate(180deg) translateX(20px); }
  92% { opacity: 0.35; }
  100% { transform: translateY(110vh) rotate(360deg) translateX(-10px); opacity: 0; }
}

/* ── CARD ENHANCEMENTS ── */
.city-card,
.facts-block,
.map-card {
  background-image: var(--pattern-asanoha);
  background-size: 28px 28px;
}

.city-card:hover .city-kanji {
  color: var(--red);
  text-shadow: 0 0 24px rgba(227, 74, 51, 0.2);
}

.city-card {
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

@media (hover: hover) {
  .city-card:hover { transform: translateY(-3px); }
}

.chip {
  transition: transform 0.2s, border-color 0.2s;
}

.chip:hover { transform: translateY(-2px); border-color: var(--gold); }

.route-scroll {
  position: sticky;
  top: calc(var(--safe-t) + 52px);
  z-index: 50;
}

.rb-stop.active .rb-dot {
  box-shadow: 0 0 14px var(--gold);
  transform: scale(1.4);
}

.rb-stop.active .rb-name { color: var(--gold); }

/* ── WEATHER & KOYO ── */
.wx-section { margin: 4px 0 24px; }

.wx-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background-image: var(--pattern-asanoha);
  background-size: 28px 28px;
}

.wx-title {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

.wx-forecast-label {
  font-size: 0.66rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.wx-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.wx-days::-webkit-scrollbar { display: none; }

.wx-day {
  flex: 1 0 76px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
}

.wx-day-date { font-size: 0.6rem; color: var(--muted); font-weight: 600; margin-bottom: 4px; white-space: nowrap; }
.wx-day-icon { font-size: 1.4rem; line-height: 1.2; margin-bottom: 4px; }
.wx-day-temp { font-size: 0.78rem; font-weight: 700; }
.wx-day-temp span { font-weight: 400; color: var(--muted); font-size: 0.66rem; }
.wx-day-rain { font-size: 0.6rem; color: var(--blue); margin-top: 3px; }

.wx-climate { display: flex; gap: 10px; flex-wrap: wrap; }

.wx-climate-item {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.74rem;
}

.wx-ci-icon { font-size: 1.2rem; }
.wx-climate-item b { display: block; font-size: 0.78rem; }
.wx-climate-item small { color: var(--muted); font-size: 0.62rem; }

.wx-koyo {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(227, 74, 51, 0.06);
  border: 1px solid rgba(227, 74, 51, 0.25);
  border-radius: var(--radius-sm);
}

.wx-koyo-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.wx-koyo-leaf { font-size: 1.1rem; }

.wx-koyo-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.5;
}

.wx-koyo-body b { color: var(--gold); }

/* ── FLIGHT PRICE TRACKER ── */
.pt-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.price-tracker {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  background-image: var(--pattern-asanoha);
  background-size: 28px 28px;
}

.pt-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

.pt-stat {
  flex: 1 1 140px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.pt-stat-label { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.pt-stat-value { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 900; }
.pt-stat-value.pt-best { color: var(--green); }

.pt-up { color: var(--red); font-size: 0.68rem; font-weight: 600; }
.pt-down { color: var(--green); font-size: 0.68rem; font-weight: 600; }
.pt-flat { color: var(--muted); font-size: 0.68rem; }

.pt-spark {
  width: 100%;
  height: 40px;
  color: var(--gold);
  opacity: 0.8;
  margin-bottom: 10px;
}

.pt-empty {
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.pt-entries { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }

.pt-entry {
  display: grid;
  grid-template-columns: 1fr auto 32px;
  align-items: center;
  gap: 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.74rem;
}

.pt-entry span:first-child { color: var(--muted); }
.pt-entry span:nth-child(2) { font-weight: 700; font-variant-numeric: tabular-nums; }

.pt-entry.best { border-color: rgba(74, 148, 104, 0.5); }
.pt-entry.best span:nth-child(2) { color: var(--green); }

.pt-del {
  width: 24px;
  height: 24px;
  border: none;
  background: var(--bg2);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  justify-self: end;
}

.pt-del:active { background: rgba(227, 74, 51, 0.2); color: var(--red); }

.pt-form { display: flex; gap: 8px; }

.pt-input {
  flex: 1;
  padding: 11px 14px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  -webkit-appearance: none;
}

.pt-input:focus { border-color: var(--gold); }

@media (max-width: 480px) {
  .pt-form { flex-direction: column; }
}

.check-body a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201, 149, 58, 0.4);
}

/* ── FLIGHT MONITOR ── */
.fx-note {
  font-size: 0.74rem;
  line-height: 1.55;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.fx-note b { color: var(--text); }
.fx-note.warn { border-color: rgba(201, 149, 58, 0.4); background: rgba(201, 149, 58, 0.06); }
.fx-note.ok { border-color: rgba(74, 148, 104, 0.4); background: rgba(74, 148, 104, 0.06); }

.fx-note code {
  background: var(--bg3);
  padding: 1px 5px;
  border-radius: 4px;
}

.fx-import-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg2);
}
.fx-import-file { cursor: pointer; align-self: flex-start; }
.fx-import-file input { display: none; }
.fx-import-paste summary {
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--muted);
  user-select: none;
}
.fx-import-text {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg3);
  color: var(--text);
  resize: vertical;
  min-height: 100px;
}
.fx-import-paste .comment-btn { margin-top: 8px; }
.fx-import-status {
  font-size: 0.74rem;
  color: var(--muted);
  min-height: 1.2em;
}
.fx-import-status.ok { color: #4a9468; }
.fx-import-status.err { color: #c9953a; }
.fx-import-hint { margin-top: 10px; font-size: 0.72rem; }
.fx-import-hint code { font-size: 0.66rem; color: var(--gold); }

.fx-airlines {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fx-airlines-empty { font-size: 0.72rem; color: var(--muted); }

.fx-airline-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.fx-airline-chip small { opacity: 0.6; font-size: 0.6rem; }

.fx-airline-chip.active {
  color: var(--gold);
  border-color: rgba(201, 149, 58, 0.5);
  background: rgba(201, 149, 58, 0.08);
}

.fx-toggle { display: flex; gap: 8px; margin-bottom: 14px; }

.fx-toggle-btn {
  flex: 1;
  max-width: 200px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.fx-toggle-btn.active {
  color: var(--gold);
  border-color: rgba(201, 149, 58, 0.5);
  background: rgba(201, 149, 58, 0.08);
}

/* ── TRIP CALENDAR ── */
.fx-trip-sin-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--text);
}
.fx-trip-sin-toggle input { margin-top: 3px; accent-color: var(--gold); }
.fx-trip-sin-toggle small { color: var(--muted); font-weight: 400; }

.fx-trip-stops {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.fx-stop {
  flex: 1 1 140px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg2);
  position: relative;
}
.fx-stop::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--stop-color, var(--gold));
}
.fx-stop-out { --stop-color: #c9953a; }
.fx-stop-tokyo { --stop-color: #e34a33; }
.fx-stop-hakone { --stop-color: #7a9e6a; }
.fx-stop-kyoto { --stop-color: #c78d4e; }
.fx-stop-kinosaki { --stop-color: #6b8fbf; }
.fx-stop-hiroshima { --stop-color: #9b6b9e; }
.fx-stop-osaka { --stop-color: #d4a843; }
.fx-stop-return { --stop-color: #3d6f9e; }
.fx-stop-sinout { --stop-color: #4a9468; }
.fx-stop-sin { --stop-color: #6b8f71; }
.fx-stop-sinhome { --stop-color: #3d6f9e; }

#fx-trip-warnings { margin-bottom: 12px; }
#fx-trip-warnings:empty { display: none; }

.fx-stop-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.fx-stop-route {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.fx-stop-date {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.fx-stop-sub {
  font-size: 0.66rem;
  color: var(--muted);
  margin-top: 4px;
}

.fx-stop-shift,
.fx-stop-nights {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.fx-shift-btn {
  width: 32px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg3);
  color: var(--text);
  font-size: 0.7rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.fx-shift-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.fx-stop-nights span {
  font-size: 0.74rem;
  font-weight: 600;
  min-width: 72px;
  text-align: center;
}

.fx-trip-cal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}
.fx-cal-month {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.fx-cal-month-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 10px;
  color: var(--gold);
}
.fx-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.fx-cal-dow {
  font-size: 0.58rem;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  padding: 2px 0 6px;
}
.fx-cal-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 0.68rem;
  border-radius: 6px;
  color: var(--muted);
  position: relative;
  line-height: 1.1;
  padding: 2px 1px;
}
.fx-cal-day-num { font-weight: inherit; }
.fx-cal-day.has-price .fx-cal-day-num { font-size: 0.62rem; }
.fx-cal-price {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.fx-cal-price.ok { color: var(--accent); }
.fx-cal-price.loading { opacity: 0.55; font-weight: 500; }

.fx-stop-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2px 0 4px;
  letter-spacing: -0.01em;
}
.fx-stop-price.loading { opacity: 0.55; font-weight: 500; color: var(--muted); }
.fx-stop-price:not(.ok):not(.loading) { color: var(--muted); font-weight: 500; }
.fx-cal-day.empty { visibility: hidden; }
.fx-cal-day.cal-tokyo { background: rgba(227, 74, 51, 0.22); color: var(--text); font-weight: 600; }
.fx-cal-day.cal-hakone { background: rgba(122, 158, 106, 0.22); color: var(--text); }
.fx-cal-day.cal-kyoto { background: rgba(199, 141, 78, 0.22); color: var(--text); }
.fx-cal-day.cal-kinosaki { background: rgba(107, 143, 191, 0.22); color: var(--text); }
.fx-cal-day.cal-hiroshima { background: rgba(155, 107, 158, 0.22); color: var(--text); }
.fx-cal-day.cal-okinawa { background: rgba(72, 168, 181, 0.25); color: var(--text); font-weight: 600; }
.fx-cal-day.cal-osaka { background: rgba(212, 168, 67, 0.25); color: var(--text); font-weight: 600; }
.fx-cal-day.cal-departure { background: rgba(61, 111, 158, 0.35); color: var(--text); font-weight: 700; }
.fx-cal-day.cal-sinout { background: rgba(74, 148, 104, 0.35); color: var(--text); font-weight: 700; }
.fx-cal-day.cal-sin { background: rgba(107, 143, 113, 0.2); color: var(--text); }
.fx-cal-day.cal-sinhome { background: rgba(61, 111, 158, 0.35); color: var(--text); font-weight: 700; }

.fx-cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 0.62rem;
  color: var(--muted);
  grid-column: 1 / -1;
}
.fx-cal-legend span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: middle;
}
.fx-cal-legend .lg-tokyo::before { background: rgba(227, 74, 51, 0.5); }
.fx-cal-legend .lg-hakone::before { background: rgba(122, 158, 106, 0.5); }
.fx-cal-legend .lg-kyoto::before { background: rgba(199, 141, 78, 0.5); }
.fx-cal-legend .lg-kinosaki::before { background: rgba(107, 143, 191, 0.5); }
.fx-cal-legend .lg-hiroshima::before { background: rgba(155, 107, 158, 0.5); }
.fx-cal-legend .lg-osaka::before { background: rgba(212, 168, 67, 0.55); }
.fx-cal-legend .lg-departure::before { background: rgba(61, 111, 158, 0.6); }
.fx-cal-legend .lg-sinout::before { background: rgba(74, 148, 104, 0.5); }
.fx-cal-legend .lg-sin::before { background: rgba(107, 143, 113, 0.4); }
.fx-cal-legend .lg-sinhome::before { background: rgba(61, 111, 158, 0.6); }

.fx-cal-day.has-price {
  flex-direction: column;
  gap: 1px;
  font-size: 0.62rem;
  line-height: 1.1;
  padding: 2px 0;
}
.fx-cal-day-num { font-size: 0.68rem; font-weight: 700; }
.fx-cal-price {
  display: block;
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.fx-cal-price.loading { color: var(--muted); font-weight: 400; }
.fx-cal-price.missing { color: var(--muted); font-weight: 400; }

.fx-stop-price {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.fx-stop-price.loading { color: var(--muted); font-weight: 400; }

.fx-trip-summary {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 560px) {
  .fx-trip-stops { flex-direction: column; }
  .fx-stop { flex: 1 1 auto; }
}

.fx-matrix {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background-image: var(--pattern-asanoha);
  background-size: 28px 28px;
}

.fx-route-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  font-weight: 600;
  padding: 12px 16px 10px;
  border-bottom: 1px solid var(--border);
}

.fx-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}

.fx-row:last-child { border-bottom: none; }

.fx-row.base {
  background: rgba(227, 74, 51, 0.07);
  border-left: 3px solid var(--red);
}

.fx-date { display: flex; flex-direction: column; gap: 2px; }
.fx-date-label { font-weight: 600; white-space: nowrap; }

.fx-offset {
  font-size: 0.6rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.fx-offset.plan {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fx-cell { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }

.fx-price {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.fx-delta { font-size: 0.66rem; font-weight: 700; }
.fx-delta.down { color: var(--green); }
.fx-delta.up { color: var(--red); }
.fx-delta.flat { color: var(--muted); }

.fx-airline { font-size: 0.64rem; color: var(--muted); }

.fx-loading {
  font-size: 0.7rem;
  color: var(--muted);
  animation: fxPulse 1.2s ease infinite;
}

@keyframes fxPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.fx-error { font-size: 0.68rem; color: var(--muted); font-style: italic; }

.fx-actions { display: flex; gap: 6px; }
.fx-links { display: flex; gap: 6px; flex-wrap: wrap; }

.fx-row.multi { align-items: flex-start; }
.fx-row.multi .fx-cell { flex-direction: column; align-items: flex-start; gap: 6px; }

.fx-price-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.fx-price-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}

html[data-theme="light"] .fx-price-item {
  border-bottom-color: rgba(42, 34, 24, 0.08);
}
.fx-price-item:last-child { border-bottom: none; }
.fx-price-item.best .fx-price { color: var(--gold); }
.fx-price.booked,
.fx-price-item.booked .fx-price {
  color: var(--green);
  font-weight: 600;
}

.fx-export-summary { display: flex; flex-direction: column; gap: 18px; }
.fx-export-route-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.fx-export-route-title small { color: var(--muted); font-weight: 500; }
.fx-export-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}
.fx-export-table th,
.fx-export-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.fx-export-table th {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.62rem;
}
.fx-sum-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

@media (max-width: 560px) {
  .fx-row { grid-template-columns: 82px 1fr; }
  .fx-actions { display: none; }
  .fx-cell .fx-airline { flex-basis: 100%; }
}

/* ── PRICE HISTORY CHART ── */
.fx-hist-head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fx-hist-meta { font-size: 0.68rem; color: var(--muted); }

.fx-hist-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.fx-hist-stat {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--leg-color, var(--gold));
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.fx-hist-stat-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}

.fx-hist-stat-price {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.fx-hist-stat-sub { font-size: 0.66rem; color: var(--muted); margin-top: 4px; }
.fx-hist-best { color: var(--green); }

.fx-hist-chart {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px 8px;
}

.fx-hist-chart svg { width: 100%; height: auto; display: block; }

.fx-chart-grid {
  stroke: var(--border);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.fx-chart-ylabel {
  fill: var(--muted);
  font-size: 11px;
  text-anchor: end;
  font-family: var(--font-sans);
}

.fx-chart-xlabel {
  fill: var(--muted);
  font-size: 11px;
  text-anchor: middle;
  font-family: var(--font-sans);
}

.fx-chart-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 6px 4px;
}

.fx-chart-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: var(--muted);
}

.fx-chart-key i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
}

.fx-hist-empty {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 24px 12px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-kanji { animation: none; opacity: 1; }
  .jm-route { stroke-dashoffset: 0; }
}

/* ── Essen & Trinken ── */
.eat-drink-section {
  margin: 48px 0 32px;
}

.eat-drink-intro {
  color: var(--muted);
  font-size: 0.88rem;
  margin: -8px 0 24px;
  line-height: 1.55;
  max-width: 58ch;
}

.eat-drink-city-block {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.eat-drink-city-block:last-child { border-bottom: none; margin-bottom: 0; }

.eat-drink-city-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.eat-drink-city-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.eat-drink-city-link {
  font-size: 0.75rem;
  white-space: nowrap;
}

.eat-drink-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .eat-drink-grid { grid-template-columns: 1fr 1fr; }
  .eat-drink-city-compact .eat-drink-grid { gap: 16px; }
}

.eat-drink-col {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 12px;
}

.eat-drink-col-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.eat-drink-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eat-drink-item {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.eat-drink-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.eat-drink-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 10px;
  margin-bottom: 4px;
}

.eat-drink-name {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.eat-drink-links {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.eat-drink-link {
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.eat-drink-link:hover { text-decoration: underline; }

.eat-drink-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.eat-drink-hint {
  margin-top: 18px;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
  padding: 12px 14px;
  background: rgba(95, 170, 114, 0.08);
  border: 1px solid rgba(95, 170, 114, 0.2);
  border-radius: 10px;
}

html[data-theme="light"] .eat-drink-item {
  border-bottom-color: rgba(0,0,0,0.06);
}

/* ── Claude Chat Editor ── */
.chat-page .app { min-height: 100dvh; display: flex; flex-direction: column; }
.chat-page .chat-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 0;
  min-height: calc(100dvh - 56px - 64px);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.chat-sidebar {
  padding: 20px 18px;
  border-right: 1px solid var(--border);
  background: rgba(0,0,0,0.15);
  overflow-y: auto;
}

.chat-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.chat-sidebar-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  padding: 10px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 14px;
}

.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.chat-status-dot--ok { background: #4ade80; box-shadow: 0 0 8px rgba(74,222,128,0.5); }
.chat-status-dot--warn { background: #fbbf24; }
.chat-status-dot--error { background: #f87171; }

.chat-quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.chat-quick-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.chat-quick-btn:hover { border-color: var(--accent); background: rgba(255,255,255,0.03); }

.chat-hints {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.55;
}
.chat-hints ul { padding-left: 16px; margin-top: 6px; }
.chat-hints li { margin-bottom: 4px; }

.chat-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(0,0,0,0.08);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 40px 20px;
}

.chat-msg {
  max-width: 88%;
  animation: chatFadeIn 0.3s ease;
}
.chat-msg--user { align-self: flex-end; }
.chat-msg--assistant { align-self: flex-start; }

.chat-msg-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.chat-msg--user .chat-msg-label { text-align: right; }

.chat-msg-body {
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  line-height: 1.55;
  word-break: break-word;
}
.chat-msg--user .chat-msg-body {
  background: var(--accent);
  color: #0a0a0a;
  border-bottom-right-radius: 4px;
}
.chat-msg--assistant .chat-msg-body {
  background: var(--card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.chat-msg-body code {
  font-size: 0.8em;
  background: rgba(255,255,255,0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.chat-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  margin-right: 3px;
  animation: chatDot 1.2s infinite;
}
.chat-dots span:nth-child(2) { animation-delay: 0.2s; }
.chat-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatDot {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}
@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.chat-composer {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.chat-input-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.chat-input-form textarea {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  resize: none;
  min-height: 44px;
  max-height: 160px;
  line-height: 1.45;
}
.chat-input-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s, opacity 0.15s;
}
.chat-send-btn:hover { transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.chat-composer-hint {
  font-size: 0.65rem;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .chat-page .chat-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .chat-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 16px;
  }
  .chat-hints { display: none; }
  .chat-quick-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .chat-quick-btn { flex: 1; min-width: 140px; font-size: 0.72rem; }
  .chat-msg { max-width: 95%; }
}

/* ── City booking checklist + live itinerary ── */
.city-checklist-section {
  margin: 28px 0 8px;
}

.city-checklist-section .section-sub {
  margin-bottom: 14px;
}

.check-cat {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}

.check-del {
  margin-left: auto;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  opacity: 0.55;
}

.check-del:hover { opacity: 1; color: var(--red); }

.planner-add-form,
.itinerary-add-stop {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg2) 80%, transparent);
}

.planner-add-form input,
.planner-add-form select,
.itinerary-add-stop input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.78rem;
}

.itinerary-add-row {
  display: flex;
  gap: 8px;
}

.planner-add-btn {
  align-self: flex-start;
  padding: 8px 14px;
  font-size: 0.72rem;
}

.planner-empty {
  color: var(--muted);
  font-size: 0.78rem;
  padding: 8px 2px;
}

.itinerary-stop-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  justify-content: space-between;
}

.itinerary-stop-head h4 { margin: 0; flex: 1; }

.itinerary-stop-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.it-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--bg2);
  color: var(--text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
}

.it-btn:hover { border-color: var(--gold); }
.it-btn--danger:hover { border-color: var(--red); color: var(--red); }

.itinerary-stop.is-done .tl-content h4 {
  text-decoration: line-through;
  color: var(--muted);
}

.itinerary-stop.is-done {
  opacity: 0.65;
}

@media (max-width: 600px) {
  .itinerary-add-row { flex-direction: column; }
  .itinerary-add-row input[name="time"] { max-width: none !important; }
}

