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

.nv {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
}

.nv__bar {
  display: flex;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
  width: min(100%, 420px);
  padding: 8px 12px;
  background: #ffffff;
  border: 3px solid #17141a;
  border-radius: 999px;
}

.nv__logo {
  display: flex;
  gap: 4px;
  width: 34px;
  height: 34px;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  background: #fff7e6;
  border: 3px solid #17141a;
  border-radius: 50%;
}

.nv__eye {
  position: relative;
  overflow: hidden;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border: 2px solid #17141a;
  border-radius: 50%;
}

.nv__pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  background: #17141a;
  border-radius: 50%;
}

.nv__items {
  position: relative;
  display: flex;
  gap: 8px;
  flex: 1;
}

.nv__pill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 30px;
  margin-top: -15px;
  background: #ffd23f;
  border-radius: 999px;
  will-change: transform, width;
}

.nv__item {
  position: relative;
  z-index: 1;
  appearance: none;
  border: 0;
  padding: 4px 12px;
  background: transparent;
  color: #17141a;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(12px, 3vw, 14px);
  line-height: 1.4;
  border-radius: 999px;
  cursor: pointer;
}

.nv__item:focus-visible {
  outline: 3px solid #2f6df6;
  outline-offset: 2px;
}

.nv__hint {
  margin: 0;
  color: #17141a;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 11px);
}

.nv.is-demo .nv__pill {
  animation: nvSlide 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.nv.is-demo .nv__pupil {
  animation: nvPeek 2s ease-out infinite;
}

@keyframes nvSlide {
  0%, 10% {
    transform: translate3d(var(--p0x, 2px), 0, 0);
    width: var(--p0w, 44px);
  }
  30%, 40% {
    transform: translate3d(var(--p1x, 70px), 0, 0);
    width: var(--p1w, 56px);
  }
  60%, 70% {
    transform: translate3d(var(--p2x, 150px), 0, 0);
    width: var(--p2w, 56px);
  }
  90%, 100% {
    transform: translate3d(var(--p0x, 2px), 0, 0);
    width: var(--p0w, 44px);
  }
}
@keyframes nvPeek {
  0%, 10% {
    transform: translate3d(-2.5px, 0, 0);
  }
  30%, 70% {
    transform: translate3d(2.5px, 0, 0);
  }
  90%, 100% {
    transform: translate3d(-2.5px, 0, 0);
  }
}
@media (max-width: 340px) {
  .nv {
    gap: 8px;
  }
  .nv__bar {
    gap: 12px;
    padding: 8px;
  }
  .nv__logo {
    width: 28px;
    height: 28px;
  }
  .nv__item {
    padding: 4px 8px;
  }
  .nv.is-demo .nv__pill {
    animation-name: nvSlideNarrow;
  }
}
@keyframes nvSlideNarrow {
  0%, 10% {
    transform: translate3d(var(--p0x, 2px), 0, 0);
    width: var(--p0w, 34px);
  }
  30%, 40% {
    transform: translate3d(var(--p1x, 52px), 0, 0);
    width: var(--p1w, 44px);
  }
  60%, 70% {
    transform: translate3d(var(--p2x, 112px), 0, 0);
    width: var(--p2w, 44px);
  }
  90%, 100% {
    transform: translate3d(var(--p0x, 2px), 0, 0);
    width: var(--p0w, 34px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nv.is-demo .nv__pill,
  .nv.is-demo .nv__pupil {
    animation: none !important;
  }
  .nv.is-demo .nv__pill {
    transform: translate3d(var(--p0x, 2px), 0, 0) !important;
    width: var(--p0w, 44px) !important;
  }
}
