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

.sg {
  box-sizing: border-box;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.sg__label {
  display: block;
  font-size: 10px;
  line-height: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 8px;
}

.sg__track {
  position: relative;
  box-sizing: border-box;
  width: 232px;
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.sg__track:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: 4px;
}

.sg__pill {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 56px;
  height: 34px;
  border-radius: 999px;
  background: #2f6df6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.sg__cell {
  position: relative;
  z-index: 1;
  flex: 0 0 56px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: color 220ms cubic-bezier(0.2, 1.4, 0.4, 1);
}

.sg__cell[aria-selected=true] {
  color: #fff;
}

.sg__cell--out {
  color: rgba(255, 255, 255, 0.72);
  cursor: not-allowed;
}

.sg__cell--out::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.32);
  transform: rotate(-14deg);
}

.sg__note {
  margin: 8px 0 0;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.sg.is-demo .sg__pill {
  animation: sg-slide 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

@keyframes sg-slide {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(56px);
  }
  50% {
    transform: translateX(112px);
  }
  75% {
    transform: translateX(56px);
  }
  100% {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sg.is-demo .sg__pill {
    animation: none !important;
  }
  .sg__pill, .sg__cell {
    transition: none;
  }
}
