/* V19 integration, HOME visual shell only. Preserve site.css and all live actions. */
/* Legacy V27 CSS forces both html and body GREEN with !important.
   This redesign-only sheet deliberately overrides that one legacy rule;
   it is never included by production/staging deployments. */
html,body.bgj-redesign{
  background:#080b0e!important;
  background-color:#080b0e!important;
  background-image:none!important;
  background-attachment:initial!important;
}

body.bgj-redesign{
  --bgj-orange:#ff8b19;--bgj-panel:#13181d;--bgj-border:#303a42;--bgj-max:1480px;
  background:#080b0e;
  color:#f4f5f6;
}
.bgj-redesign::before,.bgj-redesign::after{display:none}
.bgj-redesign .site-header{background:#090c0ef2;border-bottom:1px solid #3b3029;box-shadow:none}
.bgj-redesign .site-header-inner{max-width:1480px;min-height:58px;padding-top:7px;padding-bottom:7px;gap:20px}
.bgj-redesign .brand-logo{font:italic 1000 35px/1 "Barlow Condensed",Impact,sans-serif;letter-spacing:.055em}
.bgj-redesign .brand-logo-accent,.bgj-redesign .brand-byline strong{color:var(--bgj-orange)}
.bgj-redesign .brand-byline{font-size:9px}
.bgj-redesign .primary-nav{flex-wrap:nowrap;gap:3px;align-items:stretch}
.bgj-redesign .primary-nav a{font:900 14px/1 "Barlow Condensed",Arial,sans-serif;border:0;border-radius:0;min-height:44px;padding:0 10px;color:#cbd0d5;white-space:nowrap;text-shadow:none;transform:none;letter-spacing:.055em;}
.bgj-redesign .primary-nav a:hover,.bgj-redesign .primary-nav a:focus-visible{background:#14181c;color:#fff;transform:none}
.bgj-redesign .primary-nav a.nav-home{color:#cbd0d5;border-bottom:0}
.bgj-redesign .primary-nav #navYourStatsLink{display:none}
.bgj-redesign .site-main.wrap{max-width:1600px;padding:0 20px}
.bgj-redesign .bgj-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;
 min-height:260px;margin:0 calc(50% - 50vw) 23px;border-bottom:1px solid #a5521c;
 background:linear-gradient(90deg,#070a0eee 0%,#070a0ee5 43%,#090b0d55 100%),
 url('/assets/redesign/v19-hero.jpg') right center/auto 130% no-repeat,#090c10}
.bgj-redesign .bgj-hero::after{content:"";position:absolute;right:-80px;top:-50px;width:130px;height:420px;
 transform:rotate(38deg);border-left:32px solid var(--bgj-orange);pointer-events:none;opacity:.85}
.bgj-redesign .bgj-hero-content{width:min(calc(100% - 40px),var(--bgj-max));margin:auto;padding:34px 0}
.bgj-redesign .bgj-hero-kicker{font:900 11px "Barlow Condensed",Arial,sans-serif;letter-spacing:.18em;color:var(--bgj-orange)}
.bgj-redesign .bgj-hero-kicker::before{content:"";display:inline-block;width:19px;margin-right:9px;vertical-align:middle;border-top:1px solid var(--bgj-orange)}
.bgj-redesign .bgj-hero h1{font:italic 1000 clamp(48px,5.5vw,86px)/.89 "Barlow Condensed",Impact,sans-serif;
 letter-spacing:.055em;margin:11px 0 21px;color:#fafafa;text-shadow:0 4px 13px #0008}
.bgj-redesign .bgj-hero h1 span{display:block;color:var(--bgj-orange)}
.bgj-redesign .bgj-hero-actions{display:flex;gap:9px}
.bgj-redesign .bgj-hero-btn{display:flex;align-items:center;justify-content:space-between;gap:30px;
 padding:8px 14px;min-width:124px;text-decoration:none;border:1px solid #ad611d;border-radius:3px;
 font:900 12px "Barlow Condensed",Arial,sans-serif;color:#fff;background:#101317;letter-spacing:.055em;}
.bgj-redesign .bgj-hero-btn.primary{background:var(--bgj-orange);border-color:var(--bgj-orange);color:#16110b}
.bgj-redesign .bgj-hero-btn:hover{filter:brightness(1.18)}
/* Gather UI is preserved in the DOM; navigation selects its own presentation. */
.bgj-redesign #homeView > #gatherServersHeading,.bgj-redesign #homeView > #serverOverview{display:none}
.bgj-redesign.showing-gathers #homeView > #gatherServersHeading{display:flex}
.bgj-redesign.showing-gathers #homeView > #serverOverview{display:block}
.bgj-redesign.showing-gathers #homeView > .bgj-hero,
.bgj-redesign.showing-gathers #homeView > #weeklyHighlightsHeading,
.bgj-redesign.showing-gathers #homeView > #weeklyHighlightsSection,
.bgj-redesign.showing-gathers #homeView > #recentMatchesHeading,
.bgj-redesign.showing-gathers #homeView > #matchesSection,
.bgj-redesign.gather-lobby-active #homeView > .bgj-hero{display:none}
/* Both containers use the identical width token, never full-bleed. */
.bgj-redesign #homeView > #weeklyHighlightsHeading,
.bgj-redesign #homeView > #weeklyHighlightsSection,
.bgj-redesign #homeView > #recentMatchesHeading,
.bgj-redesign #homeView > #matchesSection{box-sizing:border-box;max-width:var(--bgj-max);width:100%;
 margin-left:auto!important;margin-right:auto!important}
.bgj-redesign #homeView > #weeklyHighlightsHeading,
.bgj-redesign #homeView > #recentMatchesHeading{border:1px solid var(--bgj-border);
 border-top:2px solid var(--bgj-orange);border-bottom:0;background:var(--bgj-panel);
 padding:10px 14px;margin-top:22px!important;margin-bottom:0!important}
.bgj-redesign #homeView > #weeklyHighlightsSection,
.bgj-redesign #homeView > #matchesSection{border:1px solid var(--bgj-border);border-radius:0 0 5px 5px;
 background:var(--bgj-panel);box-shadow:0 15px 25px #0005;margin-top:0!important;padding:14px!important}
.bgj-redesign .external-heading-bar{color:var(--bgj-orange)}
.bgj-redesign .weekly-highlights-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.bgj-redesign .weekly-highlight-video-wrap{border-color:var(--bgj-border);border-radius:3px;box-shadow:none}
.bgj-redesign .weekly-highlight-caption{color:#eef1f3;font:900 13px/1.3 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;}
.bgj-redesign .weekly-highlight-caption .bgj-clip-player,
.bgj-redesign .weekly-highlight-caption .bgj-clip-player a{color:var(--bgj-orange);text-decoration:none}
.bgj-redesign .weekly-highlight-caption strong{color:#f4f5f6}
.bgj-redesign #homeView > #weeklyHighlightsHeading{display:flex;align-items:center;justify-content:space-between!important;text-align:left!important}
.bgj-redesign .bgj-highlights-view-all{font:900 11px "Barlow Condensed",Arial,sans-serif;color:var(--bgj-orange);text-decoration:none;letter-spacing:.07em}
.bgj-redesign .bgj-heading-slashes{color:var(--bgj-orange)}
.bgj-redesign .matches-panel .match-when,.bgj-redesign .matches-panel .match-map{color:var(--bgj-orange)}
.bgj-redesign .matches-panel .match-team.lose{color:#ef5f65}
.bgj-redesign .matches-panel .match-vs{color:#bec4c9}
.bgj-redesign .home-panel-intro-accent{color:var(--bgj-orange)}
@media(max-width:1150px){
  .bgj-redesign .primary-nav{flex-wrap:wrap}
  .bgj-redesign .weekly-highlights-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .bgj-redesign .site-header-inner{flex-wrap:wrap;justify-content:center}
  .bgj-redesign .primary-nav{order:3;flex-basis:100%}
  .bgj-redesign .site-main.wrap{padding:0 12px}
  .bgj-redesign .bgj-hero h1{font-size:clamp(43px,10vw,64px)}
  .bgj-redesign .weekly-highlights-grid{grid-template-columns:1fr}
}


/* ---------------------------------------------------------------------
   HOME V1.1 — V19 visual fidelity (real matches, real highlight media).
   The #homeView selectors deliberately exclude Gather, CUP and PRAC
   controls. Existing site.css remains generated by its own source files.
   --------------------------------------------------------------------- */
body.bgj-redesign:not(.showing-gathers){
  background:#080b0d;
}
.bgj-redesign .site-header-inner{
  gap:18px;
  min-height:46px;
}
.bgj-redesign .primary-nav a{letter-spacing:.045em;min-height:44px}
.bgj-redesign #steamNavBtn.steam-img-btn{
  position:relative;display:inline-flex;align-items:center;justify-content:center;
  min-height:34px;min-width:148px;padding:0 12px;border:1px solid #da7517;
  border-radius:3px;background:var(--bgj-orange);text-decoration:none;
  box-shadow:0 2px 12px #0005;
}
.bgj-redesign #steamNavBtn.steam-img-btn img{
  position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;
}
.bgj-redesign #steamNavBtn.steam-img-btn::after{
  content:"▶  SIGN IN WITH STEAM";color:#19120c;
  font:900 12px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
.bgj-redesign .bgj-hero{min-height:278px}
.bgj-redesign .bgj-hero h1{margin-bottom:22px}
.bgj-redesign .bgj-hero-content{padding-block:30px}
.bgj-redesign #homeView > #weeklyHighlightsHeading,
.bgj-redesign #homeView > #recentMatchesHeading{
  display:flex;flex-direction:row;align-items:center;justify-content:space-between!important;
  gap:16px;text-align:left!important;min-height:48px;
  padding:10px 16px!important;margin-top:23px!important;margin-bottom:0!important;
  border-color:#303a42;background:#14191d;
}
.bgj-redesign #homeView > #weeklyHighlightsHeading .home-heading-title,
.bgj-redesign #homeView > #recentMatchesHeading .home-heading-title{
  display:flex;flex-direction:row;justify-content:flex-start;align-items:center;
  flex-wrap:nowrap;gap:9px;color:#f6f7f8;
  font:italic 1000 23px/1 "Barlow Condensed",Impact,Arial,sans-serif;
  letter-spacing:.055em;white-space:nowrap;
}
.bgj-redesign #homeView > #weeklyHighlightsHeading .external-heading-bar,
.bgj-redesign #homeView > #recentMatchesHeading .external-heading-bar{
  font-size:19px;color:var(--bgj-orange);
}
.bgj-redesign .bgj-heading-slashes{color:var(--bgj-orange)}
.bgj-redesign #homeView > #weeklyHighlightsHeading .bgj-highlights-view-all,
.bgj-redesign #homeView > #recentMatchesHeading .bgj-matches-history-link{
  flex:0 0 auto;align-self:center;white-space:nowrap;text-decoration:none;
  font:900 11px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.08em;color:var(--bgj-orange);
}
.bgj-redesign #homeView > #weeklyHighlightsHeading .bgj-highlights-view-all:hover,
.bgj-redesign #homeView > #recentMatchesHeading .bgj-matches-history-link:hover{
  color:#ffb969;text-decoration:underline;
}
.bgj-redesign #homeView > #recentMatchesHeading .bgj-matches-heading-copy{
  display:flex;min-width:0;flex-direction:column;gap:5px;text-align:left;
}
.bgj-redesign #homeView > #recentMatchesHeading .bgj-matches-heading-copy p{
  margin:0;color:#a2aab1;
  font:500 12px/1.35 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;text-transform:none;
}
.bgj-redesign #homeView > #weeklyHighlightsSection,
.bgj-redesign #homeView > #matchesSection{
  background:#14191d;border-color:#303a42;box-shadow:0 13px 29px #0006;
  padding:13px 15px!important;
}
.bgj-redesign #homeView > #weeklyHighlightsSection{padding-block:13px 16px!important}
.bgj-redesign .weekly-highlights-grid{gap:12px;align-items:stretch}
.bgj-redesign #weeklyHighlightsSection .weekly-highlight-card{
  display:flex;flex-direction:column;overflow:hidden;min-width:0;
  border:1px solid #313b43;border-radius:4px;
  background:#090d11;
}
.bgj-redesign #weeklyHighlightsSection .weekly-highlight-video-wrap{
  border:0;border-radius:0;box-shadow:none;background:#080b0e;
}
.bgj-redesign #weeklyHighlightsSection .weekly-highlight-video{
  width:100%;aspect-ratio:16/9;object-fit:cover;background:#080b0e;
}
.bgj-redesign #weeklyHighlightsSection .weekly-highlight-caption{
  margin:0;padding:9px 6px;min-height:33px;text-align:center;
  font:900 13px/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;color:#e5e9ed;background:#0a0e12;
}
.bgj-redesign #weeklyHighlightsSection .weekly-highlight-caption .bgj-clip-player,
.bgj-redesign #weeklyHighlightsSection .weekly-highlight-caption .bgj-clip-player a{
  color:var(--bgj-orange);
}
.bgj-redesign #weeklyHighlightsSection .weekly-highlight-caption strong{
  color:#f1f3f5;
}
.bgj-redesign #homeView > #matchesSection .home-panel-intro,
.bgj-redesign #homeView > #matchesSection .home-panel-intro-divider{
  display:none;
}
.bgj-redesign #homeView > #matchesSection .match{
  overflow:hidden;border:1px solid #303a40;border-radius:4px;
  background:#0b1013;box-shadow:none;margin-bottom:7px;
}
.bgj-redesign #homeView > #matchesSection .match:last-child{margin-bottom:0}
.bgj-redesign #homeView > #matchesSection .match:hover{
  border-color:#875025;background:#101519;
}
.bgj-redesign #homeView > #matchesSection .match.open{
  border-top-color:var(--bgj-orange);border-bottom-color:var(--bgj-orange);
  box-shadow:none;
}
.bgj-redesign #homeView > #matchesSection .match-head{
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;
  align-items:center;gap:12px;min-height:52px;padding:8px 12px;
  background:#0a0f12;
}
.bgj-redesign #homeView > #matchesSection .match-head-grid{
  min-width:0;display:grid;grid-template-columns:155px 73px 91px minmax(0,1fr);
  align-items:center;gap:12px;
}
.bgj-redesign #homeView > #matchesSection .match-when{
  display:flex;align-items:center;min-height:30px;min-width:0;
  white-space:nowrap;font:900 12px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;color:var(--bgj-orange);
}
.bgj-redesign #homeView > #matchesSection .match-score,
.bgj-redesign #homeView > #matchesSection .match-map{
  display:flex;align-items:center;justify-content:center;min-height:29px;
  font:900 12px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;color:#f2f3f5;
}
.bgj-redesign #homeView > #matchesSection .match-score-pill,
.bgj-redesign #homeView > #matchesSection .match-map{
  border:1px solid #394249;border-radius:3px;
  background:#0e1417;min-height:28px;height:28px;
}
.bgj-redesign #homeView > #matchesSection .match-score-pill{
  min-width:68px;padding:0 8px;font:900 12px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
.bgj-redesign #homeView > #matchesSection .match-map{
  min-width:82px;padding:0 7px;color:#e4e8ea;
}
.bgj-redesign #homeView > #matchesSection .match-teams{
  min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 27px minmax(0,1fr);
  gap:5px;align-items:center;color:#f2f2f2;
  font:900 12px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
.bgj-redesign #homeView > #matchesSection .match-team.left{text-align:right;color:#e8ecef}
.bgj-redesign #homeView > #matchesSection .match-team.right{text-align:left;color:#e8ecef}
.bgj-redesign #homeView > #matchesSection .match-team.win{color:#4edb83}
.bgj-redesign #homeView > #matchesSection .match-team.lose{color:#ee6373}
.bgj-redesign #homeView > #matchesSection .match-vs{
  width:27px;display:flex;align-items:center;justify-content:center;
  font:800 10px/1 "Barlow Condensed",Arial,sans-serif;color:#a8b1b9;letter-spacing:.055em;
}
.bgj-redesign #homeView > #matchesSection .match-head-actions{
  flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:7px;
}
.bgj-redesign #homeView > #matchesSection .match-highlight-badge,
.bgj-redesign #homeView > #matchesSection .match-demo-btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:29px;min-height:29px;min-width:105px;width:auto;padding:0 10px;
  border:1px solid #b66d2b;border-radius:3px;background:#17120e;
  color:#ffb364;text-decoration:none;
  font:900 11px/1 "Barlow Condensed",Arial,sans-serif;white-space:nowrap;letter-spacing:.055em;
}
.bgj-redesign #homeView > #matchesSection .match-highlight-badge::before{content:none}
.bgj-redesign #homeView > #matchesSection .match-highlight-badge.processing{
  color:#eac578;border-color:#9d7b34;
}
.bgj-redesign #homeView > #matchesSection .match-demo-btn.available:hover{
  background:#362116;border-color:var(--bgj-orange);color:#fff;
}
.bgj-redesign #homeView > #matchesSection .match-demo-btn.unavailable{
  color:#89939b;border-color:#3e4346;background:#121618;
}
.bgj-redesign #homeView > #matchesSection .match-expand-btn{
  display:inline-flex;justify-content:center;align-items:center;
  width:32px;min-width:32px;height:29px;min-height:29px;
  border:1px solid #3b434c;border-radius:3px;background:#151b20;
  color:#aeb7bf;
}
.bgj-redesign #homeView > #matchesSection .match.open .match-expand-btn{
  border-color:#b66d2b;color:#ffb364;
}
.bgj-redesign #homeView > #matchesSection .match-body{
  border-top:0;background:#0b1013;color:#f4f5f6;
}
.bgj-redesign #homeView > #matchesSection .match-highlights{
  background:#0e1316;border:0;padding:14px 13px;
}
.bgj-redesign #homeView > #matchesSection .match-highlights-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;
}
.bgj-redesign #homeView > #matchesSection .highlight-card{
  border:1px solid #313a43;border-radius:4px;background:#0b1014;box-shadow:none;
}
.bgj-redesign #homeView > #matchesSection .match-scoreboard-label{
  border-top:0;color:#f5f6f7;
}
.bgj-redesign #homeView > #matchesSection .match-body .table{
  color:#e5ebee;background:#0a0e11;
}
.bgj-redesign #homeView > #matchesSection .match-body .table th{
  color:#aeb8bd;border-color:#283238;
}
.bgj-redesign #homeView > #matchesSection .match-body .table td{
  border-color:#263238;
}
.bgj-redesign #homeView > #matchesSection .progressive-load-btn,
.bgj-redesign #matchesLoadMoreBtn{
  background:#16110d;border:1px solid #b66d2b;border-radius:3px;
  color:#ffa146;font:900 12px "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
.bgj-redesign #matchesLoadMoreBtn:hover{background:#2a1910;color:#fff}
@media(min-width:1151px){
  /* Match teams' VS is geometrically centered across the entire row. */
  .bgj-redesign #homeView > #matchesSection .match-teams{
    position:absolute;left:50%;transform:translateX(-50%);
    width:310px;max-width:31%;
  }
}
@media(max-width:1150px){
  .bgj-redesign #homeView > #matchesSection .match-head-grid{
    grid-template-columns:116px 65px 77px minmax(0,1fr);gap:8px;
  }
  .bgj-redesign #homeView > #matchesSection .match-highlights-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:900px){
  .bgj-redesign #homeView > #matchesSection .match-head{
    grid-template-columns:minmax(0,1fr);gap:9px;
  }
  .bgj-redesign #homeView > #matchesSection .match-head-grid{
    grid-template-columns:112px 65px 77px minmax(0,1fr);
  }
  .bgj-redesign #homeView > #matchesSection .match-head-actions{
    justify-content:flex-end;
  }
}
@media(max-width:620px){
  .bgj-redesign #homeView > #weeklyHighlightsHeading,
  .bgj-redesign #homeView > #recentMatchesHeading{
    padding:10px!important;gap:9px;
  }
  .bgj-redesign #homeView > #weeklyHighlightsHeading .home-heading-title,
  .bgj-redesign #homeView > #recentMatchesHeading .home-heading-title{
    font-size:19px;
  }
  .bgj-redesign #homeView > #recentMatchesHeading .bgj-matches-heading-copy p{
    font-size:11px;
  }
  .bgj-redesign #homeView > #matchesSection .match-head-grid{
    grid-template-columns:1fr 1fr;row-gap:8px;
  }
  .bgj-redesign #homeView > #matchesSection .match-head-grid .match-teams{
    grid-column:1/-1;position:static;transform:none;max-width:none;width:100%;
  }
  .bgj-redesign #homeView > #matchesSection .match-head-actions{
    flex-wrap:wrap;justify-content:flex-start;
  }
  .bgj-redesign #homeView > #matchesSection .match-highlights-grid{
    grid-template-columns:1fr;
  }
}

