:root {
  --ember: #c81d2b;
  --ember-dark: #7e1018;
  --ember-deep: #4d0b12;
  --ink: #17130f;
  --ink-soft: #4d4740;
  --reed: #d9b868;
  --reed-dark: #8f7132;
  --water: #164b49;
  --water-light: #2b716d;
  --paper: #f6f1e6;
  --paper-deep: #e9dfce;
  --white: #fffdf8;
  --line: rgba(23, 19, 15, 0.14);
  --shadow: 0 24px 70px rgba(31, 13, 8, 0.2);
  --spring: cubic-bezier(.2, 1.25, .38, 1);
  --ease: cubic-bezier(.22, .8, .32, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

body {
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--reed);
  outline-offset: 3px;
}

button:active {
  transform: scale(.97);
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

[hidden] {
  display: none !important;
}

.experience-shell {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  isolation: isolate;
}

.ambient-grain {
  position: fixed;
  z-index: 50;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

.reed-curtain {
  position: fixed;
  z-index: 45;
  bottom: -4vh;
  width: clamp(70px, 12vw, 180px);
  height: 60vh;
  pointer-events: none;
  opacity: .17;
  transform-origin: bottom;
  background:
    linear-gradient(78deg, transparent 47%, var(--water) 48%, var(--water) 50%, transparent 51%) 20% 100% / 36px 100%,
    linear-gradient(84deg, transparent 47%, var(--water) 48%, var(--water) 50%, transparent 51%) 55% 100% / 42px 90%,
    linear-gradient(74deg, transparent 47%, var(--water) 48%, var(--water) 50%, transparent 51%) 88% 100% / 34px 82%;
  animation: reedsSway 7s ease-in-out infinite alternate;
}

.reed-curtain::before,
.reed-curtain::after {
  position: absolute;
  width: 9px;
  height: 46px;
  content: "";
  border-radius: 100%;
  background: var(--reed-dark);
  transform: rotate(-10deg);
}

.reed-curtain::before {
  top: 5%;
  left: 32%;
}

.reed-curtain::after {
  top: 18%;
  left: 66%;
}

.reed-curtain-left {
  left: -10px;
}

.reed-curtain-right {
  right: -10px;
  transform: scaleX(-1);
  animation-name: reedsSwayRight;
}

@keyframes reedsSway {
  from { transform: rotate(-1deg); }
  to { transform: rotate(2.2deg); }
}

@keyframes reedsSwayRight {
  from { transform: scaleX(-1) rotate(-1deg); }
  to { transform: scaleX(-1) rotate(2.2deg); }
}

.experience-header {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(66px + var(--safe-top));
  padding: calc(12px + var(--safe-top)) max(16px, var(--safe-right)) 10px max(16px, var(--safe-left));
  display: grid;
  grid-template-columns: 44px 1fr auto 44px;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  background: rgba(246, 241, 230, .86);
  border-bottom: 1px solid rgba(23, 19, 15, .08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.experience-header.on-dark {
  color: var(--white);
  background: rgba(23, 19, 15, .55);
  border-bottom-color: rgba(255, 255, 255, .12);
}

.icon-button,
.brand-lockup {
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .8;
  transition: transform .18s var(--spring), opacity .18s ease, background .18s ease;
}

.icon-button:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .12);
}

.icon-button svg {
  width: 21px;
  height: 21px;
}

.brand-lockup {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  text-align: left;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  white-space: nowrap;
}

.brand-lockup strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
  letter-spacing: .08em;
}

.brand-lockup small {
  margin-top: 1px;
  font-size: 10px;
  opacity: .62;
}

.brand-flame {
  position: relative;
  width: 24px;
  height: 30px;
  display: block;
  flex: 0 0 auto;
}

.brand-flame::before,
.brand-flame::after {
  position: absolute;
  content: "";
  border-radius: 55% 45% 62% 38%;
  transform: rotate(38deg);
  background: var(--ember);
}

.brand-flame::before {
  inset: 3px 4px 1px 3px;
}

.brand-flame::after {
  inset: 11px 9px 3px 8px;
  background: var(--reed);
}

.header-progress {
  min-width: 76px;
  display: grid;
  grid-template-columns: auto 34px;
  align-items: center;
  gap: 7px;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: .06em;
}

.header-progress i {
  height: 2px;
  overflow: hidden;
  background: currentColor;
  opacity: .28;
}

.header-progress b {
  width: 0;
  height: 100%;
  display: block;
  background: var(--ember);
  transition: width .6s var(--ease);
}

.experience-header.on-dark .header-progress b {
  background: var(--reed);
}

.scene-stage {
  width: 100%;
  height: 100%;
  position: relative;
}

.scene {
  position: absolute;
  inset: 0;
  padding: calc(82px + var(--safe-top)) max(22px, var(--safe-right)) calc(86px + var(--safe-bottom)) max(22px, var(--safe-left));
  visibility: hidden;
  overflow: hidden;
  opacity: 0;
  transform: translateX(8%) scale(.985);
  pointer-events: none;
}

.scene.is-active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  transition: opacity .36s ease, transform .58s var(--spring);
}

.scene.is-leaving {
  z-index: 1;
  visibility: visible;
  opacity: 0;
  transform: translateX(-6%) scale(.985);
  transition: opacity .3s ease, transform .42s var(--ease);
}

.scene-cover {
  padding: 0;
  color: var(--white);
  background: var(--ember-deep);
}

.cover-photo,
.cover-wash {
  position: absolute;
  inset: 0;
}

.cover-photo {
  opacity: .68;
  background-color: var(--ember-deep);
  background-position: 58% center;
  background-size: cover;
  transform: scale(1.03);
  animation: coverDrift 14s ease-in-out infinite alternate;
}

@keyframes coverDrift {
  from { transform: scale(1.03) translateX(0); }
  to { transform: scale(1.09) translateX(-1.4%); }
}

.cover-wash {
  background:
    linear-gradient(90deg, rgba(61, 3, 9, .93) 0%, rgba(82, 6, 14, .77) 40%, rgba(23, 19, 15, .08) 78%),
    linear-gradient(0deg, rgba(23, 19, 15, .62), transparent 45%);
}

.cover-waterline {
  position: absolute;
  right: -5%;
  bottom: 7%;
  width: 78%;
  height: 33%;
  color: var(--reed);
  opacity: .4;
}

.cover-waterline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-dasharray: 6 14;
  animation: waterFlow 12s linear infinite;
}

.cover-waterline path + path {
  opacity: .48;
  animation-direction: reverse;
}

@keyframes waterFlow {
  to { stroke-dashoffset: -240; }
}

.cover-copy {
  position: absolute;
  z-index: 2;
  left: max(7vw, 26px);
  top: 50%;
  width: min(620px, 84vw);
  transform: translateY(-50%);
}

.eyebrow {
  margin: 0 0 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--reed);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  content: "";
  background: currentColor;
}

.eyebrow.dark {
  color: var(--ember);
}

.cover-copy h1 {
  margin: 0;
  font-family: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  font-weight: 500;
  line-height: .98;
  letter-spacing: .06em;
  text-shadow: 0 12px 35px rgba(35, 0, 4, .24);
}

.cover-copy h1 span,
.cover-copy h1 em {
  display: block;
}

.cover-copy h1 span {
  font-size: clamp(54px, 11vw, 118px);
}

.cover-copy h1 em {
  margin: 10px 0 0 .12em;
  color: var(--reed);
  font-size: clamp(27px, 5vw, 54px);
  font-style: normal;
  letter-spacing: .24em;
}

