#paceScene .journeyArt {position:relative}
#paceScene .journeyTouch {position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:flex-end;box-sizing:border-box;width:100%;height:100%;margin:0;padding:8px;border:0!important;border-radius:inherit;box-shadow:none!important;background:transparent!important;color:#fff!important;text-shadow:none;cursor:pointer;touch-action:manipulation}
#paceScene .journeyTouch[hidden]{display:none}
#paceScene .journeyTouch span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#paceScene .journeyTouch:focus-visible{outline:3px solid #f7d899;outline-offset:-4px}
.journeyMomentStatus{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(prefers-reduced-motion:no-preference){
#journeyStage.journeyPlaying .journeyRipple {transform-box:fill-box;transform-origin:center;animation:journalRipple 1.35s ease-out var(--delay,0s) both}
#journeyStage.journeyPlaying .journeyComet {animation:journalComet 1.35s ease-out both}
#journeyStage.journeyPlaying .journeyBird {animation:journalBird 1.65s ease-out both}
#journeyStage.journeyPlaying .journeyBreeze {animation:journalBreeze 1.55s ease-in-out both}
#journeyStage.journeyPlaying .journeySnow {animation:journalSnow 1.55s ease-in-out var(--delay,0s) both}
#journeyStage.journeyPlaying [data-moment-actor]{transform-box:fill-box;transform-origin:center;animation:journalSway 1.55s ease-in-out}
#journeyStage.journeyPlaying[data-scene="space"] [data-moment-actor]{animation-name:journalBank}
#journeyStage.journeyPlaying[data-scene="balloon"] [data-moment-actor]{animation-name:journalLift}
#journeyStage.journeyPlaying[data-scene="mountain"] [data-moment-actor]{animation:none}
@keyframes journalRipple{from{opacity:.9;transform:scale(.35)}to{opacity:0;transform:scale(1.65)}}
@keyframes journalComet{0%{opacity:0;transform:translate(-72px,-25px)}22%{opacity:1}100%{opacity:0;transform:translate(82px,28px)}}
@keyframes journalBird{0%{opacity:.1;transform:translate(-21px,12px)}25%{opacity:1}100%{opacity:0;transform:translate(40px,-18px)}}
@keyframes journalBreeze{0%{opacity:0;transform:translateX(-48px)}35%{opacity:.95}100%{opacity:0;transform:translateX(48px)}}
@keyframes journalSnow{0%{opacity:0;transform:translate(-5px,-22px)}24%{opacity:.95}100%{opacity:0;transform:translate(12px,30px)}}
@keyframes journalSway{0%,100%{transform:rotate(0)}34%{transform:rotate(-4deg)}72%{transform:rotate(2.5deg)}}
@keyframes journalLift{0%,100%{transform:translateY(0)}48%{transform:translateY(-8px) rotate(2deg)}}
@keyframes journalBank{0%,100%{transform:rotate(0)}45%{transform:rotate(-6deg)}}
}

#paceScene .journeyFooter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}
#paceScene .journeyMotionButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42em;
  box-sizing: border-box;
  width: auto;
  min-height: 44px;
  min-width: 44px;
  margin: 0;
  padding: 7px 13px;
  border: 1px solid var(--fj-ui-line) !important;
  border-radius: 99px;
  background: var(--fj-ui-surface) !important;
  color: var(--fj-ui-ink) !important;
  box-shadow: none !important;
  text-shadow: none;
  white-space: nowrap;
  font: 600 .9rem/1.2 system-ui, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}
#paceScene .journeyMotionButton:hover {border-color: var(--fj-ui-accent) !important}
#paceScene .journeyMotionButton:focus-visible {outline: 3px solid var(--fj-ui-accent); outline-offset: 2px}
#paceScene .journeyMotionButton[hidden] {display: none}
#paceScene .journeyMotionIcon {
  box-sizing: border-box;
  width: 9px;
  height: 11px;
  border-inline: 3px solid currentColor;
}
#paceScene .journeyMotionButton[data-paused="true"] .journeyMotionIcon {
  width: 10px;
  height: 12px;
  border: 0;
  border-block: 6px solid transparent;
  border-left: 10px solid currentColor;
}
@media (max-width: 600px) {
  #paceScene .journeyFooter {
    grid-template-columns: auto 1fr;
    justify-items: start;
    row-gap: 8px;
  }
  #paceScene .journeyFooter > div:first-child {grid-column: 1 / -1}
}

/* The journal moves the outer traveler with the score. Only inner artwork
   has an ambient timeline. Pausing holds the illustration at its current pose. */
