:root {
  --bg: #0b0a09;
  --bg-soft: #11100e;
  --text: #f4ecdf;
  --muted: #b3a897;
  --faint: #8b8173;
  --line: rgba(244, 236, 223, 0.12);
  --line-strong: rgba(244, 236, 223, 0.22);
  --accent: #e2a45c;
  --accent-rgb: 226, 164, 92;
  --accent-deep: #8a5a2a;
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background:
    radial-gradient(900px 640px at 72% -12%, rgba(226, 164, 92, 0.16), transparent 62%),
    radial-gradient(820px 620px at 4% 108%, rgba(140, 52, 40, 0.22), transparent 62%),
    var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(var(--accent-rgb), 0.35);
  color: var(--text);
}

/* ---------- 氛围层 ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(84px);
  opacity: 0.9;
  animation: drift 18s ease-in-out infinite alternate;
  will-change: transform;
}

.glow-1 {
  top: -26%;
  right: -18%;
  width: 62vmax;
  height: 62vmax;
  min-width: 420px;
  min-height: 420px;
  background: radial-gradient(circle, rgba(226, 164, 92, 0.3), rgba(226, 164, 92, 0.1) 40%, transparent 68%);
}

.glow-2 {
  bottom: -30%;
  left: -18%;
  width: 58vmax;
  height: 58vmax;
  min-width: 380px;
  min-height: 380px;
  background: radial-gradient(circle, rgba(148, 52, 40, 0.34), rgba(148, 52, 40, 0.1) 42%, transparent 68%);
  animation-delay: -7s;
  animation-duration: 22s;
}

.glow-3 {
  top: 30%;
  left: 34%;
  width: 42vmax;
  height: 42vmax;
  min-width: 300px;
  min-height: 300px;
  background: radial-gradient(circle, rgba(112, 86, 168, 0.18), transparent 68%);
  animation-delay: -12s;
  animation-duration: 26s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-5%, 6%, 0) scale(1.12);
  }
}

.cursor-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(180px circle at var(--mx, 50%) var(--my, 40%), rgba(var(--accent-rgb), 0.1), transparent 70%),
    radial-gradient(680px circle at var(--mx, 50%) var(--my, 40%), rgba(var(--accent-rgb), 0.1), transparent 66%);
  transition: opacity 0.6s var(--ease);
}

@media (pointer: fine) {
  .cursor-glow.is-on {
    opacity: 1;
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: overlay;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- 布局 ---------- */

.stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--max);
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) clamp(16px, 5vw, 56px)
    calc(28px + env(safe-area-inset-bottom));
}

.masthead {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand-seal {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  transform: rotate(-5deg);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}

.brand:hover .brand-seal {
  transform: rotate(5deg);
  background: rgba(var(--accent-rgb), 0.16);
}

.brand-name {
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.vol {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.atlas-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.atlas-trigger svg {
  width: 13px;
  height: 13px;
}

.atlas-trigger b {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.atlas-trigger:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.07);
}

.atlas-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.atlas-trigger.has-new {
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.25);
}

.screen {
  display: none;
}

.screen.is-active {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 7vh, 72px) 0 clamp(28px, 5vh, 48px);
  animation: fadeUp 0.65s var(--ease) both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 通用文字 ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.9);
}

.meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--faint);
}

