:root {
  color-scheme: dark;
  --atlas-bg: url("/atlas-assets/generated/storybook-map.png");
  --backdrop: #071b36;
  --ink: #10223a;
  --hero-ink: #fff9e8;
  --timeline-ink: #f5f7f3;
  --timeline-muted: #c6d7e6;
  --muted: #526074;
  --accent: #f4a72c;
  --accent-ink: #17233a;
  --panel: rgba(255, 250, 235, 0.9);
  --panel-strong: #fffaf0;
  --panel-border: rgba(255, 255, 255, 0.56);
  --soft-control: rgba(255, 250, 235, 0.78);
  --route: #f6b735;
  --route-soft: rgba(29, 62, 93, 0.44);
  --node: #fff9e8;
  --node-ink: #163651;
  --shadow: 0 22px 60px rgba(7, 21, 47, 0.28);
  --wash:
    linear-gradient(90deg, #071b36 0%, rgba(7, 27, 54, 0.96) 19%, rgba(7, 27, 54, 0.64) 31%, transparent 51%),
    linear-gradient(0deg, rgba(4, 20, 45, 0.72) 0%, transparent 24%);
}

html[data-atlas-theme="twilight"] {
  --atlas-bg: url("/atlas-assets/generated/theme-park-map.png");
  --backdrop: #06142e;
  --ink: #fff5d9;
  --hero-ink: #fff5d9;
  --timeline-ink: #fff5d9;
  --timeline-muted: #d6d8e4;
  --muted: #d6d8e4;
  --accent: #f5b83f;
  --accent-ink: #18213c;
  --panel: rgba(10, 25, 53, 0.9);
  --panel-strong: #10284b;
  --panel-border: rgba(255, 235, 178, 0.24);
  --soft-control: rgba(7, 22, 49, 0.72);
  --route: #ffc854;
  --route-soft: rgba(224, 239, 255, 0.42);
  --node: #fff0be;
  --node-ink: #172748;
  --shadow: 0 24px 70px rgba(1, 8, 24, 0.58);
  --wash:
    linear-gradient(90deg, rgba(4, 15, 39, 0.9) 0%, rgba(4, 15, 39, 0.42) 27%, transparent 52%),
    linear-gradient(0deg, rgba(2, 11, 29, 0.8) 0%, transparent 31%);
}

html[data-atlas-theme="stadium"] {
  --atlas-bg: url("/atlas-assets/generated/stadium-constellation-map.png");
  --backdrop: #020b1d;
  --ink: #f4f8ff;
  --hero-ink: #f4f8ff;
  --timeline-ink: #f4f8ff;
  --timeline-muted: #b8c9df;
  --muted: #b8c9df;
  --accent: #67e8e3;
  --accent-ink: #06213b;
  --panel: rgba(4, 17, 40, 0.92);
  --panel-strong: #071a38;
  --panel-border: rgba(117, 232, 229, 0.23);
  --soft-control: rgba(3, 15, 37, 0.74);
  --route: #65f0e7;
  --route-soft: rgba(142, 188, 224, 0.34);
  --node: #dffefa;
  --node-ink: #07314a;
  --shadow: 0 25px 72px rgba(0, 4, 16, 0.7);
  --wash:
    linear-gradient(90deg, rgba(1, 10, 28, 0.92) 0%, rgba(1, 10, 28, 0.38) 32%, transparent 55%),
    linear-gradient(0deg, rgba(1, 7, 22, 0.86) 0%, transparent 33%);
}

html[data-atlas-theme="expedition"] {
  color-scheme: light;
  --atlas-bg: url("/atlas-assets/generated/expedition-map.png");
  --backdrop: #c8a66b;
  --ink: #3e2d1e;
  --hero-ink: #3e2d1e;
  --timeline-ink: #3e2d1e;
  --timeline-muted: #705b42;
  --muted: #705b42;
  --accent: #a5422f;
  --accent-ink: #fff9e8;
  --panel: rgba(244, 226, 183, 0.92);
  --panel-strong: #f0d9a7;
  --panel-border: rgba(79, 54, 30, 0.24);
  --soft-control: rgba(242, 223, 179, 0.82);
  --route: #9f3d2d;
  --route-soft: rgba(72, 68, 49, 0.5);
  --node: #f6e5bc;
  --node-ink: #68412c;
  --shadow: 0 22px 60px rgba(72, 47, 23, 0.32);
  --wash:
    linear-gradient(90deg, rgba(243, 225, 184, 0.88) 0%, rgba(243, 225, 184, 0.38) 29%, transparent 55%),
    linear-gradient(0deg, rgba(91, 61, 29, 0.3) 0%, transparent 30%);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--backdrop);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button {
  color: inherit;
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--panel-strong);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.atlas-shell {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  background: var(--backdrop);
}

.atlas-background,
.atlas-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.atlas-background {
  z-index: -3;
  background-color: var(--backdrop);
  background-image: var(--atlas-bg);
  background-repeat: no-repeat;
  background-position: right center;
  background-size: min(86vw, 160svh) auto;
  transition: opacity 220ms ease;
}

.atlas-wash {
  z-index: -2;
  background: var(--wash);
  transition: background 220ms ease;
}

.atlas-header {
  position: absolute;
  z-index: 12;
  top: max(22px, env(safe-area-inset-top));
  right: 32px;
  left: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.journal-link,
.theme-switcher {
  border: 1px solid var(--panel-border);
  background: var(--soft-control);
  box-shadow: 0 8px 24px rgba(4, 16, 38, 0.14);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

.journal-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.journal-link i {
  font-size: 17px;
}

.trip-menu-trigger__caret {
  margin-left: 2px;
  transition: transform 180ms ease;
}

.trip-menu-trigger[aria-expanded="true"] .trip-menu-trigger__caret {
  transform: rotate(180deg);
}

.trip-menu-scrim {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(2, 11, 29, 0.34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.trip-menu {
  position: fixed;
  z-index: 41;
  top: max(78px, calc(env(safe-area-inset-top) + 60px));
  left: 32px;
  width: min(360px, calc(100vw - 64px));
  max-height: calc(100svh - 100px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: blur(24px) saturate(1.12);
  -webkit-backdrop-filter: blur(24px) saturate(1.12);
  opacity: 0;
  transform: translateY(-10px) scale(0.985);
  transition: opacity 170ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.trip-menu.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.trip-menu__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background: var(--soft-control);
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
}

.trip-menu__heading {
  padding: 27px 68px 19px 24px;
}

.trip-menu__eyebrow,
.trip-menu__crew > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.trip-menu__heading h2 {
  margin: 5px 0 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  line-height: 1;
}

.trip-menu__heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.trip-menu__nav {
  display: grid;
  gap: 6px;
  padding: 0 12px 13px;
}

.trip-menu__link {
  display: grid;
  min-height: 68px;
  align-items: center;
  grid-template-columns: 44px minmax(0, 1fr) 20px;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--ink);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.trip-menu__link:hover {
  border-color: var(--panel-border);
  background: var(--soft-control);
  transform: translateX(2px);
}

.trip-menu__link.is-current {
  border-color: var(--panel-border);
  background: var(--panel-strong);
}

.trip-menu__link > i {
  color: var(--muted);
  font-size: 16px;
}

.trip-menu__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  background: var(--soft-control);
  color: var(--accent);
  font-size: 19px;
}

.trip-menu__link strong,
.trip-menu__link small,
.trip-menu__unlock strong,
.trip-menu__unlock small {
  display: block;
}

.trip-menu__link strong,
.trip-menu__unlock strong {
  font-size: 13px;
  line-height: 1.2;
}

.trip-menu__link small,
.trip-menu__unlock small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.3;
}

.trip-menu__crew {
  padding: 15px 18px max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--panel-border);
}

.trip-menu__crew > p {
  margin-bottom: 10px;
}

.trip-menu__crew-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.trip-menu__crew-links a {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 8px 5px;
  border: 1px solid var(--panel-border);
  border-radius: 15px;
  background: var(--soft-control);
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.trip-menu__crew-links i {
  color: var(--accent);
  font-size: 19px;
}

.trip-menu__unlock {
  display: grid;
  min-height: 62px;
  align-items: center;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 17px;
  background: var(--soft-control);
  color: var(--ink);
  text-decoration: none;
}

.trip-menu__unlock > i:first-child {
  color: var(--accent);
  font-size: 20px;
}

.trip-menu__unlock > i:last-child {
  color: var(--muted);
  font-size: 16px;
}

.theme-switcher {
  display: flex;
  padding: 4px;
  border-radius: 999px;
}

.theme-switcher button {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.theme-switcher button:hover {
  color: var(--ink);
}

.theme-switcher button:active {
  transform: scale(0.97);
}

.theme-switcher button[aria-pressed="true"] {
  background: var(--panel-strong);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(5, 17, 37, 0.12);
}

.atlas-intro {
  position: absolute;
  z-index: 9;
  top: clamp(96px, 12vh, 126px);
  left: clamp(28px, 5vw, 76px);
  max-width: 680px;
  pointer-events: none;
}

.atlas-intro h1 {
  max-width: 680px;
  margin: 0;
  color: var(--hero-ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(50px, 5.4vw, 78px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.96;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.atlas-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.replay-button,
.explore-button,
.chapter-next {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  pointer-events: auto;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.replay-button {
  border: 1px solid color-mix(in srgb, var(--accent) 68%, white);
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 30%, transparent);
}

.explore-button {
  border: 1px solid var(--panel-border);
  background: var(--soft-control);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.replay-button:hover,
.explore-button:hover,
.chapter-next:hover {
  transform: translateY(-2px);
}

.replay-button:active,
.explore-button:active,
.chapter-next:active {
  transform: translateY(0) scale(0.98);
}

.replay-button:disabled {
  cursor: wait;
  opacity: 0.76;
}

.atlas-map {
  position: absolute;
  z-index: 4;
  top: 50%;
  right: 0;
  width: min(86vw, 160svh);
  aspect-ratio: 8 / 5;
  transform: translateY(-50%);
}

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

.route-layer,
.city-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-layer {
  overflow: visible;
}

.route-shadow,
.route-segment {
  vector-effect: non-scaling-stroke;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-shadow {
  stroke: rgba(2, 12, 28, 0.2);
  stroke-width: 4;
}

.route-segment {
  stroke: var(--route-soft);
  stroke-width: 2.4;
  stroke-dasharray: 3 7;
  transition: stroke 180ms ease, stroke-width 180ms ease, opacity 180ms ease;
}

.route-segment.is-complete {
  stroke: var(--route);
  stroke-dasharray: 4 8;
}

.route-segment.is-active {
  stroke: var(--route);
  stroke-width: 4;
  stroke-dasharray: none;
}

.city-stop {
  position: absolute;
  z-index: 3;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.city-stop[data-label-side="left"] {
  flex-direction: row-reverse;
}

.city-stop__button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--node-ink) 24%, white);
  border-radius: 50%;
  background: var(--node);
  color: var(--node-ink);
  box-shadow: 0 7px 20px rgba(4, 15, 34, 0.25);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.city-stop__button i {
  font-size: 19px;
}

.city-stop__button:hover {
  transform: scale(1.09);
  box-shadow: 0 9px 26px rgba(4, 15, 34, 0.33);
}

.city-stop__button[aria-current="step"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent), 0 9px 25px rgba(4, 15, 34, 0.32);
}

.city-stop__button[aria-pressed="true"] {
  border-color: var(--accent);
  transform: scale(1.09);
}

.city-stop.is-upcoming .city-stop__button {
  border-style: dashed;
  opacity: 0.82;
}

.city-stop__label {
  max-width: 112px;
  padding: 5px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--soft-control);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 13px rgba(4, 15, 34, 0.14);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.city-stop__label-short {
  display: none;
}

.travel-token {
  position: absolute;
  z-index: 8;
  left: 0;
  top: 0;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid color-mix(in srgb, var(--accent) 52%, white);
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 9px 28px rgba(4, 15, 34, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.travel-token.is-visible {
  opacity: 1;
}

.travel-token i {
  font-size: 21px;
}

.timeline {
  position: absolute;
  z-index: 10;
  right: 34px;
  bottom: max(25px, env(safe-area-inset-bottom));
  width: min(360px, calc(100vw - 68px));
  color: var(--timeline-ink);
}

.timeline-now {
  margin-bottom: 8px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
}

.timeline-track {
  position: relative;
  height: 4px;
  overflow: visible;
  border-radius: 999px;
  background: color-mix(in srgb, var(--timeline-ink) 28%, transparent);
}

.timeline-progress {
  display: block;
  width: 74%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.timeline-marker {
  position: absolute;
  top: 50%;
  left: 74%;
  width: 14px;
  height: 14px;
  border: 3px solid var(--panel-strong);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 3px 10px rgba(5, 16, 36, 0.25);
  transform: translate(-50%, -50%);
}

.timeline-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--timeline-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.replay-status {
  position: absolute;
  z-index: 11;
  left: 50%;
  bottom: 34px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--soft-control);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 160ms ease;
}

.replay-status:not(:empty) {
  opacity: 1;
}

.chapter-drawer {
  position: fixed;
  z-index: 30;
  top: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  width: min(410px, calc(100vw - 32px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 28px));
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}

.chapter-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.chapter-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 50%;
  background: rgba(6, 18, 38, 0.68);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chapter-close i {
  font-size: 20px;
}

.chapter-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--backdrop);
}

.chapter-photo-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(4, 15, 32, 0.56));
  content: "";
  pointer-events: none;
}

.chapter-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chapter-step {
  position: absolute;
  z-index: 1;
  right: 16px;
  bottom: 15px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(7, 20, 41, 0.64);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chapter-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 28px 28px 24px;
}

.chapter-date {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chapter-body h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 39px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.chapter-match {
  margin: 9px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.chapter-body blockquote {
  margin: 25px 0 21px;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.42;
}

.chapter-meta {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.chapter-next {
  width: 100%;
  margin-top: auto;
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
}

.chapter-scrim {
  position: fixed;
  z-index: 25;
  inset: 0;
  background: rgba(1, 9, 24, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .atlas-background {
    background-position: center;
    background-size: 100% auto;
    transform: none;
  }

  .atlas-wash {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--backdrop) 56%, transparent) 0%, transparent 25%),
      linear-gradient(0deg, color-mix(in srgb, var(--backdrop) 66%, transparent) 0%, transparent 26%);
  }

  html[data-atlas-theme="storybook"] .atlas-wash,
  html[data-atlas-theme="expedition"] .atlas-wash {
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--panel-strong) 78%, transparent) 0%, transparent 25%),
      linear-gradient(0deg, color-mix(in srgb, var(--panel-strong) 64%, transparent) 0%, transparent 29%);
  }

  .atlas-header {
    top: max(12px, env(safe-area-inset-top));
    right: 14px;
    left: 14px;
    align-items: flex-start;
  }

  .journal-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 10px;
  }

  .trip-menu {
    top: auto;
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100svh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
    border-radius: 28px;
    transform: translateY(calc(100% + 20px));
  }

  .trip-menu.is-open {
    transform: translateY(0);
  }

  .theme-switcher {
    position: absolute;
    top: 49px;
    right: 0;
    left: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .theme-switcher::-webkit-scrollbar {
    display: none;
  }

  .theme-switcher button {
    min-width: max-content;
    flex: 1 0 auto;
    padding: 0 12px;
    font-size: 10px;
  }

  .atlas-intro {
    top: max(110px, calc(env(safe-area-inset-top) + 102px));
    left: 18px;
    max-width: calc(100vw - 36px);
  }

  .atlas-intro h1 {
    max-width: 340px;
    font-size: clamp(43px, 14vw, 58px);
    white-space: normal;
  }

  .atlas-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .replay-button,
  .explore-button {
    min-height: 43px;
    padding: 0 14px;
    font-size: 11px;
  }

  .atlas-map {
    inset: auto 0;
    top: calc(50% - 31.25vw);
    width: 100%;
    height: 62.5vw;
    aspect-ratio: auto;
    transform: none;
  }

  .city-stop {
    gap: 3px;
  }

  .city-stop__button {
    width: 32px;
    height: 32px;
    border-width: 1.5px;
  }

  .city-stop__button i {
    font-size: 15px;
  }

  .city-stop__label {
    max-width: 74px;
    padding: 4px 5px;
    font-size: 7px;
    letter-spacing: 0.035em;
  }

  .travel-token {
    width: 34px;
    height: 34px;
  }

  .timeline {
    right: 18px;
    bottom: max(20px, env(safe-area-inset-bottom));
    left: 18px;
    width: auto;
  }

  .timeline-now {
    font-size: 17px;
  }

  .replay-status {
    bottom: 88px;
    max-width: calc(100vw - 36px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .chapter-drawer {
    top: auto;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    width: auto;
    max-height: min(78svh, 680px);
    border-radius: 27px;
    transform: translateY(calc(100% + 20px));
  }

  .chapter-drawer.is-open {
    transform: translateY(0);
  }

  .chapter-photo-wrap {
    aspect-ratio: 16 / 8;
    max-height: min(34svh, 240px);
    min-height: 128px;
  }

  .chapter-body {
    padding: 20px 22px 20px;
  }

  .chapter-body h2 {
    font-size: 32px;
  }

  .chapter-body blockquote {
    margin: 17px 0;
    font-size: 17px;
  }

  .chapter-meta {
    margin-bottom: 17px;
  }
}

@media (min-width: 520px) and (max-height: 520px) {
  .atlas-background {
    background-position: right 0 top 64px;
    background-size: min(70vw, calc((100svh - 100px) * 1.6)) auto;
  }

  .atlas-header {
    top: max(8px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
    left: max(10px, env(safe-area-inset-left));
    align-items: center;
  }

  .journal-link {
    min-height: 36px;
    padding: 0 11px;
    font-size: 9px;
  }

  .trip-menu {
    top: max(8px, env(safe-area-inset-top));
    right: auto;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: min(360px, calc(100vw - 16px));
    max-height: calc(100svh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
    transform: translateX(calc(-100% - 20px));
  }

  .trip-menu.is-open {
    transform: translateX(0);
  }

  .theme-switcher {
    position: static;
    width: auto;
    max-width: min(56vw, 360px);
    padding: 3px;
    overflow: hidden;
  }

  .theme-switcher button {
    min-height: 30px;
    padding: 0 8px;
    font-size: 8px;
  }

  .atlas-intro {
    top: 74px;
    left: max(16px, env(safe-area-inset-left));
    max-width: 195px;
  }

  .atlas-intro h1 {
    max-width: 195px;
    font-size: 27px;
    white-space: nowrap;
  }

  .atlas-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    margin-top: 13px;
  }

  .replay-button,
  .explore-button {
    min-height: 36px;
    padding: 0 12px;
    font-size: 9px;
  }

  .atlas-map {
    top: 64px;
    right: max(0px, env(safe-area-inset-right));
    left: auto;
    width: min(70vw, calc((100svh - 100px) * 1.6));
    height: auto;
    aspect-ratio: 8 / 5;
    transform: none;
  }

  .timeline {
    right: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    width: 190px;
  }

  .timeline-now {
    font-size: 15px;
  }

  .replay-status {
    right: auto;
    bottom: 76px;
    left: max(16px, env(safe-area-inset-left));
    max-width: 190px;
    transform: none;
  }

  .chapter-drawer {
    display: grid;
    width: min(720px, calc(100vw - 32px));
    grid-template-columns: minmax(240px, 42%) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }

  .chapter-photo-wrap {
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }

  .chapter-body {
    height: 100%;
    padding: 24px 26px 22px;
  }

  .chapter-body h2 {
    font-size: 32px;
  }

  .chapter-body blockquote {
    margin: 18px 0 16px;
    font-size: 17px;
  }

  .chapter-meta {
    margin-bottom: 16px;
  }
}

@media (max-width: 390px) {
  .atlas-intro h1 {
    font-size: 43px;
  }

  .replay-button span,
  .explore-button span {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .city-stop__button {
    width: 36px;
    height: 36px;
  }

  .city-stop__button::before {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    content: "";
  }

  .city-stop__label {
    display: block;
    padding: 3px 4px;
    font-size: 6.5px;
  }

  .city-stop__label-full {
    display: none;
  }

  .city-stop__label-short {
    display: inline;
  }
}

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

/* Expanded city scrapbook */
.chapter-drawer {
  display: block;
  width: min(900px, calc(100vw - 32px));
}

.chapter-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: color-mix(in srgb, var(--accent) 48%, transparent) transparent;
  scrollbar-width: thin;
}

.chapter-hero {
  display: grid;
  min-height: 390px;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
}

.chapter-cover-mosaic {
  position: relative;
  display: grid;
  min-height: 390px;
  overflow: hidden;
  background: var(--backdrop);
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.chapter-cover-mosaic__tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.34);
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  background: var(--backdrop);
  cursor: pointer;
}

.chapter-cover-mosaic__tile:first-child {
  grid-row: 1 / 3;
}

.chapter-cover-mosaic.has-1 .chapter-cover-mosaic__tile:first-child {
  grid-column: 1 / 3;
}

.chapter-cover-mosaic.has-2 .chapter-cover-mosaic__tile:nth-child(2) {
  grid-row: 1 / 3;
}

.chapter-cover-mosaic__tile img,
.memory-card__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

button.chapter-cover-mosaic__tile:hover img,
.memory-card:hover .memory-card__visual img {
  transform: scale(1.035);
}

.chapter-cover-mosaic__tile.is-fallback {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  cursor: default;
}

.chapter-cover-mosaic__empty {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(5, 18, 39, 0.72);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.memory-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(5, 18, 39, 0.78);
  color: white;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.memory-play-badge i {
  font-size: 16px;
}

.chapter-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 66px 34px 32px;
}

.chapter-summary h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.chapter-summary blockquote {
  margin: 22px 0 18px;
  padding-left: 17px;
  border-left: 3px solid var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.38;
}

.chapter-summary .chapter-meta {
  margin-bottom: 18px;
}

.chapter-highlights {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 8px;
  list-style: none;
}

.chapter-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.chapter-highlights i {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent);
  font-size: 15px;
}

.chapter-memories {
  padding: 30px 32px 34px;
  border-top: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--panel-strong) 54%, transparent);
}

.chapter-memories__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.chapter-memories__eyebrow {
  margin: 0 0 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.chapter-memories h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 30px;
  letter-spacing: -0.035em;
  line-height: 1;
}

.chapter-memory-count {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  text-align: right;
}

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

.memory-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel-strong) 82%, transparent);
  box-shadow: 0 9px 24px rgba(4, 15, 34, 0.12);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.memory-card:hover {
  box-shadow: 0 13px 30px rgba(4, 15, 34, 0.18);
  transform: translateY(-3px);
}

.memory-card__visual {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--backdrop);
}

