/* Shared site nav — one bar on every page + real hamburger at <=900px (added 2026-11-17)
   Root cause of the old bug: `nav ul li:not(:last-child){display:none}` was declared
   OUTSIDE the media query, so every nav link except the CTA was hidden at ALL widths,
   with no toggle to get them back. */

/* 1. Undo the legacy hide rule on wide screens. */
@media (min-width: 901px) {
  nav ul li { display: list-item !important; }
}

/* 2. Injected bar (pages that had no nav at all: map, games, mission, character, access, posts). */
nav.sc-bar {
  position: sticky; top: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 6vw; gap: 16px;
  background: rgba(8,11,9,0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(163,177,138,0.22);
}
nav.sc-bar .sc-word { font-family: Georgia, 'Times New Roman', serif; font-size: 19px; letter-spacing: 2px; color: #e8efe4; text-decoration: none; }
nav.sc-bar .sc-word span { color: #a3b18a; }
nav.sc-bar ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav.sc-bar ul a { font-size: 14px; color: #9fb0a0; letter-spacing: .3px; text-decoration: none; }
nav.sc-bar ul a:hover, nav.sc-bar ul a.on { color: #d7e8cb; }

/* 3. Hamburger button, injected into every nav. */
.sc-burger {
  display: none; align-items: center; gap: 8px;
  background: rgba(163,177,138,0.08); color: #b8c7ae;
  border: 1px solid rgba(163,177,138,0.38); border-radius: 8px;
  padding: 8px 12px; font: inherit; font-size: 12px; letter-spacing: .6px;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.sc-burger .sc-ico { font-size: 15px; line-height: 1; }
.sc-burger:hover { background: rgba(163,177,138,0.16); color: #e8efe4; }

/* 4. Mobile: links collapse behind the hamburger. */
/* Drawer scrim: dims and blocks the page under an open mobile menu.
   Sits below the bar (z 1200) and its panel (z 1210). */
.sc-scrim { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(4,6,4,0.62); z-index: 1190; }
body.sc-lock { overflow: hidden; }

@media (max-width: 900px) {
  /* The bar must outrank page content (hero video, cards) or the open menu
     paints under it and the links ghost through. */
  nav { position: sticky; top: 0; z-index: 1200; }
  nav ul { display: none !important; }
  nav .sc-burger { display: inline-flex; }
  /* One toggle per page: site-nav owns it, so retire any page-specific one. */
  nav #menu-toggle, nav .menu-toggle, nav .nav-toggle { display: none !important; }
  nav.sc-open { background: rgba(8,11,9,0.97); }
  nav.sc-open ul {
    display: flex !important;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 14px;
    margin: 0; padding: 18px 6vw 22px;
    background: #0a0d09; border-bottom: 1px solid rgba(163,177,138,0.28);
    box-shadow: 0 18px 40px rgba(0,0,0,0.55); z-index: 1210;
  }
  nav.sc-open ul li { display: list-item !important; }
  nav.sc-open ul a { font-size: 15px; color: #cfe0c6; }
}
