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

.pgn {
  width: min(100%, 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pgn__panel {
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.pgn__nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pgn__navBtn {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.pgn__navBtn:disabled {
  opacity: 0.35;
  cursor: default;
}
.pgn__navBtn:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.pgn__dots {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
}

.pgn__track {
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #5b8cf8;
  transform: translate(var(--track-x, 0px), -50%);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.pgn__dot {
  box-sizing: border-box;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  padding: 0;
  cursor: pointer;
}
.pgn__dot:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 3px;
}

@media (max-width: 340px) {
  .pgn__panel {
    min-height: 60px;
    font-size: 12px;
  }
  .pgn__dots {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pgn__track {
    transition: none;
  }
}
