#aircraft-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
#aircraft-hangar {
  position: fixed;
  inset: 0;
  z-index: 20;
  color: #e8ecea;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 13, 19, 0.86), transparent 48%),
    linear-gradient(0deg, rgba(5, 13, 19, 0.92), transparent 32%);
}
#aircraft-hangar[hidden] {
  display: none;
}
#aircraft-hangar button,
#aircraft-hangar a {
  pointer-events: auto;
}
.hangar-top {
  position: absolute;
  top: 30px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hangar-brand {
  font-size: 13px;
  letter-spacing: 0.22em;
  font-weight: 700;
}
.hangar-brand span {
  color: #a3bcae;
  font-weight: 400;
  font-size: 10px;
  display: block;
  margin-top: 7px;
  letter-spacing: 0.18em;
}
#aircraft-hangar button {
  font: 600 11px system-ui;
  letter-spacing: 0.08em;
  border: 1px solid #71867855;
  border-radius: 4px;
  color: #dce7e1;
  background: #142321dd;
  padding: 12px 18px;
  cursor: pointer;
  transition: 0.18s;
}
#aircraft-hangar button:hover,
#aircraft-hangar button:focus-visible {
  background: #334c41;
  border-color: #b9cebc;
  outline: 2px solid #c1d5c133;
  outline-offset: 3px;
}
#aircraft-hangar button[aria-pressed='true'] {
  background: #c8d9bc;
  color: #14211b;
  border-color: #c8d9bc;
}
.hangar-info {
  position: absolute;
  top: 23%;
  left: 40px;
  width: 300px;
}
.hangar-kicker {
  font:
    11px ui-monospace,
    monospace;
  color: #bdc9ac;
  letter-spacing: 0.13em;
  margin-bottom: 20px;
}
.hangar-info h1 {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 0 0 22px;
  max-width: 350px;
}
.hangar-info p {
  color: #9cafa8;
  font-size: 13px;
  line-height: 1.65;
  max-width: 275px;
}
.hangar-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  border-top: 1px solid #a1b3a52b;
  padding-top: 22px;
}
.hangar-specs b {
  display: block;
  font:
    24px ui-monospace,
    monospace;
  font-weight: 400;
  color: #e4e9d9;
}
.hangar-specs small {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 0.15em;
  color: #8b9f95;
  margin-top: 7px;
}
.hangar-tools {
  position: absolute;
  right: 36px;
  bottom: 145px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hangar-bottom {
  position: absolute;
  bottom: 28px;
  left: 40px;
  right: 40px;
}
.hangar-help {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.1em;
  color: #8fa99b;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hangar-planes {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  pointer-events: auto;
  padding-bottom: 8px;
}
.hangar-planes button {
  flex: 0 0 auto;
  min-width: 94px;
  text-align: left !important;
  padding: 12px !important;
  font-size: 10px !important;
}
.hangar-planes small {
  display: block;
  font: 9px ui-monospace;
  color: #8ea498;
  margin-bottom: 7px;
}
.hangar-planes button[aria-pressed='true'] small {
  color: #4e6857;
}
.hangar-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
#aircraft-hangar .hangar-fly {
  background: #d4dfc3;
  color: #102219;
}
.hangar-message {
  color: #dfbd84;
  font-size: 12px;
  min-height: 18px;
  margin-top: 10px;
}
#flight-view-controls {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 45px;
  z-index: 5;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: max-content;
  max-width: calc(100vw - 24px);
  gap: 4px;
}
#flight-view-controls[hidden] {
  display: none;
}
#flight-view-controls button {
  font: 600 10px system-ui;
  padding: 9px;
  background: #101c28db;
  color: #dae3d9;
  border: 1px solid #8dab9755;
  border-radius: 4px;
  cursor: pointer;
}
@media (max-width: 800px) {
  .hangar-top {
    top: 15px;
    left: 18px;
    right: 18px;
  }
  .hangar-info {
    left: 18px;
    top: 20%;
    width: 200px;
  }
  .hangar-info h1 {
    font-size: 30px;
  }
  .hangar-info p {
    font-size: 11px;
    max-width: 190px;
  }
  .hangar-specs {
    gap: 10px;
    margin-top: 12px;
    padding-top: 10px;
  }
  .hangar-specs b {
    font-size: 18px;
  }
  .hangar-bottom {
    left: 18px;
    right: 18px;
    bottom: 14px;
  }
  .hangar-tools {
    right: 14px;
    top: auto;
    bottom: 140px;
  }
  .hangar-help {
    font-size: 8px;
  }
  .hangar-actions {
    flex-wrap: wrap;
  }
  .hangar-brand {
    font-size: 10px;
  }
}
@media (max-height: 550px) {
  .hangar-info {
    top: 19%;
    width: 220px;
  }
  .hangar-info h1 {
    font-size: 27px;
    margin-bottom: 10px;
  }
  .hangar-info p {
    display: none;
  }
  .hangar-specs {
    margin-top: 10px;
    padding-top: 8px;
    gap: 8px;
  }
  .hangar-actions {
    margin-top: 12px;
  }
  .hangar-bottom {
    bottom: 8px;
  }
  .hangar-help {
    margin-bottom: 6px;
  }
  .hangar-planes button {
    padding: 7px !important;
    min-width: 83px;
  }
  .hangar-tools {
    top: auto;
    bottom: 140px;
  }
  .hangar-top {
    top: 14px;
  }
  .hangar-specs b {
    font-size: 18px;
  }
}

