/* Build 705: premium chapter takeoff while the first map destination warms. */

html body .app-shell .map-stage.chapter-journey-active #map canvas,
html body main.app-shell section.map-stage.chapter-journey-active #map canvas {
  transform-origin: center !important;
  transition:
    opacity 760ms ease,
    filter 760ms ease,
    transform 900ms cubic-bezier(0.2, 0.72, 0.24, 1) !important;
  will-change: opacity, filter, transform;
}

html body .app-shell .map-stage.chapter-journey-preparing #map canvas,
html body main.app-shell section.map-stage.chapter-journey-preparing #map canvas {
  opacity: 0.04 !important;
  filter: blur(18px) saturate(1.2) brightness(0.62) !important;
  transform: scale(1.055) !important;
}

html body .app-shell .map-stage.chapter-journey-traveling #map canvas,
html body main.app-shell section.map-stage.chapter-journey-traveling #map canvas {
  opacity: 0.84 !important;
  filter: blur(0.45px) saturate(1.3) contrast(1.07) brightness(0.86) sepia(0.04) !important;
  transform: scale(1.012) !important;
}

html body .app-shell .map-stage.chapter-journey-arriving #map canvas,
html body main.app-shell section.map-stage.chapter-journey-arriving #map canvas {
  opacity: 1 !important;
  filter: saturate(1.25) contrast(1.05) brightness(0.94) sepia(0.025) !important;
  transform: scale(1) !important;
}

html body .app-shell .map-stage.chapter-journey-preparing .chapter-journey-atmosphere,
html body main.app-shell section.map-stage.chapter-journey-preparing .chapter-journey-atmosphere {
  opacity: 1 !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(87, 216, 178, 0.24), transparent 24%),
    radial-gradient(circle at 18% 10%, rgba(255, 213, 126, 0.12), transparent 38%),
    linear-gradient(158deg, #0d4d52 0%, #073742 46%, #061f2d 100%) !important;
  backdrop-filter: blur(16px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.12) !important;
}

html body .app-shell .map-stage.chapter-journey-preparing .chapter-journey-atmosphere::before,
html body main.app-shell section.map-stage.chapter-journey-preparing .chapter-journey-atmosphere::before {
  position: absolute;
  top: 31%;
  left: 50%;
  width: min(66vw, 430px);
  height: min(27vw, 176px);
  border-top: 2px dashed rgba(206, 255, 236, 0.34);
  border-radius: 50%;
  content: "";
  opacity: 0.82;
  transform: translateX(-50%) rotate(-8deg);
  filter: drop-shadow(0 0 10px rgba(92, 224, 184, 0.2));
}

html body .app-shell .map-stage.chapter-journey-preparing .chapter-journey-atmosphere::after,
html body main.app-shell section.map-stage.chapter-journey-preparing .chapter-journey-atmosphere::after {
  position: absolute;
  top: calc(31% - 5px);
  left: 22%;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  content: "";
  background: #8ce6c6;
  box-shadow:
    0 0 0 8px rgba(99, 226, 187, 0.1),
    0 10px 24px rgba(0, 17, 25, 0.28);
  animation: chapter-journey-takeoff-pulse 1.35s ease-in-out infinite alternate;
}

html body .app-shell .map-stage.map-focus.chapter-journey-active #locationBanner.location-banner:not([hidden]),
html body main.app-shell section.map-stage.map-focus.chapter-journey-active #locationBanner.location-banner:not([hidden]) {
  display: none !important;
}

html body .app-shell .map-stage.chapter-journey-preparing .memory-peek-card.story-mode-intro.show,
html body main.app-shell section.map-stage.chapter-journey-preparing .memory-peek-card.story-mode-intro.show {
  z-index: 40 !important;
  grid-template-columns: 62px minmax(0, 1fr) !important;
  width: min(430px, calc(100vw - 30px)) !important;
  min-height: 138px !important;
  padding: 15px 17px !important;
  align-items: center !important;
  opacity: 1 !important;
  border-color: rgba(215, 242, 232, 0.88) !important;
  border-radius: 26px !important;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.96), transparent 36%),
    linear-gradient(145deg, rgba(250, 255, 252, 0.97), rgba(231, 246, 239, 0.96)) !important;
  box-shadow:
    0 24px 64px rgba(0, 24, 31, 0.3),
    0 2px 0 rgba(255, 255, 255, 0.82) inset !important;
  filter: none !important;
  pointer-events: none !important;
  transform: translateX(50%) translateY(0) scale(1) !important;
}

html body .app-shell .map-stage.chapter-journey-preparing .story-mode-intro .peek-copy,
html body main.app-shell section.map-stage.chapter-journey-preparing .story-mode-intro .peek-copy {
  align-content: center !important;
  gap: 5px !important;
  overflow: visible !important;
}

