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

@property --min {
  syntax: "<integer>";
  initial-value: 12;
  inherits: false;
}
.time {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  font-family: inherit;
}

.time__num {
  --min: 12;
  counter-reset: min var(--min);
  color: #fff7e6;
  font-weight: 800;
  font-size: clamp(34px, 11vw, 46px);
  line-height: 1;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}
.time__num::before {
  content: counter(min);
}
@supports (animation-timeline: scroll()) {
  .time__num {
    animation: count-down linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes count-down {
  from {
    --min: 12;
  }
  to {
    --min: 0;
  }
}
.time.is-demo .time__num {
  animation: count-down-loop 2s linear infinite;
}

@keyframes count-down-loop {
  0% {
    --min: 12;
  }
  92% {
    --min: 0;
  }
  100% {
    --min: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .time__num, .time.is-demo .time__num {
    animation: none !important;
    --min: 0;
  }
}
