:root {
  color-scheme: dark;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color: #e9f7f5;
  background: #070614;
  --amber: #f6ba83;
  --cyan: #a4ddd8;
  --muted: #aec4c9;
  --line: #b9ece438;
  --edge: clamp(18px, 4.4vw, 76px);
  --top: max(0px, env(safe-area-inset-top));
  --bottom: max(0px, env(safe-area-inset-bottom));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible { outline: 2px solid #ecfff7; outline-offset: 4px; }
a { color: var(--cyan); text-underline-offset: 4px; }
#city { width: 100%; height: 100%; position: fixed; inset: 0; display: block; touch-action: none; background: radial-gradient(ellipse at 63% 42%, #1e4350 0%, #0e222f 26%, transparent 63%), linear-gradient(180deg, #080c16 0%, #0f1d29 53%, #050b11 76%); }
.atmosphere {
  position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, #080717ea 0%, #09081ad0 24%, #080a1d38 55%, transparent 82%),
              linear-gradient(0deg, #050b13f0 0%, #050b1300 26%, transparent 74%, #070b14bc 100%);
}
.atmosphere::after {
  content: ""; position: absolute; inset: 0; opacity: .15;
  background: repeating-linear-gradient(0deg, #02080e 0 1px, transparent 1px 4px);
}
.flying .atmosphere {
  background: linear-gradient(0deg, #050b13db, #050b1300 24%, transparent 71%, #070b14bd);
}
.top, .bottom {
  display: flex; align-items: center; justify-content: space-between;
  position: fixed; left: var(--edge); right: var(--edge); z-index: 2;
}
.top { top: calc(19px + var(--top)); min-height: 58px; border-bottom: 1px solid var(--line); padding-bottom: 13px; gap: 12px; }
.bottom { bottom: calc(20px + var(--bottom)); min-height: 33px; border-top: 1px solid var(--line); font-size: .75rem; letter-spacing: .09em; color: var(--muted); padding-top: 12px; gap: 10px; }
.brand, .quiet, .radio, .primary, .secondary {
  border: 1px solid transparent; border-radius: 2px; background: none; min-height: 44px; font-size: .82rem;
  letter-spacing: .065em; font-weight: 700; text-transform: uppercase;
}
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; white-space: nowrap; }
.mark { font-size: 1.9rem; line-height: 1; color: var(--amber); }
.slash { color: #8babae; }
.top-actions, .launch, .flight-actions { display: flex; align-items: center; gap: 12px; }
.quiet { color: var(--muted); padding: 0 8px; }
.quiet:hover, .brand:hover { color: #fff; }
.radio, .secondary { border-color: #a4ddd869; color: #d7eeee; background: #0a161fd6; padding: 0 15px; }
.radio { display: inline-flex; align-items: center; gap: 9px; }
.radio:hover, .radio[aria-expanded="true"], .secondary:hover { border-color: var(--cyan); background: #183139; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 15px; }
.wave i { width: 2px; height: 7px; background: var(--amber); }
.wave i:nth-child(2) { height: 13px; }
.wave i:nth-child(3) { height: 10px; }
.wave i:nth-child(4) { height: 5px; }
.start { position: absolute; z-index: 1; left: var(--edge); right: var(--edge); top: 45%; transform: translateY(-42%); max-width: 760px; pointer-events: none; }
.start button { pointer-events: auto; }
.eyebrow { color: var(--amber); display: flex; align-items: center; gap: .65rem; margin: 0; font-size: .79rem; font-weight: 700; letter-spacing: .15em; }
.eyebrow b { color: #92aaae; }
.eyebrow > span:first-child:empty { width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); box-shadow: 0 0 12px #ef995baf; }
h1 {
  margin: 16px 0 18px; font-family: Impact, Haettenschweiler, "Arial Narrow", sans-serif;
  font-stretch: condensed; font-weight: 800; letter-spacing: -.018em;
  font-size: clamp(4.65rem, 8.2vw, 8.75rem); line-height: .86;
  text-shadow: 0 0 36px #83e3ec24;
}
h1 em { font: inherit; color: var(--amber); text-shadow: 0 0 38px #ea9b5f40; }
.subtitle { max-width: 37ch; color: #c8dbdf; font-size: 1rem; line-height: 1.65; margin: 24px 0 26px; }
.primary {
  padding: 0 18px; display: inline-flex; align-items: center; justify-content: space-between; gap: 21px;
  background: var(--amber); color: #160f0d; border-color: var(--amber); min-height: 49px;
}
.primary:hover { background: #ffddaa; border-color: #ffddaa; }
.launch .secondary { min-height: 49px; }
.credits, .telemetry { display: flex; align-items: center; gap: 12px; }
.credits cite { font-style: normal; }
.live { width: 7px; height: 7px; background: #8fe3d6; border-radius: 100%; box-shadow: 0 0 10px #81ffe0; }
.cockpit, .beacons { position: fixed; inset: 0; pointer-events: none; }
.mission { position: absolute; top: calc(100px + var(--top)); left: var(--edge); }
.objective { font-size: 1.05rem; margin: 10px 0; text-shadow: 0 1px 4px #000; }
.signal-count { display: flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--muted); }
.signal-count i { width: 16px; height: 4px; background: #afdedc50; }
.signal-count i.on { background: var(--amber); }
.signal-count span { padding-left: 5px; }
.reticle { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%); }
.reticle::before, .reticle::after { content: ""; position: absolute; background: #c1f5f597; }
.reticle::before { width: 18px; height: 1px; top: 8px; }
.reticle::after { width: 1px; height: 18px; left: 8px; }
.beacon { position: absolute; min-width: max-content; transform: translate(-50%, -100%); text-align: center; color: #ffce99; font-size: .71rem; font-weight: bold; text-shadow: 0 1px 3px #000; }
.beacon::after { content: "◇"; display: block; font-size: 1.2rem; margin-top: 2px; line-height: 1; }
.flight-actions { position: absolute; bottom: calc(72px + var(--bottom)); right: var(--edge); pointer-events: auto; }
.touch { display: none; }
.radio-panel, dialog {
  color: #e9f7f5; background: #0b161f; border: 1px solid #89b1b2a0; border-radius: 4px; padding: 17px;
  width: min(390px, calc(100vw - 2 * var(--edge))); box-shadow: 0 18px 55px #0009;
}
.radio-panel { position: fixed; top: calc(88px + var(--top)); right: var(--edge); z-index: 4; max-height: calc(100dvh - 110px - var(--top) - var(--bottom)); overflow: auto; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.panel-head h2 { font-size: 1.25rem; margin: 5px 0 0; }
.close { border: 1px solid var(--line); background: #132329; border-radius: 2px; font-size: 1.35rem; min-width: 44px; min-height: 44px; }
.close:hover { border-color: var(--cyan); }
#player iframe { display: block; width: 100%; height: 225px; border: 0; border-radius: 3px; }
.player-actions { display: flex; gap: 6px; }
.radio-panel.compact { width: min(300px, calc(100vw - 16px)); }
.radio-panel.compact #player iframe { height: 200px; }
.radio-panel.compact .player-link, .radio-panel.compact .audio-sources { display: none; }
.audio-sources { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 10px; }
.audio-sources .quiet { padding-inline: 9px; background: #132329; border-color: var(--line); }
.audio-sources .quiet[aria-pressed="true"] { color: var(--amber); border-color: #f6ba8390; }
.diving .mission, .diving .reticle, .diving .touch, .diving .flight-actions { visibility: hidden; }
.player-link { display: inline-block; margin-top: 13px; font-size: .83rem; }
dialog { width: min(500px, calc(100vw - 2 * var(--edge))); max-height: calc(100dvh - 2rem); overflow: auto; }
.motion-control { display: flex; align-items: center; gap: 9px; min-height: 44px; border-top: 1px solid var(--line); font-size: .84rem; cursor: pointer; }
.motion-control input { inline-size: 18px; block-size: 18px; accent-color: var(--amber); }
dialog::backdrop { background: #0008; }
.instructions { margin: 0; }
.instructions div { border-top: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: 1fr 1.6fr; gap: 14px; font-size: .84rem; line-height: 1.45; }
.instructions dt { color: var(--amber); }
.instructions dd { margin: 0; }
.notice, .noscript { color: var(--amber); background: #101922; padding: 8px; font-size: .82rem; }
.noscript { position: fixed; left: var(--edge); bottom: 4rem; }
@media (max-width: 680px) {
  .top { top: calc(9px + var(--top)); padding-bottom: 6px; }
  .top-actions { gap: 4px; }
  .radio { padding: 0 8px; }
  .brand, .radio, .quiet { font-size: .72rem; letter-spacing: .01em; }
  .brand { gap: 4px; }
  .mark { font-size: 1.45rem; }
  .start { top: 43%; }
  h1 { font-size: clamp(3.15rem, 12vw, 6.1rem); }
  .subtitle { margin: 19px 0 20px; }
  .bottom { font-size: .64rem; }
  .telemetry #coords { display: none; }
  .credits { gap: 5px; }
  .mission { top: calc(85px + var(--top)); }
  .radio-panel { top: calc(75px + var(--top)); width: min(390px, 100vw - 16px); right: max(8px, var(--edge) / 2); padding: 10px; }
  #player { min-width: 0; }
}
@media (pointer: coarse), (max-width: 680px) {
  .touch { display: flex; position: absolute; bottom: calc(72px + var(--bottom)); left: var(--edge); right: var(--edge); justify-content: space-between; align-items: flex-end; }
  .touch button { pointer-events: auto; touch-action: none; width: 44px; height: 44px; background: #0d1c26df; border: 1px solid #8dd5d77a; border-radius: 4px; color: #e4f7f6; font-size: 1.22rem; }
  .touch button.held { background: #40757f; }
  .pad { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; }
  .pad button:first-child { grid-column: 2; }
  .pad button:nth-child(2) { grid-column: 1; }
  .vertical { display: grid; gap: 4px; }
  .flight-actions { bottom: calc(179px + var(--bottom)); }
}
@media (max-height: 610px) {
  h1 { font-size: clamp(3rem, min(17vh, 12vw), 7rem); margin-block: 10px; }
  .subtitle { margin-block: 12px; }
  .start { top: 47%; }
  .bottom { bottom: calc(10px + var(--bottom)); }

}
@media (min-width: 600px) and (max-height: 460px) {
  .touch { bottom: calc(55px + var(--bottom)); }
  .flight-actions { right: calc(var(--edge) + 56px); bottom: calc(55px + var(--bottom)); }
}
@media (max-width: 599px) and (max-height: 460px) {
  .touch { bottom: calc(53px + var(--bottom)); }
  .flight-actions {
    right: calc(var(--edge) + 50px); bottom: calc(53px + var(--bottom));
    flex-direction: column; align-items: flex-end; gap: 2px;
  }
  .flight-actions .secondary { padding-inline: 6px; }
}
@media (max-width: 345px) {
  .brand .slash { display: none; }
  .brand span:nth-child(2) { font-size: .64rem; }
  .top-actions .quiet { padding-inline: 3px; }
  .eyebrow { font-size: .68rem; }
  .launch { gap: 8px; }
  .primary { padding-inline: 10px; gap: 6px; }
  .launch .secondary { padding-inline: 10px; }
}

.guidance { color: var(--cyan); margin: 0 0 10px; font-size: .78rem; line-height: 1.5; text-shadow: 0 1px 3px #000; }
