.avi-airspace {
  position: fixed;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.avi-airspace *, .avi-airspace *::before, .avi-airspace *::after {
  pointer-events: none !important;
}

.avi-airspace canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.avi-airframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 512px;
  height: 263.71px;
  transform-origin: 50% 50%;
  will-change: transform;
}

.avi-airframe img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  max-width: none;
  object-fit: contain;
  user-select: none;
  filter: drop-shadow(0 10px 11px rgb(4 16 45 / 35%));
}

.avi-airframe[data-face="esquerda"] .avi-facing-right,
.avi-airframe[data-face="direita"] .avi-facing-left {
  visibility: hidden;
}

.avi-flight-hold {
  position: absolute;
  left: 0;
  top: 0;
  color: #eaffff;
  background: #173451;
  border: 1px solid #7ffff0;
  border-radius: 3px 7px 7px 3px;
  padding: 3px 7px;
  font: 650 11px/1.15 Geist, system-ui, sans-serif;
  letter-spacing: .035em;
  box-shadow: 0 3px 9px #071a3540;
}

.avi-flight-hold::before {
  content: "";
  display: inline-block;
  vertical-align: middle;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #95ffdf;
  margin-right: 4px;
}

html.avi-airborne .flight-plane img {
  opacity: 0;
  animation: none;
}

@media print {
  .avi-airspace { display: none; }
  html.avi-airborne .flight-plane img { opacity: 1; }
}
