:root {
  --pointer-x: 50%;
  --pointer-y: 50%;
  --pointer-nx: 0;
  --pointer-ny: 0;
  --guide-accent: #d7a94c;
  --panel-width: min(720px, 49vw);
  --panel-top: clamp(104px, 13.8vh, 146px);
  --ability-duration: 2.2s;
  --ability-departure-duration: 1.1s;
  --ability-arrival-duration: 1.1s;
  --travel-direction: 1;
}

/* Final art direction: the scene paintings carry the atmosphere. */
.scene__effects-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.045) translate3d(var(--parallax-x), var(--parallax-y), 0);
  transform-origin: center;
  will-change: opacity, transform;
}

.scene__effects-canvas.is-active {
  opacity: 1;
}

.scene__grain {
  opacity: 0.065;
}

.experience.is-scene-staged .scene__image,
.experience.is-scene-staged .scene__foreground {
  transition: none !important;
}

.experience.has-scene-effects.is-traversing .scene__image,
.experience.has-scene-effects.is-traversing .scene__foreground {
  opacity: 0 !important;
  animation: none !important;
  transition: none !important;
}

.experience.is-transition-preview .scene__effects-canvas {
  opacity: 1;
}

.experience.is-dune-surfing:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__image--previous {
  animation: cinematic-dune-out var(--ability-departure-duration)
    cubic-bezier(0.32, 0.72, 0.25, 1) both !important;
}

.experience.is-dune-surfing:not(
    .has-scene-effects
  )[data-transition-phase="arrival"]
  .scene__image--current {
  animation: cinematic-arrival-hold var(--ability-arrival-duration)
    cubic-bezier(0.22, 0.68, 0.24, 1) both !important;
}

.experience.is-dune-surfing:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__image--current {
  animation: cinematic-dune-in var(--ability-departure-duration)
    cubic-bezier(0.22, 0.68, 0.24, 1) both !important;
}

.experience.is-sand-teleporting:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__image--previous {
  animation: cinematic-sandfold-out var(--ability-departure-duration)
    cubic-bezier(0.4, 0.05, 0.36, 1) both !important;
}

.experience.is-sand-teleporting:not(
    .has-scene-effects
  )[data-transition-phase="arrival"]
  .scene__image--current {
  animation: cinematic-arrival-hold var(--ability-arrival-duration)
    cubic-bezier(0.22, 0.61, 0.26, 1) both !important;
}

.experience.is-sand-teleporting:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__image--current {
  animation: cinematic-sandfold-in var(--ability-departure-duration)
    cubic-bezier(0.22, 0.61, 0.26, 1) both !important;
}

.experience.is-solar-propelling:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__image--previous {
  animation: cinematic-solar-out var(--ability-departure-duration)
    cubic-bezier(0.32, 0.05, 0.3, 1) both !important;
}

.experience.is-solar-propelling:not(
    .has-scene-effects
  )[data-transition-phase="arrival"]
  .scene__image--current {
  animation: cinematic-arrival-hold var(--ability-arrival-duration)
    cubic-bezier(0.17, 0.67, 0.24, 1) both !important;
}

.experience.is-solar-propelling:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__image--current {
  animation: cinematic-solar-in var(--ability-departure-duration)
    cubic-bezier(0.17, 0.67, 0.24, 1) both !important;
}

.experience.is-reality-bending:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__image--previous {
  animation: cinematic-fold-out var(--ability-departure-duration)
    cubic-bezier(0.38, 0.02, 0.34, 1) both !important;
}

.experience.is-reality-bending:not(
    .has-scene-effects
  )[data-transition-phase="arrival"]
  .scene__image--current {
  animation: cinematic-arrival-hold var(--ability-arrival-duration)
    cubic-bezier(0.19, 0.65, 0.25, 1) both !important;
}

.experience.is-reality-bending:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__image--current {
  animation: cinematic-fold-in var(--ability-departure-duration)
    cubic-bezier(0.19, 0.65, 0.25, 1) both !important;
}

.experience.is-traversing:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__foreground--previous {
  animation: cinematic-foreground-out var(--ability-departure-duration) ease-out
    both !important;
}

.experience.is-traversing:not(
    .has-scene-effects
  )[data-transition-phase="departure"]
  .scene__foreground--current {
  animation: cinematic-foreground-in var(--ability-departure-duration) ease-out
    both !important;
}

.experience.is-traversing:not(
    .has-scene-effects
  )[data-transition-phase="arrival"]
  .scene__foreground--current {
  animation: cinematic-foreground-hold var(--ability-arrival-duration) linear
    both !important;
}

@keyframes cinematic-dune-out {
  from {
    opacity: 1;
    transform: scale(1.045) translate3d(0, 0, 0);
    filter: blur(0) saturate(1);
  }
  to {
    opacity: 0.12;
    transform: scale(1.065) translate3d(var(--travel-outgoing-x), 0, 0);
    filter: blur(2px) saturate(0.94);
  }
}

@keyframes cinematic-dune-in {
  from {
    opacity: 0;
    transform: scale(1.065) translate3d(var(--travel-incoming-x), 0, 0);
    filter: blur(2px) saturate(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1.045) translate3d(0, 0, 0);
    filter: blur(0) saturate(1);
  }
}

@keyframes cinematic-sandfold-out {
  from {
    opacity: 1;
    transform: scale(1.045);
    filter: blur(0) contrast(1);
  }
  to {
    opacity: 0.14;
    transform: scale(1.062);
    filter: blur(3px) contrast(0.94);
  }
}

@keyframes cinematic-sandfold-in {
  from {
    opacity: 0;
    transform: scale(1.062);
    filter: blur(3px) contrast(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1.045);
    filter: blur(0) contrast(1);
  }
}

@keyframes cinematic-solar-out {
  from {
    opacity: 1;
    transform: scale(1.045) translateY(0);
    filter: blur(0) brightness(1);
  }
  to {
    opacity: 0.16;
    transform: scale(1.058) translateY(-2.2vh);
    filter: blur(2.5px) brightness(1.14);
  }
}

@keyframes cinematic-solar-in {
  from {
    opacity: 0;
    transform: scale(1.058) translateY(1.8vh);
    filter: blur(2.5px) brightness(1.14);
  }
  to {
    opacity: 1;
    transform: scale(1.045) translateY(0);
    filter: blur(0) brightness(1);
  }
}

@keyframes cinematic-fold-out {
  from {
    opacity: 1;
    transform: scale(1.045);
    filter: blur(0) contrast(1);
  }
  to {
    opacity: 0.14;
    transform: scale(1.057);
    filter: blur(2px) contrast(0.93);
  }
}

@keyframes cinematic-fold-in {
  from {
    opacity: 0;
    transform: scale(1.057);
    filter: blur(2px) contrast(0.93);
  }
  to {
    opacity: 1;
    transform: scale(1.045);
    filter: blur(0) contrast(1);
  }
}

@keyframes cinematic-arrival-hold {
  from,
  to {
    opacity: 1;
    transform: scale(1.045) translate3d(0, 0, 0);
    filter: none;
  }
}

