/* ============================================================
   84-0 · NEW HOMEPAGE (mobile-first) — layered on styles.css.
   Hero · prominent 1v1 · compact game list · sticky bottom nav.
   ============================================================ */
.hx-wrap { max-width: 760px; margin: 0 auto; padding: 8px 16px 44px; }
.hx-bottomnav { display: none !important; }   /* hidden for now (across the site) */
/* pull the first content (register banner) up right under the header — the global
   .screen rule adds up to 30px top padding, which left a big empty band on desktop. */
#screen-home { padding-top: 4px; }

/* ---- header game-switcher dropdown ---- */
.hx-switch { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line);
  color: var(--text); font: inherit; font-weight: 600; font-size: 13.5px; padding: 8px 13px; border-radius: 999px; cursor: pointer; }
.hx-switch:hover { border-color: var(--accent); }
.hx-switch .caret { font-size: 10px; opacity: .7; }
.hx-game-panel { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 80; 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 .em { width: 28px; text-align: center; font-size: 18px; flex: none; }
.hx-panel-item .x { font-size: 11px; color: var(--text-faint); font-weight: 500; margin-left: auto; }

/* ---- hero ---- */
.hx-hero { text-align: center; padding: 30px 0 8px; }
.hx-hero .hx-logo { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.hx-hero h1 { font-size: clamp(28px, 7vw, 44px); line-height: 1.06; margin: 14px 0 8px; }
.hx-hero .hx-sub { color: var(--text-dim); font-size: clamp(14px, 2.6vw, 17px); max-width: 460px; margin: 0 auto 16px; line-height: 1.5; }
.hx-appstore { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .12s; }
.hx-appstore:hover { transform: translateY(-1px); }
.hx-appstore img { width: 250px; max-width: 78vw; height: auto; display: block; }

/* ---- hero CTA (single primary action → 1v1) ---- */
.hx-cta-row { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 4px; }
.hx-cta { display: inline-flex; align-items: center; gap: 9px; background: linear-gradient(135deg, #2a4bb5, #1c2f7a); color: #fff;
  font-family: "Oswald", sans-serif; font-weight: 700; font-size: 17px; letter-spacing: .3px; padding: 14px 30px; border-radius: 999px;
  text-decoration: none; box-shadow: 0 10px 26px rgba(42,75,181,.45); transition: transform .12s, box-shadow .12s; }
.hx-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(42,75,181,.55); }

/* ---- social-proof / scope strip ---- */
.hx-proof { display: flex; max-width: 420px; margin: 18px auto 2px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface); overflow: hidden; }
.hx-proof > div { flex: 1; text-align: center; padding: 10px 6px; }
.hx-proof > div + div { border-left: 1px solid var(--line); }
.hx-proof .n { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 19px; color: var(--text); display: block; line-height: 1.1; }
.hx-proof .l { font-size: 11px; color: var(--text-faint); letter-spacing: .3px; }

/* ---- "live" badge ---- */
.hx-live { display: inline-flex; align-items: center; gap: 6px; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: 1px; color: #57c98a; background: rgba(63,200,120,.12); border: 1px solid rgba(63,200,120,.32); padding: 3px 9px; border-radius: 999px; }
.hx-live .dot { width: 7px; height: 7px; border-radius: 50%; background: #3fd07a; animation: hxpulse 1.6s ease-in-out infinite; }
@keyframes hxpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

/* ---- section shell ---- */
.hx-section { margin-top: 26px; }
.hx-sec-head h2 { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 21px; margin: 0 0 3px; display: flex; align-items: center; gap: 9px; }
.hx-sec-head p { color: var(--text-dim); font-size: 13.5px; margin: 0 0 14px; line-height: 1.45; }
.hx-new { font-family: "Oswald", sans-serif; font-size: 11px; letter-spacing: 1px; background: linear-gradient(135deg,#2a4bb5,#16224f); color: #fff; padding: 3px 9px; border-radius: 999px; }

/* ---- Build a Player (lab) — the marquee card ---- */
.hx-bap-card { position: relative; display: flex; align-items: center; gap: 20px; padding: 20px 22px; border-radius: 20px;
  text-decoration: none; color: inherit; overflow: hidden;
  background: linear-gradient(120deg, rgba(20, 46, 96, .55), rgba(10, 18, 34, .9) 55%), radial-gradient(ellipse 70% 120% at 85% 20%, rgba(47, 184, 255, .18), transparent 65%);
  border: 1px solid rgba(255, 209, 102, .45);
  box-shadow: 0 0 0 1px rgba(47, 184, 255, .12), 0 14px 40px rgba(0, 0, 0, .45);
  transition: transform .14s, box-shadow .14s, border-color .14s; }
.hx-bap-card::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .07) 45%, transparent 60%);
  transform: translateX(-100%); animation: hxbapsheen 5.5s ease-in-out infinite; }
@keyframes hxbapsheen { 0%, 72% { transform: translateX(-100%); } 88%, 100% { transform: translateX(100%); } }
.hx-bap-card:hover { transform: translateY(-2px); border-color: rgba(255, 209, 102, .8); box-shadow: 0 0 0 1px rgba(255, 209, 102, .25), 0 18px 48px rgba(0, 0, 0, .55); }
.hx-bap-logo { width: 132px; height: 132px; flex: none; border-radius: 16px; object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }
.hx-bap-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hx-bap-new { align-self: flex-start; font-family: "Oswald", sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 1.2px;
  color: #ffd166; background: rgba(255, 209, 102, .12); border: 1px solid rgba(255, 209, 102, .4); padding: 3px 9px; border-radius: 999px; margin-bottom: 3px; }
.hx-bap-title { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 21px; line-height: 1.15; }
.hx-bap-tag { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: #ffd166; }
.hx-bap-body { color: var(--text-dim); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.hx-bap-cta { align-self: flex-start; margin-top: 9px; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 14.5px; letter-spacing: .4px;
  color: #1a1206; background: linear-gradient(180deg, #ffd166, #e0a93a); padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 5px 16px rgba(224, 169, 58, .35); }
.hx-bap-card + .hx-bap-card { margin-top: 14px; }
@media (max-width: 560px) {
  .hx-bap-card { flex-direction: column; text-align: center; gap: 14px; padding: 18px 16px; }
  .hx-bap-logo { width: 150px; height: 150px; }
  .hx-bap-copy { align-items: center; }
  .hx-bap-new, .hx-bap-cta { align-self: center; }
}

/* ---- 1v1 featured grid ---- */
.hx-1v1 { background: linear-gradient(135deg, rgba(42,75,181,.16), rgba(42,75,181,.04)); border: 1px solid rgba(80,110,200,.35);
  border-radius: 18px; padding: 18px 16px; }
.hx-1v1-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hx-1v1-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); transition: transform .12s, border-color .12s, box-shadow .12s; }
.hx-1v1-card:hover { transform: translateY(-2px); border-color: #5b7de0; box-shadow: 0 12px 28px rgba(42,75,181,.3); }
.hx-1v1-card img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; flex: none; box-shadow: 0 3px 10px rgba(0,0,0,.35); }
.hx-1v1-card .hx-t { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 18px; }
.hx-1v1-card .hx-s { color: var(--text-faint); font-size: 12px; }
.hx-1v1-card .hx-meta { display: flex; flex-direction: column; line-height: 1.15; }
.hx-1v1-more { text-align: center; color: var(--text-dim); font-size: 12.5px; margin-top: 12px; }

/* ---- compact "go undefeated" game list ---- */
.hx-games { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hx-game { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; transition: transform .12s, border-color .12s; }
.hx-game:hover { transform: translateY(-2px); }
.hx-game img { width: 38px; height: 38px; border-radius: 9px; object-fit: cover; flex: none; }
.hx-game .g-t { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 14.5px; line-height: 1.1; }
.hx-game .g-s { color: var(--text-faint); font-size: 11.5px; }
.hx-game .g-m { display: flex; flex-direction: column; min-width: 0; }
.hx-subhead { font-family: "Oswald", sans-serif; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-faint); margin: 16px 4px 8px; }

/* ---- coming soon ---- */
.hx-soon { text-align: center; border: 1px dashed var(--line); border-radius: 16px; padding: 22px 16px; background: var(--surface); }
.hx-soon-badge { font-family: "Oswald", sans-serif; font-size: 11px; letter-spacing: 1.5px; color: var(--gold); }
.hx-soon h3 { font-family: "Oswald", sans-serif; font-size: 20px; margin: 6px 0 4px; }
.hx-soon p { color: var(--text-dim); font-size: 13px; margin: 0; }

/* ---- sticky bottom nav (mobile) / inline bar (desktop) ---- */
.hx-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; justify-content: space-around;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--panel, rgba(7,18,30,.92));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.hx-nav-item { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; cursor: pointer;
  color: var(--text-faint); font: inherit; font-size: 10.5px; font-weight: 600; text-decoration: none; padding: 4px 10px; border-radius: 12px; flex: 1; max-width: 96px; }
.hx-nav-item .i { font-size: 19px; line-height: 1; }
.hx-nav-item.on, .hx-nav-item:hover { color: var(--accent); }
@media (min-width: 768px) {
  /* bottom:100px floats the pill clear of RAMP's desktop bottom-anchor ad (~90px) */
  .hx-bottomnav { left: 50%; transform: translateX(-50%); right: auto; bottom: 100px; border-radius: 999px; border: 1px solid var(--line);
    padding: 6px 8px; gap: 4px; box-shadow: 0 12px 34px rgba(0,0,0,.35); width: auto; }
  .hx-nav-item { flex-direction: row; gap: 7px; font-size: 13px; padding: 9px 16px; max-width: none; }
  .hx-nav-item .i { font-size: 16px; }
  .hx-wrap { padding-bottom: 48px; }
}
@media (max-width: 380px) { .hx-1v1-grid, .hx-games { grid-template-columns: 1fr; } }

/* ---- ad-aware (RAMP) + header declutter ---- */
/* Desktop: no top sticky ad bar (mobile still shows its 320x50 via styles.css). */
@media (max-width: 767px) {
  /* One clean solid bottom region: the nav is a flush opaque bar sitting directly on top
     of RAMP's bottom-anchor ad. The 84px bottom padding is solid bg behind the ad, so no
     page content can peek between the nav and the ad as you scroll. */
  .hx-bottomnav { bottom: 0; padding: 8px 6px calc(84px + env(safe-area-inset-bottom, 0px));
    background: var(--bg-3, #0a121c); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hx-wrap { padding-bottom: 24px; }
}
/* ---- sleek header (mobile + desktop) — grouped Games | Rankings, pill actions ---- */
.hx-topbar { gap: 12px; justify-content: flex-start; position: relative; z-index: 1300; }   /* above the top ad (1200) + page content so the games panel isn't covered */
.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; }
.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); }

/* ---- Play 1v1 banner button (sits above the headline) ---- */
.hx-hero .hx-cta-banner { margin: 0 0 22px; gap: 14px; padding: 13px 26px; font-size: 16px; max-width: 100%; }
.hx-cta-new { font-family: "Oswald", sans-serif; font-weight: 700; letter-spacing: 1.5px; font-size: 15px; }
.hx-cta-div { width: 1px; height: 22px; background: rgba(255,255,255,.28); flex: none; }
.hx-cta-main { display: inline-flex; align-items: center; gap: 8px; font-family: "Oswald", sans-serif; font-weight: 700; letter-spacing: .3px; }
.hx-live-pill { background: rgba(46,210,120,.18); border-color: rgba(46,210,120,.5); color: #5fe39a; }
.hx-cta-arrow { font-size: 20px; font-weight: 700; }

/* ---- 300×250 medium-rectangle ad slot ---- */
.hx-adslot { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 26px 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; }

/* ---- mobile header: icon-only Games/Rankings + tighter actions to fit narrow screens ---- */
@media (max-width: 600px) {
  .hx-topbar { gap: 8px; }
  .hx-navbtn .hx-lbl { display: none; }
  .hx-navbtn { padding: 8px 11px; }
  .hx-signin { padding: 8px 12px; font-size: 13px; }
  .hx-iconbtn { width: 38px; height: 38px; }
}
/* tighten the banner button on phones — drop the "NEW GAME" segment so it never wraps */
@media (max-width: 480px) {
  .hx-hero .hx-cta-banner { gap: 10px; padding: 13px 20px; }
  .hx-cta-new, .hx-cta-div { display: none; }
}


/* ---- GM MODE flagship card: executive crimson, distinct from the gold BAP cards ---- */
.hx-gm { margin-top: 6px; }
.hx-gm-card { position: relative; display: flex; align-items: center; gap: 24px; padding: 24px 26px; border-radius: 22px;
  text-decoration: none; color: inherit; overflow: hidden;
  background: linear-gradient(120deg, rgba(76, 12, 22, .75), rgba(10, 14, 28, .95) 58%), radial-gradient(ellipse 75% 130% at 88% 15%, rgba(175, 30, 45, .3), transparent 65%);
  border: 1px solid rgba(214, 220, 230, .35);
  box-shadow: 0 0 0 1px rgba(175, 30, 45, .35), 0 18px 48px rgba(0, 0, 0, .55);
  transition: transform .14s, box-shadow .14s, border-color .14s; }
.hx-gm-card:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 2px rgba(175, 30, 45, .5), 0 22px 56px rgba(0, 0, 0, .6); }
.hx-gm-badge { width: 168px; height: 168px; flex: none; border-radius: 18px; object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.hx-gm-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hx-gm-new { align-self: flex-start; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 1.4px;
  color: #fff; background: linear-gradient(180deg, #c9293c, #8f1424); border: 1px solid rgba(255, 143, 143, .5);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 2px; animation: hxgmpulse 2.6s ease-in-out infinite; }
@keyframes hxgmpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 41, 60, .5); } 50% { box-shadow: 0 0 0 7px rgba(201, 41, 60, 0); } }
.hx-gm-title { font-family: "Oswald", sans-serif; font-weight: 700; font-size: 30px; line-height: 1.05; letter-spacing: .5px; }
.hx-gm-tag { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 13.5px; letter-spacing: .8px; text-transform: uppercase; color: #ff8f9b; }
.hx-gm-body { color: var(--text-dim); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.hx-gm-body b { color: var(--text); }
.hx-gm-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.hx-gm-chip { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .5px;
  color: #dfe7f2; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .18);
  padding: 4px 11px; border-radius: 999px; }
.hx-gm-card + .hx-gm-card { margin-top: 14px; }
.hx-gm-cta { align-self: flex-start; margin-top: 10px; font-family: "Oswald", sans-serif; font-weight: 700; font-size: 15.5px; letter-spacing: .5px;
  color: #fff; background: linear-gradient(180deg, #c9293c, #8f1424); padding: 10px 20px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(175, 30, 45, .45); }
@media (max-width: 560px) {
  .hx-gm-card { flex-direction: column; text-align: center; gap: 14px; padding: 20px 16px; }
  .hx-gm-badge { width: 180px; height: 180px; }
  .hx-gm-copy { align-items: center; }
  .hx-gm-new, .hx-gm-cta { align-self: center; }
  .hx-gm-chips { justify-content: center; }
}
