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

.pg {
  display: grid;
  gap: 12px;
  justify-items: center;
  color: #ffffff;
}

.pg__card {
  display: grid;
  align-content: center;
  gap: 8px;
  width: 260px;
  height: 60px;
  box-sizing: border-box;
  padding: 8px 16px;
  border-radius: 16px;
}

.pg__card.is-mint {
  background: rgba(76, 212, 166, 0.4);
}

.pg__card.is-lilac {
  background: rgba(185, 160, 255, 0.44);
}

.pg__card.is-pink {
  background: rgba(255, 158, 187, 0.42);
}

.pg__card.is-sky {
  background: rgba(110, 200, 255, 0.42);
}

.pg__no {
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.pg__row {
  display: block;
  height: 6px;
  width: 70%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.5);
}

.pg__row--s {
  width: 44%;
}

.pg__rail {
  position: relative;
  width: 240px;
  height: 20px;
  margin-top: 24px;
  touch-action: none;
  cursor: grab;
}

.pg__rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}

.pg__fill {
  position: absolute;
  left: 0;
  top: 8px;
  width: 240px;
  height: 4px;
  border-radius: 4px;
  background: #b9a0ff;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.pg__ticks {
  position: absolute;
  inset: 0;
}

.pg__tick {
  position: absolute;
  left: 0;
  top: 4px;
  width: 2px;
  height: 12px;
  margin-left: -1px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
}

.pg__thumb {
  position: absolute;
  left: -10px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #4cd4a6;
  will-change: transform;
}

.pg__thumb:focus-visible {
  outline: 2px solid #6ec8ff;
  outline-offset: 2px;
}

.pg__bubble {
  position: absolute;
  left: 50%;
  bottom: 28px;
  min-width: 28px;
  box-sizing: border-box;
  padding: 4px 8px;
  border-radius: 8px;
  background: #ffffff;
  color: #17141a;
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
}

.pg__read {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
}

.pg__k {
  color: rgba(255, 255, 255, 0.82);
}

.pg__read b {
  color: #ff9ebb;
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}

.pg__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 340px) {
  .pg__card {
    width: 240px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg__thumb, .pg__fill {
    transition: none;
  }
}