html body .app-shell .map-stage.chapter-journey-preparing .story-mode-intro .peek-copy strong,
html body main.app-shell section.map-stage.chapter-journey-preparing .story-mode-intro .peek-copy strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #0b4548 !important;
  font-size: clamp(16px, 4.3vw, 20px) !important;
  line-height: 1.15 !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html body .app-shell .map-stage.chapter-journey-preparing .story-mode-intro .peek-copy small,
html body main.app-shell section.map-stage.chapter-journey-preparing .story-mode-intro .peek-copy small {
  overflow: visible !important;
  color: #557375 !important;
  white-space: normal !important;
}

html body .app-shell .map-stage.chapter-journey-preparing .story-mode-intro .peek-copy em,
html body main.app-shell section.map-stage.chapter-journey-preparing .story-mode-intro .peek-copy em {
  display: -webkit-box !important;
  width: auto !important;
  overflow: hidden !important;
  padding: 0 !important;
  color: #246264 !important;
  background: transparent !important;
  font-style: normal !important;
  line-height: 1.28 !important;
  text-overflow: clip !important;
  white-space: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

html body .app-shell .map-stage.chapter-journey-preparing .map-navigation-gadget,
html body .app-shell .map-stage.chapter-journey-preparing .map-depth-switch,
html body main.app-shell section.map-stage.chapter-journey-preparing .map-navigation-gadget,
html body main.app-shell section.map-stage.chapter-journey-preparing .map-depth-switch {
  opacity: 0.28 !important;
  filter: saturate(0.7) !important;
  pointer-events: none !important;
  transition: opacity 520ms ease, filter 520ms ease !important;
}

@keyframes chapter-journey-takeoff-pulse {
  from { transform: scale(0.9); opacity: 0.72; }
  to { transform: scale(1.08); opacity: 1; }
}

/* Journey notices use a protected lane above the phone navigation gadget. */
@media (max-width: 720px), (hover: none) and (pointer: coarse) and (max-width: 1024px) {
  html body .app-shell .map-stage.map-focus.chapter-journey-active .memory-peek-card.story-mode-card:not(.story-mode-intro):not(.story-mode-outro),
  html body main.app-shell section.map-stage.map-focus.chapter-journey-active .memory-peek-card.story-mode-card:not(.story-mode-intro):not(.story-mode-outro) {
    right: 50% !important;
    bottom: calc(78px + env(safe-area-inset-bottom) + 20px + 92px + 14px) !important;
    left: auto !important;
    z-index: 64 !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    width: min(460px, calc(100vw - 30px)) !important;
    min-height: 112px !important;
    padding: 12px 14px !important;
    border-radius: 24px !important;
  }

  html body .app-shell .map-stage.map-focus.chapter-journey-active .memory-peek-card.story-mode-card:not(.story-mode-intro):not(.story-mode-outro) .peek-copy strong,
  html body main.app-shell section.map-stage.map-focus.chapter-journey-active .memory-peek-card.story-mode-card:not(.story-mode-intro):not(.story-mode-outro) .peek-copy strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    line-height: 1.16 !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }

  html body .app-shell .map-stage.map-focus.chapter-journey-active .memory-peek-card.story-mode-card:not(.story-mode-intro):not(.story-mode-outro) .peek-copy em,
  html body main.app-shell section.map-stage.map-focus.chapter-journey-active .memory-peek-card.story-mode-card:not(.story-mode-intro):not(.story-mode-outro) .peek-copy em {
    display: -webkit-box !important;
    width: auto !important;
    max-width: 100% !important;
    overflow: hidden !important;
    line-height: 1.22 !important;
    text-overflow: clip !important;
    white-space: normal !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }
}

@media (max-width: 640px) {
  html body .app-shell .map-stage.chapter-journey-preparing .memory-peek-card.story-mode-intro.show,
  html body main.app-shell section.map-stage.chapter-journey-preparing .memory-peek-card.story-mode-intro.show {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    min-height: 148px !important;
    padding: 14px 15px !important;
  }

  html body .app-shell .map-stage.chapter-journey-preparing .chapter-journey-atmosphere::before,
  html body main.app-shell section.map-stage.chapter-journey-preparing .chapter-journey-atmosphere::before {
    top: 36%;
    width: 74vw;
    height: 30vw;
  }

  html body .app-shell .map-stage.chapter-journey-preparing .chapter-journey-atmosphere::after,
  html body main.app-shell section.map-stage.chapter-journey-preparing .chapter-journey-atmosphere::after {
    top: calc(36% - 5px);
    left: 18%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body .app-shell .map-stage.chapter-journey-active #map canvas,
  html body .app-shell .map-stage.chapter-journey-preparing .chapter-journey-atmosphere::after,
  html body main.app-shell section.map-stage.chapter-journey-active #map canvas,
  html body main.app-shell section.map-stage.chapter-journey-preparing .chapter-journey-atmosphere::after {
    animation: none !important;
    transition: none !important;
  }
}
