#handZone {
  position: absolute;
  bottom: 2%;
  right: -5%;
  width: 20rem;
  transform: translateX(130%);
  transition: transform 2s ease;
}

#handZone.is-revealed {
  transform: translateX(0);
}

.hand-img {
  width: 100%;
  display: block;
  transition: opacity 0.12s ease;
}

#handClosed {
  position: relative;
  opacity: 1;
}

#handOpen {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

#handZone.is-open #handClosed {
  opacity: 0;
}

#handZone.is-open #handOpen {
  opacity: 1;
}
#handBall {
  position: absolute;
  top: -50%;
  left: 20%;
  width: 35%;
  height: auto;
  aspect-ratio: 1 / 1;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

#handBall.is-visible {
  opacity: 0.7;
  visibility: visible;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s;
  animation: coinFlip 1.5s linear infinite;
}

#handBall.is-visible:hover {
  animation: bob 2.5s ease-in-out infinite;
  opacity: 1;
}

@keyframes coinFlip {
  from {
    transform: perspective(400px) rotateY(0deg);
  }
  to {
    transform: perspective(400px) rotateY(360deg);
  }
}

/* @keyframes bob moved to base.css (shared site-wide) */
