/* Live pigs in the UI (Vova 2026-12-03). Pig pictures with a clip play it on hover / tap (public/js/fun.js): the video
   lies over the still picture (absolutely positioned sibling, no layout shift) and is visible only while it plays.
   Pictures without a clip (the logo) wiggle on hover and hop on click; individual translate / rotate / scale properties
   add to any existing transform. */
.pigclip { position: absolute; margin: 0; padding: 0; max-width: none; max-height: none; object-fit: fill; pointer-events: none; opacity: 0; animation: none; transform: none; }
.pigclip.on { opacity: 1; }
.fun { transform-origin: 50% 90%; }
.fun.wig { animation: fun-wig .7s ease-in-out; }
.fun.hop { animation: fun-hop .55s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes fun-wig {
  0%, 100% { rotate: 0deg; scale: 1; }
  20% { rotate: -6deg; scale: 1.04; }
  45% { rotate: 5deg; scale: 1.05; }
  70% { rotate: -3deg; scale: 1.03; }
}
@keyframes fun-hop {
  0% { translate: 0 0; scale: 1 1; }
  20% { translate: 0 0; scale: 1.08 .9; }
  50% { translate: 0 -14%; scale: .95 1.06; }
  80% { translate: 0 0; scale: 1.06 .94; }
  100% { translate: 0 0; scale: 1 1; }
}
@media (prefers-reduced-motion: reduce) { .fun.wig, .fun.hop { animation: none !important; } }