.cover-subtitle {
  margin: 24px 0 8px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: .18em;
}

.cover-intro {
  max-width: 520px;
  margin: 0 0 28px;
  color: rgba(255, 253, 248, .72);
  font-size: 14px;
  line-height: 1.8;
}

.primary-action,
.outline-action,
.text-action {
  cursor: pointer;
  transition: transform .18s var(--spring), box-shadow .24s ease, background .2s ease, color .2s ease;
}

.primary-action {
  min-height: 50px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--white);
  background: var(--ember);
  border: 1px solid var(--ember);
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(126, 16, 24, .22);
  font-weight: 700;
  letter-spacing: .04em;
}

.primary-action:hover {
  box-shadow: 0 14px 34px rgba(126, 16, 24, .32);
  transform: translateY(-2px);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: .46;
  box-shadow: none;
  transform: none;
}

.primary-action svg {
  width: 18px;
  height: 18px;
}

.light-action {
  color: var(--ember-dark);
  background: var(--white);
  border-color: var(--white);
}

.outline-action {
  min-height: 44px;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(23, 19, 15, .28);
  border-radius: 3px;
  font-weight: 700;
}

.outline-action:hover {
  color: var(--ember);
  border-color: var(--ember);
}

.light-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, .46);
}

.light-outline:hover {
  color: var(--reed);
  border-color: var(--reed);
}

.text-action {
  padding: 8px 0;
  color: var(--ember);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.text-action:hover {
  color: var(--ember-dark);
}

.cover-foot {
  position: absolute;
  z-index: 2;
  right: max(4vw, 20px);
  bottom: calc(24px + var(--safe-bottom));
  left: max(4vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  letter-spacing: .08em;
}

.swipe-hint {
  display: flex;
  align-items: center;
  gap: 8px;
}

.swipe-hint i {
  width: 22px;
  height: 34px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 14px;
}

.swipe-hint i::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 2px;
  height: 6px;
  content: "";
  background: var(--white);
  transform: translateX(-50%);
  animation: swipeDot 1.5s ease-in-out infinite;
}

@keyframes swipeDot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}

.scene-mode {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(217, 184, 104, .11) 0 1px, transparent 1px) 0 0 / 42px 42px,
    var(--paper);
}

.section-heading {
  width: 100%;
  min-width: 0;
  max-width: 720px;
  margin: 0 auto 25px;
  text-align: center;
}

.section-heading .eyebrow {
  justify-content: center;
}

.section-heading h2,
.route-copy h2,
.passport-heading h2,
.wall-heading h2,
.dialog-shell h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", serif;
  font-weight: 700;
  letter-spacing: .04em;
}

.section-heading h2 {
  font-size: clamp(28px, 4.4vw, 48px);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.section-heading > p:last-child {
  max-width: 100%;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.mode-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.mode-card {
  min-width: 0;
  min-height: 260px;
  position: relative;
  padding: 26px 24px 22px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 253, 248, .76);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 9px 34px rgba(59, 40, 22, .06);
  text-align: left;
  cursor: pointer;
  transition: transform .38s var(--spring), border-color .2s ease, box-shadow .25s ease, background .25s ease;
}

.mode-card::after {
  position: absolute;
  right: -24px;
  bottom: -54px;
  width: 130px;
  height: 130px;
  content: "";
  border: 1px solid rgba(200, 29, 43, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(200, 29, 43, .035), 0 0 0 36px rgba(200, 29, 43, .02);
  transition: transform .5s var(--spring);
}

.mode-card:hover {
  z-index: 2;
  background: var(--white);
  border-color: rgba(200, 29, 43, .46);
  box-shadow: var(--shadow);
  transform: translateY(-10px);
}

.mode-card:hover::after {
  transform: scale(1.25);
}

.mode-card.is-featured {
  color: var(--white);
  background: var(--ember-dark);
  border-color: var(--ember-dark);
}

.mode-card.is-featured::after {
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, .04), 0 0 0 36px rgba(255, 255, 255, .025);
}

.mode-index {
  display: block;
  color: var(--ember);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
}

.is-featured .mode-index {
  color: var(--reed);
}

.mode-icon {
  width: 58px;
  height: 58px;
  margin: 25px 0 20px;
  display: grid;
  place-items: center;
  color: var(--ember);
  border: 1px solid currentColor;
  border-radius: 50%;
}

.is-featured .mode-icon {
  color: var(--reed);
}

.mode-icon svg {
  width: 34px;
  height: 34px;
}

.mode-card strong,
.mode-card > span:not(.mode-index):not(.mode-icon):not(.mode-recommend),
.mode-card em {
  display: block;
}

.mode-card strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 22px;
}

