#fx-layer,
.juice-local-layer {
  pointer-events: none;
}

#fx-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow: hidden;
  pointer-events: none;
}

.juice-local-layer {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
}

.jf-effect {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
}

.jf-pick-halo,
.jf-place-halo,
.jf-coral-halo,
.jf-coral-soft,
.jf-route-glow,
.jf-star-halo,
.jf-dialog-wave,
.jf-route-wave,
.jf-gold-rise,
.jf-attention-outline,
.jf-soft-light {
  width: var(--jf-w);
  height: var(--jf-h);
  border-radius: 18px;
  transform: translate3d(var(--jf-x), var(--jf-y), 0);
}

.jf-pick-halo {
  border: 3px solid rgba(255, 255, 255, .9);
  box-shadow: 0 0 20px rgba(242, 193, 65, .74), inset 0 0 12px rgba(255, 255, 255, .26);
}

.jf-animated.jf-pick-halo {
  animation: jf-pick-spring 260ms cubic-bezier(.22, .9, .3, 1.2) both;
}

.jf-place-halo {
  border: 3px solid rgba(242, 193, 65, .95);
  box-shadow: 0 0 24px rgba(242, 193, 65, .72), inset 0 0 16px rgba(255, 248, 230, .3);
}

.jf-animated.jf-place-halo {
  animation: jf-place-spring 430ms cubic-bezier(.22, .9, .3, 1.2) both;
}

.jf-ripple {
  width: 32px;
  height: 32px;
  border: 4px solid rgba(255, 248, 230, .95);
  border-radius: 50%;
  transform: translate3d(var(--jf-x), var(--jf-y), 0) translate(-50%, -50%) scale(.35);
}

.jf-animated.jf-ripple {
  animation: jf-ripple 430ms cubic-bezier(.2, .8, .25, 1) both;
}

.jf-puff {
  width: 13px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 8px rgba(221, 246, 255, .85);
  transform: translate3d(var(--jf-x), var(--jf-y), 0) translate(-50%, -50%);
}

.jf-animated.jf-puff {
  animation: jf-puff 430ms ease-out both;
}

.jf-coral-halo,
.jf-coral-soft {
  border: 3px solid rgba(233, 137, 120, .86);
  box-shadow: 0 0 18px rgba(233, 137, 120, .34);
  background: rgba(255, 239, 222, .12);
}

.jf-animated.jf-coral-halo {
  animation: jf-coral-attention 760ms ease-in-out both;
}

.jf-animated.jf-coral-soft {
  animation: jf-coral-soft 760ms ease-in-out both;
}

.jf-route-glow {
  border: 2px solid rgba(242, 193, 65, .9);
  box-shadow:
    0 0 16px rgba(242, 193, 65, .66),
    inset 0 0 18px rgba(255, 248, 230, .2);
  background: radial-gradient(ellipse at center, transparent 48%, rgba(242, 193, 65, .16) 78%, transparent 100%);
}

.jf-animated.jf-route-glow {
  animation: jf-route-glow 1400ms ease-in-out both;
}

.jf-gold-rise {
  border-radius: 28px;
  background: radial-gradient(
    ellipse at center,
    transparent 0 56%,
    rgba(242, 193, 65, .15) 64%,
    rgba(255, 253, 243, .12) 70%,
    transparent 84%
  );
  filter: blur(.4px);
}

.jf-animated.jf-gold-rise {
  animation: jf-gold-rise 700ms cubic-bezier(.2, .7, .25, 1) both;
}

