.title-paths button.ascent-go {
  border: 1px solid #345d50;
  background: #365f52;
  color: #fafbf2;
}

.title-paths button.ascent-go:hover {
  background: #294c42;
}

#journey {
  position: fixed;
  inset: 0;
  z-index: 30;
  isolation: isolate;
  color: #edf2e9;
}

:root:has(#journey:not([hidden])) {
  overflow: hidden;
}

.journey-scenery,
.journey-doors {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.journey-scenery,
.journey-doors,
.journey-destination {
  pointer-events: none;
}

#journey:is(.at-exterior, .at-pause, .at-cover, .at-reveal) .journey-scenery {
  visibility: hidden;
}

.at-arrival.is-exiting :is(.journey-scenery,.journey-destination) {
  opacity: 0;
  transition: opacity var(--exit-time) ease-out;
}

#journey.at-arrival.is-exiting, #journey.at-reveal { background: #d9ddce; }
#journey.at-reveal { animation: leave-landing var(--exit-time) ease-out both; }
@keyframes leave-landing {
  from { opacity: 1; }
  to { opacity: 0; }
}

.journey-doors {
  display: none;
}

#journey.at-cover {
  animation: settle-to-landing 320ms ease-in both;
}

@keyframes settle-to-landing {
  from { background-color: transparent; }
  to { background-color: #8a9887; }
}

.journey-destination {
  position: absolute;
  top: clamp(16px, 5svh, 50px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(90%, 30rem);
  padding: 6px 12px;
  color: #f1f4e9;
  background: #304840;
  font-weight: 600;
  text-align: center;
}

.journey-destination:empty {
  display: none;
}

.journey-destination:has(#retry-battle-load) {pointer-events:auto}
#retry-battle-load {color:inherit;background:transparent;border:0;text-decoration:underline;text-underline-offset:.2em;padding:.6em;cursor:pointer}

#journey-skip {
  position: absolute;
  right: clamp(16px, 4vw, 54px);
  bottom: clamp(16px, 4svh, 54px);
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #acbbb0;
  border-radius: 4px;
  background: #f2f4eb;
  color: #30483d;
}

.prep-threshold {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(18px, 5vw, 64px);
  margin-block: 14px 22px;
}

.prep-threshold .journey-cabin {
  grid-column: 2;
  grid-row: 1;
  height: clamp(158px, 25vw, 270px);
}

.prep-threshold .deck-heading {
  grid-column: 1;
  grid-row: 1;
}

.prep-threshold h1 {
  color: #28483b;
  font: 800 clamp(1.55rem, 4.2vw, 3.4rem)/1.15 var(--title-type);
  word-break: keep-all;
}

.map-cabin .journey-cabin,
.result-art .journey-cabin {
  height: 215px;
}

#panel.at-defeat {
  position: fixed;
  inset: 0;
  z-index: 20;
  max-width: none;
  margin: 0;
  background: #263c37ad;
  overflow: auto;
}

#panel.at-defeat .result-sheet {
  background: #eff1e7;
  padding: clamp(18px, 4vw, 48px);
  min-height: 0;
}

@media (max-width: 650px) {
  .prep-threshold { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
  .prep-threshold .journey-cabin { height: clamp(120px, 32vw, 170px); }
  .map-cabin {
    display: none;
  }

  #panel.at-defeat .result-art {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #journey.at-cover {
    animation: none !important;
  }
}