/* ---------- 首屏 ---------- */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.1rem, 8.4vw, 5.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.h1-accent {
  background: linear-gradient(100deg, var(--accent) 0%, #f7e4c3 45%, var(--accent) 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite;
}

@keyframes sheen {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.lede {
  max-width: 30em;
  margin: 26px 0 0;
  font-size: clamp(0.98rem, 1.6vw, 1.08rem);
  line-height: 1.95;
  color: var(--muted);
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 38px;
}

.intro-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(42px, 8vh, 84px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---------- 轨道图形 ---------- */

.orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 380px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.orbit::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(var(--accent-rgb), 0.22), rgba(122, 48, 38, 0.08) 55%, transparent 72%);
  filter: blur(20px);
}

.orbit-ring {
  position: absolute;
  inset: 5%;
  border: 1px dashed rgba(244, 236, 223, 0.22);
  border-radius: 50%;
  animation: spin 80s linear infinite;
}

.orbit-ring::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid rgba(244, 236, 223, 0.08);
  border-radius: 50%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(17, 16, 14, 0.9);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
  transform: translate(-50%, -50%);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.orbit-node:nth-child(2) {
  top: 5%;
  left: 50%;
}

.orbit-node:nth-child(3) {
  top: 36%;
  left: 94%;
}

.orbit-node:nth-child(4) {
  top: 83%;
  left: 77%;
}

.orbit-node:nth-child(5) {
  top: 83%;
  left: 23%;
}

.orbit-node:nth-child(6) {
  top: 36%;
  left: 6%;
}

.orbit-node:hover {
  border-color: rgba(var(--accent-rgb), 0.7);
  color: var(--accent);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.28);
  transform: translate(-50%, -50%) scale(1.08);
}

.orbit-core {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 34%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--accent-rgb), 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.07), rgba(11, 10, 9, 0.92));
  box-shadow: 0 0 0 10px rgba(11, 10, 9, 0.55), 0 0 60px rgba(var(--accent-rgb), 0.16);
}

.orbit-q {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1;
  color: var(--accent);
}

.orbit-label {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--faint);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease),
    border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.btn-icon {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .btn-icon {
  transform: translateX(3px);
}

#restart:hover .btn-icon {
  transform: rotate(-90deg);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.08)), var(--accent);
  color: #16120d;
  box-shadow: 0 14px 32px -14px rgba(var(--accent-rgb), 0.65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -16px rgba(var(--accent-rgb), 0.85);
  filter: brightness(1.04);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.65);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.07);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

.btn:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.btn:focus-visible,
.pill-back:focus-visible,
.option:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 答题 ---------- */

.quiz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.pill-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.pill-back svg {
  width: 14px;
  height: 14px;
}

.pill-back:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.06);
}

.pill-back:disabled {
  visibility: hidden;
}

.counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans);
}

.counter strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
}

.counter span {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--faint);
}

.progress {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-bottom: clamp(38px, 7vh, 58px);
}

.progress i {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: rgba(244, 236, 223, 0.12);
  transition: background 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.progress i.is-done {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55);
}

.quiz-body {
  position: relative;
}

.ghost-num {
  position: absolute;
  top: -0.32em;
  right: 0;
  font-family: var(--serif);
  font-size: clamp(7rem, 16vw, 11rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(244, 236, 223, 0.045);
  pointer-events: none;
  user-select: none;
}

.q-kicker {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.q-text {
  position: relative;
  max-width: 22em;
  margin: 0 0 clamp(28px, 5vh, 40px);
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 700;
  line-height: 1.48;
  letter-spacing: 0.01em;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
}

.option {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 12px 28px -24px rgba(0, 0, 0, 0.9);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.5vw, 1.06rem);
  line-height: 1.65;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  animation: optionIn 0.5s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

@keyframes optionIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.option:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.17), rgba(255, 255, 255, 0.025));
  transform: translateY(-2px) translateX(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 34px -24px rgba(0, 0, 0, 0.95);
}

.option .letter {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.option:hover .letter {
  border-color: rgba(var(--accent-rgb), 0.6);
  color: var(--accent);
}

.option-text {
  flex: 1;
}

.option .check {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.option.is-selected {
  border-color: var(--accent);
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 0 0 1px rgba(var(--accent-rgb), 0.35),
    0 16px 34px -22px rgba(var(--accent-rgb), 0.55);
}

.option.is-selected .letter {
  border-color: var(--accent);
  background: var(--accent);
  color: #16120d;
  font-weight: 700;
}

.option.is-selected .check {
  opacity: 1;
  transform: translateX(0);
}

.hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: clamp(28px, 5vh, 42px) 0 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
}

/* ---------- 结果 ---------- */

.screen-result {
  position: relative;
}

.screen-result::before {
  content: "";
  position: absolute;
  top: -8%;
  left: 0;
  width: 62%;
  height: 52%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.16), transparent 72%);
  filter: blur(48px);
  pointer-events: none;
}

