* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Malgun Gothic", sans-serif;
  background: #f7f9f7;
  color: #17211b;
  overflow: hidden;
}

#app {
  display: grid;
  grid-template-rows: 72px 1fr 76px 118px;
  height: 100vh;
  width: 100vw;
}

/* ===== Topbar ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5ebe5;
  color: #17211b;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: #08a64a;
  border-radius: 10px;
  font-size: 19px;
}

.brand-title {
  font-size: 18px;
}

.stats {
  display: flex;
  gap: 18px;
}

.stat {
  background: #f5f8f5;
  border: 1px solid #e5ece6;
  border-radius: 11px;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.stat-label {
  font-size: 11px;
  color: #69766d;
  margin-bottom: 2px;
}

.stat-value {
  font-size: 18px;
  font-weight: 800;
  color: #4ade80;
  font-variant-numeric: tabular-nums;
}

.controls {
  display: flex;
  gap: 8px;
}

.btn {
  background: #0aa64a;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.2s ease;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  background: #fff;
  color: #31513c;
  border: 1px solid #d7e1d8;
}

/* ===== Map ===== */
#map {
  position: relative;
  width: 100%;
  height: 100%;
  background: #eaf0ec;
  z-index: 1;
}

/* ===== Journey countdown ===== */
.journey-countdown {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: radial-gradient(circle, rgba(7, 141, 64, 0.12), rgba(7, 28, 16, 0.04) 48%, transparent 70%);
}

.journey-countdown.hidden { display: none; }

.journey-countdown-card {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 160px;
  padding: 20px 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 24px;
  background: rgba(12, 42, 25, 0.78);
  box-shadow: 0 18px 48px rgba(4, 34, 15, 0.3);
  color: #fff;
  backdrop-filter: blur(8px);
}

.journey-countdown-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.journey-countdown-number {
  min-width: 1.1em;
  font-size: clamp(64px, 12vw, 116px);
  font-weight: 900;
  line-height: 0.9;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.28);
}

.journey-countdown-number.is-ticking {
  animation: journey-countdown-pulse 0.65s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes journey-countdown-pulse {
  from { opacity: 0.25; transform: scale(0.62); }
  65% { opacity: 1; transform: scale(1.12); }
  to { opacity: 1; transform: scale(1); }
}

/* Make tile layer darker for subway feel */
.leaflet-container {
  background: #eaf0ec;
}

.leaflet-tile-pane {
  filter: grayscale(0.3) saturate(0.72) brightness(1.03) contrast(0.96);
}

.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.78) !important;
  color: #6a756d !important;
}

.leaflet-control-attribution a {
  color: #39714d !important;
}

/* ===== HUD ===== */
.hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid #e3eae4;
  padding: 8px 24px;
  z-index: 10;
}

