* { box-sizing: border-box; }
html, body {
  width: 100%; height: 100%; margin: 0; overflow: hidden;
  background: #091525; color: #f4f0e7; font: 14px system-ui; color-scheme: dark;
  --control-bg: #101c2ce8; --panel-bg: #101c2cf5; --focus: #f5bf77;
}
canvas { width: 100vw; height: 100dvh; display: block; touch-action: none; }
.destinations { display: grid; gap: 5px; }
.switcher {
  display: flex; min-width: 0; border: 1px solid #ffffff42; border-radius: 5px;
  background: #ffffff08;
}
.switcher select, .switcher button { appearance: none; background: transparent; border: 0; cursor: pointer; }
.switcher select { flex: 1; appearance: auto; min-width: 0; padding: 0 4px; border-inline: 1px solid #ffffff24; text-overflow: ellipsis; }
.switcher option, .switcher optgroup { background: #101c2c; color: #f0f1ed; }
#flight-controls .switcher button { flex: 0 0 var(--target); padding: 0; font-size: 22px; line-height: 1; }
.switcher button:hover:enabled { background: #ffffff18; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#status { margin: 0; color: #d7dfe3; font-size: 12px; }
#flight-controls #enter-vr { color: #1b1c1f; background: #ecd8af; }

:root {
  --corner-top: max(6px, env(safe-area-inset-top));
  --corner-right: max(6px, env(safe-area-inset-right));
  --target: 36px;
}
#flight-controls button, #flight-controls a, #flight-controls select {
  box-sizing: border-box;
  min-height: var(--target);
  color: inherit;
  font: 600 13px/1.2 system-ui, sans-serif;
}
.flight-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 5px;
  border: 1px solid #ffffff45;
  border-radius: 5px;
  color: inherit;
  background: var(--control-bg);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
#flight-controls {
  position: fixed;
  z-index: 4;
  top: var(--corner-top);
  right: var(--corner-right);
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  width: min(16rem, calc(100vw - var(--corner-right) - max(6px, env(safe-area-inset-left))));
  max-height: calc(100dvh - var(--corner-top) - max(6px, env(safe-area-inset-bottom)));
  padding: 6px;
  border: 1px solid #ffffff3d;
  border-radius: 7px;
  background: var(--panel-bg);
  color: inherit;
}
.flight-options { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.flight-options :focus-visible { outline-offset: -2px; }
.flight-options #status:not([hidden]) { margin-top: 5px; }
.flight-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 4px; }
.flight-actions > * { flex: 1; }
.flight-action:hover { border-color: var(--focus); }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
button:disabled, select:disabled { opacity: .65; cursor: default; }
body.xr #flight-controls, html.study-capture #flight-controls { display: none; }
@media (pointer: coarse) { :root { --target: 44px; } }

#city-load{position:fixed;z-index:3;left:50%;top:45%;transform:translate(-50%,-50%);width:min(270px,82vw);padding:15px 18px;border:1px solid #bfc7d942;border-radius:6px;background:#151b25f2;color:#f3eee5;font:15px system-ui,sans-serif}
#city-load[hidden],#city-load-bar[hidden],#city-load-retry[hidden]{display:none}
.city-load-line{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
#city-load-percent{font-variant-numeric:tabular-nums;color:#e6d7bc}
#city-load-bar{display:block;width:100%;height:6px;accent-color:#e2bf87;margin-top:12px}
#city-load-retry{margin-top:12px;background:#383f48;color:inherit;border:1px solid #aeb8c5;border-radius:4px;padding:5px 11px;font:inherit;cursor:pointer}