.result-hero {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(160deg, #16130f, #0b0a09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 34px 70px -42px rgba(0, 0, 0, 0.95);
}

.result-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0.06) 0%, rgba(11, 10, 9, 0.38) 40%, rgba(11, 10, 9, 0.92) 100%),
    linear-gradient(92deg, rgba(11, 10, 9, 0.78) 0%, rgba(11, 10, 9, 0.24) 54%, transparent 80%);
  pointer-events: none;
}

.result-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}

.result-hero-img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.result-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  min-height: clamp(320px, 46vh, 440px);
  padding: clamp(20px, 4vw, 34px);
}

.result-hero .result-top {
  margin-top: 0;
}

.result-hero .result-name {
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.6);
}

.result-hero .result-coords {
  color: rgba(244, 236, 223, 0.64);
}

.photo-credit {
  margin: 10px 2px 0;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  text-align: right;
  color: var(--faint);
}

.photo-credit a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(244, 236, 223, 0.22);
  transition: color 0.25s var(--ease);
}

.photo-credit a:hover {
  color: var(--accent);
}

.result-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  margin-top: 26px;
}

.stamp {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: clamp(104px, 14vw, 136px);
  aspect-ratio: 1;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  transform: rotate(-7deg);
  box-shadow: inset 0 0 0 6px var(--bg), inset 0 0 0 7px rgba(var(--accent-rgb), 0.42),
    0 24px 54px -34px rgba(var(--accent-rgb), 0.9);
  animation: stampIn 0.8s var(--ease) both;
}

@keyframes stampIn {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(1.16);
  }
  to {
    opacity: 1;
    transform: rotate(-7deg) scale(1);
  }
}

.stamp-letter {
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  font-weight: 600;
  line-height: 1;
}

.stamp-label {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}

.result-heading {
  min-width: 0;
}

.result-tag {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.result-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.result-coords {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2em;
  color: var(--faint);
}

.result-coords::before {
  content: "";
  width: 22px;
  height: 1px;
  background: rgba(var(--accent-rgb), 0.7);
}

.result-panel {
  position: relative;
  overflow: hidden;
  margin-top: clamp(30px, 5vh, 46px);
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 48%, rgba(var(--accent-rgb), 0.07));
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 34px 70px -38px rgba(0, 0, 0, 0.9);
  animation: fadeUp 0.7s 0.15s var(--ease) both;
}

.result-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.16), transparent 32%, transparent 68%, rgba(var(--accent-rgb), 0.08));
  pointer-events: none;
}

.result-panel::before {
  content: "“";
  position: absolute;
  top: -0.28em;
  left: 0.18em;
  font-family: var(--serif);
  font-size: 9rem;
  line-height: 1;
  color: rgba(var(--accent-rgb), 0.13);
  pointer-events: none;
}

.result-panel p {
  position: relative;
  z-index: 1;
  margin: 0 0 1em;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  line-height: 1.95;
  color: var(--muted);
}

.result-panel p:first-child {
  color: var(--text);
}

.result-panel p:last-child {
  margin-bottom: 0;
}

.tie-note {
  display: flex;
  gap: 8px;
  margin: 20px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.07);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}

.tie-note::before {
  content: "※";
  color: var(--accent);
}

