/* Reserve space for every head and glove; animate a small rig rather than six layers. */
#queue{height:51px;min-height:51px;padding:6px 4px;align-items:center;contain:layout paint}
#queue .astronaut{--idle-time:3.7s;--idle-phase:-1.3s;--look-time:8.6s;--wave-phase:-3s;filter:none}
.crew-rig{position:relative;width:26px;height:39px;transform-origin:50% 100%}
#queue .crew-rig{animation:crew-idle var(--idle-time) ease-in-out var(--idle-phase) infinite}
#queue .astronaut:nth-child(4n+1){--idle-time:3.1s;--idle-phase:-.6s;--look-time:7.9s;--wave-phase:-8s}
#queue .astronaut:nth-child(4n+2){--idle-time:4.2s;--idle-phase:-2.7s;--look-time:10.1s;--wave-phase:-1s}
#queue .astronaut:nth-child(4n+3){--idle-time:3.6s;--idle-phase:-1.8s;--look-time:9.3s;--wave-phase:-5s}
#queue .helmet{transform-origin:50% 85%;animation:crew-look var(--look-time) ease-in-out var(--idle-phase) infinite}
#queue .body:after{transform-origin:50% 15%}
#queue .astronaut:nth-child(3n+1) .body:after{animation:crew-wave 12s ease-in-out var(--wave-phase) infinite}
#queue .astronaut.crew-offscreen *,#queue .astronaut.crew-offscreen *:after{animation-play-state:paused!important}
.running-astronaut .crew-rig{animation:none;transform:none}
@keyframes crew-idle{0%,100%{transform:translate3d(0,0,0) rotate(-1deg)}50%{transform:translate3d(0,-1px,0) rotate(1deg)}}
@keyframes crew-look{0%,23%,55%,100%{transform:rotate(0)}30%,39%{transform:rotate(-8deg)}65%,76%{transform:rotate(7deg)}}
@keyframes crew-wave{0%,67%,94%,100%{transform:rotate(-12deg)}73%{transform:rotate(-130deg)}77%{transform:rotate(-108deg)}81%{transform:rotate(-138deg)}85%{transform:rotate(-110deg)}89%{transform:rotate(-130deg)}}
body.crew-paused #queue *,body.crew-paused #queue *:before,body.crew-paused #queue *:after{animation-play-state:paused!important}
/* Large blurred filters cost more than these small sprites on mobile GPUs. */
.astronaut,.craft{filter:none}.helmet,.cockpit,.seat{backface-visibility:hidden}
.motion-actor{contain:layout style;will-change:transform,opacity}.running-astronaut{filter:none!important}
@media(max-height:680px){#queue{height:45px;min-height:45px;padding:6px 4px}}
@media(prefers-reduced-motion:reduce){#queue *,#queue *:before,#queue *:after{animation:none!important}}