@media (prefers-reduced-motion: no-preference) {
  #journeyStage .amb {
    transform-box: fill-box;
    transform-origin: var(--amb-origin, center);
    animation: var(--amb-name) var(--amb-duration) ease-in-out var(--amb-delay, 0s) infinite alternate;
    animation-play-state: paused;
  }
  #journeyStage[data-ambient-running]:not([data-ambient-running="false"]) .amb {animation-play-state: running}
  #journeyStage .amb-boat {--amb-name: harborBoat; --amb-duration: 2.8s; --amb-origin: 50% 85%}
  #journeyStage .amb-sail {--amb-name: harborSail; --amb-duration: 2.2s; --amb-origin: left bottom; --amb-delay: -.6s}
  #journeyStage .amb-water-near {--amb-name: harborWater; --amb-duration: 3.2s; --amb-delay: -1.2s}
  #journeyStage .amb-water-far {--amb-name: harborWaterFar; --amb-duration: 4.5s; --amb-delay: -2.6s}
  #journeyStage .amb-ship {--amb-name: orbitShip; --amb-duration: 3.8s; --amb-origin: 65% 50%}
  #journeyStage .amb-exhaust {--amb-name: orbitEngine; --amb-duration: 1.4s; --amb-origin: right center; --amb-delay: -.6s}
  #journeyStage .amb-glint {--amb-name: orbitGlint; --amb-duration: 3s; --amb-delay: -1.5s}
  #journeyStage .amb-glint.amb-late {--amb-duration: 3.6s; --amb-delay: -4.3s}
  #journeyStage .amb-balloon {--amb-name: valleyBalloon; --amb-duration: 4s; --amb-origin: 50% 38%; --amb-delay: -1s}
  #journeyStage .amb-cloud-near {--amb-name: valleyCloud; --amb-duration: 9s; --amb-delay: -3s}
  #journeyStage .amb-cloud-far {--amb-name: valleyCloud; --amb-duration: 14s; --amb-delay: -9s}
  #journeyStage .amb-hiker {--amb-name: summitHiker; --amb-duration: 2.6s; --amb-origin: center bottom; --amb-delay: -.6s}
  #journeyStage .amb-flag {--amb-name: summitFlag; --amb-duration: 2s; --amb-origin: left center; --amb-delay: -.5s}
  #journeyStage .amb-soar {--amb-name: summitBird; --amb-duration: 8s; --amb-delay: -3s}
  #journeyStage .amb-foreground-bird {--amb-name: summitGlide; --amb-duration: 5.2s; --amb-delay: -2.1s}
  #journeyStage .amb-foreground-wings {--amb-name: summitWings; --amb-duration: 1.7s; --amb-origin: center bottom; --amb-delay: -.5s}
  #journeyStage .amb-wings {--amb-name: summitWings; --amb-duration: 2s; --amb-origin: center bottom}
  #journeyStage .amb-car {--amb-name: alpineSwing; --amb-duration: 3.3s; --amb-origin: 46% top; --amb-delay: -.8s}
  #journeyStage .amb-flurry {
    --amb-name: alpineFlurry;
    animation-direction: normal;
    animation-timing-function: linear;
  }
  #journeyStage .amb-flurry-0 {--amb-duration: 9s; --amb-delay: -2s}
  #journeyStage .amb-flurry-1 {--amb-duration: 11s; --amb-delay: -6s}
  #journeyStage .amb-flurry-2 {--amb-duration: 13s; --amb-delay: -10s}

  @keyframes harborBoat {from {transform: translateY(1px) rotate(-2.5deg)} to {transform: translateY(-3px) rotate(2.5deg)}}
  @keyframes harborSail {from {transform: scaleX(.96)} to {transform: scaleX(1.085)}}
  @keyframes harborWater {from {transform: translate(-6px, -1px)} to {transform: translate(6px, 1px)}}
  @keyframes harborWaterFar {from {transform: translateX(3px)} to {transform: translateX(-4px)}}
  @keyframes orbitShip {from {transform: translateY(1px) rotate(1deg)} to {transform: translateY(-3px) rotate(-2deg)}}
  @keyframes orbitEngine {from {transform: scale(.72, .86)} to {transform: scale(1.11, 1.04)}}
  @keyframes orbitGlint {from {transform: scale(.82); opacity: .62} to {transform: scale(1.12); opacity: .96}}
  @keyframes valleyBalloon {from {transform: translateY(2px) rotate(-2deg)} to {transform: translateY(-5px) rotate(2.7deg)}}
  @keyframes valleyCloud {from {transform: translateX(-11px)} to {transform: translateX(13px)}}
  @keyframes summitHiker {from {transform: rotate(-1.5deg) scaleY(.98)} to {transform: rotate(1.7deg) scaleY(1.045)}}
  @keyframes summitFlag {from {transform: skewY(4deg) scaleX(.87)} to {transform: skewY(-6deg) scaleX(1.04)}}
  @keyframes summitBird {from {transform: translate(-19px, 1px) rotate(-7deg)} to {transform: translate(19px, -8px) rotate(8deg)}}
  @keyframes summitGlide {from {transform: translate(-28px, 7px) rotate(-8deg)} to {transform: translate(24px, -6px) rotate(9deg)}}
  @keyframes summitWings {from {transform: scaleY(.65)} to {transform: scaleY(1.19)}}
  @keyframes alpineSwing {from {transform: rotate(-3.5deg)} to {transform: rotate(3.5deg)}}
  @keyframes alpineFlurry {
    0% {transform: translate(-8px, -23px); opacity: 0}
    22%, 77% {opacity: .58}
    100% {transform: translate(9px, 24px); opacity: 0}
  }
}