/* Replace legacy green ::after hover stripe with one controlled orange
   indicator that stays INSIDE the 58px navbar (no hover-induced jumps). */
.bgj-redesign .primary-nav a{position:relative}
.bgj-redesign .primary-nav a::after{
  content:"";position:absolute;left:0;right:auto;bottom:0;
  height:2px;width:0;border:0;border-radius:0;
  background:var(--bgj-orange);box-shadow:none;
  transition:width .16s ease;
}
.bgj-redesign .primary-nav a:hover,
.bgj-redesign .primary-nav a:focus-visible{
  color:#fff;background:rgba(255,139,25,.075);
  border-color:transparent;transform:none;text-shadow:none;
}
.bgj-redesign .primary-nav a:hover::after,
.bgj-redesign .primary-nav a:focus-visible::after{right:auto;width:100%}
.bgj-redesign :is(.primary-nav a:focus-visible){outline:2px solid var(--bgj-orange);outline-offset:-2px}
/* Active indication follows the existing view state, not always HOME. */
body.bgj-redesign:has(#homeView:not([hidden])):not(.showing-gathers):not(.showing-recent-matches) .primary-nav a.nav-home,
body.bgj-redesign.showing-gathers .primary-nav #navGathersLink,
body.bgj-redesign.showing-recent-matches .primary-nav #navRecentMatchesLink,
body.bgj-redesign.showing-practice .primary-nav #navPracticeServersLink,
body.bgj-redesign.showing-highlights .primary-nav #navHighlightsLink,
body.bgj-redesign:is(.showing-cup-preview,.showing-cups) .primary-nav #navCupPreviewLink{
  color:#fff;
}
body.bgj-redesign:has(#homeView:not([hidden])):not(.showing-gathers):not(.showing-recent-matches) .primary-nav a.nav-home::after,
body.bgj-redesign.showing-gathers .primary-nav #navGathersLink::after,
body.bgj-redesign.showing-recent-matches .primary-nav #navRecentMatchesLink::after,
body.bgj-redesign.showing-practice .primary-nav #navPracticeServersLink::after,
body.bgj-redesign.showing-highlights .primary-nav #navHighlightsLink::after,
body.bgj-redesign:is(.showing-cup-preview,.showing-cups) .primary-nav #navCupPreviewLink::after{
  right:auto;width:100%;
}
/* The legacy #weeklyHighlightsSection and #matchesSection borders/shadows
   were also marked !important in the old green theme. Reset HOME only. */
body.bgj-redesign #homeView > #weeklyHighlightsSection,
body.bgj-redesign #homeView > #matchesSection{
  border-color:#303a42!important;
  box-shadow:0 14px 34px rgba(0,0,0,.42)!important;
}
body.bgj-redesign #homeView > #weeklyHighlightsHeading .external-heading-bar,
body.bgj-redesign #homeView > #recentMatchesHeading .external-heading-bar{
  text-shadow:none!important;
}
/* Existing SHARE LINK/DOWNLOAD elements and events stay intact.
   These selectors are scoped to opened match clips, not Gather controls. */
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-share-btn,
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-download-btn{
  display:inline-flex;align-items:center;justify-content:center;
  height:29px;min-height:29px;min-width:78px;padding:0 10px;
  border:1px solid #b46b2b;border-radius:3px;
  background:#251810;background-image:none;
  color:#ffc184;text-decoration:none;
  box-shadow:none;transform:none;
  font:900 11px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;cursor:pointer;
}
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-share-btn:hover,
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-download-btn:hover{
  background:#3b2414;background-image:none;
  border-color:var(--bgj-orange);color:#fff;
  transform:none;box-shadow:none;
}
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-share-btn:focus-visible,
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-download-btn:focus-visible{
  outline:2px solid var(--bgj-orange);outline-offset:2px;
}
body.bgj-redesign #homeView > #matchesSection .match-highlights .highlight-title a{
  color:var(--bgj-orange);text-decoration:none;
}
body.bgj-redesign #homeView > #matchesSection .match-highlights .highlight-title a:hover{
  color:#ffc58e;text-decoration:underline;
}
/* Preserve green/red winner identity in the actual text only.
   Large scoreboard row backgrounds stay charcoal, not legacy green. */
body.bgj-redesign #homeView > #matchesSection .match-body .table tr.win td,
body.bgj-redesign #homeView > #matchesSection .match-body .table tr.lose td{
  background:#101519;
}
body.bgj-redesign #homeView > #matchesSection .match-body .table tr:hover td{
  background:#1a2025;
}
@media(max-width:1150px){
  .bgj-redesign .primary-nav{gap:1px}
  .bgj-redesign .primary-nav a{font-size:13px;padding:0 7px}
}
@media(max-width:720px){
  .bgj-redesign .site-header-inner{min-height:0}
  .bgj-redesign .primary-nav a{font-size:12px;min-height:36px;padding:0 8px}
}

/* HOME V1.3 — premium gallery trial. HOME only; library/CUP/Gather unchanged. */
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card{
  position:relative;isolation:isolate;min-width:0;overflow:hidden;
  border:1px solid #3b4650;border-radius:5px;background:#0a0f14;
  transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card:hover,
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card:focus-within{
  transform:translateY(-2px);border-color:var(--bgj-orange);
  box-shadow:0 14px 32px #0007,0 0 0 1px #ff8b191a;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-media{
  display:block;position:relative;isolation:isolate;overflow:hidden;
  aspect-ratio:16/9;background:#070a0e;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-media::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,#05080c44,#05080c0d 40%,#05080c77);
  transition:opacity .2s ease;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .is-playing .bgj-gallery-media::after{opacity:0}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card .weekly-highlight-video{
  display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;
  background:#080b0e;pointer-events:none;
  transition:transform .3s ease,filter .25s ease;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card:not(.is-playing):hover .weekly-highlight-video{
  transform:scale(1.025);filter:brightness(1.08);
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card.is-playing .weekly-highlight-video{
  pointer-events:auto;transform:none;filter:none;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-tag{
  position:absolute;top:11px;left:11px;z-index:2;pointer-events:none;
  padding:5px 8px;border-left:2px solid var(--bgj-orange);
  background:#090c10cf;backdrop-filter:blur(5px);
  color:#eceff2;font:800 10px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.1em;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-play{
  position:absolute;z-index:3;left:50%;top:50%;
  display:flex;align-items:center;justify-content:center;
  width:60px;height:60px;margin:0;padding:0;border:1px solid var(--bgj-orange);
  border-radius:50%;background:#0a0c0fd8;color:#fff;
  box-shadow:0 0 0 7px #0c101448,0 8px 24px #0007;
  transform:translate(-50%,-50%);cursor:pointer;
  transition:background .18s ease,box-shadow .18s ease,opacity .18s ease;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-play-symbol{
  display:block;width:0;height:0;margin-left:4px;
  border-top:10px solid transparent;border-bottom:10px solid transparent;
  border-left:16px solid var(--bgj-orange);
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-play:hover,
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-play:focus-visible{
  background:var(--bgj-orange);outline:2px solid #fff;outline-offset:4px;
  box-shadow:0 0 0 9px #ff8b192b,0 12px 30px #0009;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-play:is(:hover,:focus-visible) .bgj-gallery-play-symbol{
  border-left-color:#111419;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-play:disabled{opacity:.35;cursor:not-allowed}
.bgj-redesign #homeView > #weeklyHighlightsSection .is-playing :is(.bgj-gallery-play,.bgj-gallery-tag){
  opacity:0;visibility:hidden;pointer-events:none;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card .weekly-highlight-caption{
  display:flex;align-items:center;justify-content:center;gap:4px;
  min-height:43px;padding:10px;border-top:1px solid #313b45;background:#0b1016;
  font-size:15px;line-height:1.2;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card:hover .weekly-highlight-caption{
  border-top-color:#885026;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card .bgj-clip-player,
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card .bgj-clip-player a{
  color:var(--bgj-orange);text-decoration:none;
}
.bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card .bgj-clip-player a:hover{
  color:#ffc183;text-decoration:underline;
}
@media(max-width:720px){
  .bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-play{width:54px;height:54px}
}
@media(prefers-reduced-motion:reduce){
  .bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card,
  .bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-play,
  .bgj-redesign #homeView > #weeklyHighlightsSection .weekly-highlight-video{
    transition:none;
  }
  .bgj-redesign #homeView > #weeklyHighlightsSection .bgj-gallery-card:hover{transform:none}
}

/* ------------------------------------------------------------------
   HOME V1.4 — clean cup-free presentation + premium match history.
   CUP view/routes remain wired; only the visible nav and hero CTA
   are omitted until the CUP feature is separately approved.
   ------------------------------------------------------------------ */
.bgj-redesign .primary-nav #navCupPreviewLink[hidden]{
  display:none!important;
}
.bgj-redesign .bgj-hero-actions{gap:0}
.bgj-redesign .bgj-hero-btn.primary{
  width:248px;min-width:248px;max-width:100%;min-height:53px;
  box-sizing:border-box;padding:12px 20px;
  font:900 17px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
  box-shadow:0 6px 22px rgba(255,139,25,.13);
}
.bgj-redesign .bgj-hero-btn.primary span{
  font:900 22px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
.bgj-redesign .bgj-hero-btn.primary:hover,
.bgj-redesign .bgj-hero-btn.primary:focus-visible{
  background:#ffac4e;filter:none;
  box-shadow:0 9px 27px rgba(255,139,25,.22);
}
.bgj-redesign .bgj-hero-btn.primary:focus-visible{
  outline:2px solid #fff;outline-offset:3px;
}
/* Match rows: same underlying matchCard renderer and click handlers.
   Three visual zones remain info, centered teams and score, actions.
   Only HOME/MATCHES views are affected, never Gather or CUP controls. */
body.bgj-redesign #homeView > #matchesSection .match{
  margin-bottom:9px;border:1px solid #313a43;border-radius:5px;
  background:#0b1014;
  transition:border-color .16s ease,box-shadow .16s ease;
}
body.bgj-redesign #homeView > #matchesSection .match:hover{
  border-color:#a46228;box-shadow:0 5px 20px #0005;
}
body.bgj-redesign #homeView > #matchesSection .match.open{
  border-top:2px solid var(--bgj-orange);
  border-bottom:2px solid var(--bgj-orange);
  border-left-color:#343d45;border-right-color:#343d45;
  box-shadow:none;
}
body.bgj-redesign #homeView > #matchesSection .match-head{
  min-height:71px;padding:11px 16px;gap:14px;
  background:linear-gradient(100deg,#10161b,#0b1014 67%,#0d1217);
  cursor:pointer;
}
body.bgj-redesign #homeView > #matchesSection .match.open .match-head{
  background:linear-gradient(100deg,#171b20,#101419 70%);
}
body.bgj-redesign #homeView > #matchesSection .match-head-grid{
  grid-template-columns:168px 96px 98px minmax(0,1fr);
  align-items:center;gap:13px;
}
body.bgj-redesign #homeView > #matchesSection .match-when{
  min-height:36px;
  font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;color:#ffa340;
}
body.bgj-redesign #homeView > #matchesSection .match-score-pill{
  min-width:89px;height:39px;min-height:39px;
  padding:0 10px;border-radius:4px;
  border-color:#454e56;background:#192027;
  box-shadow:inset 0 1px 0 #ffffff0a;
  font:900 18px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .match-score-pill .dash{
  color:#84909a;margin:0 2px;
}
body.bgj-redesign #homeView > #matchesSection .match-map{
  height:36px;min-height:36px;min-width:92px;
  padding:0 9px;border-radius:4px;
  border-color:#34414b;background:#0e151b;
  font:900 14px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.06em;color:#e6eaed;
}
body.bgj-redesign #homeView > #matchesSection .match-teams{
  grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);
  gap:9px;align-items:center;
  font:900 16px/1.14 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .match-team{
  display:block;min-width:0;overflow:hidden;
  white-space:nowrap;text-overflow:ellipsis;
}
body.bgj-redesign #homeView > #matchesSection .match-vs{
  width:30px;font:900 11px/1 "Barlow Condensed",Arial,sans-serif;
  color:#8f9ba3;letter-spacing:.075em;
}
body.bgj-redesign #homeView > #matchesSection .match-head-actions{
  gap:9px;align-items:center;
}
body.bgj-redesign #homeView > #matchesSection .match-highlight-badge,
body.bgj-redesign #homeView > #matchesSection .match-demo-btn{
  min-width:121px;height:36px;min-height:36px;
  padding:0 13px;border-radius:4px;
  font:900 12px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .match-highlight-badge{
  background:#21170f;border-color:#ae6627;color:#ffb66e;
}
body.bgj-redesign #homeView > #matchesSection .match-demo-btn.available{
  background:#1f1710;border-color:#8b542a;color:#e7bd92;
}
body.bgj-redesign #homeView > #matchesSection .match-expand-btn{
  width:37px;min-width:37px;height:36px;min-height:36px;
  background:#182026;border-radius:4px;
}
body.bgj-redesign #homeView > #matchesSection .match-expand-btn:hover,
body.bgj-redesign #homeView > #matchesSection .match.open .match-expand-btn{
  border-color:var(--bgj-orange);color:#ffad58;
  background:#2b1c13;
}
/* When expanded, captions get full width and their actions occupy a
   quieter separate row. Retain the existing share/download elements. */
body.bgj-redesign #homeView > #matchesSection .match-highlights{
  padding:19px 16px 22px;background:#0c1116;
}
body.bgj-redesign #homeView > #matchesSection .match-highlights-head{
  margin-bottom:16px;align-items:center;
}
body.bgj-redesign #homeView > #matchesSection .match-highlights-title{
  font:900 17px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.07em;color:#f3f5f7;
}
body.bgj-redesign #homeView > #matchesSection .highlight-card{
  background:#0a0f14;border-color:#34404b;
}
body.bgj-redesign #homeView > #matchesSection .highlight-meta{
  padding:13px 12px;
}
body.bgj-redesign #homeView > #matchesSection .highlight-meta-row{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;align-items:center;
}
body.bgj-redesign #homeView > #matchesSection .highlight-title{
  grid-column:1/-1;min-height:30px;
  white-space:normal;overflow:visible;text-overflow:clip;
  overflow-wrap:anywhere;
  font:850 14px/1.3 "Barlow Condensed",Arial,sans-serif;
  color:#f0f2f4;letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .highlight-title a{
  color:var(--bgj-orange);text-decoration:none;
}
body.bgj-redesign #homeView > #matchesSection .highlight-title a:hover{
  color:#ffc083;text-decoration:underline;
}
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-share-btn,
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-download-btn{
  width:100%;min-width:0;max-width:none;height:29px;min-height:29px;
  background:#18181a;background-image:none;border-color:#61452e;
  color:#dfaf80;font:900 11px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-share-btn:hover,
body.bgj-redesign #homeView > #matchesSection .match-highlights .clip-download-btn:hover{
  background:#322216;background-image:none;
  border-color:var(--bgj-orange);color:#fff;
}
body.bgj-redesign #homeView > #matchesSection .match-scoreboard-label{
  padding:17px 16px 12px;letter-spacing:.09em;
  font:900 15px/1 "Barlow Condensed",Arial,sans-serif;
  color:#f4f6f7;
}
body.bgj-redesign #homeView > #matchesSection .match-body .table{
  width:100%;font-size:13px;border-collapse:collapse;
}
body.bgj-redesign #homeView > #matchesSection .match-body .table th{
  font-size:11px;letter-spacing:.08em;
  background:#11171c;color:#b7c1c8;
  padding:12px 14px;
}
body.bgj-redesign #homeView > #matchesSection .match-body .table td{
  padding:12px 14px;
}
body.bgj-redesign #homeView > #matchesSection .match-body .table tr:nth-child(even) td{
  background:#10161a;
}
body.bgj-redesign #homeView > #matchesSection .match-body .table tr:hover td{
  background:#1b2429;
}
@media(min-width:1151px){
  body.bgj-redesign #homeView > #matchesSection .match-teams{
    width:340px;max-width:32%;
  }
}
@media(min-width:901px) and (max-width:1320px){
  body.bgj-redesign #homeView > #matchesSection .match-head-grid{
    grid-template-columns:138px 85px 85px minmax(0,1fr);gap:9px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-when{font-size:12px}
  body.bgj-redesign #homeView > #matchesSection .match-score-pill{min-width:80px}
  body.bgj-redesign #homeView > #matchesSection .match-map{min-width:80px}
  body.bgj-redesign #homeView > #matchesSection .match-head-actions{gap:6px}
  body.bgj-redesign #homeView > #matchesSection .match-highlight-badge,
  body.bgj-redesign #homeView > #matchesSection .match-demo-btn{
    min-width:106px;padding:0 7px;font-size:11px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-teams{
    font-size:13px;
  }
}
@media(max-width:900px){
  body.bgj-redesign #homeView > #matchesSection .match-head{
    gap:11px;padding:12px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-head-grid{
    grid-template-columns:130px 95px 90px minmax(0,1fr);gap:8px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-teams{font-size:13px}
}
@media(max-width:620px){
  body.bgj-redesign #homeView > #matchesSection .match-head-grid{
    grid-template-columns:minmax(0,1fr) auto;gap:10px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-map{justify-self:start}
  body.bgj-redesign #homeView > #matchesSection .match-teams{
    grid-column:1/-1;max-width:none;width:100%;font-size:14px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-head-actions{
    justify-content:flex-start;flex-wrap:wrap;
  }
  .bgj-redesign .bgj-hero-btn.primary{width:min(248px,100%);min-width:0}
}
@media(prefers-reduced-motion:reduce){
  body.bgj-redesign #homeView > #matchesSection .match{transition:none}
}

/* HOME V1.5 readability — does not alter original Gather/CUP UI logic */
.bgj-redesign .site-header-inner{min-height:64px;gap:22px}
body.bgj-redesign .primary-nav{gap:5px}
body.bgj-redesign .primary-nav a{
  font:900 16px/1.15 "Barlow Condensed",Arial,sans-serif;
  min-height:48px;padding:0 12px;letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .match-teams{
  font:900 19px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .match-vs{
  font:900 12px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.09em;
}
@media(min-width:1151px){
 body.bgj-redesign #homeView > #matchesSection .match-teams{width:410px;max-width:36%}
}
@media(min-width:901px) and (max-width:1350px){
 body.bgj-redesign .primary-nav a{font-size:15px;padding:0 9px}
 body.bgj-redesign #homeView > #matchesSection .match-teams{font-size:16px}
}
@media(max-width:1150px){
 body.bgj-redesign .primary-nav a{font-size:14px;min-height:42px;padding:0 8px}
}
@media(max-width:720px){
 .bgj-redesign .site-header-inner{min-height:0}
 body.bgj-redesign .primary-nav a{font-size:13.5px;min-height:37px;padding:0 7px}
}

/* HOME V1.5 split team panels — premium 5v5 scoreboard, real teams only. */
body.bgj-redesign #homeView > #matchesSection .match-scoreboard-label{
  padding:19px 17px 12px;
  font:italic 900 19px/1 "Barlow Condensed",Arial,sans-serif;
  color:#f5f6f7;letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-scoreboards{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  position:relative;gap:20px;margin:0 16px 18px;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-scoreboards::before{
  content:"";position:absolute;left:50%;top:9px;bottom:9px;
  width:1px;background:#44515b;transform:translateX(-50%);pointer-events:none;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-panel{
  --team-accent:#788590;--team-tint:#141b22;
  min-width:0;overflow:hidden;border:1px solid #34414a;
  border-top:3px solid var(--team-accent);border-radius:5px;background:#0d1318;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-panel--winner{
  --team-accent:#36c77a;--team-tint:#12261e;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-panel--loser{
  --team-accent:#e16a77;--team-tint:#281920;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-panel-heading{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 14px 7px;background:var(--team-tint);
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-panel-name{
  margin:0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  color:#edf2f4;font:900 20px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-panel--winner .bgj-team-panel-name{color:#68e3a3}
body.bgj-redesign #homeView > #matchesSection .bgj-team-outcome{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;min-width:62px;padding:5px 7px;
  border:1px solid var(--team-accent);border-radius:3px;color:var(--team-accent);
  font:900 11px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.06em;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table-scroll{min-width:0;overflow-x:auto}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table{
  width:100%;min-width:390px;table-layout:fixed;border-collapse:collapse;
  background:#0b1217;font:500 13px/1.35 Arial,sans-serif;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table th,
body.bgj-redesign #homeView > #matchesSection .bgj-team-table td{
  border-bottom:1px solid #28343c;padding:12px 8px;
  text-align:right;color:#e4e8ec;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table th{
  color:#a9b4bc;background:#121b22;
  font:900 11px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table th:first-child,
body.bgj-redesign #homeView > #matchesSection .bgj-team-table td:first-child{
  width:40%;text-align:left;padding-left:13px;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table th:last-child,
body.bgj-redesign #homeView > #matchesSection .bgj-team-table td:last-child{
  width:17%;padding-right:13px;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table tr:last-child td{border-bottom:0}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table td.player{
  overflow-wrap:anywhere;font-weight:700;color:#e7eaef;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table .player a{
  color:inherit;text-decoration:none;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table .player a:hover{
  color:var(--bgj-orange);text-decoration:underline;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-panel--winner .bgj-team-table tbody tr{
  background:rgba(40,172,101,.06);
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-panel--loser .bgj-team-table tbody tr{
  background:rgba(218,77,93,.04);
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table tbody tr:hover{
  background:rgba(255,139,25,.11);
}
body.bgj-redesign #homeView > #matchesSection .bgj-scoreboard-fallback-wrap{
  margin:0 16px 18px;overflow-x:auto;
}
@media(max-width:1050px){
  body.bgj-redesign #homeView > #matchesSection .bgj-team-scoreboards{
    grid-template-columns:1fr;gap:15px;
  }
  body.bgj-redesign #homeView > #matchesSection .bgj-team-scoreboards::before{display:none}
}
@media(max-width:620px){
  body.bgj-redesign #homeView > #matchesSection .bgj-team-scoreboards{margin:0 9px 14px}
  body.bgj-redesign #homeView > #matchesSection .bgj-team-table{min-width:380px}
}

/* ------------------------------------------------------------------
   HOME V1.6 — polished match ribbons, consistent data/control sizing.
   Approved V1.5 two-team scoreboard rendering and winner colors retained.
   ------------------------------------------------------------------ */
.bgj-redesign .bgj-hero-btn.primary{
  width:218px;min-width:218px;max-width:100%;
  justify-content:center;gap:18px;
  font:900 19px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
.bgj-redesign .bgj-hero-btn.primary span{font-size:21px;line-height:1}
body.bgj-redesign #homeView > #matchesSection .match-head{
  --bgj-match-box-width:96px;--bgj-match-box-height:38px;
  min-height:72px;padding:12px 16px;align-items:center;
}
body.bgj-redesign #homeView > #matchesSection .match-head-grid{
  grid-template-columns:154px var(--bgj-match-box-width) var(--bgj-match-box-width) minmax(0,1fr);
  align-items:center;gap:12px;
}
body.bgj-redesign #homeView > #matchesSection .match-when{
  min-height:var(--bgj-match-box-height);
  display:flex;align-items:center;
  font:900 15px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;font-variant-numeric:tabular-nums;
}
body.bgj-redesign #homeView > #matchesSection .match-score{
  display:flex;align-items:center;justify-self:start;
  width:var(--bgj-match-box-width);height:var(--bgj-match-box-height);
}
body.bgj-redesign #homeView > #matchesSection .match-score-pill,
body.bgj-redesign #homeView > #matchesSection .match-map{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  width:var(--bgj-match-box-width);min-width:var(--bgj-match-box-width);
  max-width:var(--bgj-match-box-width);
  height:var(--bgj-match-box-height);min-height:var(--bgj-match-box-height);
  margin:0;padding:0 8px;
  border:1px solid #3c4852;border-radius:4px;
  background:#151d24;color:#f0f3f6;
  box-shadow:none;
  font:900 15px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;font-variant-numeric:tabular-nums;
}
body.bgj-redesign #homeView > #matchesSection .match-score-pill{
  display:grid;grid-template-columns:1fr auto 1fr;gap:2px;
}
body.bgj-redesign #homeView > #matchesSection .match-score-pill .dash{
  margin:0;color:#9da9b2;
}
body.bgj-redesign #homeView > #matchesSection .match-teams{
  font:900 24px/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);
  gap:9px;
}
body.bgj-redesign #homeView > #matchesSection .match-vs{
  width:34px;color:#a6b1ba;
  font:900 14px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.065em;
}
body.bgj-redesign #homeView > #matchesSection .match-head-actions{
  gap:8px;align-items:center;
}
body.bgj-redesign #homeView > #matchesSection .match-highlight-badge,
body.bgj-redesign #homeView > #matchesSection .match-demo-btn{
  min-height:var(--bgj-match-box-height);height:var(--bgj-match-box-height);
  min-width:126px;padding:0 11px;
  font:900 13px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
