/* ==========================================================================
   ROAMLINE · 漫游线  —  design system
   paper + ink + clay; editorial travel journal; hand-made stamps
   ========================================================================== */

:root {
  --ink: #17140f;
  --ink-2: #2b251d;
  --ink-3: #4a4033;
  --paper: #f7f2e8;
  --paper-2: #efe6d3;
  --sand: #e4d8c1;
  --clay: #c4552d;
  --clay-d: #a6431f;
  --pine: #1f4a44;
  --gold: #d9a347;
  --muted: #6b5b45;
  --line: rgba(23, 20, 15, 0.14);
  --line-2: rgba(23, 20, 15, 0.08);
  --card: #fdf9f0;
  --shadow: 0 1px 0 rgba(23, 20, 15, .04), 0 22px 50px -32px rgba(23, 20, 15, .45);
  --shadow-lg: 0 2px 0 rgba(23, 20, 15, .05), 0 40px 80px -40px rgba(23, 20, 15, .55);
  --r: 18px;
  --r-sm: 12px;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --f-display: clamp(2.9rem, 6.1vw, 5.1rem);
  --f-h1: clamp(2.2rem, 4.6vw, 3.6rem);
  --f-h2: clamp(1.6rem, 3vw, 2.4rem);
  --f-h3: clamp(1.15rem, 1.6vw, 1.35rem);
  --f-lede: clamp(1.02rem, 1.5vw, 1.22rem);
  --max: 1200px;
  --pad: clamp(18px, 4vw, 44px);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--clay); color: #fff; }

.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .30;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ------------------------------------------------------------------ type */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.015em; line-height: 1.12; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.display {
  font-size: var(--f-display);
  line-height: .94;
  letter-spacing: -.035em;
  font-weight: 900;
}
.display em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--clay);
  letter-spacing: -.02em;
}
.h1 { font-size: var(--f-h1); line-height: 1.08; letter-spacing: -.03em; }
.h2 { font-size: var(--f-h2); line-height: 1.1; letter-spacing: -.03em; }
.h3 { font-size: var(--f-h3); }
.lede { font-size: var(--f-lede); color: var(--muted); line-height: 1.75; max-width: 34em; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.kicker {
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 10px; font-weight: 600;
}
.k-dot { width: 7px; height: 7px; background: var(--clay); border-radius: 50%; display: inline-block; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); font-weight: 600;
}
.eyebrow-line { width: 34px; height: 1px; background: currentColor; display: inline-block; }


.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
button:focus-visible, a:focus-visible { outline-offset: 3px; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: sticky; top: 0; z-index: 120;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line-2);
  transition: background .3s, border-color .3s;
}
.site-head.is-scrolled { background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 10px 30px -24px rgba(23,20,15,.6); }
.head-in { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 34px; height: 34px; color: var(--ink); display: block; }
.brand-mark svg { width: 100%; height: 100%; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-size: 1.02rem; letter-spacing: .04em; }
.brand-txt i {
  font-style: normal; font-size: .56rem; letter-spacing: .30em; color: var(--muted); margin-top: 5px;
}
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav-m { display: none !important; }
.nav a {
  font-size: .92rem; color: var(--ink-3); position: relative; padding: 6px 0; font-weight: 500;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--clay);
  transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.22,.8,.3,1);
}
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); }
.nav a.is-on { color: var(--ink); }
.head-act { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.pill-ghost {
  font-size: .86rem; padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s;
}
.pill-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: none; border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .3s, top .3s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: .96rem;
  letter-spacing: .01em; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.22,.8,.3,1), box-shadow .3s, background .3s, color .3s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--clay); transform: translateY(101%);
  transition: transform .45s cubic-bezier(.22,.8,.3,1); z-index: 0;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; border-color: var(--clay); }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: 0 12px 30px -18px rgba(196,85,45,.9); }
.btn-primary::before { background: var(--ink); }
.btn-primary:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--paper); border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .86rem; }
.btn .ar { transition: transform .35s cubic-bezier(.22,.8,.3,1); }
.btn:hover .ar { transform: translateX(4px); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; background: var(--ink); color: var(--paper);
  padding: clamp(48px, 8vw, 96px) 0 0; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; opacity: .55; }
