:root {
  color-scheme: light;
  --indigo: #10245e;
  --indigo-2: #1f4fbd;
  --ivory: #edf6ff;
  --paper: #ffffff;
  --paper-2: #dcecff;
  --ink: #0d1b3b;
  --muted: #52637c;
  --line: #bcd2ec;
  --maple: #ff4f78;
  --maple-dark: #d92f5c;
  --moss: #008d70;
  --ginkgo: #ffc83d;
  --river: #008fd7;
  --orange: #ff7438;
  --shadow: 0 22px 60px rgba(17, 49, 105, .16);
  --shadow-soft: 0 9px 24px rgba(17, 49, 105, .11);
  --radius: 22px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, "Yu Gothic UI", "Hiragino Sans", Meiryo, Arial, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(255,79,120,.18), transparent 24rem),
    radial-gradient(circle at 16% 42%, rgba(0,174,239,.16), transparent 27rem),
    linear-gradient(145deg, #eaf6ff 0%, #f7fbff 46%, #fff4c7 100%);
  min-width: 320px;
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button, a, select, input[type="checkbox"] { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: var(--indigo-2); text-underline-offset: 3px; }
a:hover { color: var(--maple-dark); }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 1000;
  inset-inline-start: 16px;
  top: -80px;
  padding: 12px 16px;
  color: white;
  background: var(--maple-dark);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.ambient {
  position: fixed;
  z-index: -1;
  border: 1px solid rgba(23, 38, 75, .09);
  border-radius: 50%;
  pointer-events: none;
}
.ambient-a { width: 480px; height: 480px; top: 16%; right: -260px; }
.ambient-b { width: 320px; height: 320px; bottom: 9%; left: -180px; }

.app-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(244, 240, 232, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.header-main {
  min-height: 88px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 24px;
}
.monogram {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  border: 1px solid var(--indigo);
  border-radius: 50%;
  color: var(--paper);
  background: var(--indigo);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 6px var(--maple);
  cursor: pointer;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 23px;
  font-weight: 700;
}
.brand-copy { min-width: 0; }
.brand-copy h1 { margin: -2px 0 0; font: 700 clamp(22px, 3vw, 31px)/1.05 Georgia, "Yu Mincho", serif; letter-spacing: -.02em; }
.brand-copy > p:last-child { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.eyebrow { margin: 0 0 5px; color: var(--maple-dark); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.header-actions { display: flex; gap: 8px; margin-inline-start: auto; }
.icon-button.secrets-button { position: relative; color: white; background: var(--maple-dark); border-color: var(--maple-dark); box-shadow: 0 7px 20px rgba(141,48,43,.2); }
.icon-button.secrets-button:hover { color: white; background: var(--maple); border-color: var(--maple); }
.secret-mark { display: grid; width: 25px; height: 25px; place-items: center; color: var(--maple-dark); background: var(--ginkgo); border-radius: 50%; font-family: Georgia, "Yu Mincho", serif; font-size: 15px; }
.secret-badge { min-width: 35px; padding: 2px 6px; color: white; background: rgba(255,255,255,.17); border-radius: 999px; font-size: 10px; font-variant-numeric: tabular-nums; }
.secret-badge.is-complete { color: var(--indigo); background: var(--ginkgo); }
.icon-button, .ghost-button, .primary-button, .small-button, .map-button, .link-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 13px;
  background: var(--paper);
  cursor: pointer;
  font-weight: 750;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.icon-button { display: inline-flex; align-items: center; gap: 7px; }
.icon-button:hover, .ghost-button:hover, .small-button:hover, .map-button:hover, .link-button:hover { border-color: var(--indigo-2); transform: translateY(-1px); }
.primary-button { border-color: var(--indigo); background: var(--indigo); color: white; }
.primary-button:hover { background: var(--indigo-2); transform: translateY(-1px); }
.compact { min-height: 36px; padding: 5px 10px; font-size: 12px; }
.link-button { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.link-button.primary { border-color: var(--indigo); background: var(--indigo); color: white; }

.sound-panel {
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--paper);
  background: var(--indigo);
}
.sound-panel[hidden] { display: none; }
.sound-panel h2 { margin: 0 0 3px; font: 700 18px/1.2 Georgia, serif; }
.sound-panel p:last-child { margin: 0; color: #dce1ed; font-size: 12px; }
.sound-controls { display: flex; align-items: center; gap: 10px; }
.sound-controls .ghost-button { color: white; background: transparent; border-color: rgba(255,255,255,.34); }
.sound-controls input { accent-color: var(--maple); width: 140px; }

.status-strip {
  max-width: 1480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 8px 24px 10px 94px;
  font-size: 12px;
  color: var(--muted);
}
.status-strip strong { color: var(--ink); }
.progress-track { width: 150px; height: 5px; overflow: hidden; background: var(--paper-2); border-radius: 99px; }
.progress-fill { height: 100%; background: var(--maple); }

.app-shell { max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); }
.desktop-rail {
  position: sticky;
  top: 124px;
  height: calc(100vh - 124px);
  display: flex;
  flex-direction: column;
  padding: 26px 18px;
  border-inline-end: 1px solid var(--line);
}
.primary-nav { display: grid; gap: 5px; }
.nav-button {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-inline-start: 3px solid transparent;
  border-radius: 4px 10px 10px 4px;
  background: transparent;
  text-align: start;
  cursor: pointer;
  font-weight: 750;
}
.nav-button:hover { background: rgba(23,38,75,.06); }
.nav-button[aria-current="page"] { color: var(--indigo); background: var(--paper); border-inline-start-color: var(--maple); box-shadow: var(--shadow-soft); }
.nav-icon { font-size: 18px; }
.rail-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 4px rgba(63,102,87,.13); }

main { min-width: 0; padding: 40px clamp(22px, 4vw, 64px) 72px; }
.view { display: none; }
.view.is-active { display: block; animation: view-in .3s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.view-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.view-heading h2 { margin: 0; color: var(--indigo); font: 700 clamp(32px, 5vw, 54px)/1.04 Georgia, "Yu Mincho", serif; letter-spacing: -.035em; }
.view-heading p:last-child { max-width: 760px; margin: 9px 0 0; color: var(--muted); }
.view-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.hero-grid { display: grid; grid-template-columns: .82fr 1fr 1.25fr; gap: 14px; margin-bottom: 24px; }
.countdown-card, .next-action-card, .hero-photo {
  min-height: 230px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.countdown-card, .next-action-card { padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.countdown-card { color: white; background: var(--indigo); border-color: var(--indigo); }
.count-number { display: block; font: 700 clamp(48px, 7vw, 76px)/.9 Georgia, serif; letter-spacing: -.06em; }
.count-label { display: block; margin-top: 8px; color: #d9dfed; font-size: 13px; }
.countdown-card .micro-row { color: #d9dfed; }
.next-action-card { border-top: 4px solid var(--maple); }
.next-action-card h3 { margin: 5px 0; font: 700 21px/1.15 Georgia, serif; }
.next-action-card p { margin: 0; color: var(--muted); font-size: 13px; }
.hero-photo { position: relative; }
.hero-photo img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; }
.hero-photo figcaption { position: absolute; inset: auto 0 0; padding: 12px 16px; color: white; background: rgba(10,15,23,.86); font-size: 11px; }
.hero-photo a { color: white; }

.discovery-board { margin: 0 0 28px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); }
.discovery-banner { position: relative; min-height: 310px; margin: 0; overflow: hidden; background: var(--indigo); }
.discovery-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.discovery-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,17,36,.91) 0%, rgba(9,17,36,.7) 36%, rgba(9,17,36,.04) 72%); }
[dir="rtl"] .discovery-banner::after { background: linear-gradient(-90deg, rgba(9,17,36,.91) 0%, rgba(9,17,36,.7) 36%, rgba(9,17,36,.04) 72%); }
.discovery-overlay { position: relative; z-index: 1; display: flex; min-height: 310px; max-width: 580px; padding: clamp(28px,5vw,58px); flex-direction: column; align-items: flex-start; justify-content: center; color: white; }
.discovery-overlay .eyebrow { color: var(--ginkgo); }
.discovery-overlay h3 { max-width: 430px; margin: 3px 0 9px; font: 700 clamp(31px,5vw,52px)/.98 Georgia, "Yu Mincho", serif; letter-spacing: -.035em; }
.discovery-overlay p:not(.eyebrow) { max-width: 490px; margin: 0 0 18px; color: rgba(255,255,255,.82); font-size: 14px; }
.secret-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--indigo); background: var(--ginkgo); border-color: var(--ginkgo); }
.secret-cta:hover { color: var(--indigo); background: #cba447; }
.side-quest-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
.side-quest-card { display: grid; min-height: 225px; grid-template-columns: 46px minmax(0,1fr); gap: 13px; padding: 21px; border-top: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.side-quest-card:nth-child(3n) { border-inline-end: 0; }
.side-quest-icon { display: grid; width: 42px; height: 42px; place-items: center; color: var(--paper); background: var(--indigo); border-radius: 50%; box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--maple); font: 700 18px/1 Georgia, "Yu Mincho", serif; }
.side-quest-card h4 { margin: 2px 0 7px; color: var(--indigo); font: 700 18px/1.15 Georgia, "Yu Mincho", serif; }
.side-quest-card > div > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.side-quest-card .card-actions { margin-top: 14px; }

.segment-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 9px; scrollbar-width: thin; }
.segment-tab {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 750;
  white-space: nowrap;
}
.segment-tab[aria-selected="true"] { color: white; background: var(--indigo); border-color: var(--indigo); }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px 0 24px; color: var(--muted); font-size: 11px; }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.legend-swatch { width: 8px; height: 8px; border-radius: 50%; }