body.bgj-redesign #homeView > #matchesSection .match-expand-btn{
  height:var(--bgj-match-box-height);min-height:var(--bgj-match-box-height);
  width:38px;min-width:38px;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-panel-heading{
  padding:14px 14px 13px;
}
body.bgj-redesign #homeView > #matchesSection .bgj-team-table th{
  font:900 12px/1.2 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
@media(min-width:1401px){
  body.bgj-redesign #homeView > #matchesSection .match-teams{
    left:calc(50% + 12px);
    width:460px;max-width:34%;
  }
}
@media(min-width:1151px) and (max-width:1400px){
  body.bgj-redesign #homeView > #matchesSection .match-teams{
    left:calc(50% + 20px);
    width:360px;max-width:32%;font-size:20px;
  }
}
@media(max-width:1150px){
  body.bgj-redesign #homeView > #matchesSection .match-head-grid{
    grid-template-columns:128px 96px 96px minmax(0,1fr);gap:8px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-teams{
    font-size:19px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-head-actions{
    gap:6px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-highlight-badge,
  body.bgj-redesign #homeView > #matchesSection .match-demo-btn{
    min-width:108px;font-size:12px;padding:0 8px;
  }
}
@media(max-width:900px){
  body.bgj-redesign #homeView > #matchesSection .match-head-grid{
    grid-template-columns:128px 96px 96px minmax(0,1fr);
  }
}
@media(max-width:620px){
  .bgj-redesign .bgj-hero-btn.primary{
    width:min(218px,100%);min-width:0;
  }
  body.bgj-redesign #homeView > #matchesSection .match-head-grid{
    grid-template-columns:minmax(0,1fr) 96px;gap:8px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-teams{
    grid-column:1/-1;position:static;width:100%;
    max-width:none;transform:none;font-size:18px;
  }
  body.bgj-redesign #homeView > #matchesSection .match-map{
    justify-self:start;
  }
}


/* ------------------------------------------------------------------
   GATHERS V1 — four-server overview inspired by the provided V19.
   Overview visual styles persist while original lobby expands inline; HOME/CUP untouched.
   Unverified roster slots are placeholders, not fake players.
   ------------------------------------------------------------------ */
