/* ─────────────────────────────────────────────────────────────────────────
   SHARED SITE CHROME — one global navigation bar on every page.

   The problem this fixes: wrldofsen had THREE different navigation bars.
   index.html had the real one, handbook.html replaced it wholesale with its
   own section links, and deal.html had none at all — so clicking into a
   sub-page dropped you somewhere that looked like a different site, with no
   way back to the store.

   The framework is two tiers, and the distinction is the whole point:
     TIER 1  .stc-hdr   the SITE. Identical everywhere, always links home.
     TIER 2  .stc-sub   the PAGE. Where you are + this page's own sections.
   A page's section links are never allowed to impersonate site navigation.

   Self-sufficient by design: every colour falls back to a literal, because
   the pages disagree on token names (--money-2 here, --money2 there). Drop
   this file onto any page and the chrome renders correctly.
   ───────────────────────────────────────────────────────────────────────── */

.stc-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---- Tier 1: the site bar ---- */
.stc-hdr {
  /* Defensive: pages carry their own `header { display:flex; padding:… }`
     rules (handbook did), and an element selector would otherwise reshape a
     shared component. A drop-in chrome has to own its own box. */
  display: block; padding: 0; margin: 0;
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 10, 8, .84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line, #212B22);
}
.stc-hdr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(63,232,115,.5) 50%, transparent 96%);
}
.stc-bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.stc-brand {
  font-family: 'Bungee', sans-serif; font-size: 19px; letter-spacing: .02em;
  line-height: 1; color: var(--bone, #EDF0E7); text-decoration: none; flex: none;
}
.stc-brand .ex { color: var(--money, #3FE873); }
.stc-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.stc-nav a {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--mute, #94A097); text-decoration: none;
  padding: 4px 0; transition: color .18s;
}
.stc-nav a:hover, .stc-nav a:focus-visible { color: var(--money, #3FE873); }
.stc-spacer { flex: 1 1 auto; }
.stc-ig {
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--mute, #94A097); text-decoration: none;
}
.stc-ig:hover { color: var(--money, #3FE873); }
.stc-store {
  display: flex; align-items: center; gap: 10px; flex: none;
  border: 1px solid var(--line-2, var(--line2, #33443A)); border-radius: 3px;
  background: var(--panel, #101510); padding: 9px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--bone, #EDF0E7); text-decoration: none;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.stc-store:hover {
  border-color: var(--money, #3FE873); transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 rgba(63, 232, 115, .28);
}
.stc-dot {
  background: var(--money, #3FE873); color: var(--money-ink, var(--moneyink, #04300F));
  border-radius: 3px; min-width: 20px; height: 20px; display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; line-height: 1;
}

/* ---- Tier 2: the page bar. Deliberately quieter than tier 1. ---- */
.stc-sub {
  display: block; padding: 0; margin: 0;
  position: sticky; top: 64px; z-index: 55;
  background: rgba(16, 21, 16, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line, #212B22);
}
.stc-subbar {
  display: flex; align-items: center; gap: 18px; min-height: 44px;
  overflow-x: auto; scrollbar-width: none;
}
.stc-subbar::-webkit-scrollbar { display: none; }
.stc-where {
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--money, #3FE873); white-space: nowrap; flex: none;
}
.stc-where::after {
  content: ""; display: inline-block; width: 26px; height: 1px; margin-left: 12px;
  vertical-align: middle; background: var(--line-2, var(--line2, #33443A));
}
.stc-local { display: flex; gap: 16px; }
.stc-local a {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em;
  color: var(--mute, #94A097); text-decoration: none; white-space: nowrap; padding: 4px 0;
}
.stc-local a:hover, .stc-local a:focus-visible { color: var(--bone, #EDF0E7); }

/* ---- shared footer: every page offers a way back ---- */
.stc-foot {
  border-top: 1px solid var(--line, #212B22); margin-top: 64px;
  padding: 28px 0 40px; font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: .1em; color: var(--mute, #94A097);
}
.stc-foot a { color: var(--mute, #94A097); text-decoration: none; }
.stc-foot a:hover { color: var(--money, #3FE873); }
.stc-foot .row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }

@media (max-width: 860px) {
  .stc-ig { display: none; }
  .stc-bar { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 12px; }
  .stc-wrap { padding: 0 18px; }
  .stc-sub { position: static; }

  /* Thumbs, not cursors. At the desktop 4px padding these links are 26px tall —
     under the 44px guideline and genuinely fiddly on a phone. Padding only, so
     nothing about the desktop bar moves. */
  .stc-nav { gap: 14px 20px; }
  .stc-nav a, .stc-local a { padding: 11px 0; }
}
