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);
}

.cs-grid {
  display: grid;
  grid-template-columns: repeat(2, 56px);
  grid-auto-rows: 56px;
  gap: 12px;
}

.cs-cell {
  display: grid;
  place-items: center;
}

.cs-cube {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #b9a0ff;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.is-loading .cs-cell,
.is-demo .cs-cell {
  animation: cs-settle 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.is-loading .cs-cube,
.is-demo .cs-cube {
  animation: cs-pop 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite backwards;
}

.is-loading .cs-cell:nth-child(1) .cs-cube,
.is-demo .cs-cell:nth-child(1) .cs-cube {
  animation-delay: 0s;
}

.is-loading .cs-cell:nth-child(2) .cs-cube,
.is-demo .cs-cell:nth-child(2) .cs-cube {
  animation-delay: 120ms;
}

.is-loading .cs-cell:nth-child(3) .cs-cube,
.is-demo .cs-cell:nth-child(3) .cs-cube {
  animation-delay: 240ms;
}

.is-loading .cs-cell:nth-child(4) .cs-cube,
.is-demo .cs-cell:nth-child(4) .cs-cube {
  animation-delay: 360ms;
}

@keyframes cs-pop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  16% {
    transform: scale(1.18);
    opacity: 1;
  }
  22%, 68% {
    transform: scale(1);
    opacity: 1;
  }
  90%, 100% {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes cs-settle {
  0%, 60% {
    transform: translateY(0);
  }
  70% {
    transform: translateY(8px);
  }
  80%, 100% {
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-loading .cs-cell,
  .is-loading .cs-cube,
  .is-demo .cs-cell,
  .is-demo .cs-cube {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