.mode-card > span:not(.mode-index):not(.mode-icon):not(.mode-recommend) {
  min-width: 0;
  max-width: 260px;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.mode-card.is-featured > span:not(.mode-index):not(.mode-icon):not(.mode-recommend) {
  color: rgba(255, 255, 255, .7);
}

.mode-card em {
  position: absolute;
  left: 24px;
  bottom: 20px;
  color: var(--ember);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.mode-card.is-featured em {
  color: var(--reed);
}

.mode-recommend {
  position: absolute;
  top: 0;
  right: 18px;
  padding: 7px 10px;
  color: var(--ember-dark);
  background: var(--reed);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}

.scene-route {
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(circle at 78% 12%, rgba(217, 184, 104, .2), transparent 27%),
    var(--paper);
}

.route-copy {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.route-copy h2 {
  font-size: clamp(27px, 4vw, 48px);
}

.route-copy > p:last-child {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.route-map {
  width: min(1180px, 100%);
  min-height: 280px;
  position: relative;
  margin: 10px auto;
}

.route-river {
  position: absolute;
  inset: 6% 0 auto;
  width: 100%;
  height: 84%;
  overflow: visible;
}

.river-shadow {
  fill: none;
  stroke: rgba(22, 75, 73, .11);
  stroke-width: 32;
}

.river-line,
.river-progress {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 4 9;
}

.river-line {
  stroke: rgba(22, 75, 73, .38);
}

.river-progress {
  stroke: var(--ember);
  stroke-width: 4;
  stroke-dasharray: none;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .8s var(--ease);
}

.route-stations {
  position: absolute;
  inset: 0;
}

.route-node {
  width: clamp(112px, 13vw, 166px);
  position: absolute;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: transform .32s var(--spring), opacity .2s ease;
}

.route-node:nth-child(1) { left: 0; top: 55%; }
.route-node:nth-child(2) { left: 28%; top: 8%; }
.route-node:nth-child(3) { left: 57%; top: 46%; }
.route-node:nth-child(4) { right: 0; left: auto; top: 9%; }

.route-node:hover:not(:disabled) {
  transform: translateY(-8px);
}

.route-node:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.route-node-marker {
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  color: var(--ember);
  background: var(--paper);
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(246, 241, 230, .7);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  font-weight: 700;
  transition: transform .36s var(--spring), background .2s ease, color .2s ease;
}

.route-node:hover:not(:disabled) .route-node-marker {
  transform: scale(1.12) rotate(-4deg);
}

.route-node.is-finished .route-node-marker {
  color: var(--white);
  background: var(--ember);
  border-color: var(--ember);
  box-shadow: 0 0 0 7px rgba(200, 29, 43, .12);
}

.route-node small,
.route-node strong,
.route-node em {
  display: block;
}

.route-node small {
  color: var(--ember);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.route-node strong {
  margin-top: 4px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(13px, 1.4vw, 17px);
  line-height: 1.25;
}

.route-node em {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  font-style: normal;
}

.route-boat {
  width: 54px;
  position: absolute;
  left: 1%;
  top: 60%;
  color: var(--ember);
  filter: drop-shadow(0 5px 6px rgba(126, 16, 24, .22));
  transition: left .8s var(--spring), top .8s var(--spring), transform .3s ease;
}

.route-boat svg path:first-child {
  fill: currentColor;
}

.route-footer {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.route-legend {
  display: flex;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 10px;
}

.route-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.route-legend i {
  width: 8px;
  height: 8px;
  display: block;
  border: 1px solid var(--ink-soft);
  border-radius: 50%;
}

.route-legend .legend-finished {
  background: var(--ember);
  border-color: var(--ember);
}

.route-legend .legend-locked {
  background: rgba(23, 19, 15, .18);
  border-color: transparent;
}

.scene-station {
  padding: calc(66px + var(--safe-top)) 0 calc(65px + var(--safe-bottom));
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(360px, 46%);
  background: var(--paper);
}

.station-visual {
  min-width: 0;
  position: relative;
  overflow: hidden;
  background: var(--water);
}

.station-photo,
.station-photo-overlay {
  position: absolute;
  inset: 0;
}

.station-photo {
  background-position: center;
  background-size: cover;
  transition: opacity .25s ease, transform .7s var(--ease);
}

.station-photo.is-changing {
  opacity: .2;
  transform: scale(1.05);
}

.station-photo-overlay {
  background:
    linear-gradient(90deg, transparent 52%, rgba(23, 19, 15, .34)),
    linear-gradient(0deg, rgba(23, 19, 15, .66), transparent 48%);
}

.station-coordinate {
  position: absolute;
  top: 28px;
  left: clamp(24px, 4vw, 60px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.station-coordinate span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .72);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 22px;
}

.station-coordinate i {
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, .5);
}

.station-coordinate em {
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .16em;
}

.station-caption {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  color: rgba(255, 255, 255, .52);
  font-size: 9px;
  line-height: 1.5;
}

.station-stamp-preview {
  position: absolute;
  right: 6%;
  bottom: 8%;
  width: clamp(92px, 11vw, 142px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .74);
  border: 4px double currentColor;
  transform: rotate(-8deg);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(46px, 6vw, 78px);
}

.station-panel {
  min-width: 0;
  height: 100%;
  padding: clamp(24px, 4vw, 52px);
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.station-topline {
  display: flex;
  justify-content: space-between;
  color: var(--ember);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.station-panel h2 {
  margin: 13px 0 9px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(27px, 3.2vw, 46px);
  line-height: 1.14;
}

.station-summary {
  min-height: 45px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.station-tabs {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.station-tabs button {
  position: relative;
  padding: 11px 4px;
  color: rgba(23, 19, 15, .48);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.station-tabs button::after {
  position: absolute;
  right: 24%;
  bottom: -1px;
  left: 24%;
  height: 2px;
  content: "";
  background: var(--ember);
  transform: scaleX(0);
  transition: transform .28s var(--spring);
}

.station-tabs button[aria-selected="true"] {
  color: var(--ember);
}

.station-tabs button[aria-selected="true"]::after {
  transform: scaleX(1);
}

.station-tabpanels {
  min-height: 0;
  flex: 1;
  position: relative;
}

.station-tabpanel {
  position: absolute;
  inset: 0;
  padding-top: 18px;
  visibility: hidden;
  overflow: auto;
  opacity: 0;
  transform: translateY(8px);
}

.station-tabpanel.is-active {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .36s var(--spring);
}

.station-tabpanel blockquote {
  margin: 0 0 14px;
  padding: 13px 14px;
  color: var(--water);
  background: rgba(22, 75, 73, .07);
  border-left: 3px solid var(--water);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  line-height: 1.6;
}

.audio-card {
  padding: 13px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
}

.audio-play {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ember);
  border-radius: 50%;
  cursor: pointer;
}

.audio-play svg {
  width: 22px;
  height: 22px;
}

.audio-play .pause-shape,
.audio-play.is-playing .play-shape {
  display: none;
}

.audio-play.is-playing .pause-shape {
  display: block;
}

.audio-card > div {
  min-width: 0;
}

.audio-card strong,
.audio-card span {
  display: block;
}

.audio-card strong {
  font-size: 11px;
}

.audio-card div > span {
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audio-card > span {
  color: var(--ember);
  font-size: 10px;
  font-weight: 800;
}

.media-progress {
  height: 2px;
  margin-top: 8px;
  display: block;
  overflow: hidden;
  background: rgba(23, 19, 15, .1);
}

.media-progress b {
  width: 0;
  height: 100%;
  display: block;
  background: var(--ember);
  transition: width .3s ease;
}

.station-tabpanel .outline-action {
  width: 100%;
  margin-top: 10px;
}

.media-frame {
  width: 100%;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.media-frame video {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: cover;
}

.media-placeholder {
  min-height: 190px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  background:
    linear-gradient(145deg, rgba(200, 29, 43, .26), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, .025) 38px 39px);
}

.media-placeholder strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 20px;
}

.media-placeholder p {
  max-width: 380px;
  margin: 5px 0 9px;
  color: rgba(255, 255, 255, .6);
  font-size: 10px;
  line-height: 1.6;
}

.media-placeholder a {
  color: var(--reed);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.film-mark {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, .34);
}

.film-mark::before,
.film-mark::after {
  position: absolute;
  top: -5px;
  width: 8px;
  height: 4px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .34);
}

.film-mark::before { left: 3px; }
.film-mark::after { right: 3px; }

.gallery-strip {
  margin-top: 9px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 30%;
  gap: 7px;
  overflow-x: auto;
}

.gallery-thumb {
  min-height: 62px;
  overflow: hidden;
  background: var(--paper-deep);
  border: 0;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 12px;
  color: var(--ink-soft);
  background: rgba(23, 19, 15, .04);
  font-size: 10px;
  text-align: center;
}

.task-card {
  padding: 17px;
  background: var(--white);
  border: 1px solid var(--line);
}

.task-card h3 {
  margin: 0 0 7px;
  font-family: "Songti SC", "STSong", serif;
  font-size: 17px;
}

.task-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.7;
}

.task-checks {
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.task-checks li {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.task-checks i {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 19, 15, .22);
  border-radius: 50%;
}

.task-checks li.is-done i {
  color: var(--white);
  background: var(--water);
  border-color: var(--water);
}

.task-checks li.is-done i::after {
  content: "✓";
  font-size: 9px;
}

.task-checks em {
  color: var(--ember);
  font-style: normal;
  font-weight: 700;
}

.task-card + .primary-action {
  width: 100%;
  margin-top: 12px;
}

.station-pager {
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.experience-dock {
  position: fixed;
  z-index: 41;
  bottom: calc(10px + var(--safe-bottom));
  left: 50%;
  padding: 5px;
  display: grid;
  grid-template-columns: repeat(3, 62px);
  color: rgba(255, 255, 255, .62);
  background: rgba(23, 19, 15, .9);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .22);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.experience-dock button {
  height: 43px;
  display: grid;
  grid-template-columns: 17px auto;
  place-content: center;
  align-items: center;
  gap: 5px;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font-size: 9px;
}

.experience-dock button.is-active {
  color: var(--reed);
  background: rgba(255, 255, 255, .08);
}

.experience-dock svg {
  width: 16px;
  height: 16px;
}

.scene-passport {
  padding-bottom: calc(82px + var(--safe-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 20px;
  background: var(--paper);
}

.passport-card,
.passport-aside {
  min-width: 0;
  height: 100%;
}

.passport-card {
  padding: clamp(25px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(200, 29, 43, .04) 1px, transparent 1px) 0 0 / 100% 32px,
    var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.passport-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.passport-heading h2 {
  font-size: clamp(25px, 3vw, 41px);
}

.passport-percent {
  color: var(--ember);
  font-family: "Arial Narrow", Arial, sans-serif;
  white-space: nowrap;
}

.passport-percent strong {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
}

.passport-percent span {
  font-size: 15px;
}

.stamp-grid {
  min-height: 0;
  margin-top: 23px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  flex: 1;
}

.passport-stamp {
  min-height: 120px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(246, 241, 230, .62);
  border: 1px dashed rgba(23, 19, 15, .22);
}

.passport-stamp-mark {
  width: clamp(56px, 7vw, 90px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: rgba(23, 19, 15, .17);
  border: 3px double currentColor;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(27px, 4vw, 45px);
  transform: rotate(-5deg);
}

.passport-stamp.is-earned .passport-stamp-mark {
  color: var(--ember);
  animation: miniStamp .54s var(--spring) both;
}

@keyframes miniStamp {
  0% { opacity: 0; transform: scale(1.7) rotate(-13deg); }
  62% { opacity: 1; transform: scale(.92) rotate(-5deg); }
  100% { transform: scale(1) rotate(-5deg); }
}

.passport-stamp span {
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.passport-result {
  margin-top: 18px;
  padding-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
}

.passport-result > span {
  color: var(--ink-soft);
  font-size: 11px;
}

.compact-action {
  min-height: 42px;
  padding: 0 16px;
  font-size: 11px;
}

.passport-aside {
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--ember-dark);
  text-align: center;
}

.giant-stamp {
  width: min(20vw, 180px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--reed);
  border: 8px double currentColor;
  box-shadow: inset 0 0 0 7px var(--ember-dark);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(66px, 11vw, 112px);
  transform: rotate(6deg);
}

.passport-aside p {
  max-width: 280px;
  margin: 26px 0 20px;
  color: rgba(255, 255, 255, .7);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  line-height: 1.8;
}

.scene-wall {
  padding-bottom: calc(88px + var(--safe-bottom));
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 184, 104, .1), transparent 24%),
    var(--ember-dark);
}

.wall-heading {
  text-align: center;
}

.wall-heading .eyebrow {
  justify-content: center;
}

.wall-heading h2 {
  font-size: clamp(27px, 4vw, 45px);
}

.wall-heading > p:last-child {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: 10px;
}

.message-stage {
  min-height: 0;
  margin: 20px -22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.message-lane {
  width: max-content;
  display: flex;
  gap: 13px;
  animation: messageFlow 34s linear infinite;
}

.message-lane.is-empty {
  margin-left: 0;
  animation: none;
}

.message-lane.lane-two.is-empty {
  margin-left: 0;
  animation: none;
}

.message-lane.lane-two {
  margin-left: -220px;
  animation-direction: reverse;
  animation-duration: 42s;
}

.message-card {
  width: clamp(230px, 30vw, 350px);
  min-height: 116px;
  padding: 18px;
  color: var(--ink);
  background: var(--paper);
  border-left: 4px solid var(--reed);
  box-shadow: 0 16px 32px rgba(31, 0, 4, .15);
}

.message-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.message-card strong {
  font-size: 11px;
}

.message-card time {
  color: rgba(23, 19, 15, .4);
  font-size: 8px;
}

.message-card p {
  margin: 11px 0 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  line-height: 1.65;
}

.message-card footer {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  color: var(--ember);
  font-size: 9px;
  font-weight: 700;
}

@keyframes messageFlow {
  to { transform: translateX(-50%); }
}

.wall-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

dialog {
  width: min(620px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
}

dialog::backdrop {
  background: rgba(23, 19, 15, .78);
  backdrop-filter: blur(7px);
}

.dialog-shell {
  position: relative;
  max-height: min(760px, calc(100dvh - 28px));
  padding: clamp(24px, 5vw, 48px);
  overflow: auto;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  animation: dialogIn .48s var(--spring);
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(30px) scale(.96); }
}

.dialog-close {
  width: 38px;
  height: 38px;
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.dialog-shell h2 {
  margin-right: 36px;
  font-size: clamp(25px, 4vw, 40px);
}

.story-scroll {
  max-height: 43vh;
  margin: 20px 0;
  padding-right: 12px;
  overflow-y: auto;
  color: var(--ink-soft);
  font-family: "Songti SC", "STSong", serif;
  font-size: 14px;
  line-height: 2;
}

.story-scroll p {
  margin: 0 0 1em;
}

.reading-progress {
  margin-bottom: 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 10px;
}

.reading-progress i {
  height: 3px;
  overflow: hidden;
  background: rgba(23, 19, 15, .1);
}

.reading-progress b {
  width: 0;
  height: 100%;
  display: block;
  background: var(--ember);
  transition: width .25s ease;
}

.story-dialog .primary-action {
  width: 100%;
}

.message-form {
  display: grid;
  gap: 13px;
}

.message-form > label,
.message-form fieldset {
  display: grid;
  gap: 7px;
}

.message-form > label > span,
.message-form legend {
  font-size: 11px;
  font-weight: 700;
}

.message-form input,
.message-form select,
.message-form textarea {
  width: 100%;
  padding: 12px 13px;
  background: var(--white);
  border: 1px solid rgba(23, 19, 15, .18);
  border-radius: 2px;
  outline: none;
}

.message-form textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.6;
}

.message-form input:focus,
.message-form select:focus,
.message-form textarea:focus {
  border-color: var(--ember);
  box-shadow: 0 0 0 3px rgba(200, 29, 43, .08);
}

.message-form label small {
  color: rgba(23, 19, 15, .42);
  font-size: 9px;
  text-align: right;
}

.message-form fieldset {
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  border: 0;
}

.message-form legend {
  margin-bottom: 7px;
}

.message-form fieldset label {
  position: relative;
}

.message-form fieldset input {
  position: absolute;
  opacity: 0;
}

.message-form fieldset span {
  padding: 9px 6px;
  display: block;
  color: var(--ink-soft);
  background: rgba(23, 19, 15, .035);
  border: 1px solid var(--line);
  font-size: 10px;
  text-align: center;
  cursor: pointer;
}

.message-form fieldset input:checked + span {
  color: var(--ember);
  background: rgba(200, 29, 43, .06);
  border-color: var(--ember);
}

.form-notice {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.6;
}

.photo-dialog {
  width: min(680px, calc(100% - 28px));
}

.camera-frame {
  aspect-ratio: 4 / 3;
  position: relative;
  margin: 20px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.camera-frame > div {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .62);
  text-align: center;
}

.camera-frame svg {
  width: 48px;
  height: 48px;
  color: var(--reed);
}

.camera-frame strong {
  color: var(--white);
  font-size: 12px;
}

.camera-frame span {
  font-size: 9px;
}

.camera-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.camera-corner {
  width: 34px;
  height: 34px;
  position: absolute;
  z-index: 2;
  border-color: var(--reed);
  border-style: solid;
}

.corner-one { top: 13px; left: 13px; border-width: 2px 0 0 2px; }
.corner-two { top: 13px; right: 13px; border-width: 2px 2px 0 0; }
.corner-three { right: 13px; bottom: 13px; border-width: 0 2px 2px 0; }
.corner-four { bottom: 13px; left: 13px; border-width: 0 0 2px 2px; }

.photo-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.stamp-reveal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background: rgba(77, 11, 18, .96);
}

.ink-bloom {
  position: absolute;
  width: min(78vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(217, 184, 104, .24);
  border-radius: 47% 53% 41% 59%;
  box-shadow:
    0 0 0 45px rgba(217, 184, 104, .035),
    0 0 0 95px rgba(217, 184, 104, .02);
  animation: inkBloom .9s var(--ease) both;
}

@keyframes inkBloom {
  from { opacity: 0; transform: scale(.35) rotate(-30deg); }
}

.reveal-copy {
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.reveal-copy > p {
  margin: 0 0 16px;
  color: var(--reed);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.reveal-stamp {
  width: clamp(150px, 28vw, 240px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--reed);
  border: clamp(7px, 1vw, 11px) double currentColor;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: clamp(86px, 18vw, 150px);
  transform: rotate(-7deg);
  animation: stampPress .72s var(--spring) .12s both;
}

@keyframes stampPress {
  0% { opacity: 0; transform: scale(2.1) rotate(-17deg); filter: blur(4px); }
  56% { opacity: 1; transform: scale(.88) rotate(-7deg); filter: blur(0); }
  76% { transform: scale(1.06) rotate(-7deg); }
  100% { transform: scale(1) rotate(-7deg); }
}

.reveal-copy h2 {
  margin: 22px 0 7px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(27px, 5vw, 45px);
}

.reveal-copy > span {
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .6);
  font-size: 11px;
}

.toast {
  position: fixed;
  z-index: 120;
  top: calc(78px + var(--safe-top));
  left: 50%;
  max-width: calc(100% - 40px);
  padding: 11px 16px;
  color: var(--white);
  background: rgba(23, 19, 15, .92);
  border-left: 3px solid var(--reed);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .24);
  opacity: 0;
  transform: translate(-50%, -14px);
  pointer-events: none;
  transition: opacity .22s ease, transform .36s var(--spring);
  font-size: 11px;
}

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

@media (max-width: 799px) {
  .experience-header {
    grid-template-columns: 40px 1fr auto 40px;
  }

  .brand-lockup strong {
    font-size: 12px;
  }

  .brand-flame {
    display: none;
  }

  .header-progress {
    min-width: 62px;
    grid-template-columns: auto 25px;
  }

  .cover-photo {
    background-position: 62% center;
  }

  .cover-wash {
    background:
      linear-gradient(0deg, rgba(61, 3, 9, .96) 0%, rgba(75, 5, 12, .74) 55%, rgba(23, 19, 15, .16) 100%);
  }

  .cover-copy {
    top: auto;
    bottom: calc(96px + var(--safe-bottom));
    transform: none;
  }

  .cover-copy h1 span {
    font-size: clamp(48px, 15vw, 72px);
  }

  .cover-copy h1 em {
    font-size: clamp(22px, 7vw, 34px);
  }

  .cover-intro {
    max-width: 90%;
    font-size: 12px;
  }

  .cover-foot {
    bottom: calc(18px + var(--safe-bottom));
  }

  .cover-foot > span:first-child {
    max-width: 58%;
  }

  .scene-mode {
    padding-top: calc(76px + var(--safe-top));
    justify-content: flex-start;
  }

  .section-heading {
    margin-bottom: 15px;
  }

  .section-heading h2 {
    max-width: 310px;
    margin-right: auto;
    margin-left: auto;
    font-size: 25px;
    line-height: 1.24;
  }

  .section-heading > p:last-child {
    max-width: 326px;
    margin-right: auto;
    margin-left: auto;
  }

  .mode-grid {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
  }

  .mode-card {
    min-height: 116px;
    padding: 17px 18px 14px 90px;
  }

  .mode-index {
    position: absolute;
    top: 13px;
    right: 14px;
  }

  .mode-icon {
    width: 52px;
    height: 52px;
    position: absolute;
    top: 50%;
    left: 20px;
    margin: 0;
    transform: translateY(-50%);
  }

  .mode-card:hover {
    transform: translateX(4px);
  }

  .mode-card strong {
    font-size: 18px;
  }

  .mode-card > span:not(.mode-index):not(.mode-icon):not(.mode-recommend) {
    max-width: 100%;
    margin-top: 5px;
    line-height: 1.5;
  }

  .mode-card em {
    position: static;
    margin-top: 6px;
  }

  .mode-recommend {
    right: 45px;
    padding: 5px 8px;
  }

  .scene-route {
    padding-right: 26px;
    padding-left: 26px;
  }

  .route-copy h2 {
    font-size: 28px;
  }

  .route-map {
    min-height: 0;
    margin: 8px 0;
  }

  .route-river {
    top: 0;
    left: 2px;
    width: 62px;
    height: 100%;
    transform: rotate(90deg) translateY(-100%);
    transform-origin: top left;
    opacity: .52;
  }

  .route-stations {
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    gap: 5px;
  }

  .route-node,
  .route-node:nth-child(n) {
    width: 100%;
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    padding-left: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .route-node-marker {
    width: 42px;
    height: 42px;
    position: absolute;
    top: 50%;
    left: 0;
    margin: 0;
    font-size: 18px;
    transform: translateY(-50%);
  }

  .route-node:hover:not(:disabled) {
    transform: translateX(5px);
  }

  .route-node:hover:not(:disabled) .route-node-marker {
    transform: translateY(-50%) scale(1.08);
  }

  .route-node strong {
    font-size: 14px;
  }

  .route-boat {
    width: 40px;
    left: 4px !important;
    top: 4% !important;
    opacity: .8;
    transform: rotate(90deg);
  }

  .route-footer {
    align-items: flex-end;
  }

  .route-legend {
    display: grid;
    gap: 4px;
  }

  .scene-station {
    padding-bottom: calc(64px + var(--safe-bottom));
    grid-template-columns: 1fr;
    grid-template-rows: 39% 61%;
  }

  .station-photo-overlay {
    background: linear-gradient(0deg, rgba(23, 19, 15, .68), transparent 60%);
  }

  .station-coordinate {
    top: 18px;
    left: 20px;
  }

  .station-coordinate span {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .station-stamp-preview {
    width: 76px;
    right: 24px;
    bottom: 22px;
    font-size: 40px;
  }

  .station-caption {
    right: 115px;
    bottom: 12px;
    left: 20px;
  }

  .station-panel {
    padding: 18px 22px 8px;
  }

  .station-panel h2 {
    margin: 8px 0 5px;
    font-size: 26px;
  }

  .station-summary {
    min-height: 0;
    font-size: 11px;
    line-height: 1.6;
  }

  .station-tabs {
    margin-top: 11px;
  }

  .station-tabs button {
    padding: 9px 4px;
  }

  .station-tabpanel {
    padding-top: 10px;
  }

  .station-tabpanel blockquote {
    margin-bottom: 8px;
    padding: 9px 11px;
    font-size: 11px;
  }

  .audio-card {
    padding: 9px;
  }

  .audio-play {
    width: 36px;
    height: 36px;
  }

  .media-frame,
  .media-placeholder {
    min-height: 145px;
  }

  .media-placeholder {
    padding: 18px;
  }

  .task-card {
    padding: 13px;
  }

  .station-pager {
    padding-top: 4px;
  }

  .scene-passport {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 9px;
  }

  .passport-card {
    padding: 22px;
  }

  .passport-heading h2 {
    font-size: 24px;
  }

  .passport-percent strong {
    font-size: 40px;
  }

  .stamp-grid {
    margin-top: 14px;
    grid-template-columns: repeat(4, minmax(58px, 1fr));
    gap: 5px;
    overflow-x: auto;
  }

  .passport-stamp {
    min-height: 102px;
    padding: 8px 4px;
  }

  .passport-stamp-mark {
    width: 48px;
    font-size: 25px;
  }

  .passport-stamp span {
    font-size: 8px;
  }

  .passport-aside {
    min-height: 155px;
    padding: 18px;
    display: grid;
    grid-template-columns: 82px 1fr;
    grid-template-rows: 1fr auto;
    gap: 0 18px;
    text-align: left;
  }

  .giant-stamp {
    width: 82px;
    grid-row: 1 / 3;
    border-width: 5px;
    font-size: 48px;
  }

  .passport-aside p {
    margin: 0 0 8px;
    font-size: 10px;
    line-height: 1.6;
  }

  .passport-aside .outline-action {
    min-height: 38px;
    font-size: 10px;
  }

  .message-stage {
    margin-top: 12px;
    margin-bottom: 12px;
  }

  .message-card {
    width: 240px;
    min-height: 105px;
    padding: 14px;
  }

  .experience-dock {
    bottom: calc(7px + var(--safe-bottom));
  }
}

@media (max-height: 650px) {
  .scene {
    padding-top: calc(72px + var(--safe-top));
    padding-bottom: calc(65px + var(--safe-bottom));
  }

  .cover-copy {
    bottom: calc(65px + var(--safe-bottom));
  }

  .cover-copy .eyebrow {
    margin-bottom: 8px;
  }

  .cover-subtitle {
    margin-top: 13px;
  }

  .cover-intro {
    margin-bottom: 14px;
  }

  .mode-card {
    min-height: 96px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .mode-card > span:not(.mode-index):not(.mode-icon):not(.mode-recommend) {
    display: none;
  }

  .scene-station {
    grid-template-rows: 34% 66%;
  }

  .station-summary {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 800px) and (orientation: landscape) {
  .experience-dock {
    right: 18px;
    bottom: 50%;
    left: auto;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 56px);
    transform: translateY(50%);
  }

  .experience-dock button {
    grid-template-columns: 1fr;
    grid-template-rows: 19px auto;
    gap: 2px;
  }
}

/* 芦荡窗棂与宣纸折角：让功能框拥有线路自己的识别度 */
.mode-card {
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(246, 241, 230, .76));
  box-shadow: inset 0 0 0 1px rgba(126, 16, 24, .16);
  filter: drop-shadow(0 14px 24px rgba(59, 40, 22, .08));
  clip-path: polygon(0 14px, 14px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 17px), calc(100% - 17px) 100%, 3px 100%, 0 calc(100% - 3px));
}

.mode-card::before {
  position: absolute;
  z-index: 1;
  inset: 8px;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--reed) 22px, transparent 0) left top / 22px 1px no-repeat,
    linear-gradient(var(--reed) 22px, transparent 0) left top / 1px 22px no-repeat,
    linear-gradient(270deg, var(--reed) 22px, transparent 0) right bottom / 22px 1px no-repeat,
    linear-gradient(0deg, var(--reed) 22px, transparent 0) right bottom / 1px 22px no-repeat;
  opacity: .42;
}

.mode-card.is-featured {
  background:
    radial-gradient(circle at 82% 18%, rgba(217, 184, 104, .17), transparent 28%),
    linear-gradient(145deg, #8d1520, var(--ember-dark));
  box-shadow: inset 0 0 0 1px rgba(217, 184, 104, .4);
}

.mode-card > * {
  z-index: 2;
}

.mode-card > strong,
.mode-card > span:not(.mode-index):not(.mode-icon):not(.mode-recommend),
.mode-card > em {
  position: relative;
}

.audio-card,
.task-card,
.passport-card,
.passport-stamp,
.message-card {
  border: 0;
  border-radius: 0;
  background-color: var(--white);
  background-image:
    linear-gradient(135deg, rgba(217, 184, 104, .17), transparent 24%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(126, 16, 24, .035) 31px 32px);
  box-shadow:
    inset 0 0 0 1px rgba(126, 16, 24, .15),
    0 16px 34px rgba(59, 40, 22, .07);
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 13px), calc(100% - 13px) 100%, 0 100%);
}

.station-tabpanel blockquote {
  border: 0;
  border-left: 3px solid var(--water);
  background:
    linear-gradient(135deg, transparent 9px, rgba(22, 75, 73, .075) 0);
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
}

.route-node-marker {
  border-radius: 2px;
  border-style: double;
  border-width: 4px;
  box-shadow: 0 0 0 6px rgba(246, 241, 230, .72);
  transform: rotate(-4deg);
}

.route-node:nth-child(even) .route-node-marker {
  transform: rotate(4deg);
}

.route-node:hover:not(:disabled) .route-node-marker {
  transform: scale(1.1) rotate(0);
}

.message-card {
  position: relative;
  background-color: var(--paper);
}

.message-card::before {
  width: 3px;
  position: absolute;
  inset: 12px auto 12px 8px;
  content: "";
  background: linear-gradient(var(--reed), var(--ember));
}

/* 竖版是独立构图，不压缩横版模块 */
@media (max-width: 799px) and (orientation: portrait) {
  .scene-mode,
  .scene-route,
  .scene-passport,
  .scene-wall {
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .scene-mode {
    padding: calc(82px + var(--safe-top)) 20px calc(88px + var(--safe-bottom));
  }

  .section-heading {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
  }

  .section-heading h2,
  .section-heading > p:last-child {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
  }

  .section-heading h2 {
    max-width: 330px;
    font-size: clamp(27px, 8vw, 34px);
  }

  .mode-grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .mode-card {
    min-height: 136px;
    padding: 20px 22px 18px 94px;
  }

  .mode-card > span:not(.mode-index):not(.mode-icon):not(.mode-recommend) {
    display: block;
    max-width: 250px;
    margin-top: 7px;
    font-size: 11px;
    line-height: 1.65;
  }

  .mode-card .mode-icon {
    width: 56px;
    height: 56px;
    left: 22px;
  }

  .mode-card em {
    margin-top: 9px;
  }

  .scene-route {
    padding: calc(82px + var(--safe-top)) 20px calc(92px + var(--safe-bottom));
    grid-template-rows: auto minmax(470px, 1fr) auto;
  }

  .route-copy h2 {
    max-width: 320px;
    font-size: 31px;
    line-height: 1.2;
  }

  .route-map {
    min-height: 470px;
    margin: 18px 0;
  }

  .route-river {
    left: 13px;
    width: 58px;
  }

  .route-stations {
    gap: 10px;
  }

  .route-node,
  .route-node:nth-child(n) {
    width: calc(100% - 24px);
    margin-left: 24px;
    padding: 13px 16px 13px 70px;
    background:
      linear-gradient(135deg, transparent 10px, rgba(255, 255, 255, .72) 0);
    box-shadow: inset 0 0 0 1px rgba(126, 16, 24, .1);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  }

  .route-node-marker {
    left: 8px;
  }

  .route-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 13px;
  }

  .route-footer .primary-action {
    width: 100%;
  }

  .scene-station {
    grid-template-rows: clamp(250px, 42dvh, 370px) minmax(0, 1fr) !important;
    overflow: hidden;
  }

  .station-visual {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), 58% 100%, 0 calc(100% - 12px));
  }

  .station-panel {
    z-index: 2;
    height: calc(100% + 18px);
    margin-top: -18px;
    padding: 25px 20px 12px;
    background:
      linear-gradient(90deg, rgba(200, 29, 43, .06) 1px, transparent 1px) 20px 0 / 34px 100%,
      var(--paper);
    clip-path: polygon(0 18px, 42% 0, 100% 10px, 100% 100%, 0 100%);
  }

  .station-panel h2 {
    margin-top: 9px;
    font-size: clamp(27px, 8vw, 34px);
  }

  .station-summary {
    display: block;
    overflow: visible;
    font-size: 11px;
    -webkit-line-clamp: unset;
  }

  .station-tabs {
    margin-top: 13px;
  }

  .station-tabpanel {
    padding: 12px 2px 8px;
    overscroll-behavior: contain;
  }

  .scene-passport {
    display: block;
    padding: calc(82px + var(--safe-top)) 18px calc(92px + var(--safe-bottom));
  }

  .passport-card,
  .passport-aside {
    width: 100%;
    height: auto;
  }

  .passport-card {
    min-height: 520px;
    padding: 26px 20px;
  }

  .passport-heading {
    align-items: flex-end;
  }

  .passport-heading h2 {
    max-width: 245px;
    font-size: 27px;
    line-height: 1.25;
  }

  .stamp-grid {
    margin-top: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
  }

  .passport-stamp {
    min-height: 132px;
  }

  .passport-stamp-mark {
    width: 62px;
    font-size: 31px;
  }

  .passport-aside {
    min-height: 174px;
    margin-top: 14px;
  }

  .wall-heading {
    text-align: left;
  }

  .wall-heading p {
    margin-right: 0;
    margin-left: 0;
  }

  .message-card {
    width: min(78vw, 300px);
    min-height: 128px;
    padding: 17px 18px 16px 22px;
  }
}

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

/* ===== 火种同行系统：八位成员只作为行走叙事与页面装饰 ===== */

.cover-copy {
  width: min(760px, 88vw);
}

.cover-copy h1 {
  font-size: clamp(28px, 4.9vw, 68px);
  line-height: 1.08;
  letter-spacing: .035em;
  white-space: nowrap;
}

.cover-subtitle {
  margin: 19px 0 7px;
  font-size: clamp(14px, 1.7vw, 20px);
  letter-spacing: .3em;
}

.team-member {
  width: auto;
  display: block;
  object-fit: contain;
  object-position: 50% 100%;
  user-select: none;
  -webkit-user-drag: none;
}

.cover-team {
  width: min(57vw, 760px);
  height: clamp(138px, 23vh, 196px);
  position: absolute;
  z-index: 2;
  right: max(2.5vw, 18px);
  bottom: calc(55px + var(--safe-bottom));
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 15px 12px rgba(23, 8, 2, .34));
  animation: teamArrive 1.05s var(--spring) both;
}

.cover-team::before {
  height: 18px;
  position: absolute;
  right: 1%;
  bottom: -3px;
  left: 1%;
  content: "";
  border-bottom: 1px solid rgba(217, 184, 104, .55);
  background: radial-gradient(ellipse at center, rgba(255, 248, 224, .26), transparent 68%);
  transform: skewX(-18deg);
}

.cover-team .team-member {
  height: clamp(104px, 20vh, 174px);
  position: absolute;
  bottom: 0;
  left: calc(var(--member-index) * 11.2%);
  transform-origin: 50% 100%;
  animation: teamStride 1.08s cubic-bezier(.46, 0, .54, 1) infinite;
  animation-delay: var(--member-delay, 0s);
}

.cover-team .team-member:nth-child(2n) { height: clamp(96px, 18.2vh, 158px); }
.cover-team .team-member:nth-child(3n) { bottom: 4px; }
.cover-team .team-member:nth-child(5) { z-index: 2; }
.cover-team .team-member:nth-child(6) { z-index: 1; }

@keyframes teamArrive {
  from { opacity: 0; transform: translate3d(8vw, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes teamStride {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(.35deg); }
  50% { transform: translate3d(5px, -5px, 0) rotate(-.45deg); }
}

/* 路线上的四组同行者，与四个站点的完成状态同步。 */
.route-stations { z-index: 2; }

.route-team {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.route-team-pair {
  width: 82px;
  height: 74px;
  position: absolute;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  filter: drop-shadow(0 6px 5px rgba(23, 19, 15, .18));
  transition: filter .4s ease, opacity .4s ease;
}

.route-team-pair:nth-child(1) { left: 12%; top: 29%; }
.route-team-pair:nth-child(2) { left: 41%; top: 52%; }
.route-team-pair:nth-child(3) { left: 69%; top: 10%; }
.route-team-pair:nth-child(4) { right: 2%; top: 52%; }

.route-team-pair .team-member {
  height: 66px;
  margin-left: -9px;
  transform-origin: 50% 100%;
}

.route-team-pair .team-member:first-child { margin-left: 0; }
.route-team-pair.is-finished { opacity: .82; filter: sepia(.18) drop-shadow(0 5px 5px rgba(126, 16, 24, .2)); }
.route-team-pair.is-open { opacity: .68; }
.route-team-pair.is-locked { opacity: .25; filter: grayscale(1); }

.route-team-pair.is-current::after {
  width: 8px;
  height: 8px;
  position: absolute;
  right: 2px;
  bottom: 3px;
  content: "";
  background: var(--ember);
  border: 2px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(200, 29, 43, .12);
  animation: routeBeacon 1.6s ease-out infinite;
}

.route-team-pair.is-current .team-member {
  animation: routeStride .86s cubic-bezier(.45, 0, .55, 1) infinite;
  animation-delay: var(--member-delay, 0s);
}

@keyframes routeStride {
  0%, 100% { transform: translate3d(-2px, 0, 0); }
  50% { transform: translate3d(4px, -4px, 0); }
}

@keyframes routeBeacon {
  0% { box-shadow: 0 0 0 0 rgba(200, 29, 43, .34); }
  100% { box-shadow: 0 0 0 12px rgba(200, 29, 43, 0); }
}

/* 站点页只在景点画面两侧出现同行者，不进入讲解和任务组件。 */
.station-companions {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.station-companions .team-member {
  height: clamp(116px, 23vh, 196px);
  position: absolute;
  bottom: -5px;
  opacity: .84;
  filter: drop-shadow(0 10px 9px rgba(18, 10, 3, .36));
  transform-origin: 50% 100%;
}

.station-companions .is-left {
  left: clamp(10px, 2.5vw, 34px);
  animation: stationWalkLeft 3.4s ease-in-out infinite;
}

.station-companions .is-right {
  right: clamp(10px, 2.5vw, 34px);
  animation: stationWalkRight 3.6s ease-in-out infinite;
  animation-delay: -.8s;
}

@keyframes stationWalkLeft {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(8px, -5px, 0); }
}

@keyframes stationWalkRight {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(-1); }
  50% { transform: translate3d(-8px, -5px, 0) scaleX(-1); }
}

.audio-card { grid-template-columns: 44px 1fr auto; }

.passport-team {
  height: clamp(58px, 8vh, 82px);
  position: relative;
  margin-top: 14px;
  overflow: hidden;
  pointer-events: none;
  border-bottom: 1px solid rgba(126, 16, 24, .14);
  background: linear-gradient(0deg, rgba(217, 184, 104, .1), transparent 52%);
}

.passport-team .team-member {
  height: clamp(54px, 7.6vh, 76px);
  position: absolute;
  bottom: -1px;
  left: calc(1% + var(--member-index) * 12.4%);
  transform-origin: 50% 100%;
  animation: passportArrival 3.8s ease-in-out infinite;
  animation-delay: var(--member-delay, 0s);
}

.passport-team .team-member:nth-child(2n) { height: clamp(49px, 7vh, 69px); }

@keyframes passportArrival {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.passport-team-note {
  margin: 7px 0 0;
  color: var(--reed);
  font-size: 9px;
  letter-spacing: .2em;
  text-align: center;
}

@media (max-width: 799px) {
  .cover-copy {
    right: 20px;
    bottom: calc(205px + var(--safe-bottom));
    left: 20px;
    width: auto;
  }

  .cover-copy h1 {
    font-size: clamp(27px, 7.2vw, 36px);
    letter-spacing: -.015em;
  }

  .cover-subtitle {
    margin-top: 14px;
    font-size: 13px;
  }

  .cover-intro {
    margin-bottom: 18px;
  }

  .cover-team {
    width: calc(100% - 22px);
    height: clamp(108px, 31vw, 138px);
    right: 8px;
    bottom: calc(52px + var(--safe-bottom));
  }

  .cover-team .team-member,
  .cover-team .team-member:nth-child(2n) {
    height: clamp(84px, 27vw, 118px);
    left: calc(var(--member-index) * 10.8%);
  }

  .cover-team .team-member:nth-child(2n) { height: clamp(78px, 24.5vw, 108px); }

  .route-node,
  .route-node:nth-child(n) {
    padding-right: 90px;
  }

  .route-team-pair,
  .route-team-pair:nth-child(n) {
    width: 70px;
    height: 25%;
    right: 8px;
    left: auto;
    top: calc(var(--pair-index) * 25%);
    align-items: center;
  }

  .route-team-pair .team-member {
    height: clamp(43px, 12vw, 56px);
    margin-left: -8px;
  }

  .route-team-pair.is-current::after {
    right: 0;
    bottom: calc(50% - 28px);
  }

  .station-companions .team-member {
    height: clamp(94px, 30vw, 132px);
  }

  .audio-card { grid-template-columns: 36px 1fr auto; }

  .passport-team {
    height: 78px;
    margin-top: 16px;
  }

  .passport-team .team-member,
  .passport-team .team-member:nth-child(2n) {
    height: clamp(54px, 17vw, 70px);
    left: calc(var(--member-index) * 12.25%);
  }
}

@media (max-width: 799px) and (max-height: 700px) {
  .cover-copy { bottom: calc(167px + var(--safe-bottom)); }
  .cover-copy .eyebrow { margin-bottom: 7px; }
  .cover-subtitle { margin-top: 10px; }
  .cover-intro { margin-bottom: 12px; }
  .cover-team {
    height: 100px;
    bottom: calc(47px + var(--safe-bottom));
  }
  .cover-team .team-member,
  .cover-team .team-member:nth-child(2n) { height: 88px; }
  .cover-team .team-member:nth-child(2n) { height: 80px; }
}

/* 芦火火作为固定品牌入口，替代抽象火焰符号。 */
.brand-mascot {
  width: 36px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  filter: drop-shadow(0 3px 4px rgba(126, 16, 24, .18));
}

.brand-mascot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* 站点名承担线路标签的作用，保持一站一行。 */
.route-node strong {
  white-space: nowrap;
}

.gallery-thumb {
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(126, 16, 24, .12);
  transition: transform .28s var(--spring), box-shadow .24s ease;
}

.gallery-thumb::after {
  width: 25px;
  height: 25px;
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  content: "+";
  color: var(--white);
  background: rgba(126, 16, 24, .88);
  border: 1px solid rgba(255, 255, 255, .55);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s ease, transform .3s var(--spring);
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  z-index: 1;
  box-shadow: 0 9px 24px rgba(59, 40, 22, .18), inset 0 0 0 2px var(--ember);
  transform: translateY(-3px);
  outline: none;
}

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

.gallery-dialog {
  width: min(1120px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
}

.gallery-dialog::backdrop {
  background: rgba(10, 7, 5, .9);
}

.gallery-viewer-shell {
  min-height: min(78dvh, 760px);
  position: relative;
  padding: clamp(18px, 3vw, 34px) clamp(52px, 7vw, 90px) 22px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(217, 184, 104, .08) 1px, transparent 1px) 0 0 / 58px 100%,
    radial-gradient(circle at 50% 40%, rgba(217, 184, 104, .09), transparent 52%),
    #110d0a;
  border: 1px solid rgba(217, 184, 104, .5);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .55);
  animation: dialogIn .42s var(--spring);
}

.gallery-viewer-shell::before,
.gallery-viewer-shell::after {
  width: 42px;
  height: 42px;
  position: absolute;
  content: "";
  pointer-events: none;
}

.gallery-viewer-shell::before {
  top: 10px;
  left: 10px;
  border-top: 1px solid var(--reed);
  border-left: 1px solid var(--reed);
}

.gallery-viewer-shell::after {
  right: 10px;
  bottom: 10px;
  border-right: 1px solid var(--reed);
  border-bottom: 1px solid var(--reed);
}

.gallery-viewer-shell figure {
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  place-items: center;
}

.gallery-viewer-shell figure img {
  max-width: 100%;
  max-height: min(67dvh, 650px);
  display: block;
  object-fit: contain;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .38);
}

.gallery-viewer-shell figcaption {
  color: rgba(255, 255, 255, .78);
  font-family: "Songti SC", "STSong", serif;
  font-size: 13px;
  letter-spacing: .1em;
  text-align: center;
}

.gallery-viewer-close,
.gallery-viewer-arrow {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--white);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .25);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, transform .25s var(--spring);
}

.gallery-viewer-close {
  width: 40px;
  height: 40px;
  top: 14px;
  right: 14px;
  border-radius: 50%;
  font-size: 27px;
  font-weight: 300;
}

.gallery-viewer-arrow {
  width: 46px;
  height: 70px;
  top: 50%;
  font-family: serif;
  font-size: 40px;
  transform: translateY(-50%);
}

.gallery-viewer-arrow.is-previous { left: 13px; }
.gallery-viewer-arrow.is-next { right: 13px; }

.gallery-viewer-close:hover,
.gallery-viewer-arrow:hover,
.gallery-viewer-close:focus-visible,
.gallery-viewer-arrow:focus-visible {
  color: var(--reed);
  background: rgba(126, 16, 24, .72);
  outline: none;
}

.gallery-viewer-arrow:hover,
.gallery-viewer-arrow:focus-visible { transform: translateY(-50%) scale(1.06); }

.gallery-viewer-count {
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--reed);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}

@media (max-width: 799px) {
  .brand-mascot {
    width: 32px;
    height: 38px;
  }

  .gallery-thumb::after {
    opacity: 1;
    transform: scale(.9);
  }

  .gallery-viewer-shell {
    min-height: min(75dvh, 650px);
    padding: 54px 14px 54px;
  }

  .gallery-viewer-shell figure img {
    max-height: 58dvh;
  }

  .gallery-viewer-arrow {
    width: 48px;
    height: 42px;
    top: auto;
    bottom: 8px;
    transform: none;
    font-size: 30px;
  }

  .gallery-viewer-arrow.is-previous { left: 14px; }
  .gallery-viewer-arrow.is-next { right: 14px; }
  .gallery-viewer-arrow:hover,
  .gallery-viewer-arrow:focus-visible { transform: scale(1.06); }
  .gallery-viewer-count { right: 50%; bottom: 23px; transform: translateX(50%); }
}

@media (max-width: 360px) {
  .route-node,
  .route-node:nth-child(n) { padding-right: 78px; }
  .route-node strong { font-size: 11px; letter-spacing: -.035em; }
  .route-team-pair,
  .route-team-pair:nth-child(n) { width: 62px; right: 5px; }
}
