/* The eye position follows the 660 × 156 approved Vixtrom Kids wordmark. */
:root {
  --mascot-lid-light: #ffe265;
  --mascot-lid-mid: #ffd100;
  --mascot-lid-shadow: #f1a604;
  --mascot-lash: #986000;
  --mascot-eye-shadow: #98600066;
}

.mascot-blink {
  position: relative;
}

.mascot-blink-eye {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .mascot-blink-eye {
    position: absolute;
    display: block;
    inset: 5.1% auto auto 8.8%;
    width: 9.4%;
    height: 35.9%;
    overflow: hidden;
    pointer-events: none;
    clip-path: polygon(
      42% 0%, 58% 0%, 72% 5%, 83% 13%, 92% 24%, 97% 37%,
      100% 51%, 99% 64%, 94% 77%, 85% 88%, 72% 96%, 58% 100%,
      45% 100%, 31% 95%, 18% 86%, 9% 74%, 3% 62%, 0% 49%,
      2% 36%, 8% 24%, 16% 15%, 28% 6%
    );
  }

  .mascot-blink-eye::before,
  .mascot-blink-eye::after {
    content: "";
    position: absolute;
  }

  .mascot-blink-eye::before {
    inset: -3% 0 auto;
    height: 126%;
    border-radius: 0 0 53% 52% / 0 0 15% 15%;
    background: linear-gradient(152deg, var(--mascot-lid-light) 5%, var(--mascot-lid-mid) 50%, var(--mascot-lid-shadow));
    box-shadow: 0 1px 1px var(--mascot-eye-shadow);
    transform: translateY(-102%);
    animation: vixtrom-lid 10s ease-in-out infinite;
  }

  .mascot-blink-eye::after {
    inset: 39% 15% auto 13%;
    height: 24%;
    border-bottom: 1px solid var(--mascot-lash);
    border-radius: 50%;
    opacity: 0;
    transform: rotate(13deg);
    animation: vixtrom-lash 10s ease-in-out infinite;
  }
}

@keyframes vixtrom-lid {
  0%, 90%, 100% { transform: translateY(-102%); }
  94.2%, 95.6% { transform: translateY(0); }
}

@keyframes vixtrom-lash {
  0%, 93.7%, 96.1%, 100% { opacity: 0; }
  94.2%, 95.6% { opacity: 1; }
}