.tie-note[hidden] {
  display: none;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.result-foot {
  margin: 24px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
}

.btn[hidden] {
  display: none;
}

.q-text:focus,
.result-name:focus {
  outline: none;
}

/* ---------- 朝圣图鉴 ---------- */

.collection {
  margin-top: 24px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(var(--accent-rgb), 0.055));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.collection-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.collection-kicker {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.collection-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.3;
}

.collection-title span {
  margin-left: 4px;
  font-family: var(--sans);
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.collection-link {
  flex: none;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}

.collection-link:hover {
  color: var(--text);
}

.stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mini-stamp {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.16);
  color: var(--faint);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.mini-stamp.is-unlocked {
  border-style: solid;
  border-color: var(--stamp);
  color: var(--stamp);
  box-shadow: inset 0 0 0 3px rgba(11, 10, 9, 0.42), 0 0 16px rgba(255, 255, 255, 0.06);
}

.mini-stamp.is-unlocked:hover {
  transform: translateY(-2px) rotate(-5deg);
}

.mini-stamp.is-new {
  animation: stampPop 0.7s var(--ease);
  box-shadow: 0 0 0 1px var(--stamp), 0 0 26px rgba(255, 255, 255, 0.18);
}

.mini-stamp.is-new::after {
  content: "NEW";
  position: absolute;
  top: -8px;
  right: -10px;
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--stamp);
  color: #16120d;
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@keyframes stampPop {
  0% {
    opacity: 0;
    transform: scale(0.6) rotate(-16deg);
  }
  60% {
    transform: scale(1.12) rotate(2deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.collection-note {
  margin: 14px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.85;
  color: var(--faint);
}

.collection-cta {
  width: 100%;
  margin-top: 16px;
  justify-content: center;
}

/* ---------- 得分分布 ---------- */

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.breakdown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}

.bd-row {
  display: grid;
  grid-template-columns: 22px 78px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
}

.bd-letter {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted);
  line-height: 1;
}

.bd-name {
  overflow: hidden;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bd-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 236, 223, 0.09);
}

.bd-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: rgba(244, 236, 223, 0.3);
  transition: width 0.9s var(--ease);
}

.bd-count {
  font-family: var(--sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--faint);
}

.bd-row.is-mine .bd-letter,
.bd-row.is-mine .bd-count {
  color: var(--accent);
}

.bd-row.is-mine .bd-name {
  color: var(--text);
}

.bd-row.is-mine .bd-track i {
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.5));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.55);
}

/* ---------- 朝圣手册 ---------- */

.guide {
  margin-top: 36px;
}

.guide-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.guide-kicker {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}

.guide-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.guide-meta {
  padding-bottom: 4px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--faint);
}

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

.book {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.book::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.7), transparent 72%);
}

.book-index {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.book-title {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
}

.book-meta {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--faint);
}

.book-note {
  margin: 10px 0 0;
  font-size: 0.87rem;
  line-height: 1.8;
  color: var(--muted);
}

.spot {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
  padding: 18px 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.1), rgba(255, 255, 255, 0.02));
}

.spot-pin {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
}

.spot-pin svg {
  width: 18px;
  height: 18px;
}

.spot-body {
  min-width: 0;
}

.spot-label {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.spot-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
}

.spot-address {
  margin: 6px 0 0;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.spot-note {
  margin: 9px 0 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}

.route {
  margin-top: 12px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.route-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.route-kicker {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
}

.route-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.route-duration {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.stops {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stop {
  position: relative;
  display: grid;
  grid-template-columns: 14px 52px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 18px;
}

.stop:last-child {
  padding-bottom: 0;
}

.stop:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 0;
  left: 6px;
  width: 1px;
  background: rgba(var(--accent-rgb), 0.22);
}

.stop-dot {
  z-index: 1;
  width: 13px;
  height: 13px;
  margin-top: 5px;
  border: 1px solid rgba(var(--accent-rgb), 0.65);
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.07);
}

.stop-time {
  padding-top: 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.stop-body strong {
  display: block;
  font-family: var(--display);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.55;
}

.stop-body p {
  margin: 3px 0 0;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--muted);
}

.route-note {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.8;
  color: var(--faint);
}

.route-note::before {
  content: "※";
  color: var(--accent);
}

/* ---------- 朝圣地图弹窗 ---------- */

.atlas-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 20px;
}

.atlas-modal[hidden] {
  display: none;
}

.atlas-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 3, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s var(--ease) both;
}

.atlas-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1040px, 100%);
  max-height: calc(100dvh - 40px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(30, 26, 21, 0.96), rgba(13, 11, 9, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 40px 90px -35px rgba(0, 0, 0, 0.95);
  animation: posterIn 0.45s var(--ease) both;
}

.atlas-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 0;
}

