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: flex;
  align-items: center;
  gap: 16px;
  color: #ffffff;
}

.pg__more {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  align-content: center;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: inherit;
  cursor: pointer;
}

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

.pg__more.is-done {
  cursor: default;
}

.pg__ring {
  position: absolute;
  inset: 0;
  width: 96px;
  height: 96px;
}

.pg__ring circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  transform-origin: 48px 48px;
}

.pg__track {
  stroke: rgba(255, 255, 255, 0.16);
}

.pg__arc {
  stroke: #b9a0ff;
  transform: rotate(-90deg);
}

.pg__more.is-done .pg__arc {
  stroke: #4cd4a6;
}

.pg__sweep {
  stroke: #ff9ebb;
  opacity: 0;
}

.pg__num {
  position: relative;
  font-size: 28px;
  line-height: 32px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.pg__label {
  position: relative;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}

.pg__grid {
  display: grid;
  grid-template-columns: repeat(8, 18px);
  gap: 4px;
}

.pg__cell {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.pg__cell.is-on.is-sky {
  background: #6ec8ff;
}

.pg__cell.is-on.is-mint {
  background: #4cd4a6;
}

.pg__cell.is-on.is-lilac {
  background: #b9a0ff;
}

.pg__cell.is-on.is-pink {
  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 {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg__arc {
    transition: none;
  }
}
