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

.panel {
  position: relative;
  width: clamp(200px, 70vw, 260px);
  height: clamp(120px, 42vw, 150px);
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: #fff7e6;
  color: #17141a;
  box-sizing: border-box;
  padding: clamp(14px, 5vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(12px, 4vw, 18px);
}

.panel__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(12px, 3.6vw, 15px);
  line-height: 1.3;
  font-family: inherit;
}

.segmented {
  position: relative;
  display: flex;
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.08);
  overflow: hidden;
}

.segmented__slot {
  flex: 1;
}

.segmented__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 22px;
  border-radius: 999px;
  background: #2f6df6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  transform: translateX(0);
  animation: thumb-move 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes thumb-move {
  0%, 22% {
    transform: translateX(0);
  }
  33%, 55% {
    transform: translateX(32px);
  }
  66%, 88% {
    transform: translateX(64px);
  }
  100% {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .segmented__thumb {
    animation: none !important;
    transform: translateX(0);
  }
}
