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

.flip {
  margin: 0;
  display: flex;
  gap: clamp(2px, 1vw, 8px);
  font-weight: 800;
  font-size: clamp(32px, 12vw, 52px);
  line-height: 1;
  font-family: inherit;
  color: #17141a;
  perspective: 480px;
}
.flip span {
  display: inline-block;
  backface-visibility: hidden;
  animation: flip-in 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite, letter-blur-in 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  animation-delay: calc(var(--i) * 70ms + var(--n) * 60ms);
}

@keyframes flip-in {
  0%, 4% {
    opacity: 0;
    transform: rotateX(90deg);
  }
  30%, 74% {
    opacity: 1;
    transform: rotateX(0deg);
  }
  94%, 100% {
    opacity: 0;
    transform: rotateX(-90deg);
  }
}
@keyframes letter-blur-in {
  0%, 4% {
    filter: blur(9px);
  }
  30%, 74% {
    filter: blur(0);
  }
  94%, 100% {
    filter: blur(9px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .flip span {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}
