.rf-stage {
  --rf-ink: #0f1b2a;
  --rf-body: #f7ede3;
  --rf-accent: #f6553b;
  --rf-guide: #aaacae;
  --rf-steam: #d0c7be;
  --rf-position: 0%;
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  min-height: 56px;
  pointer-events: none;
  user-select: none;
}
[data-flight-theme="dark"] .rf-stage {
  --rf-ink: #f7ede3;
  --rf-body: #0f1b2b;
  --rf-guide: #7b828b;
  --rf-steam: #a2a6ac;
}
.rf-stage .rf-course {
  position: absolute;
  inset: 24px 0 26px;
}
.rf-stage .rf-track {
  position: absolute;
  left: calc(50% - 1px);
  inset-block: 0;
  width: 2px;
  background: var(--rf-guide);
}
.rf-stage .rf-distance {
  position: absolute;
  inset: auto 0 0;
  height: var(--rf-position);
  background: var(--rf-accent);
  transition: height 560ms cubic-bezier(.23,.73,.26,1);
}
.rf-stage .rf-moon {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%,-50%);
  width: min(65%,34px);
  height: auto;
  overflow: visible;
  transition: transform 450ms ease 490ms;
}
.rf-stage .rf-lunar-surface {
  fill: var(--rf-body);
  stroke: var(--rf-ink);
  stroke-width: 1.8px;
  transition: fill 350ms ease 490ms;
}
.rf-stage .rf-lunar-shadow, .rf-stage .rf-crater { fill: var(--rf-ink); }
.rf-stage .rf-crater { opacity: .32; }
.rf-stage .rf-launchpad {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(76%,42px);
  height: 3px;
  border-bottom: 1px solid var(--rf-ink);
  border-top: 2px solid var(--rf-ink);
  box-sizing: content-box;
  transform: translate(-50%, 2px);
}
.rf-stage .rf-carriage {
  position: absolute;
  left: 50%;
  bottom: var(--rf-position);
  width: min(94%,54px);
  transform: translate(-50%,30%);
  transition: bottom 560ms cubic-bezier(.23,.73,.26,1);
}
.rf-stage .rf-craft {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 70%;
}
.rf-stage .rf-flame {
  opacity: 0;
  transform-origin: 28px 53px;
}
.rf-stage[data-phase="travel"] .rf-flame,
.rf-stage:is([data-phase="launch"],[data-phase="done"]) .rf-flame {
  opacity: 1;
  animation: rf-engine 260ms ease-in-out 4 alternate both;
}
.rf-stage .rf-steam {
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: min(100%,76px);
  height: auto;
  overflow: visible;
  transform: translateX(-50%);
  fill: var(--rf-steam);
}
.rf-stage .rf-steam path {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: bottom center;
}
.rf-stage.rf-departed .rf-steam-left { animation: rf-steam-left 650ms ease-out both; }
.rf-stage.rf-departed .rf-steam-right { animation: rf-steam-right 700ms ease-out both; }
.rf-stage:is([data-phase="launch"],[data-phase="done"]) .rf-carriage,
.rf-stage:is([data-phase="launch"],[data-phase="done"]) .rf-distance {
  transition-duration: 760ms;
  transition-timing-function: cubic-bezier(.43,0,.7,1);
}
.rf-stage:is([data-phase="launch"],[data-phase="done"]) .rf-craft {
  animation: rf-arrive 790ms cubic-bezier(.45,.05,.82,.8) both;
}
.rf-stage:is([data-phase="launch"],[data-phase="done"]) .rf-lunar-surface { fill: var(--rf-accent); }
.rf-stage:is([data-phase="launch"],[data-phase="done"]) .rf-moon { transform: translate(-50%,-50%) scale(1.1); }
@keyframes rf-engine {
  from { transform: scaleY(.77); }
  to { transform: scaleY(1); }
}
@keyframes rf-steam-left {
  0% { opacity: 0; transform: translateX(6px) scale(.5); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(-8px,-3px) scale(1.12); }
}
@keyframes rf-steam-right {
  0% { opacity: 0; transform: translateX(-6px) scale(.5); }
  23% { opacity: 1; }
  100% { opacity: 0; transform: translate(8px,-3px) scale(1.12); }
}
@keyframes rf-arrive {
  0% { opacity: 1; transform: translate(0,0) rotate(0) scale(1); }
  58% { opacity: 1; transform: translate(16%,0) rotate(7deg) scale(.68); }
  100% { opacity: 0; transform: translate(0,0) rotate(-8deg) scale(.12); }
}
@media (prefers-reduced-motion: reduce) {
  .rf-stage *, .rf-stage::before, .rf-stage::after { animation: none !important; transition: none !important; }
  .rf-stage:is([data-phase="launch"],[data-phase="done"]) .rf-craft { opacity: 0; }
}
