/* ---------------------------------------------------------------------------
   UncBots — shared navigation chrome

   Every "go somewhere" control in the app is one of these pills. Before this
   there were six treatments for the same idea — three near-identical pills at
   different sizes, a bare text link, a tab strip, and a bordered button — so
   moving between pages meant the back control changed shape under you.

   Loaded by every page; nothing here styles anything but navigation.
--------------------------------------------------------------------------- */

.nav {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(236, 227, 242, 0.7);
  background: rgba(20, 26, 44, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  transition: color .18s, border-color .18s, background .18s, transform .12s;
}
.nav-btn:hover { color: #ffcf4d; border-color: rgba(255, 207, 77, 0.5); background: rgba(30, 38, 62, 0.75); }
.nav-btn:active { transform: scale(0.96); }
.nav-btn:focus-visible { outline: 2px solid #ffcf4d; outline-offset: 3px; }

/* the page you're already on */
.nav-btn[aria-current="page"] {
  color: #ffcf4d;
  border-color: rgba(255, 207, 77, 0.55);
  background: rgba(255, 207, 77, 0.12);
}

/* Chevron drawn from borders rather than typed: a literal ‹ sits on a
   different baseline in every font and never optically centred. */
.nav-btn--back::before {
  content: "";
  width: 6px;
  height: 6px;
  border-left: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg);
  margin-right: -1px;
  opacity: 0.85;
}

/* Low-emphasis variant — for a control floating over busy artwork where a
   filled pill would compete with the content it sits on. */
.nav-btn--quiet {
  background: none;
  border-color: transparent;
  color: rgba(236, 227, 242, 0.34);
  padding: 8px 10px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav-btn--quiet:hover { background: none; border-color: transparent; }

/* Anchors the bar to the top-left on pages that have no chrome of their own. */
.nav--float {
  position: fixed;
  z-index: 40;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-btn { transition: none; }
}
