/* Stage 15 route flights. All motion is visual; game clocks remain unchanged. */
.rf-scene{display:block;width:100%;height:auto;isolation:isolate;overflow:hidden}
#art svg.rf-scene{width:100%;height:100%;object-fit:contain;transform:none!important;filter:none!important}
.route-flight .rf-pose{visibility:hidden;animation:rf-gait 1.08s steps(1,end) infinite;animation-delay:var(--rf-delay,0s)}
@keyframes rf-gait{0%{visibility:visible}8.333333333%{visibility:hidden}100%{visibility:hidden}}
.route-flight .rf-team{animation:rf-team-breath 3.8s ease-in-out infinite;animation-delay:var(--rf-flight-offset,0s);transform-origin:836px 490px;transform-box:view-box}
@keyframes rf-team-breath{0%,100%{transform:translateY(3px) rotate(.13deg)}50%{transform:translateY(-8px) rotate(-.13deg)}}
.route-flight .rf-sleigh-motion{animation:rf-sleigh-rock 3.8s ease-in-out infinite;animation-delay:var(--rf-flight-offset,0s);transform-origin:var(--rf-sleigh-origin,593.5px 494.5px);transform-box:view-box}
/* The flight renderer supplies the midpoint of the current sleigh hitches.
   The existing .55-degree pitch and 3.8-second visual cycle are unchanged. */
@keyframes rf-sleigh-rock{0%,100%{transform:rotate(.55deg)}50%{transform:rotate(-.55deg)}}
.route-flight .rf-background-drift{animation:rf-background-scroll 7.1s linear 1 both;animation-delay:var(--rf-flight-offset,0s);transform-origin:0 0;transform-box:view-box;will-change:transform}
/* A continuous, one-way traversal of one overscanned painting. No tile seam,
   repeated landmark or reversing landscape appears during the flight. */
@keyframes rf-background-scroll{from{transform:translate(var(--rf-pan-from-x,240px),var(--rf-pan-from-y,0px))}to{transform:translate(var(--rf-pan-to-x,-240px),var(--rf-pan-to-y,0px))}}
.route-flight.rf-ground .rf-team{animation:none}
.route-flight.rf-ground .rf-sleigh-motion{animation-name:rf-ground-rock}
@keyframes rf-ground-rock{0%,100%{transform:rotate(.2deg)}50%{transform:rotate(-.2deg)}}
.route-flight .rf-flake{animation:rf-snowfall var(--rf-snow-duration,5s) linear infinite;animation-delay:calc(var(--rf-snow-delay,0s) + var(--rf-flight-offset,0s))}
@keyframes rf-snowfall{from{transform:translate(40px,-60px)}to{transform:translate(-180px,130px)}}
.route-flight .rf-weather-blizzard .rf-flake{animation-name:rf-blizzard}
@keyframes rf-blizzard{from{transform:translate(220px,-40px)}to{transform:translate(-300px,160px)}}
.route-flight.rf-fixed .rf-pose{visibility:visible;animation:none!important}
.route-flight.rf-fixed .rf-team{animation:none!important;transform:none!important}
.route-flight.rf-fixed .rf-sleigh-motion{animation:none!important;transform:none!important}
.route-flight.rf-fixed .rf-background-drift{animation:none!important}
.route-flight.rf-fixed .rf-flake{animation:none!important}
#game[data-flight-paused="true"] .route-flight *,
.rf-paused .route-flight *{animation-play-state:paused!important}
#modal .rf-viewer{aspect-ratio:1672/941!important}
/* Narrow flight HUD wraps onto three lines; keep its artwork control below it. */
@media(max-width:480px){
 #game[data-phase="travel"] #flight-view-scene{top:max(100px,calc(env(safe-area-inset-top) + 100px))}
}
.rf-preview-reduced .route-flight *,.rf-preview-reduced .survivor-scene *,.rf-preview-reduced .restored-departure *{animation:none!important}
.rf-preview-reduced .rf-team,.rf-preview-reduced .rf-sleigh-motion,.rf-preview-reduced .ss2-team,.rf-preview-reduced .rd-team,.rf-preview-reduced .rf-flake,.rf-preview-reduced .ss2-flake,.rf-preview-reduced .rd-flake{transform:none!important}
.rf-preview-reduced .route-flight:not(.rf-fixed) .rf-pose,.rf-preview-reduced .survivor-scene:not(.ss2-fixed) .ss2-pose,.rf-preview-reduced .restored-departure:not(.rd-fixed) .rd-frame{visibility:hidden!important}
.rf-preview-reduced .route-flight:not(.rf-fixed) .rf-pose[data-frame="0"],.rf-preview-reduced .survivor-scene:not(.ss2-fixed) .ss2-pose[data-frame="0"],.rf-preview-reduced .restored-departure:not(.rd-fixed) .rd-frame[data-frame="0"]{visibility:visible!important}
@media(prefers-reduced-motion:reduce){
 .route-flight *{animation:none!important}
 .route-flight .rf-team,.route-flight .rf-sleigh-motion,.route-flight .rf-flake{transform:none!important}
 .route-flight:not(.rf-fixed) .rf-pose{visibility:hidden!important}
 .route-flight:not(.rf-fixed) .rf-pose[data-frame="0"]{visibility:visible!important}
}
