.rabbit {
  --rabbit-size: clamp(90px, 12vw, 139px);
  --rabbit-arc-height: clamp(48px, 8vw, 100px);
  --rabbit-jump-x: 0px;
  --rabbit-jump-y: 0px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: calc(var(--rabbit-size) + var(--rabbit-arc-height));
  pointer-events: none;
}

.rabbit__spot {
  position: absolute;
  bottom: 0;
  width: var(--rabbit-size);
  height: var(--rabbit-size);
}

.rabbit__spot:nth-child(1) {
  left: 2%;
}

.rabbit__spot:nth-child(2) {
  left: 22%;
}

.rabbit__spot:nth-child(3) {
  left: 44%;
}

.rabbit__spot:nth-child(4) {
  left: 66%;
}

.rabbit__spot:nth-child(5) {
  left: auto;
  right: 2%;
}

.rabbit__figure {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  width: var(--rabbit-size);
  height: calc(var(--rabbit-size) * 129 / 139);
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  pointer-events: auto;
  transform-origin: center bottom;
  will-change: transform;
}

.rabbit__figure:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.rabbit__figure.is-jumping {
  animation: rabbit-hop 0.52s cubic-bezier(0.22, 0.8, 0.28, 1) forwards;
  pointer-events: none;
}

.rabbit__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  transform-origin: center bottom;
  filter:
    drop-shadow(0 1px 1px rgba(45, 73, 94, 0.45))
    drop-shadow(0 3px 5px rgba(45, 73, 94, 0.28));
}

.entertainment.is-winter .rabbit__img {
  filter:
    drop-shadow(0 1px 1px rgba(20, 28, 34, 0.55))
    drop-shadow(0 3px 6px rgba(20, 28, 34, 0.4));
}

.rabbit__figure.is-flipped .rabbit__img {
  transform: scaleX(-1);
}

@keyframes rabbit-hop {
  0% {
    transform: translate(0, 0);
  }

  45% {
    transform: translate(
      calc(var(--rabbit-jump-x) * 0.5),
      calc(var(--rabbit-arc-height) * -1)
    );
  }

  100% {
    transform: translate(var(--rabbit-jump-x), var(--rabbit-jump-y));
  }
}

@media (prefers-reduced-motion: reduce) {
  .rabbit__figure.is-jumping {
    animation: none;
  }
}

@media (max-width: 600px) {
  .rabbit__spot:nth-child(2),
  .rabbit__spot:nth-child(4) {
    display: none;
  }

  .rabbit__spot:nth-child(1) {
    left: 4%;
  }

  .rabbit__spot:nth-child(3) {
    left: 50%;
    margin-left: calc(var(--rabbit-size) / -2);
  }

  .rabbit__spot:nth-child(5) {
    right: 4%;
  }
}
