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

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  color: #c93000;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chip__digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 26px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 77, 31, 0.1);
  font-size: 19px;
  flex: 0 0 auto;
}

.chip__digit-track {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
}
.chip__digit-track span {
  display: block;
  width: 18px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  color: #17141a;
}

.stage.is-demo .chip__digit-track {
  animation: tick 2s steps(10) infinite;
}

@keyframes tick {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-260px);
  }
}
.chip {
  position: relative;
}

.chip::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 2px solid rgba(255, 77, 31, 0);
  transform: scale(0.9);
  pointer-events: none;
}

.stage.is-demo .chip {
  animation: chip-expire 2s ease-out infinite;
}

.stage.is-demo .chip::after {
  animation: expire-ring 2s ease-out infinite;
}

@keyframes chip-expire {
  0%, 88% {
    background-color: #fff;
  }
  94% {
    background-color: rgb(100%, 91.6235294118%, 89.4588235294%);
  }
  100% {
    background-color: #fff;
  }
}
@keyframes expire-ring {
  0%, 88% {
    transform: scale(0.9);
    opacity: 0;
    border-color: rgba(255, 77, 31, 0);
  }
  92% {
    transform: scale(1);
    opacity: 0.8;
    border-color: rgba(100%, 42.7843137255%, 27.6862745098%, 0.85);
  }
  100% {
    transform: scale(1.12);
    opacity: 0;
    border-color: rgba(100%, 42.7843137255%, 27.6862745098%, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage.is-demo .chip__digit-track {
    animation: none;
  }
  .stage.is-demo .chip {
    animation: none;
  }
  .stage.is-demo .chip::after {
    animation: none;
    opacity: 0;
  }
}
