@charset "UTF-8";
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);
}

@property --idx {
  syntax: "<integer>";
  inherits: true;
  initial-value: 0;
}
.pl {
  --idx: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.pl__dock {
  position: relative;
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.pl__pill {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #2f6df6;
  transform: translateX(calc(var(--idx) * 56px));
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pl__btn {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pl__btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

.pl__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.pl__btn[aria-current=page] {
  color: #fff;
}

.pl__cap {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
}

/* 자동 재생 — 알약이 다섯 칸을 돌고 90% 안에 첫 칸으로 복귀 */
.is-demo .pl__pill {
  animation-name: pl-slide;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

.is-demo .pl__btn {
  animation-name: pl-dim;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.is-demo .pl__btn:nth-of-type(2) {
  animation-delay: 0.32s;
}

.is-demo .pl__btn:nth-of-type(3) {
  animation-delay: 0.64s;
}

.is-demo .pl__btn:nth-of-type(4) {
  animation-delay: 0.96s;
}

.is-demo .pl__btn:nth-of-type(5) {
  animation-delay: 1.28s;
}

@keyframes pl-slide {
  0%, 12% {
    transform: translateX(0);
  }
  16%, 28% {
    transform: translateX(56px);
  }
  32%, 44% {
    transform: translateX(112px);
  }
  48%, 60% {
    transform: translateX(168px);
  }
  64%, 76% {
    transform: translateX(224px);
  }
  86%, 100% {
    transform: translateX(0);
  }
}
@keyframes pl-dim {
  0% {
    color: rgba(255, 255, 255, 0.55);
  }
  4% {
    color: #fff;
  }
  16% {
    color: rgba(255, 255, 255, 0.55);
  }
  100% {
    color: rgba(255, 255, 255, 0.55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .is-demo .pl__pill,
  .is-demo .pl__btn {
    animation-name: none;
  }
  .pl__pill,
  .pl__btn {
    transition: none;
  }
}
