/* ============================================================
   84-0 · shared sleek header — 84-0 wordmark · Games | Rankings ·
   Sign in · theme — plus the game-switcher panel. Built by
   hx-header.js, which restyles each page's existing .topbar so the
   existing account / leaderboard / theme wiring keeps working.
   Layered on styles.css (uses its theme vars).
   ============================================================ */
/* No FOUC: keep the page's original .topbar (old leaderboard button on the
   right, sport sub-label) from flashing before hx-header.js rewrites it. The
   injector adds .hx-topbar synchronously at the very start, which reveals it.
   This rule only loads on pages that also run the injector, so a real header
   is never left hidden. */
header.topbar:not(.hx-topbar) { visibility: hidden; }

.hx-topbar { gap: 12px; justify-content: flex-start; position: relative; z-index: 1300; }   /* above .screen content (z-1) AND the top ad (1200) so the games panel isn't covered */
.hx-topbar .brand-sub { display: none; }   /* the sleek mark is just "84-0" */

.hx-navgroup { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px; }
.hx-navbtn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; color: var(--text-dim);
  font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 11px; cursor: pointer;
  transition: color .12s, background .12s, border-color .12s; }
.hx-navbtn:hover { color: var(--text); }
.hx-navbtn.on { color: var(--text); background: var(--bg-2, rgba(255,255,255,.05)); border-color: var(--line); }
.hx-navbtn .hx-ic { width: 19px; height: 19px; flex: none; }
.hx-navbtn.on .hx-ic-games { color: var(--accent); }
.hx-navdiv { width: 1px; height: 20px; background: var(--line); flex: none; }

.hx-actions { margin-left: auto; gap: 8px; display: flex; align-items: center; }
.hx-signin { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 12px; }
.hx-signin:hover { border-color: var(--accent); }
.hx-iconbtn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; font-size: 18px; }
.hx-iconbtn:hover { border-color: var(--accent); }

@media (max-width: 600px) {
  .hx-topbar { gap: 8px; }
  .hx-navbtn .hx-lbl { display: none; }     /* icon-only Games/Rankings to fit phones */
  .hx-navbtn { padding: 8px 11px; }
  .hx-signin { padding: 8px 12px; font-size: 13px; }
  .hx-iconbtn { width: 38px; height: 38px; }
}

/* ---- game-switcher panel (anchored under the header) ---- */
.hx-game-panel { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 1300; width: min(440px, 94vw);
  background: var(--modal-bg, #11253a); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.5);
  padding: 12px; max-height: 72vh; overflow-y: auto; }
.hx-game-panel[hidden] { display: none; }
.hx-panel-group { font-family: "Oswald", sans-serif; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); margin: 10px 6px 6px; }
.hx-panel-group:first-child { margin-top: 2px; }
.hx-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hx-panel-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 13.5px; font-weight: 600; }
.hx-panel-item:hover { background: var(--line); }
.hx-panel-item img { width: 28px; height: 28px; border-radius: 7px; object-fit: cover; flex: none; }
.hx-panel-item .x { font-size: 11px; color: var(--text-faint); font-weight: 500; margin-left: auto; }

/* ---- OG-page launch extras (300x250 ad + 1v1 cross-promo) — used at launch ---- */
.hx-adslot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 24px auto 0; }
.hx-adslot-label { font-family: "Oswald", sans-serif; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-faint); }
.hx-mrec { width: 300px; height: 250px; max-width: 100%; background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; }
.hx-promo { display: flex; align-items: center; gap: 14px; max-width: 540px; margin: 24px auto 0; padding: 14px 16px; text-decoration: none; color: inherit;
  background: linear-gradient(135deg, rgba(42,75,181,.18), rgba(42,75,181,.05)); border: 1px solid rgba(80,110,200,.4); border-left: 4px solid #5b7de0;
  border-radius: 12px; transition: transform .12s, border-color .12s; text-align: left; }
.hx-promo:hover { transform: translateY(-2px); border-left-color: #8aa6f0; }
.hx-promo-logo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: none; }
.hx-promo-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hx-promo-kicker { font-family: "Oswald", sans-serif; font-size: 10.5px; letter-spacing: 1.2px; color: #8aa6f0; display: inline-flex; align-items: center; gap: 8px; }
.hx-promo-title { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 16px; line-height: 1.15; }
.hx-promo-sub { font-size: 12px; color: var(--text-dim); }
/* gold variant — Build a Player cross-promo */
.hx-promo-gold { background: linear-gradient(135deg, rgba(224,169,58,.16), rgba(224,169,58,.04)); border-color: rgba(224,169,58,.45); border-left-color: var(--gold, #e0a93a); }
.hx-promo-gold:hover { border-left-color: #ffd166; }
.hx-promo-gold .hx-promo-kicker { color: var(--gold, #e0a93a); }
.hx-new-mini { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #0b1622; background: var(--gold, #e0a93a); border-radius: 999px; padding: 1px 7px; }
.hx-live-mini { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; color: #5fe39a; }
.hx-live-mini::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3fd07a; animation: hxpulse 1.6s ease-in-out infinite; }
@keyframes hxpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
