:root {
  --ink: #2f2b28;
  --muted: #7e7770;
  --soft: #a7a09a;
  --paper: #fffdf9;
  --cream: #faf6ee;
  --blush: #f5dede;
  --blush-strong: #d98a92;
  --mint: #e5f0e8;
  --blue: #e6eef7;
  --butter: #f6e8b8;
  --line: rgba(47, 43, 40, 0.1);
  --line-strong: rgba(47, 43, 40, 0.16);
  --shadow: 0 14px 34px rgba(58, 45, 35, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(47, 43, 40, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 43, 40, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #fff3f6 0%, #fff8f5 42%, #f6faf6 100%);
  background-size: 32px 32px, 32px 32px, auto;
  font-family:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  min-height: 100vh;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.site-shell.is-unlocked {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition:
    opacity 1050ms cubic-bezier(0.2, 0.72, 0.18, 1),
    transform 1050ms cubic-bezier(0.2, 0.72, 0.18, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.82fr);
  gap: clamp(28px, 6vw, 76px);
  width: min(1080px, calc(100% - 40px));
  min-height: 82vh;
  margin: 0 auto;
  padding: clamp(42px, 8vh, 82px) 0 34px;
  align-items: center;
}

.hero__paper {
  position: relative;
  padding: clamp(28px, 5vw, 52px);
  background: rgba(255, 253, 249, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition:
    border-color 360ms ease,
    box-shadow 360ms ease,
    transform 360ms ease;
}

.hero__paper::before {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  content: "";
  background:
    linear-gradient(90deg, transparent 47%, rgba(217, 138, 146, 0.6) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 47%, rgba(217, 138, 146, 0.6) 47% 53%, transparent 53%);
  border: 1px solid rgba(217, 138, 146, 0.26);
  border-radius: 50%;
  opacity: 0.65;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blush-strong);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 430px;
  margin: 0;
  color: var(--ink);
  font-family:
    ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.36rem, 2.45vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.18;
}

.hero__copy {
  max-width: 530px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.9;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.hero__stats div {
  min-height: 86px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    border-color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.hero__stats span {
  display: block;
  font-size: clamp(1.48rem, 2.7vw, 2.05rem);
  font-weight: 800;
  line-height: 1;
}

.hero__stats small {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.hero__collage {
  position: relative;
  min-height: 500px;
}

.photo-print {
  position: absolute;
  margin: 0;
  padding: 10px 10px 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.photo-print img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 6px;
  filter: saturate(0.82) brightness(1.08);
}

.photo-print--main {
  top: 20px;
  right: 0;
  width: min(360px, 92%);
  height: 430px;
  animation: photo-drift 7.5s ease-in-out infinite;
}

.ticket-stub,
.mini-note {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ticket-stub {
  left: 0;
  bottom: 78px;
  width: 178px;
  padding: 16px 18px;
  color: #6a5130;
  background: var(--butter);
  animation: paper-float 6.2s ease-in-out infinite;
}

.ticket-stub span {
  display: block;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ticket-stub strong {
  display: block;
  margin-top: 5px;
  font-size: 2rem;
  line-height: 1;
}

.mini-note {
  right: 14px;
  bottom: 16px;
  padding: 12px 16px;
  color: #55715f;
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
  animation: paper-float 6.2s ease-in-out 600ms infinite;
}

.hero__paper:hover,
.hero__stats div:hover {
  border-color: rgba(217, 138, 146, 0.32);
  box-shadow: 0 18px 42px rgba(58, 45, 35, 0.1);
  transform: translateY(-3px);
}

@keyframes photo-drift {
  0%,
  100% {
    transform: rotate(1.2deg) translateY(0);
  }

  50% {
    transform: rotate(-0.6deg) translateY(-7px);
  }
}

@keyframes paper-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-6px) rotate(1deg);
  }
}

.intro-band,
.certificate,
.letters,
.seasons,
.footprints,
.gift,
.closing-letter {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 5.2rem 0;
}

.intro-band p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.34rem);
  line-height: 2;
  text-align: center;
}

.certificate__stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 8vh, 72px);
  align-items: start;
}

.certificate-frame {
  padding: 10px;
  margin: 0;
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid rgba(183, 155, 133, 0.34);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.certificate-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #fff8f0;
  border-radius: 6px;
}

.certificate-note span {
  color: var(--blush-strong);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.certificate-note h3 {
  margin: 12px 0 8px;
  color: var(--ink);
  font-family:
    ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.25rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
}

.certificate-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(720px, 100%);
  min-height: min(56vh, 460px);
  padding: clamp(20px, 3vw, 30px);
  margin: 0 auto;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.certificate-note p {
  margin: 12px 0 0;
  font-size: 0.86rem;
  line-height: 1.85;
}

.certificate-note strong {
  color: var(--ink);
}

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

.section-heading .eyebrow {
  margin-bottom: 0;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family:
    ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.38rem, 2.45vw, 2.12rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.12;
  text-align: right;
}

.country-grid {
  display: grid;
  gap: 12px;
}

.country-grid {
  grid-template-columns: 1fr;
  margin-top: 12px;
}

.letter-node__card,
.season-card,
.quiz fieldset,
.gift-box,
.closing-letter__paper,
.letter-paper,
.lock-card,
.map-note {
  background: rgba(255, 253, 249, 0.84);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(58, 45, 35, 0.045);
}

.letter-node__card small,
.letter-paper p,
.country-card li,
.closing-letter__paper p,
.map-note,
.quiz label,
.quiz-message {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.letters {
  width: 100%;
  padding-left: max(20px, calc((100% - 1080px) / 2));
  padding-right: max(20px, calc((100% - 1080px) / 2));
}

.letters {
  background: rgba(255, 255, 255, 0.36);
}

.country-card h3,
.gift-box p {
  display: block;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.letter-rail {
  overflow-x: auto;
  padding: 6px 0 18px;
  scrollbar-color: transparent transparent;
  scrollbar-width: thin;
  transition: scrollbar-color 220ms ease;
}

.letter-rail:hover,
.letter-rail:focus-within {
  scrollbar-color: rgba(207, 118, 130, 0.65) rgba(244, 232, 220, 0.65);
}

.letter-rail::-webkit-scrollbar {
  height: 10px;
}

.letter-rail::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
  transition: background 220ms ease;
}

.letter-rail::-webkit-scrollbar-thumb {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 999px;
  transition:
    background 220ms ease,
    border-color 220ms ease;
}

.letter-rail:hover::-webkit-scrollbar-track,
.letter-rail:focus-within::-webkit-scrollbar-track {
  background: rgba(244, 232, 220, 0.68);
}

.letter-rail:hover::-webkit-scrollbar-thumb,
.letter-rail:focus-within::-webkit-scrollbar-thumb {
  background: rgba(207, 118, 130, 0.62);
  border-color: rgba(244, 232, 220, 0.9);
}

.letter-fishbone {
  position: relative;
  display: grid;
  grid-auto-columns: minmax(248px, 292px);
  grid-auto-flow: column;
  gap: 44px;
  width: max-content;
  min-width: 1240px;
  height: 330px;
  padding: 10px 42px;
}

.letter-fishbone::before {
  position: absolute;
  right: 20px;
  left: 20px;
  top: 50%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(183, 155, 133, 0.68), transparent);
}

.letter-node {
  position: relative;
  display: flex;
  height: 100%;
}

.letter-node::before {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 13px;
  height: 13px;
  content: "";
  background: #fff;
  border: 3px solid #cf7682;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.letter-node::after {
  position: absolute;
  left: 50%;
  z-index: 1;
  width: 1px;
  height: 64px;
  content: "";
  background: rgba(183, 155, 133, 0.56);
}

.letter-node--top {
  align-items: flex-start;
}

.letter-node--top::after {
  top: calc(50% - 64px);
}

.letter-node--bottom {
  align-items: flex-end;
}

.letter-node--bottom::after {
  top: 50%;
}

.letter-node--time-capsule::before {
  border-color: #b989b2;
  box-shadow:
    0 0 0 7px rgba(185, 137, 178, 0.12),
    0 0 0 14px rgba(185, 137, 178, 0.05);
}

.letter-node--time-capsule::after {
  background: repeating-linear-gradient(
    180deg,
    rgba(185, 137, 178, 0.72) 0 6px,
    transparent 6px 11px
  );
}

.letter-node--time-capsule .letter-node__card {
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.96), rgba(252, 246, 255, 0.86)),
    var(--paper);
}