.atlas-kicker {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.atlas-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 700;
  line-height: 1.3;
}

.atlas-progress {
  padding: 14px 24px 0;
}

.atlas-progress-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.atlas-count {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.atlas-count b {
  margin-right: 3px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent);
}

.atlas-hint {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-align: right;
  color: var(--faint);
}

.atlas-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(244, 236, 223, 0.1);
}

.atlas-bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), rgba(var(--accent-rgb), 0.5));
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.45);
  transition: width 0.9s var(--ease);
}

.atlas-scroll {
  min-height: 0;
  padding: 18px 24px 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.atlas-map {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.atlas-panel {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.045), rgba(11, 10, 9, 0.65));
}

.atlas-europe {
  flex: 1.55 1 0;
  aspect-ratio: 1400 / 900;
}

.atlas-china {
  flex: 1 1 0;
  aspect-ratio: 940 / 760;
}

.atlas-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
}

.atlas-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 42%, rgba(11, 10, 9, 0.5) 100%);
  pointer-events: none;
}

.atlas-label {
  position: absolute;
  top: 10px;
  left: 12px;
  z-index: 1;
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 236, 223, 0.45);
}

.atlas-pins {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.atlas-pin {
  position: absolute;
  top: var(--y);
  left: var(--x);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(11, 10, 9, 0.82);
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), background 0.25s var(--ease);
}

.atlas-pin[data-letter="A"] {
  --pin-color: #8fbfa4;
}

.atlas-pin[data-letter="B"] {
  --pin-color: #e0b25a;
}

.atlas-pin[data-letter="C"] {
  --pin-color: #e68a72;
}

.atlas-pin[data-letter="D"] {
  --pin-color: #d99a5b;
}

.atlas-pin[data-letter="E"] {
  --pin-color: #a9a0e6;
}

.atlas-pin.is-unlocked {
  border-color: var(--pin-color);
  background: var(--pin-color);
  color: #0d0b09;
  box-shadow: 0 0 0 4px rgba(11, 10, 9, 0.55), 0 0 18px var(--pin-color);
}

.atlas-pin.is-locked {
  border-style: dashed;
  opacity: 0.72;
}

.atlas-pin.is-locked:hover {
  opacity: 1;
}

.atlas-pin:hover,
.atlas-pin:focus-visible {
  z-index: 5;
  outline: none;
  transform: translate(-50%, -50%) scale(1.14);
}

.atlas-pin.is-active {
  z-index: 4;
  outline: 2px solid var(--pin-color);
  outline-offset: 3px;
}

.atlas-pin::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(11, 10, 9, 0.96);
  color: var(--text);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.atlas-pin:hover::after,
.atlas-pin:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.atlas-pin.is-new::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--pin-color);
  border-radius: 50%;
  animation: pinPulse 1.9s ease-out 3;
}

@keyframes pinPulse {
  from {
    opacity: 0.8;
    transform: scale(0.75);
  }
  to {
    opacity: 0;
    transform: scale(1.9);
  }
}

.atlas-caption {
  margin: 12px 2px 0;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

.atlas-timeline {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.atlas-stop {
  display: grid;
  grid-template-columns: 68px 26px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 12px 10px;
  border-top: 1px solid rgba(244, 236, 223, 0.07);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.atlas-stop:first-child {
  border-top: 0;
}

.atlas-stop.is-active {
  background: rgba(var(--accent-rgb), 0.08);
}

.stop-date {
  padding-top: 5px;
  font-family: var(--sans);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--faint);
}

.atlas-stop.is-unlocked .stop-date {
  color: var(--stop);
}

.stop-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  color: var(--faint);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1;
}

.atlas-stop.is-unlocked .stop-mark {
  border-style: solid;
  border-color: var(--stop);
  background: var(--stop);
  color: #0d0b09;
}

.stop-info strong {
  display: block;
  font-family: var(--display);
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1.5;
}

.stop-info p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--muted);
}

