.flight-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.flight-stars {
  position: absolute;
  inset: 0 0 49%;
  opacity: .87;
  background:
    radial-gradient(circle at 6% 16%, #fff1c9 0 .8px, transparent 1.5px),
    radial-gradient(circle at 12% 43%, #efddb1 0 .65px, transparent 1.3px),
    radial-gradient(circle at 19% 25%, #fff4db 0 1px, transparent 1.8px),
    radial-gradient(circle at 27% 8%, #ebd5a4 0 .65px, transparent 1.45px),
    radial-gradient(circle at 35% 58%, #fff1ce 0 .8px, transparent 1.4px),
    radial-gradient(circle at 40% 20%, #fff7dd 0 .8px, transparent 1.7px),
    radial-gradient(circle at 48% 35%, #f2dbaf 0 .6px, transparent 1.4px),
    radial-gradient(circle at 55% 9%, #fff6db 0 1px, transparent 1.7px),
    radial-gradient(circle at 62% 52%, #f4dfb8 0 .7px, transparent 1.45px),
    radial-gradient(circle at 68% 25%, #fff3d5 0 .95px, transparent 1.6px),
    radial-gradient(circle at 78% 12%, #f4dfb8 0 .8px, transparent 1.5px),
    radial-gradient(circle at 85% 39%, #fff5d1 0 1px, transparent 1.6px),
    radial-gradient(circle at 92% 16%, #f4dda9 0 .7px, transparent 1.4px),
    radial-gradient(circle at 96% 53%, #fff0ce 0 .8px, transparent 1.4px);
}
.flight-stars::before, .flight-stars::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  left: 17%;
  top: 13%;
  background: #ffebbd;
  clip-path: polygon(50% 0,62% 39%,100% 50%,62% 61%,50% 100%,39% 62%,0 50%,39% 39%);
}
.flight-stars::after { left: 73%; top: 36%; width: 5px; height: 5px; }
.flight-meteor {
  position: absolute;
  left: 34%;
  top: 7%;
  width: clamp(45px, 6vw, 84px);
  height: 2px;
  background: linear-gradient(to right, transparent, #e5d29c80 55%, #fff5d2);
  border-radius: 50%;
  opacity: 0;
  transform-origin: right center;
}
.flight-meteor::after {
  content: "";
  position: absolute; right: 0; top: -1px;
  width: 4px; height: 4px; border-radius: 50%; background: #fff4d3;
}
.flight-rider img.flight-head, .flight-rider img.flight-plume {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
  pointer-events: none;
  filter: none;
}
.flight-head { transform-origin: 52% 94%; }
.flight-plume { transform-origin: var(--plume-origin, 30% 98%); }
.flight-rider .flight-smoke {
  position: absolute;
  width: 13%;
  height: 15%;
  left: 10.1%;
  top: 2.6%;
  pointer-events: none;
  overflow: visible;
  fill: none;
  stroke: #f6deb1;
  stroke-width: 1.65;
  stroke-linecap: round;
  opacity: .7;
}
.flight-smoke path { stroke-dasharray: 1; }
@media (prefers-reduced-motion: no-preference) {
  .flight-head { animation: rider-nod 8.4s ease-in-out infinite; }
  .flight-plume { animation: lamp-plume 4.8s ease-in-out infinite; }
  .flight-smoke path { animation: lamp-wisp 5.2s ease-in-out infinite; }
  .flight-smoke path + path { animation-delay: -2.6s; }
  .flight-meteor { animation: sky-meteor 15s linear 1.8s infinite; }
  .flight-stars::after { animation: sky-twinkle 6.8s ease-in-out infinite alternate; }
  .flight-hero[data-paused] :is(.flight-head,.flight-plume,.flight-smoke path,.flight-meteor),
  .flight-hero[data-paused] .flight-stars::after,
  .flight-hero[data-paused] .at-hero-lamp::before,
  .flight-hero[data-paused] .at-hero-lamp::after,
  .flight-hero:is([data-flight-away],:has(.flight-motion[hidden])) :is(.flight-rider,.flight-head,.flight-plume,.flight-smoke path,.flight-meteor),
  .flight-hero:is([data-flight-away],:has(.flight-motion[hidden])) .flight-stars::after,
  .flight-hero:is([data-flight-away],:has(.flight-motion[hidden])) .at-hero-lamp::before,
  .flight-hero:is([data-flight-away],:has(.flight-motion[hidden])) .at-hero-lamp::after { animation-play-state: paused !important; }
}
@keyframes rider-nod {
  0%, 17%, 55%, 100% { transform: rotate(0deg); }
  33% { transform: rotate(.85deg) translateY(.45%); }
  74% { transform: rotate(-.6deg) translateY(-.25%); }
}
@keyframes lamp-plume {
  0%, 100% { transform: scale(.97,.97) rotate(-1deg); opacity: .72; }
  48% { transform: scale(1.035,1.035) rotate(1.5deg); opacity: .97; }
}
@keyframes lamp-wisp {
  0% { stroke-dashoffset: 1; opacity: 0; }
  12% { opacity: .75; }
  57% { stroke-dashoffset: 0; opacity: .6; }
  85%,100% { stroke-dashoffset: -.85; opacity: 0; }
}
@keyframes sky-meteor {
  0%,100% { opacity: 0; transform: translate(0,0) rotate(17deg); }
  1% { opacity: .72; }
  5% { opacity: .88; }
  8% { opacity: 0; transform: translate(clamp(96px,18vw,235px),clamp(29px,5.5vw,72px)) rotate(17deg); }
  9%,99% { opacity: 0; }
}
@keyframes sky-twinkle { from { opacity: .35; } to { opacity: .9; } }