.letter-node__future {
  position: absolute;
  left: calc(50% + 38px);
  top: calc(50% - 13px);
  z-index: 4;
  padding: 5px 9px;
  color: #8c6387;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  background: rgba(255, 253, 249, 0.94);
  border: 1px dashed rgba(185, 137, 178, 0.62);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(58, 45, 35, 0.08);
}

.letter-node__future::before {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  width: 54px;
  height: 2px;
  content: "";
  background: repeating-linear-gradient(
    90deg,
    rgba(185, 137, 178, 0.68) 0 7px,
    transparent 7px 13px
  );
  transform: translateY(-50%);
}

.letter-node__card {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 132px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 280ms ease,
    background 280ms ease;
}

.letter-node__card::after {
  position: absolute;
  right: 13px;
  bottom: 13px;
  width: 9px;
  height: 9px;
  content: "";
  background: rgba(217, 138, 146, 0.46);
  border-radius: 999px;
  box-shadow:
    0 0 0 7px rgba(217, 138, 146, 0.1),
    0 0 0 14px rgba(217, 138, 146, 0.04);
  opacity: 0;
  transform: scale(0.45);
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}

.letter-node__card:hover,
.letter-node__card:focus-visible {
  background: rgba(255, 253, 249, 0.96);
  border-color: rgba(207, 118, 130, 0.58);
  box-shadow: 0 14px 32px rgba(58, 45, 35, 0.09);
  transform: translateY(-5px) rotate(-0.7deg);
}

