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;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.tp__track {
  position: relative;
  width: 76px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #b9a0ff;
  cursor: pointer;
  padding: 0;
}

.tp__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(var(--x, 0));
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp__ic {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #17141a;
}

.tp__ic--sun {
  left: 8px;
}

.tp__ic--moon {
  right: 8px;
}

.tp__card {
  width: min(100%, 200px);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  background: #ff9ebb;
  transition: background 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tp__card[data-theme=dark] {
  background: #17141a;
}

.tp__label {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(23, 20, 26, 0.6);
}

.tp__card[data-theme=dark] .tp__label {
  color: rgba(255, 255, 255, 0.6);
}

.tp__value {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #17141a;
}

.tp__card[data-theme=dark] .tp__value {
  color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .tp__knob, .tp__card {
    transition: none !important;
  }
}