.timeline { position: relative; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 45px; top: 22px; bottom: 22px; width: 1px; background: var(--line); }
.day-card { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; }
.date-marker { z-index: 1; width: 72px; height: 72px; display: grid; place-items: center; align-content: center; justify-self: center; border: 1px solid var(--line); border-radius: 50%; background: var(--ivory); box-shadow: inset 0 0 0 6px var(--paper); }
.date-marker strong { font: 700 23px/1 Georgia, serif; }
.date-marker span { margin-top: 2px; color: var(--maple-dark); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.day-panel { overflow: hidden; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); }
.day-card.is-today .date-marker { color: white; background: var(--maple); border-color: var(--maple); box-shadow: inset 0 0 0 6px var(--paper), 0 0 0 3px rgba(185,69,59,.16); }
.day-card.is-today .date-marker span { color: white; }
.day-card.is-complete .day-panel { opacity: .65; }
.day-card.is-complete h3 { text-decoration: line-through; }
.day-summary { min-height: 106px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 20px; cursor: pointer; list-style: none; }
.day-summary::-webkit-details-marker { display: none; }
.day-summary h3 { margin: 3px 0 2px; color: var(--indigo); font: 700 clamp(19px, 2.5vw, 26px)/1.18 Georgia, "Yu Mincho", serif; }
.day-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.summary-actions { display: flex; align-items: center; gap: 6px; }
.summary-actions button { position: relative; z-index: 2; }
.round-button { width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.round-button:hover { border-color: var(--indigo); background: var(--ivory); }
.round-button.is-active { color: white; background: var(--maple); border-color: var(--maple); }
.chevron { width: 26px; color: var(--muted); font-size: 18px; transition: transform .2s ease; }
details[open] .chevron { transform: rotate(180deg); }
.day-body { padding: 0 20px 20px; border-top: 1px solid var(--line); }
.day-strap { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; border: 1px solid currentColor; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.tag.green { color: var(--moss); background: rgba(63,102,87,.08); }
.tag.amber { color: #85631b; background: rgba(181,139,46,.09); }
.tag.red { color: var(--maple-dark); background: rgba(185,69,59,.08); }
.tag.blue { color: var(--river); background: rgba(46,113,140,.08); }
.tag.neutral { color: var(--muted); background: rgba(109,106,98,.06); }
.schedule-list { display: grid; gap: 0; }
.schedule-row { display: grid; grid-template-columns: 74px 24px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.schedule-row:last-child { border-bottom: 0; }
.schedule-time { direction: ltr; text-align: start; color: var(--maple-dark); font-size: 12px; font-weight: 850; }
.schedule-icon { font-size: 16px; }
.schedule-copy h4 { margin: 0 0 3px; font-size: 14px; }
.schedule-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.callout { margin: 15px 0 0; padding: 13px 15px; border-inline-start: 4px solid var(--ginkgo); background: #f7f2e4; font-size: 12px; }
.callout.warning { border-color: var(--maple); background: #f7eae6; }
.callout.info { border-color: var(--river); background: #e9f1f3; }
.day-photo { position: relative; height: 230px; margin: 0 -20px 14px; overflow: hidden; background: var(--paper-2); }
.day-photo img { width: 100%; height: 100%; object-fit: cover; }
.day-photo figcaption { position: absolute; inset: auto 0 0; padding: 8px 14px; color: white; background: rgba(10,15,23,.82); font-size: 10px; }
.day-photo a { color: white; }
.choice-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 16px 0 0; padding: 0; border: 0; }
.choice-grid legend { grid-column: 1 / -1; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.choice-card { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; min-height: 118px; padding: 13px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.choice-card.is-selected { border-color: var(--moss); box-shadow: inset 4px 0 0 var(--moss); background: #f5f8f3; }
[dir="rtl"] .choice-card.is-selected { box-shadow: inset -4px 0 0 var(--moss); }
.choice-card input { margin: 4px 0 0; accent-color: var(--moss); }
.choice-card strong { display: block; color: var(--indigo); font-size: 13px; }
.choice-card strong em { display: inline-block; margin-inline-start: 5px; padding: 2px 5px; border-radius: 999px; color: white; background: var(--moss); font: 800 8px/1.4 Inter, sans-serif; text-transform: uppercase; }
.choice-card small { display: block; margin: 2px 0 6px; color: var(--maple-dark); font-size: 9px; font-weight: 800; }
.choice-description { display: block; color: var(--muted); font-size: 11px; }
.choice-facts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.choice-facts i { display: inline-flex; padding: 2px 6px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--paper); font-size: 8px; font-style: normal; font-weight: 750; }
.day-links, .card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.note-area { margin-top: 14px; }
.note-area label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.note-area textarea { width: 100%; min-height: 78px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 10px; color: var(--ink); background: white; }
.note-area textarea:focus, select:focus, button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(46,113,140,.25); outline-offset: 2px; }

.section-label { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; color: var(--muted); font-size: 11px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.section-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.card-grid { display: grid; gap: 14px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.data-card { min-width: 0; padding: 20px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-soft); }
.data-card h3 { margin: 3px 0 6px; color: var(--indigo); font: 700 19px/1.2 Georgia, "Yu Mincho", serif; }
.data-card p { margin: 4px 0; color: var(--muted); font-size: 12px; }
.data-card .lead { color: var(--ink); font-size: 13px; }
.card-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-kicker { color: var(--maple-dark); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.icon-chip { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--ivory); font-size: 18px; }
.detail-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; margin: 16px 0 0; font-size: 12px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.copy-line { display: inline-flex; align-items: center; gap: 5px; direction: ltr; }
.copy-mini { width: 28px; height: 28px; border: 0; border-radius: 6px; background: var(--paper-2); cursor: pointer; }
.deadline-strip { margin: 14px -20px -20px; padding: 10px 20px; color: white; background: var(--maple-dark); font-size: 11px; font-weight: 800; }
.decision-box { padding: 20px; border: 1px solid var(--maple); border-inline-start-width: 6px; background: #fbf5eb; }
.decision-box h3 { margin: 0 0 6px; font: 700 20px/1.2 Georgia, serif; }
.decision-box p { color: var(--muted); margin: 5px 0 14px; font-size: 12px; }
.option-switch { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.option-switch label { display: grid; grid-template-columns: 20px 1fr; gap: 8px; align-items: start; padding: 13px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.option-switch input { margin-top: 3px; accent-color: var(--maple); }
.option-switch strong { display: block; }
.option-switch small { display: block; margin-top: 3px; color: var(--muted); }

.flight-card { position: relative; overflow: hidden; min-height: 245px; }
.flight-card::after { content: ""; position: absolute; inset-inline-end: -31px; top: -31px; width: 90px; height: 90px; border: 18px solid rgba(23,38,75,.055); border-radius: 50%; }
.flight-route { margin: 15px 0; display: grid; grid-template-columns: 1fr 50px 1fr; align-items: center; }
.airport { font: 700 27px/1 Georgia, serif; }
.airport:last-child { text-align: end; }
.route-line { height: 1px; background: var(--line); position: relative; }
.route-line::after { content: "✈"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); background: var(--paper); padding: 0 5px; font-size: 15px; }
.flight-time { display: flex; justify-content: space-between; gap: 10px; direction: ltr; font-size: 12px; }
.airport-reunion { margin-top: 14px; border-inline-start: 6px solid var(--river); }
.reunion-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; margin: 16px 0 0; background: var(--line); border: 1px solid var(--line); }
.reunion-steps > div { padding: 13px; background: var(--paper); }
.reunion-steps strong { display: block; margin-bottom: 5px; color: var(--indigo); font-size: 12px; }
.reunion-steps span { display: block; color: var(--muted); font-size: 11px; }

.transit-list { display: grid; gap: 12px; }
.transit-card { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 17px 18px; border: 1px solid var(--line); background: var(--paper); }
.transit-route h3 { margin: 2px 0 3px; color: var(--indigo); font: 700 17px/1.2 Georgia, serif; }
.transit-route p { margin: 0; color: var(--muted); font-size: 11px; }
.transit-core { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 10px 16px; }
.mini-detail span { display: block; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.mini-detail strong { display: block; margin-top: 2px; font-size: 11px; }
.ticket-toggle { min-width: 92px; display: grid; place-items: center; gap: 4px; text-align: center; }
.ticket-toggle label { color: var(--muted); font-size: 10px; }
.switch { position: relative; width: 46px; height: 26px; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 99px; background: var(--paper-2); cursor: pointer; }
.slider::before { content: ""; position: absolute; width: 20px; height: 20px; top: 2px; left: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: .2s; }
.switch input:checked + .slider { background: var(--moss); border-color: var(--moss); }
.switch input:checked + .slider::before { transform: translateX(20px); }
[dir="rtl"] .slider::before { left: auto; right: 2px; }
[dir="rtl"] .switch input:checked + .slider::before { transform: translateX(-20px); }

.map-hero { min-height: 250px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); background: var(--indigo); color: white; box-shadow: var(--shadow); }
.map-hero-copy { padding: clamp(24px, 5vw, 52px); }
.map-hero h3 { margin: 0 0 8px; font: 700 clamp(26px, 4vw, 42px)/1.05 Georgia, serif; }
.map-hero p { max-width: 520px; color: #dbe0ec; }
.map-hero .link-button { margin-top: 12px; color: var(--indigo); }
.map-art { position: relative; min-height: 250px; background: #dbe3de; overflow: hidden; }
.map-art::before, .map-art::after { content: ""; position: absolute; border: 2px solid rgba(23,38,75,.34); border-radius: 50%; }
.map-art::before { width: 320px; height: 320px; top: -90px; left: 10%; }
.map-art::after { width: 190px; height: 190px; bottom: -60px; right: 8%; }
.route-path { position: absolute; inset: 50% auto auto 15%; width: 70%; height: 2px; background: var(--maple); transform: rotate(-9deg); }
.route-stop { position: absolute; width: 15px; height: 15px; border: 3px solid white; border-radius: 50%; background: var(--maple); box-shadow: 0 0 0 1px var(--maple-dark); }
.route-stop.tokyo { left: 15%; top: 60%; }
.route-stop.izu { left: 43%; top: 55%; }
.route-stop.kyoto { right: 17%; top: 40%; }
.route-label { position: absolute; font: 700 13px/1 Georgia, serif; color: var(--indigo); }
.route-label.tokyo { left: 9%; top: 69%; }
.route-label.izu { left: 40%; top: 64%; }
.route-label.kyoto { right: 10%; top: 28%; }
.map-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.region-map-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.region-map-grid .map-card { min-height: 180px; display: flex; flex-direction: column; border-top: 4px solid var(--river); }
.region-map-grid .map-card .link-button { margin-top: auto; align-self: flex-start; }
.map-card { min-height: 135px; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.map-card h3 { margin: 3px 0 5px; font: 700 16px/1.2 Georgia, serif; }
.map-card p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.day-map-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.day-map-row { min-height: 76px; display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 11px 13px; background: var(--paper); }
.day-map-row time { color: var(--maple-dark); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.day-map-row h3 { margin: 0 0 2px; color: var(--indigo); font: 700 14px/1.15 Georgia, serif; }
.day-map-row p { margin: 0; color: var(--muted); font-size: 10px; }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-button { min-height: 38px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 12px; font-weight: 750; }
.filter-button.is-active { color: white; background: var(--indigo); border-color: var(--indigo); }
.museum-card { position: relative; }
.museum-card .favorite-corner { position: absolute; top: 13px; inset-inline-end: 13px; }
.museum-card .card-topline { padding-inline-end: 40px; }
.fit-meter { display: flex; gap: 3px; margin-top: 10px; }
.fit-meter span { width: 22px; height: 4px; background: var(--paper-2); }
.fit-meter span.on { background: var(--moss); }

.food-summary { margin-bottom: 16px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); background: var(--paper); }
.food-summary-item { min-height: 82px; padding: 14px; border-inline-end: 1px solid var(--line); }
.food-summary-item:last-child { border-inline-end: 0; }
.food-summary-item strong { display: block; font-size: 18px; }
.food-summary-item span { color: var(--muted); font-size: 11px; }
.food-card { min-height: 230px; display: flex; flex-direction: column; cursor: pointer; border-top: 4px solid var(--indigo); }
.food-card:hover { border-color: var(--maple); transform: translateY(-2px); box-shadow: var(--shadow); }
.food-icon { font-size: 28px; }
.food-japanese-preview { margin: 10px 0; color: var(--ink); font-family: "Yu Mincho", serif; font-size: 16px; line-height: 1.8; }
.food-card .card-actions { margin-top: auto; }

.food-dialog { width: min(720px, calc(100% - 24px)); max-height: calc(100vh - 24px); border: 0; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 28px 90px rgba(0,0,0,.3); }
.food-dialog::backdrop { background: rgba(16,20,29,.72); backdrop-filter: blur(5px); }
.dialog-shell { position: relative; padding: clamp(25px, 6vw, 62px); text-align: center; }
.dialog-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ivory); cursor: pointer; font-size: 24px; }
.japanese-card { margin: 24px 0; font-family: "Yu Mincho", serif; font-size: clamp(25px, 5vw, 42px); line-height: 1.65; }
.food-dialog p { color: var(--muted); }
.dialog-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.food-dialog.large-text .japanese-card { font-size: clamp(34px, 7vw, 58px); line-height: 1.75; }
.food-dialog.large-text #foodDialogTranslation { font-size: 19px; color: var(--ink); }

.secrets-dialog { width: min(1080px, calc(100% - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; border: 0; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 30px 100px rgba(0,0,0,.38); }
.secrets-dialog::backdrop { background: rgba(10,16,31,.78); backdrop-filter: blur(7px); }
.secrets-shell { position: relative; padding: clamp(24px,4.5vw,54px); }
.secrets-shell > form { position: absolute; z-index: 3; inset: 0 0 auto auto; }
[dir="rtl"] .secrets-shell > form { right: auto; left: 0; }
.secrets-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; margin-bottom: 24px; padding-inline-end: 36px; }
.secrets-heading h2 { margin: 2px 0 8px; color: var(--indigo); font: 700 clamp(30px,5vw,52px)/1 Georgia, "Yu Mincho", serif; letter-spacing: -.035em; }
.secrets-heading p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); }
.discovery-score { display: grid; min-width: 92px; text-align: end; }
.discovery-score strong { color: var(--maple); font: 700 34px/1 Georgia, serif; }
.discovery-score span { color: var(--muted); font-size: 12px; }
.secrets-layout { display: grid; grid-template-columns: minmax(260px,.74fr) minmax(0,1.35fr); gap: 18px; align-items: start; }
.omikuji-card { position: sticky; top: 0; overflow: hidden; border: 1px solid var(--line); background: var(--ivory); }
.omikuji-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.omikuji-copy { padding: 17px; border-top: 1px solid var(--line); }
.secret-result { min-height: 74px; color: var(--indigo); font: 700 17px/1.4 Georgia, "Yu Mincho", serif; }
.secret-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.secret-card { display: grid; min-height: 185px; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.secret-card.is-found { border-color: rgba(63,102,87,.5); background: rgba(63,102,87,.055); }
.secret-icon { display: grid; width: 40px; height: 40px; place-items: center; color: white; background: var(--maple-dark); border-radius: 50%; font: 700 18px/1 Georgia, "Yu Mincho", serif; }
.secret-card.is-found .secret-icon { background: var(--moss); }
.found-label { color: var(--maple); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.secret-card.is-found .found-label { color: var(--moss); }
.secret-card h3 { margin: 3px 0 5px; color: var(--indigo); font: 700 17px/1.15 Georgia, "Yu Mincho", serif; }
.secret-card p { margin: 0 0 11px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.secret-clue { margin: 22px 0 0; padding: 13px 16px; color: var(--muted); background: var(--ivory); border-inline-start: 4px solid var(--ginkgo); font-size: 12px; }

.planner-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; }
.checklist-overview { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 22px; align-items: center; margin-bottom: 18px; padding: 22px; color: white; background: var(--indigo); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); }
.checklist-score { display: flex; align-items: baseline; min-width: 92px; }
.checklist-score span { font: 700 48px/1 Georgia, serif; }
.checklist-score small { color: rgba(255,255,255,.66); font-size: 18px; }
.checklist-progress-copy .eyebrow { color: var(--ginkgo); }
.checklist-progress-copy h3 { margin: 3px 0 5px; font: 700 21px/1.2 Georgia, serif; }
.checklist-progress-copy p { max-width: 720px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.5; }
.checklist-progress-track { height: 7px; margin-top: 14px; overflow: hidden; background: rgba(255,255,255,.15); }
.checklist-progress-track span { display: block; height: 100%; background: var(--ginkgo); transition: width .25s ease; }
.checklist-legend { display: grid; gap: 2px; min-width: 110px; text-align: end; }
.checklist-legend strong { color: var(--ginkgo); font: 700 25px/1 Georgia, serif; }
.checklist-legend span { color: rgba(255,255,255,.66); font-size: 12px; }
.checklist-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.checklist-filters .filter-button span { display: inline-grid; min-width: 22px; height: 22px; margin-inline-start: 5px; place-items: center; color: var(--muted); background: rgba(23,38,75,.07); border-radius: 50%; font-size: 11px; }
.checklist-filters .filter-button.is-active span { color: var(--indigo); background: white; }
.action-group { margin-bottom: 34px; }
.action-group-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: end; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.action-group-heading h3 { margin: 3px 0; font: 700 24px/1.15 Georgia, serif; }
.action-group-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.action-group-heading > span { color: var(--muted); font-size: 14px; font-weight: 800; }
.action-task-list { display: grid; gap: 9px; }
.action-task { display: grid; grid-template-columns: 54px minmax(0,1fr); border: 1px solid var(--line); background: var(--paper); box-shadow: 0 2px 0 rgba(23,38,75,.03); transition: border-color .18s, opacity .18s; }
.action-task:hover { border-color: rgba(23,38,75,.36); }
.action-checkbox { display: grid; width: 54px; min-height: 84px; place-items: center; align-self: start; border-inline-end: 1px solid var(--line); cursor: pointer; }
.action-checkbox input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.action-checkbox span { display: grid; width: 25px; height: 25px; place-items: center; color: transparent; background: white; border: 2px solid #9ba2af; border-radius: 5px; font-size: 16px; font-weight: 900; transition: .18s; }
.action-checkbox input:focus-visible + span { outline: 3px solid rgba(44,110,123,.35); outline-offset: 3px; }
.action-checkbox input:checked + span { color: white; background: var(--moss); border-color: var(--moss); }
.action-task details { min-width: 0; }
.action-task summary { display: grid; grid-template-columns: 40px minmax(0,1fr) minmax(150px,auto) 24px; gap: 12px; align-items: center; min-height: 84px; padding: 13px 15px; cursor: pointer; list-style: none; }
.action-task summary::-webkit-details-marker { display: none; }
.action-task-icon { display: grid; width: 36px; height: 36px; place-items: center; color: var(--indigo); background: var(--ivory); border: 1px solid var(--line); border-radius: 50%; font-size: 18px; }
.action-task-title { display: grid; gap: 3px; min-width: 0; }
.action-task-title small { color: var(--river); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.action-task-title strong { color: var(--ink); font: 700 17px/1.25 Georgia, serif; }
.action-task-title > span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.action-task-meta { display: grid; gap: 4px; max-width: 220px; text-align: end; }
.action-task-meta b { color: var(--maple); font-size: 13px; line-height: 1.35; }
.action-task-meta small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.action-chevron { color: var(--muted); font-size: 20px; transition: transform .18s; }
.action-task details[open] .action-chevron { transform: rotate(180deg); }
.action-task-body { padding: 4px 18px 20px 52px; border-top: 1px solid var(--line); }
.action-task-body h4 { margin: 16px 0 8px; color: var(--river); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.action-task-body ol { margin: 0; padding-inline-start: 22px; }
.action-task-body li { margin: 8px 0; color: var(--ink); font-size: 15px; line-height: 1.55; }
.action-task-body .card-actions { margin-top: 15px; }
.action-task.is-done { opacity: .63; background: rgba(255,255,255,.62); }
.action-task.is-done .action-task-title strong { text-decoration: line-through; }
.action-task.is-done .action-task-meta b { color: var(--moss); }
.decision-list { display: grid; gap: 10px; }
.decision-card { padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.decision-card header { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 8px; align-items: center; }
.decision-card h3 { margin: 0; font-size: 14px; }
.decision-card p { margin: 8px 0 0 43px; color: var(--muted); font-size: 11px; }
.status-select { min-height: 36px; max-width: 130px; border: 1px solid var(--line); border-radius: 7px; background: white; padding: 4px 8px; font-size: 11px; font-weight: 750; }
.checklist-card { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); background: var(--paper); }
.checklist-card h3 { margin: 0 0 10px; font: 700 16px/1.2 Georgia, serif; }
.check-item { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 7px; align-items: start; padding: 7px 0; color: var(--muted); font-size: 12px; cursor: pointer; }
.check-item input { width: 18px; height: 18px; margin: 0; accent-color: var(--moss); }
.check-item:has(input:checked) span { text-decoration: line-through; opacity: .62; }
.delight-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.delight-card { min-height: 135px; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.delight-card h3 { margin: 0 0 5px; font: 700 16px/1.2 Georgia, serif; }
.delight-card p { margin: 0 0 12px; color: var(--muted); font-size: 11px; }

.mobile-nav { display: none; }
.toast { position: fixed; z-index: 500; left: 50%; bottom: calc(24px + var(--safe-bottom)); transform: translate(-50%, 18px); padding: 10px 16px; color: white; background: var(--indigo); border-radius: 8px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.train-easter-egg { position: fixed; z-index: 600; left: -260px; bottom: 18%; display: flex; font-size: 38px; filter: drop-shadow(0 7px 7px rgba(0,0,0,.16)); pointer-events: none; }
.train-easter-egg.run { animation: train-run 4.7s cubic-bezier(.2,.8,.2,1); }
@keyframes train-run { 0% { left: -260px; } 100% { left: calc(100vw + 20px); } }
.kaiju { position: fixed; z-index: 640; right: 4vw; bottom: -180px; color: rgba(23,38,75,.74); text-shadow: 0 8px 0 rgba(185,69,59,.35); font: 800 clamp(120px,22vw,290px)/1 Georgia, serif; pointer-events: none; transition: bottom .6s ease; }
.kaiju.show { bottom: 72px; }
.samurai-mission { position: fixed; z-index: 650; left: 50%; top: -130px; display: flex; width: min(620px,calc(100% - 28px)); min-height: 86px; transform: translateX(-50%); align-items: center; justify-content: center; gap: 14px; padding: 17px 22px; color: white; background: var(--indigo); border: 2px solid var(--ginkgo); box-shadow: 0 22px 60px rgba(10,16,31,.33); transition: top .42s cubic-bezier(.2,.8,.2,1); text-align: center; }
.samurai-mission span { color: var(--ginkgo); font: 700 34px/1 Georgia, "Yu Mincho", serif; }
.samurai-mission.show { top: 22px; }
body.retro-mode { --indigo: #151f37; --ivory: #eee6d3; --paper: #fff8e7; --maple: #c43e53; --river: #2a7d87; }
body.retro-mode .view-heading h2, body.retro-mode .brand-copy h1 { letter-spacing: .025em; text-shadow: 2px 2px 0 rgba(181,139,46,.18); }
body.samurai-mode .app-header { box-shadow: inset 0 -4px 0 var(--maple), 0 12px 36px rgba(23,38,75,.12); }
body.samurai-mode .monogram { transform: rotate(-8deg) scale(1.08); }

/* v2.13 · Japan Pop Rail Passport visual system */
.ambient { border-width: 24px; border-color: rgba(0,143,215,.07); }
.ambient-a { box-shadow: 0 0 0 46px rgba(255,79,120,.045); }
.ambient-b { box-shadow: 0 0 0 38px rgba(255,200,61,.07); }

.app-header {
  color: white;
  background: linear-gradient(118deg, #081944 0%, #123885 60%, #075d9a 100%);
  border-bottom: 4px solid var(--ginkgo);
  box-shadow: 0 12px 34px rgba(8,25,68,.22);
}
.header-main { min-height: 94px; }
.brand-copy h1 { color: white; font-family: "Arial Black", Inter, "Yu Gothic UI", sans-serif; letter-spacing: -.035em; }
.brand-copy > p:last-child { color: rgba(255,255,255,.72); }
.app-header .eyebrow { color: var(--ginkgo); }
.monogram {
  color: var(--indigo);
  background: linear-gradient(145deg, #fff 0%, #d8f5ff 100%);
  border: 3px solid var(--ginkgo);
  box-shadow: 0 0 0 4px rgba(255,255,255,.16), 0 10px 25px rgba(0,0,0,.24);
  transition: transform .2s ease;
}
.monogram:hover { transform: rotate(-7deg) scale(1.06); }
.app-header .icon-button:not(.secrets-button) { color: white; background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.3); }
.app-header .icon-button:not(.secrets-button):hover { background: rgba(255,255,255,.2); border-color: white; }
.icon-button.secrets-button { color: var(--indigo); background: linear-gradient(135deg, var(--ginkgo), #ffdf6e); border-color: #ffe88e; box-shadow: 0 9px 24px rgba(255,200,61,.24); }
.icon-button.secrets-button:hover { color: var(--indigo); background: #ffe078; border-color: white; }
.secret-mark { color: white; background: var(--maple-dark); }
.secret-badge { color: white; background: var(--maple-dark); }
.status-strip { color: rgba(255,255,255,.74); }
.status-strip strong { color: white; }
.status-strip .progress-track { background: rgba(255,255,255,.17); }
.status-strip .progress-fill { background: linear-gradient(90deg, var(--ginkgo), var(--maple)); }
.sound-panel { background: linear-gradient(110deg, #07163b, #172d68); border-top: 1px solid rgba(255,255,255,.13); }

.app-shell { max-width: 1540px; padding: 18px; gap: 18px; }
.desktop-rail {
  top: 143px;
  height: calc(100vh - 161px);
  padding: 22px 14px;
  color: white;
  background: linear-gradient(180deg, #0b2054, #0e3679 68%, #0875a8);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 26px;
  box-shadow: var(--shadow);
}
.nav-button { min-height: 54px; border-radius: 14px; color: rgba(255,255,255,.78); font-size: 14px; }
.nav-button:hover { color: white; background: rgba(255,255,255,.12); }
.nav-button[aria-current="page"] { color: var(--indigo); background: linear-gradient(135deg, var(--ginkgo), #ffe778); border-inline-start-color: var(--maple); box-shadow: 0 10px 24px rgba(3,14,48,.22); }
.nav-icon { font-size: 21px; }
.rail-foot { color: rgba(255,255,255,.68); }
.status-dot { background: #52f4c1; box-shadow: 0 0 0 4px rgba(82,244,193,.18); }

main {
  padding: 38px clamp(22px,4vw,62px) 76px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 32px;
  box-shadow: inset 0 1px 0 white, 0 24px 70px rgba(16,36,94,.11);
  backdrop-filter: blur(12px);
}
.view-heading { padding-bottom: 18px; border-bottom: 2px solid rgba(16,36,94,.1); }
.view-heading h2 { color: var(--indigo); font-family: "Arial Black", Inter, "Yu Gothic UI", sans-serif; letter-spacing: -.055em; text-shadow: 0 4px 0 rgba(0,143,215,.08); }
.view-heading .eyebrow { color: var(--maple-dark); font-size: 12px; }
.view-heading p:last-child { color: var(--muted); font-size: 16px; }

.icon-button, .ghost-button, .primary-button, .small-button, .map-button, .link-button {
  border-width: 2px;
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(16,36,94,.08);
}
.ghost-button, .small-button, .map-button, .link-button { color: var(--indigo); background: white; border-color: #aac7e8; }
.ghost-button:hover, .small-button:hover, .map-button:hover, .link-button:hover { color: var(--indigo); background: #eef8ff; border-color: var(--river); box-shadow: 0 6px 0 rgba(0,143,215,.12); }
.primary-button, .link-button.primary { color: white; background: linear-gradient(135deg, var(--maple-dark), var(--maple)); border-color: var(--maple-dark); }
.primary-button:hover, .link-button.primary:hover { color: white; background: linear-gradient(135deg, #bd204c, #ff6389); }

.hero-grid { gap: 16px; }
.countdown-card, .next-action-card, .hero-photo { min-height: 272px; border-width: 2px; border-radius: 26px; box-shadow: var(--shadow); }
.countdown-card {
  color: var(--indigo);
  background: linear-gradient(145deg, #ffe56f 0%, var(--ginkgo) 64%, #ffac36 100%);
  border-color: #f1a929;
}
.countdown-card .eyebrow { color: var(--maple-dark); }
.count-number { font-family: "Arial Black", Inter, sans-serif; letter-spacing: -.075em; }
.count-label, .countdown-card .micro-row { color: rgba(16,36,94,.76); font-size: 14px; }
.next-action-card { background: linear-gradient(155deg, white, #fff6fa); border: 2px solid #ff9bb2; border-top-width: 8px; }
.next-action-card h3 { color: var(--indigo); font: 800 24px/1.1 "Arial Black", Inter, sans-serif; }
.next-action-card p { font-size: 14px; line-height: 1.5; }
.hero-photo { border-color: #87cdef; }
.hero-photo img { filter: saturate(1.08) contrast(1.03); object-position: 62% center; transform: scale(1.015); }
.hero-photo figcaption { padding: 12px 16px; color: white; background: linear-gradient(90deg, rgba(5,18,55,.92), rgba(5,18,55,.25)); font-size: 13px; font-weight: 800; }

.discovery-board { overflow: hidden; border: 2px solid #82cbed; border-radius: 30px; box-shadow: var(--shadow); }
.discovery-banner::after { background: linear-gradient(90deg, rgba(3,14,48,.94) 0%, rgba(3,14,48,.67) 38%, rgba(3,14,48,.05) 75%); }
[dir="rtl"] .discovery-banner::after { background: linear-gradient(-90deg, rgba(3,14,48,.94) 0%, rgba(3,14,48,.67) 38%, rgba(3,14,48,.05) 75%); }
.discovery-overlay h3 { font-family: "Arial Black", Inter, "Yu Gothic UI", sans-serif; }
.secret-cta { color: var(--indigo); background: linear-gradient(135deg, var(--ginkgo), #ffe678); border-color: #ffe678; }
.side-quest-card { background: linear-gradient(155deg, #fff, #f1f8ff); border-color: var(--line); }
.side-quest-card:nth-child(2n) { background: linear-gradient(155deg, #fff, #fff5c9); }
.side-quest-icon { background: linear-gradient(145deg, var(--indigo), var(--river)); box-shadow: 0 0 0 3px white, 0 0 0 5px var(--maple), 0 8px 18px rgba(16,36,94,.18); }
.side-quest-card h4 { font-family: "Arial Black", Inter, "Yu Gothic UI", sans-serif; }
.side-quest-card > div > p:not(.eyebrow) { font-size: 14px; }

.segment-tabs { gap: 10px; padding-block: 5px 12px; }
.segment-tab { min-height: 48px; border-width: 2px; color: var(--indigo); background: rgba(255,255,255,.68); font-size: 14px; box-shadow: 0 4px 0 rgba(16,36,94,.06); }
.segment-tab[aria-selected="true"] { color: var(--indigo); background: var(--ginkgo); border-color: #e5aa16; box-shadow: 0 6px 0 rgba(229,170,22,.18); }
.legend-row { font-size: 13px; }
.legend-swatch { width: 10px; height: 10px; box-shadow: 0 0 0 2px white, 0 0 0 3px currentColor; }

.timeline { gap: 20px; }
.timeline::before { width: 5px; background: linear-gradient(var(--maple), var(--ginkgo), var(--river)); border-radius: 999px; }
.date-marker { width: 78px; height: 78px; color: white; background: linear-gradient(145deg, var(--maple), #ff7956); border: 3px solid white; box-shadow: 0 0 0 4px var(--ginkgo), 0 10px 24px rgba(16,36,94,.2); }
.date-marker strong { font-family: "Arial Black", Inter, sans-serif; }
.date-marker span { color: white; font-size: 11px; }
.day-panel { border: 2px solid #b5d1ed; border-radius: 22px; box-shadow: 0 12px 32px rgba(16,36,94,.11); }
.day-summary { min-height: 116px; background: linear-gradient(115deg, #fff 0%, #f3f9ff 67%, #e8f7ff 100%); }
.day-summary:hover { background: linear-gradient(115deg, #fff 0%, #eef8ff 62%, #fff1a8 100%); }
.day-summary h3 { font-family: "Arial Black", Inter, "Yu Gothic UI", sans-serif; letter-spacing: -.025em; }
.day-summary p { font-size: 14px; }
.round-button { border-width: 2px; background: white; box-shadow: 0 4px 0 rgba(16,36,94,.08); }
.day-body { background: white; }
.tag { min-height: 28px; padding-inline: 10px; font-size: 11px; background: white; }
.schedule-row { padding: 15px 0; }
.schedule-time { color: var(--maple-dark); font-size: 14px; }
.schedule-copy h4 { color: var(--indigo); font-size: 16px; }
.schedule-copy p { font-size: 14px; line-height: 1.5; }
.callout { border-radius: 0 14px 14px 0; background: #fff6bd; font-size: 14px; }
[dir="rtl"] .callout { border-radius: 14px 0 0 14px; }
.callout.warning { background: #ffe6ed; }
.callout.info { background: #e0f6ff; }
.choice-card { border-width: 2px; border-radius: 16px; box-shadow: 0 5px 0 rgba(16,36,94,.06); }
.choice-card.is-selected { background: #e5fff6; }
.choice-card strong { font-size: 15px; }
.choice-description { font-size: 13px; }
.choice-facts i { font-size: 11px; }
.note-area label { font-size: 12px; }
.note-area textarea { border-width: 2px; border-radius: 14px; background: #f5faff; }

.data-card, .transit-card, .map-card, .decision-card, .delight-card, .action-task, .checklist-overview, .food-card {
  border-width: 2px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
}
.data-card, .transit-card, .map-card, .decision-card, .delight-card, .action-task { background: linear-gradient(150deg, #fff, #f6fbff); }
.data-card h3, .map-card h3, .transit-route h3, .delight-card h3 { font-family: "Arial Black", Inter, "Yu Gothic UI", sans-serif; }
.data-card p, .map-card p, .transit-route p { font-size: 14px; }
.section-label { color: var(--indigo); font-size: 13px; }
.section-label::after { height: 4px; background: linear-gradient(90deg, var(--maple), var(--ginkgo), transparent); border-radius: 999px; }
[dir="rtl"] .section-label::after { background: linear-gradient(-90deg, var(--maple), var(--ginkgo), transparent); }
.icon-chip, .action-task-icon { background: #e5f6ff; border-width: 2px; border-color: #8bcdea; }
.deadline-strip { background: linear-gradient(90deg, var(--maple-dark), var(--maple)); }
.decision-box { border-width: 2px; border-inline-start-width: 8px; border-radius: 20px; background: #fff7d5; box-shadow: var(--shadow-soft); }
.option-switch label { border-width: 2px; border-radius: 16px; background: white; }
.map-hero { overflow: hidden; border-width: 2px; border-radius: 26px; background: linear-gradient(135deg, #0b235d, #0874a9); }
.map-art { background: linear-gradient(145deg, #b8edff, #fff3a7); }
.food-card { border-top-width: 8px; }
.checklist-overview { background: linear-gradient(120deg, #0b2054, #154d9f 72%, #067aa9); border-color: #3f82c5; }
.checklist-progress-track { border-radius: 999px; }
.checklist-progress-track span { background: linear-gradient(90deg, var(--ginkgo), var(--maple)); }
.action-task { overflow: hidden; }
.action-checkbox { background: #eef8ff; }
.action-task-title strong { font-family: "Arial Black", Inter, "Yu Gothic UI", sans-serif; }
.action-task.is-done { background: #e8fff7; }

.rail-help-hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  color: white;
  background: radial-gradient(circle at 90% 0, rgba(255,202,56,.34), transparent 28%), linear-gradient(135deg, #071a4c, #103c88 58%, #08799d);
  border: 2px solid #4d8fd0;
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(9,31,82,.22);
}
.rail-help-hero::after { content: "新幹線"; position: absolute; inset-inline-end: -18px; top: -15px; color: rgba(255,255,255,.055); font: 900 92px/1 "Arial Black", sans-serif; letter-spacing: -.09em; pointer-events: none; }
.rail-help-heading { position: relative; z-index: 1; display: grid; grid-template-columns: 62px minmax(0,1fr); gap: 16px; align-items: center; max-width: 850px; }
.rail-help-heading h3, .saphir-rescue h3, .izu-drive-card h3 { margin: 2px 0 7px; font: 900 25px/1.1 "Arial Black", Inter, "Yu Gothic UI", sans-serif; letter-spacing: -.03em; }
.rail-help-heading p { max-width: 720px; margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.86); }
.rail-signal { display: grid; width: 62px; height: 62px; place-items: center; color: var(--indigo); background: var(--ginkgo); border: 3px solid white; border-radius: 18px 18px 18px 5px; box-shadow: 7px 7px 0 var(--maple); font: 900 29px/1 "Arial Black", sans-serif; }
.booking-channel-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 11px; margin-top: 22px; }
.booking-channel { display: flex; min-width: 0; min-height: 255px; flex-direction: column; padding: 16px; color: var(--ink); background: rgba(255,255,255,.96); border: 2px solid rgba(255,255,255,.72); border-radius: 18px; box-shadow: 0 9px 0 rgba(2,16,56,.18); }
.booking-channel-icon { display: grid; width: 38px; height: 38px; margin-bottom: 12px; place-items: center; background: #e5f6ff; border: 2px solid #8bcdea; border-radius: 12px; font-size: 20px; }
.booking-channel h4 { margin: 2px 0 8px; color: var(--indigo); font: 850 17px/1.2 Inter, "Yu Gothic UI", sans-serif; }
.booking-channel p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.48; }
.booking-channel .not-for { display: block; margin-top: auto; padding: 8px 0 10px; color: var(--maple-dark); font-size: 13px; line-height: 1.35; }
.booking-channel .card-actions { margin-top: 0; }

.saphir-rescue { overflow: hidden; margin-top: 16px; background: linear-gradient(145deg, #ecfaff, #dce9ff); border: 2px solid #55a4ce; border-radius: 26px; box-shadow: var(--shadow-soft); }
.saphir-rescue > header { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 14px; align-items: center; padding: 22px; color: white; background: linear-gradient(115deg, #063e84, #0b79ad); }
.saphir-rescue > header p { max-width: 850px; margin: 3px 0 0; color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.5; }
.saphir-gem { display: grid; width: 54px; height: 54px; place-items: center; color: #bff4ff; border: 2px solid #8fe3f4; transform: rotate(45deg); font-size: 28px; }
.saphir-gem::first-letter { transform: rotate(-45deg); }
.rescue-lanes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 18px; }
.rescue-lanes article { position: relative; min-width: 0; padding: 18px 18px 18px 64px; background: white; border: 2px solid #a5c9e8; border-radius: 18px; }
[dir="rtl"] .rescue-lanes article { padding: 18px 64px 18px 18px; }
.lane-number { position: absolute; inset-inline-start: 18px; top: 18px; display: grid; width: 34px; height: 34px; place-items: center; color: var(--indigo); background: var(--ginkgo); border: 2px solid var(--indigo); border-radius: 50%; font-weight: 900; }
.rescue-lanes h4 { margin: 0 0 8px; color: var(--indigo); font-size: 18px; }
.rescue-lanes p, .rescue-lanes li { color: var(--muted); font-size: 14px; line-height: 1.5; }
.rescue-lanes ol { margin: 0 0 14px; padding-inline-start: 20px; }
.japanese-request { margin: 12px 0; padding: 13px; color: #071a4c; background: #fff6bd; border: 2px dashed var(--maple); border-radius: 13px; font-size: 16px; line-height: 1.55; }
.japanese-request .copy-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.saphir-rescue > footer { padding: 13px 20px; color: #07305f; background: rgba(255,255,255,.56); border-top: 1px solid #aacbe6; font-size: 14px; }

.izu-drive-card { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr); gap: 18px; align-items: center; padding: 22px; background: linear-gradient(135deg, #fff 0%, #fff7ce 62%, #ffe791 100%); border: 2px solid #e5aa16; border-inline-start: 9px solid var(--maple); border-radius: 24px; box-shadow: var(--shadow-soft); }
.izu-drive-card.is-transit { background: linear-gradient(135deg, #fff, #e3f6ff); border-color: #69acd2; border-inline-start-color: var(--river); }
.izu-drive-copy p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.52; }
.drive-facts { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.drive-facts span { padding: 7px 9px; color: #0b2a57; background: rgba(255,255,255,.82); border: 1px solid rgba(16,36,94,.18); border-radius: 999px; font-size: 13px; font-weight: 800; }
.izu-mode-switch { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.izu-mode-switch legend { margin-bottom: 7px; color: var(--maple-dark); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.izu-mode-switch label { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 9px; padding: 12px; background: rgba(255,255,255,.85); border: 2px solid rgba(16,36,94,.15); border-radius: 14px; cursor: pointer; }
.izu-mode-switch label.is-selected { background: white; border-color: var(--moss); box-shadow: inset 5px 0 0 var(--moss); }
[dir="rtl"] .izu-mode-switch label.is-selected { box-shadow: inset -5px 0 0 var(--moss); }
.izu-mode-switch input { margin-top: 3px; accent-color: var(--moss); }
.izu-mode-switch strong, .izu-mode-switch small { display: block; }
.izu-mode-switch strong { color: var(--indigo); font-size: 15px; }
.izu-mode-switch small { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.izu-drive-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 3px; }

.food-dialog, .secrets-dialog { overflow: hidden auto; border: 3px solid white; border-radius: 30px; }
.secrets-heading h2 { font-family: "Arial Black", Inter, "Yu Gothic UI", sans-serif; }
.secret-card { border-width: 2px; border-radius: 18px; background: linear-gradient(150deg, white, #f2f9ff); }
.secret-card.is-found { background: linear-gradient(150deg, #fff, #e4fff5); }
.secret-card h3 { font-family: "Arial Black", Inter, "Yu Gothic UI", sans-serif; }
.omikuji-card { border-width: 2px; border-radius: 22px; box-shadow: var(--shadow-soft); }
.toast { color: var(--indigo); background: var(--ginkgo); border: 2px solid white; border-radius: 999px; font-weight: 850; }

[hidden] { display: none !important; }
[dir="rtl"] body { font-family: Arial, "Yu Gothic UI", sans-serif; }
[dir="rtl"] .eyebrow { letter-spacing: .06em; }
[dir="rtl"] .schedule-time { text-align: end; }
[dir="rtl"] .airport:last-child { text-align: start; }
[dir="rtl"] .timeline::before { right: 45px; left: auto; }

@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-photo { grid-column: 1 / -1; height: 260px; }
  .side-quest-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .side-quest-card:nth-child(3n) { border-inline-end: 1px solid var(--line); }
  .side-quest-card:nth-child(2n) { border-inline-end: 0; }
  .three-column { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .map-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .region-map-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .transit-card { grid-template-columns: 140px minmax(0,1fr); }
  .ticket-toggle { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; }
  .booking-channel-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .app-header { position: relative; }
  .header-main { padding: 12px 14px; min-height: 80px; }
  .monogram { width: 48px; height: 48px; flex-basis: 48px; }
  .brand-copy > p:last-child, .header-actions .button-label { display: none; }
  .icon-button { width: 44px; justify-content: center; padding: 0; }
  .secrets-button { width: auto; min-width: 92px; padding: 0 6px; gap: 4px; }
  .header-actions .secrets-button .button-label { display: inline; font-size: 10px; }
  .sound-panel { align-items: stretch; flex-direction: column; padding: 16px; }
  .sound-controls { flex-wrap: wrap; }
  .status-strip { padding: 7px 14px 9px; }
  .app-shell { display: block; padding: 0; }
  .desktop-rail { display: none; }
  main { padding: 26px 14px calc(92px + var(--safe-bottom)); border: 0; border-radius: 0; box-shadow: none; }
  .view-heading { align-items: flex-start; flex-direction: column; margin-bottom: 19px; }
  .view-heading h2 { font-size: 36px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .countdown-card, .next-action-card { min-height: 190px; padding: 18px; }
  .hero-photo { height: 220px; }
  .discovery-banner, .discovery-overlay { min-height: 350px; }
  .discovery-banner > img { object-position: 64% center; }
  .secrets-layout { grid-template-columns: 1fr; }
  .omikuji-card { position: static; display: grid; grid-template-columns: minmax(170px,.72fr) 1fr; }
  .omikuji-copy { display: flex; flex-direction: column; justify-content: center; border-top: 0; border-inline-start: 1px solid var(--line); }
  .two-column, .planner-grid { grid-template-columns: 1fr; }
  .checklist-overview { grid-template-columns: auto minmax(0,1fr); }
  .checklist-legend { grid-column: 1 / -1; grid-template-columns: auto 1fr; gap: 8px; align-items: baseline; min-width: 0; text-align: start; }
  .action-task summary { grid-template-columns: 36px minmax(0,1fr) 20px; gap: 9px; padding: 12px; }
  .action-task-meta { grid-column: 2 / 3; grid-row: 2; max-width: none; text-align: start; }
  .action-task-meta b, .action-task-meta small { display: inline; }
  .action-task-meta small::before { content: " · "; }
  .action-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .action-task-body { padding: 3px 14px 18px; }
  .reunion-steps { grid-template-columns: 1fr; }
  .booking-channel-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .rescue-lanes, .izu-drive-card { grid-template-columns: 1fr; }
  .izu-drive-actions { grid-column: auto; }
  .map-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .day-map-list { grid-template-columns: 1fr; }
  .day-map-row { grid-template-columns: 62px minmax(0,1fr) auto; }
  .food-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .food-summary-item { border-bottom: 1px solid var(--line); }
  .food-summary-item:nth-child(even) { border-inline-end: 0; }
  .food-summary-item:last-child { border-bottom: 0; }
  .delight-grid { grid-template-columns: 1fr 1fr; }
  .mobile-nav {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    overflow-x: auto;
    padding: 6px max(7px, env(safe-area-inset-left)) calc(6px + var(--safe-bottom)) max(7px, env(safe-area-inset-right));
    color: white;
    background: linear-gradient(96deg, #081944, #123b86 72%, #0875a8);
    border-top: 3px solid var(--ginkgo);
    box-shadow: 0 -10px 32px rgba(26,30,38,.1);
    backdrop-filter: blur(18px);
    scrollbar-width: none;
  }
  .mobile-nav::-webkit-scrollbar { display: none; }
  .mobile-nav .nav-button { min-width: 0; width: calc(100% / 7); flex: 1 0 calc(100% / 7); grid-template-columns: 1fr; grid-template-rows: 25px 17px; justify-items: center; gap: 0; padding: 4px 2px; color: rgba(255,255,255,.78); border: 0; border-top: 3px solid transparent; border-radius: 9px; background: transparent; font-size: 9px; text-align: center; box-shadow: none; }
  .mobile-nav .nav-button[aria-current="page"] { color: var(--indigo); background: var(--ginkgo); border-top-color: var(--maple); box-shadow: none; }
  .mobile-nav .nav-icon { font-size: 18px; }
  .toast { bottom: calc(84px + var(--safe-bottom)); }
}

@media (max-width: 580px) {
  .status-strip { grid-template-columns: 1fr; gap: 5px; }
  .progress-track { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .countdown-card, .next-action-card { min-height: 165px; }
  .hero-photo { grid-column: auto; height: 210px; }
  .discovery-board { margin-inline: -2px; }
  .discovery-banner, .discovery-overlay { min-height: 390px; }
  .discovery-banner::after, [dir="rtl"] .discovery-banner::after { background: linear-gradient(0deg, rgba(9,17,36,.92) 0%, rgba(9,17,36,.64) 56%, rgba(9,17,36,.06) 100%); }
  .discovery-overlay { justify-content: flex-end; padding: 24px 20px; }
  .side-quest-grid { grid-template-columns: 1fr; }
  .side-quest-card, .side-quest-card:nth-child(2n), .side-quest-card:nth-child(3n) { min-height: 0; border-inline-end: 0; }
  .secrets-shell { padding: 48px 15px 22px; }
  .secrets-heading { grid-template-columns: 1fr; gap: 12px; padding-inline-end: 0; }
  .discovery-score { display: flex; gap: 7px; align-items: baseline; text-align: start; }
  .omikuji-card { display: block; }
  .omikuji-card img { max-height: 330px; }
  .omikuji-copy { border-top: 1px solid var(--line); border-inline-start: 0; }
  .secret-grid { grid-template-columns: 1fr; }
  .secret-card { min-height: 0; }
  .timeline::before { display: none; }
  .day-card { grid-template-columns: 1fr; gap: 7px; }
  .date-marker { justify-self: start; width: auto; height: 30px; padding: 0 10px; border-radius: 999px; display: inline-flex; gap: 5px; box-shadow: none; }
  .date-marker strong { font-size: 14px; }
  .date-marker span { margin: 0; }
  .day-summary { min-height: 96px; padding: 15px; }
  .day-summary h3 { font-size: 19px; }
  .day-body { padding: 0 15px 16px; }
  .day-photo { margin-inline: -15px; }
  .schedule-row { grid-template-columns: 57px 22px minmax(0,1fr); gap: 7px; }
  .choice-grid { grid-template-columns: 1fr; }
  .three-column { grid-template-columns: 1fr; }
  .map-hero { grid-template-columns: 1fr; }
  .map-art { min-height: 190px; }
  .map-grid { grid-template-columns: 1fr 1fr; }
  .region-map-grid { grid-template-columns: 1fr 1fr; }
  .transit-card { grid-template-columns: 1fr; gap: 12px; }
  .rail-help-hero { padding: 18px; border-radius: 20px; }
  .rail-help-heading, .saphir-rescue > header { grid-template-columns: 46px minmax(0,1fr); gap: 11px; }
  .rail-signal, .saphir-gem { width: 44px; height: 44px; font-size: 22px; }
  .rail-help-heading h3, .saphir-rescue h3, .izu-drive-card h3 { font-size: 21px; }
  .booking-channel-grid { grid-template-columns: 1fr; }
  .booking-channel { min-height: 0; }
  .rescue-lanes { grid-template-columns: 1fr; padding: 12px; }
  .rescue-lanes article, [dir="rtl"] .rescue-lanes article { padding: 58px 15px 15px; }
  .lane-number { inset-inline-start: 15px; top: 14px; }
  .izu-drive-card { padding: 17px; }
  .transit-core { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ticket-toggle { grid-column: auto; }
  .option-switch { grid-template-columns: 1fr; }
  .delight-grid { grid-template-columns: 1fr; }
  .view-actions { width: 100%; }
  .view-actions button { flex: 1; }
}

@media (max-width: 360px) {
  .brand-copy .eyebrow { display: none; }
  .secrets-button { min-width: 70px; }
  .secrets-button .secret-badge { display: none; }
}

@media print {
  .app-header, .desktop-rail, .mobile-nav, .view-actions, .round-button, .sound-panel, .ambient, .discovery-board, .secrets-dialog, .samurai-mission, .kaiju, .train-easter-egg { display: none !important; }
  .app-shell { display: block; }
  main { padding: 0; }
  .view { display: none !important; }
  #view-itinerary { display: block !important; }
  .hero-grid, .segment-tabs, .legend-row { display: none; }
  .timeline::before { display: none; }
  .day-card { break-inside: avoid; }
  .day-panel { box-shadow: none; }
  details { display: block; }
  details > * { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* QA 2.16: retain readable numeric order, independent day actions and keyboard focus. */
.flight-route,.flight-time,.checklist-score,#secretBadge,#secretsCount,.action-group-heading>span {direction:ltr;unicode-bidi:isolate}
.day-card {position:relative}
.day-summary {padding-inline-end:112px}
.day-controls {position:absolute;inset-inline-end:18px;top:23px;z-index:1}
.day-controls .round-button {width:40px;height:40px}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {outline:3px solid #174e85;outline-offset:3px}
.switch:focus-within .slider,.action-checkbox:focus-within>span {outline:3px solid #174e85;outline-offset:3px}
.tag.green {color:#00634e}
.segment-tab[aria-pressed=true] {background:var(--ink);color:white}
#storageNotice {padding:16px;border:2px solid #a32a27;background:#fff4e9;color:#69201c}
.route-legs {margin-block:10px;min-width:0}
.route-legs summary {cursor:pointer;min-height:44px;padding:10px;font-weight:700}
.route-legs .card-actions {padding:8px}
.day-map-row .route-legs {grid-column:1 / -1}
@media(max-width:600px){.day-summary{padding-inline-end:22px;padding-bottom:62px}.day-controls{top:80px;inset-inline-end:22px}.day-card:has(.day-summary) .day-controls{top:18px}.day-summary>div{padding-top:48px}.copy-mini{min-width:32px;min-height:32px}}

.tag.blue {color:#006597}.tag.red,.choice-copy>small {color:#ad2449}.choice-copy strong em {background:#00634e}.choice-copy>small{font-size:11px}.choice-copy strong em{font-size:10px}.ticket-note{font-size:11px;max-width:220px}.ticket-toggle{flex-wrap:wrap}.day-photo img{width:100%;height:100%;object-fit:cover}

@media(min-width:821px){.desktop-rail{top:calc(var(--header-height,143px) + 12px);max-height:calc(100vh - var(--header-height,143px) - 24px);overflow-y:auto}html{scroll-padding-top:calc(var(--header-height,143px) + 12px)}}

/* The viewing screen is a convenience gate, not server authentication. */
#tripApplication {display:contents}
#tripApplication[hidden], #accessScreen[hidden] {display:none !important}
.access-screen {min-height:100svh;display:grid;place-items:center;padding:24px;background:#f4f0e8}
.access-card {width:min(100%,440px);padding:clamp(24px,6vw,40px);border:1px solid #d1c9bc;border-radius:24px;background:#fffdf8;box-shadow:0 18px 60px #17264b14;color:#17264b}
.access-card h1 {font-size:28px;line-height:1.3;margin:12px 0 28px}
.access-card h1 span {display:block;font-size:22px;margin-top:8px}
.access-card label {display:block;font-weight:700;margin-bottom:10px}
.access-card label span {display:inline-block;margin-inline-start:8px}
.access-card input {width:100%;min-height:48px;border:1px solid #68738a;border-radius:10px;background:white;padding:10px 14px;font:inherit;font-size:18px;color:#17264b}
.access-card input:focus-visible {outline:3px solid #006597;outline-offset:3px}
.access-card button {width:100%;min-height:48px;justify-content:center}
#accessError {min-height:24px;color:#ad2449;font-size:14px;line-height:1.5;margin:12px 0}
.lock-he, html[lang="he"] .lock-en {display:none}
html[lang="he"] .lock-he {display:inline}
@media(max-width:600px){#accessLock {min-width:44px;min-height:44px;padding:8px}#accessLock span:first-child{display:none}}
@media(max-width:600px){
  .header-main{display:grid;grid-template-columns:48px minmax(0,1fr);gap:10px 14px}
  .header-actions{grid-column:1 / -1;margin-inline-start:0;justify-content:flex-end}
  .brand-copy h1{white-space:nowrap}
}