.jf-route-wave,
.jf-dialog-wave {
  border-radius: 28px;
  background: linear-gradient(110deg, transparent 8%, rgba(255, 248, 230, .28) 44%, rgba(242, 193, 65, .2) 56%, transparent 92%);
  mask-image: linear-gradient(to bottom, transparent 4%, #000 28%, #000 72%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 28%, #000 72%, transparent 96%);
}

.jf-animated.jf-route-wave,
.jf-animated.jf-dialog-wave {
  animation: jf-gentle-wave 980ms ease-in-out both;
}

.jf-dialog-wave {
  mask-image: radial-gradient(ellipse at center, transparent 48%, #000 66%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 48%, #000 66%, transparent 88%);
}

.jf-particle {
  width: var(--jf-w);
  height: var(--jf-h);
  transform-origin: center;
  transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(.35);
}

.jf-gold {
  --jf-color: #f2c141;
  box-shadow: 0 0 7px rgba(242, 193, 65, .7);
}

.jf-snow {
  --jf-color: #fffdf3;
  box-shadow: 0 0 6px rgba(221, 246, 255, .8);
}

.jf-ice {
  --jf-color: #8fdcf3;
  filter: drop-shadow(0 0 5px rgba(143, 220, 243, .72));
}

.jf-white {
  --jf-color: #fffdf3;
  filter: drop-shadow(0 0 5px rgba(255, 253, 243, .82));
}

.jf-particle--rosette {
  border-radius: 50%;
  background: repeating-conic-gradient(
    from var(--jf-rotate),
    var(--jf-color) 0 10deg,
    transparent 10deg 42deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 12%, #000 17% 72%, transparent 76%);
  mask: radial-gradient(circle, transparent 0 12%, #000 17% 72%, transparent 76%);
}

.jf-particle--snowtrail {
  background: var(--jf-color);
  clip-path: polygon(
    45% 0, 55% 0, 57% 40%, 72% 25%, 78% 32%, 63% 48%,
    100% 45%, 100% 55%, 63% 57%, 78% 72%, 72% 78%, 57% 63%,
    55% 100%, 45% 100%, 43% 63%, 28% 78%, 22% 72%, 37% 57%,
    0 55%, 0 45%, 37% 48%, 22% 32%, 28% 25%, 43% 40%
  );
}

.jf-particle--goldrays {
  background: conic-gradient(
    from var(--jf-rotate),
    transparent 0 10deg,
    var(--jf-color) 12deg 18deg,
    transparent 20deg 45deg
  );
  clip-path: polygon(48% 0, 52% 0, 55% 45%, 100% 48%, 100% 52%, 55% 55%, 52% 100%, 48% 100%, 45% 55%, 0 52%, 0 48%, 45% 45%);
}

.jf-animated.jf-particle {
  animation: jf-particle-burst var(--jf-duration, 980ms) cubic-bezier(.18, .72, .28, 1) var(--jf-delay) both;
}

.jf-star-halo {
  border: 3px solid rgba(242, 193, 65, .92);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(242, 193, 65, .72);
}

.jf-animated.jf-star-halo {
  animation: jf-star-wake 820ms ease-out both;
}

.jf-attention-outline {
  border: 2px solid rgba(143, 220, 243, .78);
  background: rgba(255, 253, 243, .04);
  box-shadow: 0 0 16px rgba(143, 220, 243, .26);
}

.jf-animated.jf-attention-outline {
  animation: jf-attention-breathe var(--jf-duration, 2600ms) ease-in-out both;
}

.jf-celebrate-rosette,
.jf-celebrate-comet {
  width: var(--jf-size);
  height: var(--jf-size);
  border-radius: 50%;
  transform: translate3d(var(--jf-x), var(--jf-y), 0) rotate(var(--jf-angle)) scale(.1);
}

.jf-celebrate-rosette {
  background: repeating-conic-gradient(
    from var(--jf-rotate),
    var(--jf-color) 0 7deg,
    transparent 7deg 30deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 8%, #000 15% 62%, transparent 67%);
  mask: radial-gradient(circle, transparent 0 8%, #000 15% 62%, transparent 67%);
}

.jf-celebrate-comet {
  background: conic-gradient(
    from var(--jf-rotate),
    transparent 0 5deg,
    var(--jf-color) 8deg 16deg,
    transparent 19deg 42deg
  );
  clip-path: polygon(48% 0, 53% 0, 57% 44%, 100% 48%, 100% 53%, 57% 56%, 53% 100%, 48% 100%, 43% 56%, 0 53%, 0 48%, 43% 44%);
}

.jf-celebrate-rosette::after,
.jf-celebrate-comet::after {
  position: absolute;
  top: 50%;
  right: 92%;
  width: calc(var(--jf-size) * .9);
  height: 3px;
  border-radius: 50%;
  background: linear-gradient(to left, var(--jf-color), transparent);
  filter: blur(.3px);
  content: "";
  transform-origin: right center;
  opacity: .55;
}

.jf-animated.jf-celebrate-rosette,
.jf-animated.jf-celebrate-comet {
  animation: jf-celebrate-burst var(--jf-duration, 1900ms) cubic-bezier(.16, .7, .24, 1) var(--jf-delay) both;
}

.jf-edge-ray {
  width: var(--jf-w);
  height: var(--jf-h);
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(143, 220, 243, .2), rgba(255, 253, 243, .5), transparent);
  filter: blur(1px);
  transform: translate3d(var(--jf-x), var(--jf-y), 0) rotate(-12deg);
}

.jf-edge-ray.is-vertical {
  background: linear-gradient(180deg, transparent, rgba(242, 193, 65, .24), rgba(255, 253, 243, .45), transparent);
  transform: translate3d(var(--jf-x), var(--jf-y), 0) rotate(8deg);
}

.jf-animated.jf-edge-ray {
  animation: jf-edge-sweep 12s ease-in-out var(--jf-ray-delay, 0s) infinite alternate;
}

.jf-soft-light {
  border-radius: 34px;
  background: radial-gradient(ellipse at center, transparent 0 48%, rgba(255, 253, 243, .2) 63%, rgba(143, 220, 243, .1) 72%, transparent 88%);
}

.jf-animated.jf-soft-light {
  animation: jf-soft-light var(--jf-duration, 2600ms) ease-in-out both;
}

.jf-ambient {
  opacity: 0;
  transition: opacity 900ms ease;
}

.jf-ambient.is-visible {
  opacity: .42;
}

.jf-ambient-flake {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fffdf3;
  box-shadow: 0 0 7px rgba(221, 246, 255, .72);
}

.jf-ambient-glint {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(242, 193, 65, .66);
  transform: translate3d(var(--jf-x), var(--jf-y), 0) rotate(45deg) !important;
}

.jf-animated.jf-ambient,
.jf-ambient.is-visible {
  animation: jf-ambient-drift var(--jf-speed, 14s) ease-in-out var(--jf-delay, 0s) infinite alternate;
}

.jf-actor-reaction {
  position: absolute;
  z-index: 2;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.guide-card > img.jf-actor-reaction {
  position: absolute;
  inset: auto;
  box-sizing: border-box;
  margin: 0;
  max-width: none;
  filter: none;
}

.jf-actor-reaction.is-visible {
  opacity: 1;
}

img.jf-actor-reaction-base,
.high-five-art.jf-high-five-reaction-base,
.finale-characters > img.jf-finale-reaction-base {
  transition: opacity 220ms ease;
}

img.jf-actor-reaction-base.jf-reaction-base-hidden,
.high-five-art.jf-high-five-reaction-base.jf-reaction-base-hidden,
.finale-characters > img.jf-finale-reaction-base.jf-reaction-base-hidden {
  opacity: 0 !important;
}

.jf-actor-reaction[data-role="sopo"] {
  aspect-ratio: 1402 / 1122;
  object-position: center;
}

.jf-high-five-reaction {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.jf-high-five-reaction.is-visible {
  opacity: 1;
}

.finale-characters {
  position: relative;
}

.finale-characters .jf-finale-underlay,
.finale-characters .jf-high-five-reaction {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  border: 0;
  box-shadow: none;
}

.jf-finale-underlay {
  opacity: 0;
  transition: opacity 220ms ease;
}

.jf-finale-underlay.is-visible {
  opacity: 1;
}

.jf-drag-halo {
  width: 76px;
  height: 76px;
  border: 3px solid rgba(255, 255, 255, .82);
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(242, 193, 65, .42);
  transform: translate3d(var(--jf-x), var(--jf-y), 0) translate(-50%, -50%) rotate(2deg);
}

.jf-drag-halo.is-valid {
  border-color: rgba(242, 193, 65, .96);
  box-shadow: 0 0 24px rgba(242, 193, 65, .72);
}

.jf-animated.jf-drag-halo {
  animation: jf-drag-breathe 900ms ease-in-out 2 alternate both;
}

.jf-static {
  animation: none !important;
  opacity: .72;
}

@keyframes jf-pick-spring {
  0% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(.82); opacity: .25; }
  55% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(1.12); opacity: 1; }
  100% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(1); opacity: 0; }
}

@keyframes jf-place-spring {
  0% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(.74); opacity: 0; }
  48% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(1.1); opacity: 1; }
  100% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(1); opacity: 0; }
}

@keyframes jf-ripple {
  0% { transform: translate3d(var(--jf-x), var(--jf-y), 0) translate(-50%, -50%) scale(.35); opacity: .9; }
  100% { transform: translate3d(var(--jf-x), var(--jf-y), 0) translate(-50%, -50%) scale(1.55); opacity: 0; }
}

@keyframes jf-puff {
  0% { transform: translate3d(var(--jf-x), var(--jf-y), 0) translate(-50%, -50%) scale(.5); opacity: .85; }
  100% { transform: translate3d(calc(var(--jf-x) + 18px), calc(var(--jf-y) - 26px), 0) translate(-50%, -50%) scale(1.3); opacity: 0; }
}

@keyframes jf-coral-attention {
  0%, 100% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(.98); opacity: 0; }
  36%, 68% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(1.025); opacity: .95; }
}

