/* ==========================================================================
   Zeytin the kitten and the sticker set (drawn in assets/js/kitten.js).
   ========================================================================== */

/* A thin moonlit rim keeps a black kitten readable on a dark page. */
.kitten {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 0 1.2px rgba(232, 223, 202, 0.75)) drop-shadow(0 0 8px rgba(232, 223, 202, 0.12));
}

.kitten__head {
  transform-box: view-box;
  transform-origin: 60px 84px;
}

.kitten--idle .kitten__head {
  animation: kitten-bob 2.8s ease-in-out infinite;
}

.kitten.is-headbanging .kitten__head {
  animation: kitten-headbang 0.26s ease-in-out infinite alternate;
}

.kitten__tail {
  transform-box: view-box;
  transform-origin: 82px 100px;
  animation: kitten-swish 3.2s ease-in-out infinite alternate;
}

.kitten__eye {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: kitten-blink 5.2s ease-in-out infinite;
}

.kitten__z {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  transform-box: fill-box;
  opacity: 0;
  animation: kitten-z 3s ease-in-out infinite;
}

/* Die-cut sticker: a white border traced around the shape, and a little lift. */
.sticker {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter:
    drop-shadow(1.6px 0 0 #fff)
    drop-shadow(-1.6px 0 0 #fff)
    drop-shadow(0 1.6px 0 #fff)
    drop-shadow(0 -1.6px 0 #fff)
    drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35));
}

@keyframes kitten-blink {
  0%, 90%, 100% { transform: scaleY(1); }
  93% { transform: scaleY(0.08); }
  96% { transform: scaleY(1); }
}

@keyframes kitten-swish {
  from { transform: rotate(-6deg); }
  to { transform: rotate(9deg); }
}

@keyframes kitten-bob {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2.5deg) translateY(1px); }
}

@keyframes kitten-headbang {
  from { transform: rotate(-5deg) translateY(-1px); }
  to { transform: rotate(11deg) translateY(4px); }
}

@keyframes kitten-z {
  0% { opacity: 0; transform: translate(0, 4px); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translate(6px, -10px); }
}

@media (prefers-reduced-motion: reduce) {
  .kitten__head,
  .kitten__tail,
  .kitten__eye {
    animation: none !important;
  }
}
