:root {
  --ink: #0b0d10;
  --ink-2: #12151a;
  --ink-3: #1a1e25;
  --ink-4: #252a33;
  --line: rgba(237, 234, 227, 0.09);
  --line-strong: rgba(237, 234, 227, 0.18);
  --washi: #edeae3;
  --muted: #a3a6ab;
  --faint: #6c7078;
  --shu: #e4543c;
  --shu-soft: rgba(228, 84, 60, 0.16);
  --gold: #d9b46c;
  --gold-soft: rgba(217, 180, 108, 0.16);
  --matcha: #8cc084;
  --matcha-soft: rgba(140, 192, 132, 0.16);
  --neon: #4fe0ff;
  --neon-pink: #ff4f9a;
  --radius: 18px;
  --radius-sm: 10px;
  --serif: "Shippori Mincho", "Noto Serif JP", Georgia, serif;
  --sans: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --jp: "Noto Sans JP", sans-serif;
  --topbar: 64px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--washi);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[lang="ja"] { font-family: var(--jp); }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar); z-index: 50;
  display: flex; align-items: center; gap: 28px; padding: 0 24px;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-sun { width: 18px; height: 18px; border-radius: 50%; background: var(--shu); box-shadow: 0 0 18px rgba(228, 84, 60, 0.6); }
.brand-kanji { font-size: 20px; font-weight: 700; }
.brand-name { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 0.04em; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 500;
  text-decoration: none; white-space: nowrap; color: var(--muted); transition: color .2s, background .2s;
}
.nav a:hover { color: var(--washi); background: var(--ink-3); }
.nav a.active { color: var(--washi); background: var(--ink-4); box-shadow: inset 0 -2px 0 var(--shu); }
.tally { display: flex; gap: 8px; font-size: 13px; flex-shrink: 0; }
.tally span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ink-3); color: var(--muted); }
.tally b { color: var(--washi); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.want { background: var(--matcha); }
.dot.maybe { background: var(--gold); }
.dot.skip { background: var(--faint); }

main { padding-top: var(--topbar); min-height: 100vh; }
.page { max-width: 1240px; margin: 0 auto; padding: 48px 24px 96px; }
.page-head { margin-bottom: 32px; max-width: 760px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--shu); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; }
.page-head h1 { font-size: clamp(32px, 4.5vw, 52px); margin: 8px 0 12px; }
.page-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--ink-3); font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .15s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); background: var(--ink-4); }
.btn.primary { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn.primary:hover { background: #f0634b; }
.btn.ghost { background: transparent; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; font-size: 13px; color: var(--muted);
  transition: all .2s; white-space: nowrap;
}
.chip:hover { color: var(--washi); border-color: var(--washi); }
.chip.on { background: var(--washi); color: var(--ink); border-color: var(--washi); }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,0.08); color: var(--washi); backdrop-filter: blur(6px); }

/* ---------- Home ---------- */
.hero {
  position: relative; height: calc(100vh - var(--topbar)); min-height: 560px; overflow: hidden;
  display: flex; align-items: flex-end;
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 14s ease-out both; }
.hero-slide:not(.on) img { animation: none; }
@keyframes kenburns { from { transform: scale(1.12) translate(1.5%, 1%); } to { transform: scale(1) translate(0, 0); } }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,0.15) 0%, rgba(11,13,16,0.2) 40%, rgba(11,13,16,0.92) 88%, var(--ink) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 24px 72px; }
.hero h1 { font-size: clamp(44px, 8vw, 104px); letter-spacing: -0.01em; }
.hero h1 .jp { display: block; font-size: 0.32em; letter-spacing: 0.5em; color: var(--gold); margin-bottom: 14px; font-family: var(--jp); font-weight: 400; }
.hero p { max-width: 620px; font-size: 18px; color: #d6d3cc; margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-caption { position: absolute; right: 24px; bottom: 24px; z-index: 2; font-size: 12px; color: var(--muted); text-align: right; }
.hero-caption b { display: block; color: var(--washi); font-family: var(--serif); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.step { padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); position: relative; }
.step-n { font-family: var(--serif); font-size: 44px; color: var(--shu); line-height: 1; }
.step h3 { font-size: 20px; margin: 10px 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.fact { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, var(--ink-2), var(--ink)); }
.fact .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-family: var(--serif); font-size: 26px; margin: 6px 0; }
.fact p { margin: 0; color: var(--muted); font-size: 14.5px; }
.fact.ok .v { color: var(--matcha); }
.fact.warn .v { color: var(--gold); }
.fact a { color: var(--gold); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 64px 0 20px; }
.section-title h2 { font-size: clamp(24px, 3vw, 34px); }
.section-title a { color: var(--muted); font-size: 14px; }