body.bgj-redesign.showing-gathers #gatherServersHeading,
body.bgj-redesign.showing-gathers #serverOverview .home-panel-intro,
body.bgj-redesign.showing-gathers #serverOverview .home-panel-intro-divider{display:none!important}
body.bgj-redesign.showing-gathers #serverOverview{
  max-width:var(--bgj-max);width:100%;margin:24px auto 48px!important;
}
body.bgj-redesign.showing-gathers #serverOverview .gather-server-panel{
  min-width:0;max-width:none;width:100%;padding:0!important;margin:0!important;
  border:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;
}
body.bgj-redesign.showing-gathers #gatherCardList{
  display:grid;grid-template-columns:minmax(0,1fr);gap:14px;
  width:100%;max-width:none;padding:0!important;margin:0;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-overview-card{
  display:grid;grid-template-columns:minmax(0,26%) minmax(0,54%) minmax(0,20%);
  min-width:0;min-height:212px;gap:0;padding:0!important;margin:0;
  border:1px solid #343e46!important;border-left:3px solid var(--bgj-orange)!important;
  border-radius:7px;background:#10151a!important;
  box-shadow:0 8px 24px #0005!important;transform:none;overflow:hidden;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-overview-card:hover{
  border-color:#57626b!important;border-left-color:var(--bgj-orange)!important;
  background:#10151a!important;transform:none;box-shadow:0 12px 30px #0007!important;
}
body.bgj-redesign.showing-gathers .gather-card-info{
  display:flex;flex-direction:column;min-width:0;padding:21px 21px 18px;
  border-right:1px solid #303942;
  background:linear-gradient(90deg,#11181de8,#11181df1),url('/assets/thumbnails/aim-map-thumb-wide.png') center/cover no-repeat;
}
body.bgj-redesign.showing-gathers .gather-card-kicker{
  color:var(--bgj-orange);font:900 21px/1.12 "Barlow Condensed",Arial,sans-serif;letter-spacing:.065em;
}
body.bgj-redesign.showing-gathers .gather-card-top{display:block;margin:8px 0 0;padding:0}
body.bgj-redesign.showing-gathers .gather-card-top .server-game-thumb{display:none!important}
body.bgj-redesign.showing-gathers .gather-card-heading{
  display:block;min-width:0;padding:0;align-items:stretch;
}
body.bgj-redesign.showing-gathers .gather-server-name{
  width:auto;overflow:visible;white-space:normal;text-align:left;color:#f6f6f7;
  font:italic 1000 30px/1 "Barlow Condensed",Impact,sans-serif;
  letter-spacing:.055em;text-shadow:0 2px 9px #000b;
}
body.bgj-redesign.showing-gathers .gather-server-name strong{color:inherit}
body.bgj-redesign.showing-gathers .gather-card-stats{
  display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:17px 0 0;min-width:0;
}
body.bgj-redesign.showing-gathers .gather-card-stats .gather-card-stat{
  display:flex;grid-column:auto;grid-row:auto;min-width:0;align-items:baseline;gap:8px;white-space:nowrap;
}
body.bgj-redesign.showing-gathers .gather-card-stats .gather-card-stat-wide{
  flex-basis:auto;margin-bottom:3px;
}
body.bgj-redesign.showing-gathers .gather-card-stat .server-inline-label{
  color:#a1acb5;font:900 13px/1.15 "Barlow Condensed",Arial,sans-serif;flex:0 0 auto;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-card-stat strong{
  min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--bgj-orange);font:900 14px/1.15 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
/* GATHERS V1.2 — stronger server headers and tidy three-row status details.
   Keep HOST larger; each value stays aligned with its label, including long names. */
body.bgj-redesign.showing-gathers .gather-card-stats .gather-card-stat-wide .server-inline-label{
  font:900 16px/1.1 "Barlow Condensed",Arial,sans-serif;color:#cdd5db;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-card-stats .gather-card-stat-wide .server-host-value{
  font:900 17px/1.1 "Barlow Condensed",Arial,sans-serif;color:var(--bgj-orange);letter-spacing:.055em;
}
@media(max-width:500px){
  body.bgj-redesign.showing-gathers .gather-card-kicker{font-size:19px}
}
body.bgj-redesign.showing-gathers .gather-card-live{
  display:flex;justify-content:space-between;align-items:center;gap:8px;
  border-top:1px solid #364047;padding-top:10px;margin-top:auto;min-width:0;
}
body.bgj-redesign.showing-gathers .gather-card-state{
  display:flex;gap:5px;align-items:center;margin:0;min-height:16px;text-align:left;
  color:#66e999;font:900 12px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-card-state::before{
  content:"";flex:0 0 7px;width:7px;height:7px;background:currentColor;border-radius:50%;
}
body.bgj-redesign.showing-gathers .gather-card-state .gather-status-prefix{display:none}
body.bgj-redesign.showing-gathers .gather-card-state.ingame,
body.bgj-redesign.showing-gathers .gather-card-state.full{color:#ffb145}
body.bgj-redesign.showing-gathers .gather-card-state.offline{color:#f07073}
body.bgj-redesign.showing-gathers .gather-card-population{
  display:flex;gap:7px;align-items:center;color:#c6ccd2;white-space:nowrap;
  font:900 14px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-card-population strong{
  color:#e9edf0;font:900 14px/1 "Barlow Condensed",Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-card-progress{
  height:4px;flex:0 0 4px;margin-top:10px;overflow:hidden;border-radius:4px;background:#343f49;
}
body.bgj-redesign.showing-gathers .gather-card-progress-fill{
  display:block;width:0;height:100%;border-radius:inherit;background:var(--bgj-orange);transition:width .2s ease;
}
body.bgj-redesign.showing-gathers .gather-card-rosters{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;
  min-width:0;gap:12px;padding:12px 15px;
}
body.bgj-redesign.showing-gathers .gather-roster-pane{
  min-width:0;padding:9px 10px 8px;border:1px solid #303a43;border-radius:7px;
  background:linear-gradient(180deg,#171519,#111317);
}
body.bgj-redesign.showing-gathers .gather-roster-ct{
  background:linear-gradient(180deg,#0b1d2c,#0c1721);
}
body.bgj-redesign.showing-gathers .gather-roster-head{
  display:flex;align-items:center;gap:8px;min-height:28px;border-bottom:1px solid #343b42;padding-bottom:7px;
}
body.bgj-redesign.showing-gathers .gather-roster-head strong{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  font:900 13px/1 "Barlow Condensed",Arial,sans-serif;color:#ff9952;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-roster-ct .gather-roster-head strong{color:#9bc6eb}
body.bgj-redesign.showing-gathers .gather-side-chip{
  display:inline-grid;place-items:center;flex:0 0 28px;height:26px;border-radius:5px;
  border:1px solid #a24e37;background:#652c25;color:#fff;font:1000 15px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-roster-ct .gather-side-chip{
  border-color:#318ac0;background:#194d76;
}
body.bgj-redesign.showing-gathers .gather-roster-count{
  margin-left:auto;white-space:nowrap;color:#a9b2bb;
  font:900 12px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-roster-slots{
  list-style:none;margin:7px 0 0;padding:0;display:grid;gap:2px;
}
body.bgj-redesign.showing-gathers .gather-roster-slot{
  min-width:0;display:flex;align-items:center;gap:7px;height:22px;color:#78828c;
  font:italic 800 11px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-slot-avatar{
  display:inline-grid;place-items:center;flex:0 0 21px;height:21px;
  border:1px dashed #35414c;border-radius:4px;background:#192128;color:#677480;
  font:900 13px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers .gather-card-action{
  display:flex;flex-direction:column;justify-content:center;min-width:0;gap:10px;
  padding:18px 16px;border-left:1px solid #303942;background:#101418;
}
body.bgj-redesign.showing-gathers .gather-card-action .gather-open-btn{
  display:flex;align-items:center;justify-content:flex-start;gap:10px;
  width:100%;min-width:0;max-width:none;min-height:48px;height:auto;margin:0;padding:9px 12px;
  border:1px solid #db791c;border-radius:5px;
  background:linear-gradient(180deg,#ff9a29,#ff8516);background-image:linear-gradient(180deg,#ff9a29,#ff8516);
  color:#211508;box-shadow:0 6px 17px #ff88121c;
  font:italic 900 18px/1.1 "Barlow Condensed",Impact,sans-serif;
  letter-spacing:.055em;text-align:left;white-space:normal;cursor:pointer;transform:none;
}
body.bgj-redesign.showing-gathers .gather-card-action .gather-open-btn::before{
  content:"▷";font-style:normal;font-size:21px;line-height:1;
}
body.bgj-redesign.showing-gathers .gather-card-action .gather-open-btn::after{
  content:"→";margin-left:auto;font-style:normal;font-size:20px;line-height:1;transform:none;
}
body.bgj-redesign.showing-gathers .gather-card-action .gather-open-btn:hover:not(:disabled){
  filter:brightness(1.1);background:linear-gradient(180deg,#ffa747,#ff9225);
  box-shadow:0 8px 20px #ff88122d;transform:none;
}
body.bgj-redesign.showing-gathers .gather-card-action .gather-open-btn:focus-visible{
  outline:2px solid #ffbd65;outline-offset:3px;
}
/* GATHERS V1.3 — orange action buttons.
   Original site.css uses !important for stateful green START/JOIN/OPEN/VIEW
   controls. Override only the collapsed Gather overview and only for enabled
   buttons. The original offline disabled state remains unchanged. */
body.bgj-redesign.showing-gathers #homeView .gather-card-action .gather-open-btn:not(:disabled){
  border-color:#e58118!important;
  background:#ff901e!important;
  background-image:linear-gradient(180deg,#ff9b2c,#ff8516)!important;
  color:#19110b!important;
  box-shadow:0 6px 17px rgba(255,136,18,.16)!important;
  margin:0!important;
  padding:9px 12px!important;
  border-radius:5px!important;
}
@media(hover:hover){
  body.bgj-redesign.showing-gathers #homeView .gather-card-action .gather-open-btn:not(:disabled):hover{
    border-color:#ffb35a!important;
    background:#ffa339!important;
    background-image:linear-gradient(180deg,#ffad49,#ff9124)!important;
    color:#19110b!important;
    box-shadow:0 8px 20px rgba(255,136,18,.23)!important;
  }
}
body.bgj-redesign.showing-gathers #homeView .gather-card-action .gather-open-btn:not(:disabled):focus-visible{
  outline:2px solid #ffd28c!important;
  outline-offset:3px;
}

body.bgj-redesign.showing-gathers .gather-card-action .gather-open-btn:disabled{
  border-color:#4c5359;background:#2b3035;background-image:none;color:#abb0b5;
  cursor:not-allowed;box-shadow:none;
}
@media(max-width:1100px){
  body.bgj-redesign.showing-gathers #gatherCardList .gather-overview-card{
    grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);
  }
  body.bgj-redesign.showing-gathers .gather-card-action{
    grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;
    border-left:0;border-top:1px solid #303942;padding:10px 16px;
  }
  body.bgj-redesign.showing-gathers .gather-card-action .gather-open-btn{max-width:330px}
}
@media(max-width:760px){
  body.bgj-redesign.showing-gathers #gatherCardList .gather-overview-card{
    grid-template-columns:minmax(0,1fr);
  }
  body.bgj-redesign.showing-gathers .gather-card-info{
    border-right:0;border-bottom:1px solid #303942;
  }
  body.bgj-redesign.showing-gathers .gather-card-rosters{padding:12px}
  body.bgj-redesign.showing-gathers .gather-card-action{grid-column:auto}
}
@media(max-width:500px){
  body.bgj-redesign.showing-gathers .gather-card-rosters{grid-template-columns:minmax(0,1fr)}
  body.bgj-redesign.showing-gathers .gather-card-action{
    flex-direction:column;align-items:stretch;
  }
  body.bgj-redesign.showing-gathers .gather-card-action .gather-open-btn{max-width:none}
  body.bgj-redesign.showing-gathers .gather-server-name{font-size:26px}
}
@media(prefers-reduced-motion:reduce){
  body.bgj-redesign.showing-gathers .gather-card-progress-fill{transition:none}
}


/* ==========================================================================
   GATHERS EXPANDED V1 — existing lobby visual layer (2026-11-23)
   Only while a Gather lobby is open; HOME, CUP, PRAC and overview unchanged.
   Keep original DOM, side/slot mapping, controls, activity feed, map vote,
   ACCEPT semantics, and JS-hosted movement of the host control bar intact.
   ========================================================================== */
body.bgj-redesign.showing-gathers.gather-lobby-active #serverOverview{
  width:100%;max-width:var(--bgj-max);margin:23px auto 48px!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #serverOverview .gather-server-panel{
  min-width:0;width:100%;max-width:none;margin:0!important;padding:0!important;
  border:0!important;background:transparent!important;background-image:none!important;
  box-shadow:none!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #serverOverview .section-title-row{
  display:none!important;
}

/* Preserve the four original server tab buttons and their real player counts. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;margin:0;padding:0;align-items:stretch;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  min-width:0;min-height:59px;height:auto;margin:0;padding:10px 15px;
  border:1px solid #313b44!important;border-bottom-color:#313b44!important;
  border-radius:7px 7px 0 0;background:#121820!important;
  color:#dce1e6!important;box-shadow:none!important;transform:none!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab img{
  display:none!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab-name{
  flex:1 1 auto;min-width:0;width:auto;text-align:left;
  font:900 18px/1.12 "Barlow Condensed",Arial,sans-serif;
  color:#d8dfe5;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab-name strong{
  color:var(--bgj-orange)!important;font-weight:1000;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab-count{
  flex:0 0 auto;min-width:0;display:inline-flex;justify-content:center;align-items:center;
  margin:0;padding:6px 8px;border:1px solid #37434d;border-radius:5px;
  background:#0c1218;color:#c8d1d9;
  font:900 13px/1 "Barlow Condensed",Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab.viewing{
  z-index:2;border-color:#f08c24!important;border-bottom-color:#1b1714!important;
  background:#241b14!important;box-shadow:inset 0 2px 0 var(--bgj-orange)!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab.inLobby{
  border-color:#a9692e!important;background:#201912!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab.inLobby.viewing{
  border-color:#f08c24!important;border-bottom-color:#1b1714!important;
  background:#281c12!important;
}
@media(hover:hover){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab:hover{
    border-color:#bb772d!important;background:#211b16!important;
  }
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab:focus-visible{
  outline:2px solid #ffb05c;outline-offset:3px;
}

/* Separate the navigation strip from the working lobby without green framing. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount{
  display:block;width:100%;padding:15px;min-width:0;
  border:1px solid #343f49!important;border-radius:0 0 9px 9px;
  background:#0e1318!important;box-shadow:0 15px 40px rgba(0,0,0,.28)!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount.inLobby{
  border-color:#9b632f!important;background:#151412!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #lobby{
  min-width:0;width:100%;margin:0!important;padding:0!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .live-lobby-shell{
  padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .live-lobby-topbar{
  display:flex!important;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:12px;min-height:51px;margin:0;padding:5px 5px 15px!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .live-lobby-title{
  color:var(--bgj-orange);font:900 21px/1.1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.06em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .live-status{
  border:1px solid #3d4849;border-radius:5px;background:#151d20;
  color:#b8c6c2;box-shadow:none;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .live-lobby-shell .lobby{
  margin:0!important;padding:16px!important;min-width:0;
  border:1px solid #26313a!important;border-radius:8px!important;
  background:#0b1015!important;box-shadow:none!important;
}

/* The real team/mid/team grid remains the authoritative DOM and order. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #lobbyGrid{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.7fr) minmax(0,1fr);
  align-items:stretch;gap:14px;min-width:0;width:100%;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team{
  display:flex;flex-direction:column;min-width:0;gap:8px;
  padding:12px;border:1px solid #333842;border-radius:8px;
  background:linear-gradient(180deg,#171419,#101216);
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #team2{
  background:linear-gradient(180deg,#0d1b29,#0b141f);border-color:#304151;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team-head{
  display:flex;justify-content:flex-start;gap:10px;align-items:center;
  min-width:0;min-height:48px;padding:0 12px!important;border-radius:6px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team1-head{
  border:1px solid #854536!important;background:linear-gradient(180deg,#4a2623,#2b1c1d)!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team2-head{
  border:1px solid #346d99!important;background:linear-gradient(180deg,#214869,#152e44)!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team-header-label{
  flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:9px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team-header-label::before{
  content:"T1";display:grid;place-items:center;flex:0 0 29px;height:28px;
  border:1px solid #a25342;border-radius:4px;background:#68352e;
  color:#fff;font:900 15px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #team2 .team-header-label::before{
  content:"T2";border-color:#4790c4;background:#2a5d8c;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team-name{
  flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;
  text-align:left;color:#fff!important;opacity:1;
  font:900 18px/1.12 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
/* Neutral slots only; never overwrite real accepted/live/declined colors. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team .slot{
  display:flex;gap:7px;align-items:center;min-height:48px;min-width:0;
  padding:7px 10px;border-radius:6px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team .slot:not(.live):not(.accepted):not(.declined){
  border:1px solid #303a44;background:#181d23;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #team2 .slot:not(.live):not(.accepted):not(.declined){
  border-color:#2a4256;background:#131f2c;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .slot input,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .slot .player-name-display{
  min-width:0;color:#e6edf2;font-size:13px;font-weight:850;letter-spacing:0;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .slot input::placeholder{
  color:#75828f;opacity:1;
}
/* Preserve the original right-group, host/move/kick/badges ordering and handlers. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .slot-right-controls{
  min-width:0;gap:4px;
}

/* Central join/map/log controls: legible but still compact enough for 5v5. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .mid{
  display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .mid .joinbox,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .mid .box{
  min-width:0;padding:12px!important;border:1px solid #33404a!important;
  border-radius:7px;background:#141a20!important;box-shadow:none!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .mid label{
  color:#c0cbd3;font:900 13px/1.2 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #mapSelect{
  width:100%;min-height:39px;border:1px solid #3a4853;border-radius:5px;
  background:#0c141b;color:#f2f5f7;font:900 13px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .lobby-activity-box{
  display:flex;flex-direction:column;min-height:175px;min-width:0;
  border:1px solid #34414a;border-radius:7px;background:#111920;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .lobby-activity-title{
  padding:11px 12px;border-bottom:1px solid #313c45;
  color:var(--bgj-orange);text-align:left;
  font:900 15px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.07em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .lobby-activity-feed{
  padding:9px 11px;scrollbar-color:#49535a transparent;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .lobby-activity-entry{
  grid-template-columns:42px minmax(0,1fr);gap:8px;padding:6px 0;
  color:#c7d0d8;font-size:11px;border-bottom-color:#27323b;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .lobby-activity-time{color:#84929e}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .lobby-activity-empty{
  color:#8a97a1;font-size:11px;
}

/* Only eligible, enabled actions become orange; authorization stays in JS.
   ACCEPT and STOP retain distinct semantic state styles. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .mid #steamJoinBtn:not(:disabled),
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #startBtn:not(:disabled){
  border:1px solid #d7812c!important;border-radius:5px!important;
  background:linear-gradient(180deg,#ffa130,#ff8719)!important;
  color:#18100b!important;font:900 15px/1.1 "Barlow Condensed",Arial,sans-serif;
  box-shadow:0 6px 17px rgba(255,137,24,.17)!important;letter-spacing:.055em;
}
@media(hover:hover){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .mid #steamJoinBtn:not(:disabled):hover,
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #startBtn:not(:disabled):hover{
    background:linear-gradient(180deg,#ffb249,#ff9427)!important;
    border-color:#ffc16e!important;
  }
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #scrambleBtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #captainsBtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #voteMapBtn{
  background:#1a2229!important;border:1px solid #3c4b56!important;
  color:#e0e8ed!important;box-shadow:none!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #scrambleBtn:disabled,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #captainsBtn:disabled,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #voteMapBtn:disabled,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #startBtn:disabled{
  background:#171c21!important;border-color:#333c43!important;
  color:#75818b!important;box-shadow:none!important;cursor:not-allowed;
}
/* Host-only controls are moved by the existing renderer below LOBBY LOG.
   Do not recreate/reorder these nodes or override .show visibility toggles. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .lobby-action-bar.host-control-stack{
  display:flex;flex-direction:column;align-items:stretch;gap:8px;width:100%;margin:0;padding:0;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .lobby-action-bar.host-control-stack .btn{
  width:100%;min-width:0;max-width:none;min-height:40px;
  border-radius:5px;font:900 13px/1.15 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .lobby-action-bar .btn:focus-visible,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #mapSelect:focus-visible{
  outline:2px solid #ffb05a;outline-offset:2px;
}

@media(max-width:1150px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #lobbyGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #lobbyGrid .mid{
    grid-column:1/-1;order:-1;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .mid .lobby-activity-box{
    min-height:150px;
  }
}
@media(max-width:720px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-bottom:8px;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab{
    border-radius:6px;min-height:49px;padding:8px 10px;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab-name{
    font-size:15px;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount{
    border-radius:8px;padding:8px;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .live-lobby-shell .lobby{
    padding:9px!important;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #lobbyGrid{
    grid-template-columns:minmax(0,1fr);gap:10px;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount #lobbyGrid .mid{
    grid-column:auto;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyMount .team{
    padding:9px;
  }
}
@media(prefers-reduced-motion:reduce){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherLobbyTabs .gather-lobby-tab{
    transition:none!important;
  }
}


/* =====================================================================
   GATHERS INLINE V2 — selected server accordion.
   The approved overview stays visible; one original lobby moves beneath
   the selected card. Four legacy tabs stay in the DOM but are never shown.
   ===================================================================== */
body.bgj-redesign.showing-gathers #gatherLobbyTabs{display:none!important}
body.bgj-redesign.showing-gathers #gatherCardList .gather-collapse-btn[hidden]{display:none!important}
body.bgj-redesign.showing-gathers #gatherCardList > .gather-overview-card{scroll-margin-top:75px}
body.bgj-redesign.showing-gathers #gatherCardList > .gather-overview-card.gather-inline-expanded{
  grid-template-columns:minmax(0,69%) minmax(0,31%);
  min-height:136px;border:1px solid #a76b35!important;
  border-left:3px solid var(--bgj-orange)!important;border-bottom-color:#a76b35!important;
  border-radius:8px 8px 0 0!important;box-shadow:none!important;background:#10161c!important;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-rosters{display:none!important}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-info{
  padding:13px 20px 12px;min-width:0;
  background:linear-gradient(90deg,#131c24e9,#131a21ef),url('/assets/thumbnails/aim-map-thumb-wide.png') center/cover no-repeat;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats{
  flex-direction:row;flex-wrap:wrap;gap:8px 22px;margin-top:10px;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats .gather-card-stat-wide{
  flex-basis:auto;margin-bottom:0;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-live{
  margin-top:9px;padding-top:8px;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-progress{margin-top:7px}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-action{
  grid-column:auto;display:flex;align-items:center;justify-content:center;
  border-top:0;border-left:1px solid #303b45;background:#10151a;padding:12px 18px;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-open-btn{
  display:none!important;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn:not([hidden]){
  display:inline-flex!important;align-items:center;justify-content:center;gap:9px;
  width:100%;max-width:270px;min-height:44px;
  padding:8px 14px;border:1px solid #ab723e;border-radius:5px;
  background:#2b211b;color:#ffd5a5;
  font:italic 900 17px/1.1 "Barlow Condensed",Arial,sans-serif;cursor:pointer;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn::before{
  content:"⌃";font-style:normal;font-size:21px;line-height:1;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn:hover{
  background:#3d2a1d;border-color:#ffad5c;color:#fff2e1;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn:focus-visible{
  outline:2px solid #ffbd69;outline-offset:3px;
}

/* Join the lobby and selected card into a single connected orange frame. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount{
  grid-column:1/-1;display:block!important;width:100%;min-width:0;
  margin:-14px 0 0!important;padding:15px 16px 17px!important;
  border:1px solid #464f58!important;border-top:0!important;
  border-left:3px solid var(--bgj-orange)!important;border-radius:0 0 9px 9px!important;
  background:#10151b!important;box-shadow:0 14px 33px #0005!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount.inLobby{
  background:#171719!important;border-left-color:var(--bgj-orange)!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .live-lobby-topbar{
  display:none!important; /* Selected overview already shows server name and status */
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .live-lobby-shell .lobby{
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  background:transparent!important;box-shadow:none!important;
}

/* The same muted red/blue panels seen in the approved overview. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team{
  background:linear-gradient(180deg,#171519,#111317)!important;border-color:#343941!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #team2{
  background:linear-gradient(180deg,#0b1d2c,#0c1721)!important;border-color:#2a4254!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team1-head{
  background:linear-gradient(180deg,#3c2526,#291e21)!important;border-color:#70423a!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team2-head{
  background:linear-gradient(180deg,#203c56,#172d43)!important;border-color:#386888!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team .slot{
  min-height:43px;padding:6px 9px;border-radius:5px;
}
/* Existing accepted/live/declined classes and permissions still win. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-activity-box{
  border-color:#343e46;background:#101820;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #copyIpStringBtn{
  background:#1c262e!important;background-image:none!important;
  color:#d2dfe8!important;border-color:#40515e!important;box-shadow:none!important;
}
/* Do not override inline display:none; original JS decides visibility. */

@media(max-width:1100px){
  body.bgj-redesign.showing-gathers #gatherCardList > .gather-overview-card.gather-inline-expanded{
    grid-template-columns:minmax(0,1fr) minmax(0,260px);
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-action{
    grid-column:auto;flex-direction:column;border-top:0;border-left:1px solid #303942;
  }
}
@media(max-width:760px){
  body.bgj-redesign.showing-gathers #gatherCardList > .gather-overview-card.gather-inline-expanded{
    grid-template-columns:minmax(0,1fr);
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-info{
    border-right:0;border-bottom:1px solid #303942;
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-action{
    grid-column:auto;flex-direction:row;border-left:0;border-top:0;padding:9px 12px;
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn:not([hidden]){
    width:100%;max-width:none;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount{
    padding:11px 9px 12px!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn{
    transition:none!important;
  }
}


/* ======================================================================
   GATHERS INLINE V2.1 — host visual concept, existing authenticated DOM.
   Strictly visual: never reveal permission-controlled buttons, change
   accepted/live/declined semantics, or touch backend and CUP.
   ====================================================================== */
body.bgj-redesign.showing-gathers.gather-lobby-active #serverOverview{
  max-width:min(1480px,calc(100% - 32px))!important;
}
/* Server header: title + live status, compact metadata line, progress. */
body.bgj-redesign.showing-gathers #gatherCardList > .gather-inline-expanded.gather-overview-card{
  grid-template-columns:minmax(0,1fr) 228px;
  min-height:128px;border-color:#e1902f!important;
  border-left:3px solid var(--bgj-orange)!important;
  background:#10161c!important;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-info{
  display:grid;grid-template-columns:max-content minmax(0,1fr);
  grid-template-areas:"heading live" "stats stats" "progress progress";
  align-items:center;column-gap:26px;row-gap:9px;
  padding:14px 23px 12px;
  background:linear-gradient(90deg,#141b22f5,#101820e6),url('/assets/thumbnails/aim-map-thumb-wide.png') center/cover no-repeat;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-kicker{
  grid-area:heading;min-width:0;color:#ff982d;
  font:italic 1000 28px/1.06 "Barlow Condensed",Impact,Arial,sans-serif;
  letter-spacing:.055em;white-space:nowrap;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-live{
  grid-area:live;justify-content:flex-start;gap:22px;min-width:0;
  margin:0;padding:0;border:0;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-state{
  font:900 15px/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;white-space:nowrap;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-state.ready .gather-status-value::before{
  content:"LOBBY ";
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-population{
  font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;color:#c1cbd4;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-population strong{
  color:#f1f4f6;font-size:15px;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-population strong::after{
  content:" PLAYERS";font-size:12px;color:#b5c0ca;letter-spacing:.025em;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats{
  grid-area:stats;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;
  gap:6px 0;margin:0;min-width:0;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats .gather-card-stat{
  display:flex;align-items:baseline;gap:6px;min-width:0;
  padding-right:18px;margin-right:18px;border-right:1px solid #50606c;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats .gather-card-stat:last-child{
  margin-right:0;padding-right:0;border-right:0;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats .server-inline-label{
  font:900 13px/1.1 "Barlow Condensed",Arial,sans-serif;color:#9eacb7;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats strong{
  color:#f0a04d;font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-progress{
  grid-area:progress;margin:0;height:3px;align-self:end;background:#313d47;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-action{
  border:0;background:#10151b;justify-content:center;padding:12px 16px;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn:not([hidden]){
  min-height:42px;max-width:205px;padding:8px 12px;gap:12px;
  border:1px solid #906137;background:#241d19;color:#ffd19b;
  font:italic 900 15px/1.12 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn::before{
  content:"";display:inline-block;flex:0 0 9px;width:9px;height:9px;
  border-left:2px solid currentColor;border-top:2px solid currentColor;
  transform:translateY(2px) rotate(45deg);
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn:hover{
  border-color:#ffb56c;background:#30241c;color:#fff0dc;
}
/* One orange divider, no duplicate nested outer frame. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount{
  border-top:2px solid #df8727!important;
  border-right-color:#cf8029!important;border-bottom-color:#cf8029!important;
  border-left-color:#df8727!important;padding:12px 14px 14px!important;
  background:#0c1116!important;
}
/* Align with the concept: wide teams and a narrower dedicated host column. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #lobbyGrid{
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.83fr) minmax(0,1.25fr);
  gap:12px;align-items:stretch;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team{
  gap:8px;padding:10px 11px;border-radius:8px;
  border:1px solid #3f3740;background:linear-gradient(180deg,#20181b,#141215)!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #team2{
  border-color:#23405b;background:linear-gradient(180deg,#101f2f,#101a25)!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team-head{
  min-height:53px;border-radius:6px;padding:0 12px!important;gap:8px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team1-head{
  background:linear-gradient(100deg,#462b2c,#302023)!important;border-color:#85504a!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team2-head{
  background:linear-gradient(100deg,#254a70,#17324b)!important;border-color:#346994!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team-name{
  font:900 19px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team .slot{
  min-height:51px;padding:8px 10px;border-radius:6px;gap:5px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .player-name-display{
  font:900 15px/1.15 "Barlow Condensed",Arial,sans-serif;
  text-overflow:ellipsis;white-space:nowrap;overflow:hidden;
  flex:1 1 auto;min-width:55px;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls{
  display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .hostbtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .move,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .kick{
  width:auto;min-width:0;min-height:27px;padding:5px 6px;
  font:900 10px/1 "Barlow Condensed",Arial,sans-serif;
  border:1px solid #536472;border-radius:4px;background:#202b34;color:#e8eef3;
  box-shadow:none;white-space:nowrap;cursor:pointer;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .kick{
  background:#2b1919;border-color:#99514f;color:#ffbaba;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .hostbtn:disabled,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .move:disabled,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .kick:disabled{
  cursor:not-allowed;opacity:.5;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .host-flag{
  background:#ff9b28;color:#1b1208;border-radius:4px;padding:3px 6px;
  font:900 11px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .gather-team-count{
  margin-left:auto;white-space:nowrap;color:#cbd7df;
  font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;
  font-variant-numeric:tabular-nums;letter-spacing:.055em;
}
/* Host ribbon uses the existing JS-owned host-controls-extended state. The
   guest/ACCEPT state never acquires a fake host role or action. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea{
  display:flex;align-items:center;gap:10px;
  padding:8px!important;border:0!important;background:transparent!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea::before{
  content:"♛  YOU ARE HOST";display:inline-flex;align-items:center;justify-content:center;
  flex:1 1 auto;min-height:39px;padding:7px 8px;
  border:1px solid #3d8c47;border-radius:5px;background:#142318;color:#9af281;
  font:900 13px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;white-space:nowrap;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea .btnrow{
  flex:0 0 auto;margin:0;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #leaveSeatBtn{
  background:#202b34!important;border:1px solid #657480!important;color:#edf3f7!important;
  min-height:39px;border-radius:5px;padding:7px 11px;
  font:900 12px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .mid{
  gap:8px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .mid .box{
  padding:10px!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-activity-box{
  min-height:160px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack{
  padding:10px!important;border:1px solid #3d4750;border-radius:7px;
  background:#111920!important;gap:7px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack::before{
  content:"HOST CONTROLS";display:block;padding:0 0 4px;
  color:#ff9726;font:900 18px/1.1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack .btn.hostOnly{
  min-height:38px;border:1px solid #536371!important;border-radius:5px;
  background:#24313b!important;color:#eaf0f4!important;box-shadow:none!important;
  font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack .btn.hostOnly:disabled{
  border-color:#39424a!important;background:#1a2228!important;
  color:#697985!important;cursor:not-allowed;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #startBtn:not(:disabled){
  min-height:44px;border-color:#ec962b!important;
  background:linear-gradient(180deg,#ff9f2d,#ff8215)!important;
  color:#181007!important;font:italic 1000 18px/1.1 "Barlow Condensed",Impact,Arial,sans-serif;
  box-shadow:0 6px 18px #ff8a182b!important;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #stopBtn:not(:disabled){
  border-color:#ab4b4b!important;background:#3b2022!important;color:#ffb3b3!important;
}
@media(max-width:1200px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #lobbyGrid{
    grid-template-columns:minmax(0,1fr) minmax(245px,.8fr) minmax(0,1fr);
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-info{
    grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "live" "stats" "progress";
  }
}
@media(max-width:900px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #lobbyGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #lobbyGrid .mid{
    grid-column:1/-1;order:-1;
  }
}
@media(max-width:760px){
  body.bgj-redesign.showing-gathers #gatherCardList > .gather-inline-expanded.gather-overview-card{
    grid-template-columns:minmax(0,1fr);
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-kicker{
    white-space:normal;font-size:23px;
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-info{
    grid-template-columns:minmax(0,1fr);grid-template-areas:"heading" "live" "stats" "progress";
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-action{
    border-top:1px solid #343f49;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #lobbyGrid{
    grid-template-columns:minmax(0,1fr);
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #lobbyGrid .mid{
    grid-column:auto;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea{
    flex-wrap:wrap;
  }
}

/* GATHERS V2.1 final icon/row polish — only existing visible actions. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team .slot:has(.player-name-display)::before{
  content:"◉";display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;
  border:1px solid #394c5b;border-radius:50%;background:#111820;
  color:#c4d2dc;font:900 14px/1 Arial,sans-serif;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .hostbtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .move,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .kick{
  text-transform:uppercase;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #scrambleBtn::before{
  content:"⇄";font-size:17px;margin-right:11px;vertical-align:-1px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #captainsBtn::before{
  content:"♟";font-size:16px;margin-right:11px;vertical-align:-1px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #voteMapBtn::before{
  content:"▱";font-size:18px;margin-right:11px;vertical-align:-1px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #startBtn::before{
  content:"▷";font-style:normal;font-size:21px;margin-right:9px;vertical-align:-2px;
}
@media(max-width:480px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls{
    gap:2px;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .hostbtn,
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .move,
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot-right-controls .kick{
    font-size:9px;padding:4px;
  }
}


/* ======================================================================
   GATHERS INLINE V2.2 — host buttons and player actions (2026-11-23)
   UI only; retain original DOM, JS-controlled visibility and permissions.
   The sample-host fixture uses the SAME selectors as the real lobby.
   ====================================================================== */

/* V2.1 inherited .joinbox{flex-direction:column}; keep the real host status
   and LEAVE action on the SAME ROW when host-controls-extended is present.
   The ordinary visitor/sign-in and ACCEPT layouts remain untouched. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea{
  display:flex!important;flex-direction:row!important;align-items:stretch!important;
  justify-content:space-between;flex-wrap:nowrap;gap:8px!important;
  width:100%;min-width:0;margin:0!important;padding:0!important;
  background:transparent!important;border:0!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea::before{
  flex:1 1 0;min-width:0;min-height:40px;
  display:flex;align-items:center;justify-content:center;
  border-radius:5px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea .btnrow{
  display:flex;flex:0 0 43%;min-width:0;align-items:stretch;
  margin:0!important;gap:0!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea #leaveSeatBtn{
  flex:1 1 auto;width:100%;max-width:none;min-width:0;min-height:40px;
  padding:7px 6px!important;white-space:nowrap;
  font:900 12px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
@media(max-width:420px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea{
    flex-wrap:wrap;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea .btnrow{
    flex:1 1 100%;
  }
}

/* Real JS still sets each action's inline display. Do not force display on
   hidden buttons or on locked/ACCEPT/in-match slots. Override only geometry
   and colors of existing .hostbtn, .move and .kick button nodes. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls{
  flex:0 0 auto;gap:5px!important;margin-left:auto;align-items:center;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .hostbtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .move,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .kick{
  flex-grow:0!important;flex-shrink:0!important;
  height:32px!important;min-height:32px!important;max-height:32px!important;
  border-radius:5px!important;padding:0 8px!important;
  font:900 11px/1 "Barlow Condensed",Arial,sans-serif!important;
  text-transform:uppercase;letter-spacing:.055em!important;
  text-align:center;white-space:nowrap!important;word-break:normal!important;
  overflow-wrap:normal!important;box-sizing:border-box;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .hostbtn{
  flex-basis:80px!important;width:80px!important;min-width:80px!important;max-width:80px!important;
  background:#33271c!important;border-color:#906235!important;color:#ffc88f!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .move{
  flex-basis:54px!important;width:54px!important;min-width:54px!important;max-width:54px!important;
  background:#263544!important;border-color:#466079!important;color:#e2edf6!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .kick{
  flex-basis:46px!important;width:46px!important;min-width:46px!important;max-width:46px!important;
  background:#341d21!important;border-color:#85444b!important;color:#ffb2b2!important;
}
/* MOVE / CANCEL / SWAP / SELECT must still reflect real JS selection states. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .move.selected{
  background:#3b3018!important;border-color:#9a8131!important;color:#ffe69e!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .move.swap-target{
  background:#173724!important;border-color:#387d4b!important;color:#b4f2c1!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .hostbtn:disabled,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .move:disabled,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .kick:disabled{
  opacity:.47;cursor:not-allowed;
}

/* Host buttons remain driven by .hostOnly.show / :disabled. Align existing
   pseudo icons in a fixed column rather than centering icon + text as a group. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack{
  padding:12px!important;gap:8px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack .btn.hostOnly.show{
  display:flex;align-items:center;justify-content:flex-start!important;
  width:100%;min-width:0;max-width:none;min-height:43px;
  padding:9px 13px!important;border-radius:5px;
  text-align:left!important;white-space:nowrap;
  background:#26343f!important;border-color:#435565!important;color:#e8f0f5!important;
  font:900 14px/1.15 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack .btn.hostOnly.show::before{
  flex:0 0 25px;width:25px;margin:0 12px 0 0!important;
  text-align:center;line-height:1;
}
@media(hover:hover){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack .btn.hostOnly.show:not(:disabled):hover{
    background:#334858!important;border-color:#60798c!important;
  }
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack .btn.hostOnly.show:disabled{
  background:#1a2228!important;border-color:#39424a!important;
  color:#697985!important;cursor:not-allowed;
}
/* START stays the centered orange primary CTA, never the slate controls. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #startBtn.hostOnly.show:not(:disabled){
  justify-content:center!important;min-height:46px;
  border-color:#ec962b!important;
  background:linear-gradient(180deg,#ff9f2d,#ff8215)!important;
  color:#181007!important;font:italic 1000 18px/1.1 "Barlow Condensed",Impact,Arial,sans-serif!important;
  box-shadow:0 6px 18px #ff8a182b!important;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #startBtn.hostOnly.show::before{
  flex:0 0 auto;width:auto;margin-right:11px!important;
}
/* STOP stays distinct and red in the live phase; ACCEPT remains independent. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #stopBtn.hostOnly.show:not(:disabled){
  border-color:#ab4b4b!important;background:#3b2022!important;color:#ffb3b3!important;
}
@media(max-width:1150px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls{gap:3px!important}
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .hostbtn{
    flex-basis:73px!important;width:73px!important;min-width:73px!important;max-width:73px!important;
    font-size:10px!important;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .move{
    flex-basis:49px!important;width:49px!important;min-width:49px!important;max-width:49px!important;
    font-size:10px!important;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .kick{
    flex-basis:42px!important;width:42px!important;min-width:42px!important;max-width:42px!important;
    font-size:10px!important;
  }
}
@media(max-width:480px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .hostbtn,
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .move,
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .kick{
    height:29px!important;min-height:29px!important;max-height:29px!important;padding:0 4px!important;
  }
}


/* ======================================================================
   GATHERS INLINE V2.3 — one clear JOIN/LEAVE action (2026-11-23)
   Existing original auth state determines button/label/permissions.
   There is no separate host ribbon: host identity already follows the name.
   ====================================================================== */

/* Remove the decorative, redundant YOU ARE HOST pseudo-ribbon. This does
   not remove the genuine orange HOST badge in player rows. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea::before{
  content:none!important;display:none!important;
}

/* A single full-width JOIN / LEAVE action for all signed-in lobby users.
   The actual nodes are still created/removed by renderAuth(). */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea{
  width:100%;min-width:0;box-sizing:border-box;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea{
  display:flex;flex-direction:row!important;align-items:stretch!important;
  justify-content:stretch!important;flex-wrap:nowrap!important;
  padding:0!important;gap:0!important;
  background:transparent!important;border:0!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea .btnrow{
  display:flex;flex:1 1 100%!important;width:100%!important;
  min-width:0;margin:0!important;padding:0!important;
  align-items:stretch!important;gap:0!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #steamJoinBtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #leaveSeatBtn{
  display:flex;align-items:center;justify-content:center;flex:1 1 100%!important;
  min-width:0;width:100%!important;max-width:none!important;
  min-height:44px!important;margin:0!important;padding:9px 12px!important;
  border-radius:5px!important;white-space:nowrap!important;
  font:italic 900 17px/1.1 "Barlow Condensed",Arial,sans-serif!important;
  letter-spacing:.055em!important;text-align:center!important;
  box-shadow:none!important;
}
/* JOIN: orange primary action only while usable. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #steamJoinBtn:not(:disabled){
  background:linear-gradient(180deg,#ff9e30,#f88419)!important;
  border:1px solid #f3a048!important;color:#1a1109!important;
  box-shadow:0 5px 16px #ec811c26!important;
}
/* LEAVE: red, full width, deliberately different from STOP GATHER. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #leaveSeatBtn:not(:disabled){
  background:linear-gradient(180deg,#572628,#3d1e21)!important;
  border:1px solid #ad5b57!important;color:#ffd0c9!important;
}
/* Do not override JS disabled states while the player joins or leaves. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #steamJoinBtn:disabled,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #leaveSeatBtn:disabled{
  background:#202930!important;border:1px solid #49535b!important;
  color:#8995a0!important;box-shadow:none!important;cursor:not-allowed;
}
@media(hover:hover){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #steamJoinBtn:not(:disabled):hover{
    background:linear-gradient(180deg,#ffb050,#ff9630)!important;border-color:#ffbb76!important;
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #leaveSeatBtn:not(:disabled):hover{
    background:#663033!important;border-color:#ce7470!important;
  }
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #steamJoinBtn:focus-visible,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #leaveSeatBtn:focus-visible{
  outline:2px solid #ffbe77;outline-offset:2px;
}
/* Most important: inline display:none from original renderAuth() must win.
   V2.2 previously applied display:flex!important for the host row; respect
   auth hiding on ACCEPT, started, and other locked phases. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea[style*="display: none"],
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid.host-controls-extended #authArea[style*="display: none"]{
  display:none!important;
}

/* Tighten MAKE HOST at desktop where font metrics may still cause a wrap.
   Keep the existing button and handler, and retain the V2.2 small screens. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .slot-right-controls .hostbtn{
  white-space:nowrap!important;word-break:keep-all!important;
  overflow-wrap:normal!important;
}


/* =====================================================================
   GATHERS INLINE V2.4 — compact host and player perspective (2026-11-23)
   Existing permissions, DOM nodes and API calls remain unchanged.
   ===================================================================== */

/* Align top action with the top of the team header cards (10px inset).
   Provide clear breathing room so the red LEAVE button never clips. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #lobbyGrid > .mid{
  padding-top:10px;box-sizing:border-box;min-height:0;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea{
  margin:0!important;overflow:visible!important;flex:0 0 auto;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #steamJoinBtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #authArea .btnrow #leaveSeatBtn{
  min-height:46px!important;height:46px!important;box-sizing:border-box;
}

/* One compact horizontal MAPS / dropdown row for the host.
   Preserve the renderer's [hidden] flag for nonhosts. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #mapSelectBox:not([hidden]){
  display:grid!important;grid-template-columns:max-content minmax(0,1fr);
  align-items:center;column-gap:14px;min-width:0;
  padding:9px 11px!important;min-height:54px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #mapSelectBox[hidden]{
  display:none!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #mapSelectBox label{
  margin:0;color:#ff9b2e;
  font:900 20px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;white-space:nowrap;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount #mapSelectBox #mapSelect{
  width:100%;min-width:0;height:39px;max-width:none;margin:0;
}

/* Host controls: two first actions share a row, then full-width VOTE/START.
   The same original .hostOnly.show buttons and JS permission state are used. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:start;align-items:stretch;gap:8px!important;
  padding:10px!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack::before{
  display:none!important;content:none!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack .btn.hostOnly.show{
  display:flex;position:relative;align-items:center;justify-content:center!important;
  min-width:0;width:100%;max-width:none;min-height:42px;
  padding:7px 8px!important;text-align:center!important;
  white-space:nowrap;font:900 13px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #scrambleBtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #captainsBtn{
  grid-column:auto; 
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #voteMapBtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #startBtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #stopBtn,
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #claimHostBtn{
  grid-column:1/-1;
}
/* Icons stay at left, without pushing the labels off their true center. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack .btn.hostOnly.show::before{
  position:absolute;left:9px;top:50%;transform:translateY(-50%);
  margin:0!important;flex:none;width:17px;text-align:center;line-height:1;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #startBtn.hostOnly.show:not(:disabled){
  justify-content:center!important;min-height:46px;
  background:linear-gradient(180deg,#ff9f2d,#ff8215)!important;color:#181007!important;
  border-color:#ec962b!important;
}
/* Don't leak disabled, hidden or unauthorized host buttons into the layout. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack .hostOnly:not(.show){
  display:none!important;
}

/* A joined, non-host player sees LEAVE and a full-height LOBBY LOG.
   The current renderer already hides the host-only map selector and
   host-action stack; this only fills the available middle-column height. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount.inLobby #lobbyGrid:not(.host-controls-extended) > .mid{
  display:flex;flex-direction:column;align-self:stretch;min-height:0;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount.inLobby #lobbyGrid:not(.host-controls-extended) .lobby-activity-box{
  flex:1 1 auto;display:flex;flex-direction:column;
  min-height:270px; 
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount.inLobby #lobbyGrid:not(.host-controls-extended) .lobby-activity-feed{
  flex:1 1 auto;min-height:0;
}
/* The public status / logged-out preview remains separate. */
@media(max-width:1180px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #scrambleBtn,
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #captainsBtn{
    font-size:11px;
  }
}
@media(max-width:400px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack{
    grid-template-columns:minmax(0,1fr);
  }
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #scrambleBtn,
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #captainsBtn{
    grid-column:1/-1;
  }
}


/* =====================================================================
   GATHERS INLINE V2.5 — compact header and original native map select
   Presentation/DOM relocation only. Existing map POST, host rights and
   server activityLog remain authoritative. No new gameplay action.
   ===================================================================== */

/* One line: SERVER TITLE | STATUS | HOST / MAP / SCORE | 10/10.
   DOM order is unchanged; display:contents only flattens live wrapper
   for the selected card grid. Nonexpanded cards retain V1.3 styling. */
body.bgj-redesign.showing-gathers #gatherCardList > .gather-inline-expanded.gather-overview-card{
  grid-template-columns:minmax(0,1fr) 158px;min-height:94px;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-info{
  display:grid;
  grid-template-columns:max-content max-content minmax(0,1fr) max-content;
  grid-template-areas:"heading state stats population" "progress progress progress progress";
  align-items:center;column-gap:17px;row-gap:11px;
  min-height:94px;padding:12px 18px 10px;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-kicker{
  grid-area:heading;font-size:26px;line-height:1.06;min-width:0;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-live{
  display:contents!important;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-state{
  grid-area:state;display:inline-flex;gap:4px;align-items:center;
  margin:0!important;padding:0!important;font:900 17px/1.1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;white-space:nowrap;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-population{
  grid-area:population;white-space:nowrap;
  font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats{
  grid-area:stats;display:flex;align-items:center;flex-wrap:nowrap;
  gap:0;margin:0;min-width:0;overflow:hidden;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats .gather-card-stat{
  gap:5px;flex:0 0 auto;min-width:0;margin-right:12px;padding-right:12px;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats .gather-card-stat-wide{
  flex:0 1 auto;min-width:0;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats .server-inline-label,
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats strong{
  font:900 17px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats strong.server-host-value{
  display:inline-block;max-width:38ch;min-width:0;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:baseline;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-progress{
  grid-area:progress;height:3px;margin:0;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-action{
  padding:6px 10px;min-width:0;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn:not([hidden]){
  width:134px;max-width:134px;height:59px;min-height:59px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  padding:7px 9px;gap:8px;
  border:1px solid #946538;background:#261e19;color:#ffd09b;
  font:italic 900 14px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-collapse-btn::before{
  content:"";display:block;width:10px;height:10px;flex:0 0 10px;
  border-left:2px solid currentColor;border-top:2px solid currentColor;
  transform:translateY(2px) rotate(45deg);
}
/* Avoid overcrowding at medium widths; keep metadata readable. */
@media(max-width:1310px){
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-info{
    grid-template-columns:max-content max-content minmax(0,1fr);
    grid-template-areas:"heading state population" "stats stats stats" "progress progress progress";
    row-gap:7px;
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats strong.server-host-value{max-width:42ch}
}
@media(max-width:760px){
  body.bgj-redesign.showing-gathers #gatherCardList > .gather-inline-expanded.gather-overview-card{
    grid-template-columns:minmax(0,1fr);
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-info{
    grid-template-columns:minmax(0,1fr) max-content;
    grid-template-areas:"heading heading" "state population" "stats stats" "progress progress";
    padding:12px;
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-stats{
    overflow-x:auto;
  }
  body.bgj-redesign.showing-gathers #gatherCardList .gather-inline-expanded .gather-card-kicker{font-size:23px}
}

/* Right-align the actual host/move/kick group within each player slot.
   Do not change original display:none, disabled or player-name handlers. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team .slot .slot-right-controls{
  margin-left:auto!important;margin-right:0!important;padding:0!important;
  display:inline-flex;align-items:center;justify-content:flex-end!important;
  flex:0 0 auto!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team .slot{
  padding-right:7px;
}

/* Native #mapSelect moved beside VOTE MAP inside the original action bar.
   It remains the one real select, with the same host-only JS change handler.
   The visible face reads CHOOSE MAP or the chosen l.map (including votes);
   activating the face opens the native select dropdown directly. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #voteMapBtn{
  grid-column:1!important;min-width:0;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #mapSelectBox:not([hidden]){
  grid-column:2!important;
  position:relative;display:block!important;min-width:0;min-height:42px;
  height:42px;box-sizing:border-box;margin:0!important;padding:0!important;
  border-radius:5px!important;border:1px solid #536371!important;
  background:#26343f!important;box-shadow:none!important;
  overflow:visible;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar #mapSelectBox[hidden]{
  display:none!important;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar #chooseMapLabel{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:100%;min-width:0;box-sizing:border-box;
  padding:6px 15px 6px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  text-align:center;color:#e8f0f5;
  font:900 13px/1.15 "Barlow Condensed",Arial,sans-serif;
  pointer-events:none;letter-spacing:.055em;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar #chooseMapLabel::after{
  content:"⌄";position:absolute;right:7px;top:50%;transform:translateY(-55%);
  font-size:16px;color:#c7d6e0;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar #mapSelect{
  position:absolute;inset:0;z-index:2;
  width:100%!important;height:100%!important;min-height:0!important;
  margin:0!important;padding:0!important;
  border:0!important;opacity:0!important;
  cursor:pointer;appearance:auto;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar #mapSelectBox:focus-within{
  outline:2px solid #ffb05a;outline-offset:2px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar #mapSelectBox:has(#mapSelect:disabled){
  opacity:.48;cursor:not-allowed;
}
@media(max-width:400px){
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #voteMapBtn,
  body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .lobby-action-bar.host-control-stack #mapSelectBox:not([hidden]){
    grid-column:1/-1!important;
  }
}


/* =====================================================================
   PRAC SERVERS V1 — orange/charcoal presentation (2026-11-27)
   Retain original two-card layout, images, status and power handlers.
   ===================================================================== */
body.bgj-redesign.showing-practice #practiceView .prac-hero-item{
  background:linear-gradient(150deg,#171c21,#101419);
  border:1px solid #303a42;border-left:2px solid var(--bgj-orange);
  border-radius:8px;box-shadow:0 18px 45px rgba(0,0,0,.20);
}
body.bgj-redesign.showing-practice #practiceView #practiceServersHeading{
  color:#f4f5f6;font:900 20px/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.07em;
}
body.bgj-redesign.showing-practice #practiceView .prac-hero-name{
  color:#f4f5f6;text-align:center;
  font:900 clamp(22px,2vw,28px)/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
body.bgj-redesign.showing-practice #practiceView .prac-hero-name span,
body.bgj-redesign.showing-practice #practiceView .practice-page-intro strong,
body.bgj-redesign.showing-practice #practiceView .prac-info strong{
  color:var(--bgj-orange);
}
body.bgj-redesign.showing-practice #practiceView .practice-page-intro,
body.bgj-redesign.showing-practice #practiceView .prac-info{
  color:#b5bdc5;
}
body.bgj-redesign.showing-practice #practiceView .prac-hero-thumb-wrap{
  border-color:#303a42;border-radius:6px;
}
body.bgj-redesign.showing-practice #practiceView .prac-bottom{
  width:100%;min-width:0;justify-content:center;
}
body.bgj-redesign.showing-practice #practiceView .prac-live-status{
  color:#a8b0b9;max-width:100%;overflow-wrap:anywhere;
}
body.bgj-redesign.showing-practice #practiceView .prac-live-status[data-state="online"]{
  color:#8de34b;
}
body.bgj-redesign.showing-practice #practiceView .prac-live-status[data-state="starting"]{
  color:#ffb05a;
}
body.bgj-redesign.showing-practice #practiceView .prac-live-status[data-state="offline"]{
  color:#ef7479;
}
body.bgj-redesign.showing-practice #practiceView .prac-live-status[data-state="error"]{
  color:#a8b0b9;
}
/* Existing error state covers unavailable checks and retryable startup failures. */
body.bgj-redesign.showing-practice #practiceView .prac-bottom:has(.prac-power-btn[data-action="start"]) .prac-live-status[data-state="error"]{
  color:#ef7479;
}
body.bgj-redesign.showing-practice #practiceView .prac-power-btn{
  box-sizing:border-box;flex:0 1 200px;width:200px;max-width:100%;min-width:0;
  min-height:42px;height:auto;padding:9px 12px;border-radius:5px;
  font:italic 900 15px/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;text-align:center;white-space:normal;
  border:1px solid #f3a048;background:linear-gradient(180deg,#ff9e30,#f88419);
  color:#1a1109;box-shadow:0 5px 16px #ec811c26;
}
body.bgj-redesign.showing-practice #practiceView .prac-power-btn:not(:disabled):hover{
  background:linear-gradient(180deg,#ffb050,#ff9630);border-color:#ffbb76;
  color:#1a1109;transform:none;
}
body.bgj-redesign.showing-practice #practiceView .prac-power-btn:focus-visible{
  outline:2px solid #ffbe77;outline-offset:2px;
}
body.bgj-redesign.showing-practice #practiceView .prac-power-btn:disabled{
  opacity:1;cursor:not-allowed;transform:none;
  background:#202930;border-color:#49535b;color:#a8b0b9;box-shadow:none;
}
body.bgj-redesign.showing-practice #practiceView .prac-power-btn:disabled[data-action="starting"]{
  cursor:wait;background:#38291c;border-color:#a36c36;color:#ffb05a;
}


/* =====================================================================
   HIGHLIGHTS V1 — esports media library (2026-11-27)
   Dedicated library only; retain real media controls and all data/handlers.
   ===================================================================== */
body.bgj-redesign.showing-highlights #highlightsView{
  box-sizing:border-box;width:100%;max-width:var(--bgj-max);margin:0 auto;
  padding-top:24px;
}
body.bgj-redesign.showing-highlights #highlightsView > #aftermoviesView{
  margin-bottom:28px;
}
body.bgj-redesign.showing-highlights #highlightsView .highlights-page-head h1,
body.bgj-redesign.showing-highlights #highlightsView .aftermovies-page-head h2{
  font:900 clamp(24px,2.2vw,32px)/1.12 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;color:#f4f5f6;
}
body.bgj-redesign.showing-highlights #highlightsView .highlights-page-head h1::before,
body.bgj-redesign.showing-highlights #highlightsView .aftermovies-page-head h2::before{
  content:"";display:inline-block;width:3px;height:.7em;
  background:var(--bgj-orange);margin-right:10px;vertical-align:baseline;
}
body.bgj-redesign.showing-highlights #highlightsView .highlights-page-head p,
body.bgj-redesign.showing-highlights #highlightsView .aftermovies-page-head p{
  color:#aab4be;
}
body.bgj-redesign.showing-highlights #highlightsView .aftermovies-grid{
  gap:16px;
}
body.bgj-redesign.showing-highlights #highlightsView .aftermovie-card,
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-card{
  min-width:0;background:#0b1016;border:1px solid #36424b;border-radius:5px;
  box-shadow:0 12px 26px #0004;overflow:hidden;
}
body.bgj-redesign.showing-highlights #highlightsView .aftermovie-card:hover,
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-card:hover,
body.bgj-redesign.showing-highlights #highlightsView .aftermovie-card:focus-within,
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-card:focus-within{
  border-color:#dc833b;box-shadow:0 12px 26px #0005;transform:none;
}
body.bgj-redesign.showing-highlights #highlightsView .aftermovie-meta{
  border-top:1px solid #62432c;background:#13181d;padding:10px 12px 12px;
}
body.bgj-redesign.showing-highlights #highlightsView .aftermovie-month{
  color:var(--bgj-orange);font:900 11px/1.2 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.12em;
}
body.bgj-redesign.showing-highlights #highlightsView .aftermovie-title{
  font:900 16px/1.2 "Barlow Condensed",Arial,sans-serif;
  color:#f3f5f6;overflow-wrap:anywhere;letter-spacing:.055em;
}
body.bgj-redesign.showing-highlights #highlightsView .highlights-sort{
  box-sizing:border-box;gap:5px;background:#13181d;
  border:1px solid #303a42;border-radius:5px;padding:5px;
}
body.bgj-redesign.showing-highlights #highlightsView .highlights-sort-btn{
  min-width:0;min-height:38px;height:auto;padding:9px 14px;
  font:900 14px/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;white-space:normal;border-radius:3px;color:#b9c2cb;
}
body.bgj-redesign.showing-highlights #highlightsView .highlights-sort-btn:hover{
  background:#292019;color:#ffba78;
}
body.bgj-redesign.showing-highlights #highlightsView .highlights-sort-btn.active{
  background:linear-gradient(180deg,#ff9e30,#f88419);
  border-color:#f3a048;color:#1a1109;box-shadow:none;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-card{
  display:flex;flex-direction:column;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-video,
body.bgj-redesign.showing-highlights #highlightsView .aftermovie-video{
  display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#070a0e;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-meta{
  display:flex;flex:1;flex-direction:column;min-width:0;
  border-top:1px solid #62432c;background:#13181d;padding:12px;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-topline{
  align-items:center;gap:8px;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-player{
  min-width:0;color:var(--bgj-orange);
  font:italic 900 23px/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;white-space:normal;overflow:visible;overflow-wrap:anywhere;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-player a{
  color:inherit;font:inherit;text-decoration:none;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-player a:hover{
  color:#ffc183;text-decoration:underline;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-play{
  box-sizing:border-box;min-width:43px;max-width:45%;min-height:28px;height:auto;
  padding:4px 8px;border:1px solid #b76b2c;border-radius:3px;background:#302016;
  color:#ffad62;font:italic 900 18px/1.1 "Barlow Condensed",Arial,sans-serif;
  white-space:normal;text-align:center;overflow-wrap:anywhere;letter-spacing:.055em;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-detail-row{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
  margin-top:7px;margin-bottom:0;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-detail{
  grid-column:1/-1;min-width:0;min-height:17px;white-space:normal;
  overflow:visible;overflow-wrap:anywhere;color:#c0c8cf;
  font:800 13px/1.3 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-detail-row .clip-share-btn,
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-detail-row .clip-download-btn{
  box-sizing:border-box;width:100%;min-width:0;min-height:30px;height:auto;
  padding:7px 6px;border:1px solid #61452e;border-radius:3px;
  background:#18181a;color:#dfaf80;box-shadow:none;text-align:center;
  font:900 12px/1.15 "Barlow Condensed",Arial,sans-serif;white-space:normal;letter-spacing:.055em;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-detail-row .clip-share-btn:hover,
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-detail-row .clip-download-btn:hover,
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-detail-row .clip-share-btn.copied{
  background:#322216;border-color:var(--bgj-orange);color:#fff;
  transform:none;box-shadow:none;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-context{
  flex-wrap:wrap;gap:4px 7px;margin-top:auto;padding-top:9px;
  border-top:0;color:#a0adb9;font:800 11px/1.3 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-context .library-teams{
  flex:0 0 100%;min-width:0;white-space:normal;overflow:visible;overflow-wrap:anywhere;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-dot{
  background:#b46b2b;flex:0 0 3px;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-dot:has(+ .library-teams){
  display:none;
}
body.bgj-redesign.showing-highlights #highlightsView .highlights-empty,
body.bgj-redesign.showing-highlights #highlightsView .empty-panel{
  color:#aab4be;background:#13181d;border:1px dashed #39434d;border-radius:5px;
}
body.bgj-redesign.showing-highlights #highlightsView #highlightsLoadMoreBtn{
  background:#18181a;border:1px solid #b66d2b;border-radius:4px;
  color:#ffa146;font:900 14px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-highlights #highlightsView #highlightsLoadMoreBtn:not(:disabled):hover{
  background:#322216;border-color:var(--bgj-orange);color:#fff;transform:none;
}
body.bgj-redesign.showing-highlights #highlightsView #highlightsLoadStatus{
  color:#a0adb9;
}
body.bgj-redesign.showing-highlights #highlightsView :is(button,a):focus-visible{
  outline:2px solid var(--bgj-orange);outline-offset:2px;
}


/* =====================================================================
   HIGHLIGHTS V1.1 — compact match detail and HOME-style playback
   Only the dedicated library opts into this media wrapper.
   ===================================================================== */
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media{
  position:relative;isolation:isolate;overflow:hidden;
  aspect-ratio:16/9;background:#070a0e;
}
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media .library-highlight-video{
  display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;
}
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media:not(.is-playing)::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,#05080c44,#05080c0d 40%,#05080c77);
}
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media .bgj-gallery-tag{
  position:absolute;top:11px;left:11px;z-index:2;pointer-events:none;
  padding:5px 8px;border-left:2px solid var(--bgj-orange);
  background:#090c10cf;backdrop-filter:blur(5px);
  color:#eceff2;font:800 10px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.1em;
}
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media .bgj-gallery-play{
  position:absolute;z-index:3;left:50%;top:50%;
  display:flex;align-items:center;justify-content:center;
  width:60px;height:60px;margin:0;padding:0;border:1px solid var(--bgj-orange);
  border-radius:50%;background:#0a0c0fd8;color:#fff;
  box-shadow:0 0 0 7px #0c101448,0 8px 24px #0007;
  transform:translate(-50%,-50%);cursor:pointer;
}
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media .bgj-gallery-play-symbol{
  display:block;width:0;height:0;margin-left:4px;
  border-top:10px solid transparent;border-bottom:10px solid transparent;
  border-left:16px solid var(--bgj-orange);
}
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media .bgj-gallery-play:not(:disabled):hover,
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media .bgj-gallery-play:focus-visible{
  background:var(--bgj-orange);outline:2px solid #fff;outline-offset:4px;
  box-shadow:0 0 0 9px #ff8b192b,0 12px 30px #0009;
}
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media .bgj-gallery-play:is(:hover,:focus-visible):not(:disabled) .bgj-gallery-play-symbol{
  border-left-color:#111419;
}
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media .bgj-gallery-play:disabled{
  opacity:.35;cursor:not-allowed;
}
body.bgj-redesign.showing-highlights #highlightsView .library-gallery-media.is-playing :is(.bgj-gallery-play,.bgj-gallery-tag){
  visibility:hidden;opacity:0;pointer-events:none;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-detail{
  font-size:12px;line-height:1.25;min-height:15px;letter-spacing:0;
  white-space:normal;overflow-wrap:anywhere;
}
body.bgj-redesign.showing-highlights #highlightsView .library-highlight-context{
  padding-top:7px;
}


/* =====================================================================
   PLAYERS V1 — esports leaderboard (2026-11-27)
   Dedicated player directory only; preserve original sort/search/actions.
   ===================================================================== */
body.bgj-redesign.showing-players #playersView{
  max-width:var(--bgj-max);padding-top:30px;
}
body.bgj-redesign.showing-players #playersView .page-kicker{
  color:var(--bgj-orange);font:900 13px/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.12em;
}
body.bgj-redesign.showing-players #playersView .page-head h1{
  font:italic 900 40px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
  color:#f4f5f6;
}
body.bgj-redesign.showing-players #playersView .page-head p,
body.bgj-redesign.showing-players #playersView .players-count{
  color:#aab4be;font:850 14px/1.3 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
body.bgj-redesign.showing-players #playersView .players-card{
  border:1px solid #303a42;border-top:2px solid var(--bgj-orange);border-radius:6px;
  background:#101419;box-shadow:0 12px 30px #0004;
}
body.bgj-redesign.showing-players #playersView .players-toolbar{
  background:#13181d;border-bottom:1px solid #303a42;min-width:0;
  align-items:center;gap:9px;padding:13px;
}
body.bgj-redesign.showing-players #playersView .players-search{
  box-sizing:border-box;min-width:0;max-width:420px;min-height:42px;
  flex:1 1 260px;background:#0b1016;border:1px solid #414b55;
  border-radius:4px;color:#f4f5f6;font:700 14px/1.2 Arial,sans-serif;
}
body.bgj-redesign.showing-players #playersView .players-search::placeholder{color:#a0aab5}
body.bgj-redesign.showing-players #playersView .players-sort-actions{
  flex-wrap:wrap;max-width:100%;gap:6px;
}
body.bgj-redesign.showing-players #playersView .players-sort-btn{
  border:1px solid #414b55;border-radius:4px;background:#20262d;
  color:#c1cbd4;min-height:40px;height:auto;padding:10px 16px;
  font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;white-space:normal;letter-spacing:.055em;
}
body.bgj-redesign.showing-players #playersView .players-sort-btn:hover{
  border-color:#c17a3a;background:#30241b;color:#ffbe83;
}
body.bgj-redesign.showing-players #playersView .players-sort-btn.active{
  border-color:#f3a048;background:linear-gradient(180deg,#ff9e30,#f88419);
  color:#1a1109;box-shadow:none;
}
body.bgj-redesign.showing-players #playersView .players-table-scroll{overflow-x:auto;max-width:100%}
body.bgj-redesign.showing-players #playersView .players-table{min-width:990px}
body.bgj-redesign.showing-players #playersView .players-table th,
body.bgj-redesign.showing-players #playersView .players-table td{
  border-right:1px solid #29323a;border-bottom:1px solid #29323a;
  padding:9px 12px;vertical-align:middle;
}
body.bgj-redesign.showing-players #playersView .players-table th:last-child,
body.bgj-redesign.showing-players #playersView .players-table td:last-child{border-right:0}
body.bgj-redesign.showing-players #playersView .players-table th{
  color:#aab4be;background:#1b2229;
  font:900 13px/1.2 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
body.bgj-redesign.showing-players #playersView .players-table tbody tr:nth-child(even){background:#151b21}
body.bgj-redesign.showing-players #playersView .players-table tbody tr:hover td{background:#29221d}
body.bgj-redesign.showing-players #playersView .players-table .players-rank-heading,
body.bgj-redesign.showing-players #playersView .players-table .players-rank-cell{
  width:62px;min-width:62px;max-width:62px;text-align:center;
}
body.bgj-redesign.showing-players #playersView .players-table .players-name-heading,
body.bgj-redesign.showing-players #playersView .players-table .players-name-cell{
  width:28%;min-width:215px;text-align:left;
}
body.bgj-redesign.showing-players #playersView .players-rank{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:30px;min-height:30px;color:#aab4be;
  font:italic 900 20px/1 "Barlow Condensed",Arial,sans-serif;
  font-variant-numeric:tabular-nums;letter-spacing:.055em;
}
body.bgj-redesign.showing-players #playersView .players-rank.rank-1{color:#efc65c}
body.bgj-redesign.showing-players #playersView .players-rank.rank-2{color:#d1d8df}
body.bgj-redesign.showing-players #playersView .players-rank.rank-3{color:#d99a6d}
body.bgj-redesign.showing-players #playersView .player-directory-cell img,
body.bgj-redesign.showing-players #playersView .player-directory-placeholder{
  width:38px;height:38px;border-radius:5px;border-color:#424c55;object-fit:cover;
}
body.bgj-redesign.showing-players #playersView .player-directory-cell > div{min-width:0}
body.bgj-redesign.showing-players #playersView .players-table .player-directory-name{
  color:var(--bgj-orange);font:italic 900 19px/1.1 "Barlow Condensed",Arial,sans-serif;
  overflow-wrap:anywhere;letter-spacing:.055em;
}
body.bgj-redesign.showing-players #playersView .players-table .player-directory-name:hover{
  color:#ffc183;text-decoration:underline;
}
body.bgj-redesign.showing-players #playersView .players-table .player-directory-id{
  font-size:10px;color:#86939f;overflow-wrap:anywhere;
}
body.bgj-redesign.showing-players #playersView .players-table .players-numeric{
  color:#f4f5f6;font:900 20px/1 "Barlow Condensed",Arial,sans-serif;
  font-variant-numeric:tabular-nums;letter-spacing:.055em;
}
body.bgj-redesign.showing-players #playersView .players-table .kd-positive{color:#8de34b}
body.bgj-redesign.showing-players #playersView .players-table .kd-negative{color:#ef7479}
body.bgj-redesign.showing-players #playersView .players-table .kd-neutral{color:#f4f5f6}
body.bgj-redesign.showing-players #playersView .players-table .kd-unavailable{color:#86939f}
body.bgj-redesign.showing-players #playersView .players-table .players-date{color:#b7c1ca}
body.bgj-redesign.showing-players #playersView .players-table .players-map{color:#aab4be}
body.bgj-redesign.showing-players #playersView .players-map-badge{
  display:inline-flex;align-items:center;justify-content:center;min-width:68px;
  padding:5px 8px;border:1px solid #51412f;border-radius:3px;background:#242019;
  color:#ffaf64;font:900 13px/1 "Barlow Condensed",Arial,sans-serif;text-transform:uppercase;letter-spacing:.055em;
}
body.bgj-redesign.showing-players #playersView .players-match-btn{
  min-height:32px;padding:7px 12px;border:1px solid #61452e;border-radius:4px;
  background:#18181a;color:#dfaf80;font:900 13px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-players #playersView .players-match-btn:hover{
  background:#322216;border-color:var(--bgj-orange);color:#fff;
}
body.bgj-redesign.showing-players #playersView .players-no-role{color:#687681}
body.bgj-redesign.showing-players #playersView .empty-panel{
  background:#13181d;color:#aab4be;border-color:#39434d;
}
body.bgj-redesign.showing-players #playersView :is(a,button,input):focus-visible{
  outline:2px solid var(--bgj-orange);outline-offset:2px;
}


