/* Nayth — shared nav shell, loaded across shop / maps / reader */

/* ── Full bar (default / "push" mode — React apps, no full-bleed canvas) ── */
#nayth-shell {
  --ns-navy: #172e3e;
  --ns-gold: #c9963a;
  --ns-cream: #f5efe6;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2147483000;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  background: rgba(23, 46, 62, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 150, 58, 0.4);
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

#nayth-shell * {
  box-sizing: border-box;
}

#nayth-shell a {
  text-decoration: none;
}

#nayth-shell .ns-logo {
  color: var(--ns-cream);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  white-space: nowrap;
}

#nayth-shell .ns-links {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
#nayth-shell .ns-links::-webkit-scrollbar { display: none; }

#nayth-shell .ns-link {
  color: rgba(245, 239, 230, 0.6);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

#nayth-shell .ns-link:hover {
  color: var(--ns-cream);
}

#nayth-shell .ns-link.ns-active {
  color: var(--ns-gold);
  border-color: rgba(201, 150, 58, 0.4);
  background: rgba(201, 150, 58, 0.08);
}

@media (max-width: 480px) {
  #nayth-shell { height: 36px; padding: 0 10px; }
  #nayth-shell .ns-logo { font-size: 12px; }
  #nayth-shell .ns-link { font-size: 10px; padding: 4px 8px; }
}

/* ── Floating pill (overlay mode — full-bleed canvas apps like Godot) ──
   A full-width top bar would cover the app's own on-canvas menu, so
   overlay mode collapses to a small corner button instead, expanding
   into the links only when tapped. */
#nayth-shell.ns-overlay {
  top: auto;
  left: auto;
  right: auto;
  bottom: 14px;
  height: auto;
  width: auto;
  display: block;
  padding: 0;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}

#nayth-shell.ns-overlay {
  position: fixed;
  left: 14px;
}

#nayth-shell.ns-overlay .ns-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(23, 46, 62, 0.92);
  border: 1px solid rgba(201, 150, 58, 0.5);
  color: var(--ns-gold);
  font-family: inherit;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

#nayth-shell.ns-overlay .ns-logo {
  display: none;
}

#nayth-shell.ns-overlay .ns-links {
  position: absolute;
  bottom: 46px;
  left: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  background: rgba(23, 46, 62, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(201, 150, 58, 0.4);
  border-radius: 10px;
  padding: 6px;
  overflow: visible;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: none;
}

#nayth-shell.ns-overlay.ns-open .ns-links {
  display: flex;
}

#nayth-shell.ns-overlay .ns-link {
  text-align: left;
}