.letter-node__card:hover::after,
.letter-node__card:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.letter-node__card span,
.letter-paper__date {
  color: var(--blush-strong);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.letter-node__card strong {
  font-size: 1rem;
  line-height: 1.42;
}

.letter-node__card small {
  display: block;
}

.letter-drawer[hidden] {
  display: none;
}

.letter-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: block;
}

.letter-drawer__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(47, 43, 40, 0.24);
  border: 0;
  opacity: 0;
  transition: opacity 260ms ease;
}

.letter-drawer__panel {
  position: relative;
  z-index: 2;
  width: min(620px, 54vw);
  height: 100%;
  margin-left: auto;
  padding: clamp(18px, 4vw, 38px);
  overflow-y: auto;
  background:
    linear-gradient(rgba(47, 43, 40, 0.025) 1px, transparent 1px),
    #fffaf4;
  background-size: 30px 30px, auto;
  box-shadow: -18px 0 48px rgba(58, 45, 35, 0.18);
  transform: translateX(26px);
  transition: transform 320ms cubic-bezier(0.22, 0.9, 0.24, 1);
}

.letter-drawer.is-open .letter-drawer__shade {
  opacity: 1;
}

.letter-drawer.is-open .letter-drawer__panel {
  transform: translateX(0);
}

.letter-drawer__close {
  display: block;
  margin-left: auto;
  color: var(--ink);
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.letter-paper {
  position: relative;
  z-index: 3;
  margin-top: 20px;
  padding: clamp(24px, 4vw, 42px);
  color: var(--ink);
  opacity: 1;
}

.letter-paper h3 {
  margin: 16px 0 14px;
  color: var(--ink);
  font-family:
    ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.28rem, 2.8vw, 2rem);
  font-weight: 500;
  line-height: 1.24;
}

.letter-paper__fold {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px dashed rgba(183, 155, 133, 0.42);
}

.letter-paper__fold h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.letter-paper__fold p {
  margin: 12px 0 0;
}

.letter-paper__gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}

.letter-paper__gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(183, 155, 133, 0.26);
  border-radius: 7px;
  box-shadow: 0 10px 24px rgba(58, 45, 35, 0.07);
}

.letter-paper__gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.letter-paper a {
  display: inline-block;
  margin-top: 22px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.letter-paper a::after {
  content: " ->";
}

.seasons {
  width: min(1080px, calc(100% - 40px));
}

.season-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.season-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 18px;
  padding: 12px;
  align-items: stretch;
  overflow: hidden;
  transition:
    border-color 280ms ease,
    box-shadow 280ms ease,
    transform 280ms ease;
}