/* =====================================================================
   PROFILE V1 — player identity and career dashboard (2026-11-27)
   Dedicated profile only; retain existing match and media handlers.
   ===================================================================== */
body.bgj-redesign.showing-profile #profileView{width:100%;max-width:var(--bgj-max);margin-inline:auto}
body.bgj-redesign.showing-profile #profileView .profile-top{
  display:grid;grid-template-columns:minmax(235px,1fr) minmax(0,3fr);gap:12px;
}
body.bgj-redesign.showing-profile #profileView :is(.profile-card,.stat-card,.profile-highlights-card,.profile-matches-card){
  min-width:0;border:1px solid #303a42;border-radius:5px;
  background:#13181d;box-shadow:0 12px 26px #0004;
}
body.bgj-redesign.showing-profile #profileView .profile-card{
  border-left:2px solid var(--bgj-orange);padding:20px;gap:15px;align-items:center;
}
body.bgj-redesign.showing-profile #profileView .profile-avatar{
  width:78px;height:78px;flex:0 0 78px;border-radius:5px;border-color:#63482e;
}
body.bgj-redesign.showing-profile #profileView .profile-identity{min-width:0}
body.bgj-redesign.showing-profile #profileView .profile-kicker{
  color:#aab4be;font:800 12px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.07em;
}
body.bgj-redesign.showing-profile #profileView .profile-name{
  margin-top:5px;color:var(--bgj-orange);font:italic 900 34px/1 "Barlow Condensed",Arial,sans-serif;
  overflow-wrap:anywhere;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-steamid{color:#a0adb9;overflow-wrap:anywhere}
body.bgj-redesign.showing-profile #profileView .profile-role{
  color:#ffb676;background:#302016;border-color:#80512f;border-radius:3px;
}
body.bgj-redesign.showing-profile #profileView .stat-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;
}
body.bgj-redesign.showing-profile #profileView .stat-card{padding:13px 16px;min-height:82px}
body.bgj-redesign.showing-profile #profileView .stat-label{
  color:#aab4be;font:900 14px/1.15 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .stat-value{
  color:#f4f5f6;font:italic 900 32px/1.1 "Barlow Condensed",Arial,sans-serif;
  font-variant-numeric:tabular-nums;overflow-wrap:anywhere;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .stat-value.kd-positive{color:#8de34b}
body.bgj-redesign.showing-profile #profileView .stat-value.kd-negative{color:#ef7479}
body.bgj-redesign.showing-profile #profileView .stat-value.kd-neutral{color:#f4f5f6}
body.bgj-redesign.showing-profile #profileView .stat-value.kd-unavailable{color:#86939f}
body.bgj-redesign.showing-profile #profileView .stat-sub{
  color:#a0adb9;font:800 12px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-feature-grid{
  grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
body.bgj-redesign.showing-profile #profileView .profile-feature-grid .stat-feature{
  border-left:2px solid var(--bgj-orange);min-height:100px;
}
body.bgj-redesign.showing-profile #profileView .profile-feature-grid .stat-label,
body.bgj-redesign.showing-profile #profileView .profile-feature-player{color:var(--bgj-orange)}
body.bgj-redesign.showing-profile #profileView .profile-feature-player:hover{color:#ffc183;text-decoration:underline}
body.bgj-redesign.showing-profile #profileView :is(.profile-feature-btn,.profile-highlights-more){
  min-height:34px;height:auto;padding:8px 15px;background:#18181a;border:1px solid #61452e;
  border-radius:3px;color:#dfaf80;font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView :is(.profile-feature-btn,.profile-highlights-more):hover{
  background:#322216;border-color:var(--bgj-orange);color:#fff;
}
body.bgj-redesign.showing-profile #profileView .profile-section-title{
  color:#f4f5f6;font:900 23px/1.1 "Barlow Condensed",Arial,sans-serif;
  border-left:3px solid var(--bgj-orange);padding-left:9px;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-section-note{color:#aab4be}
body.bgj-redesign.showing-profile #profileView :is(a,button):focus-visible{
  outline:2px solid var(--bgj-orange);outline-offset:2px;
}
@media(max-width:1000px){
  body.bgj-redesign.showing-profile #profileView .profile-top{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
  body.bgj-redesign.showing-profile #profileView .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.bgj-redesign.showing-profile #profileView .profile-feature-grid{grid-template-columns:minmax(0,1fr)}
  body.bgj-redesign.showing-profile #profileView .profile-card{padding:14px}
}


