/* Cave: the whole screen is one hold-to-climb button, and it shakes when you crash. */
.toy.cave .cave-screen {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.toy.cave .cave-shake {
  animation: cave-shake 0.36s linear;
}

@keyframes cave-shake {
  0%,
  100% {
    transform: translate(0, 0);
  }
  15% {
    transform: translate(-5px, 2px);
  }
  30% {
    transform: translate(4px, -3px);
  }
  45% {
    transform: translate(-3px, 3px);
  }
  60% {
    transform: translate(3px, -1px);
  }
  80% {
    transform: translate(-1px, 1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toy.cave .cave-shake {
    animation: none;
  }
}
