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;
  width: min(100%, 280px);
}

.pg__view {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.pg__card {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  will-change: transform, opacity;
}

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

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

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

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

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

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

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

.pg__b {
  box-sizing: border-box;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  cursor: pointer;
}

.pg__b--jump {
  width: 40px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
}

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

.pg__count {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 48px;
  justify-content: center;
  font-size: 13px;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
}

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

.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__b {
    width: 32px;
    height: 32px;
  }
  .pg__b--jump {
    width: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg__card {
    transition: none;
  }
}