.memory-card__visual.is-video img {
  filter: brightness(0.72) saturate(0.82);
}

.memory-card__copy {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  padding: 13px 14px 14px;
}

.memory-card__kind,
.memory-card__byline {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.memory-card__caption {
  display: -webkit-box;
  margin: 8px 0 12px;
  overflow: hidden;
  font-family: "Fraunces", Georgia, serif;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.memory-card__byline {
  margin-top: auto;
  letter-spacing: 0.025em;
  text-transform: none;
}

.chapter-memory-state {
  display: flex;
  min-height: 210px;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 38px;
  border: 1px dashed var(--panel-border);
  border-radius: 22px;
  color: var(--muted);
  text-align: center;
}

.chapter-memory-state i {
  color: var(--accent);
  font-size: 34px;
}

.chapter-memory-state strong {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
}

.chapter-memory-state span {
  max-width: 440px;
  font-size: 12px;
  line-height: 1.5;
}

.is-spinning {
  animation: atlas-spin 900ms linear infinite;
}

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

.chapter-nav {
  display: grid;
  padding: 0 32px 32px;
  background: color-mix(in srgb, var(--panel-strong) 54%, transparent);
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.chapter-previous,
.chapter-next {
  display: inline-flex;
  width: auto;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.chapter-previous {
  border: 1px solid var(--panel-border);
  background: var(--soft-control);
  color: var(--ink);
}

.chapter-next {
  border: 0;
  background: var(--accent);
  color: var(--accent-ink);
}

.memory-viewer {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  min-width: 0;
  padding:
    max(30px, env(safe-area-inset-top))
    max(76px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(76px, env(safe-area-inset-left));
  overflow: hidden;
  background: rgba(2, 10, 25, 0.96);
  color: white;
  grid-template-rows: minmax(0, 1fr) auto;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition: opacity 180ms ease, transform 220ms ease;
}

.memory-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.memory-viewer__close,
.memory-viewer__nav {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 22, 44, 0.78);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.memory-viewer__close {
  position: absolute;
  z-index: 3;
  top: max(24px, env(safe-area-inset-top));
  right: max(24px, env(safe-area-inset-right));
}

.memory-viewer__close i,
.memory-viewer__nav i {
  font-size: 22px;
}

.memory-viewer__stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
}

.memory-viewer__media {
  display: grid;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  place-items: center;
}

.memory-viewer__media img,
.memory-viewer__media video {
  display: block;
  max-width: 100%;
  max-height: calc(100svh - 230px);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  object-fit: contain;
}

.memory-viewer__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
}

.memory-viewer__nav--previous {
  left: -58px;
}

.memory-viewer__nav--next {
  right: -58px;
}

.memory-viewer__nav:disabled {
  cursor: default;
  opacity: 0.34;
}

.memory-viewer__story {
  width: min(900px, 100%);
  margin: 0 auto;
  padding-top: 18px;
  text-align: center;
}

.memory-viewer__counter {
  margin: 0 0 5px;
  color: #f4b139;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.memory-viewer__story h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 28px;
}

.memory-viewer__caption {
  margin: 7px auto 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.38;
}

.memory-viewer__meta {
  margin: 7px 0 0;
  color: #b9c7d9;
  font-size: 10px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .chapter-drawer {
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: none;
    border-radius: 28px;
    transform: translateY(calc(100% + 20px));
  }

  .chapter-drawer.is-open {
    transform: translateY(0);
  }

  .chapter-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .chapter-cover-mosaic {
    min-height: 320px;
  }

  .chapter-summary {
    padding: 32px 30px 28px;
  }

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

  .journal-link,
  .theme-switcher button,
  .replay-button,
  .explore-button {
    min-height: 44px;
  }

  .city-stop__button {
    width: 36px;
    height: 36px;
  }

  .city-stop__button::before {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    content: "";
  }
}

@media (max-width: 600px) {
  .city-stop__label-full {
    display: none;
  }

  .city-stop__label-short {
    display: inline;
  }

  .chapter-cover-mosaic {
    min-height: 230px;
  }

  .chapter-summary {
    padding: 28px 22px 24px;
  }

  .chapter-summary h2 {
    font-size: 38px;
  }

  .chapter-summary blockquote {
    margin: 18px 0 16px;
    font-size: 17px;
  }

  .chapter-memories {
    padding: 26px 18px 28px;
  }

  .chapter-memories__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .chapter-memory-count {
    text-align: left;
  }

  .chapter-memory-grid {
    gap: 10px;
  }

  .memory-card {
    border-radius: 15px;
  }

  .memory-card__copy {
    min-height: 108px;
    padding: 11px 11px 12px;
  }

  .memory-card__caption {
    font-size: 13px;
    -webkit-line-clamp: 3;
  }

  .memory-card__kind,
  .memory-card__byline {
    font-size: 8px;
  }

  .memory-play-badge span {
    display: none;
  }

  .memory-play-badge {
    width: 38px;
    padding: 0;
  }

  .chapter-nav {
    padding: 0 18px 24px;
    grid-template-columns: 1fr;
  }

  .memory-viewer {
    padding:
      max(68px, calc(env(safe-area-inset-top) + 56px))
      max(14px, env(safe-area-inset-right))
      max(22px, calc(env(safe-area-inset-bottom) + 12px))
      max(14px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .memory-viewer__close {
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
  }

  .memory-viewer__media img,
  .memory-viewer__media video {
    max-height: 58svh;
    border-radius: 14px;
  }

  .memory-viewer__nav--previous {
    left: 4px;
  }

  .memory-viewer__nav--next {
    right: 4px;
  }

  .memory-viewer__nav {
    width: 44px;
    height: 44px;
  }

  .memory-viewer__story h2 {
    font-size: 24px;
  }

  .memory-viewer__caption {
    font-size: 15px;
  }
}

@media (min-width: 520px) and (max-height: 520px) {
  .chapter-drawer {
    display: block;
    top: max(8px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
    bottom: max(8px, env(safe-area-inset-bottom));
    left: max(8px, env(safe-area-inset-left));
    width: auto;
    max-height: none;
    transform: translateY(calc(100% + 20px));
  }

  .chapter-drawer.is-open {
    transform: translateY(0);
  }

  .chapter-hero {
    min-height: 300px;
    grid-template-columns: minmax(250px, 42%) minmax(0, 1fr);
  }

  .chapter-cover-mosaic {
    min-height: 300px;
  }

  .chapter-summary {
    padding: 48px 24px 24px;
  }

  .chapter-summary h2 {
    font-size: 34px;
  }

  .chapter-summary blockquote {
    margin: 14px 0 12px;
    font-size: 15px;
  }

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

  .chapter-memory-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .memory-viewer {
    padding:
      max(16px, env(safe-area-inset-top))
      max(54px, calc(env(safe-area-inset-right) + 46px))
      max(16px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    grid-template-columns: minmax(0, 1fr) minmax(210px, 31vw);
    grid-template-rows: minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
  }

  .memory-viewer__stage {
    grid-column: 1;
    grid-row: 1;
  }

  .memory-viewer__media img,
  .memory-viewer__media video {
    max-height: calc(100svh - 32px);
  }

  .memory-viewer__story {
    align-self: stretch;
    display: flex;
    min-height: 0;
    flex-direction: column;
    justify-content: safe center;
    grid-column: 2;
    grid-row: 1;
    padding: 10px 4px 10px 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: left;
  }

  .memory-viewer__story h2 {
    font-size: 21px;
  }

  .memory-viewer__caption {
    font-size: 14px;
  }

  .memory-viewer__nav--previous {
    left: 8px;
  }

  .memory-viewer__nav--next {
    right: 8px;
  }
}