@keyframes jf-coral-soft {
  0%, 100% { opacity: 0; }
  42%, 72% { opacity: .48; }
}

@keyframes jf-route-glow {
  0% { opacity: 0; }
  50%, 72% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes jf-gold-rise {
  0% {
    transform: translate3d(var(--jf-x), calc(var(--jf-y) + 16px), 0);
    opacity: 0;
  }
  42% { opacity: .32; }
  100% {
    transform: translate3d(var(--jf-x), var(--jf-y), 0);
    opacity: 0;
  }
}

@keyframes jf-gentle-wave {
  0% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scaleX(.9); opacity: 0; }
  42% { opacity: .8; }
  100% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scaleX(1.04); opacity: 0; }
}

@keyframes jf-particle-burst {
  0% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(.25); opacity: 0; }
  22% { opacity: .95; }
  100% {
    transform: translate3d(calc(var(--jf-x) + var(--jf-dx)), calc(var(--jf-y) + var(--jf-dy)), 0) rotate(var(--jf-rotate, 0deg)) scale(.85);
    opacity: 0;
  }
}

@keyframes jf-star-wake {
  0% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(.86); opacity: 0; }
  38%, 72% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(var(--jf-x), var(--jf-y), 0) scale(1.16); opacity: 0; }
}

@keyframes jf-drag-breathe {
  from { opacity: .58; }
  to { opacity: .95; }
}