.hero-bg canvas { width: 100%; height: 100%; display: block; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(90% 70% at 18% 22%, transparent 0%, rgba(23,20,15,.55) 62%, var(--ink) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, .84fr); gap: clamp(30px, 5vw, 70px);
  align-items: center; padding-bottom: clamp(48px, 7vw, 88px);
}
.hero .eyebrow { color: var(--gold); }
.hero .display { color: var(--paper); margin: 22px 0 20px; }
.hero .display em { color: var(--gold); }
.hero .lede { color: rgba(247,242,232,.72); max-width: 30em; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn-ghost { color: var(--paper); border-color: rgba(247,242,232,.26); }
.hero .btn-ghost:hover { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.hero-try { margin-top: 14px; font-size: .84rem; }
.hero-try a { color: var(--gold); border-bottom: 1px solid rgba(217,163,71,.4); padding-bottom: 2px; }
.hero-stats {
  display: flex; gap: clamp(24px, 4vw, 52px); margin: 44px 0 0; padding-top: 26px;
  border-top: 1px solid rgba(247,242,232,.16);
}
.hero-stats dt { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--paper); }
.hero-stats dd { margin: 6px 0 0; font-size: .78rem; letter-spacing: .14em; color: rgba(247,242,232,.55); text-transform: uppercase; }

.hero-art { position: relative; height: clamp(360px, 42vw, 480px); }
.poster {
  position: absolute; width: 78%; aspect-ratio: 3 / 4; background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: 20px; box-shadow: var(--shadow-lg); left: 6%; top: 6%;
  transform: rotate(-3.2deg); transition: transform .5s cubic-bezier(.22,.8,.3,1);
}
.poster-back {
  left: 26%; top: 18%; transform: rotate(4.5deg); background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
}
.poster-hero { z-index: 2; }
.poster-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.poster-map { margin: 14px 0; }
.poster-map svg { width: 100%; height: auto; }
.poster-days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.poster-days div { display: flex; flex-direction: column; gap: 2px; }
.poster-days b { font-family: var(--mono); font-size: .56rem; letter-spacing: .14em; color: var(--clay); }
.poster-days span { font-size: .66rem; color: var(--ink-3); }
.poster-foot { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; justify-content: space-between; align-items: flex-end; font-size: .6rem; letter-spacing: .12em; color: var(--muted); }
.poster-seal {
  width: 40px; height: 40px; border: 1.5px solid var(--clay); color: var(--clay); border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; transform: rotate(-12deg);
}
.poster-stamp .seal { width: 150px; height: 150px; opacity: .85; transform: rotate(-7deg); }

.ticker { position: relative; z-index: 2; border-top: 1px solid rgba(247,242,232,.14); overflow: hidden; }
.ticker-in {
  display: flex; gap: 46px; padding: 15px 0; width: max-content;
  animation: ticker 46s linear infinite;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; color: rgba(247,242,232,.5);
  text-transform: uppercase; white-space: nowrap;
}
.ticker-in span::before { content: "◆"; margin-right: 12px; color: var(--clay); font-size: .5rem; vertical-align: middle; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(58px, 8vw, 108px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 64px) 0; }
.section-paper { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink .lede, .section-ink .kicker, .section-ink .sec-sub { color: rgba(247,242,232,.6); }
.section-ink .h2 { color: var(--paper); }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sec-sub { color: var(--muted); max-width: 46em; margin-top: 4px; }
.sec-link { font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 3px; display: inline-flex; gap: 8px; }
.sec-link:hover { border-color: var(--clay); color: var(--clay); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.center { text-align: center; margin-inline: auto; }

/* ------------------------------------------------------------------ city grid */
.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.city-card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 20px 18px; display: flex; flex-direction: column; min-height: 262px;
  transition: transform .45s cubic-bezier(.22,.8,.3,1), box-shadow .45s, border-color .3s;
  overflow: hidden;
}
.city-card::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, color-mix(in srgb, var(--hue) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity .45s;
}
.city-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--hue) 40%, var(--line)); }
.city-card:hover::before { opacity: 1; }
.cc-top { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; color: var(--muted); }
.cc-index { color: var(--clay); }
.cc-seal { position: absolute; right: 16px; top: 40px; opacity: .9; transition: transform .5s cubic-bezier(.22,.8,.3,1); }
.city-card:hover .cc-seal { transform: rotate(-8deg) scale(1.06); }
.cc-name { font-size: 1.65rem; margin-top: 34px; letter-spacing: -.02em; }
.cc-tag { color: var(--muted); font-size: .84rem; margin-top: 6px; min-height: 3.2em; max-width: 12em; }
.cc-meta { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .72rem; color: var(--ink-3); }
.cc-meta li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
.cc-go { margin-top: auto; padding-top: 16px; font-size: .8rem; color: var(--clay); display: inline-flex; gap: 8px; align-items: center; }

