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

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

.navbar {
  --item-w: clamp(32px, 12vw, 64px);
  display: flex;
  align-items: center;
  gap: 16px;
  width: clamp(240px, 84vw, 380px);
  border-radius: 999px;
  background: rgba(23, 20, 26, 0.92);
  border: 1px solid rgba(255, 247, 230, 0.1);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  padding: 8px 8px 8px 16px;
  backdrop-filter: blur(10px);
}

.navbar__brand {
  flex: 0 0 auto;
  color: #fff7e6;
  font: 700 clamp(12px, 3vw, 14px)/1 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.navbar__items {
  position: relative;
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  background: rgba(255, 247, 230, 0.05);
  border-radius: 999px;
  padding: 4px;
}

.navbar__pill {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: var(--item-w);
  border-radius: 999px;
  background: #0a4fe8;
  animation: pillMove 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.navbar__item {
  position: relative;
  z-index: 1;
  flex: 0 0 var(--item-w);
  width: var(--item-w);
  text-align: center;
  padding: 8px 0;
  color: rgba(255, 247, 230, 0.9);
  font-weight: 600;
  font-size: clamp(10.5px, 2.6vw, 12px);
  line-height: 1;
}

.navbar__cta {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #0a4fe8;
  color: #fff7e6;
  padding: 8px 16px;
  font-weight: 600;
  font-size: clamp(10.5px, 2.6vw, 12px);
  line-height: 1;
}

@keyframes pillMove {
  0%, 20% {
    transform: translateX(0);
  }
  50%, 70% {
    transform: translateX(calc(var(--item-w) + 4px));
  }
  100% {
    transform: translateX(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .navbar__pill {
    animation: none !important;
    transform: translateX(0);
  }
}
