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: 16px;
  justify-items: center;
  color: #ffffff;
  width: 264px;
  max-width: 100%;
}

.pg__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  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: 24px;
  line-height: 28px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.pg__cursor {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 16px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.6);
  color: #ffffff;
}

.pg__next {
  box-sizing: border-box;
  min-width: 96px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #b9a0ff;
  color: #17141a;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
}

.pg__next.is-end {
  opacity: 0.55;
  cursor: default;
}

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

.pg__trail {
  position: relative;
  width: 232px;
  height: 12px;
}

.pg__line {
  position: absolute;
  left: 0;
  top: 4px;
  width: 232px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 158, 187, 0.8);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.pg__dot {
  position: absolute;
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transform: scale(0);
  will-change: transform;
}

.pg__dot.is-cur {
  background: #ff9ebb;
}

.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__next {
    min-width: 88px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg__dot {
    transition: none;
  }
}
