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

.stage {
  position: relative;
}

.nspdi {
  width: min(220px, 68vw);
}

.nspdi__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-radius: 16px;
  background: #ffffff;
}

.nspdi__label {
  color: rgba(23, 20, 26, 0.72);
  font-weight: 700;
  font-size: 12px;
}

.nspdi__body {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nspdi__track {
  position: relative;
  width: 28px;
  height: 96px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.1);
  display: grid;
  place-items: center;
  touch-action: none;
}

.nspdi__handle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #0a4fe8;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  cursor: grab;
  transform: translateY(0);
  transition: box-shadow 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nspdi__handle--active {
  cursor: grabbing;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.nspdi__value {
  color: #17141a;
  font-weight: 700;
  font-size: 30px;
  font-variant-numeric: tabular-nums;
}
.nspdi__value small {
  font-size: 16px;
  font-weight: 700;
}

.nspdi__hint {
  color: rgba(23, 20, 26, 0.72);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 340px) {
  .nspdi__panel {
    padding: 12px;
    gap: 4px;
  }
  .nspdi__track {
    height: 64px;
  }
  .nspdi__value {
    font-size: 22px;
  }
  .nspdi__hint {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nspdi__handle {
    transition: none !important;
  }
}
