/* =========================================================================
   possapps.css — PossApps navbar + leaderboard styling for ELEMENTAL

   /shared/style.css isn't loaded here: its global reset (* { margin:0 },
   button { border:none }) and .btn-primary would break the game's layout.
   These are the retro nav rules from shared/style.css, scoped to
   #nav-container.
   ========================================================================= */

#nav-container { position: relative; z-index: 100; }
#nav-container a { text-decoration: none; }
#nav-container button { cursor: pointer; }

#nav-container .main-nav {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 0 2rem; height: 64px;
  background: #000;
  border-bottom: 2px solid #00ffff;
  box-shadow: 0 0 20px rgba(0,255,255,0.3);
}
#nav-container .nav-logo {
  margin-right: auto; white-space: nowrap;
  color: #00ffff; text-shadow: 0 0 10px #00ffff;
  font-family: 'Press Start 2P', monospace; font-size: 0.7rem;
}
#nav-container .nav-links { display: flex; gap: 0.25rem; }
#nav-container .nav-link {
  font-family: 'Press Start 2P', monospace; font-size: 0.55rem;
  color: #888; padding: 0.4rem 0.75rem; border-radius: 6px;
  transition: all 0.15s;
}
#nav-container .nav-link:hover { color: #00ffff; background: rgba(0,255,255,0.05); }
#nav-container .nav-link.active { color: #00ffff; }
#nav-container .nav-auth { display: flex; align-items: center; gap: 0.75rem; }
#nav-container .nav-username {
  font-family: 'Press Start 2P', monospace; font-size: 0.5rem; color: #39ff14;
}
#nav-container .btn-nav-login,
#nav-container .btn-nav-logout {
  font-family: 'Press Start 2P', monospace; font-size: 0.5rem;
  color: #888; background: transparent;
  padding: 0.4rem 0.75rem; border-radius: 6px; border: 1px solid #333;
}
#nav-container .btn-nav-register {
  font-family: 'Press Start 2P', monospace; font-size: 0.5rem;
  background: #00ffff; color: #000; padding: 0.4rem 0.9rem; border-radius: 6px;
}
#nav-container .nav-toggle {
  display: none; background: none; border: none; color: #e2e8f0; font-size: 1.3rem;
}
#nav-container .nav-mobile {
  display: none; flex-direction: column; gap: 0.5rem;
  padding: 1rem 2rem; background: #000; border-bottom: 1px solid #1e2a3a;
}
#nav-container .nav-mobile.open { display: flex; }
#nav-container .nav-mobile .nav-link { padding: 0.5rem 0; }

@media (max-width: 640px) {
  #nav-container .nav-links, #nav-container .nav-auth { display: none; }
  #nav-container .nav-toggle { display: block; }
}

/* ---------------------------------------------- results-screen leaderboard */
.poss-lb {
  margin: 14px auto 4px; max-width: 320px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line);
}
.poss-lb-title { font-family: var(--display); font-weight: 700; margin-bottom: 6px; }
.poss-lb-status { color: var(--dim); font-size: .85rem; margin-bottom: 6px; }
.poss-lb-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.poss-lb-table td { padding: 3px 4px; text-align: left; }
.poss-lb-table td:first-child { color: var(--dim); width: 1.6em; }
.poss-lb-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.poss-lb-table tr:first-child td { color: var(--gold); }
.poss-lb-status a { color: var(--accent); }
