#cracks {
  position: absolute;
  left: 0;
  bottom: 14%;
  width: 100%;
  height: 10%;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  transform-origin: center 50%;
}
#stage[data-quake="warning"] #cracks {
  opacity: .88;
  transform: scaleY(.35);
}
#stage[data-quake="impact"] #cracks {
  opacity: 1;
  transform: scaleY(1.12);
}
#stage[data-quake="impact"] #yard {
  animation: yard-shudder .27s steps(1, end);
}
@keyframes yard-shudder {
  0% { transform: scale(1.016) translate(-2px, 2px); }
  23% { transform: scale(1.016) translate(3px, -2px); }
  46% { transform: scale(1.016) translate(-2px, 1px); }
  70% { transform: scale(1.016) translate(1px, 0); }
  100% { transform: none; }
}
@media (max-width: 640px) {
  #cracks { bottom: 18%; }
}
@media (max-height: 500px) {
  #cracks { bottom: 13%; }
}
@media (prefers-reduced-motion: reduce) {
  #stage[data-quake="impact"] #yard { animation: none; }
}
