:root {
  --paper: #f5efe2;
  --paper-2: #efe7d6;
  --card: #faf6ec;
  --ink: #2b2925;
  --muted: #6e6658;
  --line: #d9cdb7;
  --red: #a13a2e;
  --gold: #a8792f;
  --accent: var(--red);
  --tint: #f2e5d3;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "STSong", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", "Noto Serif SC", serif;
  --latin: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 18% -8%, #fcf8ee 0%, transparent 62%),
    radial-gradient(900px 520px at 108% 8%, #efe2c8 0%, transparent 55%),
    var(--paper);
  font-family: var(--serif);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.42 0 0 0 0 0.36 0 0 0 0 0.26 0 0 0 0.055 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

a { color: inherit; }

img { max-width: 100%; }

button { font: inherit; }

::selection { background: #e6d3b3; color: #2b2925; }

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 239, 226, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  font-family: var(--kai);
  font-size: 13px;
  line-height: 1;
  transform: rotate(-8deg);
}

.brand-name {
  font-family: var(--kai);
  font-size: 18px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.passport-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 6px 12px;
  white-space: nowrap;
}

.passport-pill strong {
  font-family: var(--latin);
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
}

.passport-pill:hover { border-color: var(--red); color: var(--ink); }

.site-foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.site-foot .foot-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-foot a { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn.primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff8ec;
}

.btn.primary:hover {
  background: #8a2f25;
  border-color: #8a2f25;
  color: #fff8ec;
}

.btn.ghost { border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn[disabled] { opacity: 0.45; cursor: default; }

.kicker {
  font-size: 11px;
  letter-spacing: 0.34em;
  color: var(--red);
  text-transform: uppercase;
  margin: 0 0 10px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--kai);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.section-head .note {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: right;
}

.hub-hero {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 58px;
  align-items: center;
  padding: 62px 0 54px;
}

.hub-title {
  font-family: var(--kai);
  font-size: clamp(46px, 6.4vw, 78px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: 0.05em;
  margin: 14px 0 18px;
}

.hub-title span {
  display: block;
  font-size: 0.32em;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-top: 14px;
  padding-left: 0.16em;
  white-space: nowrap;
}

.hub-desc {
  max-width: 540px;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.95;
}

.hub-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hub-progress {
  margin-top: 34px;
  max-width: 440px;
}

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-row b {
  font-family: var(--latin);
  font-size: 18px;
  font-weight: 500;
  color: var(--red);
}

.progress-track {
  height: 4px;
  background: #e3d8c3;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.6s ease;
}

.cover-frame {
  position: relative;
  padding: 14px;
  background: #fbf7ee;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(74, 56, 26, 0.18);
  transform: rotate(1.4deg);
}

.cover-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.cover-label {
  position: absolute;
  right: 26px;
  bottom: -26px;
  width: 118px;
  padding: 10px 8px;
  background: #fbf7ee;
  border: 1px dashed #b7a688;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.18em;
  line-height: 1.6;
  transform: rotate(-6deg);
}

.cover-label b {
  display: block;
  font-family: var(--kai);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 500;
}

.panel {
  position: relative;
  z-index: 1;
  background: rgba(253, 250, 242, 0.55);
  border: 1px solid var(--line);
  padding: 22px 24px 18px;
}

.panel + .panel { margin-top: 26px; }

.worldmap-wrap { position: relative; }

.worldmap {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.wm-grid-line { stroke: #c9baa0; stroke-width: 0.7; opacity: 0.5; }
.wm-equator { stroke: #b8a684; stroke-width: 1.1; opacity: 0.65; }
.wm-route {
  fill: none;
  stroke: var(--red);
  stroke-width: 1.1;
  stroke-dasharray: 2 6;
  opacity: 0.42;
}
.wm-site { cursor: pointer; outline: none; }
.wm-site .wm-dot {
  fill: var(--paper);
  stroke: #8d7c60;
  stroke-width: 1.3;
  transition: fill 0.25s ease, stroke 0.25s ease, r 0.25s ease;
}
.wm-site .wm-num {
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 700;
  fill: #6e6658;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.wm-site .wm-halo {
  fill: none;
  stroke: var(--red);
  stroke-width: 1;
  opacity: 0;
}
.wm-site:hover .wm-dot,
.wm-site:focus-visible .wm-dot { fill: #eadfc9; stroke: var(--red); r: 9; }
.wm-site:focus-visible .wm-dot { stroke-width: 2.4; }
.wm-site.done .wm-dot { fill: var(--red); stroke: var(--red); }
.wm-site.done .wm-num { fill: #fdf8ee; }
.wm-site.next .wm-halo { opacity: 0.8; animation: haloPulse 2.4s ease-out infinite; }
.wm-site.next .wm-dot { stroke: var(--red); stroke-width: 1.8; }

@keyframes haloPulse {
  0% { r: 9; opacity: 0.7; }
  70% { r: 20; opacity: 0; }
  100% { r: 20; opacity: 0; }
}

.map-status {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px dashed var(--line);
  margin-top: 6px;
  padding-top: 10px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  min-height: 32px;
}

.map-status b { color: var(--ink); font-weight: 500; }

.map-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid #8d7c60;
  margin-right: 5px;
  vertical-align: 1px;
}

.legend-dot.done { background: var(--red); border-color: var(--red); }

.site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  padding: 6px 0 56px;
}

.site-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: #b9a88c;
  box-shadow: 0 20px 44px rgba(70, 55, 25, 0.13);
}

.site-card figure {
  margin: 0;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.site-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.94);
  transition: transform 0.6s ease;
}

.site-card:hover img { transform: scale(1.03); }

.site-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 17px;
  flex: 1;
}

.site-card .no {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.site-card h3 {
  margin: 0;
  font-family: var(--kai);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.site-card .meta {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.12em;
}

.site-card .intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.card-status { color: var(--red); }
.site-card.done { border-color: #c9b591; }
.site-card.done::after {
  content: "已盖章";
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 9px;
  background: rgba(251, 247, 238, 0.9);
  border: 1px solid var(--red);
  color: var(--red);
  font-size: 10px;
  letter-spacing: 0.16em;
  transform: rotate(-4deg);
}

.stamp {
  --c: var(--red);
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--c);
  color: var(--c);
  display: grid;
  place-items: center;
  position: relative;
  transform: rotate(-9deg);
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--c);
  border-radius: 50%;
  opacity: 0.65;
}

.stamp::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 0.5px solid var(--c);
  border-radius: 50%;
  opacity: 0.4;
}

.stamp .st-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  line-height: 1.15;
  text-align: center;
}

.stamp .st-name {
  writing-mode: vertical-rl;
  font-family: var(--kai);
  font-size: 15px;
  letter-spacing: 0.16em;
  max-height: 56px;
}

.stamp .st-city {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  margin-top: 4px;
}

.stamp.sm { width: 68px; height: 68px; }
.stamp.sm .st-name { font-size: 11px; letter-spacing: 0.1em; max-height: 36px; }
.stamp.sm .st-city { font-size: 7px; margin-top: 2px; }
.stamp.sm::before { inset: 4px; }
.stamp.sm::after { inset: 8px; }

.stamp.idle { --c: #a99c85; opacity: 0.42; }

.stamp-in { animation: stampIn 0.65s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }

@keyframes stampIn {
  0% { transform: scale(1.9) rotate(-9deg); opacity: 0; }
  55% { transform: scale(0.93) rotate(-9deg); opacity: 1; }
  100% { transform: scale(1) rotate(-9deg); opacity: 1; }
}

.site-page { position: relative; z-index: 1; }

.site-hero {
  position: relative;
  overflow: hidden;
  background: #2c2925;
  border-bottom: 1px solid var(--line);
}

.site-hero > img {
  display: block;
  width: 100%;
  height: min(60vh, 600px);
  object-fit: cover;
  opacity: 0.94;
}

.site-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 23, 17, 0.78) 0%, rgba(28, 23, 17, 0.16) 46%, transparent 70%);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  color: #f9f2e4;
  padding: 0 0 38px;
}

.hero-copy .cityline {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: #e7d7ba;
  margin: 0 0 6px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
}

.hero-copy h1 {
  font-family: var(--kai);
  font-size: clamp(44px, 7.2vw, 80px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.28);
}

.hero-copy .en {
  font-family: var(--latin);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #e7d7ba;
  margin: 0;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
}

.hero-stamp {
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 3;
}

.hero-stamp .stamp {
  background: rgba(251, 247, 238, 0.92);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.hero-stamp .stamp.idle { opacity: 0.72; }

.shake { animation: shake 0.36s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.sign-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 32px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.sign-row input {
  font: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: #fbf7ee;
  color: var(--ink);
  width: 168px;
  border-radius: 0;
}

.sign-row input:focus {
  outline: none;
  border-color: var(--accent);
}

.sign-note { font-size: 10.5px; opacity: 0.8; }

.site-intro {
  max-width: 780px;
  margin: 0;
  padding: 34px 0 6px;
  font-size: 17px;
  line-height: 2;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 46px;
}

.info-card {
  background: rgba(253, 250, 241, 0.55);
  border-top: 2px solid var(--accent);
  padding: 15px 18px 17px;
}

.info-card h4 {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.info-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

.route-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 46px;
}

.route-map {
  background: rgba(253, 250, 242, 0.55);
  border: 1px solid var(--line);
  padding: 10px;
  position: sticky;
  top: 84px;
}

.route-map svg { display: block; width: 100%; height: auto; overflow: visible; }

.rm-base { fill: none; stroke: #d3c5ac; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.32; }
.rm-line { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 7; opacity: 0.6; stroke-linecap: round; }
.rm-site { cursor: pointer; outline: none; }
.rm-hit { fill: transparent; }
.rm-dot {
  fill: #fbf7ed;
  stroke: #96866c;
  stroke-width: 1.4;
  transition: fill 0.25s ease, stroke 0.25s ease;
}
.rm-num {
  font-family: var(--latin);
  font-size: 11px;
  font-weight: 700;
  fill: #6e6658;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.rm-label {
  font-family: var(--serif);
  font-size: 12px;
  fill: #5d564a;
  text-anchor: start;
  paint-order: stroke;
  stroke: #f7f1e4;
  stroke-width: 4px;
  stroke-linejoin: round;
  cursor: pointer;
}

.rm-label-left { text-anchor: end; }
.rm-site.done .rm-dot { fill: var(--accent); stroke: var(--accent); }
.rm-site.done .rm-num { fill: #fdf8ee; }
.rm-site.next .rm-dot { stroke: var(--accent); stroke-width: 2.2; }
.rm-site.next .rm-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.1;
  opacity: 0.75;
  animation: rmPulse 2.4s ease-out infinite;
}
.rm-site:focus-visible .rm-dot { stroke: var(--accent); stroke-width: 2.6; }

@keyframes rmPulse {
  0% { r: 15; opacity: 0.7; }
  75% { r: 27; opacity: 0; }
  100% { r: 27; opacity: 0; }
}

.map-caption {
  border-top: 1px dashed var(--line);
  margin-top: 8px;
  padding-top: 9px;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stop-list { display: flex; flex-direction: column; gap: 10px; }

.stop {
  border: 1px solid var(--line);
  background: rgba(250, 246, 236, 0.85);
  padding: 13px 16px 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.stop:hover { border-color: #b9a88c; }
.stop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.stop.locked { opacity: 0.56; cursor: not-allowed; }
.stop.locked:hover { border-color: var(--line); }

.stop.done { border-color: var(--accent); background: #fbf7ec; }

.stop-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.stop-no {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
  flex: none;
}

.stop h4 {
  margin: 0;
  font-family: var(--kai);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.stop .fact {
  display: none;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.stop.done .fact { display: block; animation: factIn 0.45s ease both; }

@keyframes factIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.stop .go {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.14em;
}

.route-hint {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin: 0 0 14px;
}

.stamp-stage {
  margin: 0 0 52px;
  border: 1px solid var(--line);
  background: rgba(253, 250, 242, 0.6);
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.stamp-stage .stamp { margin: 4px 8px; }

.stamp-stage-copy h3 {
  margin: 0 0 6px;
  font-family: var(--kai);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.stamp-stage-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.site-fact {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 0 0 46px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  max-width: 800px;
}

.site-fact b {
  display: block;
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 4px;
  font-weight: 600;
}

.postcard-block {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: center;
  margin: 0 0 56px;
}

.postcard-block figure {
  margin: 0;
  background: #fbf7ee;
  padding: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(70, 55, 25, 0.12);
  transform: rotate(-0.8deg);
}

.postcard-block img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.postcard-block figcaption {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding-top: 9px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.postcard-copy h3 {
  font-family: var(--kai);
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: 0.08em;
}

.postcard-copy p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
  margin: 0 0 16px;
}

.site-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 22px 0 6px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.site-nav .next-note { font-size: 12px; color: var(--muted); letter-spacing: 0.08em; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 200;
  transform: translate(-50%, 18px);
  background: var(--ink);
  color: #f7f0e1;
  padding: 10px 18px;
  font-size: 13px;
  letter-spacing: 0.05em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.finale-hero {
  text-align: center;
  padding: 58px 0 34px;
}

.finale-hero h1 {
  font-family: var(--kai);
  font-size: clamp(38px, 5.6vw, 62px);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin: 8px 0 10px;
}

.finale-hero p {
  color: var(--muted);
  font-size: 14px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.9;
}

.stamp-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  justify-items: center;
  margin: 34px 0 46px;
}

.stamp-wall .stamp { width: 92px; height: 92px; }
.stamp-wall .stamp .st-name { font-size: 13px; max-height: 46px; }
.stamp-wall .stamp .st-city { font-size: 7.5px; }

.cert {
  position: relative;
  background: #fcf8ee;
  border: 1px solid #cbb994;
  padding: 54px 54px 44px;
  margin: 0 0 46px;
  box-shadow: 0 24px 60px rgba(70, 55, 25, 0.12);
}

.cert::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid #d9c9a9;
  pointer-events: none;
}

.cert::after {
  content: "";
  position: absolute;
  inset: 17px;
  border: 0.5px solid #e2d5bb;
  pointer-events: none;
}

.cert-head { text-align: center; position: relative; z-index: 1; }

.cert-head .kicker { color: var(--gold); }

.cert-head h2 {
  font-family: var(--kai);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.16em;
  margin: 4px 0 6px;
}

.cert-head .cert-en {
  font-family: var(--latin);
  font-style: italic;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.cert-body {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 26px auto 0;
  text-align: center;
  font-size: 15px;
  line-height: 2.1;
}

.cert-body .name {
  font-family: var(--kai);
  font-size: 24px;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #b8a684;
  padding: 0 18px 2px;
}

.cert-meta {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.cert-meta b {
  display: block;
  font-family: var(--latin);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.cert-seal {
  position: absolute;
  right: 46px;
  bottom: 40px;
  z-index: 2;
  width: 96px;
  height: 96px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--red);
  font-family: var(--kai);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  transform: rotate(-11deg);
  opacity: 0.85;
}

.cert-seal::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed var(--red);
  border-radius: 50%;
}

.cert-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 8px 0 50px;
}

.locked-note {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 18px 0 10px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(38, 32, 24, 0.45);
  backdrop-filter: blur(3px);
}

.modal.open { display: grid; }

.modal-card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(30, 24, 15, 0.3);
}

.modal-card h3 {
  margin: 0 0 8px;
  font-family: var(--kai);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.modal-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

.reveal { animation: revealUp 0.6s ease both; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

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

@media (max-width: 900px) {
  .hub-hero { grid-template-columns: 1fr; gap: 38px; padding: 42px 0 38px; }
  .hub-desc { font-size: 15px; }
  .cover-frame { max-width: 560px; }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .route-layout { grid-template-columns: 1fr; }
  .route-map { position: relative; top: 0; }
  .info-grid { grid-template-columns: 1fr; gap: 12px; }
  .postcard-block { grid-template-columns: 1fr; }
  .stamp-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cert { padding: 44px 30px 34px; }
  .cert-seal { right: 30px; bottom: 26px; width: 80px; height: 80px; font-size: 11px; }
}

.site-grid-section { padding-top: 40px; }

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .wm-site .wm-hit { r: 34; }
  .wm-site .wm-dot { r: 10; }
  .wm-site .wm-num { font-size: 13px; }
  .rm-site .rm-hit { r: 44; }
  .rm-site .rm-dot { r: 16; }
  .rm-site .rm-num { font-size: 13px; }
  .rm-label { display: none; }
  .topbar-inner { height: 58px; gap: 10px; }
  .brand-name { font-size: 16px; letter-spacing: 0.1em; }
  .brand-mark { width: 32px; height: 32px; font-size: 12px; }
  .top-right { gap: 8px; }
  .passport-pill { padding: 5px 9px; font-size: 10.5px; letter-spacing: 0.06em; }
  .passport-pill .pill-label { display: none; }
  .site-grid { grid-template-columns: 1fr; gap: 18px; }
  .hub-title { font-size: clamp(40px, 13vw, 58px); }
  .hub-title span { font-size: 0.32em; letter-spacing: 0.3em; }
  .cover-label { width: 92px; right: 14px; bottom: -18px; font-size: 9px; }
  .cover-label b { font-size: 13px; }
  .panel { padding: 16px 14px 12px; }
  .map-status { font-size: 11px; }
  .map-legend { display: none; }
  .site-hero > img { height: 360px; }
  .hero-copy { padding-bottom: 24px; }
  .hero-stamp { top: 14px; right: 14px; }
  .hero-stamp .stamp { width: 72px; height: 72px; }
  .hero-stamp .stamp .st-name { font-size: 11px; max-height: 38px; }
  .hero-stamp .stamp .st-city { font-size: 7px; }
  .site-intro { font-size: 15.5px; padding-top: 24px; }
  .info-grid { margin: 20px 0 34px; }
  .section-head { margin-bottom: 14px; }
  .section-head .note { display: none; }
  .route-layout { gap: 18px; margin-bottom: 34px; }
  .stop { padding: 12px 13px; }
  .stop h4 { font-size: 17px; }
  .stamp-stage { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; margin-bottom: 36px; }
  .stamp-stage-copy h3 { font-size: 22px; }
  .postcard-block { margin-bottom: 38px; }
  .stamp-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .stamp-wall .stamp { width: 80px; height: 80px; }
  .cert { padding: 38px 20px 30px; }
  .cert::before { inset: 8px; }
  .cert::after { inset: 12px; }
  .cert-seal { position: static; margin: 22px auto 0; transform: rotate(-8deg); }
  .cert-meta { gap: 18px; }
  .site-nav { gap: 10px; }
  .site-nav .btn { padding: 10px 16px; font-size: 12.5px; }
}

@media print {
  body { background: #fff; }
  body::before, .topbar, .site-foot, .cert-actions, .finale-hero .kicker, .toast { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .cert { box-shadow: none; margin: 0; }
  .stamp-wall { display: none; }
}
