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

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

.sq-scene {
  position: relative;
  width: 112px;
  height: 164px;
}

.sq-ball {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 56px;
  height: 56px;
  margin-left: -28px;
  border-radius: 50%;
  background: #2f6df6;
  transform-origin: 50% 100%;
}

.sq-shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 4px;
  margin-left: -28px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.22);
}

.sq-floor {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #17141a;
}

.sq-scene.is-loading .sq-ball,
.sq-scene.is-demo .sq-ball {
  animation: sq-bounce 1s cubic-bezier(0.45, 0, 0.8, 0.6) infinite;
}

.sq-scene.is-loading .sq-shadow,
.sq-scene.is-demo .sq-shadow {
  animation: sq-shadow-pulse 1s cubic-bezier(0.45, 0, 0.8, 0.6) infinite;
}

@keyframes sq-bounce {
  0% {
    transform: translateY(-98px) scale(1, 1);
  }
  55% {
    transform: translateY(0) scale(1, 1);
  }
  68% {
    transform: translateY(0) scale(1.28, 0.55);
  }
  80% {
    transform: translateY(0) scale(0.92, 1.08);
  }
  100% {
    transform: translateY(-98px) scale(1, 1);
  }
}
@keyframes sq-shadow-pulse {
  0%, 100% {
    transform: scale(0.5);
    opacity: 0.3;
  }
  55%, 80% {
    transform: scale(1.05);
    opacity: 0.75;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sq-scene.is-loading .sq-ball,
  .sq-scene.is-demo .sq-ball {
    animation: none !important;
    transform: translateY(-40px) !important;
  }
  .sq-scene.is-loading .sq-shadow,
  .sq-scene.is-demo .sq-shadow {
    animation: none !important;
    opacity: 0.5 !important;
    transform: scale(0.8) !important;
  }
}