.step-station {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.step-origin {
  align-items: flex-end;
  text-align: right;
}

.step-destination {
  align-items: flex-start;
  text-align: left;
}

.step-label {
  color: #6b7a70;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.current-station,
.next-station {
  overflow: hidden;
  max-width: 100%;
  color: #17211b;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.next-station { color: #078d40; }

.step-direction {
  display: flex;
  align-items: center;
  gap: 9px;
}

.route-tag {
  display: inline-block;
  background: #0aa64a;
  color: #fff;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.step-arrow {
  color: #079443;
  font-size: 24px;
  font-weight: 900;
}

/* ===== Input bar ===== */
.input-bar {
  position: relative;
  background: linear-gradient(102deg, #079a42 0%, #00af4f 52%, #078e3e 100%);
  border-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px 12px;
  z-index: 10;
}

.input-wrapper {
  flex: 1;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 4px solid #087f3b;
  border-radius: 25px;
  box-shadow: 0 9px 18px rgba(0, 52, 20, 0.25);
  padding: 10px 14px 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.target-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #597263;
  letter-spacing: 0.1em;
}

.typing-target-name {
  justify-self: center;
  color: #086f38;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1;
  white-space: nowrap;
}

.input-status {
  justify-self: end;
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf6f0;
  color: #557062;
  font-size: 10px;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.unified-input {
  position: relative;
  display: block;
  width: 100%;
  height: 52px;
  overflow: hidden;
  border: 2px solid #cddbd1;
  border-radius: 15px;
  background: #f8fbf9;
  cursor: text;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.typing-box {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  overflow: hidden;
  padding: 0 18px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  pointer-events: none;
  white-space: pre;
}

.char-correct { color: #079a42; }

.char-wrong {
  color: #dc3f4b;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.char-pending { color: #8d9991; }

#input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0 18px;
  color: #173d27;
  -webkit-text-fill-color: currentColor;
  caret-color: #087f3b;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-align: left;
  font-family: inherit;
  outline: none;
}

.input-wrapper:focus-within .unified-input {
  border-color: #079a42;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(7, 154, 66, 0.12);
}

.input-wrapper.has-input .input-status,
.input-wrapper.is-moving .input-status,
.input-wrapper.is-complete .input-status {
  background: #e3f7ea;
  color: #07893e;
}

.input-wrapper.has-error { border-color: #d94a55; }

.input-wrapper.has-error .unified-input {
  border-color: #e65a64;
  background: #fff8f8;
  box-shadow: 0 0 0 4px rgba(220, 63, 75, 0.1);
}

.input-wrapper.has-error .input-status {
  background: #ffeaec;
  color: #c73541;
}

.input-wrapper.has-input #input {
  color: #079a42;
}

.input-wrapper.has-error #input {
  color: #dc3f4b;
}

.hint {
  position: absolute;
  bottom: 4px;
  right: 24px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
}

/* ===== Journey setup ===== */
.setup-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(238, 245, 239, 0.88);
  backdrop-filter: blur(12px);
}

.setup-modal.hidden { display: none; }

.setup-sheet {
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid #dbe7dd;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(26, 75, 43, 0.18);
}

.setup-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.setup-kicker {
  margin-bottom: 7px;
  color: #098c40 !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.setup-heading h1 {
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.setup-heading p {
  margin-top: 8px;
  color: #6c7b71;
  font-size: 14px;
}

.setup-train {
  display: grid;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 21px;
  background: #e9f8ee;
  font-size: 31px;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 22px;
  padding: 5px;
  border-radius: 15px;
  background: #f0f5f1;
}

.network-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.network-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #dce6de;
  border-radius: 16px;
  padding: 13px;
  background: #fff;
  color: #26362c;
  text-align: left;
  cursor: pointer;
}

.network-card.active {
  border-color: #0aa64a;
  background: #edf9f1;
  box-shadow: inset 0 0 0 1px #0aa64a;
}

.network-icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e4f5ea;
  font-size: 21px;
}

.highway-icon { background: #fff3dc; }
.network-card span:last-child { display: flex; flex-direction: column; gap: 4px; }
.network-card b { font-size: 14px; }
.network-card small { color: #718078; font-size: 10px; }

.mode-tab {
  border: 0;
  border-radius: 11px;
  padding: 11px;
  background: transparent;
  color: #637369;
  font: 700 14px/1 inherit;
  cursor: pointer;
}

.mode-tab.active {
  background: #fff;
  color: #087d3a;
  box-shadow: 0 3px 10px rgba(24, 65, 38, 0.1);
}

.setup-panel.hidden { display: none; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > span,
.option-field legend {
  color: #405047;
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  border: 1px solid #d9e4dc;
  border-radius: 12px;
  padding: 0 13px;
  background: #fbfdfb;
  color: #17211b;
  font: 600 14px/1 inherit;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: #0aa64a;
  box-shadow: 0 0 0 3px rgba(10, 166, 74, 0.12);
}

.count-control {
  display: grid;
  grid-template-columns: 42px 1fr auto 42px;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding: 8px;
  border: 1px solid #d9e4dc;
  border-radius: 15px;
  background: #fbfdfb;
}

.count-control input {
  height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 28px;
  font-weight: 850;
  text-align: right;
  box-shadow: none !important;
}

.count-control > span { color: #66776c; font-size: 14px; }
.count-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #e5f6eb;
  color: #07863d;
  font-size: 21px;
  cursor: pointer;
}

.field-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.option-field {
  margin-top: 20px;
  border: 0;
}

.option-field legend { margin-bottom: 9px; }
.option-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.option-cards label { cursor: pointer; }
.option-cards input { position: absolute; opacity: 0; pointer-events: none; }
.option-cards span {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 11px;
  border: 1px solid #dce6de;
  border-radius: 13px;
  background: #fff;
}
.option-cards input:checked + span { border-color: #0aa64a; background: #edfaf2; box-shadow: inset 0 0 0 1px #0aa64a; }
.option-cards b { color: #25372b; font-size: 13px; }
.option-cards small { color: #718078; font-size: 10px; }

.custom-fields { grid-template-columns: 1fr auto 1fr; align-items: end; margin-top: 0; }
.route-arrow { padding-bottom: 15px; color: #0a9c46; font-size: 22px; font-weight: 800; }
.custom-help { margin-top: 10px; color: #78867d; font-size: 12px; }
.pace-field { margin-top: 18px; }
.pace-field select { width: 180px; }
.setup-error { min-height: 19px; margin-top: 10px; color: #d13f3f; font-size: 12px; font-weight: 700; }

.start-journey {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 15px;
  background: #08a449;
  color: #fff;
  font: 800 16px/1 inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(8, 164, 73, 0.23);
}

.start-journey:hover { background: #078f40; }
.start-journey span { font-size: 21px; }

.complete-content { text-align: center; }
.complete-icon { display: grid; width: 58px; height: 58px; margin: 0 auto 14px; place-items: center; border-radius: 50%; background: #def6e7; color: #078d40; font-size: 28px; font-weight: 900; }
.complete-content > p { margin: 8px 0 20px; color: #647269; }
.complete-stats { display: flex; justify-content: center; gap: 24px; margin-bottom: 22px; color: #66766c; font-size: 13px; }
.complete-stats b { color: #078d40; font-size: 18px; }
.complete-actions { display: flex; justify-content: center; gap: 8px; }

.journey-stat .stat-value { min-width: 54px; }

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 22, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  color: #17211b;
  border: 1px solid #dce6dd;
  border-radius: 16px;
  padding: 28px;
  max-width: 480px;
  width: 90%;
}

.modal-content h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.modal-content ul {
  list-style: none;
  margin-bottom: 18px;
}

.modal-content li {
  padding: 8px 0;
  border-bottom: 1px solid #edf1ed;
  color: #405247;
  font-size: 14px;
  line-height: 1.5;
}

.modal-content li:last-child {
  border: none;
}

/* ===== Train marker (Leaflet divIcon) ===== */
.train-marker {
  width: 36px;
  height: 36px;
  margin-left: -18px;
  margin-top: -18px;
  position: relative;
  z-index: 600;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.train-marker .body {
  width: 30px;
  height: 30px;
  border-radius: 9px 9px 7px 7px;
  background: linear-gradient(180deg, #ffffff 0 65%, #06a64b 65% 100%);
  border: 2px solid #087c3c;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 5px 5px 8px;
  align-items: center;
  justify-content: center;
}

.train-window {
  display: block;
  height: 9px;
  border-radius: 2px;
  background: #335467;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45);
}

.train-light {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff6a6;
  bottom: 2px;
  right: 4px;
}

.train-marker .pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #4ade80;
  opacity: 0.6;
  animation: pulse 1.6s ease-out infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.station-label {
  background: rgba(255, 255, 255, 0.92);
  color: #26362c;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(38, 54, 44, 0.14);
  white-space: nowrap;
  transform: translate(-50%, -130%);
}

/* 선택 경로의 큰 역명 라벨과 겹치지 않도록 게임 중 작은 팝업은 숨긴다. */
.journey-active .leaflet-tooltip.station-label {
  display: none !important;
}

.station-marker {
  background: #fff;
  width: 10px !important;
  height: 10px !important;
  border-radius: 50%;
  border: 2px solid #4c6254;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
}

.station-marker.transfer {
  width: 12px !important;
  height: 12px !important;
  background: #fff;
  border-color: #ec4a87;
}

.journey-active .station-marker:not(.selected-route),
.journey-active .highway-marker:not(.selected-route) {
  opacity: 0.2;
  filter: grayscale(0.75);
}

.station-marker.selected-route {
  width: 17px !important;
  height: 17px !important;
  margin: -3px;
  border: 4px solid var(--route-color, #078b3f);
  background: #fff;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(8, 164, 73, 0.2), 0 4px 10px rgba(0, 56, 24, 0.28);
}

.highway-marker.selected-route {
  width: 18px;
  height: 18px;
  margin: -3px;
  border: 4px solid var(--route-color, #e48a12);
  background: #fff8e8;
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2), 0 4px 10px rgba(90, 49, 0, 0.28);
}

.route-label-icon {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

.route-stop-label {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 150px;
  padding: 5px 9px 5px 5px;
  border: 2px solid var(--route-color, #08a449);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #173222;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(21, 66, 36, 0.16);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.route-stop-label.above { transform: translate(-50%, -52px); }
.route-stop-label.below { transform: translate(-50%, 24px); }
.route-stop-label span {
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--route-color, #08a449);
  color: var(--route-text, #fff);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.route-stop-label.endpoint {
  border-color: var(--route-color, #075b30);
  background: var(--route-color, #075b30);
  color: var(--route-text, #fff);
}

.route-stop-label.completed { opacity: 0.5; }
.route-stop-label.current,
.route-stop-label.next {
  z-index: 2;
  border-color: var(--route-color, #08a449);
  font-size: 16px;
  box-shadow: 0 7px 18px rgba(8, 112, 49, 0.28);
}
.route-stop-label.current.above { transform: translate(-50%, -68px) scale(1.08); }
.route-stop-label.current.below { transform: translate(-50%, 30px) scale(1.08); }

/* 게임 중에는 현재 목적지만 이름을 크게 읽을 수 있게 둔다.
   다른 경유지는 작은 반투명 점으로 축약해 가까운 장소끼리 서로 가리지 않는다. */
.journey-active .route-stop-label {
  width: 8px;
  max-width: none;
  height: 8px;
  min-height: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: color-mix(in srgb, var(--route-color, #08a449) 72%, #ffffff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--route-color, #08a449) 22%, transparent);
  opacity: 0.3;
  transform: translate(-50%, -50%) !important;
}

/* 고속도로와 제주 여정은 전철 대신 이동수단 자체가 읽히는 큰 지도 마커를 쓴다. */
.travel-vehicle-marker {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 27px;
  line-height: 1;
  filter: drop-shadow(0 4px 9px rgba(0, 0, 0, 0.45));
  position: relative;
  isolation: isolate;
}

.travel-vehicle-marker::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0.64;
  animation: pulse 1.6s ease-out infinite;
}

.car-marker {
  background: radial-gradient(circle, #fffdf4 0 25%, #ffcc72 28% 100%);
  color: #9a4f08;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.24);
}

.horse-marker {
  width: 48px;
  height: 48px;
  background: radial-gradient(circle, #fffdf5 0 25%, #7bc999 28% 100%);
  color: #176143;
  box-shadow: 0 0 0 4px rgba(50, 151, 99, 0.25);
}

.journey-active .route-stop-label span,
.journey-active .route-stop-label strong {
  display: none;
}

.journey-active .route-stop-label.completed { opacity: 0.14; }

.journey-active .route-stop-label.next {
  width: 11px;
  height: 11px;
  opacity: 0.52;
}

.journey-active .route-stop-label.current {
  display: flex;
  width: max-content;
  max-width: 190px;
  min-height: 30px;
  padding: 6px 13px 6px 6px;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: var(--route-color, #078b3f);
  color: var(--route-text, #ffffff);
  font-size: 18px;
  font-weight: 900;
  opacity: 1;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--route-color, #078b3f) 25%, transparent), 0 8px 22px rgba(0, 31, 16, 0.52);
}

.journey-active .route-stop-label.current span {
  display: grid;
  min-width: 24px;
  height: 24px;
  background: #ffffff;
  color: #163423;
  font-size: 10px;
}

.journey-active .route-stop-label.current strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.journey-active .route-stop-label.current.above {
  transform: translate(-50%, -60px) scale(1.06) !important;
}

.journey-active .route-stop-label.current.below {
  transform: translate(-50%, 31px) scale(1.06) !important;
}

.journey-active .current-station,
.journey-active .next-station { font-size: 23px; }
.journey-active .route-tag { padding: 4px 13px; font-size: 12px; }

.highway-marker {
  width: 11px;
  height: 11px;
  border: 2px solid #0f5b3a;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transform: rotate(45deg);
}

.highway-marker.junction {
  width: 15px;
  height: 15px;
  border-color: #e58b18;
  background: #fff8e8;
}

.highway-mode .train-marker .body {
  border-color: #9a4f08;
  background: linear-gradient(180deg, #fff 0 58%, #f59e0b 58% 100%);
}

.highway-mode .train-marker .pulse { border-color: #f59e0b; }

/* Flash when typing */
@keyframes flash-correct {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.flash {
  animation: flash-correct 0.25s ease;
}

/* Success toast */
.toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(74, 222, 128, 0.95);
  color: #052e16;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(10px);
}

@media (max-width: 720px) {
  #app {
    grid-template-rows: 62px 1fr 66px 108px;
  }

  .topbar {
    padding: 0 12px;
  }

  .brand-title {
    font-size: 15px;
  }

  .brand-icon {
    width: 27px;
    height: 27px;
    font-size: 16px;
  }

  .stats {
    gap: 4px;
  }

  .stat {
    min-width: 48px;
    padding: 5px 7px;
  }

  .stat-label { font-size: 9px; }
  .stat-value { font-size: 14px; }
  .journey-stat { display: none; }
  .controls { display: none; }

  .hud {
    gap: 8px;
    padding: 7px 10px;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .step-label { font-size: 8px; }
  .current-station,
  .next-station { font-size: 16px; }
  .step-direction { gap: 5px; }
  .step-arrow { font-size: 18px; }
  .route-tag { padding: 2px 7px; font-size: 9px; }

  .input-bar { padding: 8px 10px 10px; }
  .input-wrapper { gap: 5px; padding: 7px 9px 9px; border-width: 3px; border-radius: 20px; }
  .target-label { font-size: 9px; letter-spacing: 0.04em; }
  .typing-target-name { font-size: 15px; }
  .input-status { padding: 2px 6px; font-size: 8px; }
  .unified-input { height: 43px; border-radius: 12px; }
  .typing-box,
  #input { padding: 0 13px; font-size: 19px; }
  .hint { display: none; }

  .route-stop-label { max-width: 110px; padding: 4px 7px 4px 4px; font-size: 11px; }
  .route-stop-label span { min-width: 20px; height: 20px; font-size: 9px; }
  .route-stop-label.current,
  .route-stop-label.next { font-size: 13px; }
  .journey-active .current-station,
  .journey-active .next-station { font-size: 17px; }

  .geo-study-card {
    top: 70px;
    left: 10px;
    width: min(204px, calc(100vw - 20px));
    padding: 9px 11px;
  }
  .geo-study-card strong { font-size: 17px; }
  .geo-study-card p { font-size: 10px; }
  .flight-geography-label { max-width: 122px; font-size: 11px; transform: translate(-50%, -38px); }
  .flight-geography-label strong { font-size: 12px; }

  .setup-modal { padding: 12px; align-items: end; }
  .setup-sheet { max-height: calc(100vh - 24px); padding: 23px 18px; border-radius: 24px; }
  .setup-heading h1 { font-size: 23px; }
  .setup-train { width: 52px; height: 52px; font-size: 25px; }
  .option-cards { grid-template-columns: 1fr; }
  .network-choice { grid-template-columns: 1fr; }
  .option-cards span { min-height: 52px; }
  .field-grid { grid-template-columns: 1fr; }
  .custom-fields { grid-template-columns: 1fr; }
  .route-arrow { display: none; }
  .pace-field select { width: 100%; }
  .complete-actions { flex-direction: column-reverse; }
}

/* ===== Simplified start screen ===== */
.setup-modal {
  --setup-accent: #079b45;
  --setup-accent-soft: #eaf8ef;
  --setup-border: #d7e4da;
  --setup-muted: #66766c;
  background: rgba(238, 245, 239, 0.93);
}

.setup-sheet {
  width: min(620px, 100%);
  padding: 34px 38px 36px;
  border-color: var(--setup-border);
  border-radius: 30px;
  /* 비행 모드의 밝은 기본 글자색이 흰 설정 창에 상속되지 않도록 고정한다. */
  color: #193126;
  box-shadow: 0 26px 80px rgba(25, 72, 40, 0.2);
}

.setup-heading {
  display: block;
  margin-bottom: 26px;
}

.setup-brand {
  margin-bottom: 9px;
  color: var(--setup-accent);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.setup-heading h1 {
  color: #123326;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.setup-heading p {
  margin-top: 10px;
  color: #42564b;
  font-size: 17px;
  line-height: 1.5;
}

.setup-section-label {
  margin: 0 0 10px 2px;
  color: #26372c;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.025em;
}

.network-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.network-card {
  min-height: 76px;
  justify-content: center;
  gap: 13px;
  padding: 14px 16px;
  border-width: 2px;
  border-radius: 18px;
  text-align: center;
}

.network-card.active {
  border-color: var(--setup-accent);
  background: var(--setup-accent-soft);
  box-shadow: inset 0 0 0 1px var(--setup-accent);
}

.network-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 23px;
}

.network-card > b,
.network-card .network-copy > b {
  color: #1f3025;
  font-size: 19px;
  letter-spacing: -0.03em;
}

.mode-tabs {
  gap: 8px;
  margin-bottom: 23px;
  padding: 6px;
  border-radius: 17px;
}

.mode-tab {
  min-height: 52px;
  padding: 13px 10px;
  border-radius: 12px;
  font-size: 17px;
}

.field .count-control input {
  height: auto;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 38px;
  text-align: right;
  box-shadow: none;
}

.field > span,
.option-field legend {
  color: #314239;
  font-size: 16px;
  font-weight: 850;
}

.count-control {
  grid-template-columns: 52px 1fr auto 52px;
  gap: 10px;
  min-height: 78px;
  margin-top: 3px;
  padding: 10px;
  border-width: 2px;
  border-radius: 18px;
}

.count-control input {
  font-size: 38px;
}

.count-control > span {
  font-size: 17px;
  font-weight: 750;
}

.count-btn {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  font-size: 28px;
  font-weight: 700;
}

.custom-fields {
  gap: 14px;
}

.field input,
.field select {
  height: 54px;
  border-width: 2px;
  border-radius: 14px;
  padding: 0 15px;
  font-size: 17px;
}

.custom-help {
  margin: 11px 2px 0;
  font-size: 14px;
  line-height: 1.45;
}

.advanced-options {
  margin-top: 18px;
  border: 1px solid var(--setup-border);
  border-radius: 16px;
  background: #f8fbf9;
}

.advanced-options summary {
  position: relative;
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 0 48px 0 17px;
  color: #314239;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.advanced-options summary::-webkit-details-marker { display: none; }
.advanced-options summary small { color: #829087; font-size: 12px; font-weight: 700; }
.advanced-options summary::after {
  position: absolute;
  right: 18px;
  content: "＋";
  color: var(--setup-accent);
  font-size: 22px;
  font-weight: 700;
}
.advanced-options[open] summary::after { content: "−"; }

.advanced-content {
  padding: 18px;
  border-top: 1px solid var(--setup-border);
}

.advanced-content .field-grid { margin-top: 0; }
.advanced-content .pace-field { margin-top: 18px; }
.advanced-content .pace-field select { width: 100%; }
#randomAdvanced.hidden { display: none; }

.option-cards b { font-size: 14px; }
.option-cards small { font-size: 11px; line-height: 1.3; }

.setup-error {
  min-height: 20px;
  margin-top: 9px;
  font-size: 14px;
}

.start-journey {
  height: 62px;
  border-radius: 17px;
  font-size: 20px;
  box-shadow: 0 10px 22px rgba(8, 164, 73, 0.25);
}

@media (max-width: 720px) {
  .setup-modal {
    padding: 8px;
    align-items: end;
  }

  .setup-sheet {
    max-height: calc(100vh - 16px);
    padding: 25px 18px 20px;
    border-radius: 26px 26px 18px 18px;
  }

  .setup-heading { margin-bottom: 21px; }
  .setup-heading h1 { font-size: 29px; }
  .setup-heading p { margin-top: 7px; font-size: 15px; }
  .setup-section-label { margin-bottom: 8px; font-size: 15px; }

  .network-choice {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 19px;
  }

  .network-card {
    min-height: 66px;
    gap: 9px;
    padding: 10px;
    border-radius: 15px;
  }

  .network-icon { width: 38px; height: 38px; font-size: 19px; }
  .network-card > b,
  .network-card .network-copy > b { font-size: 16px; }
  .mode-tabs { margin-bottom: 18px; }
  .mode-tab { min-height: 48px; font-size: 15px; }

  .field > span,
  .option-field legend { font-size: 15px; }

  .count-control {
    grid-template-columns: 48px 1fr auto 48px;
    min-height: 70px;
    padding: 8px;
  }

  .count-btn { width: 48px; height: 48px; }
  .field .count-control input { font-size: 34px; }
  .count-control > span { font-size: 15px; }

  .field input,
  .field select { height: 52px; font-size: 16px; }
  .advanced-options { margin-top: 14px; }
  .advanced-options summary { min-height: 50px; font-size: 15px; }
  .advanced-content { padding: 15px; }
  .start-journey { height: 58px; font-size: 19px; }
}

/* ===== Subway station wall sign ===== */
#app {
  grid-template-rows: 72px 1fr 94px 118px;
}

.hud {
  --previous-line: #079b45;
  --next-line: #079b45;
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 8px 7vw 7px;
  border-top: 1px solid #d7d4c9;
  border-bottom: 1px solid #cfccc0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px) 0 0 / 82px 100%,
    linear-gradient(180deg, #fffef9 0%, #f5f3eb 100%);
  box-shadow: inset 0 1px #fff, inset 0 -5px 10px rgba(62, 56, 42, 0.05);
}

.hud::before {
  position: absolute;
  z-index: 0;
  top: 42px;
  left: 7%;
  right: 7%;
  height: 8px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--previous-line) 0 50%, var(--next-line) 50% 100%);
  content: "";
  transform: translateY(-50%);
}

.step-station {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 25px 24px minmax(28px, auto);
  justify-items: center;
  gap: 0;
  min-width: 0;
  text-align: center;
}

.step-label {
  align-self: center;
  color: #61665f;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.current-caption {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 7px;
  min-width: 0;
}

.route-tag {
  overflow: hidden;
  max-width: 170px;
  padding: 3px 9px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
}

.station-node {
  display: block;
  align-self: center;
  width: 16px;
  height: 16px;
  border: 4px solid var(--next-line);
  border-radius: 50%;
  background: #fffef9;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
}

.step-previous .station-node { border-color: var(--previous-line); }
.step-next .station-node { border-color: var(--next-line); }

.current-node {
  width: 24px;
  height: 24px;
  border-width: 7px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.86), 0 2px 6px rgba(0, 0, 0, 0.25);
}

.prev-station,
.current-station,
.next-station {
  align-self: start;
  overflow: hidden;
  max-width: 100%;
  padding: 2px 12px 0;
  color: #222824;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-station {
  color: #111814;
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 900;
}

.next-station { color: var(--next-line); }
.prev-station.long-name,
.next-station.long-name { font-size: 13px; }
.current-station.long-name { font-size: 17px; }

.journey-active .current-station,
.journey-active .next-station {
  font-size: inherit;
}

.journey-active .current-station { font-size: clamp(18px, 2.2vw, 25px); }
.journey-active .next-station { font-size: clamp(14px, 1.7vw, 18px); }
.journey-active .current-station.long-name { font-size: 17px; }
.journey-active .next-station.long-name { font-size: 13px; }

@media (max-width: 720px) {
  #app {
    grid-template-rows: 62px 1fr 86px 108px;
  }

  .hud {
    padding: 6px 7px 5px;
  }

  .hud::before {
    top: 37px;
    left: 5%;
    right: 5%;
    height: 7px;
  }

  .step-station {
    grid-template-rows: 21px 21px minmax(27px, auto);
  }

  .step-label { font-size: 10px; }
  .current-caption { gap: 4px; }
  .route-tag { max-width: 70px; padding: 2px 6px; font-size: 8px; }
  .station-node { width: 14px; height: 14px; border-width: 3px; }
  .current-node { width: 21px; height: 21px; border-width: 6px; }

  .prev-station,
  .next-station,
  .journey-active .next-station {
    padding: 3px 5px 0;
    font-size: 14px;
  }

  .current-station,
  .journey-active .current-station {
    padding: 2px 5px 0;
    font-size: 18px;
  }

  .prev-station.long-name,
  .next-station.long-name,
  .journey-active .next-station.long-name { font-size: 11px; }
  .current-station.long-name,
  .journey-active .current-station.long-name { font-size: 12px; }
}

/* ===== Four-stop target-centered station sign ===== */
#app {
  grid-template-rows: 72px 1fr 112px 106px;
}

.hud {
  --following-line: var(--next-line);
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  padding: 8px 5vw 9px;
}

.hud::before {
  left: 6%;
  right: 5%;
  height: 9px;
  background: linear-gradient(
    90deg,
    var(--previous-line) 0 50%,
    var(--next-line) 50% 70%,
    var(--following-line) 70% 100%
  );
}

.step-station {
  grid-template-rows: 25px 24px minmax(46px, auto);
}

.step-current { z-index: 2; }

.step-label {
  font-size: 12px;
  white-space: nowrap;
}

.current-caption {
  justify-content: center;
  max-width: 100%;
}

.step-after-next .station-node { border-color: var(--following-line); }

.current-node {
  width: 25px;
  height: 25px;
  border: 7px solid transparent;
  background:
    linear-gradient(#fffef9, #fffef9) padding-box,
    linear-gradient(90deg, var(--previous-line) 0 50%, var(--next-line) 50% 100%) border-box;
}

.prev-station,
.current-station,
.next-station,
.after-next-station {
  align-self: start;
  overflow: hidden;
  max-width: 100%;
  padding: 5px 9px 0;
  color: #222824;
  font-size: clamp(13px, 1.45vw, 17px);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-station,
.journey-active .current-station {
  position: relative;
  min-width: min(150px, 92%);
  max-width: 125%;
  margin-top: 2px;
  padding: 4px 22px 6px;
  overflow: visible;
  border: 3px solid var(--previous-line);
  border-radius: 999px;
  background: #fff;
  color: #111814;
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 950;
  box-shadow: 0 3px 0 var(--next-line), 0 6px 14px rgba(31, 41, 35, 0.16);
}

.next-station { color: var(--next-line); }
.after-next-station { color: var(--following-line); }

.prev-station.long-name,
.next-station.long-name,
.after-next-station.long-name,
.journey-active .next-station.long-name { font-size: 12px; }

.current-station.long-name,
.journey-active .current-station.long-name { font-size: 20px; }

.journey-active .next-station { font-size: clamp(13px, 1.45vw, 17px); }

.input-heading { grid-template-columns: minmax(0, 1fr) auto; }
.typing-target-name[hidden] { display: none; }

@media (max-width: 720px) {
  #app {
    grid-template-rows: 62px 1fr 100px 102px;
  }

  .hud {
    padding: 6px 7px 7px;
  }

  .hud::before {
    top: 36px;
    left: 4%;
    right: 3%;
    height: 7px;
  }

  .step-station {
    grid-template-rows: 20px 21px minmax(42px, auto);
  }

  .step-label { font-size: 8px; }
  .current-caption { gap: 2px; }
  .route-tag,
  .journey-active .route-tag { max-width: 48px; padding: 2px 4px; font-size: 7px; }
  .station-node { width: 13px; height: 13px; border-width: 3px; }
  .current-node { width: 21px; height: 21px; border-width: 6px; }

  .prev-station,
  .next-station,
  .after-next-station,
  .journey-active .next-station {
    padding: 5px 3px 0;
    font-size: 12px;
  }

  .current-station,
  .journey-active .current-station {
    min-width: 66px;
    max-width: 135%;
    padding: 4px 9px 5px;
    font-size: 20px;
    box-shadow: 0 2px 0 var(--next-line), 0 4px 10px rgba(31, 41, 35, 0.16);
  }

  .prev-station.long-name,
  .next-station.long-name,
  .after-next-station.long-name,
  .journey-active .next-station.long-name { font-size: 9px; }

  .current-station.long-name,
  .journey-active .current-station.long-name { font-size: 13px; }
}

/* ===== Global Flight mission: virtual-earth navigation ===== */
.flight-icon {
  background: radial-gradient(circle at 30% 22%, #d7fbff, #61d8ff 45%, #1574bd);
  color: #04223e;
}

.flight-options {
  margin: 2px 0 16px;
}

.flight-help {
  margin: 9px 2px 0;
  color: #5b6b72;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.flight-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 2px 0 14px;
  padding: 5px;
  border-radius: 15px;
  background: #eaf5fb;
}

.flight-mode-tabs.hidden { display: none; }

.flight-mode-tab {
  border: 0;
  border-radius: 11px;
  padding: 11px;
  background: transparent;
  color: #527084;
  font: 800 14px/1 inherit;
  cursor: pointer;
}

.flight-mode-tab.active {
  background: #fff;
  color: #086897;
  box-shadow: 0 3px 10px rgba(9, 92, 137, 0.14);
}

.world-tour-options {
  margin: 2px 0 16px;
  padding: 15px;
  border: 1px solid #b8e5f5;
  border-radius: 16px;
  background: linear-gradient(135deg, #edfaff, #f9fdff);
}

.world-tour-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.world-tour-title span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #087bb0;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.world-tour-title strong {
  color: #0a4e70;
  font-size: 17px;
}

.world-tour-options p {
  margin: 9px 0 11px;
  color: #416373;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.world-tour-options p b { color: #087bb0; }

.world-tour-continent-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.world-tour-continent-list span {
  padding: 5px 7px;
  border: 1px solid #b9e2ef;
  border-radius: 999px;
  background: #fff;
  color: #1b627f;
  font-size: 10px;
  font-weight: 800;
}

.flight-airspace-marker {
  width: 10px;
  height: 10px;
  border: 2px solid #c6f7ff;
  border-radius: 50%;
  background: #159de0;
  box-shadow: 0 0 0 3px rgba(26, 192, 255, 0.24), 0 0 14px rgba(71, 211, 255, 0.9);
}

.flight-airspace-marker.selected-route {
  width: 18px;
  height: 18px;
  margin: -4px;
  border: 4px solid var(--route-color, #45d7ff);
  background: #e9fcff;
  box-shadow: 0 0 0 5px rgba(69, 215, 255, 0.22), 0 0 22px rgba(69, 215, 255, 0.86);
}

.flight-airspace-marker.flight-landmark-marker {
  width: 15px;
  height: 15px;
  border-color: #fff3a2;
  background: #159de0;
  box-shadow: 0 0 0 4px rgba(255, 224, 94, 0.28), 0 0 16px rgba(255, 232, 110, 0.9);
}

.flight-landmark-highlight {
  filter: drop-shadow(0 0 9px rgba(255, 238, 137, 0.94));
}

.flight-water-marker {
  width: 13px;
  height: 13px;
  border: 2px solid #b9fbff;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #81efff 0 42%, #0a80ca 43% 100%);
  box-shadow: 0 0 0 3px rgba(29, 205, 255, 0.23), 0 0 16px rgba(73, 220, 255, 0.95);
  transform: rotate(45deg);
}

.flight-water-marker.selected-route {
  width: 20px;
  height: 20px;
  margin: -4px;
  border: 4px solid #8cf4ff;
  background: linear-gradient(180deg, #d9fdff 0 42%, #0b91dd 43% 100%);
  box-shadow: 0 0 0 6px rgba(74, 221, 255, 0.24), 0 0 28px rgba(93, 234, 255, 0.96);
}

.flight-country-highlight,
.flight-water-highlight {
  filter: drop-shadow(0 0 8px rgba(89, 229, 255, 0.86));
}

.flight-geography-label {
  position: absolute;
  left: 0;
  display: grid;
  gap: 2px;
  width: max-content;
  max-width: 160px;
  padding: 6px 10px;
  border: 1px solid rgba(194, 249, 255, 0.96);
  border-radius: 12px;
  background: rgba(3, 37, 68, 0.9);
  color: #effeff;
  font-size: 13px;
  line-height: 1.05;
  text-align: center;
  transform: translate(-50%, -44px);
  box-shadow: 0 7px 18px rgba(0, 20, 44, 0.42), 0 0 16px rgba(88, 223, 255, 0.3);
  pointer-events: none;
}

.flight-geography-label span {
  color: #8eeeff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.flight-geography-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 900;
}

.geo-study-card {
  position: fixed;
  top: 88px;
  left: 16px;
  z-index: 14;
  display: grid;
  width: min(230px, calc(100vw - 32px));
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(164, 242, 255, 0.82);
  border-radius: 15px;
  background: rgba(3, 29, 56, 0.88);
  box-shadow: 0 9px 24px rgba(0, 13, 31, 0.32), inset 0 0 20px rgba(48, 196, 255, 0.1);
  color: #f1fdff;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.geo-study-card.hidden { display: none; }
.geo-study-category { color: #86ecff; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; }
.geo-study-card strong { font-size: 20px; font-weight: 900; letter-spacing: -0.04em; }
.geo-study-card > span:not(.geo-study-category) { color: #d8f8ff; font-size: 12px; font-weight: 750; }
.geo-study-card p { margin: 2px 0 0; color: #b5d9e6; font-size: 11px; font-weight: 650; line-height: 1.45; }

/* 제주 여행: 자연·명승·역사문화 장소만 기본으로 표시한다. */
.jeju-marker {
  width: 14px;
  height: 14px;
  border: 3px solid #f7fff6;
  border-radius: 50%;
  background: #218d66;
  box-shadow: 0 0 0 3px rgba(28, 113, 80, 0.26), 0 2px 7px rgba(14, 65, 44, 0.42);
  transition: opacity 0.2s ease, filter 0.2s ease, transform 0.2s ease;
}

.jeju-marker.heritage,
.jeju-marker.history { background: #9d6040; }
.jeju-marker.oreum { background: #a86d31; }
.jeju-marker.sponsored { background: #c7792d; }

.journey-active .jeju-marker:not(.selected-route) {
  opacity: 0.12;
  filter: grayscale(0.8);
}

.jeju-marker.selected-route {
  width: 19px;
  height: 19px;
  margin: -3px;
  border: 4px solid var(--route-color, #15835c);
  background: #fffbe9;
  opacity: 1;
  box-shadow: 0 0 0 5px rgba(34, 150, 103, 0.22), 0 5px 12px rgba(10, 67, 44, 0.35);
}

.jeju-marker.current-route {
  transform: scale(1.18);
  filter: drop-shadow(0 0 7px rgba(255, 247, 179, 0.96));
}

.jeju-study-card {
  position: fixed;
  top: 88px;
  left: 16px;
  z-index: 14;
  display: grid;
  width: min(238px, calc(100vw - 32px));
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 255, 201, 0.88);
  border-radius: 15px;
  background: rgba(7, 67, 55, 0.9);
  color: #f7fff4;
  box-shadow: 0 9px 24px rgba(0, 50, 37, 0.32), inset 0 0 20px rgba(123, 222, 154, 0.12);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.jeju-study-card.hidden { display: none; }
.jeju-study-category { color: #d9ffad; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; }
.jeju-study-card strong { font-size: 20px; font-weight: 900; letter-spacing: -0.04em; }
.jeju-study-card > span:not(.jeju-study-category) { color: #d9f7e8; font-size: 12px; font-weight: 750; }
.jeju-study-card p { margin: 2px 0 0; color: #c0e5d3; font-size: 11px; font-weight: 650; line-height: 1.45; }

.jeju-mode .topbar {
  background: rgba(4, 54, 48, 0.96);
  border-bottom-color: rgba(187, 246, 193, 0.32);
  color: #f5fff5;
}
.jeju-mode .brand-icon { background: linear-gradient(135deg, #48c58f, #11725d); color: #fff; }
.jeju-mode .stat { background: rgba(245, 255, 245, 0.96); }
.jeju-mode .hud,
.jeju-mode .input-bar { background: rgba(3, 55, 48, 0.96); }
.jeju-mode .hud {
  border-color: rgba(207, 255, 222, 0.36);
  box-shadow: inset 0 1px rgba(234, 255, 238, 0.16), inset 0 -5px 12px rgba(0, 16, 12, 0.24);
}
.jeju-mode .hud::before {
  border-color: rgba(229, 255, 238, 0.5);
  box-shadow: 0 0 9px rgba(80, 244, 173, 0.2);
}
.jeju-mode .hud .step-label {
  color: #baf8d4;
  text-shadow: 0 1px 2px rgba(0, 29, 20, 0.92);
}
.jeju-mode .hud .prev-station,
.jeju-mode .hud .next-station,
.jeju-mode .hud .after-next-station {
  color: #f1fff5 !important;
  text-shadow: 0 1px 3px rgba(0, 29, 20, 0.95);
}
.jeju-mode .hud .station-node { background: #f7fff8; }
.jeju-mode .route-tag { background: #1da673; color: #f7fff4; }
.jeju-mode .station-label.jeju-label {
  border-color: rgba(7, 74, 59, 0.9);
  background: rgba(250, 255, 246, 0.96);
  color: #0b4535;
  font-weight: 850;
}

.flight-airport-marker {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(190, 244, 255, 0.9);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(178, 247, 255, 0.98) 0 9%, rgba(34, 174, 232, 0.62) 12% 27%, rgba(5, 39, 75, 0.84) 30% 100%);
  color: #f2feff;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 0 0 5px rgba(87, 208, 255, 0.1), 0 0 22px rgba(41, 184, 245, 0.6);
}

.flight-marker {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(198, 249, 255, 0.92);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 251, 255, 0.95) 0 12%, rgba(62, 201, 255, 0.68) 14% 33%, rgba(4, 37, 70, 0.86) 35% 100%);
  color: #fff;
  font-size: 23px;
  filter: drop-shadow(0 0 10px rgba(65, 213, 255, 0.86));
  text-shadow: 0 1px 4px #00213e;
  transform: rotate(-18deg);
}

body.flight-mode {
  background: #020a17;
  color: #e9f8ff;
}

.flight-mode #app {
  background:
    radial-gradient(circle at 50% 34%, rgba(16, 90, 143, 0.22), transparent 29%),
    linear-gradient(180deg, #07182b 0%, #020a17 100%);
}

.flight-mode .topbar {
  border-bottom-color: rgba(120, 215, 255, 0.22);
  background: rgba(3, 16, 35, 0.94);
  color: #e7f8ff;
  box-shadow: 0 8px 24px rgba(0, 8, 22, 0.22);
}

.flight-mode .brand-icon {
  background: linear-gradient(145deg, #6ce8ff, #1e76c9);
  color: #041b34;
  box-shadow: 0 0 20px rgba(78, 214, 255, 0.44);
}

.flight-mode .stat-label { color: #8eb7c9; }
.flight-mode .stat-value { color: #e8fbff; }
.flight-mode .stat-value.accent { color: #71e4ff; }
.flight-mode .icon-btn {
  border-color: rgba(128, 222, 255, 0.3);
  background: rgba(16, 58, 89, 0.56);
  color: #dff8ff;
}

.flight-mode .leaflet-tile-pane {
  filter: brightness(0.82) contrast(1.14) saturate(0.86);
}

.flight-mode .leaflet-control-zoom a,
.flight-mode .leaflet-control-attribution {
  border-color: rgba(130, 220, 255, 0.18) !important;
  background: rgba(3, 18, 38, 0.86) !important;
  color: #a9dce9 !important;
}

.flight-mode .leaflet-tooltip.flight-label,
.flight-mode .leaflet-tooltip.flight-airport-label {
  border: 1px solid rgba(136, 229, 255, 0.52);
  border-radius: 8px;
  background: rgba(2, 21, 42, 0.9);
  color: #e5fbff;
  font-weight: 800;
  box-shadow: 0 5px 15px rgba(0, 3, 14, 0.4);
}

.flight-mode .leaflet-tooltip::before { border-top-color: rgba(2, 21, 42, 0.9); }

.flight-mode .hud {
  --previous-line: #45d7ff;
  --next-line: #45d7ff;
  --following-line: #45d7ff;
  border-color: rgba(118, 215, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(79, 205, 255, 0.07) 1px, transparent 1px) 0 0 / 82px 100%,
    linear-gradient(180deg, rgba(5, 30, 53, 0.98), rgba(2, 16, 34, 0.98));
  box-shadow: inset 0 1px rgba(214, 250, 255, 0.09), inset 0 -12px 22px rgba(0, 3, 15, 0.24);
}

.flight-mode .hud::before { border-color: rgba(182, 242, 255, 0.26); }
.flight-mode .step-label { color: #89b2c4; }
.flight-mode .prev-station,
.flight-mode .current-station,
.flight-mode .next-station,
.flight-mode .after-next-station { color: #ccecf7; }
.flight-mode .next-station { color: #71e4ff; }
.flight-mode .after-next-station { color: #9ac7ff; }
.flight-mode .current-station,
.flight-mode .journey-active .current-station {
  border-color: #45d7ff;
  background: #062946;
  color: #f0fdff;
  box-shadow: 0 3px 0 #1e86d2, 0 6px 16px rgba(0, 0, 0, 0.4);
}
.flight-mode .station-node,
.flight-mode .current-node { background: #062946; }
.flight-mode .route-tag { border-color: rgba(213, 249, 255, 0.56); }

.flight-mode .input-bar {
  border-top-color: rgba(112, 214, 255, 0.24);
  background: linear-gradient(180deg, rgba(4, 28, 49, 0.98), rgba(2, 14, 31, 0.98));
}

.flight-mode .input-heading { color: #d9f7ff; }
.flight-mode .typing-instruction,
.flight-mode .input-status { color: #88b9ce; }
.flight-mode .input-wrapper {
  border-color: rgba(118, 219, 255, 0.48);
  background: rgba(5, 35, 60, 0.9);
  box-shadow: inset 0 0 0 1px rgba(235, 253, 255, 0.06), 0 0 18px rgba(41, 184, 245, 0.1);
}

/* 위성 지도 위에서도 입력한 한글이 사라지지 않도록 입력면을 명확히 분리한다. */
.flight-mode #input {
  background: #062b49;
  color: #f5fdff;
  caret-color: #75ebff;
}

.flight-mode #input::placeholder { color: rgba(210, 244, 255, 0.62); }
.flight-mode #input { color: #f0fdff; }
.flight-mode .char-pending { color: rgba(194, 234, 246, 0.45); }
.flight-mode .char-correct { color: #66ecb5; }

.flight-mode .journey-countdown {
  background: radial-gradient(circle, rgba(33, 189, 255, 0.24), rgba(1, 9, 26, 0.34) 48%, rgba(0, 4, 13, 0.7) 100%);
}

.flight-mode .journey-countdown-card {
  border-color: rgba(137, 230, 255, 0.76);
  background: rgba(2, 27, 53, 0.82);
  box-shadow: 0 18px 60px rgba(0, 5, 19, 0.7), 0 0 42px rgba(46, 191, 255, 0.2);
}

.flight-mode .route-stop-label.flight-stop-label {
  border-color: rgba(149, 234, 255, 0.86);
  background: rgba(2, 27, 52, 0.94);
  color: #e9fbff;
  box-shadow: 0 5px 16px rgba(0, 4, 17, 0.58), 0 0 16px rgba(64, 206, 255, 0.16);
}

.flight-mode .route-stop-label.flight-stop-label span {
  background: var(--route-color, #45d7ff);
  color: #04243d;
}

.flight-mode .route-stop-label.flight-stop-label.completed { opacity: 0.46; }
.flight-mode .route-stop-label.flight-stop-label.current { box-shadow: 0 0 0 4px rgba(69, 215, 255, 0.18), 0 5px 16px rgba(0, 4, 17, 0.58); }

.flight-mode .mode-tabs { display: none !important; }

/* 밝은 통계 카드 위에서는 값도 어두운 색으로 고정해 숫자가 사라지지 않게 한다. */
.flight-mode .stat {
  border-color: #c7e3ee;
  background: #f8fdff;
  box-shadow: 0 3px 12px rgba(4, 62, 91, 0.16);
}

.flight-mode .stat-label { color: #376b83; }
.flight-mode .stat-value { color: #075b82; }
.flight-mode .stat-value.accent { color: #007b5d; }

/* 세계일주에서는 현재 입력 대상만 이름을 읽을 수 있게 크게 표시한다.
   나머지 경유지는 텍스트가 아닌 흐릿한 점으로 남겨 지도 겹침을 없앤다. */
.flight-mode.journey-active .route-stop-label.flight-stop-label {
  width: 9px;
  max-width: none;
  height: 9px;
  min-height: 0;
  padding: 0;
  border: 2px solid rgba(219, 249, 255, 0.8);
  border-radius: 50%;
  background: rgba(7, 104, 156, 0.6);
  box-shadow: 0 0 0 3px rgba(74, 214, 255, 0.13);
  opacity: 0.3;
  transform: translate(-50%, -50%) !important;
}

.flight-mode.journey-active .route-stop-label.flight-stop-label span,
.flight-mode.journey-active .route-stop-label.flight-stop-label strong {
  display: none;
}

.flight-mode.journey-active .route-stop-label.flight-stop-label.completed {
  opacity: 0.16;
}

.flight-mode.journey-active .route-stop-label.flight-stop-label.next {
  width: 12px;
  height: 12px;
  border-color: rgba(172, 239, 255, 0.92);
  background: rgba(21, 157, 214, 0.82);
  opacity: 0.58;
}

.flight-mode.journey-active .route-stop-label.flight-stop-label.current {
  display: flex;
  width: max-content;
  max-width: 180px;
  min-height: 28px;
  padding: 6px 12px 6px 6px;
  border: 2px solid #d9fbff;
  border-radius: 999px;
  background: #063e67;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  opacity: 1;
  box-shadow: 0 0 0 5px rgba(81, 221, 255, 0.24), 0 8px 22px rgba(0, 32, 66, 0.52);
}

.flight-mode.journey-active .route-stop-label.flight-stop-label.current span {
  display: grid;
  min-width: 24px;
  height: 24px;
  background: #baf6ff;
  color: #063e67;
  font-size: 10px;
}

.flight-mode.journey-active .route-stop-label.flight-stop-label.current strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flight-mode.journey-active .route-stop-label.flight-stop-label.current.above {
  transform: translate(-50%, -58px) !important;
}

.flight-mode.journey-active .route-stop-label.flight-stop-label.current.below {
  transform: translate(-50%, 30px) !important;
}

.flight-mode.journey-active .flight-airspace-marker.selected-route,
.flight-mode.journey-active .flight-water-marker.selected-route {
  width: 7px;
  height: 7px;
  margin: 0;
  border-width: 2px;
  box-shadow: 0 0 0 2px rgba(230, 252, 255, 0.3);
  opacity: 0.32;
}

.flight-mode.journey-active .flight-water-marker.selected-route {
  transform: rotate(45deg);
}

.flight-mode.journey-active .flight-airspace-marker.selected-route.completed-route,
.flight-mode.journey-active .flight-water-marker.selected-route.completed-route {
  opacity: 0.16;
}

.flight-mode.journey-active .flight-airspace-marker.selected-route.next-route,
.flight-mode.journey-active .flight-water-marker.selected-route.next-route {
  width: 12px;
  height: 12px;
  margin: -2px;
  opacity: 0.62;
}

.flight-mode.journey-active .flight-airspace-marker.selected-route.current-route,
.flight-mode.journey-active .flight-water-marker.selected-route.current-route {
  width: 22px;
  height: 22px;
  margin: -7px;
  border-width: 4px;
  border-color: #e6fdff;
  background: #0ea9de;
  box-shadow: 0 0 0 6px rgba(78, 221, 255, 0.29), 0 0 26px rgba(51, 213, 255, 0.96);
  opacity: 1;
}

.flight-mode.journey-active .flight-water-marker.selected-route.current-route {
  transform: rotate(45deg);
}

@media (max-width: 720px) {
  .flight-mode .route-stop-label.flight-stop-label { font-size: 11px; }
  .flight-mode .flight-help { font-size: 11px; }
}

/* ===== Flight globe refresh: bright satellite geography, restrained glass HUD ===== */
.flight-mode #map {
  background: #a9d7ed;
}

.flight-mode .leaflet-tile-pane {
  filter: none;
}

.flight-mode .leaflet-control-zoom a,
.flight-mode .leaflet-control-attribution {
  border-color: rgba(13, 56, 92, 0.25) !important;
  background: rgba(248, 253, 255, 0.86) !important;
  color: #164968 !important;
  box-shadow: 0 3px 12px rgba(24, 78, 108, 0.16);
}

.flight-mode .leaflet-tooltip.flight-airport-label {
  border: 1px solid rgba(16, 119, 177, 0.3);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.96);
  color: #0b4b70;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 5px 16px rgba(18, 81, 115, 0.22);
}

.flight-mode .leaflet-tooltip.flight-airport-label::before {
  border-top-color: rgba(255, 255, 255, 0.96);
}

.flight-mode .flight-airport-marker {
  border-color: #fff;
  background: radial-gradient(circle, #fff 0 11%, #7ee8ff 13% 29%, #0879bb 31% 100%);
  color: #00395e;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.48), 0 4px 16px rgba(11, 108, 165, 0.42);
}

.flight-mode .flight-airspace-marker {
  border-color: #fff;
  background: #13aee6;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.72), 0 0 14px rgba(0, 135, 206, 0.65);
}

.flight-mode.journey-active .flight-airspace-marker:not(.selected-route) {
  opacity: 0;
}

.flight-mode .flight-marker {
  border-color: #fff;
  background: radial-gradient(circle, #fff 0 12%, #89eaff 14% 33%, #0876b8 35% 100%);
  color: #013f65;
  filter: drop-shadow(0 3px 10px rgba(0, 93, 156, 0.6));
  text-shadow: none;
}

.flight-mode .hud {
  border-color: rgba(205, 242, 255, 0.64);
  background:
    linear-gradient(90deg, rgba(145, 222, 255, 0.1) 1px, transparent 1px) 0 0 / 82px 100%,
    linear-gradient(180deg, rgba(3, 43, 79, 0.82), rgba(4, 31, 63, 0.78));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 -8px 28px rgba(3, 53, 87, 0.16);
  backdrop-filter: blur(14px) saturate(1.15);
}

.flight-mode .hud::before {
  border-color: rgba(223, 250, 255, 0.52);
}

.flight-mode .step-label { color: #c9eaf7; }
.flight-mode .prev-station,
.flight-mode .current-station,
.flight-mode .next-station,
.flight-mode .after-next-station { color: #f4fdff; }
.flight-mode .next-station { color: #66e8ff; }
.flight-mode .after-next-station { color: #b9e6ff; }

.flight-mode .current-station,
.flight-mode .journey-active .current-station {
  border-color: #b7f5ff;
  background: rgba(4, 75, 119, 0.86);
  box-shadow: 0 3px 0 #29b8e9, 0 6px 16px rgba(0, 53, 86, 0.28);
}

.flight-mode .input-bar {
  border-top-color: rgba(206, 244, 255, 0.48);
  background: linear-gradient(180deg, rgba(6, 50, 85, 0.86), rgba(4, 32, 65, 0.9));
  box-shadow: 0 -8px 30px rgba(0, 68, 105, 0.14);
  backdrop-filter: blur(14px) saturate(1.1);
}

.flight-mode .input-wrapper {
  border-color: rgba(153, 237, 255, 0.92);
  background: rgba(4, 37, 70, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13), 0 0 18px rgba(57, 197, 243, 0.18);
}

.flight-mode .journey-countdown {
  background: radial-gradient(circle, rgba(69, 194, 255, 0.18), rgba(11, 65, 103, 0.16) 46%, rgba(3, 33, 59, 0.08) 78%);
}

.flight-mode .journey-countdown-card {
  border-color: rgba(216, 250, 255, 0.92);
  background: rgba(5, 68, 113, 0.88);
  box-shadow: 0 18px 54px rgba(8, 69, 108, 0.3), 0 0 34px rgba(72, 207, 255, 0.32);
}

.flight-mode .route-stop-label.flight-stop-label {
  border-color: rgba(242, 253, 255, 0.94);
  background: rgba(4, 73, 118, 0.9);
  color: #f5fdff;
  box-shadow: 0 4px 14px rgba(0, 66, 104, 0.32);
}

.flight-mode .route-stop-label.flight-stop-label span {
  background: #dffaff;
  color: #075b8e;
}

/* 실제 구형 지구본은 비행 모드에서만 Leaflet 지도 위에 교체해 표시한다. */
#flightGlobe {
  display: none;
  grid-row: 2;
  grid-column: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 52%, rgba(75, 186, 244, 0.22), transparent 42%),
    linear-gradient(180deg, #061c38, #0d5d86 58%, #072a4f);
}

.flight-mode.flight-globe-ready #flightGlobe { display: block; }
.flight-mode.flight-globe-ready #map {
  visibility: hidden;
  pointer-events: none;
}
.flight-mode.flight-globe-ready #map .leaflet-control-container { display: none; }

#flightGlobe .flight-globe-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(64vh, 62vw);
  height: min(64vh, 62vw);
  overflow: hidden;
  border: 2px solid rgba(206, 248, 255, 0.9);
  border-radius: 50%;
  box-shadow:
    0 0 0 7px rgba(76, 194, 246, 0.12),
    0 0 62px rgba(41, 167, 232, 0.7),
    inset 0 0 55px rgba(1, 23, 55, 0.36);
  transform: translate(-50%, -50%);
}

#flightGlobe .leaflet-control-container { display: none; }

.globe-point {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.globe-point-airport {
  flex-direction: column;
  gap: 1px;
  min-width: 47px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #075380;
  font-size: 10px;
  line-height: 1.05;
  box-shadow: 0 4px 13px rgba(0, 38, 75, 0.34);
}

.globe-point-airport b { font-size: 15px; line-height: 1; }
.globe-point-airport span { font-weight: 800; }

.globe-point-checkpoint,
.globe-point-start {
  gap: 5px;
  padding: 4px 7px 4px 4px;
  border: 1px solid rgba(225, 251, 255, 0.96);
  border-radius: 999px;
  background: rgba(3, 71, 115, 0.9);
  color: #f8feff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 3px 11px rgba(0, 36, 71, 0.42);
}

.globe-point-checkpoint i,
.globe-point-start i {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: #66dcff;
  color: #053b62;
  font-size: 10px;
  font-style: normal;
}

.globe-point-plane {
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0787c8;
  color: #fff;
  font-size: 19px;
  filter: drop-shadow(0 3px 9px rgba(0, 48, 93, 0.54));
  transform: translate(-50%, -50%) rotate(-18deg);
}

@media (max-width: 720px) {
  #flightGlobe .flight-globe-sphere {
    width: min(84vw, 54vh);
    height: min(84vw, 54vh);
  }
  .globe-point-airport { font-size: 8px; }
  .globe-point-airport b { font-size: 12px; }
  .globe-point-checkpoint,
  .globe-point-start { font-size: 10px; }
}

.flight-mode.flight-globe-ready .hud,
.flight-mode.flight-globe-ready .input-bar {
  position: relative;
  z-index: 20;
}
