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

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff7e6;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(14px, 4vw, 18px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: scale(0.5) rotate(-8deg);
}

.badge.is-demo {
  animation: pop-spin-loop 2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes pop-spin-loop {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-8deg);
  }
  20% {
    opacity: 1;
    transform: scale(1.08) rotate(3deg);
  }
  32% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  70% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(-8deg);
  }
}
.badge.is-appear {
  animation: pop-spin 900ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes pop-spin {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(-8deg);
  }
  60% {
    opacity: 1;
    transform: scale(1.08) rotate(3deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge.is-demo, .badge.is-appear {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
