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

.nav {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: clamp(260px, 90vw, 420px);
  padding: 8px 12px;
  border: 3px solid #17141a;
  border-radius: 0;
  background: #17141a;
  box-shadow: 8px 8px 0 #17141a;
}

.nav__brand {
  flex-shrink: 0;
  white-space: nowrap;
  color: #fff7e6;
  font-weight: 900;
  font-size: clamp(12px, 2.6vw, 14px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav__links {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav__links::-webkit-scrollbar {
  display: none;
}

.nav__link {
  box-sizing: border-box;
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
  color: rgba(255, 247, 230, 0.68);
  font-weight: 700;
  font-size: clamp(10px, 2.2vw, 12px);
  padding: 4px 8px;
  z-index: 1;
}

.nav__link--active {
  color: #fff7e6;
}

.nav__link--active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 3px solid #fff7e6;
  border-radius: 0;
  background: #ff4d1f;
  animation: stamp 2s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.nav__cta {
  box-sizing: border-box;
  flex-shrink: 0;
  white-space: nowrap;
  border: 3px solid #fff7e6;
  border-radius: 999px;
  background: #ffd23f;
  color: #17141a;
  padding: 4px 16px;
  font-weight: 800;
  font-size: clamp(10px, 2.2vw, 12px);
  box-shadow: 4px 4px 0 #fff7e6;
}

@keyframes stamp {
  0%, 40% {
    transform: scale(0.75);
    opacity: 0;
  }
  55% {
    transform: scale(1.18);
    opacity: 1;
  }
  70% {
    transform: scale(0.92);
    opacity: 1;
  }
  85%, 100% {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav__link--active::before {
    animation: none !important;
    transform: scale(1);
    opacity: 1;
  }
}