.atlas-stop.is-locked .stop-info strong {
  color: var(--muted);
}

.atlas-actions {
  display: flex;
  gap: 10px;
  padding: 12px 24px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.atlas-actions .btn {
  flex: 1;
}

body.atlas-open {
  overflow: hidden;
}

/* ---------- 海报弹窗 ---------- */

.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}

.poster-modal[hidden] {
  display: none;
}

.poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 3, 3, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s var(--ease) both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.poster-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  max-height: calc(100dvh - 40px);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(30, 26, 21, 0.94), rgba(13, 11, 9, 0.97));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  animation: posterIn 0.42s var(--ease) both;
}

@keyframes posterIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.poster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.poster-title {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.poster-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.poster-close svg {
  width: 15px;
  height: 15px;
}

.poster-close:hover {
  border-color: rgba(var(--accent-rgb), 0.6);
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.poster-frame {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.poster-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 240px);
}

.poster-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.poster-actions .btn {
  flex: 1;
  padding: 13px 18px;
  font-size: 12px;
}

.poster-hint {
  margin: 10px 0 0;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--faint);
}

body.poster-open {
  overflow: hidden;
}

/* ---------- 提示 ---------- */

.toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  z-index: 100;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #16120d;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 40px -18px rgba(var(--accent-rgb), 0.9);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

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

/* ---------- 响应式 ---------- */