.season-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 315px;
  object-fit: cover;
  border-radius: 8px;
  transition:
    filter 420ms ease,
    transform 520ms cubic-bezier(0.22, 0.9, 0.24, 1);
}

.season-card div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 10px 10px 2px;
}

.season-card span {
  color: var(--blush-strong);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.season-card h3 {
  margin: 8px 0 12px;
  font-family:
    ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: 1.45rem;
  font-weight: 500;
}

.season-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.9;
}

.season-card:hover,
.season-card:focus-within {
  border-color: rgba(217, 138, 146, 0.3);
  box-shadow: 0 16px 36px rgba(58, 45, 35, 0.09);
  transform: translateY(-4px);
}

.season-card:hover img,
.season-card:focus-within img {
  filter: saturate(0.92) brightness(1.08);
  transform: scale(1.035) rotate(0.3deg);
}

.season-card--spring {
  background: linear-gradient(135deg, rgba(245, 222, 222, 0.78), rgba(255, 253, 249, 0.9));
}

.season-card--summer {
  background: linear-gradient(135deg, rgba(230, 238, 247, 0.82), rgba(255, 253, 249, 0.9));
}

.season-card--autumn {
  background: linear-gradient(135deg, rgba(246, 232, 184, 0.72), rgba(255, 253, 249, 0.9));
}

.season-card--winter {
  background: linear-gradient(135deg, rgba(232, 240, 246, 0.88), rgba(255, 253, 249, 0.92));
}