@media (max-height: 550px) {
  .hangar-tools button {
    padding: 7px 12px !important;
  }
  .hangar-tools {
    bottom: 115px;
    gap: 4px;
  }
}
@media (max-width: 550px) {
  .hangar-info {
    top: 90px;
    width: calc(100% - 36px);
  }
  .hangar-info h1 {
    font-size: 27px;
    max-width: 300px;
    margin-bottom: 10px;
  }
  .hangar-info p {
    max-width: 280px;
  }
  .hangar-specs {
    display: none;
  }
  .hangar-actions {
    margin-top: 10px;
  }
  .hangar-tools {
    top: auto;
    bottom: 145px;
    left: 18px;
    right: 18px;
    flex-direction: row;
    overflow: auto;
    pointer-events: auto;
  }
  .hangar-tools button {
    flex-shrink: 0;
    padding: 9px !important;
  }
  .hangar-help span:last-child {
    display: none;
  }
  .hangar-brand span {
    max-width: 160px;
    line-height: 1.6;
  }
  .hangar-top > button {
    padding: 10px !important;
  }
  #flight-view-controls {
    bottom: 100px;
    white-space: nowrap;
  }
}

/* The page sets canvas display:block, which overrides the browser's hidden rule. */
#aircraft-view[hidden],
#open-aircraft-hangar[hidden] {
  display: none !important;
}
#open-aircraft-hangar {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 6;
  padding: 15px 20px;
  border: 1px solid #d9e7ba;
  border-radius: 7px;
  color: #12251d;
  background: #d4e4bc;
  font:
    12px system-ui,
    sans-serif;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 24px #0006;
}
#open-aircraft-hangar strong {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
}
#open-aircraft-hangar span {
  display: block;
  margin-top: 5px;
  color: #3c594a;
}
#flight-view-controls button[aria-pressed='true'] {
  background: #d4e4bc;
  color: #14251c;
  border-color: #d4e4bc;
}
#flight-view-controls button[data-mode='hangar'] {
  border-color: #d4e4bc;
  font-weight: 800;
}
@media (max-width: 550px), (max-height: 550px) {
  #open-aircraft-hangar {
    top: 10px;
    right: 10px;
    padding: 10px 12px;
  }
  #open-aircraft-hangar strong {
    font-size: 11px;
  }
  #open-aircraft-hangar span {
    font-size: 10px;
  }
}