.budget-bar { margin-top: 14px; }
.budget-track { position: relative; height: 34px; border-radius: 10px; background: var(--ink-3); overflow: hidden; display: flex; }
.budget-seg { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; color: rgba(0,0,0,.75); white-space: nowrap; overflow: hidden; }
.budget-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.budget-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.budget-marker { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--washi); }
.budget-marker span { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--washi); white-space: nowrap; }

/* ---------- Explore ---------- */
.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; padding: 18px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.toolbar-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); min-width: 90px; }
.month-pills { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; flex: 1; min-width: 280px; }
.month-pill { padding: 6px 0; border-radius: 8px; border: 1px solid var(--line); background: transparent; font-size: 12px; color: var(--muted); }
.month-pill.on { background: var(--shu); border-color: var(--shu); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 20px; }
.card {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; cursor: pointer;
  background: var(--ink-3); border: 1px solid var(--line); isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, opacity .35s, filter .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); z-index: -2; }
.card:hover img { transform: scale(1.06); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(8,9,11,0.94) 100%); }
.card.dim { opacity: 0.38; filter: grayscale(0.8); }
.card.dim:hover { opacity: 0.8; filter: none; }
.card-top { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.match {
  display: inline-flex; align-items: baseline; gap: 4px; padding: 6px 10px; border-radius: 12px;
  background: rgba(11,13,16,0.65); backdrop-filter: blur(8px); font-weight: 700; font-size: 18px;
}
.match small { font-size: 11px; font-weight: 500; color: var(--muted); }
.decision-badge { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; backdrop-filter: blur(8px); }
.decision-badge.want { background: var(--matcha); color: #10200e; }
.decision-badge.maybe { background: var(--gold); color: #2a1f08; }
.decision-badge.skip { background: rgba(108,112,120,0.85); color: var(--washi); }
.card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; }
.card-region { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-size: 26px; margin: 6px 0 4px; }
.card-jp { font-size: 13px; color: var(--muted); }
.card p { margin: 8px 0 14px; font-size: 14.5px; color: #cfccc5; }
.card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.card-meta b { color: var(--washi); font-weight: 600; }
.card-warn { margin-top: 10px; font-size: 12.5px; color: var(--gold); }

.effort { display: inline-flex; gap: 3px; vertical-align: middle; }
.effort i { width: 7px; height: 14px; border-radius: 2px; background: rgba(255,255,255,0.15); }
.effort i.on { background: var(--shu); }

/* ---------- Month strip ---------- */
.mstrip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.mstrip div { height: 30px; border-radius: 5px; display: flex; align-items: flex-end; justify-content: center; font-size: 10.5px; padding-bottom: 3px; color: rgba(0,0,0,.7); font-weight: 600; }
.m0 { background: repeating-linear-gradient(135deg, #2a2e36 0 4px, #1f232a 4px 8px); color: var(--faint) !important; }
.m1 { background: #5b4a3a; color: rgba(255,255,255,.7) !important; }
.m2 { background: #b8a26a; }
.m3 { background: var(--matcha); }
.mstrip-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.mstrip-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -2px; }

/* ---------- Overlay (immersion) ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: var(--ink); overflow-y: auto; overscroll-behavior: contain; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.ov-close {
  position: fixed; top: 18px; right: 18px; z-index: 120; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(11,13,16,0.7); backdrop-filter: blur(10px); font-size: 22px; line-height: 1;
}
.ov-nav { position: fixed; top: 18px; left: 18px; z-index: 120; display: flex; gap: 8px; }
.ov-nav button { height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(11,13,16,0.7); backdrop-filter: blur(10px); font-size: 14px; }
.ov-hero { position: relative; height: 92vh; min-height: 560px; overflow: hidden; display: flex; align-items: flex-end; }
.ov-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 18s ease-out both; }
.ov-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,13,16,0.25) 0%, rgba(11,13,16,0) 30%, rgba(11,13,16,0.85) 80%, var(--ink) 100%); }
.ov-hero-text { position: relative; z-index: 2; max-width: 1100px; width: 100%; margin: 0 auto; padding: 0 24px 56px; }
.ov-hero h1 { font-size: clamp(40px, 7vw, 88px); }
.ov-hero .jp { font-size: 18px; color: var(--gold); letter-spacing: .3em; }
.ov-hero .tagline { font-size: clamp(17px, 2vw, 22px); color: #ddd9d1; max-width: 720px; margin: 14px 0 0; font-family: var(--serif); }
.scroll-hint { margin-top: 26px; font-size: 13px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 40px; background: linear-gradient(var(--muted), transparent); margin-top: 10px; animation: drip 2s ease-in-out infinite; }
@keyframes drip { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

.ov-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 120px; }
.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat .k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.stat .v { font-size: 20px; font-weight: 600; margin-top: 4px; }
.stat .s { font-size: 12.5px; color: var(--muted); }
.ov-section { margin-top: 72px; }
.ov-section > h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 8px; }
.ov-section > .lead { color: var(--muted); margin: 0 0 24px; max-width: 700px; }

/* Day timeline (scrollytelling) */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.story-visual { position: sticky; top: 90px; height: calc(100vh - 140px); max-height: 720px; border-radius: var(--radius); overflow: hidden; background: var(--ink-3); }
.story-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease, transform 6s ease; transform: scale(1.06); }
.story-visual img.on { opacity: 1; transform: scale(1); }
.story-visual .credit { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 11px; color: rgba(255,255,255,.75); text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.story-steps { padding: 10vh 0 30vh; }
.beat { padding: 26px 0 26px 28px; border-left: 2px solid var(--line); opacity: .38; transition: opacity .5s, border-color .5s; min-height: 34vh; }
.beat.on { opacity: 1; border-color: var(--shu); }
.beat .t { font-family: var(--serif); font-size: 15px; color: var(--shu); letter-spacing: .08em; }
.beat h3 { font-size: 24px; margin: 6px 0 10px; }
.beat p { margin: 0; color: #d4d1ca; font-size: 16.5px; }
.beat .sense { margin-top: 12px; font-size: 14px; color: var(--gold); font-style: italic; }

/* Video */
.video-box { border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; position: relative; border: 1px solid var(--line); }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background-size: cover; background-position: center; }
.video-poster::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.video-poster span { position: relative; width: 78px; height: 78px; border-radius: 50%; background: var(--shu); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 40px rgba(228,84,60,.5); transition: transform .2s; }
.video-poster:hover span { transform: scale(1.08); }
.video-poster span::after { content: ""; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 14px; }
.video-item { text-align: left; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--ink-2); font-size: 14px; line-height: 1.35; transition: border-color .2s; }
.video-item:hover { border-color: var(--line-strong); }
.video-item.on { border-color: var(--shu); background: var(--shu-soft); }
.video-item small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.lang { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 4px; margin-right: 6px; background: var(--ink-4); color: var(--muted); vertical-align: 1px; }
.lang.pt { background: #1f8f4e; color: #fff; }

/* Two-col lists */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.panel { padding: 24px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); }
.panel h3 { font-size: 20px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.panel ul { margin: 0; padding: 0; list-style: none; }
.panel li { padding: 10px 0; border-top: 1px solid var(--line); color: #d4d1ca; font-size: 15px; }
.panel li:first-child { border-top: 0; padding-top: 0; }
.panel.good h3 { color: var(--matcha); }
.panel.bad h3 { color: var(--gold); }
.panel.book h3 { color: var(--neon); }
.panel li b { color: var(--washi); }

.costs { width: 100%; border-collapse: collapse; font-size: 15px; }
.costs td { padding: 10px 0; border-top: 1px solid var(--line); }
.costs td:last-child { text-align: right; white-space: nowrap; color: var(--muted); }
.costs td:last-child b { color: var(--washi); }
.costs tr.total td { font-weight: 700; border-top: 1px solid var(--line-strong); }
.note { font-size: 13px; color: var(--faint); margin-top: 10px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; font-size: 10.5px; color: rgba(255,255,255,.75); background: linear-gradient(transparent, rgba(0,0,0,.7)); }

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

.decide-bar {
  position: fixed; right: 24px; bottom: 24px; z-index: 110; width: fit-content; max-width: calc(100% - 32px);
  display: flex; gap: 8px; padding: 8px; border-radius: 999px; background: rgba(18,21,26,0.88); backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
}
.decide-bar button { white-space: nowrap; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; background: transparent; font-weight: 600; font-size: 15px; color: var(--muted); }
.decide-bar button:hover { color: var(--washi); background: var(--ink-3); }
.decide-bar button.on.want { background: var(--matcha); color: #10200e; }
.decide-bar button.on.maybe { background: var(--gold); color: #2a1f08; }
.decide-bar button.on.skip { background: var(--ink-4); color: var(--washi); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; animation: fadein .25s; }
.lightbox img { max-height: 88vh; max-width: 100%; border-radius: 8px; }
.lightbox p { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Swipe ---------- */
.swipe-page { max-width: 520px; margin: 0 auto; padding: 20px 16px 48px; text-align: center; }
.swipe-stack { position: relative; height: min(calc(100vh - 330px), 620px); min-height: 420px; margin: 18px auto 18px; }
.swipe-card {
  position: absolute; inset: 0; border-radius: 24px; overflow: hidden; background: var(--ink-3); text-align: left;
  box-shadow: var(--shadow); touch-action: none; user-select: none; will-change: transform; border: 1px solid var(--line);
}
.swipe-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.swipe-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,9,11,.95) 100%); }
.swipe-card .card-body { z-index: 2; }
.swipe-card.back { transform: scale(.94) translateY(18px); filter: brightness(.6); }
.swipe-stamp { position: absolute; top: 28px; z-index: 3; padding: 6px 16px; border: 3px solid; border-radius: 10px; font-weight: 800; font-size: 26px; letter-spacing: .08em; opacity: 0; transform: rotate(-12deg); }
.swipe-stamp.want { left: 24px; color: var(--matcha); }
.swipe-stamp.skip { right: 24px; color: var(--muted); transform: rotate(12deg); }
.swipe-stamp.maybe { left: 50%; margin-left: -70px; top: auto; bottom: 46%; color: var(--gold); transform: none; }
.swipe-actions { display: flex; justify-content: center; gap: 18px; align-items: center; }
.swipe-actions button { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ink-2); font-size: 24px; transition: transform .15s; }
.swipe-actions button:hover { transform: scale(1.08); }
.swipe-actions .want { color: var(--matcha); width: 76px; height: 76px; font-size: 30px; }
.swipe-actions .maybe { color: var(--gold); }
.swipe-actions .skip { color: var(--muted); }
.swipe-actions .info { font-size: 15px; width: auto; padding: 0 20px; border-radius: 999px; height: 48px; }
.kbd { display: inline-block; padding: 1px 7px; border-radius: 5px; border: 1px solid var(--line-strong); font-size: 12px; color: var(--muted); }
.swipe-done { padding: 60px 20px; }
.swipe-done h2 { font-size: 34px; margin-bottom: 12px; }

/* ---------- When ---------- */
.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 13px; }
.heat th { font-weight: 500; color: var(--muted); padding: 6px 4px; }
.heat th.row { position: sticky; left: 0; z-index: 1; background: var(--ink); text-align: left; color: var(--washi); font-weight: 500; white-space: nowrap; padding-right: 12px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.heat th.row small { color: var(--faint); font-weight: 400; }
.heat td { height: 34px; border-radius: 6px; text-align: center; font-weight: 600; font-size: 11px; position: relative; }
.heat tr.sep td, .heat tr.sep th { padding-top: 22px; }
.heat .col-on { outline: 2px solid var(--washi); outline-offset: -1px; }
.heat thead th.mon { cursor: pointer; border-radius: 6px; }
.heat thead th.mon:hover { color: var(--washi); background: var(--ink-3); }
.heat thead th.mon.col-on { color: var(--ink); background: var(--washi); outline: none; }
.heat-wrap { overflow-x: auto; padding-bottom: 6px; }
.score-row td { color: var(--ink); }
.month-detail { margin-top: 28px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.month-big { font-family: var(--serif); font-size: 46px; line-height: 1; }
.month-score { font-size: 14px; color: var(--muted); }
.climate-cell { color: var(--washi); font-weight: 500; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--washi); font-size: 24px; margin-bottom: 8px; }

/* ---------- Map ---------- */
.map-page { position: relative; height: calc(100vh - var(--topbar)); isolation: isolate; z-index: 0; }
#map { position: absolute; inset: 0; background: #0e1116; }
.map-side { position: absolute; z-index: 500; top: 16px; left: 16px; width: 330px; max-height: calc(100% - 32px); overflow-y: auto; padding: 18px; border-radius: var(--radius); background: rgba(14,16,20,.88); backdrop-filter: blur(12px); border: 1px solid var(--line-strong); }
.map-side h2 { font-size: 22px; margin-bottom: 6px; }
.map-side p { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }
.map-row { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; cursor: pointer; }
.map-row:hover { background: var(--ink-3); }
.map-row img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.map-row b { display: block; font-size: 14px; font-weight: 600; }
.map-row small { color: var(--muted); font-size: 12px; }
.pin { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--washi); overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.6); transition: transform .2s; background: var(--ink-3); }
.pin img { width: 100%; height: 100%; object-fit: cover; }
.pin.want { border-color: var(--matcha); }
.pin.maybe { border-color: var(--gold); }
.pin.skip { border-color: var(--faint); opacity: .55; }
.pin:hover { transform: scale(1.15); }
.leaflet-container { font-family: var(--sans); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--ink-2); color: var(--washi); border: 1px solid var(--line-strong); }
.leaflet-popup-content { margin: 14px 16px; }
.leaflet-popup-content b { font-family: var(--serif); font-size: 17px; }
.leaflet-control-attribution { background: rgba(11,13,16,.7) !important; color: var(--faint) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; padding: 12px 20px; border-radius: 999px; background: var(--washi); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); animation: fadein .2s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tally { display: none; }
  .story { grid-template-columns: 1fr; }
  .story-visual { position: sticky; top: calc(var(--topbar) - 64px); height: 42vh; z-index: 1; }
  .story-steps { padding: 4vh 0 10vh; }
  .beat { min-height: 0; padding: 22px 0 22px 18px; opacity: 1; }
  .month-detail { grid-template-columns: 1fr; }
  .map-side { top: auto; bottom: 0; left: 0; right: 0; width: auto; max-height: 38vh; border-radius: var(--radius) var(--radius) 0 0; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 16px; gap: 14px; }
  .brand-name { display: none; }
  .page { padding: 32px 16px 80px; }
  .hero-content, .ov-hero-text, .ov-wrap { padding-left: 16px; padding-right: 16px; }
  .grid { grid-template-columns: 1fr; }
  .toolbar-label { min-width: 0; width: 100%; }
  .decide-bar { right: 50%; transform: translateX(50%); bottom: 14px; }
  .decide-bar button { padding: 10px 14px; font-size: 14px; }
  .ov-nav button { padding: 0 14px; }
  .ov-nav .nav-name { display: none; }
  .leaflet-bottom { bottom: 38vh; }
  .hero-caption { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.leaflet-control-layers { background: rgba(14,16,20,.9) !important; color: var(--washi) !important; border: 1px solid var(--line-strong) !important; border-radius: 12px !important; }
.leaflet-control-layers-toggle { filter: invert(1); }
.leaflet-bar a { background: var(--ink-2) !important; color: var(--washi) !important; border-color: var(--line) !important; }

.photo-credit { font-size: 11px; color: rgba(255,255,255,.72); text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.photo-credit a, .hero-caption a, .gallery figcaption a, .lightbox a, .story-visual .credit a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
.photo-credit.corner { position: absolute; right: 12px; bottom: 8px; z-index: 3; }
.card .photo-credit.corner, .swipe-card .photo-credit.corner { bottom: 4px; right: 14px; font-size: 10px; max-width: 70%; text-align: right; }
.ov-hero .photo-credit.corner { z-index: 3; right: 24px; bottom: 18px; }

/* Map v2: bases, connections and the A to B path */
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.on { background: var(--shu); border-color: var(--shu); color: #fff; }
.map-side-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.map-side-head h2 { margin: 0; }
.pin.picked { border-color: var(--shu); transform: scale(1.15); position: relative; }
.pin span { position: absolute; inset: auto 0 0 0; background: var(--shu); color: #fff; font-size: 11px; font-weight: 700; text-align: center; line-height: 15px; }
.hub-pin { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; font-size: 15px; line-height: 1; background: var(--ink-2); color: var(--gold); border: 1px solid var(--gold); box-shadow: 0 3px 10px rgba(0,0,0,.6); }
.hub-pin.junction { color: var(--muted); border-color: var(--line-strong); }
.hub-pop p { margin: 6px 0 8px; font-size: 13px; color: var(--muted); }
.hub-pop .jp { font-family: var(--jp); color: var(--muted); font-size: 13px; }
.hub-pop table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.hub-pop td { padding: 3px 4px 3px 0; border-top: 1px solid var(--line); vertical-align: top; }
.hub-pop td small { color: var(--faint); }
.hub-pop .hub-note { display: block; color: var(--faint); font-size: 11px; margin: 6px 0; }
.hub-pop .hub-air { font-size: 12px; color: var(--gold); margin-top: 2px; }
.hub-pop .hub-places { font-size: 12.5px; margin-bottom: 6px; }
.hub-pop a { color: var(--gold); font-size: 13px; }
.route-hint { font-size: 13px; color: var(--muted); }
.route-ends { font-size: 14px; margin-bottom: 10px; }
.route-ends b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--shu); color: #fff; font-size: 11px; }
.route-ends span { color: var(--faint); margin: 0 4px; }
.route-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.route-total div { background: var(--ink-3); border-radius: 10px; padding: 8px; }
.route-total strong { display: block; font-size: 16px; }
.route-total small { color: var(--faint); font-size: 11px; line-height: 1.3; display: block; }
.route-legs { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.route-legs li { display: flex; gap: 10px; }
.route-legs li > i { width: 4px; border-radius: 2px; flex-shrink: 0; }
.route-legs b { display: block; font-size: 13.5px; }
.route-legs span { display: block; font-size: 12.5px; color: var(--muted); }
.route-legs small { font-size: 11.5px; color: var(--faint); }
.route-legs em { font-style: normal; }
.jr-covered { color: var(--matcha); }
.jr-supplement, .jr-partial { color: var(--gold); }
.jr-none { color: var(--shu); }
.leaflet-control-layers-expanded { padding: 8px 12px !important; font-size: 13px; }
@media (max-width: 760px) {
  .leaflet-control-layers-expanded { font-size: 12px; }
}
.map-side-head .btn { white-space: nowrap; flex-shrink: 0; }
.map-side-head h2 { font-size: 20px; line-height: 1.1; }

/* Route view */
.route-settings { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 28px; }
.route-settings label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.route-settings select, .route-settings input { background: var(--ink-3); color: var(--washi); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 14px; text-transform: none; letter-spacing: 0; }
.route-settings input[type="number"] { width: 84px; }
.route-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.route-summary { position: sticky; top: calc(var(--topbar) + 16px); display: grid; gap: 16px; }
.summary-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.summary-nums div { background: var(--ink-3); border-radius: 10px; padding: 10px; }
.summary-nums strong { display: block; font-size: 18px; }
.summary-nums small { color: var(--faint); font-size: 11.5px; }
.alerts li { font-size: 14px; }
.alerts li.bad { color: #ff9b8a; }
.hint { color: var(--faint); font-size: 12.5px; margin: 10px 0 0; }
.pass-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pass-table td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.pass-table td:last-child { text-align: right; white-space: nowrap; }
.pass-table small { display: block; color: var(--faint); font-size: 11.5px; }
.pass-table tr.best td { color: var(--matcha); font-weight: 600; }
.timeline { display: grid; gap: 0; }
.stop { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.stop-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.stop-days { font-size: 12.5px; color: var(--muted); }
.stop-days b { color: var(--shu); text-transform: none; }
.stop h3 { font-size: 22px; margin-top: 4px; }
.stop h3 .jp { font-family: var(--jp); font-size: 14px; color: var(--muted); font-weight: 400; }
.stop-controls { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--ink-3); color: var(--washi); font-size: 16px; cursor: pointer; }
.icon-btn:disabled { opacity: .3; cursor: default; }
.nights { display: flex; align-items: center; gap: 8px; background: var(--ink-3); border-radius: 12px; padding: 3px; }
.nights span { font-size: 13.5px; min-width: 64px; text-align: center; }
.stop-places { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stop-place { display: flex; gap: 10px; align-items: center; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--ink-3); text-decoration: none; }
.stop-place img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.stop-place b { display: block; font-size: 14px; }
.stop-place small { color: var(--muted); font-size: 12px; }
.stop-empty { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.stop-stay { margin-top: 12px; font-size: 13px; color: var(--muted); }
.stop-stay span { color: var(--gold); }
.leg { margin: 0 0 0 28px; padding: 14px 0 14px 22px; border-left: 2px dashed var(--line-strong); }
.leg.long .leg-sum b { color: var(--gold); }
.leg.missing { color: var(--shu); }
.leg-bar { display: flex; gap: 3px; height: 6px; max-width: 280px; margin-bottom: 8px; }
.leg-bar i { border-radius: 3px; }
.leg-sum { font-size: 14px; }
.leg-sum small { color: var(--faint); }
.leg ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.leg li { margin-top: 3px; }
.leg li small { color: var(--faint); }
@media (max-width: 900px) {
  .route-grid { grid-template-columns: 1fr; }
  .route-summary { position: static; order: -1; }
  .leg { margin-left: 14px; padding-left: 14px; }
}

/* Budget view */
.budget-total { margin-bottom: 8px; }
.budget-big { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.budget-big strong { font-family: var(--serif); font-size: clamp(36px, 5vw, 52px); }
.verdict { font-size: 15px; padding: 6px 12px; border-radius: 999px; background: var(--ink-3); }
.verdict.good { color: var(--matcha); }
.verdict.ok { color: var(--gold); }
.verdict.over { color: #ff9b8a; }
.budget-lines { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 15px; }
.budget-lines td { padding: 10px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.budget-lines td:nth-child(2), .budget-lines td:nth-child(3) { text-align: right; white-space: nowrap; }
.budget-lines td:nth-child(2) { color: var(--muted); }
.budget-lines i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.budget-lines small { display: block; color: var(--faint); font-size: 12.5px; margin-left: 18px; }
.flight-input { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.flight-input input { background: var(--ink-3); color: var(--washi); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 10px; font: inherit; width: 120px; }
.stays { display: grid; gap: 8px; }
.stay-row { display: grid; grid-template-columns: 1fr minmax(0, 300px) 120px; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); }
.stay-row small { display: block; color: var(--muted); font-size: 12.5px; }
.stay-row select { background: var(--ink-3); color: var(--washi); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px; font: inherit; font-size: 14px; }
.stay-sum { text-align: right; font-weight: 600; }
.activities { display: grid; gap: 8px; }
.activities details { background: var(--ink-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.activities summary { display: flex; justify-content: space-between; cursor: pointer; }
.activities ul { list-style: none; padding: 0; margin: 10px 0 0; }
.activities li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (max-width: 700px) {
  .stay-row { grid-template-columns: 1fr; }
  .stay-sum { text-align: left; }
}

/* Itinerary view */
.muted { color: var(--muted); font-size: 14px; }
.checklist { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.checklist th { text-align: left; font-size: 12px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 6px; }
.checklist td { padding: 10px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.checklist td small { display: block; color: var(--faint); font-size: 12.5px; }
.checklist .due { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--gold); }
.checklist tr.done td { opacity: .45; text-decoration: line-through; }
.checklist tr.late .due { color: #ff9b8a; }
.checklist input { width: 18px; height: 18px; accent-color: var(--matcha); }
.days { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.day { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; break-inside: avoid; }
.day-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.day-num { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.day-date { color: var(--muted); font-size: 14px; }
.day-base { margin-left: auto; color: var(--gold); font-size: 14px; }
.day-travel { margin-top: 8px; font-size: 14px; color: var(--muted); display: grid; gap: 4px; }
.day-travel i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; }
.day-travel small { color: var(--faint); }
.day-places { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.day-places a { font-weight: 600; }
.day-places small { display: block; color: var(--muted); font-size: 13px; }
.day-note { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

@media print {
  :root { --ink: #fff; --ink-2: #fff; --ink-3: #f2f2f2; --washi: #111; --muted: #444; --faint: #666; --line: #ccc; --line-strong: #bbb; }
  body { background: #fff !important; color: #111; }
  .topbar, .no-print, .decide-bar, .toast, #overlay { display: none !important; }
  .page { padding: 0; max-width: none; }
  .day, .panel { border-color: #ccc; }
  a { color: #111; text-decoration: none; }
  .checklist input { display: none; }
  .checklist .due, .day-base { color: #7a5b12; }
}