/* ------------------------------------------------------------------ route cards */
.route-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.route-card {
  display: flex; flex-direction: column; gap: 12px; padding: 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--hue) 10%, var(--card)), var(--card) 60%);
  border: 1px solid var(--line); border-radius: var(--r); position: relative; overflow: hidden;
  transition: transform .45s cubic-bezier(.22,.8,.3,1), box-shadow .4s;
}
.route-card::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--hue) 40%, transparent); opacity: .6;
}
.route-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.rc-head { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .62rem; letter-spacing: .14em; color: var(--hue); }
.rc-name { font-size: 1.38rem; }
.rc-intro { font-size: .84rem; color: var(--muted); line-height: 1.7; }
.rc-stops { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rc-stops li { display: flex; align-items: center; gap: 5px; font-size: .72rem; background: rgba(255,255,255,.5); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.rc-stops i { font-style: normal; font-family: var(--mono); font-size: .56rem; color: var(--muted); }
.rc-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); border-top: 1px solid var(--line-2); }

/* ------------------------------------------------------------------ itinerary / timeline */
.itin { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.day-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.daytab {
  display: inline-block; text-decoration: none;
  border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 8px 16px;
  font-size: .8rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.daytab.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.daytab:hover:not(.is-on) { border-color: var(--ink); }
.day-panel { display: none; }
.day-panel.is-on { display: block; animation: fadeUp .5s cubic-bezier(.22,.8,.3,1) both; }
.no-js .day-panel { display: block; }
.day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.day-theme { font-size: 1.3rem; margin-top: 6px; }
.day-themes { color: var(--ink); margin-bottom: 18px; }
.day-facts { display: flex; gap: 8px; flex-wrap: wrap; font-size: .72rem; color: var(--muted); }
.day-facts span { border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.tl-item {
  display: grid; grid-template-columns: 58px 26px minmax(0, 1fr); gap: 12px;
  padding: 16px 0; position: relative;
}
.tl-item + .tl-item::before {
  content: ""; position: absolute; left: 71px; top: 0; width: 1px; height: 16px;
  border-left: 1px dashed var(--line);
}
.tl-time { font-family: var(--mono); font-size: .76rem; color: var(--ink-3); padding-top: 3px; letter-spacing: .02em; }
.tl-dot {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center;
  font-size: .7rem; background: var(--card); color: var(--ink-3);
}
.tl-sight .tl-dot { border-color: var(--clay); color: var(--clay); }
.tl-meal .tl-dot { border-color: var(--gold); color: #8a6416; }
.tl-move .tl-dot { border-style: dashed; color: var(--muted); font-size: .62rem; }
.tl-night .tl-dot { border-color: var(--pine); color: var(--pine); }
.tl-body { min-width: 0; }
.tl-title { font-size: .98rem; font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.tl-min { font-family: var(--mono); font-size: .62rem; color: var(--muted); font-weight: 400; }
.tl-note { font-size: .82rem; color: var(--muted); margin-top: 3px; }
.tl-meta { font-family: var(--mono); font-size: .62rem; color: var(--ink-3); margin-top: 5px; opacity: .8; letter-spacing: .02em; }
.tl-move .tl-title { font-weight: 500; color: var(--muted); font-size: .84rem; }
.tl-rest .tl-title, .tl-food .tl-title { color: var(--ink-3); }
.day-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

.side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.side-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.side-card h4 { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.side-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.side-list li { display: flex; justify-content: space-between; gap: 14px; font-size: .84rem; border-bottom: 1px dashed var(--line-2); padding-bottom: 9px; }
.side-list li:last-child { border: 0; padding: 0; }
.side-list b { font-weight: 600; }
.side-list span { color: var(--muted); font-family: var(--mono); font-size: .7rem; white-space: nowrap; }
.budget-total { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.budget-total b { font-family: var(--serif); font-size: 2rem; }
.budget-total span { color: var(--muted); font-size: .76rem; }

/* ------------------------------------------------------------------ map frame */
.map-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; position: relative; }
.map-card::before, .map-card::after {
  content: ""; position: absolute; width: 9px; height: 9px; border: 1px solid var(--line);
}
.map-card::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.map-card::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.map-frame { border-radius: 10px; overflow: hidden; background: #f3ead8; position: relative; }

.map-slide { display: none; }
.map-slide.is-on { display: block; animation: fadeUp .45s cubic-bezier(.22,.8,.3,1) both; }

.rmap { width: 100%; height: auto; display: block; }
.rmap-line { stroke-dashoffset: var(--len, 1200); animation: draw 2.6s cubic-bezier(.4,0,.2,1) forwards; }
.pin { animation: pinIn .5s cubic-bezier(.22,.8,.3,1) both; animation-delay: var(--d, 0s); transform-box: fill-box; transform-origin: center; }
.pin-label {
  paint-order: stroke; stroke: var(--paper); stroke-width: 3.4px; stroke-linejoin: round;
  font-family: var(--sans); font-weight: 600;
}
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; padding: 0 4px 2px; font-size: .7rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 2px; display: inline-block; }

/* ------------------------------------------------------------------ seal / stamps */
.seal { display: block; }
.seal-float { position: absolute; right: clamp(16px, 5vw, 60px); top: 0; transform: rotate(-8deg); opacity: .95; }

/* ------------------------------------------------------------------ studio */
.studio-grid { display: grid; grid-template-columns: 390px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.panel-sticky { position: sticky; top: 96px; }
.step { padding: 20px 0; border-bottom: 1px dashed var(--line); }
.step:first-child { padding-top: 0; }
.step:last-child { border-bottom: 0; padding-bottom: 0; }
.step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-no { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--mono); font-size: .62rem; }
.step-title { font-size: .88rem; font-weight: 700; }
.step-hint { margin-left: auto; font-size: .68rem; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 7px; }
.seg button {
  border: 1px solid var(--line); background: transparent; padding: 7px 13px; border-radius: 999px;
  font-size: .78rem; cursor: pointer; transition: all .22s;
}
.seg button:hover { border-color: var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg button.is-pro::after { content: " PRO"; font-family: var(--mono); font-size: .5rem; color: var(--gold); }
.select-city { position: relative; }
.select-city input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font: inherit; font-size: .9rem; color: var(--ink); outline: none;
}
.select-city input:focus { border-color: var(--ink); }
.city-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.city-pick button { border: 1px solid var(--line); background: transparent; border-radius: 8px; padding: 5px 10px; font-size: .76rem; cursor: pointer; }
.city-pick button.is-on { border-color: var(--clay); color: var(--clay); background: color-mix(in srgb, var(--clay) 8%, transparent); }
.studio-go { width: 100%; margin-top: 18px; }
.studio-note { font-size: .68rem; color: var(--muted); margin-top: 10px; text-align: center; }

.result-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.result-title { font-size: 1.7rem; }
.result-days { display: flex; gap: 6px; flex-wrap: wrap; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.result-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.result-side { display: flex; flex-direction: column; gap: 12px; }
.theme-row { display: flex; gap: 8px; }
.theme-dot {
  width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0;
  box-shadow: inset 0 0 0 1px rgba(23,20,15,.14);
}
.theme-dot.is-on { border-color: var(--ink); }
.theme-dot { box-shadow: inset 0 0 0 1px rgba(23,20,15,.18), 0 0 0 2px var(--paper); }
.theme-dot[data-theme="paper"] { background: #f7f2e8; }
.theme-dot[data-theme="night"] { background: #14201f; }
.theme-dot[data-theme="clay"] { background: #c4552d; }
.theme-dot[data-theme="forest"] { background: #1f4a44; }
.theme-dot[data-theme="mono"] { background: #e9e4d9; }

/* ------------------------------------------------------------------ cards / pro / article */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.price-card.is-hot { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.price-card.is-hot .pc-note, .price-card.is-hot .pc-list { color: rgba(247,242,232,.7); }
.pc-tag { position: absolute; top: -1px; right: 18px; background: var(--gold); color: var(--ink); font-size: .6rem; letter-spacing: .14em; padding: 4px 10px; border-radius: 0 0 6px 6px; font-family: var(--mono); }
.pc-name { font-size: .9rem; color: var(--muted); }
.pc-price { font-family: var(--serif); font-size: 2.4rem; line-height: 1; }
.pc-price small { font-size: .9rem; font-family: var(--sans); color: var(--muted); }
.pc-note { font-size: .76rem; color: var(--muted); }
.pc-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: .82rem; color: var(--ink-3); display: flex; flex-direction: column; gap: 6px; }
.pc-list li::before { content: "·"; color: var(--clay); margin-right: 7px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .84rem; }
.feature .f-no { font-family: var(--mono); font-size: .62rem; color: var(--clay); letter-spacing: .14em; display: block; margin-bottom: 10px; }

.article { max-width: 720px; margin-inline: auto; }
.article h2 { font-size: 1.42rem; margin: 32px 0 12px; }
.article h2:first-of-type { margin-top: 6px; }
.article p { margin: 0 0 16px; color: var(--ink-2); font-size: 1.02rem; line-height: 1.9; }
.article p:first-of-type { font-size: 1.12rem; color: var(--ink); }
.article ul { color: var(--ink-2); padding-left: 20px; }
.article li { margin: 6px 0; }
.article .lead { font-size: 1.12rem; color: var(--ink-3); }
.faq { margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: .96rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--clay); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }

.crumb { display: flex; gap: 8px; font-size: .74rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumb a:hover { color: var(--clay); }
.crumb span { opacity: .5; }

.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-head .h1 { margin: 10px 0 14px; max-width: 16em; }
.page-head .lede { max-width: 40em; }

/* ------------------------------------------------------------------ city hero */
.city-hero { position: relative; padding: clamp(34px, 5vw, 64px) 0 0; overflow: hidden; }
.city-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 90% at 88% 0%, color-mix(in srgb, var(--hue) 18%, transparent), transparent 62%);
}
.city-hero .wrap { position: relative; z-index: 1; }
.city-title { font-size: clamp(2.8rem, 6.4vw, 5rem); letter-spacing: -.04em; line-height: .95; }
.city-sub { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-top: 8px; }
.city-en { font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.city-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.city-facts span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; font-size: .78rem; background: color-mix(in srgb, var(--card) 70%, transparent); }
.city-intro { max-width: 44em; color: var(--ink-3); margin-top: 18px; font-size: 1.04rem; line-height: 1.85; }

.food-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.food-item { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.food-item b { font-size: .94rem; }
.food-item p { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.food-item span { font-family: var(--mono); font-size: .74rem; color: var(--clay); white-space: nowrap; }
.tag { display: inline-block; font-size: .62rem; letter-spacing: .08em; border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; color: var(--muted); margin-left: 6px; vertical-align: middle; }

/* ------------------------------------------------------------------ stamps page */
.stamp-hero { text-align: center; padding: clamp(30px, 5vw, 60px) 0 10px; }
.progress-ring { display: flex; align-items: center; gap: 20px; justify-content: center; margin-top: 22px; }
.ring { width: 96px; height: 96px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; stroke-linecap: round; }
.ring .bg { stroke: var(--line); }
.ring .fg { stroke: var(--clay); stroke-dasharray: 264; stroke-dashoffset: 264; transition: stroke-dashoffset 1.2s cubic-bezier(.22,.8,.3,1); }
.ring-wrap { position: relative; width: 96px; height: 96px; flex: none; }
.ring-wrap .ring { position: absolute; inset: 0; }
.ring-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 1px; }
.ring-label b { font-family: var(--serif); font-size: 1.16rem; line-height: 1; }
.ring-label span { font-size: .56rem; letter-spacing: .14em; color: var(--muted); }.stamp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stamp-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; position: relative;
  transition: transform .4s cubic-bezier(.22,.8,.3,1), border-color .3s, box-shadow .4s;
}
.stamp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stamp-card .seal { filter: grayscale(1) opacity(.45); transition: filter .5s, transform .5s; transform: rotate(-6deg); }
.stamp-card.is-on { border-color: color-mix(in srgb, var(--hue) 45%, var(--line)); background: linear-gradient(170deg, color-mix(in srgb, var(--hue) 8%, var(--card)), var(--card)); }
.stamp-card.is-on .seal { filter: none; }
.stamp-card.is-on:hover .seal { transform: rotate(4deg) scale(1.05); }
.sc-name { font-size: 1.02rem; font-weight: 700; }
.sc-note { font-size: .72rem; color: var(--muted); }
.sc-btn { margin-top: 4px; font-size: .74rem; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.sc-btn:hover { border-color: var(--clay); color: var(--clay); }
.stamp-card.is-on .sc-btn { border-color: var(--clay); color: var(--clay); }
.region-progress { max-width: 640px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 26px; }
.rp-row { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
.rp-name { width: 2.6em; flex: none; color: var(--ink-3); }
.rp-bar { flex: 1; height: 4px; background: var(--line); border-radius: 999px; overflow: hidden; }
.rp-bar i { display: block; height: 100%; background: var(--clay); border-radius: 999px; transition: width .6s; }
.rp-num { font-family: var(--mono); font-size: .68rem; color: var(--muted); width: 3em; text-align: right; }
@media (max-width: 560px) { .region-progress { grid-template-columns: 1fr; } }
.collection-card { background: var(--ink); color: var(--paper); border-radius: var(--r); padding: 30px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.collection-card .h2 { color: var(--paper); }

/* ------------------------------------------------------------------ legal */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-3); font-size: .94rem; line-height: 1.9; }
.legal ul { padding-left: 20px; }


.poi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.poi-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.poi-top { display: flex; justify-content: space-between; align-items: center; }
.poi-area { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; color: var(--muted); }
.poi-name { font-size: 1.02rem; }
.poi-note { font-size: .8rem; color: var(--muted); line-height: 1.6; }
.poi-meta { font-family: var(--mono); font-size: .64rem; color: var(--ink-3); margin-top: auto; opacity: .85; line-height: 1.7; }
@media (max-width: 900px) { .poi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .poi-grid { grid-template-columns: 1fr; } }


.month-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.month-links span { font-size: .72rem; letter-spacing: .14em; color: var(--muted); margin-right: 2px; }
.month-links a { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--ink-3); transition: all .2s; }
.month-links a:hover { border-color: var(--clay); color: var(--clay); }


.fit-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; }
.fit-row b { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.fit-row p { color: var(--ink-3); font-size: .9rem; line-height: 1.9; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plain-list li { font-size: .88rem; color: var(--ink-3); border-bottom: 1px dashed var(--line-2); padding-bottom: 6px; }
.plain-list li::before { content: "·"; color: var(--clay); margin-right: 8px; }
@media (max-width: 760px) { .fit-row { grid-template-columns: 1fr; gap: 18px; } }


.data-note { font-size: .78rem; color: var(--muted); margin-top: 18px; line-height: 1.9; border-left: 2px solid var(--line); padding-left: 12px; }
.data-note a { color: var(--clay); border-bottom: 1px solid currentColor; }


.poi-link { align-self: flex-start; font-size: .72rem; color: var(--clay); border-bottom: 1px solid currentColor; margin-top: 4px; }
.poi-link:hover { color: var(--ink); }


.meter { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--clay); border-radius: 999px; transition: width .6s; }
.meter-note { font-size: .76rem; color: var(--muted); margin-top: 7px; }
.renew-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 90;
  background: var(--ink); color: var(--paper); font-size: .82rem; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.renew-toast a { color: var(--gold); border-bottom: 1px solid currentColor; }


.benefit-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px 18px; margin-top: 12px; list-style: none; padding: 0; }
.benefit-list li { font-size: .84rem; color: var(--ink-3); }
.benefit-list li::before { content: "✓"; color: var(--clay); margin-right: 8px; font-family: var(--mono); }
@media (max-width: 700px) { .benefit-list { grid-template-columns: 1fr 1fr; } }


.recent-stamps { max-width: 640px; margin: 26px auto 0; }
.recent-title { text-align: left; font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.recent-row { display: flex; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); font-size: .86rem; }
.rr-date { font-family: var(--mono); font-size: .7rem; color: var(--muted); width: 4.2em; }
.rr-name { flex: 1; color: var(--ink); }
.rr-days { font-size: .74rem; color: var(--muted); }


.order-box { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.order-plans { display: flex; flex-direction: column; gap: 10px; }
.order-plans button { display: flex; align-items: baseline; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.order-plans button:hover { border-color: var(--clay); transform: translateY(-1px); }
.order-plans button.is-on { border-color: var(--clay); box-shadow: 0 0 0 2px rgba(196,85,45,.12); }
.order-plans b { font-size: 1.1rem; }
.order-plans span { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.order-plans em { margin-left: auto; font-style: normal; font-size: .66rem; color: var(--clay); border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; }
.order-summary { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--card); }
.order-id { font-family: var(--mono); font-size: 1.1rem; letter-spacing: .06em; margin: 8px 0 4px; }
.order-amount { display: flex; align-items: baseline; gap: 10px; }
.order-amount b { font-family: var(--serif); font-size: 2.2rem; }
.order-amount span { font-size: .82rem; color: var(--muted); }
.order-hint { font-size: .78rem; color: var(--muted); line-height: 1.8; margin: 10px 0 14px; }
.order-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.order-copied { font-size: .76rem; color: var(--clay); margin-top: 10px; min-height: 1em; }
@media (max-width: 760px) { .order-box { grid-template-columns: 1fr; } }


.updates { list-style: none; padding: 0; margin: 12px 0 0; }
.updates li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: .9rem; }
.up-date { font-family: var(--mono); font-size: .7rem; color: var(--muted); width: 7.4em; flex: none; white-space: nowrap; }
.up-kind { font-size: .64rem; color: var(--clay); border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; flex: none; }
.updates a { color: var(--ink); border-bottom: 1px solid transparent; }
.updates a:hover { border-color: var(--clay); color: var(--clay); }


.season-count { display: inline-block; margin-top: 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--clay); }
.season-count.is-now { color: var(--gold); }


.china-wrap { max-width: 960px; margin: 0 auto; }
.china-map { width: 100%; height: auto; display: block; }
.china-dot { fill: #C9BBA2; stroke: #F7F2E8; stroke-width: 1.4; transition: fill .3s, r .3s; }
.china-dot.is-on { fill: #2F5D62; }
.stamp-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.stamp-chip { font-size: .8rem; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; color: var(--ink-3); }
.stamp-chip.is-on { border-color: var(--clay); color: var(--clay); background: rgba(196,85,45,.06); }


/* ---------------------------------------------------- print: stamps / studio */
@media print {
  .page-stamps .hero-cta,
  .page-stamps #stampFilters,
  .page-stamps .stamp-toolbar,
  .page-stamps .stamp-actions,
  .page-stamps .renew-toast,
  .page-studio .studio-controls,
  .page-studio #studioControls,
  .page-studio .hero-cta { display: none !important; }
  .page-stamps .stamp-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 10px !important; }
  .page-stamps .stamp-card { break-inside: avoid; border-color: #999 !important; }
  .page-stamps .stamp-card button,
  .page-stamps .stamp-card .btn { display: none !important; }
  .page-studio .studio-result { border: 1px solid #999 !important; }
}


.seg-wrap { flex-wrap: wrap; }
.seg-wrap button { flex: 0 1 auto; }
#monthPick { appearance: none; -webkit-appearance: none; }

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--ink); color: var(--paper); padding: clamp(48px, 6vw, 76px) 0 24px; margin-top: clamp(40px, 6vw, 80px); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-brand .brand-foot { color: var(--paper); }
.foot-brand .brand-txt i { color: rgba(247,242,232,.5); }
.foot-line { margin-top: 18px; font-family: var(--serif); font-size: 1.1rem; color: rgba(247,242,232,.85); }
.foot-small { margin-top: 10px; font-size: .76rem; color: rgba(247,242,232,.45); line-height: 1.8; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col h4 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(247,242,232,.4); margin-bottom: 4px; font-weight: 600; }
.foot-col a { font-size: .86rem; color: rgba(247,242,232,.78); transition: color .2s; }
.foot-col a:hover { color: var(--gold); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(247,242,232,.12); font-size: .72rem; color: rgba(247,242,232,.42); }
.foot-base a:hover { color: var(--gold); }
.foot-mono { font-family: var(--mono); letter-spacing: .12em; }

/* ------------------------------------------------------------------ overlays */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px); z-index: 400;
  background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 999px; font-size: .84rem;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; box-shadow: var(--shadow);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: rgba(23,20,15,.6); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal.is-on { opacity: 1; pointer-events: auto; }
.modal-inner { background: var(--paper); border-radius: var(--r); max-width: 920px; width: 100%; max-height: 92vh; overflow: auto; padding: 20px; position: relative; transform: translateY(16px); transition: transform .35s; }
.modal.is-on .modal-inner { transform: none; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; z-index: 2; }
.modal-canvas { width: auto; max-width: 100%; max-height: 68vh; height: auto; border-radius: 8px; background: var(--paper-2); display: block; margin-inline: auto; }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.poster-canvas { width: 100%; max-width: 420px; height: auto; display: block; border-radius: 10px; box-shadow: var(--shadow); }

/* ------------------------------------------------------------------ motion */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.22,.8,.3,1), transform .8s cubic-bezier(.22,.8,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pinIn { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-3.2deg); } 50% { transform: translateY(-8px) rotate(-2.4deg); } }
.poster-hero { animation: float 9s ease-in-out infinite; }
.poster-back { animation: float 11s ease-in-out infinite reverse; }

@view-transition { navigation: auto; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .route-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-grid { grid-template-columns: 340px minmax(0, 1fr); }
  .result-body { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .site-head.is-open .nav {
    display: flex; position: absolute; left: 0; right: 0; top: 74px; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px var(--pad) 18px; margin: 0;
  }
  .site-head.is-open .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-2); font-size: 1rem; }
  .site-head.is-open .nav .nav-m { display: flex !important; justify-content: space-between; }
  .site-head.is-open .nav .nav-m-cta { color: var(--clay); font-weight: 700; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { height: 340px; max-width: 420px; margin-inline: auto; width: 100%; }
  .itin { grid-template-columns: 1fr; }
  .side { position: static; }
  .studio-grid { grid-template-columns: 1fr; }
  .panel-sticky { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .stamp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: 1fr; }
  .food-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --f-h1: clamp(1.9rem, 7.6vw, 2.5rem); }
  .page-head { padding: 28px 0 18px; }
  .page-head .h1 { line-height: 1.16; }
  .city-hero .seal-float {
    position: absolute; right: 0; top: -10px; width: 78px; margin: 0;
    transform: rotate(-7deg); opacity: .92;
  }
  .city-hero .seal-float .seal { width: 78px; height: 78px; }
  .city-title { padding-right: 84px; }
  .city-sub { padding-right: 84px; }
  .head-in { height: 64px; }
  .head-act .pill-ghost { display: none; }
  .head-act .btn { display: none; }
  .hero-try { margin-top: 14px; font-size: .84rem; }
.hero-try a { color: var(--gold); border-bottom: 1px solid rgba(217,163,71,.4); padding-bottom: 2px; }
.hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stats dt { font-size: 1.6rem; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .city-card { min-height: 220px; padding: 16px 14px; }
  .cc-name { font-size: 1.32rem; margin-top: 22px; }
  .cc-seal { transform: scale(.82); right: 8px; top: 32px; }
  .route-list { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .stamp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tl-item { grid-template-columns: 46px 22px minmax(0, 1fr); gap: 9px; }
  .tl-item + .tl-item::before { left: 56px; }
  .tl-dot { width: 22px; height: 22px; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .poster { width: 86%; }
  .day-facts span { font-size: .66rem; }
  .section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .rmap-line { stroke-dashoffset: 0; }
}

@media print {
  .site-head, .site-foot, .ticker, .hero-bg, .day-actions, .side, .toast, .modal,
  .day-tabs, .hero-cta, .crumb, .skip,
  .day-actions, .poi-actions, .share-row, .renew-toast,
  .btn, .sec-link, .month-links, .stamp-chips { display: none !important; }
  .map-slide { display: block !important; page-break-inside: avoid; }
  .city-hero .seal-float { position: static !important; }
  body { background: #fff; color: #000; }
  .section { padding: 10px 0; }
  .day-panel { display: block !important; break-inside: avoid; }
  .tl-item { break-inside: avoid; }
}