@keyframes cinematic-foreground-out {
  from {
    opacity: 0.76;
  }
  to {
    opacity: 0.12;
  }
}

@keyframes cinematic-foreground-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.76;
  }
}

@keyframes cinematic-foreground-hold {
  from,
  to {
    opacity: 0.76;
  }
}

.experience[data-motion="off"] .scene__effects-canvas,
.experience[data-motion="off"].is-traversing .scene__image,
.experience[data-motion="off"].is-traversing .scene__foreground {
  animation: none !important;
  transition: none !important;
}
.location-mark {
  top: var(--panel-top);
  max-width: min(33vw, 520px);
  left: clamp(76px, 7.6vw, 132px);
}
.location-mark h2 {
  font-size: clamp(1.75rem, 3.05vw, 3.15rem);
}
.chapter-panel {
  top: var(--panel-top);
  right: var(--safe-right);
  width: var(--panel-width);
  max-height: calc(100dvh - var(--panel-top) - 72px);
  backdrop-filter: blur(14px) saturate(0.96);
  background:
    linear-gradient(142deg, #14100cc2, #0c0a089e),
    radial-gradient(circle at 88% 2%, #d7a94c2e, #0000 42%);
  border-color: #efcb7361;
  padding: clamp(27px, 3vw, 46px);
  transition:
    width 0.52s cubic-bezier(0.2, 0.75, 0.2, 1),
    opacity 0.28s,
    transform 0.43s cubic-bezier(0.2, 0.75, 0.2, 1),
    background 0.42s;
  box-shadow:
    0 32px 100px #00000052,
    inset 0 1px #fff3cd12;
}
.chapter-panel[data-mode="inner"] {
  background:
    linear-gradient(142deg, #130f0be0, #090807c7),
    radial-gradient(circle at 86% 0, #d7a94c36, #0000 44%);
  width: min(820px, 57vw);
  box-shadow:
    0 36px 130px #00000085,
    inset 0 1px #fff3cd17;
}
.chapter-panel:after {
  background: linear-gradient(90deg, transparent, var(--guide-accent));
  width: 34%;
  height: 1px;
  box-shadow: 0 0 14px var(--guide-accent);
  content: "";
  opacity: 0.7;
  position: absolute;
  top: 0;
  right: 0;
}
.chapter-panel__meta {
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  display: flex;
}
.chapter-panel__signal {
  text-align: right;
  justify-items: end;
  gap: 3px;
  max-width: 220px;
  display: grid;
}
.chapter-panel__signal span {
  color: var(--guide-accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.56rem;
  font-weight: 600;
}
.chapter-panel__signal strong {
  color: #f4ead5a8;
  font-size: 0.66rem;
  font-weight: 480;
  line-height: 1.35;
}
.chapter-panel h2 {
  max-width: 18ch;
  margin-top: 11px;
  font-size: clamp(1.95rem, 2.9vw, 3.25rem);
}
.chapter-panel__lead {
  max-width: 66ch;
  font-size: clamp(1rem, 1.18vw, 1.16rem);
}
.chapter-panel__facts {
  background: #f4ead51f;
  border: 1px solid #f4ead51f;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 22px;
  display: grid;
}
.chapter-fact {
  background: #0c0a08c7;
  min-width: 0;
  padding: 13px 14px;
}
.chapter-fact strong,
.chapter-fact span {
  display: block;
}
.chapter-fact strong {
  color: var(--gold-bright);
  font-family: "Source Serif 4 Variable", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 520;
  line-height: 1;
}
.chapter-fact span {
  color: #f4ead58f;
  text-transform: uppercase;
  margin-top: 5px;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.56rem;
  line-height: 1.35;
}
.chapter-panel__evidence {
  background: #f4ead51f;
  border: 1px solid #f4ead51f;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
}
.evidence-record {
  background: #0f0c09ba;
  border: 0;
  min-width: 0;
  padding: 14px;
  display: block;
}
.evidence-record dt {
  margin-bottom: 6px;
}
.evidence-record dd {
  font-size: 0.76rem;
}
.chapter-panel__actions {
  gap: 9px;
  margin-top: 18px;
}
.chapter-panel__actions a {
  min-height: 38px;
  color: var(--cream);
  background: #d7a94c0f;
  border: 1px solid #efcb733d;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  padding: 0 12px;
  text-decoration: none;
  display: inline-flex;
}
.chapter-panel__actions a:hover {
  border-color: var(--gold-bright);
  background: #d7a94c21;
}
.portal-button {
  background: linear-gradient(100deg, #d7a94c21, #d7a94c0a), #0807063d;
  grid-template-columns: 42px 1fr auto;
  min-height: 68px;
  padding: 13px 16px;
  position: relative;
  overflow: hidden;
}
.portal-button:after {
  color: var(--gold-bright);
  content: "ENTER";
  letter-spacing: 0.16em;
  align-self: center;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.54rem;
  transform: rotate(-90deg);
}
.chapter-panel[data-mode="inner"] .portal-button:after {
  content: "EXIT";
}
.portal-button__icon {
  border-color: var(--guide-accent);
  color: var(--guide-accent);
  box-shadow:
    0 0 0 5px #d7a94c0d,
    inset 0 0 14px #d7a94c12;
}
.chapter-panel__inside {
  border-top: 1px solid #f4ead52b;
  margin-top: 28px;
  padding-top: 26px;
  animation: 0.52s cubic-bezier(0.2, 0.75, 0.2, 1) both inside-record-enter;
}
.chapter-panel__inside[hidden] {
  display: none;
}
.chapter-panel__inside-header {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  align-items: end;
  gap: 24px;
  display: grid;
}
.chapter-panel__inside-header p:first-child {
  color: var(--guide-accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 7px;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.58rem;
}
.chapter-panel__inside-header h3 {
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0;
  font-family: "Source Serif 4 Variable", Georgia, serif;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  font-weight: 520;
  line-height: 1.04;
}
.chapter-panel__inside-summary {
  color: #f4ead59e;
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.58;
}
.chapter-panel__tabs {
  border-bottom: 1px solid #f4ead529;
  gap: 0;
  margin-top: 24px;
  display: flex;
}
.chapter-panel__tabs button {
  color: #f4ead585;
  cursor: pointer;
  background: 0 0;
  border: 0;
  min-height: 41px;
  padding: 0 16px;
  font-size: 0.69rem;
  position: relative;
}
.chapter-panel__tabs button:after {
  background: var(--guide-accent);
  content: "";
  opacity: 0;
  height: 2px;
  transition:
    opacity 0.18s,
    transform 0.22s;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  transform: scaleX(0.35);
}
.chapter-panel__tabs button:hover,
.chapter-panel__tabs button[aria-selected="true"] {
  color: var(--cream);
}
.chapter-panel__tabs button[aria-selected="true"]:after {
  opacity: 1;
  transform: scaleX(1);
}
.chapter-panel__tab-panel {
  min-height: 190px;
  padding-top: 20px;
}
.inside-panel__header {
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
  display: flex;
}
.inside-panel__header p,
.inside-panel__header span {
  margin: 0;
}
.inside-panel__header p {
  color: var(--gold-bright);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.58rem;
}
.inside-panel__header span {
  color: #f4ead57d;
  text-align: right;
  max-width: 52ch;
  font-size: 0.65rem;
  line-height: 1.45;
}
.inside-now-grid,
.inside-pillar-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}
.inside-now-card,
.inside-pillar-card {
  background: linear-gradient(145deg, #f4ead50d, #0000), #07060547;
  border: 1px solid #f4ead51f;
  min-width: 0;
  padding: 16px;
  position: relative;
}
.inside-now-card span,
.inside-pillar-card > span {
  color: var(--guide-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.53rem;
}
.inside-now-card h4,
.inside-pillar-card h4 {
  margin: 8px 0 7px;
  font-family: "Source Serif 4 Variable", Georgia, serif;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.08;
}
.inside-now-card p,
.inside-pillar-card p {
  color: #f4ead596;
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.5;
}
.inside-notes {
  gap: 7px;
  display: grid;
}
.inside-notes details {
  background: #f4ead508;
  border: 1px solid #f4ead51f;
}
.inside-notes summary {
  color: var(--cream);
  cursor: pointer;
  padding: 14px 42px 14px 15px;
  font-family: "Source Serif 4 Variable", Georgia, serif;
  font-size: 0.9rem;
  list-style: none;
  position: relative;
}
.inside-notes summary::-webkit-details-marker {
  display: none;
}
.inside-notes summary:after {
  color: var(--guide-accent);
  content: "+";
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  position: absolute;
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
}
.inside-notes details[open] summary:after {
  content: "−";
}
.inside-notes p {
  color: #f4ead596;
  margin: 0;
  padding: 0 15px 15px;
  font-size: 0.72rem;
  line-height: 1.55;
}
.chapter-panel__artifact {
  color: var(--cream);
  background:
    radial-gradient(circle at 100% 0, #d7a94c24, #0000 42%), #d7a94c0d;
  border: 1px solid #efcb733d;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 18px;
  padding: 16px 48px 16px 17px;
  text-decoration: none;
  display: grid;
  position: relative;
}
.chapter-panel__artifact span,
.chapter-panel__artifact strong,
.chapter-panel__artifact small {
  grid-column: 1;
  display: block;
}
.chapter-panel__artifact span {
  color: var(--guide-accent);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.53rem;
}
.chapter-panel__artifact strong {
  margin-top: 5px;
  font-family: "Source Serif 4 Variable", Georgia, serif;
  font-size: 1rem;
  font-weight: 560;
}
.chapter-panel__artifact small {
  color: #f4ead587;
  margin-top: 4px;
  font-size: 0.66rem;
  line-height: 1.45;
}
.chapter-panel__artifact b {
  color: var(--gold-bright);
  font-size: 1.1rem;
  font-weight: 400;
  position: absolute;
  top: 50%;
  right: 17px;
  transform: translateY(-50%);
}
.chapter-panel__artifact:hover {
  border-color: var(--gold-bright);
  background-color: #d7a94c1c;
}
@keyframes inside-record-enter {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.companion {
  perspective: 900px;
  pointer-events: none;
}
.companion__plate {
  z-index: -3;
  border: 1px solid color-mix(in srgb, var(--guide-accent) 42%, transparent);
  opacity: 0.42;
  clip-path: polygon(21% 0, 100% 13%, 83% 100%, 0 86%);
  width: 132%;
  height: 86%;
  position: absolute;
  top: 7%;
  left: 50%;
  transform: translate(-50%) rotate(3deg) skewY(-2deg);
}
.companion__rim {
  z-index: -2;
  background: radial-gradient(
    ellipse at 50% 53%,
    color-mix(in srgb, var(--guide-accent) 32%, transparent),
    transparent 64%
  );
  filter: blur(12px);
  opacity: 0.68;
  position: absolute;
  inset: -8% -18% -5%;
}
.companion__ground {
  z-index: -2;
  background:
    radial-gradient(ellipse, #00000094, transparent 62%),
    radial-gradient(
      ellipse,
      color-mix(in srgb, var(--guide-accent) 38%, transparent),
      transparent 67%
    );
  filter: blur(5px);
  border-radius: 50%;
  height: 13%;
  position: absolute;
  bottom: -5%;
  left: -42%;
  right: -42%;
}
.companion__aura {
  background: radial-gradient(
    ellipse,
    color-mix(in srgb, var(--guide-accent) 35%, transparent),
    transparent 68%
  );
  bottom: -4%;
  left: -62%;
  right: -62%;
}
.companion img {
  filter: drop-shadow(0 22px 16px #00000085)
    drop-shadow(
      0 0 10px color-mix(in srgb, var(--guide-accent) 18%, transparent)
    );
  transform: perspective(900px) rotateY(calc(var(--pointer-nx) * -2.4deg))
    rotateX(calc(var(--pointer-ny) * 1.2deg));
  transition:
    transform 0.36s cubic-bezier(0.2, 0.75, 0.2, 1),
    filter 0.24s;
}
.companion figcaption {
  border-top: 1px solid color-mix(in srgb, var(--guide-accent) 50%, transparent);
  background: linear-gradient(90deg, #0000, #0c0a0899, #0000);
  min-width: 180px;
  padding: 7px 10px;
  top: calc(100% + 10px);
}
.companion__role {
  color: var(--guide-accent);
  font-size: 0.48rem;
}
.companion figcaption strong {
  font-size: 0.98rem;
}
.companion__specialty,
.companion__temperament {
  color: #f4ead59e;
  margin-top: 2px;
  font-size: 0.55rem;
  line-height: 1.3;
  display: block;
}
.companion__temperament {
  color: #f4ead56b;
  text-transform: uppercase;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.48rem;
}
.companion__insight {
  border-left: 2px solid var(--guide-accent);
  color: #f4ead5bd;
  text-align: right;
  text-shadow: 0 2px 12px #000c;
  background: linear-gradient(90deg, #0c0a08b8, #0000);
  width: 245px;
  margin: 0;
  padding: 14px 16px;
  font-family: "Source Serif 4 Variable", Georgia, serif;
  font-size: 0.78rem;
  font-style: italic;
  line-height: 1.5;
  position: absolute;
  bottom: 18%;
  right: calc(100% + 18px);
}
.experience.is-looking-back .companion img {
  transform: perspective(650px) rotateY(180deg) rotate(-1deg);
}
.experience.is-presenting .companion img {
  transform: perspective(900px) rotateY(-2deg) rotate(-1.4deg) translateY(-1.5%);
}
.experience.is-idle-leaning .companion img {
  transform: perspective(900px) rotate(var(--idle-lean-angle, -3deg))
    translateX(var(--idle-lean-shift, -2%));
}
.experience.is-traversing .companion img {
  transform: perspective(900px) scale(0.95) translateY(2%) rotateY(-4deg);
}
.ability-dock {
  z-index: 19;
  bottom: calc(var(--safe-bottom) + 62px);
  backdrop-filter: blur(14px);
  background:
    linear-gradient(145deg, #0d0b09c7, #0d0b097a),
    radial-gradient(circle at 0 100%, #d7a94c1c, #0000 45%);
  border: 1px solid #f4ead526;
  width: min(590px, 43vw);
  padding: 10px;
  position: absolute;
  left: clamp(76px, 7.2vw, 128px);
  box-shadow: 0 18px 50px #0000003d;
}
.ability-dock__header {
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 3px 8px;
  display: flex;
}
.ability-dock__header p,
.ability-dock__header span {
  text-transform: uppercase;
  margin: 0;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
}
.ability-dock__header p {
  color: #f4ead57a;
  letter-spacing: 0.15em;
  font-size: 0.53rem;
}
.ability-dock__header span {
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  font-size: 0.52rem;
}
.ability-dock__list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  display: grid;
}
.ability-dock__list button {
  color: #f4ead59e;
  text-align: left;
  cursor: pointer;
  background: #f4ead505;
  border: 1px solid #f4ead51a;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 52px;
  padding: 7px 8px;
  transition:
    border-color 0.17s,
    color 0.17s,
    background 0.17s,
    transform 0.17s;
  display: grid;
  position: relative;
}
.ability-dock__list button:hover,
.ability-dock__list button[aria-pressed="true"] {
  color: var(--cream);
  background: #d7a94c1c;
  border-color: #efcb7385;
  transform: translateY(-2px);
}
.ability-dock__list button[aria-pressed="true"]:after {
  background: var(--gold-bright);
  width: 5px;
  height: 5px;
  box-shadow: 0 0 9px var(--gold-bright);
  content: "";
  border-radius: 50%;
  position: absolute;
  bottom: 6px;
  right: 7px;
}
.ability-dock__glyph {
  width: 29px;
  height: 29px;
  color: var(--gold-bright);
  border: 1px solid #efcb7342;
  place-items: center;
  font-family: "Source Serif 4 Variable", Georgia, serif;
  font-size: 1rem;
  display: grid;
  transform: rotate(45deg);
}
.ability-dock__glyph i {
  font-style: normal;
  transform: rotate(-45deg);
}
.ability-dock__copy {
  min-width: 0;
  display: block;
}
.ability-dock__copy strong,
.ability-dock__copy small {
  display: block;
}
.ability-dock__copy strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.62rem;
  font-weight: 620;
  overflow: hidden;
}
.ability-dock__copy small {
  color: #f4ead56e;
  margin-top: 2px;
  font-size: 0.5rem;
  line-height: 1.25;
  display: none;
}
.map-dialog__body {
  margin-top: clamp(20px, 3vw, 34px);
  display: block;
}
.map-dialog__art {
  isolation: isolate;
  aspect-ratio: 16/10;
  background:
    radial-gradient(circle at 88% 72%, #38897d3d, #0000 13%),
    radial-gradient(circle at 64% 59%, #ab482638, #0000 16%),
    radial-gradient(circle at 42% 66%, #5384512b, #0000 18%),
    radial-gradient(circle at 84% 24%, #4a749738, #0000 18%),
    radial-gradient(at 18% 72%, #c18e433b, #0000 28%),
    linear-gradient(142deg, #1c1913, #121715 58%, #16120e);
  border: 1px solid #efcb7357;
  min-height: 520px;
  max-height: none;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px #fff0c50a,
    inset 0 -90px 140px #0205056b,
    0 28px 80px #0000003d;
}
.map-dialog__art:before,
.map-dialog__art:after {
  z-index: 1;
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.map-dialog__art:before {
  opacity: 0.68;
  background-image:
    linear-gradient(#edd5a30a 1px, #0000 1px),
    linear-gradient(90deg, #edd5a30a 1px, #0000 1px);
  background-size: 6.25% 10%;
  -webkit-mask-image: radial-gradient(#000 24%, #0000 86%);
  mask-image: radial-gradient(#000 24%, #0000 86%);
}
.map-dialog__art:after {
  box-shadow:
    inset 0 0 74px #030505d1,
    inset 0 0 0 11px #efcb7308;
}
.map-dialog__terrain {
  z-index: 0;
  opacity: 0.68;
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.map-dialog__terrain:before,
.map-dialog__terrain:after,
.map-dialog__terrain span {
  content: "";
  pointer-events: none;
  display: block;
  position: absolute;
}
.map-dialog__terrain:before {
  background: repeating-radial-gradient(
    at 44% 55%,
    #0000 0 18px,
    #ddbb7e0d 19px 20px,
    #0000 21px 34px
  );
  border: 1px solid #e0be7e14;
  border-radius: 48% 52% 58% 42%;
  width: 67%;
  height: 88%;
  top: -20%;
  left: -12%;
  transform: rotate(-11deg);
}
.map-dialog__terrain:after {
  background: repeating-radial-gradient(
    #0000 0 22px,
    #72b5a80d 23px 24px,
    #0000 25px 41px
  );
  border: 1px solid #76beb114;
  border-radius: 54% 46% 38% 62%;
  width: 67%;
  height: 92%;
  bottom: -32%;
  right: -14%;
  transform: rotate(9deg);
}
.map-dialog__terrain span:first-child {
  background: repeating-linear-gradient(
    166deg,
    #0000 0 18px,
    #e1b36514 19px 20px,
    #0000 21px 34px
  );
  border-radius: 50%;
  width: 43%;
  height: 28%;
  bottom: 9%;
  left: -3%;
  transform: rotate(-7deg);
}
.map-dialog__terrain span:nth-child(2) {
  border: 1px solid #d3b8850f;
  border-radius: 58% 42% 52% 48%;
  width: 27%;
  height: 48%;
  top: 26%;
  left: 31%;
  transform: rotate(18deg);
}
.map-dialog__terrain span:nth-child(3) {
  background: radial-gradient(circle, #d25c2b26, #0000 66%);
  border-radius: 50%;
  width: 18%;
  height: 25%;
  top: 43%;
  left: 55%;
}
.map-dialog__terrain span:nth-child(4) {
  background: radial-gradient(circle, #57b3a324, #0000 68%);
  border-radius: 50%;
  width: 24%;
  height: 23%;
  bottom: 13%;
  right: 1%;
}
.map-dialog__route {
  z-index: 2;
  pointer-events: none;
  position: absolute;
  inset: 0;
}
.map-dialog__route-segment {
  width: var(--route-length);
  opacity: 0.72;
  height: 2px;
  transform: rotate(var(--route-angle));
  transform-origin: 0;
  background: linear-gradient(90deg, #efcb7329, #efcb7359, #efcb731f);
  border-radius: 999px;
  transition:
    background 0.24s,
    box-shadow 0.24s,
    opacity 0.24s;
  display: block;
  position: absolute;
  overflow: hidden;
  box-shadow: 0 0 0 1px #0a080659;
}
.map-dialog__route-segment:after {
  border-radius: inherit;
  content: "";
  opacity: 0;
  width: 24%;
  animation: 5.8s ease-in-out infinite atlas-route-signal;
  animation-delay: var(--route-delay, 0s);
  background: linear-gradient(90deg, #0000, #f5d583, #0000);
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 0;
  transform: translate(-130%);
}
.map-dialog__route-segment:first-child {
  --route-length: 17%;
  --route-angle: -45deg;
  --route-delay: -0.6s;
  top: 68%;
  left: 17%;
}
.map-dialog__route-segment:nth-child(2) {
  --route-length: 17%;
  --route-angle: 39deg;
  --route-delay: -1.4s;
  top: 49%;
  left: 29%;
}
.map-dialog__route-segment:nth-child(3) {
  --route-length: 18%;
  --route-angle: -56deg;
  --route-delay: -2.2s;
  top: 66%;
  left: 42%;
}
.map-dialog__route-segment:nth-child(4) {
  --route-length: 16%;
  --route-angle: 41deg;
  --route-delay: -3s;
  top: 42%;
  left: 52%;
}
.map-dialog__route-segment:nth-child(5) {
  --route-length: 15%;
  --route-angle: -53deg;
  --route-delay: -3.8s;
  top: 59%;
  left: 64%;
}
.map-dialog__route-segment:nth-child(6) {
  --route-length: 15%;
  --route-angle: -42deg;
  --route-delay: -4.6s;
  top: 40%;
  left: 73%;
}
.map-dialog__route-segment:nth-child(7) {
  --route-length: 30.5%;
  --route-angle: 82deg;
  --route-delay: -5.4s;
  top: 24%;
  left: 84%;
}
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(2) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 1),
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(3) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 2),
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(4) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 3),
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(5) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 4),
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(6) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 5),
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(7) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 6),
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(8) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 7) {
  opacity: 1;
  background: linear-gradient(90deg, #b78b3e, #f3cf7a, #c59a4c);
  box-shadow: 0 0 12px #efcb7361;
}
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(2) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 1):after,
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(3) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 2):after,
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(4) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 3):after,
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(5) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 4):after,
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(6) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 5):after,
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(7) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 6):after,
.map-dialog__art:has(
    .map-dialog__locations li:nth-child(8) button[aria-current="step"]
  )
  .map-dialog__route-segment:nth-child(-n + 7):after {
  opacity: 0.92;
}
.map-dialog__atlas-title {
  z-index: 3;
  pointer-events: none;
  gap: 3px;
  max-width: 220px;
  display: grid;
  position: absolute;
  top: clamp(18px, 2.4vw, 30px);
  left: clamp(20px, 2.8vw, 36px);
}
.map-dialog__atlas-title span {
  color: #efcb73ad;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.54rem;
}
.map-dialog__atlas-title strong {
  color: #f4ead5db;
  letter-spacing: 0.02em;
  font-family: "Source Serif 4 Variable", Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  font-weight: 520;
}
.map-dialog__locations {
  z-index: 4;
  pointer-events: none;
  margin: 0;
  padding: 0;
  list-style: none;
  display: block;
  position: absolute;
  inset: 0;
}
.map-dialog__locations li {
  left: var(--atlas-node-x);
  top: var(--atlas-node-y);
  pointer-events: auto;
  width: clamp(126px, 13.5vw, 172px);
  position: absolute;
  transform: translate(-50%, -50%);
}
.map-dialog__locations li:first-child {
  --atlas-node-x: 17%;
  --atlas-node-y: 68%;
}
.map-dialog__locations li:nth-child(2) {
  --atlas-node-x: 29%;
  --atlas-node-y: 49%;
}
.map-dialog__locations li:nth-child(3) {
  --atlas-node-x: 42%;
  --atlas-node-y: 66%;
}
.map-dialog__locations li:nth-child(4) {
  --atlas-node-x: 52%;
  --atlas-node-y: 42%;
}
.map-dialog__locations li:nth-child(5) {
  --atlas-node-x: 64%;
  --atlas-node-y: 59%;
}
.map-dialog__locations li:nth-child(6) {
  --atlas-node-x: 73%;
  --atlas-node-y: 40%;
}
.map-dialog__locations li:nth-child(7) {
  --atlas-node-x: 84%;
  --atlas-node-y: 24%;
}
.map-dialog__locations li:nth-child(8) {
  --atlas-node-x: 88%;
  --atlas-node-y: 72%;
}
.map-dialog__locations button {
  color: #f4ead5ad;
  backdrop-filter: blur(9px);
  text-align: left;
  cursor: pointer;
  background: #090a09c2;
  border: 1px solid #f4ead521;
  border-radius: 3px;
  grid-template-columns: 31px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 8px 9px;
  transition:
    color 0.18s,
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
  display: grid;
  position: relative;
  box-shadow:
    0 8px 24px #00000042,
    inset 0 1px #fff4d508;
}
.map-dialog__locations button:before {
  content: "";
  opacity: 0;
  pointer-events: none;
  border: 1px solid #efcb737a;
  border-radius: 5px;
  position: absolute;
  inset: -5px;
  transform: scale(0.96);
}
.map-dialog__locations button:after {
  color: #edd28d;
  letter-spacing: 0.1em;
  opacity: 0;
  text-transform: uppercase;
  content: "";
  pointer-events: none;
  background: #17130e;
  border: 1px solid #efcb7347;
  border-radius: 999px;
  padding: 2px 5px;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.43rem;
  line-height: 1.3;
  transition:
    opacity 0.18s,
    transform 0.18s;
  position: absolute;
  top: -9px;
  right: 8px;
  transform: translateY(3px);
}
.map-dialog__locations button > span:first-child {
  color: #efcb73;
  background: #d7a94c12;
  border: 1px solid #efcb735c;
  border-radius: 50%;
  place-items: center;
  width: 31px;
  height: 31px;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.58rem;
  line-height: 1;
  display: grid;
}
.map-dialog__locations button > span:nth-child(2) {
  min-width: 0;
}
.map-dialog__locations button strong {
  color: inherit;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Source Serif 4 Variable", Georgia, serif;
  font-size: clamp(0.78rem, 1.05vw, 0.94rem);
  font-weight: 560;
  line-height: 1.08;
  display: block;
  overflow: hidden;
}
.map-dialog__locations button small {
  color: #f4ead56b;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 3px;
  font-size: 0.5rem;
  line-height: 1.1;
  display: block;
  overflow: hidden;
}
.map-dialog__locations button:hover {
  z-index: 6;
  color: #fff4d0;
  background: #19150feb;
  border-color: #efcb7394;
  transform: translateY(-2px);
  box-shadow:
    0 11px 31px #00000057,
    0 0 18px #d7a94c1f;
}
.map-dialog__locations button:focus-visible {
  z-index: 8;
  outline-offset: 4px;
  color: #fff7df;
  background: #201a12;
  border-color: #f4d47e;
  outline: 2px solid #f4d47e;
}
.map-dialog__locations button[data-visited="true"]:not([aria-current="step"]) {
  color: #e0efe2d6;
  background: #101b18d1;
  border-color: #9acfbd57;
}
.map-dialog__locations
  button[data-visited="true"]:not([aria-current="step"])
  > span:first-child {
  color: #b8dfd1;
  background: #488a7729;
  border-color: #8fcfbb85;
}
.map-dialog__locations
  button[data-visited="true"]:not([aria-current="step"]):after {
  color: #b8dfd1;
  content: "Passed";
  opacity: 1;
  background: #101a17;
  border-color: #8fcfbb47;
  transform: translateY(0);
}
.map-dialog__locations button[aria-current="step"] {
  z-index: 7;
  color: #fff7d9;
  background: linear-gradient(135deg, #d7a94c38, #0000 62%), #211a11;
  border-color: #edc86f;
  transform: scale(1.035);
  box-shadow:
    0 13px 34px #00000061,
    0 0 24px #efcb732b;
}
.map-dialog__locations button[aria-current="step"]:before {
  animation: 2.8s ease-in-out infinite atlas-current-pulse;
}
.map-dialog__locations button[aria-current="step"]:after {
  content: "Current";
  opacity: 1;
  transform: translateY(0);
}
.map-dialog__locations button[aria-current="step"] > span:first-child {
  color: #1b150d;
  background: #efcb73;
  border-color: #f3d486;
  box-shadow: 0 0 14px #efcb7357;
}
.map-dialog__legend {
  z-index: 4;
  color: #f4ead57a;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.48rem;
  display: flex;
  position: absolute;
  bottom: clamp(14px, 1.9vw, 24px);
  right: clamp(16px, 2vw, 28px);
}
.map-dialog__legend span {
  align-items: center;
  gap: 5px;
  display: inline-flex;
}
.map-dialog__legend i {
  background: 0 0;
  border: 1px solid #f4ead557;
  border-radius: 50%;
  width: 7px;
  height: 7px;
}
.map-dialog__legend span:first-child i {
  background: #efcb73;
  border-color: #efcb73;
  box-shadow: 0 0 8px #efcb738f;
}
.map-dialog__legend span:nth-child(2) i {
  background: #5694815c;
  border-color: #91cdb8;
}
.map-dialog__atlas-note {
  z-index: 4;
  color: #f4ead56b;
  pointer-events: none;
  max-width: 43ch;
  margin: 0;
  font-size: 0.58rem;
  line-height: 1.45;
  position: absolute;
  bottom: clamp(14px, 1.9vw, 24px);
  left: clamp(20px, 2.8vw, 36px);
}
@keyframes atlas-route-signal {
  0%,
  15% {
    opacity: 0;
    transform: translate(-130%);
  }
  34% {
    opacity: 0.88;
  }
  76% {
    opacity: 0.42;
  }
  to {
    opacity: 0;
    transform: translate(520%);
  }
}
@keyframes atlas-current-pulse {
  0%,
  to {
    opacity: 0.12;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.035);
  }
}
.tool-button--scene {
  color: #fff6dcf0;
  user-select: none;
  touch-action: none;
  background: #110e0bb8;
  border-color: #efcb7375;
}
.tool-button--scene[aria-pressed="true"] {
  color: var(--cream);
  background: #120e0aad;
  border-color: #efcb738f;
  box-shadow:
    0 0 24px #d7a94c29,
    inset 0 1px #fff1c614;
}
.scene-view-status {
  z-index: 24;
  right: 50%;
  bottom: calc(var(--safe-bottom) + 10px);
  color: #fff6dcf5;
  backdrop-filter: blur(10px);
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  background: #0d0b09d6;
  border: 1px solid #efcb738f;
  border-radius: 999px;
  margin: 0;
  padding: 8px 13px;
  font-family:
    IBM Plex Mono,
    ui-monospace,
    monospace;
  font-size: 0.62rem;
  transition:
    opacity 0.22s,
    transform 0.26s;
  position: absolute;
  transform: translate(50%, 8px);
}
.experience.is-viewing-scene .scene-view-status {
  opacity: 1;
  transform: translate(50%);
}
.scene__veil,
.scene__vignette,
.scene__grain,
.scene__horizon-line {
  transition: opacity 0.28s;
}
.experience.is-viewing-scene .explorer-brand,
.experience.is-viewing-scene .journey-progress,
.experience.is-viewing-scene
  .explorer-tools
  .tool-button:not([data-view-scene-button]),
.experience.is-viewing-scene .location-rail,
.experience.is-viewing-scene .location-mark,
.experience.is-viewing-scene .chapter-panel,
.experience.is-viewing-scene .companion,
.experience.is-viewing-scene .ability-dock,
.experience.is-viewing-scene .look-control,
.experience.is-viewing-scene .traversal-controls,
.experience.is-viewing-scene .mode-indicator,
.experience.is-viewing-scene .experience-toast {
  opacity: 0;
  pointer-events: none;
}
.experience.is-viewing-scene .explorer-topbar {
  border-color: #0000;
}
.experience.is-viewing-scene .scene__veil {
  opacity: 0;
}
.experience.is-viewing-scene .scene__vignette {
  opacity: 0;
}
.experience.is-viewing-scene .scene__grain {
  opacity: 0;
}
.experience.is-viewing-scene .scene__horizon-line {
  opacity: 0;
}
.experience.is-viewing-scene .scene__image--current {
  filter: none;
}
@media (width<=980px) and (width>=761px) {
  .map-dialog__art {
    min-height: 470px;
  }
  .map-dialog__locations li {
    width: clamp(116px, 15.5vw, 148px);
  }
  .map-dialog__locations button {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 6px;
    min-height: 47px;
    padding: 7px;
  }
  .map-dialog__locations button > span:first-child {
    width: 27px;
    height: 27px;
    font-size: 0.52rem;
  }
  .map-dialog__locations button strong {
    font-size: 0.75rem;
  }
  .map-dialog__locations button small {
    font-size: 0.46rem;
  }
  .map-dialog__atlas-note {
    max-width: 34ch;
  }
}
@media (width<=760px) {
  .map-dialog__body {
    margin-top: 18px;
  }
  .map-dialog__art {
    aspect-ratio: auto;
    background: linear-gradient(155deg, #1d1913, #111512);
    min-height: 0;
    max-height: none;
    padding: 14px;
  }
  .map-dialog__art:before,
  .map-dialog__terrain,
  .map-dialog__route,
  .map-dialog__atlas-title {
    display: none;
  }
  .map-dialog__art:after {
    box-shadow: inset 0 0 42px #030505a3;
  }
  .map-dialog__locations {
    gap: 8px;
    display: grid;
    position: relative;
    inset: auto;
  }
  .map-dialog__locations li {
    width: auto;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }
  .map-dialog__locations button {
    backdrop-filter: none;
    background: #161612;
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 58px;
    padding: 9px 11px;
  }
  .map-dialog__locations button > span:first-child {
    width: 34px;
    height: 34px;
  }
  .map-dialog__locations button strong {
    text-overflow: initial;
    white-space: normal;
    font-size: 0.94rem;
    overflow: visible;
  }
  .map-dialog__locations button small {
    font-size: 0.58rem;
  }
  .map-dialog__locations button:hover,
  .map-dialog__locations button[aria-current="step"] {
    transform: translate(2px);
  }
  .map-dialog__legend,
  .map-dialog__atlas-note {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
  }
  .map-dialog__legend {
    justify-content: flex-start;
    margin-top: 15px;
  }
  .map-dialog__atlas-note {
    max-width: 56ch;
    margin-top: 11px;
    font-size: 0.65rem;
  }
}
.experience[data-motion="off"] .map-dialog__route-segment:after,
.experience[data-motion="off"]
  .map-dialog__locations
  button[aria-current="step"]:before {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .map-dialog__route-segment:after,
  .map-dialog__locations button[aria-current="step"]:before {
    animation: none;
  }
  .map-dialog__locations button,
  .map-dialog__route-segment {
    transition: none;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .map-dialog__art {
    background: #171511;
    box-shadow: inset 0 0 0 1px #4f4431;
  }
  .map-dialog__terrain,
  .map-dialog__art:before {
    display: none;
  }
  .map-dialog__locations button,
  .map-dialog__locations li:has(~ li button[aria-current="step"]) button,
  .map-dialog__locations button[aria-current="step"] {
    backdrop-filter: none;
    background: #15140f;
  }
}
.guide-dialog__grid {
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 12px;
}
.guide-card {
  background: linear-gradient(160deg, #f4ead50a, #0000 54%), #08070640;
  border-color: #f4ead521;
  padding: 10px;
}
.guide-card:hover,
.guide-card[aria-pressed="true"] {
  border-color: var(--card-accent, var(--gold-bright));
  background: color-mix(
    in srgb,
    var(--card-accent, var(--gold-bright)) 11%,
    #0d0b09e0
  );
}
.guide-card__figure {
  background:
    linear-gradient(180deg, #13252d2e, transparent 58%),
    radial-gradient(
      ellipse at bottom,
      color-mix(in srgb, var(--card-accent) 26%, transparent),
      transparent 63%
    );
  height: min(34vh, 350px);
  min-height: 220px;
  position: relative;
}
.guide-card__figure:after {
  filter: blur(5px);
  content: "";
  background: #0000007a;
  border-radius: 50%;
  height: 6%;
  position: absolute;
  bottom: 4%;
  left: 10%;
  right: 10%;
}
.guide-card__halo {
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
  opacity: 0.6;
  width: 72%;
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
}
.guide-card img {
  z-index: 2;
  filter: drop-shadow(0 13px 10px #0000007a);
  height: 96%;
  transition: transform 0.23s;
  position: relative;
}
.guide-card:hover img,
.guide-card[aria-pressed="true"] img {
  transform: translateY(-2%) scale(1.025);
}
.guide-card strong {
  color: var(--cream);
  font-size: 1.05rem;
}
.guide-card small {
  color: var(--card-accent, var(--gold-bright));
  font-size: 0.61rem;
}
.guide-card__origin {
  color: #f4ead566;
  text-align: left;
  margin-top: 4px;
  font-size: 0.52rem;
  line-height: 1.35;
  display: block;
}
@media (width>=1181px) and (height>=561px) {
  .experience-toast {
    max-width: min(600px, 100vw - 48px);
    padding-block: 8px;
    font-size: 0.68rem;
    top: 86px;
    bottom: auto;
    right: 50%;
    transform: translate(50%);
  }
  .experience-toast.is-visible {
    transform: translate(50%);
  }
}
@media (width>=821px) and (width<=1180px) and (height>=561px) {
  .experience-toast {
    max-width: 200px;
    inset: 180px auto auto 22px;
    transform: none;
  }
  .experience-toast.is-visible {
    transform: none;
  }
}
@media (width>=1380px) {
  .ability-dock__copy small {
    display: block;
  }
  .ability-dock__list button {
    min-height: 66px;
  }
}
@media (width<=1320px) {
  :root {
    --panel-width: min(650px, 50vw);
  }
  .companion__insight {
    display: none;
  }
  .chapter-panel[data-mode="inner"] {
    width: min(760px, 59vw);
  }
  .guide-dialog__grid {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
  }
  .guide-card__figure {
    height: min(30vh, 285px);
    min-height: 200px;
  }
}
@media (width<=1040px) and (width>=821px) {
  :root {
    --panel-width: min(540px, 52vw);
  }
  .chapter-panel[data-mode="inner"] {
    width: min(610px, 61vw);
  }
  .chapter-panel__evidence,
  .inside-now-grid,
  .inside-pillar-grid {
    grid-template-columns: 1fr;
  }
  .chapter-panel__evidence {
    background: 0 0;
    border: 0;
  }
  .evidence-record {
    border-bottom: 1px solid #f4ead51a;
    grid-template-columns: minmax(105px, 0.55fr) minmax(0, 1.45fr);
    gap: 12px;
    display: grid;
  }
  .ability-dock {
    width: min(380px, 37vw);
  }
  .ability-dock__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .ability-dock__list button {
    grid-template-columns: 25px minmax(0, 1fr);
    min-height: 48px;
    padding-inline: 6px;
  }
  .ability-dock__glyph {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
  }
  .ability-dock__copy strong {
    font-size: 0.54rem;
  }
  .guide-dialog__grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}
@media (width<=820px) {
  :root {
    --panel-top: auto;
  }
  .location-mark {
    max-width: calc(100vw - 24px);
    top: 77px;
    left: 12px;
  }
  .location-mark h2 {
    font-size: clamp(1.45rem, 6.1vw, 2.35rem);
  }
  .chapter-panel {
    width: auto;
    max-height: min(52dvh, 520px);
    padding: 21px;
    inset: auto 12px 62px;
  }
  .chapter-panel[data-mode="inner"] {
    width: auto;
    max-height: min(54dvh, 560px);
  }
  .chapter-panel__meta {
    gap: 10px;
  }
  .chapter-panel__signal {
    max-width: 150px;
  }
  .chapter-panel__signal strong {
    display: none;
  }
  .chapter-panel h2 {
    max-width: 22ch;
    font-size: clamp(1.55rem, 5.8vw, 2.35rem);
  }
  .chapter-panel__lead {
    font-size: 0.93rem;
  }
  .chapter-panel__facts {
    margin-top: 16px;
  }
  .chapter-fact {
    padding: 10px;
  }
  .chapter-fact strong {
    font-size: 1.05rem;
  }
  .chapter-fact span {
    font-size: 0.49rem;
  }
  .chapter-panel__evidence {
    background: 0 0;
    border: 0;
    grid-template-columns: 1fr;
  }
  .evidence-record {
    background: 0 0;
    border-bottom: 1px solid #f4ead51a;
    grid-template-columns: minmax(88px, 0.58fr) minmax(0, 1.42fr);
    gap: 10px;
    padding: 9px 0;
    display: grid;
  }
  .chapter-panel__inside-header {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .chapter-panel__inside-summary {
    max-width: 60ch;
  }
  .inside-now-grid,
  .inside-pillar-grid {
    grid-template-columns: 1fr;
  }
  .inside-panel__header {
    flex-direction: column;
    align-items: flex-start;
  }
  .inside-panel__header span {
    text-align: left;
  }
  .ability-dock {
    width: min(260px, 42vw);
    padding: 7px;
    inset: 132px auto auto 12px;
  }
  .ability-dock__header {
    margin-bottom: 6px;
  }
  .ability-dock__header span {
    display: none;
  }
  .ability-dock__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .ability-dock__list button {
    grid-template-columns: 25px minmax(0, 1fr);
    min-height: 40px;
    padding: 5px;
  }
  .ability-dock__glyph {
    width: 24px;
    height: 24px;
    font-size: 0.78rem;
  }
  .ability-dock__copy strong {
    font-size: 0.53rem;
  }
  .experience-toast {
    max-width: min(220px, 58vw - 18px);
    top: 266px;
  }
  .guide-dialog__grid {
    grid-template-columns: repeat(2, minmax(135px, 1fr));
  }
  .guide-card__figure {
    height: 260px;
  }
  .mode-indicator,
  .look-control {
    display: none;
  }
}
@media (width<=520px) {
  .location-mark {
    top: 70px;
  }
  .location-mark__region {
    font-size: 0.56rem;
  }
  .chapter-panel {
    max-height: 51dvh;
    padding: 18px;
    bottom: 56px;
  }
  .chapter-panel[data-mode="inner"] {
    max-height: 53dvh;
  }
  .chapter-panel__rule {
    margin-bottom: 12px;
  }
  .chapter-panel__signal {
    max-width: 92px;
  }
  .chapter-panel__signal span {
    font-size: 0.48rem;
  }
  .chapter-panel h2 {
    margin-top: 7px;
    font-size: clamp(1.35rem, 6.3vw, 1.9rem);
  }
  .chapter-panel__facts {
    display: none;
  }
  .chapter-panel__evidence {
    margin-top: 13px;
    display: grid;
  }
  .evidence-record:nth-child(n + 3) {
    display: none;
  }
  .evidence-record dt {
    font-size: 0.53rem;
  }
  .evidence-record dd {
    font-size: 0.68rem;
  }
  .chapter-panel__actions a {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.65rem;
  }
  .portal-button {
    grid-template-columns: 34px 1fr;
    min-height: 55px;
    margin-top: 13px;
    padding: 9px 10px;
  }
  .portal-button:after {
    display: none;
  }
  .portal-button__icon {
    width: 32px;
    height: 32px;
  }
  .chapter-panel__inside {
    margin-top: 19px;
    padding-top: 18px;
  }
  .chapter-panel__inside-header h3 {
    font-size: 1.38rem;
  }
  .chapter-panel__tabs {
    overflow-x: auto;
  }
  .chapter-panel__tabs button {
    flex: none;
    padding: 0 12px;
  }
  .inside-now-card,
  .inside-pillar-card {
    padding: 13px;
  }
  .ability-dock {
    width: min(220px, 56vw);
    top: 122px;
  }
  .ability-dock__header p {
    font-size: 0.47rem;
  }
  .ability-dock__list button {
    grid-template-columns: 22px 1fr;
    min-height: 36px;
    padding: 4px;
    display: grid;
  }
  .ability-dock__glyph {
    width: 21px;
    height: 21px;
    font-size: 0.7rem;
  }
  .ability-dock__copy strong {
    font-size: 0.48rem;
  }
  .experience-toast {
    max-width: min(220px, 56vw);
    top: 236px;
    left: 12px;
  }
  .companion figcaption {
    min-width: 142px;
    padding: 5px 8px;
  }
  .companion__specialty {
    font-size: 0.49rem;
  }
  .companion__temperament {
    display: none;
  }
  .guide-card__figure {
    height: 215px;
    min-height: 180px;
  }
  .guide-card__origin {
    display: none;
  }
}
@media (height<=560px) {
  :root {
    --panel-top: 78px;
  }
  .location-mark {
    max-width: 37vw;
    top: 78px;
    left: 22px;
  }
  .location-mark h2 {
    font-size: 1.45rem;
  }
  .chapter-panel,
  .chapter-panel[data-mode="inner"] {
    width: min(470px, 48vw);
    max-height: none;
    padding: 18px 20px;
    inset: 78px 18px 58px auto;
  }
  .chapter-panel[data-mode="inner"] {
    width: min(530px, 54vw);
  }
  .chapter-panel h2 {
    font-size: 1.55rem;
  }
  .chapter-panel__lead {
    font-size: 0.82rem;
  }
  .chapter-panel__facts,
  .chapter-panel__evidence {
    display: none;
  }
  .chapter-panel__actions {
    margin-top: 11px;
  }
  .portal-button {
    min-height: 50px;
    margin-top: 10px;
    padding: 7px 10px;
  }
  .chapter-panel__inside {
    margin-top: 14px;
    padding-top: 13px;
  }
  .chapter-panel__inside-header {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .chapter-panel__inside-header h3 {
    font-size: 1.25rem;
  }
  .chapter-panel__inside-summary {
    display: none;
  }
  .chapter-panel__tabs {
    margin-top: 10px;
  }
  .chapter-panel__tabs button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.58rem;
  }
  .chapter-panel__tab-panel {
    min-height: 0;
    padding-top: 10px;
  }
  .inside-panel__header {
    display: none;
  }
  .inside-now-grid,
  .inside-pillar-grid {
    grid-template-columns: 1fr;
  }
  .inside-now-card,
  .inside-pillar-card {
    padding: 10px;
  }
  .inside-now-card:nth-child(n + 2),
  .inside-pillar-card:nth-child(n + 2),
  .inside-notes details:nth-child(n + 2),
  .chapter-panel__artifact {
    display: none;
  }
  .ability-dock {
    width: 190px;
    padding: 6px;
    inset: 76px auto auto 27%;
  }
  .ability-dock__header {
    display: none;
  }
  .ability-dock__list {
    grid-template-columns: repeat(4, 1fr);
  }
  .ability-dock__list button {
    grid-template-columns: 1fr;
    min-height: 34px;
    padding: 4px;
    display: grid;
  }
  .ability-dock__copy {
    display: none;
  }
  .ability-dock__glyph {
    justify-self: center;
    width: 23px;
    height: 23px;
  }
  .experience-toast {
    max-width: 178px;
    inset: 137px auto auto 22px;
    transform: none;
  }
  .companion figcaption {
    top: calc(100% + 3px);
  }
}
.experience[data-motion="off"].is-traversing .scene__image--previous,
.experience[data-motion="off"].is-traversing .scene__image--current,
.experience[data-motion="off"].is-traversing .scene__foreground {
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .experience.is-traversing .scene__image--previous,
  .experience.is-traversing .scene__image--current,
  .experience.is-traversing .scene__foreground {
    animation: none !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .chapter-panel,
  .chapter-panel[data-mode="inner"] {
    backdrop-filter: none;
    background: linear-gradient(135deg, #120f0ce6, #120f0cd1);
  }
  .tool-button--scene,
  .scene-view-status {
    backdrop-filter: none;
    background: #17120e;
  }
}
@media (width<=520px) and (height>=650px) and (height<=780px) {
  .chapter-panel {
    max-height: 48dvh;
  }
  .chapter-panel[data-mode="inner"] {
    max-height: 50dvh;
  }
}
