html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: rgb(94.1176470588%, 92.1176470588%, 98.4705882353%);
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.navcandy {
  box-sizing: border-box;
  width: clamp(280px, 92vw, 440px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(205, 188, 242, 0.55);
}

.navcandy__brand {
  flex: 0 0 auto;
  padding-left: 12px;
  color: #55395e;
  font-weight: 700;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1;
}

.navcandy__track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  border-radius: 999px;
  background: rgb(100%, 97.8823529412%, 96.4705882353%);
}

.navcandy__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(25% - 4px);
  box-sizing: border-box;
  border-radius: 999px;
  background: #b5e8d2;
  box-shadow: 0 4px 10px rgba(181, 232, 210, 0.9);
  animation: pillWalk 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.navcandy__tab {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 0;
  text-align: center;
  color: rgba(85, 57, 94, 0.78);
  font-weight: 600;
  font-size: clamp(10px, 2.4vw, 12px);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navcandy__tab--on {
  color: #55395e;
  font-weight: 700;
}

.navcandy__cta {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #ffb9cf;
  color: #55395e;
  padding: 8px 16px;
  font-weight: 700;
  font-size: clamp(10px, 2.4vw, 12px);
  line-height: 1;
  box-shadow: 0 5px 12px rgba(255, 185, 207, 0.7);
}

.navcandy__cta:focus-visible {
  outline: 3px solid #55395e;
  outline-offset: 2px;
}

@keyframes pillWalk {
  0%, 24% {
    transform: translateX(0) scaleY(1);
  }
  30% {
    transform: translateX(0) scaleY(0.82);
  }
  36%, 49% {
    transform: translateX(calc(100% + 4px)) scaleY(1);
  }
  55% {
    transform: translateX(calc(100% + 4px)) scaleY(0.82);
  }
  61%, 74% {
    transform: translateX(calc(200% + 8px)) scaleY(1);
  }
  80% {
    transform: translateX(calc(200% + 8px)) scaleY(0.82);
  }
  86%, 100% {
    transform: translateX(calc(300% + 12px)) scaleY(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .navcandy__pill {
    animation: none !important;
    transform: none;
  }
}
