.flight {
  background: #071027;
  color: #e9f3ff;
  border: 1px solid #334965;
  border-radius: 22px;
  overflow: hidden;
  font:
    16px system-ui,
    sans-serif;
  max-width: 860px;
  margin: auto;
  box-shadow: 0 22px 60px #0b153344;
}
.flight button {
  font: 700 16px system-ui;
  min-height: 48px;
  padding: 10px 14px;
  cursor: pointer;
  color: #e6f4ff;
  background: #15243d;
  border: 1px solid #405572;
  border-radius: 10px;
}
.flight button:hover {
  background: #29405d;
}
.flight button:disabled {
  opacity: 0.45;
  cursor: default;
}
.flight button:focus-visible,
.flight canvas:focus-visible {
  outline: 3px solid #77edff;
  outline-offset: -3px;
}
.flight-top,
.flight-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 18px;
}
.flight-top b {
  letter-spacing: 2px;
  color: #abf4ff;
}
.flight-top small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: #b5c5de;
  display: block;
}
.flight-hud {
  background: #0c1930;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.flight-hud b {
  color: #a5f8ed;
}
.flight-arena {
  position: relative;
  background: #071126;
  isolation: isolate;
}
.flight canvas {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  touch-action: none;
}
.flight-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, #050e25e8, #07152c66);
  padding: 30px;
  text-align: center;
}
.flight-overlay > div {
  max-width: 460px;
}
.flight-overlay h2 {
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1.3;
  color: #fff;
}
.flight-overlay p {
  line-height: 1.7;
  color: #cad9ed;
}
.flight .flight-primary {
  background: #96f3d9;
  color: #092827;
  border: 0;
  padding: 15px 28px;
  font-size: 20px;
  min-height: 60px;
}
.flight-eyebrow {
  color: #a5e4e5;
  letter-spacing: 2px;
  font-size: 12px;
}
.flight-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 12px;
  background: #0b1930;
}
.flight-actions button {
  flex: 1;
  white-space: nowrap;
  font-size: 14px;
  min-height: 52px;
}
.flight-callout {
  position: absolute;
  top: 18%;
  width: 100%;
  text-align: center;
  color: #b7ffff;
  font-size: clamp(14px, 2.3vw, 22px);
  text-shadow: 0 2px 12px #000;
  pointer-events: none;
}
.flight-settings {
  padding: 14px 18px;
  color: #becfe5;
  font-size: 16px;
}
.flight-settings summary {
  cursor: pointer;
  min-height: 35px;
}
.flight-settings p {
  font-size: 14px;
  line-height: 1.8;
}
.flight-settings label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 16px;
}
.flight-settings input[type="range"] {
  flex: 1;
  min-width: 50px;
  accent-color: #8ef2dc;
}
.flight-settings input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #8ef2dc;
}
.flight-settings output {
  font-size: 14px;
  display: block;
  color: #a9f5da;
}
.flight:fullscreen {
  overflow: auto;
  width: 100%;
  max-width: none;
  border-radius: 0;
}
.flight:fullscreen canvas {
  max-height: 76vh;
}
.flight [hidden] {
  display: none !important;
}
@media (max-width: 520px) {
  .flight-hud {
    font-size: 11px;
    padding: 10px;
  }
  .flight-actions {
    padding: 7px;
  }
  .flight-actions button {
    font-size: 12px;
    padding: 8px;
    min-width: 90px;
  }
  .flight-overlay {
    padding: 18px;
  }
  .flight-top {
    padding: 8px 12px;
  }
}
.flight-overlay h2 {
  word-break: keep-all;
  overflow-wrap: break-word;
}

.flight canvas {
  width: min(100%, calc(68vh * 0.857142857));
  height: auto;
  max-height: none;
  margin: auto;
}
.flight:fullscreen canvas {
  width: min(100%, calc(76vh * 0.857142857));
  height: auto;
  max-height: none;
}
.flight-overlay h2 {
  word-break: keep-all;
}
