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;
  width: min(100%, 264px);
  justify-items: center;
  color: #ffffff;
}

.pg__card {
  display: grid;
  align-content: center;
  gap: 8px;
  height: 64px;
  box-sizing: border-box;
  padding: 8px 16px;
  border-radius: 16px;
  will-change: transform;
}

.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__nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pg__b {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: #b9a0ff;
  color: #17141a;
  font-family: inherit;
  font-size: 22px;
  line-height: 24px;
  font-weight: 700;
  cursor: pointer;
  will-change: transform;
}

.pg__b.is-edge {
  opacity: 0.55;
  cursor: default;
}

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

.pg__count {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  min-width: 64px;
  font-size: 14px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
  will-change: transform;
}

.pg__count b {
  font-size: 24px;
  line-height: 28px;
  color: #4cd4a6;
}

.pg__tension {
  position: relative;
  width: 160px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.pg__tl, .pg__tr {
  position: absolute;
  top: 0;
  width: 50%;
  height: 4px;
  background: #ff9ebb;
}

.pg__tl {
  right: 50%;
  transform-origin: 100% 50%;
  transform: scaleX(0);
}

.pg__tr {
  left: 50%;
  transform-origin: 0 50%;
  transform: scaleX(0);
}

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

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

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

.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__nav {
    gap: 12px;
  }
  .pg__b {
    width: 44px;
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg__b, .pg__count, .pg__card {
    transform: none;
  }
}
