.travel-stage {
  position: relative;
  display: none;
  width: 100%;
  height: clamp(350px, 49vh, 440px);
  margin: clamp(26px, 4vh, 40px) auto 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(86, 217, 255, 0.34);
  border-radius: 25px;
  background: #08223c;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), 0 0 45px rgba(86, 217, 255, 0.1);
}

body:is(.quiz-active, .summary-active, .map-preparing) .globe-stage {
  display: none;
}

body:is(.quiz-active, .summary-active, .map-preparing) .travel-stage {
  display: block;
}

.travel-loading {
  position: absolute;
  inset: 0;
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #08223c;
  color: #a8f7d5;
  font: 600 0.9rem "DM Mono", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.travel-loading[hidden] {
  display: none;
}

body.map-preparing .control-card {
  display: none;
}

#travelMap,
#travelMap.leaflet-container {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 35% 32%, #123b56, #071a32 75%);
}

#travelMap.leaflet-grab {
  cursor: grab;
}

#travelMap.leaflet-drag-target {
  cursor: grabbing;
}

#travelMap .leaflet-top.leaflet-right {
  top: 44px;
}

#travelMap .leaflet-control-zoom {
  border: 1px solid rgba(160, 225, 244, 0.35);
  border-radius: 10px;
  overflow: hidden;
}

#travelMap .leaflet-control-zoom a {
  width: 40px;
  height: 40px;
  line-height: 40px;
  background: #0c1c35;
  color: #f6f8ff;
}

#travelMap .leaflet-control-zoom a:hover,
#travelMap .leaflet-control-zoom a:focus-visible {
  background: #174763;
}

@media (max-width: 840px) {
  body.quiz-active #travelMap .leaflet-top.leaflet-right {
    top: 104px;
  }
}

.travel-topline,
.travel-bottomline {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  pointer-events: none;
}

.travel-topline {
  top: 0;
  background: linear-gradient(to bottom, rgba(4, 17, 35, 0.96), rgba(4, 17, 35, 0));
}

.travel-bottomline {
  bottom: 0;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(4, 17, 35, 0.98), rgba(4, 17, 35, 0));
}

.travel-kicker,
#travelStop,
.travel-credit {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.travel-kicker {
  color: #56d9ff;
}

#travelStop {
  flex: none;
  color: #a5b3cb;
}

#travelPlace {
  min-width: 0;
  color: #f6f8ff;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 8px #05101e;
}

.travel-credit {
  flex: none;
  pointer-events: auto;
}

.travel-credit a {
  color: #a5b3cb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.travel-credit a:hover,
.travel-credit a:focus-visible {
  color: #56d9ff;
}

.map-load-status {
  margin: 14px 0;
  color: #a8f7d5;
  font: 0.8rem "DM Mono", monospace;
  letter-spacing: 0.02em;
}

.travel-pin {
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 3px solid #08223c;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 0 2px rgba(255, 209, 102, 0.85), 0 0 14px rgba(255, 209, 102, 0.45);
}

.travel-pin--approximate {
  background: #56d9ff;
  box-shadow: 0 0 0 2px rgba(86, 217, 255, 0.8);
}


@media (max-width: 840px) {
  body:is(.quiz-active, .summary-active) .control-card {
    display: none;
  }

  body.quiz-active .game-category-back {
    display: inline-flex;
  }

  .travel-stage {
    order: 3;
    width: 100%;
    height: min(84vw, 390px);
    min-height: 280px;
    margin: 14px 0 0;
  }

  body.quiz-active #quiz,
  body.summary-active #summary-display {
    margin: 0 !important;
  }
}
