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

.navhud {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
  width: clamp(260px, 84vw, 420px);
  padding: 8px 12px;
  border-radius: 12px;
  background: #17141a;
  box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.4), 0 0 24px rgba(255, 210, 63, 0.16);
}

.navhud__brand {
  flex: none;
  color: #fff7e6;
  font-weight: 800;
  font-size: clamp(12px, 3vw, 13px);
  line-height: 1;
  font-family: inherit;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.navhud__track {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

.navhud__item {
  padding: 4px 0;
  color: rgba(255, 247, 230, 0.55);
  font-weight: 600;
  font-size: clamp(10px, 2.6vw, 11px);
  line-height: 1;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navhud__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 25%;
  height: 2px;
  background: #ffd23f;
  animation: navScan 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes navScan {
  0%, 20% {
    transform: translateX(0);
  }
  25%, 45% {
    transform: translateX(100%);
  }
  50%, 70% {
    transform: translateX(200%);
  }
  75%, 95% {
    transform: translateX(300%);
  }
  100% {
    transform: translateX(0);
  }
}
.navhud__status {
  flex: none;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffd23f;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: clamp(9px, 2.2vw, 10px);
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.navhud__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd23f;
  animation: blink 2s steps(1) infinite;
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0.2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .navhud__indicator, .navhud__dot {
    animation: none !important;
  }
  .navhud__indicator {
    transform: translateX(0);
  }
  .navhud__dot {
    opacity: 1;
  }
}