/* =====================================================================
   PROFILE V1.1 — theme polish, original dashboard and match DOM retained
   ===================================================================== */
body.bgj-redesign.showing-profile #profileView .profile-card{
  border-left-width:3px;background:linear-gradient(120deg,#1a2026,#13181d);
}
body.bgj-redesign.showing-profile #profileView .profile-avatar{background:#0d1217;border-color:#84532e}
body.bgj-redesign.showing-profile #profileView .profile-steamid{color:#b0bac3}
body.bgj-redesign.showing-profile #profileView .profile-feature-grid .stat-feature{background:linear-gradient(120deg,#191e24,#13181d)}
body.bgj-redesign.showing-profile #profileView .profile-feature-btn{
  border-color:#f3a048;background:linear-gradient(180deg,#ff9e30,#f88419);color:#1a1109;
}
body.bgj-redesign.showing-profile #profileView .profile-feature-btn:hover{background:#ffad58;color:#1a1109}
body.bgj-redesign.showing-profile #profileView .profile-section-note{color:#b5bfc8}
body.bgj-redesign.showing-profile #profileView .empty-panel{
  background:#13181d;border-color:#39434d;color:#aab4be;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match{
  border:1px solid #313a43;border-radius:5px;background:#0b1014;box-shadow:none;overflow:hidden;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match:hover{border-color:#a46228}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match.open{border-color:var(--bgj-orange)}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-head{
  --profile-match-box-width:86px;--profile-match-box-height:34px;
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;
  align-items:center;min-height:62px;padding:10px 12px;
  background:linear-gradient(100deg,#10161b,#0b1014 67%,#0d1217);
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-head-grid{
  display:grid;min-width:0;grid-template-columns:136px var(--profile-match-box-width) var(--profile-match-box-width) minmax(0,1fr);
  align-items:center;gap:10px;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-when{
  display:flex;align-items:center;min-height:var(--profile-match-box-height);
  color:#ffa340;font:900 15px/1 "Barlow Condensed",Arial,sans-serif;white-space:nowrap;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-score{
  display:flex;align-items:center;justify-content:center;min-width:0;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-score-pill,
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-map{
  box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  width:var(--profile-match-box-width);min-width:var(--profile-match-box-width);
  height:var(--profile-match-box-height);min-height:var(--profile-match-box-height);
  margin:0;padding:0 6px;border:1px solid #3c4852;border-radius:4px;
  background:#151d24;color:#f0f3f6;box-shadow:none;font:900 15px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-score-pill .dash{color:#9da9b2}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-teams{
  position:static;transform:none;width:auto;max-width:none;min-width:0;display:grid;
  grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr);gap:7px;align-items:center;
  font:900 20px/1.12 "Barlow Condensed",Arial,sans-serif;color:#e8ecef;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-team{
  min-width:0;white-space:normal;overflow-wrap:anywhere;color:#e8ecef;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-team.left{text-align:right}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-team.right{text-align:left}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-team.win{color:#4edb83}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-team.lose{color:#ee6373}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-vs{
  width:25px;text-align:center;color:#a6b1ba;font:900 13px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-head-actions{display:flex;align-items:center;gap:7px}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlight-badge,
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-demo-btn{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;
  min-width:112px;min-height:var(--profile-match-box-height);height:var(--profile-match-box-height);
  padding:0 8px;border:1px solid #ae6627;border-radius:4px;background:#21170f;
  color:#ffb66e;box-shadow:none;font:900 13px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlight-badge::before{content:none}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlight-badge.processing{color:#eac578;border-color:#9d7b34}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-demo-btn.unavailable{background:#151b20;border-color:#3e474e;color:#89939b}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-demo-btn.available:hover{background:#362116;border-color:var(--bgj-orange);color:#fff}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-expand-btn{
  width:34px;min-width:34px;height:var(--profile-match-box-height);min-height:var(--profile-match-box-height);
  border:1px solid #3b434c;border-radius:4px;background:#182026;color:#a6b1ba;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-expand-btn:hover,
body.bgj-redesign.showing-profile #profileView .profile-match-list .match.open .match-expand-btn{border-color:var(--bgj-orange);background:#2b1c13;color:#ffad58}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-body{background:#0b1013;border-top:0;color:#f4f5f6}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights{background:#0e1316;border:0}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-scoreboard-label{
  border-top:0;color:#f4f5f6;font:italic 900 19px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .table{background:#0b1217;color:#e4e8ec}
body.bgj-redesign.showing-profile #profileView .profile-match-list .table :is(th,td){border-color:#28343c}
body.bgj-redesign.showing-profile #profileView .profile-match-list .table th{background:#121b22;color:#a9b4bc}
body.bgj-redesign.showing-profile #profileView :is(.library-highlight-card,.highlight-card){background:#13181d;border-color:#36424b;box-shadow:none}
body.bgj-redesign.showing-profile #profileView .library-highlight-player,
body.bgj-redesign.showing-profile #profileView .highlight-title a{color:var(--bgj-orange)}
body.bgj-redesign.showing-profile #profileView .library-highlight-player a{color:inherit}
body.bgj-redesign.showing-profile #profileView .library-highlight-play{background:#302016;color:#ffad62;border-color:#b76b2c}
body.bgj-redesign.showing-profile #profileView :is(.clip-share-btn,.clip-download-btn){
  background:#18181a;border-color:#61452e;color:#dfaf80;box-shadow:none;
}
body.bgj-redesign.showing-profile #profileView :is(.clip-share-btn,.clip-download-btn):hover{background:#322216;border-color:var(--bgj-orange);color:#fff}
@media(max-width:1100px){
  body.bgj-redesign.showing-profile #profileView .profile-match-list .match-head{grid-template-columns:minmax(0,1fr)}
  body.bgj-redesign.showing-profile #profileView .profile-match-list .match-head-actions{justify-content:flex-end;flex-wrap:wrap}
}
@media(max-width:620px){
  body.bgj-redesign.showing-profile #profileView .profile-match-list .match-head-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.bgj-redesign.showing-profile #profileView .profile-match-list .match-teams{grid-column:1/-1;font-size:18px}
  body.bgj-redesign.showing-profile #profileView .profile-match-list .match-head-actions{justify-content:flex-start}
}
/* Reuse the approved HOME split scoreboard visual rules, profile scope only. */
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-scoreboards{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  position:relative;gap:20px;margin:0 16px 18px;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-scoreboards::before{
  content:"";position:absolute;left:50%;top:9px;bottom:9px;
  width:1px;background:#44515b;transform:translateX(-50%);pointer-events:none;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-panel{
  --team-accent:#788590;--team-tint:#141b22;
  min-width:0;overflow:hidden;border:1px solid #34414a;
  border-top:3px solid var(--team-accent);border-radius:5px;background:#0d1318;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-panel--winner{
  --team-accent:#36c77a;--team-tint:#12261e;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-panel--loser{
  --team-accent:#e16a77;--team-tint:#281920;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-panel-heading{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 14px 7px;background:var(--team-tint);
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-panel-name{
  margin:0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  color:#edf2f4;font:900 20px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-panel--winner .bgj-team-panel-name{color:#68e3a3}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-outcome{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;min-width:62px;padding:5px 7px;
  border:1px solid var(--team-accent);border-radius:3px;color:var(--team-accent);
  font:900 11px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.06em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table-scroll{min-width:0;overflow-x:auto}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table{
  width:100%;min-width:390px;table-layout:fixed;border-collapse:collapse;
  background:#0b1217;font:500 13px/1.35 Arial,sans-serif;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table th,
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table td{
  border-bottom:1px solid #28343c;padding:12px 8px;
  text-align:right;color:#e4e8ec;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table th{
  color:#a9b4bc;background:#121b22;
  font:900 11px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table th:first-child,
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table td:first-child{
  width:40%;text-align:left;padding-left:13px;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table th:last-child,
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table td:last-child{
  width:17%;padding-right:13px;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table tr:last-child td{border-bottom:0}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table td.player{
  overflow-wrap:anywhere;font-weight:700;color:#e7eaef;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table .player a{
  color:inherit;text-decoration:none;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table .player a:hover{
  color:var(--bgj-orange);text-decoration:underline;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-panel--winner .bgj-team-table tbody tr{
  background:rgba(40,172,101,.06);
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-panel--loser .bgj-team-table tbody tr{
  background:rgba(218,77,93,.04);
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table tbody tr:hover{
  background:rgba(255,139,25,.11);
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-scoreboard-fallback-wrap{
  margin:0 16px 18px;overflow-x:auto;
}
@media(max-width:1050px){
  body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-scoreboards{
    grid-template-columns:1fr;gap:15px;
  }
  body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-scoreboards::before{display:none}
}
@media(max-width:620px){
  body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-scoreboards{margin:0 9px 14px}
  body.bgj-redesign.showing-profile #profileView .profile-match-list .bgj-team-table{min-width:380px}
}



/* =====================================================================
   PROFILE V2.1 — personal cinematic gallery; performance graph removed
   ===================================================================== */
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid{
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid > *{
  width:auto;min-width:0;max-width:none;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-card{
  background:#0b1016;border:1px solid #36424b;border-radius:5px;overflow:hidden;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-card:hover,
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-card:focus-within{border-color:#dc833b}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-card{
  display:flex;flex-direction:column;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-video,
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .aftermovie-video{
  display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:#070a0e;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-meta{
  display:flex;flex:1;flex-direction:column;min-width:0;
  border-top:1px solid #62432c;background:#13181d;padding:12px;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-topline{
  align-items:center;gap:8px;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-player{
  min-width:0;color:var(--bgj-orange);
  font:italic 900 23px/1.15 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;white-space:normal;overflow:visible;overflow-wrap:anywhere;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-player a{
  color:inherit;font:inherit;text-decoration:none;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-player a:hover{
  color:#ffc183;text-decoration:underline;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-play{
  box-sizing:border-box;min-width:43px;max-width:45%;min-height:28px;height:auto;
  padding:4px 8px;border:1px solid #b76b2c;border-radius:3px;background:#302016;
  color:#ffad62;font:italic 900 18px/1.1 "Barlow Condensed",Arial,sans-serif;
  white-space:normal;text-align:center;overflow-wrap:anywhere;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-detail-row{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;
  margin-top:7px;margin-bottom:0;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-detail{
  grid-column:1/-1;min-width:0;min-height:17px;white-space:normal;
  overflow:visible;overflow-wrap:anywhere;color:#c0c8cf;
  font:800 13px/1.3 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-detail-row .clip-share-btn,
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-detail-row .clip-download-btn{
  box-sizing:border-box;width:100%;min-width:0;min-height:30px;height:auto;
  padding:7px 6px;border:1px solid #61452e;border-radius:3px;
  background:#18181a;color:#dfaf80;box-shadow:none;text-align:center;
  font:900 12px/1.15 "Barlow Condensed",Arial,sans-serif;white-space:normal;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-detail-row .clip-share-btn:hover,
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-detail-row .clip-download-btn:hover,
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-detail-row .clip-share-btn.copied{
  background:#322216;border-color:var(--bgj-orange);color:#fff;
  transform:none;box-shadow:none;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-context{
  flex-wrap:wrap;gap:4px 7px;margin-top:auto;padding-top:9px;
  border-top:0;color:#a0adb9;font:800 11px/1.3 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-context .library-teams{
  flex:0 0 100%;min-width:0;white-space:normal;overflow:visible;overflow-wrap:anywhere;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-dot{
  background:#b46b2b;flex:0 0 3px;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-dot:has(+ .library-teams){
  display:none;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media{
  position:relative;isolation:isolate;overflow:hidden;
  aspect-ratio:16/9;background:#070a0e;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media .library-highlight-video{
  display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media:not(.is-playing)::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,#05080c44,#05080c0d 40%,#05080c77);
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media .bgj-gallery-tag{
  position:absolute;top:11px;left:11px;z-index:2;pointer-events:none;
  padding:5px 8px;border-left:2px solid var(--bgj-orange);
  background:#090c10cf;backdrop-filter:blur(5px);
  color:#eceff2;font:800 10px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.1em;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media .bgj-gallery-play{
  position:absolute;z-index:3;left:50%;top:50%;
  display:flex;align-items:center;justify-content:center;
  width:60px;height:60px;margin:0;padding:0;border:1px solid var(--bgj-orange);
  border-radius:50%;background:#0a0c0fd8;color:#fff;
  box-shadow:0 0 0 7px #0c101448,0 8px 24px #0007;
  transform:translate(-50%,-50%);cursor:pointer;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media .bgj-gallery-play-symbol{
  display:block;width:0;height:0;margin-left:4px;
  border-top:10px solid transparent;border-bottom:10px solid transparent;
  border-left:16px solid var(--bgj-orange);
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media .bgj-gallery-play:not(:disabled):hover,
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media .bgj-gallery-play:focus-visible{
  background:var(--bgj-orange);outline:2px solid #fff;outline-offset:4px;
  box-shadow:0 0 0 9px #ff8b192b,0 12px 30px #0009;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media .bgj-gallery-play:is(:hover,:focus-visible):not(:disabled) .bgj-gallery-play-symbol{
  border-left-color:#111419;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media .bgj-gallery-play:disabled{
  opacity:.35;cursor:not-allowed;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media.is-playing :is(.bgj-gallery-play,.bgj-gallery-tag){
  visibility:hidden;opacity:0;pointer-events:none;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-detail{
  font-size:12px;line-height:1.25;min-height:15px;letter-spacing:0;
  white-space:normal;overflow-wrap:anywhere;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-context{
  padding-top:7px;
}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-meta{padding:10px}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-highlight-player{font-size:20px}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid .library-gallery-media .bgj-gallery-play{width:48px;height:48px}
body.bgj-redesign.showing-profile #profileView .profile-highlights-grid :is(.clip-share-btn,.clip-download-btn):disabled{
  color:#89939b;border-color:#3e474e;background:#151b20;cursor:not-allowed;transform:none;
}
@media(max-width:1100px){
  body.bgj-redesign.showing-profile #profileView .profile-highlights-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  body.bgj-redesign.showing-profile #profileView .profile-highlights-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  body.bgj-redesign.showing-profile #profileView .profile-highlights-grid{grid-template-columns:minmax(0,1fr)}
}


/* =====================================================================
   PROFILE V2.2 — selected player and split scoreboard dialogs
   ===================================================================== */
body.bgj-redesign .profile-scoreboard-modal{
  box-sizing:border-box;width:min(1320px,calc(100vw - 32px));
  max-height:min(86vh,850px);padding:20px;border:1px solid #ae6627;border-radius:6px;
  background:#13181d;color:#f4f5f6;box-shadow:0 25px 75px #000b;
}
body.bgj-redesign .profile-scoreboard-modal .profile-section-title{
  border-left:3px solid var(--bgj-orange);padding-left:9px;color:#f4f5f6;
  font:900 23px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign .profile-scoreboard-modal .profile-modal-close{
  background:#20262d;border:1px solid #414b55;color:#e0e4e8;border-radius:4px;
}
body.bgj-redesign .profile-scoreboard-modal .profile-modal-close:hover{
  border-color:var(--bgj-orange);color:#ffb676;
}
body.bgj-redesign .profile-scoreboard-modal .profile-scoreboard-summary{color:#aab4be}
body.bgj-redesign .profile-scoreboard-modal .profile-scoreboard-teams{
  color:#f4f5f6;font:900 24px/1.2 "Barlow Condensed",Arial,sans-serif;
  overflow-wrap:anywhere;letter-spacing:.055em;
}
body.bgj-redesign .profile-scoreboard-modal .empty-panel{background:#101419;color:#aab4be;border-color:#39434d}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-scoreboards{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  position:relative;gap:20px;margin:0 16px 18px;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-scoreboards::before{
  content:"";position:absolute;left:50%;top:9px;bottom:9px;
  width:1px;background:#44515b;transform:translateX(-50%);pointer-events:none;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-panel{
  --team-accent:#788590;--team-tint:#141b22;
  min-width:0;overflow:hidden;border:1px solid #34414a;
  border-top:3px solid var(--team-accent);border-radius:5px;background:#0d1318;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-panel--winner{
  --team-accent:#36c77a;--team-tint:#12261e;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-panel--loser{
  --team-accent:#e16a77;--team-tint:#281920;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-panel-heading{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:13px 14px 7px;background:var(--team-tint);
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-panel-name{
  margin:0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  color:#edf2f4;font:900 20px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-panel--winner .bgj-team-panel-name{color:#68e3a3}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-outcome{
  display:inline-flex;align-items:center;justify-content:center;
  flex:0 0 auto;min-width:62px;padding:5px 7px;
  border:1px solid var(--team-accent);border-radius:3px;color:var(--team-accent);
  font:900 11px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.06em;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table-scroll{min-width:0;overflow-x:auto}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table{
  width:100%;min-width:390px;table-layout:fixed;border-collapse:collapse;
  background:#0b1217;font:500 13px/1.35 Arial,sans-serif;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table th,
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table td{
  border-bottom:1px solid #28343c;padding:12px 8px;
  text-align:right;color:#e4e8ec;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table th{
  color:#a9b4bc;background:#121b22;
  font:900 11px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table th:first-child,
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table td:first-child{
  width:40%;text-align:left;padding-left:13px;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table th:last-child,
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table td:last-child{
  width:17%;padding-right:13px;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table tr:last-child td{border-bottom:0}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table td.player{
  overflow-wrap:anywhere;font-weight:700;color:#e7eaef;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table .player a{
  color:inherit;text-decoration:none;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table .player a:hover{
  color:var(--bgj-orange);text-decoration:underline;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-panel--winner .bgj-team-table tbody tr{
  background:rgba(40,172,101,.06);
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-panel--loser .bgj-team-table tbody tr{
  background:rgba(218,77,93,.04);
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-table tbody tr:hover{
  background:rgba(255,139,25,.11);
}
body.bgj-redesign .profile-scoreboard-modal .bgj-scoreboard-fallback-wrap{
  margin:0 16px 18px;overflow-x:auto;
}
@media(max-width:1050px){
  body.bgj-redesign .profile-scoreboard-modal .bgj-team-scoreboards{
    grid-template-columns:1fr;gap:15px;
  }
  body.bgj-redesign .profile-scoreboard-modal .bgj-team-scoreboards::before{display:none}
}
@media(max-width:620px){
  body.bgj-redesign .profile-scoreboard-modal .bgj-team-scoreboards{margin:0 9px 14px}
  body.bgj-redesign .profile-scoreboard-modal .bgj-team-table{min-width:380px}
}
body.bgj-redesign .profile-scoreboard-modal .bgj-team-scoreboards{margin:0;gap:14px}
body.bgj-redesign.showing-profile #profileView .profile-match-list tr.bgj-selected-player > td,
body.bgj-redesign .profile-scoreboard-modal tr.bgj-selected-player > td{
  background:#34271d;color:#ffe1bd;border-top:1px solid #b76b2c;border-bottom:1px solid #b76b2c;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list tr.bgj-selected-player > td:first-child,
body.bgj-redesign .profile-scoreboard-modal tr.bgj-selected-player > td:first-child{
  box-shadow:inset 3px 0 var(--bgj-orange);color:#ffb676;font-weight:800;
}
body.bgj-redesign .profile-scoreboard-modal .bgj-scoreboard-fallback-wrap{margin:0;overflow-x:auto}
body.bgj-redesign .profile-scoreboard-modal .bgj-scoreboard-fallback{min-width:510px}
body.bgj-redesign .profile-scoreboard-modal :is(button,a):focus-visible{outline:2px solid var(--bgj-orange);outline-offset:2px}

/* =====================================================================
   PROFILE V2.2.1 — fixed highlight slots in expanded match history
   Match HOME's four/two/one columns, independent of clip count.
   ===================================================================== */
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights-grid > .highlight-card{
  width:100%;min-width:0;box-sizing:border-box;border-radius:4px;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .highlight-video{
  display:block;width:100%;aspect-ratio:16/9;object-fit:contain;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights-head{
  margin-bottom:16px;align-items:center;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights-title{
  font:900 17px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.07em;color:#f3f5f7;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .highlight-card{
  background:#0a0f14;border-color:#34404b;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .highlight-meta{
  padding:13px 12px;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .highlight-meta-row{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;align-items:center;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .highlight-title{
  grid-column:1/-1;min-height:30px;
  white-space:normal;overflow:visible;text-overflow:clip;
  overflow-wrap:anywhere;
  font:850 14px/1.3 "Barlow Condensed",Arial,sans-serif;
  color:#f0f2f4;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .highlight-title a{
  color:var(--bgj-orange);text-decoration:none;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .highlight-title a:hover{
  color:#ffc083;text-decoration:underline;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights .clip-share-btn,
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights .clip-download-btn{
  width:100%;min-width:0;max-width:none;height:29px;min-height:29px;
  background:#18181a;background-image:none;border-color:#61452e;
  color:#dfaf80;font:900 11px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights .clip-share-btn:hover,
body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights .clip-download-btn:hover{
  background:#322216;background-image:none;
  border-color:var(--bgj-orange);color:#fff;
}
@media(max-width:1150px){
  body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  body.bgj-redesign.showing-profile #profileView .profile-match-list .match-highlights-grid{grid-template-columns:minmax(0,1fr)}
}

/* =====================================================================
   HIGHLIGHT MEDIA V1 — poster-first playback; existing card layouts retained
   ===================================================================== */
.bgj-redesign [data-deferred-media]{
  position:relative;isolation:isolate;overflow:hidden;aspect-ratio:16/9;background:#070a0e;
}
.bgj-redesign [data-deferred-media] > :is(video,.bgj-media-poster,.bgj-media-placeholder){
  display:block;width:100%;height:100%;aspect-ratio:16/9;object-fit:cover;
}
.bgj-redesign [data-deferred-media] > .bgj-media-placeholder{
  display:flex;align-items:center;justify-content:center;color:#9ca3aa;
  font:800 12px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.1em;
}
.bgj-redesign [data-deferred-media] > [hidden]{display:none!important}
.bgj-redesign :is(.match-gallery-media,.aftermovie-gallery-media) .bgj-gallery-tag{
  position:absolute;top:10px;left:10px;z-index:2;pointer-events:none;padding:5px 8px;
  border-left:2px solid var(--bgj-orange);background:#090c10cf;color:#eceff2;
  font:800 10px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.1em;
}
.bgj-redesign :is(.match-gallery-media,.aftermovie-gallery-media) .bgj-gallery-play{
  position:absolute;z-index:3;left:50%;top:50%;display:flex;align-items:center;justify-content:center;
  width:48px;height:48px;margin:0;padding:0;border:1px solid var(--bgj-orange);
  border-radius:50%;background:#0a0c0fd8;color:#fff;box-shadow:0 0 0 6px #0c101448;
  transform:translate(-50%,-50%);cursor:pointer;
}
.bgj-redesign :is(.match-gallery-media,.aftermovie-gallery-media) .bgj-gallery-play-symbol{
  display:block;width:0;height:0;margin-left:4px;border-top:8px solid transparent;
  border-bottom:8px solid transparent;border-left:13px solid var(--bgj-orange);
}
.bgj-redesign :is(.match-gallery-media,.aftermovie-gallery-media) .bgj-gallery-play:is(:hover,:focus-visible):not(:disabled){
  background:var(--bgj-orange);outline:2px solid #fff;outline-offset:3px;
}
.bgj-redesign :is(.match-gallery-media,.aftermovie-gallery-media) .bgj-gallery-play:is(:hover,:focus-visible):not(:disabled) .bgj-gallery-play-symbol{border-left-color:#111419}
.bgj-redesign [data-deferred-media].is-playing :is(.bgj-gallery-play,.bgj-gallery-tag){visibility:hidden;opacity:0;pointer-events:none}
.bgj-redesign [data-deferred-media] .bgj-gallery-play:disabled{opacity:.35;cursor:not-allowed}
.bgj-redesign [data-deferred-media] .bgj-media-status{
  position:absolute;bottom:5px;left:5px;right:5px;z-index:4;padding:4px;
  background:#0a0c0fe8;color:#eee;text-align:center;font-size:11px;pointer-events:none;
}

/* Approved HOME CTA and Highlights-only library adjustment. */
/* OPEN CUPS inherits primary geometry, typography and keyboard focus.
   Contrasting orange outline/text and dark fill, including hover. */
.bgj-redesign .bgj-hero-btn.primary.cup-outline{
  background:#13181d;border-color:var(--bgj-orange);color:var(--bgj-orange);
}
.bgj-redesign .bgj-hero-btn.primary.cup-outline:hover,
.bgj-redesign .bgj-hero-btn.primary.cup-outline:focus-visible{
  background:#302319;border-color:var(--bgj-orange);color:var(--bgj-orange);
}
.bgj-redesign .bgj-hero-actions{gap:12px;flex-wrap:wrap;align-items:center}
.bgj-redesign #heroCupLink[hidden],.bgj-redesign #aftermoviesView[hidden]{display:none!important}

/* Public assigned Gather roster: existing five slots and compact avatar size. */
body.bgj-redesign.showing-gathers .gather-roster-slot.occupied{color:#e0e7ed;font-style:normal;font-size:13px;letter-spacing:0}
body.bgj-redesign.showing-gathers .gather-slot-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.bgj-redesign.showing-gathers .gather-roster-slot.occupied .gather-slot-avatar{position:relative;overflow:hidden;border:1px solid #48535d;color:#cbd4dd}
body.bgj-redesign.showing-gathers .gather-slot-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}

/* =====================================================================
   PATCH NOTES V1 — read-only changelog presentation, owner editor retained
   ===================================================================== */
body.bgj-redesign #patchNotesView{
  box-sizing:border-box;width:100%;max-width:var(--bgj-max);
  margin:24px auto 36px;padding:0;
}
body.bgj-redesign #patchNotesView[hidden],
body.bgj-redesign #patchNotesView [hidden]{display:none!important}
body.bgj-redesign:has(#patchNotesView:not([hidden])) .primary-nav a[href="#patch-notes"]{color:#fff}
body.bgj-redesign:has(#patchNotesView:not([hidden])) .primary-nav a[href="#patch-notes"]::after{right:auto;width:100%}
body.bgj-redesign #patchNotesView .patch-page-heading{
  box-sizing:border-box;margin:0 0 18px;padding:20px 24px;
  border:1px solid var(--bgj-border);border-top:2px solid var(--bgj-orange);
  border-radius:4px;background:#13181d;box-shadow:0 12px 28px #0005;
}
body.bgj-redesign #patchNotesView .patch-eyebrow{
  color:var(--bgj-orange);font:900 12px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.13em;
}
body.bgj-redesign #patchNotesView .patch-page-heading h1{
  margin:5px 0 6px;color:#f4f5f6;
  font:italic 1000 clamp(28px,3.2vw,43px)/1 "Barlow Condensed",Impact,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign #patchNotesView .patch-page-heading p{margin:0;color:#aab4be;font-size:14px}
body.bgj-redesign #patchNotesView .patch-list{display:grid;gap:14px}
body.bgj-redesign #patchNotesView .patch-entry{
  box-sizing:border-box;min-width:0;padding:23px 24px;
  background:#13181d;border:1px solid var(--bgj-border);border-left:3px solid #47515b;
  border-radius:4px;box-shadow:0 10px 24px #0003;
}
body.bgj-redesign #patchNotesView .patch-entry:first-child{border-left-color:var(--bgj-orange)}
body.bgj-redesign #patchNotesView .patch-entry-head{align-items:flex-start;gap:14px}
body.bgj-redesign #patchNotesView .patch-entry-head > div:first-child{min-width:0}
body.bgj-redesign #patchNotesView .patch-date{
  color:#ffaf64;font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.08em;
}
body.bgj-redesign #patchNotesView .patch-entry h2{
  margin:9px 0 13px;color:#f4f5f6;font:900 26px/1.15 "Barlow Condensed",Arial,sans-serif;
  overflow-wrap:anywhere;letter-spacing:.055em;
}
body.bgj-redesign #patchNotesView .patch-entry ul{
  margin:0;padding-left:22px;color:#d3d9df;font-size:14px;line-height:1.75;
}
body.bgj-redesign #patchNotesView .patch-entry li{padding-left:3px;overflow-wrap:anywhere}
body.bgj-redesign #patchNotesView .patch-entry li::marker{color:var(--bgj-orange)}
body.bgj-redesign #patchNotesView .patch-summary-block{
  margin-top:18px;padding:13px 15px;border:1px solid #333b43;border-left:2px solid #b56c2b;
  border-radius:3px;background:#0f1317;color:#bfc9d2;font-size:14px;line-height:1.6;
}
body.bgj-redesign #patchNotesView .patch-summary-block strong{
  color:#ffaf64;font:900 13px/1.1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.09em;margin-bottom:6px;
}
body.bgj-redesign #patchNotesView .patch-muted{
  margin:0;padding:22px;color:#aab4be;background:#13181d;border:1px solid var(--bgj-border);border-radius:4px;
}
body.bgj-redesign #patchNotesView .patch-editor{
  box-sizing:border-box;min-width:0;gap:14px;padding:22px 24px;background:#13181d;
  border:1px solid #61452e;border-top:2px solid var(--bgj-orange);border-radius:4px;
}
body.bgj-redesign #patchNotesView .patch-editor h2{
  margin:0;color:#f4f5f6;font:900 24px/1.2 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;
}
body.bgj-redesign #patchNotesView .patch-editor label{color:#ffaf64;font:900 14px/1.3 "Barlow Condensed",Arial,sans-serif;letter-spacing:.055em;}
body.bgj-redesign #patchNotesView .patch-editor small{color:#aab4be;font:400 12px/1.4 Arial,sans-serif}
body.bgj-redesign #patchNotesView .patch-editor :is(input,textarea){
  min-width:0;border:1px solid #3d4852;border-radius:3px;background:#0d1115;color:#f4f5f6;
  font:400 14px/1.5 Arial,sans-serif;color-scheme:dark;
}
body.bgj-redesign #patchNotesView .patch-editor textarea{resize:vertical}
body.bgj-redesign #patchNotesView :is(.patch-primary,.patch-secondary,.patch-admin-actions button){
  min-height:34px;padding:8px 14px;border-radius:3px;white-space:nowrap;
  font:900 14px/1.1 "Barlow Condensed",Arial,sans-serif;cursor:pointer;letter-spacing:.055em;
}
body.bgj-redesign #patchNotesView .patch-primary{background:var(--bgj-orange);border:1px solid var(--bgj-orange);color:#16110b}
body.bgj-redesign #patchNotesView :is(.patch-secondary,.patch-admin-actions button){
  background:#18181a;border:1px solid #61452e;color:#dfaf80;
}
body.bgj-redesign #patchNotesView .patch-primary:hover:not(:disabled){background:#ffaf64}
body.bgj-redesign #patchNotesView :is(.patch-secondary,.patch-admin-actions button):hover:not(:disabled){
  background:#322216;border-color:var(--bgj-orange);color:#fff;
}
body.bgj-redesign #patchNotesView .patch-admin-actions [data-patch-delete]{border-color:#704046;color:#ef9ba0}
body.bgj-redesign #patchNotesView .patch-admin-actions [data-patch-delete]:hover{background:#382127;border-color:#ef7479}
body.bgj-redesign #patchNotesView :is(button,input,textarea):focus-visible{outline:2px solid var(--bgj-orange);outline-offset:2px}
body.bgj-redesign #patchNotesView button:disabled{opacity:.55;cursor:not-allowed}
body.bgj-redesign #patchNotesView #patchFormStatus{color:#bfc9d2;font-size:13px;overflow-wrap:anywhere}
@media(max-width:700px){
  body.bgj-redesign #patchNotesView{margin-top:14px}
  body.bgj-redesign #patchNotesView .patch-page-heading{flex-wrap:wrap;padding:16px}
  body.bgj-redesign #patchNotesView :is(.patch-entry,.patch-editor){padding:16px}
  body.bgj-redesign #patchNotesView .patch-entry h2{font-size:23px}
  body.bgj-redesign #patchNotesView .patch-admin-actions{flex-wrap:wrap}
}

/* 2.0 production polish — shared display typography, centered finished Gather
   matchup, and genuine joined-lobby CTA. No match or membership logic changes. */
body.bgj-redesign .primary-nav a{letter-spacing:.075em}
body.bgj-redesign #patchNotesView .patch-entry h2{letter-spacing:.06em}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match{container: bgj-finished-match / inline-size;}
/* A symmetric three-part matchup gets its own full-width grid row whenever
   the card is too narrow for metadata, names and actions side by side. */
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;
  align-items:center;
}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head-grid{display:contents}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-when{grid-column:1/-1;grid-row:1;white-space:normal}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-score{grid-column:1;grid-row:2;justify-self:start}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-map{grid-column:2;grid-row:2;justify-self:end}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head-grid .match-teams{
  grid-column:1/-1;grid-row:3;position:static;left:auto;transform:none;
  width:100%;max-width:none;min-width:0;
  display:grid;grid-template-columns:minmax(0,1fr) 42px minmax(0,1fr);
  align-items:center;gap:8px;
  font:900 18px/1.15 "Barlow Condensed",Arial,sans-serif;
  font-size:clamp(15px,2.6cqw,18px);letter-spacing:.055em;
}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-team.left,
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-team.right{
  display:block;justify-self:stretch;min-width:0;padding:0;
  /* Legacy site.css sets .match-team to 12px explicitly. Override on the
     actual label, not merely on the responsive .match-teams parent. */
  font-size:inherit;line-height:inherit;
  white-space:normal;overflow-wrap:anywhere;overflow:visible;letter-spacing:.055em;
}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-team.left{text-align:right}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-team.right{text-align:left}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-vs{
  width:42px;display:flex;justify-content:center;align-items:center;text-align:center;
  font:900 16px/1 "Barlow Condensed",Arial,sans-serif;letter-spacing:.075em;
}
body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head-actions{grid-column:1/-1;grid-row:4;justify-content:flex-end;flex-wrap:wrap;min-width:0}
@container bgj-finished-match (min-width:520px){
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head{grid-template-columns:minmax(0,1fr) 96px 96px}
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-when{grid-column:1;grid-row:1}
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-score{grid-column:2;grid-row:1}
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-map{grid-column:3;grid-row:1}
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head-grid .match-teams{grid-row:2}
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head-actions{grid-row:3}
}
@container bgj-finished-match (min-width:780px){
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head{grid-template-columns:154px 96px 96px minmax(0,1fr)}
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head-actions{grid-column:4;grid-row:1}
}
@container bgj-finished-match (min-width:1180px){
  /* Left metadata zone = 154 + 96 + 96 + 2*12 = 370px;
     the right zone is also 370px, so VS stays on the card centerline. */
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head{grid-template-columns:154px 96px 96px minmax(0,1fr) 370px}
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head-grid .match-teams{
    grid-column:4;grid-row:1;font-size:18px;
  }
  body.bgj-redesign :is(#homeView > #matchesSection,#profileView .profile-match-list) .match-head-actions{grid-column:5;grid-row:1}
}
/* Only the existing state class for OPEN YOUR LOBBY turns green. */
body.bgj-redesign.showing-gathers #homeView .gather-card-action .gather-open-btn.gather-cta-yours:not(:disabled){
  border-color:#48b66c!important;background:#4fc877!important;
  background-image:linear-gradient(180deg,#6dde91,#43bf70)!important;
  color:#102717!important;box-shadow:0 6px 17px rgba(67,191,112,.18)!important;
}
@media(hover:hover){
  body.bgj-redesign.showing-gathers #homeView .gather-card-action .gather-open-btn.gather-cta-yours:not(:disabled):hover{
    border-color:#91efad!important;background:#69da90!important;
    background-image:linear-gradient(180deg,#86eaa4,#55ca7e)!important;
    color:#102717!important;box-shadow:0 8px 20px rgba(67,191,112,.26)!important;
  }
}
body.bgj-redesign.showing-gathers #homeView .gather-card-action .gather-open-btn.gather-cta-yours:not(:disabled):focus-visible{
  outline-color:#a6f2bb!important;
}
@media(max-width:1100px){
  body.bgj-redesign.showing-gathers .gather-card-action{justify-content:center}
}

/* Expanded Gather identity: avatar, compact name, existing role badges.
   Preserve right-aligned action/stat group and empty/accept/live slot states. */
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .team .slot:has(.lobby-player-avatar)::before{
  content:none;display:none;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .lobby-player-avatar{
  position:relative;display:grid;place-items:center;flex:0 0 26px;
  width:26px;height:26px;overflow:hidden;border:1px solid #394c5b;border-radius:50%;
  background:#111820;color:#c4d2dc;font:800 10px/1 Arial,sans-serif;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .lobby-player-avatar img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot .player-name-display{
  flex:0 1 auto;min-width:0;max-width:190px;
}
body.bgj-redesign.showing-gathers.gather-lobby-active #gatherCardList #gatherLobbyMount .slot :is(.admin-star,.host-flag){
  margin-left:0;flex:0 0 auto;
}
