/* Heli flyby. Fixed 2560x1440 stage, transparent for a browser source. */

.stage {
  width: 2560px;
  height: 1440px;
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  background: transparent;
  transform-origin: top left;
  --accent: #d5ff80;
  --accent-strong: #aaff00;
}

.flyby {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.flyby-holes,
.flyby-fx {
  position: absolute;
  left: 0;
  top: 0;
  width: 2560px;
  height: 1440px;
}

.flyby-holes { z-index: 1; }
.ship { z-index: 2; }
.flyby-fx { z-index: 3; }

.ship {
  position: absolute;
  left: 0;
  top: 0;
  width: 234px;
  height: 633px;
  transform-origin: 95px 197px;
}

.ship img,
.ship canvas {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  image-rendering: pixelated;
}

.ship .body {
  left: -1px;
  top: 1px;
  width: 193px;
  height: 632px;
}

.ship .gunner {
  left: -4px;
  top: -1px;
  width: 234px;
  height: 633px;
  opacity: 0;
}

.ship.is-gunner .body { opacity: 0; }
.ship.is-gunner .gunner { opacity: 1; }

.ship .rotor {
  left: -197.5px;
  top: -96.5px;
  width: 583px;
  height: 583px;
  transform-origin: 291.5px 291.5px;
}

.ship .rotor-ghost { opacity: 0.28; }

.ship .tail {
  left: 26px;
  top: 545px;
  width: 90px;
  height: 90px;
  transform-origin: 52px 45px;
}

.ship .tail-ghost { opacity: 0.28; }

.ship .muzzle {
  left: 222px;
  top: 201px;
  width: 72px;
  height: 36px;
  opacity: 0;
}

html.is-source,
body.is-source {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0);
}
