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

.tp {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.tp__btn {
  width: 28px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.1);
  color: #17141a;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.tp__win {
  position: relative;
  overflow: hidden;
  width: 2.4ch;
  height: 1.5em;
  font-variant-numeric: tabular-nums;
}

.tp__val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  font-family: inherit;
  color: #17141a;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp__val.is-cur {
  transform: translateY(0);
}

.tp__val.is-next {
  transform: translateY(100%);
}

.tp__val.is-leaving {
  transform: translateY(-100%);
}

.tp__val.is-arriving {
  transform: translateY(0);
  transform-origin: top;
  animation: tp-arrive-jelly 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes tp-arrive-jelly {
  0% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(0) scaleY(1.15);
  }
  75% {
    transform: translateY(0) scaleY(0.95);
  }
  100% {
    transform: translateY(0) scaleY(1);
  }
}
.tp__unit {
  font-size: 12px;
  color: rgba(23, 20, 26, 0.72);
}

.tp__colon {
  font-size: 22px;
  font-weight: 700;
  color: #17141a;
  align-self: flex-start;
  margin-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .tp__val {
    transition: none;
  }
  .tp__val.is-arriving {
    animation: none !important;
    transform: translateY(0);
  }
}
