/*
 * Quiet cat effects. Loaded only when at least one effect is enabled.
 * All decorative layers sit below the sticky header/menu and ignore input.
 */
.ycc-cat-walk,
.ycc-paw-pop {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  user-select: none;
}

.ycc-cat-walk {
  top: var(--ycc-cat-walk-line, 84px);
  left: 0;
  width: clamp(72px, 6.5vw, 96px);
  opacity: 0.78;
  contain: layout paint;
  will-change: transform;
}

.ycc-cat-walk--ltr {
  animation: ycc-cat-cross-ltr var(--ycc-cat-cross-duration, 11s) linear forwards;
}

.ycc-cat-walk--rtl {
  animation: ycc-cat-cross-rtl var(--ycc-cat-cross-duration, 11s) linear forwards;
}

.ycc-cat-walk__figure {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 2px rgba(47, 35, 30, 0.12));
  transform-origin: center bottom;
  animation: ycc-cat-step 0.58s ease-in-out infinite;
  will-change: transform;
}

.ycc-cat-walk--rtl .ycc-cat-walk__figure {
  --ycc-cat-facing: -1;
}

.ycc-paw-pop {
  width: var(--ycc-paw-size, 25px);
  height: var(--ycc-paw-size, 25px);
  opacity: 0;
  transform: translate3d(-50%, -45%, 0) rotate(var(--ycc-paw-rotation, 0deg)) scale(0.72);
  animation: ycc-paw-float var(--ycc-paw-duration, 0.72s) ease-out forwards;
  will-change: transform, opacity;
}

.ycc-cat-walk.is-paused,
.ycc-cat-walk.is-paused .ycc-cat-walk__figure {
  animation-play-state: paused;
}

@keyframes ycc-cat-cross-ltr {
  from { transform: translate3d(-125px, 0, 0); }
  to { transform: translate3d(calc(100vw + 125px), 0, 0); }
}

@keyframes ycc-cat-cross-rtl {
  from { transform: translate3d(calc(100vw + 125px), 0, 0); }
  to { transform: translate3d(-125px, 0, 0); }
}

@keyframes ycc-cat-step {
  0%, 100% { transform: translate3d(0, 0, 0) scaleX(var(--ycc-cat-facing, 1)) rotate(-0.5deg); }
  50% { transform: translate3d(0, -2.5px, 0) scaleX(var(--ycc-cat-facing, 1)) rotate(0.7deg); }
}

@keyframes ycc-paw-float {
  0% {
    opacity: 0;
    transform: translate3d(-50%, -40%, 0) rotate(var(--ycc-paw-rotation, 0deg)) scale(0.68);
  }
  22% { opacity: 0.58; }
  100% {
    opacity: 0;
    transform: translate3d(-50%, calc(-50% - 22px), 0) rotate(calc(var(--ycc-paw-rotation, 0deg) + 12deg)) scale(1.05);
  }
}

@media (max-width: 767px) {
  .ycc-cat-walk {
    width: 62px;
    opacity: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ycc-cat-walk,
  .ycc-paw-pop {
    display: none !important;
    animation: none !important;
  }
}
