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

.cd {
  position: relative;
  box-sizing: border-box;
  width: min(380px, 94vw);
  text-align: center;
  padding: 24px 16px;
  isolation: isolate;
  overflow: hidden;
}

.cd__glow {
  position: absolute;
  inset: -20% -10%;
  z-index: -1;
  background: radial-gradient(circle, rgba(47, 109, 246, 0.3), transparent 70%);
  animation: cd-glow 2.6s ease-in-out infinite;
}

@keyframes cd-glow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.08);
  }
}
.cd__label {
  margin: 0 0 16px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.1em;
  color: rgba(255, 247, 230, 0.6);
}

.cd__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cd__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cd__num {
  display: block;
  min-width: 40px;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(255, 247, 230, 0.08);
  color: #fff7e6;
  font: 800 clamp(18px, 5.6vw, 24px)/1 "Space Mono", monospace;
  font-variant-numeric: tabular-nums;
}

.cd__num--s {
  background: rgba(47, 109, 246, 0.22);
  color: #fff7e6;
  animation: cd-tick 1s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
  transform-origin: center;
}

@keyframes cd-tick {
  0%, 55% {
    transform: translateY(0) scale(1);
  }
  78% {
    transform: translateY(-3px) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}
.cd__unit-label {
  font-weight: 600;
  font-size: 9px;
  line-height: 1;
  font-family: inherit;
  color: rgba(255, 247, 230, 0.5);
}

.cd__sep {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
  color: rgba(255, 247, 230, 0.72);
  margin-top: -16px;
}

@media (prefers-reduced-motion: reduce) {
  .cd__glow, .cd__num--s {
    animation: none !important;
  }
}