@media (max-width: 880px) {
  .screen.is-active {
    justify-content: flex-start;
    padding-top: clamp(36px, 6vh, 56px);
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .orbit {
    width: min(100%, 300px);
    order: 2;
  }

  .intro-copy {
    order: 1;
  }

  .intro-footer {
    margin-top: 40px;
  }
}

@media (max-width: 560px) {
  .stage {
    padding: calc(16px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
  }

  .brand-name {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .vol {
    display: none;
  }

  .masthead-right {
    gap: 8px;
  }

  .atlas-trigger {
    padding: 8px 10px;
  }

  .atlas-trigger span {
    display: none;
  }

  .stamps {
    gap: 8px;
  }

  .mini-stamp {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }

  .atlas-modal {
    padding: 12px;
  }

  .atlas-dialog {
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .atlas-head {
    padding: 16px 16px 0;
  }

  .atlas-progress {
    padding: 12px 16px 0;
  }

  .atlas-scroll {
    padding: 14px 16px 6px;
  }

  .atlas-map {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .atlas-europe,
  .atlas-china {
    flex: none;
    width: 100%;
  }

  .atlas-china {
    width: 74%;
    margin-left: auto;
  }

  .atlas-actions {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  }

  .atlas-stop {
    grid-template-columns: 58px 24px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 8px;
  }

  h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .lede {
    margin-top: 20px;
  }

  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-top: 30px;
  }

  .intro-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .orbit {
    width: min(100%, 236px);
  }

  .orbit-node {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .masthead {
    padding-bottom: 16px;
  }

  .pill-back {
    min-height: 44px;
    padding: 10px 18px;
  }

  .result-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .result-actions {
    margin-top: 26px;
  }

  .guide {
    margin-top: 30px;
  }

  .guide-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .guide-meta {
    padding-bottom: 0;
    white-space: normal;
  }

  .books {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .book {
    padding: 16px;
  }

  .spot {
    gap: 12px;
    padding: 16px;
  }

  .route {
    padding: 16px;
  }

  .stop {
    grid-template-columns: 13px 44px minmax(0, 1fr);
    gap: 10px;
  }

  .breakdown {
    padding: 16px 16px;
  }

  .bd-row {
    grid-template-columns: 18px 62px minmax(0, 1fr) 22px;
    gap: 9px;
  }

  .poster-modal {
    padding: 12px;
  }

  .poster-dialog {
    max-height: calc(100dvh - 24px);
    padding: 13px;
  }

  .poster-frame img {
    max-height: calc(100dvh - 230px);
  }

  .poster-actions {
    flex-wrap: wrap;
  }

  .poster-actions .btn {
    flex: 1 1 140px;
  }

  .ghost-num {
    font-size: 7rem;
  }

  .q-text {
    margin-bottom: 26px;
  }

  .option {
    gap: 14px;
    padding: 14px 16px;
  }

  .option .letter {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .result-hero {
    border-radius: 18px;
  }

  .result-hero-inner {
    min-height: 300px;
    padding: 18px;
  }

  .photo-credit {
    text-align: left;
  }

  .result-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }

  .stamp {
    width: 96px;
  }

  .result-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .result-actions .btn {
    width: 100%;
  }

  .toast {
    width: calc(100% - 40px);
    max-width: 360px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .stage {
    padding-left: 14px;
    padding-right: 14px;
  }

  h1 {
    font-size: 2.55rem;
  }

  .lede {
    font-size: 0.94rem;
  }

  .orbit {
    width: min(100%, 208px);
  }

  .orbit-node {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .orbit-core {
    width: 36%;
  }

  .ghost-num {
    font-size: 6rem;
  }

  .q-text {
    font-size: 1.4rem;
  }

  .option {
    gap: 12px;
    padding: 13px 14px;
    font-size: 0.94rem;
  }

  .option .letter {
    width: 32px;
    height: 32px;
  }

  .result-hero-inner {
    min-height: 280px;
    padding: 16px;
  }

  .atlas-china {
    width: 80%;
  }

  .atlas-stop {
    grid-template-columns: 52px 22px minmax(0, 1fr);
    gap: 8px;
  }

  .stop-info strong {
    font-size: 0.92rem;
  }

  .stamp {
    width: 86px;
  }

  .result-name {
    font-size: 1.7rem;
  }

  .result-panel {
    padding: 18px;
  }
}

@media (max-width: 880px) and (max-height: 720px) {
  .screen.is-active {
    padding-top: 24px;
  }

  .orbit {
    width: min(100%, 184px);
  }

  .intro-footer {
    margin-top: 26px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .screen.is-active {
    padding: 18px 0;
  }

  .masthead {
    padding-bottom: 10px;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 28px;
    align-items: center;
  }

  .intro-copy {
    order: 1;
  }

  h1 {
    font-size: clamp(2rem, 5.4vw, 3rem);
  }

  .lede {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .intro-actions {
    margin-top: 18px;
  }

  .orbit {
    order: 2;
    width: min(100%, 220px);
  }

  .intro-footer {
    display: none;
  }

  .screen.is-active .eyebrow {
    margin-bottom: 12px;
  }
}

@media (hover: none) {
  .option:hover {
    border-color: rgba(255, 255, 255, 0.13);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
    transform: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 12px 28px -24px rgba(0, 0, 0, 0.9);
  }

  .option:hover .letter {
    border-color: var(--line-strong);
    color: var(--muted);
  }

  .option.is-selected:hover {
    border-color: var(--accent);
    background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.26), rgba(var(--accent-rgb), 0.09));
  }

  .option.is-selected:hover .letter {
    border-color: var(--accent);
    color: #16120d;
  }

  .option:active {
    transform: scale(0.99);
  }

  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
    filter: none;
  }

  .btn-ghost:hover {
    border-color: var(--line-strong);
    color: var(--text);
    background: transparent;
  }

  .pill-back:hover {
    border-color: var(--line);
    color: var(--muted);
    background: transparent;
  }

  .orbit-node:hover {
    transform: translate(-50%, -50%);
    border-color: var(--line-strong);
    color: var(--muted);
    box-shadow: none;
  }

  .brand:hover .brand-seal {
    transform: rotate(-5deg);
    background: rgba(var(--accent-rgb), 0.08);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .option,
  .result-panel,
  .breakdown,
  .poster-backdrop {
    background: rgba(22, 19, 16, 0.94);
  }
}

@media (update: slow) {
  .glow,
  .cursor-glow,
  .grain {
    display: none;
  }

  .option,
  .result-panel,
  .breakdown {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(22, 19, 16, 0.94);
  }
}

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