.fifth-season {
  display: grid;
  align-content: center;
  gap: clamp(260px, 48vh, 420px);
  max-width: 620px;
  min-height: min(105vh, 780px);
  padding: 26px 28px;
  margin: 24px auto 0;
  color: var(--ink);
  text-align: center;
  background: rgba(255, 253, 249, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(58, 45, 35, 0.045);
}

.fifth-season p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.fifth-season strong {
  display: block;
  font-family:
    ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 500;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(260px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.world-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.world-map--image {
  display: grid;
  gap: 12px;
  min-height: auto;
  padding: 10px;
  background: rgba(255, 253, 249, 0.82);
}

.footprints-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.map-caption {
  max-width: 760px;
  margin: 0 auto 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.85;
  text-align: center;
}

.love-map {
  width: 100%;
  height: 560px;
  background: #eaf3f6;
}

.leaflet-container {
  position: relative;
  overflow: hidden;
  outline-style: none;
  background: #eaf3f6;
  font-family:
    ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
  position: absolute;
  left: 0;
  top: 0;
}

.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
  user-select: none;
  -webkit-user-drag: none;
}

.leaflet-tile {
  width: 256px;
  height: 256px;
}

.leaflet-marker-icon,
.leaflet-marker-shadow {
  display: block;
}

.leaflet-container img.leaflet-tile {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-container .leaflet-overlay-pane svg {
  max-width: none !important;
  max-height: none !important;
}

.leaflet-map-pane {
  z-index: 400;
}

.leaflet-tile-pane {
  z-index: 200;
}

.leaflet-overlay-pane {
  z-index: 400;
}

.leaflet-marker-pane {
  z-index: 600;
}

.leaflet-tooltip-pane {
  z-index: 650;
}

.leaflet-popup-pane {
  z-index: 700;
}

.leaflet-control {
  position: relative;
  z-index: 800;
  pointer-events: visiblePainted;
  pointer-events: auto;
}

.leaflet-top,
.leaflet-bottom {
  position: absolute;
  z-index: 1000;
  pointer-events: none;
}

.leaflet-top {
  top: 0;
}

.leaflet-right {
  right: 0;
}

.leaflet-bottom {
  bottom: 0;
}

.leaflet-left {
  left: 0;
}

.leaflet-control {
  float: left;
  clear: both;
}

.leaflet-right .leaflet-control {
  float: right;
}

.leaflet-top .leaflet-control {
  margin-top: 10px;
}

.leaflet-bottom .leaflet-control {
  margin-bottom: 10px;
}

.leaflet-left .leaflet-control {
  margin-left: 10px;
}

.leaflet-right .leaflet-control {
  margin-right: 10px;
}

.map-fallback {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 500;
  margin: 0;
  padding: 10px 14px;
  color: var(--muted);
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  transform: translate(-50%, -50%);
  font-size: 0.82rem;
  font-weight: 800;
}

.map-fallback[hidden] {
  display: none;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  color: var(--ink);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 12px 28px rgba(58, 45, 35, 0.12);
}

.leaflet-popup-content {
  margin: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.55;
}

.visited-area {
  filter: saturate(0.98);
}

.home-pin {
  display: grid;
  place-items: center;
}

.home-pin span {
  display: block;
  width: 16px;
  height: 16px;
  background: #cf7682;
  border: 2px solid #fffdf9;
  border-radius: 50% 50% 50% 0;
  box-shadow: 0 4px 12px rgba(58, 45, 35, 0.22);
  transform: rotate(-45deg);
}

.home-pin span::after {
  display: block;
  width: 5px;
  height: 5px;
  margin: 3.5px;
  content: "";
  background: #fffdf9;
  border-radius: 50%;
}

.footprint-list {
  max-height: 560px;
  padding: 16px;
  overflow-y: auto;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(58, 45, 35, 0.045);
}

.footprint-list__head {
  position: sticky;
  top: -16px;
  z-index: 2;
  padding: 0 0 10px;
  margin-bottom: 10px;
  background: rgba(255, 253, 249, 0.94);
  border-bottom: 1px solid var(--line);
}

.footprint-list__head span {
  display: block;
  color: var(--blush-strong);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footprint-list__head strong {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.country-card {
  padding: 10px 0 12px;
  border-bottom: 1px solid rgba(183, 155, 133, 0.2);
  transition:
    background 220ms ease,
    padding 220ms ease,
    transform 220ms ease;
}

.country-card:last-child {
  border-bottom: 0;
}

.country-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.68rem;
}

.country-card:hover {
  padding-left: 8px;
  background: rgba(245, 222, 222, 0.22);
  transform: translateX(2px);
}

.country-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  padding-left: 16px;
  margin: 0;
  list-style: disc;
}

.country-card li {
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.country-card li::marker {
  color: rgba(207, 118, 130, 0.68);
}

.country-card li:hover {
  color: var(--ink);
  transform: translateX(2px);
}

.quiz {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.quiz fieldset {
  min-width: 0;
  padding: 16px;
  margin: 0;
  transition:
    border-color 240ms ease,
    box-shadow 240ms ease,
    transform 240ms ease;
}

.quiz fieldset.is-correct {
  border-color: rgba(116, 158, 91, 0.62);
  background:
    linear-gradient(135deg, rgba(213, 232, 205, 0.64), transparent 58%),
    rgba(255, 253, 249, 0.92);
  box-shadow:
    0 0 0 2px rgba(137, 174, 128, 0.16),
    0 16px 32px rgba(82, 116, 70, 0.12);
}

.quiz fieldset.is-incorrect {
  border-color: rgba(217, 138, 146, 0.24);
}

.quiz legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.quiz label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 8px 0;
  padding: 5px 7px;
  border-radius: 8px;
  font-size: 0.82rem;
  transition:
    background 200ms ease,
    color 200ms ease,
    transform 200ms ease;
}

.quiz input {
  margin-top: 4px;
  accent-color: var(--blush-strong);
}

.quiz fieldset:hover,
.quiz fieldset:focus-within {
  border-color: rgba(217, 138, 146, 0.32);
  box-shadow: 0 12px 28px rgba(58, 45, 35, 0.07);
  transform: translateY(-3px);
}

.quiz label:hover,
.quiz label:has(input:checked) {
  color: var(--ink);
  background: rgba(245, 222, 222, 0.44);
  transform: translateX(2px);
}

.quiz fieldset.is-correct label:has(input:checked) {
  color: #3f5e35;
  background: rgba(218, 236, 203, 0.92);
  box-shadow: inset 0 0 0 1px rgba(107, 142, 86, 0.22);
  font-weight: 900;
}

.gift-button {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(220px, 100%);
  min-height: 44px;
  color: rgba(47, 43, 40, 0.38);
  background: rgba(47, 43, 40, 0.1);
  border: 0;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
  transition:
    box-shadow 240ms ease,
    transform 240ms ease,
    background 240ms ease;
}

.gift-button:not(:disabled) {
  color: #fff;
  background: #b46b69;
  cursor: pointer;
}

.gift-button:disabled {
  cursor: not-allowed;
}

.gift-button:not(:disabled):hover,
.gift-button:not(:disabled):focus-visible {
  background: #9f5e61;
  box-shadow: 0 10px 22px rgba(58, 45, 35, 0.14);
  transform: translateY(-2px);
}

.gift-box {
  position: relative;
  display: grid;
  max-width: 640px;
  max-height: 0;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  place-items: center;
  text-align: center;
  transition:
    max-height 520ms ease,
    margin 320ms ease,
    opacity 320ms ease;
}

body.gift-overlay-open {
  overflow: hidden;
}

.rimowa-letters {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px);
  transition: gap 720ms cubic-bezier(0.19, 1, 0.22, 1);
}

.rimowa-letters span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(47, 43, 40, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(58, 45, 35, 0.06);
  font-weight: 900;
  transition:
    transform 720ms cubic-bezier(0.19, 1, 0.22, 1),
    background 420ms ease;
  animation: letter-breathe 4.8s ease-in-out infinite;
}

.rimowa-letters span:nth-child(2) {
  animation-delay: 120ms;
}

.rimowa-letters span:nth-child(3) {
  animation-delay: 240ms;
}

.rimowa-letters span:nth-child(4) {
  animation-delay: 360ms;
}

.rimowa-letters span:nth-child(5) {
  animation-delay: 480ms;
}

.rimowa-letters span:nth-child(6) {
  animation-delay: 600ms;
}

@keyframes letter-breathe {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.gift-box__body {
  display: block;
  width: min(620px, calc(100vw - 52px));
  min-height: 0;
  max-height: calc(100dvh - 96px);
  padding: clamp(20px, 3vw, 30px);
  margin-top: 0;
  color: #4a3a2d;
  background: var(--butter);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(58, 45, 35, 0.08);
  opacity: 0;
  transform: translateY(14px);
  transition:
    background 240ms ease,
    box-shadow 240ms ease,
    opacity 420ms ease,
    transform 420ms ease;
  pointer-events: none;
}

.gift-box.is-open .gift-box__body {
  cursor: default;
}

.gift-box p {
  margin: 0 0 14px;
  color: #7d5a35;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  line-height: 1.65;
}

.gift-answer-trail {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 14px auto 0;
  overflow-x: auto;
  padding: 2px 0 4px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  transition-delay: 800ms;
}

.gift-answer-trail > span {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: rgba(74, 58, 45, 0.72);
  background: rgba(255, 253, 249, 0.74);
  border: 1px solid rgba(74, 58, 45, 0.09);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.gift-answer-key {
  display: inline;
  margin: 0;
  padding: 0;
  border-radius: 999px;
  letter-spacing: 0;
}

.gift-box.is-open .gift-answer-key {
  animation: key-letter-glow 900ms ease-in-out var(--key-delay, 0ms) 1;
}

@keyframes key-letter-glow {
  0%,
  100% {
    color: inherit;
    text-shadow: none;
  }

  35%,
  70% {
    color: #9f5e61;
    text-shadow:
      0 0 0 #9f5e61,
      0 0 12px rgba(255, 220, 106, 0.92),
      0 0 22px rgba(255, 221, 139, 0.78);
  }
}

.gift-box strong {
  display: block;
  margin-top: 18px;
  color: #4a3a2d;
  font-size: clamp(0.82rem, 1.5vw, 0.96rem);
  line-height: 1.65;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.gift-box.is-open .rimowa-letters {
  gap: 0;
}

.gift-box.is-open {
  position: fixed !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 999;
  display: grid;
  width: 100vw !important;
  max-width: none;
  height: 100svh !important;
  min-height: 100dvh;
  max-height: none;
  padding: 18px;
  margin: 0;
  box-sizing: border-box;
  background:
    linear-gradient(rgba(245, 222, 222, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 222, 222, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 18% 18%, rgba(255, 232, 186, 0.56), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(213, 232, 205, 0.5), transparent 32%),
    #fffaf3;
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  opacity: 1;
  align-items: center;
  justify-items: center;
  place-items: center;
}

.gift-box.is-open.is-revealed .rimowa-letters {
  max-height: 60px;
  margin-top: 28px;
  opacity: 1;
  transform: translateY(0);
}

.gift-box.is-open.is-revealed .rimowa-letters span {
  background: #fff;
  animation: none;
  transform: translateY(-6px) rotate(var(--gift-tilt, -1.5deg));
}

.gift-box.is-open.is-revealed .rimowa-letters span:nth-child(even) {
  --gift-tilt: 1.5deg;
}

.gift-box.is-open .gift-box__body {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gift-box.is-open .gift-answer-trail {
  opacity: 1;
  transform: translateY(0);
}

.gift-box.is-open .gift-box__body:hover,
.gift-box.is-open .gift-box__body:focus-visible {
  background: var(--butter);
  box-shadow: 0 20px 48px rgba(58, 45, 35, 0.12);
  transform: translateY(0);
}

.gift-box.is-open.is-final .gift-box__body strong {
  margin-top: 20px;
  opacity: 1;
  transform: translateY(0);
}

.gift-close {
  position: fixed;
  right: clamp(18px, 4vw, 34px);
  top: clamp(18px, 4vw, 34px);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: rgba(74, 58, 45, 0.72);
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid rgba(74, 58, 45, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(58, 45, 35, 0.1);
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 260ms ease,
    transform 260ms ease,
    background 220ms ease;
  pointer-events: none;
}

.gift-box.is-open .gift-close {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.gift-close:hover,
.gift-close:focus-visible {
  color: #9f5e61;
  background: #fff;
}

.gift-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gift-confetti span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 16px;
  background: var(--blush-strong);
  border-radius: 2px;
  opacity: 0;
}

.gift-confetti span:nth-child(2n) {
  background: var(--butter);
}

.gift-confetti span:nth-child(3n) {
  background: var(--mint);
}

.gift-photo {
  display: grid;
  width: min(360px, 86%);
  min-height: 0;
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  place-items: center;
  color: rgba(47, 43, 40, 0.56);
  background:
    linear-gradient(135deg, rgba(47, 43, 40, 0.05), transparent),
    #f0f0ed;
  border: 1px solid rgba(47, 43, 40, 0.12);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.gift-box.is-open.is-revealed .gift-photo {
  min-height: 220px;
  max-height: 260px;
  margin-top: 20px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gift-box.is-open.is-revealed .gift-confetti span {
  animation: confetti-pop 900ms ease-out forwards;
}

.gift-box.is-open.is-revealed .gift-confetti span:nth-child(1) {
  --confetti-x: -120px;
  --confetti-y: -130px;
}

.gift-box.is-open.is-revealed .gift-confetti span:nth-child(2) {
  --confetti-x: 110px;
  --confetti-y: -120px;
  animation-delay: 40ms;
}

.gift-box.is-open.is-revealed .gift-confetti span:nth-child(3) {
  --confetti-x: -70px;
  --confetti-y: -170px;
  animation-delay: 80ms;
}

.gift-box.is-open.is-revealed .gift-confetti span:nth-child(4) {
  --confetti-x: 80px;
  --confetti-y: -165px;
  animation-delay: 120ms;
}

.gift-box.is-open.is-revealed .gift-confetti span:nth-child(5) {
  --confetti-x: -150px;
  --confetti-y: -80px;
  animation-delay: 160ms;
}

.gift-box.is-open.is-revealed .gift-confetti span:nth-child(6) {
  --confetti-x: 150px;
  --confetti-y: -90px;
  animation-delay: 200ms;
}

@keyframes confetti-pop {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--confetti-x, 0), var(--confetti-y, -120px)) rotate(180deg);
  }
}

.closing-letter__paper {
  max-width: 860px;
  padding: clamp(26px, 5vw, 46px);
  margin: 0 auto;
}

.closing-letter__paper h2 {
  margin: 0 0 18px;
  font-family:
    ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.55rem, 3.1vw, 2.45rem);
  font-weight: 500;
}

.signature {
  color: var(--blush-strong);
  font-style: italic;
}

.closing-letter__photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 760px);
  margin-top: 24px;
  margin-right: auto;
  margin-left: auto;
}

.closing-letter__photos figure {
  display: grid;
  min-width: 0;
  height: clamp(240px, 32vw, 360px);
  margin: 0;
  overflow: hidden;
  place-items: center;
  background: rgba(255, 253, 249, 0.8);
  border: 1px solid rgba(183, 155, 133, 0.28);
  border-radius: 7px;
  box-shadow: 0 14px 30px rgba(58, 45, 35, 0.08);
}

.closing-letter__photos img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.closing-letter__photos figure:nth-child(2) img {
  object-fit: contain;
  background: #fbf1e2;
}

.lock-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(rgba(47, 43, 40, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 43, 40, 0.02) 1px, transparent 1px),
    #fffaf4;
  background-size: 32px 32px, 32px 32px, auto;
  transition: opacity 360ms ease, visibility 360ms ease;
}

.lock-screen.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.lock-card {
  width: min(400px, 100%);
  padding: 30px;
  text-align: center;
}

.lock-card h2 {
  margin: 0;
  font-family:
    ui-serif, Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(1.7rem, 6vw, 2.65rem);
  font-weight: 500;
  line-height: 1.06;
}

.lock-card__copy,
.lock-card__hint {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

#unlockForm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 22px 0 12px;
}

#unlockForm input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  outline: 0;
}

#unlockForm input:focus {
  border-color: rgba(217, 138, 146, 0.74);
  box-shadow: 0 0 0 4px rgba(217, 138, 146, 0.16);
}

#unlockForm button {
  height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 900;
}

.lock-card.is-wrong {
  animation: shake 260ms ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-7px);
  }
  60% {
    transform: translateX(7px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__collage {
    min-height: 430px;
  }

  .photo-print--main {
    left: 7%;
    right: auto;
  }

  .certificate__stage {
    grid-template-columns: 1fr;
  }

  .season-grid,
  .quiz {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .footprint-list {
    max-height: none;
  }

  .season-card {
    grid-template-columns: 1fr;
  }

  .season-card img {
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 14px;
  }

  .hero,
  .intro-band,
  .certificate,
  .letters,
  .seasons,
  .footprints,
  .gift,
  .closing-letter {
    width: min(100% - 28px, 1080px);
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .letters {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero__paper {
    padding: 24px 20px;
  }

  .hero__stats,
  .certificate__stage,
  .season-grid,
  .country-grid,
  .quiz {
    grid-template-columns: 1fr;
  }

  .gift-button,
  .quiz-message {
    grid-column: auto;
  }

  .letter-fishbone {
    height: 300px;
    grid-auto-columns: minmax(230px, 260px);
    gap: 30px;
    padding: 10px 24px;
  }

  .letter-node__card {
    min-height: 126px;
    padding: 16px;
  }

  .letter-drawer__panel {
    width: 100%;
  }

  .certificate-note {
    min-height: auto;
  }

  .letter-paper {
    padding: 24px 20px;
  }

  .letter-paper__gallery {
    gap: 7px;
  }

  .closing-letter__photos {
    grid-template-columns: 1fr;
  }

  .closing-letter__photos figure {
    height: auto;
    min-height: 260px;
  }

  .closing-letter__photos img {
    max-height: none;
  }

  .season-card {
    gap: 12px;
  }

  .season-card img {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    margin-top: 8px;
    text-align: left;
  }

  .hero__collage {
    min-height: 330px;
  }

  .photo-print--main {
    left: 0;
    width: 86%;
    height: 290px;
  }

  .ticket-stub {
    left: 34%;
    bottom: 40px;
    width: 158px;
  }

  .mini-note {
    right: 2px;
    bottom: 4px;
  }

  .world-map {
    min-height: 360px;
  }

  .world-map--image {
    min-height: auto;
  }

  .love-map {
    height: 360px;
  }

  .pin span {
    display: none;
  }

  #unlockForm {
    grid-template-columns: 1fr;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
