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 {
  width: min(400px, 92vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(4px, 1vw, 16px);
  background: #fff7e6;
  border-radius: 999px;
  padding: 8px 8px 8px clamp(4px, 1.6vw, 16px);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
}

.navbar__brand {
  display: inline-flex;
  transform-origin: left center;
  color: #17141a;
  font-weight: 800;
  font-size: clamp(17px, 4.6vw, 23px);
  line-height: 1;
  letter-spacing: 0.01em;
  animation: brand-shrink 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes brand-shrink {
  0%, 15% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.78);
  }
  85%, 100% {
    transform: scale(1);
  }
}
.char {
  display: inline-block;
  animation: char-flow 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.char--space {
  width: 0.28em;
}

@keyframes char-flow {
  0%, 4% {
    transform: translate(var(--nx0, 0), var(--ny0, 14px)) rotate(var(--nr0, 0deg)) scale(0.55);
    opacity: 0;
  }
  16% {
    transform: translate(var(--wx, 0), var(--wy, 4px)) rotate(var(--wr, 0deg)) scale(1.08);
    opacity: 1;
  }
  30%, 78% {
    transform: translate(0, 0) rotate(0deg) scale(1);
    opacity: 1;
  }
  96%, 100% {
    transform: translate(var(--nx0, 0), var(--ny0, 14px)) rotate(var(--nr0, 0deg)) scale(0.55);
    opacity: 0;
  }
}
.navbar__right {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 16px);
}

.navbar__link {
  color: #17141a;
  opacity: 0.68;
  font-weight: 600;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1;
}

.navbar__cta {
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #fff7e6;
  padding: 8px clamp(4px, 1.6vw, 16px);
  font-weight: 700;
  font-size: clamp(11px, 2.6vw, 13px);
  line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
  .navbar__brand {
    animation: none;
    transform: none;
  }
  .char {
    animation: none;
    transform: none;
    opacity: 1;
  }
}
