:root {
  --paper: #f7f2e6;
  --ink: #14243c;
  --muted: #62695f;
  --gold: #b78016;
  --line: #cbc7b6;
  --sea: #e3eae5;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  height: 100%;
  overflow: hidden;
}
html {
  height: 100%;
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.35;
}
.page {
  overflow: hidden;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(24px, 4vw, 64px);
  border-bottom: 1.5px solid var(--ink);
}
.brand {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.brand strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
}
.brand small {
  display: block;
  margin-top: 6px;
  font:
    700 10px/1.1 ui-monospace,
    Menlo,
    monospace;
  letter-spacing: 0.12em;
}
.top-nav {
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-nav > * {
  flex: none;
}
.top-nav a {
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--ink);
  border-radius: 30px;
  padding: 12px 15px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.top-nav .enter,
.development-badge {
  background: var(--ink);
  color: var(--paper);
}
.top-nav a:hover {
  background: #e8dcbf;
}
.top-nav .enter:hover {
  background: #334662;
}
.development-badge {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border: 1px solid var(--ink);
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.story {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
}
.story-body {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(20px, 2.8vw, 48px);
  min-height: calc(100svh - 210px);
  padding: 18px 0 14px;
}
.copy-column {
  padding: 0 0 4px;
  max-height: calc(100svh - 230px);
  overflow: hidden;
}
.eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  color: #6b5731;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.small-rule {
  width: 24px;
  height: 2px;
  background: var(--gold);
}
.story-copy {
  min-height: 240px;
}
.story-copy.is-swap {
  animation: copy-swap 0.42s cubic-bezier(0.2, 0.75, 0.2, 1);
}
@keyframes copy-swap {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
.chapter {
  font:
    600 12px/1.5 ui-monospace,
    Menlo,
    monospace;
  letter-spacing: 0.13em;
  margin: 0 0 12px;
  color: #656859;
}
h1 {
  margin: 0;
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.06em;
  font-weight: 850;
}
h1 em {
  display: block;
  font-style: normal;
  color: var(--gold);
}
.description {
  max-width: 470px;
  font-size: 15px;
  line-height: 1.7;
  margin: 16px 0 0;
  color: #465047;
}
.copy-note {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
  margin: 12px 0 0;
  color: #665b42;
}
.route-legend {
  display: flex;
  gap: 14px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.route-chip {
  position: relative;
  text-align: left;
  background: none;
  border: 0;
  padding: 4px 0;
  min-height: 44px;
  flex: 1;
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
}
.route-chip > span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b78016;
  margin-right: 6px;
}
.route-chip.g331 > span {
  background: #258477;
}
.route-chip.g228 > span {
  background: #b45f43;
}
.route-chip small {
  display: block;
  font-size: 11px;
  color: #737463;
  margin-top: 4px;
  font-weight: 500;
  padding-left: 12px;
}
.route-chip[aria-pressed="true"]:after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 75%;
  height: 2px;
  background: currentColor;
}
.project-status {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #757765;
  margin: 12px 0 0;
  flex-wrap: wrap;
}
.project-status i {
  width: 5px;
  height: 5px;
  background: #7f8e50;
  border-radius: 50%;
}
.achievement-preview {
  display: none;
  margin-top: 16px;
  padding: 13px 14px 11px;
  border: 1px solid var(--ink);
  background: #fbf7ed;
  box-shadow: 5px 5px 0 #d9cda9;
}
.story[data-step="2"] .route-legend,
.story[data-step="3"] .route-legend {
  display: none;
}
.story[data-step="2"] .achievement-preview,
.story[data-step="3"] .achievement-preview {
  display: block;
}
.achievement-preview header {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 9px;
  align-items: baseline;
}
.achievement-preview header span {
  grid-row: 1 / 3;
  align-self: center;
  writing-mode: vertical-rl;
  color: var(--gold);
  font: 800 8px/1 ui-monospace, Menlo, monospace;
  letter-spacing: .12em;
}
.achievement-preview header b {
  font-size: 13px;
}
.achievement-preview header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.medal-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 10px;
}
.medal {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.medal i {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  background: #f3e5b5;
  box-shadow: inset 0 0 0 4px #fbf7ed;
  color: var(--gold);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}
.medal:before {
  content: "";
  width: 14px;
  height: 9px;
  margin-bottom: -7px;
  background: linear-gradient(90deg, var(--gold) 0 42%, transparent 42% 58%, var(--gold) 58%);
  clip-path: polygon(0 0,100% 0,78% 100%,50% 58%,22% 100%);
}
.medal.city-medal i { color: #42715b; background: #dfe8cc; }
.medal.port-medal i { color: #a6543a; background: #efd5bf; }
.medal.view-medal i { color: #506f94; background: #dae4e8; }
.medal small {
  overflow: hidden;
  color: #63675e;
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.achievement-preview > p {
  margin: 9px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: #665b42;
  font-size: 9px;
  line-height: 1.5;
}
.map-panel {
  margin: 0;
  min-width: 0;
  position: relative;
}
.map-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #bdbca9;
  padding: 0 0 13px;
  font:
    600 11px/1.2 ui-monospace,
    Menlo,
    monospace;
  letter-spacing: 0.12em;
  color: #6b715e;
}
.map-view-label {
  letter-spacing: 0.06em;
  font-family: inherit;
  color: #716649;
}
.map-viewport {
  position: relative;
  height: clamp(320px, calc(100svh - 340px), 640px);
  perspective: 1100px;
  perspective-origin: 50% 42%;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
  background: radial-gradient(
    ellipse at 50% 44%,
    #f0eedc 0%,
    #f4f0e2 54%,
    var(--paper) 82%
  );
}
.map-floor {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 57%;
  height: 23%;
  border-radius: 50%;
  background: #99978422;
  filter: blur(24px);
  transform: rotate(-8deg);
}
.map-block {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  will-change: transform;
}
.map-svg,
.map-slab {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.map-svg {
  transform: translateZ(2px);
}
.slab-bottom {
  transform: translateZ(-14px);
  fill: #91886b;
  stroke: #8c8365;
  stroke-width: 1.1;
}
.slab-middle {
  transform: translateZ(-7px);
  fill: #c4bba1;
  stroke: #bcb296;
  stroke-width: 0.8;
}
.land-paper {
  fill: #e4e3c8;
}
.terrain {
  opacity: 0.93;
  filter: saturate(0.73) contrast(0.9) brightness(1.04);
}
.country-edge {
  fill: none;
  stroke: #8e9a82;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}
.province-lines {
  fill: none;
  stroke: #7e947b;
  stroke-opacity: 0.25;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
.local-water {
  fill: #cfdfdb;
  stroke: #b6c9c1;
  stroke-width: 0.5;
  vector-effect: non-scaling-stroke;
}
.ribbon-layer {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.city-dot {
  fill: #fff6bd;
  stroke: #9a6415;
  stroke-width: 1.5;
}
.city-label {
  font-family: inherit;
  font-weight: 700;
  fill: #333e31;
  paint-order: stroke;
  stroke: #fbf7e8;
  stroke-width: 4;
  stroke-linejoin: round;
}
.city-leader {
  fill: none;
  stroke: #716947;
  stroke-width: 0.6;
  opacity: 0.5;
}
.journey-dot {
  fill: #e5e6d3;
  stroke: #8b9b86;
  stroke-width: 2;
}
.journey-node[data-lit="true"] .journey-dot {
  fill: #fff8bd;
  stroke: #bb7a0a;
}
.journey-halo {
  fill: none;
  stroke: #d59b24;
  opacity: 0.6;
}
.journey-text {
  font-size: 23px;
  font-weight: 750;
  fill: #283d35;
  paint-order: stroke;
  stroke: #faf5e3;
  stroke-width: 5;
  stroke-linejoin: round;
}
.journey-number {
  font-size: 12px;
  font-weight: 700;
  fill: #b07c1d;
  paint-order: stroke;
  stroke: #faf5e3;
  stroke-width: 3;
}
.sea-inset {
  position: absolute;
  bottom: 12px;
  left: 9px;
  width: 69px;
  height: 86px;
  border: 1px solid #bbbda9;
  background: #eff0e4c4;
  padding: 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 4;
}
.sea-inset svg {
  width: 100%;
  height: 66px;
  fill: #c6d2bb;
  stroke: #8d9d7e;
  stroke-width: 1.4;
}
.sea-inset span {
  font-size: 9px;
  color: #6d755e;
}
.compass {
  position: absolute;
  right: 10px;
  top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #6e725f;
  font:
    10px ui-monospace,
    monospace;
}
.compass svg {
  width: 17px;
  height: 27px;
  fill: #d8d6bc;
  stroke: #858d76;
  stroke-width: 1;
}
.route-stage {
  position: absolute;
  bottom: 18px;
  left: 22px;
  z-index: 5;
  display: none;
  min-width: 145px;
}
.route-stage > span {
  display: block;
  font-size: 37px;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.route-stage > small {
  display: block;
  margin: 4px 0 11px;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.route-time {
  width: 135px;
  height: 2px;
  background: #c5c3b1;
}
.route-time i {
  display: block;
  background: currentColor;
  width: 0;
  height: 2px;
}
.journey-status {
  position: absolute;
  left: 18px;
  top: 19px;
  padding: 13px 16px;
  background: #f9f5e5e8;
  border: 1px solid #d1c4a1;
  display: none;
  z-index: 5;
}
.journey-status span {
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #867044;
  display: block;
}
.journey-status strong {
  font-size: 22px;
  display: block;
  margin: 5px 0;
}
.journey-status small {
  font-size: 10px;
  color: #7e805f;
}
.map-caption {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  line-height: 1.65;
  padding: 12px 0 9px;
  border-top: 1px solid #bdbca9;
  min-height: 43px;
  color: #666e5c;
}
.map-caption-dot {
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
}
.map-foot {
  display: flex;
  justify-content: space-between;
  color: #888978;
  font-size: 10px;
}
.map-foot a {
  display: flex;
  min-height: 44px;
  align-items: center;
  margin-top: -11px;
  padding: 0 0 0 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map-foot > span {
  padding-top: 3px;
}
.port-deck {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  background: var(--paper);
}
.port-deck[hidden] {
  display: none;
}
.port-view {
  position: absolute;
  top: 0;
  bottom: 0;
  overflow: hidden;
  will-change: width, transform;
  background: #e1e9e3;
  border-right: 1px solid #a9b7a5;
}
.port-view:last-child {
  border: 0;
}
.port-view svg {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.port-land {
  fill: #eee9d5;
}
.port-terrain {
  filter: saturate(0.5) brightness(1.05);
  opacity: 0.9;
}
.port-water {
  fill: #bed5d1;
  stroke: #a8c6c0;
  vector-effect: non-scaling-stroke;
  stroke-width: 0.6;
}
.port-road {
  fill: none;
  stroke: #727e682b;
  stroke-width: 0.7;
  vector-effect: non-scaling-stroke;
}
.port-gold {
  fill: none;
  stroke: #b28d3673;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.port-edge {
  fill: none;
  stroke: #799682;
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.port-pin-glow {
  fill: #ffd86b;
  opacity: 0.23;
}
.port-pin-ring {
  fill: #f9eac2;
  stroke: #aa7416;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.port-pin-core {
  fill: #b57912;
}
.port-label {
  position: absolute;
  top: calc(50% + 22px);
  left: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}
.port-label strong {
  font-size: 19px;
  line-height: 1.2;
  background: #faf5e8e8;
  border: 1px solid #c5b686;
  padding: 9px 12px;
  box-shadow: 0 3px 14px #52461915;
  white-space: nowrap;
}
.port-label span {
  font-size: 10px;
  color: #5f725f;
  background: #f4f3e2bd;
  padding: 3px 5px;
}
.port-order {
  position: absolute;
  left: 15px;
  top: 16px;
  font:
    11px ui-monospace,
    monospace;
  color: #6f7863;
  letter-spacing: 0.08em;
}
.port-neighbour {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 58px;
  text-align: center;
  color: #526f66;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.port-scale {
  position: absolute;
  bottom: 19px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #61705c;
  font-size: 10px;
}
.port-scale i {
  display: block;
  width: 66.6667px;
  height: 5px;
  border: 1px solid #6e7d67;
  border-top: 0;
}
.port-titleline {
  position: absolute;
  top: 16px;
  right: 15px;
  color: #68715e;
  font-size: 10px;
}
.story-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1.5px solid var(--ink);
  padding: 16px 0 0;
}
.step-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 80px;
  background: none;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 0;
}
.step-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.steps {
  display: flex;
  align-items: center;
  gap: 14px;
}
.steps button {
  min-width: 50px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #9b9c8d;
  font:
    500 12px ui-monospace,
    monospace;
}
.steps i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.steps button[aria-current] {
  color: var(--ink);
  font-weight: 800;
}
.steps button[aria-current] i {
  background: var(--gold);
  box-shadow: 0 0 0 4px #d7bf791e;
}
.playback-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 8px;
  color: #838676;
}
.interaction-hint {
  display: flex;
  gap: 18px;
  font-size: 10px;
  letter-spacing: 0.02em;
  margin: 0;
}
.playback-controls {
  display: flex;
  gap: 8px;
}
.playback-controls button {
  border: 0;
  background: transparent;
  font-size: 11px;
  min-height: 44px;
  min-width: 56px;
  padding: 5px 8px;
  color: #727661;
}
.touch-hint {
  display: none;
}
.source-details {
  max-width: 1680px;
  margin: 18px clamp(24px, 4vw, 64px) 26px;
  border-top: 1px solid #ddd7c4;
  padding-top: 6px;
  color: #737562;
  font-size: 11px;
  line-height: 1.9;
}
.source-details summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
}
.source-details p {
  max-width: 1100px;
  margin: 8px 0;
}
.source-details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.noscript-note {
  padding: 20px 5vw;
  color: #70591b;
}
@media (min-width: 1500px) {
  .story-copy {
    min-height: 355px;
  }
  .description {
    font-size: 19px;
  }
}
@media (max-width: 1050px) and (min-width: 701px) {
  .top {
    flex-wrap: wrap;
  }
  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .top-nav::-webkit-scrollbar {
    display: none;
  }
  .top-nav a {
    white-space: nowrap;
  }
  .story-body {
    gap: 22px;
    grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  }
  h1 {
    font-size: 41px;
  }
  .description {
    font-size: 15px;
  }
  .story-copy {
    min-height: 305px;
  }
  .route-legend {
    gap: 10px;
  }
  .route-chip {
    font-size: 14px;
  }
  .map-viewport {
    height: 440px;
  }
}
@media (max-width: 700px) {
  html,
  body,
  .page {
    height: auto;
    overflow: auto;
  }
  .top {
    flex-wrap: wrap;
    padding: 12px 20px;
    gap: 10px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .brand strong {
    font-size: 19px;
  }
  .brand small {
    font-size: 8px;
    margin-top: 5px;
  }
  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
    scrollbar-width: none;
  }
  .top-nav::-webkit-scrollbar {
    display: none;
  }
  .top-nav a {
    white-space: nowrap;
  }
  .top-nav .enter,
  .development-badge {
    font-size: 11px;
    padding: 10px 12px;
    min-height: 44px;
  }
  .story {
    padding: 0 20px;
  }
  .story-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    padding: 24px 0 13px;
    align-items: stretch;
  }
  .copy-column {
    padding: 0;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 17px;
    letter-spacing: 0.13em;
  }
  .story-copy {
    min-height: 234px;
  }
  .chapter {
    font-size: 10px;
    margin-bottom: 11px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.17;
    letter-spacing: -0.065em;
  }
  .description {
    font-size: 15px;
    line-height: 1.8;
    margin-top: 15px;
    max-width: none;
  }
  .copy-note {
    font-size: 11px;
    line-height: 1.65;
    margin-top: 10px;
  }
  .route-legend {
    gap: 18px;
    margin-top: 13px;
    padding-top: 8px;
  }
  .route-chip {
    font-size: 14px;
    min-height: 44px;
  }
  .route-chip small {
    font-size: 10px;
  }
  .project-status {
    font-size: 10px;
    gap: 5px;
    margin-top: 15px;
  }
  .project-status > span {
    display: none;
  }
  .achievement-preview {
    margin-top: 11px;
    padding: 10px 11px 9px;
  }
  .achievement-preview header small,
  .achievement-preview > p {
    display: none;
  }
  .medal-row {
    margin-top: 7px;
  }
  .medal i {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }
  .medal small {
    font-size: 8px;
  }
  .map-topline {
    font-size: 9px;
    padding-bottom: 9px;
  }
  .map-viewport {
    height: 296px;
    perspective: 730px;
  }
  .map-caption {
    font-size: 10px;
    padding: 9px 0 5px;
    min-height: 39px;
  }
  .map-foot {
    font-size: 9px;
  }
  .map-foot a {
    min-height: 44px;
    margin-top: -12px;
  }
  .map-foot > span {
    padding-top: 3px;
  }
  .sea-inset {
    width: 45px;
    height: 59px;
    left: 3px;
    bottom: 7px;
    padding: 2px;
  }
  .sea-inset svg {
    height: 43px;
  }
  .sea-inset span {
    font-size: 7px;
  }
  .compass {
    top: 9px;
    right: 4px;
    font-size: 8px;
  }
  .compass svg {
    width: 13px;
    height: 21px;
  }
  .route-stage {
    left: 11px;
    bottom: 12px;
    min-width: 115px;
  }
  .route-stage > span {
    font-size: 27px;
  }
  .route-stage > small {
    font-size: 9px;
    margin: 3px 0 7px;
  }
  .route-time {
    width: 102px;
  }
  .journey-status {
    top: 9px;
    left: 8px;
    padding: 8px 10px;
  }
  .journey-status span {
    font-size: 8px;
  }
  .journey-status strong {
    font-size: 17px;
    margin: 4px 0;
  }
  .journey-status small {
    font-size: 8px;
  }
  .story-controls {
    gap: 4px;
    padding-top: 7px;
  }
  .step-arrow {
    min-width: 44px;
    justify-content: center;
  }
  .step-arrow > span {
    display: none;
  }
  .steps {
    gap: 1px;
    flex: 1;
    justify-content: center;
  }
  .steps button {
    min-width: 44px;
    gap: 6px;
    font-size: 10px;
  }
  .steps i {
    width: 4px;
    height: 4px;
  }
  .playback-row {
    padding: 0;
    gap: 3px;
  }
  .interaction-hint {
    font-size: 9px;
    gap: 12px;
  }
  .desktop-hint {
    display: none;
  }
  .touch-hint {
    display: inline;
  }
  .playback-controls {
    gap: 0;
  }
  .playback-controls button {
    font-size: 10px;
    min-width: 49px;
    padding: 5px 3px;
  }
  .source-details {
    margin: 12px 20px 20px;
    font-size: 10px;
  }
  .source-details a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .port-label {
    top: calc(50% + 17px);
    gap: 4px;
  }
  .port-label strong {
    font-size: 13px;
    padding: 7px 5px;
  }
  .port-label span {
    font-size: 8px;
    line-height: 1.3;
    padding: 2px;
    max-width: 92px;
  }
  .port-order {
    left: 7px;
    top: 12px;
    font-size: 8px;
  }
  .port-titleline {
    right: 7px;
    top: 12px;
    font-size: 8px;
  }
  .port-neighbour {
    bottom: 48px;
    font-size: 8px;
    line-height: 1.4;
    left: 3px;
    right: 3px;
    letter-spacing: 0;
  }
  .port-scale {
    bottom: 13px;
    left: 7px;
    font-size: 8px;
  }
  .port-scale i {
    width: 40px;
  }
  .port-view[data-wide="false"] .port-titleline {
    display: none;
  }
}
@media (max-width: 359px) {
  .top {
    padding: 10px 15px;
  }
  .brand strong {
    font-size: 17px;
  }
  .story {
    padding: 0 15px;
  }
  .story-copy {
    min-height: 265px;
  }
  h1 {
    font-size: 30px;
  }
  .description {
    font-size: 14px;
  }
  .route-legend {
    gap: 8px;
  }
  .route-chip small {
    font-size: 9px;
  }
  .steps button {
    min-width: 40px;
    width: 40px;
    min-height: 44px;
  }
  .story-controls {
    flex-wrap: wrap;
    position: relative;
    justify-content: space-between;
  }
  .steps {
    order: 3;
    width: 100%;
    flex: auto;
    justify-content: space-between;
    margin-top: -45px;
    padding: 0 43px;
    pointer-events: none;
  }
  .steps button {
    min-width: 38px;
    padding: 0;
    pointer-events: auto;
  }
  .steps i {
    display: none;
  }
  .step-arrow {
    z-index: 1;
  }
  .interaction-hint {
    gap: 7px;
    font-size: 8px;
  }
  .map-viewport {
    height: 267px;
  }
  .port-label strong {
    font-size: 11px;
    padding: 6px 3px;
  }
  .port-label span {
    font-size: 7px;
  }
  .port-neighbour {
    font-size: 7px;
  }
  .source-details {
    margin-left: 15px;
    margin-right: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .map-block,
  .port-view {
    will-change: auto;
  }
}

@media (max-width: 359px) {
  .steps {
    margin-top: 0;
    padding: 0;
    pointer-events: auto;
    justify-content: center;
    gap: 6px;
  }
  .steps button {
    min-width: 44px;
    width: 44px;
  }
  .story-controls {
    row-gap: 0;
  }
  .steps i {
    display: block;
  }
  .step-arrow {
    min-width: 44px;
  }
}

.top-nav .home-link{display:inline-flex;align-items:center;gap:6px;font-weight:800;background:#f3d45c;box-shadow:3px 3px 0 #202044}.top-nav .home-link:hover{background:#fffaf0}.top-nav .home-link img{width:22px;height:22px;object-fit:contain;flex:0 0 auto}

@media (max-height:780px) and (min-width:900px){
.story-body{min-height:calc(100svh - 190px);padding:10px 0 8px}
.copy-column{max-height:calc(100svh - 200px)}
.eyebrow{margin-bottom:10px}
.story-copy{min-height:200px}
h1{font-size:clamp(28px,2.7vw,42px)}
.description{font-size:13.5px;margin-top:10px}
.achievement-preview{padding:10px 12px 8px}
.medal i{width:28px;height:28px}
.map-viewport{height:clamp(300px,calc(100svh - 300px),560px)}
}
