html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.squash {
  border: 0;
  cursor: pointer;
  padding: 16px 40px;
  border-radius: 12px;
  background: #ff9ebb;
  color: #17141a;
  font-family: inherit;
  font-size: clamp(17px, 5vw, 22px);
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transform-origin: center bottom;
}

.squash.is-demo {
  animation: squash-press 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes squash-press {
  0%, 34% {
    transform: scale(1, 1);
    box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  }
  46% {
    transform: scale(1.06, 0.88);
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  }
  60% {
    transform: scale(0.97, 1.06);
    box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  }
  72% {
    transform: scale(1.02, 0.98);
    box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  }
  86%, 100% {
    transform: scale(1, 1);
    box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  }
}
.squash:active {
  animation: none;
  transform: scale(1.06, 0.88);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

@media (prefers-reduced-motion: reduce) {
  .squash.is-demo {
    animation: none;
  }
  .squash:active {
    transform: none;
  }
}