@keyframes jf-attention-breathe {
  0%, 100% { opacity: 0; }
  32%, 72% { opacity: .82; }
}

@keyframes jf-celebrate-burst {
  0% {
    transform: translate3d(var(--jf-x), var(--jf-y), 0) rotate(var(--jf-angle)) scale(.08);
    opacity: 0;
  }
  18% { opacity: .96; }
  62% { opacity: .84; }
  100% {
    transform: translate3d(calc(var(--jf-x) + var(--jf-dx)), calc(var(--jf-y) + var(--jf-dy)), 0) rotate(calc(var(--jf-angle) + 72deg)) scale(1);
    opacity: 0;
  }
}

@keyframes jf-edge-sweep {
  0% {
    opacity: .1;
    translate: 0 -14px;
  }
  50% { opacity: .34; }
  100% {
    opacity: .14;
    translate: 12px 14px;
  }
}

@keyframes jf-soft-light {
  0%, 100% { opacity: 0; }
  24%, 72% { opacity: .22; }
}

@keyframes jf-ambient-drift {
  0% {
    transform: translate3d(var(--jf-x), var(--jf-y), 0) rotate(0deg);
    opacity: .2;
  }
  50% { opacity: .48; }
  100% {
    transform: translate3d(calc(var(--jf-x) + 12px), calc(var(--jf-y) + 34px), 0) rotate(120deg);
    opacity: .24;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jf-animated {
    display: none !important;
  }

  .jf-actor-reaction,
  .jf-high-five-reaction {
    display: none !important;
  }
}
