/* Squares Pro Stadium Lights — My Boards */
body:has(#boards.active){
  --boards-blue:#2baeff;
  --boards-gold:#efb82f;
  color:#edf4f8;
  background:linear-gradient(rgba(0,5,9,.28),rgba(0,5,9,.88)),url('../themes/stadium-lights-bg.png') center top/cover fixed!important;
}
body:has(#boards.active) .app,body:has(#boards.active) main{background:transparent!important;}
body:has(#boards.active) main{width:100%!important;margin-left:0!important;padding:0 28px 38px!important;}
body:has(#boards.active) #workspaceDock,body:has(#boards.active) #saveStatusIndicator,body:has(#boards.active) #undoLastActionBtn,body:has(#boards.active) .footerNote{display:none!important;}

/* Stadium navigation drawer */
body:has(#boards.active) .sidebar{
  position:fixed!important;left:0!important;top:0!important;z-index:5000!important;width:min(290px,86vw)!important;height:100vh!important;
  display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:20px 14px!important;overflow-x:hidden!important;overflow-y:auto!important;
  transform:translateX(-105%)!important;transition:transform .24s ease!important;background:linear-gradient(180deg,rgba(4,14,24,.99),rgba(1,6,11,.99))!important;
  border-right:1px solid rgba(155,211,248,.58)!important;box-shadow:18px 0 50px rgba(0,0,0,.78),inset -1px 0 rgba(255,255,255,.08)!important;
}
body.dashboardNavOpen:has(#boards.active) .sidebar{transform:translateX(0)!important;}
body.dashboardNavOpen:has(#boards.active)::after{content:"";position:fixed;inset:0;z-index:4900;background:rgba(0,4,8,.66);backdrop-filter:blur(3px);}
body:has(#boards.active) .sidebar .brand{display:block!important;width:100%!important;margin:0 0 12px!important;padding:4px 6px 13px!important;text-align:center!important;border-bottom:1px solid rgba(91,165,210,.35)!important;}
body:has(#boards.active) .sidebar .brandShield{display:block!important;width:76px!important;height:76px!important;margin:0 auto 5px!important;object-fit:contain!important;filter:drop-shadow(0 0 8px rgba(65,172,255,.62))!important;}
body:has(#boards.active) .sidebar .brand h1{display:block!important;margin:0!important;color:#f2f6f8!important;font-size:18px!important;line-height:1.1!important;letter-spacing:.1em!important;white-space:normal!important;}
body:has(#boards.active) .sidebar .brand h1 b{color:#ff8a1c!important;}
body:has(#boards.active) .sidebar .brand small{display:block!important;margin-top:5px!important;color:#75c9ff!important;font-size:8px!important;font-weight:900!important;letter-spacing:.18em!important;}
body:has(#boards.active) .sidebar .modeSwitcher,body:has(#boards.active) .sidebar #notificationBell,body:has(#boards.active) .sidebar #smartAlertBell,body:has(#boards.active) .sidebar .commandPaletteTrigger,body:has(#boards.active) .sidebar #primaryNav,body:has(#boards.active) .sidebar .premiumHomeUpgrade,body:has(#boards.active) .sidebar .version{display:none!important;}
body:has(#boards.active) .sidebar .premiumHomeNav{display:grid!important;grid-template-columns:1fr!important;gap:2px!important;width:100%!important;margin:0 0 12px!important;padding:0!important;}
body:has(#boards.active) .sidebar .premiumHomeNav button{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;width:100%!important;min-height:39px!important;margin:0!important;padding:8px 11px!important;color:#dce8ef!important;background:transparent!important;border:1px solid transparent!important;border-radius:3px!important;font-size:13px!important;font-weight:850!important;text-align:left!important;box-shadow:none!important;cursor:pointer!important;}
body:has(#boards.active) .sidebar .premiumHomeNav button span{flex:0 0 23px!important;width:23px!important;color:#bcd9e9!important;font-size:19px!important;text-align:center!important;}
body:has(#boards.active) .sidebar .premiumHomeNav button:hover{color:#fff!important;background:rgba(20,105,159,.35)!important;border-color:rgba(67,181,247,.42)!important;}
body:has(#boards.active) .sidebar .premiumHomeNav button.active{background:transparent!important;border-color:transparent!important;box-shadow:none!important;}
body:has(#boards.active) .sidebar .premiumHomeNav button:nth-child(4){color:#fff!important;background:linear-gradient(90deg,#06477f,#0a88d9)!important;border-color:#35b9ff!important;box-shadow:0 0 14px rgba(0,148,239,.34),inset 3px 0 #a4e5ff!important;}
body:has(#boards.active) .sidebar .premiumDashThemePanel{display:grid!important;grid-template-columns:1fr!important;gap:5px!important;width:100%!important;margin:auto 0 0!important;padding:10px!important;color:#fff!important;background:linear-gradient(180deg,#0a1b29,#02090e)!important;border:1px solid #9e7624!important;}
body:has(#boards.active) .sidebar .premiumDashThemePanel>span{color:#efbe40!important;font-size:8px!important;font-weight:1000!important;letter-spacing:.14em!important;}
body:has(#boards.active) .sidebar .premiumDashThemePanel>b{font-size:12px!important;}
body:has(#boards.active) .sidebar .premiumDashThemePreview{display:block!important;width:100%!important;height:48px!important;border:1px solid #31546b!important;}
body:has(#boards.active) .sidebar .premiumDashThemePanel>button{min-height:32px!important;color:#fff!important;background:linear-gradient(#19364c,#07131d)!important;border:1px solid #159dea!important;font-size:11px!important;font-weight:1000!important;cursor:pointer!important;}

#boards{max-width:1720px;margin:0 auto;padding:0!important;}
#boards>.pageBackRow{display:none!important;}
#boards .stadiumBoardsHeader{display:grid;grid-template-columns:58px minmax(0,1fr) 58px;align-items:center;min-height:104px;padding:2px 42px 0;}
#boards .stadiumHeaderButton{display:grid;place-items:center;width:52px;height:52px;padding:0;color:#dce9f0;background:linear-gradient(145deg,rgba(25,39,50,.88),rgba(2,7,12,.95));border:1px solid #8299a7;border-radius:8px;box-shadow:inset 0 1px rgba(255,255,255,.18),0 8px 20px rgba(0,0,0,.6),0 0 12px rgba(92,184,244,.13);cursor:pointer;}
#boards .stadiumMenuButton{gap:5px;padding:14px;}
#boards .stadiumMenuButton span{display:block;width:25px;height:3px;background:#d8e3e8;border-radius:2px;box-shadow:0 0 5px rgba(159,221,255,.42);}
#boards .stadiumSettingsButton{font-size:30px;line-height:1;}
#boards .stadiumBrandLockup{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2.2vw,34px);min-width:0;}
#boards .stadiumBrandLockup>img{width:clamp(70px,5.8vw,88px);height:clamp(70px,5.8vw,88px);object-fit:contain;clip-path:polygon(50% 0,88% 10%,94% 28%,92% 70%,72% 89%,50% 100%,28% 89%,8% 70%,6% 28%,12% 10%);filter:drop-shadow(0 0 6px #fff) drop-shadow(0 0 15px rgba(38,150,255,.9));}
#boards .stadiumBrandWords{text-align:center;white-space:nowrap;}
#boards .stadiumMetalTitle{display:block;width:clamp(390px,41vw,620px);height:auto;filter:drop-shadow(0 7px 3px rgba(0,0,0,.84));}
#boards .stadiumBrandWords small{display:block;margin-top:1px;color:#d4dce1;font-size:10px;font-weight:1000;font-style:italic;letter-spacing:.38em;text-shadow:0 2px 4px #000,0 0 9px rgba(78,168,255,.5);}

#boards .stadiumBoardsStrip{display:grid;grid-template-columns:1fr 1.2fr 1fr;min-height:58px;margin:0 0 14px;color:#edf3f6;background:linear-gradient(180deg,rgba(12,23,32,.96),rgba(1,6,10,.98));border:1px solid #526571;border-left-color:#2baeff;border-right-color:#2baeff;box-shadow:0 8px 20px rgba(0,0,0,.66),inset 0 0 22px rgba(77,150,196,.08);}
#boards .stadiumBoardsStrip>div{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:8px 14px;border-right:1px solid rgba(113,139,155,.32);}
#boards .stadiumBoardsStrip>div:last-child{border-right:0;}
#boards .stadiumBoardsStrip small{color:#79cfff;font-size:8px;font-weight:1000;letter-spacing:.14em;}
#boards .stadiumBoardsStrip b{overflow:hidden;max-width:100%;font-size:14px;font-style:italic;text-overflow:ellipsis;white-space:nowrap;}
#boards .stadiumBoardsStripCenter{flex-direction:row!important;gap:18px!important;}
#boards .stadiumBoardsStripCenter strong{color:#fff;font-size:20px;font-style:italic;letter-spacing:.08em;text-shadow:0 0 9px rgba(55,176,255,.65);}
#boards .stadiumBoardsStripCenter span{color:#efbd3a;font-size:11px;font-weight:900;letter-spacing:.08em;}

#boards .stadiumBoardsTopbar{margin:0 0 10px;padding:12px 16px;color:#edf4f8;background:linear-gradient(180deg,rgba(8,22,33,.96),rgba(2,9,15,.97));border:1px solid #537487;border-radius:0!important;}
#boards .stadiumBoardsTopbar h2{color:#fff;font-size:22px;font-style:italic;text-transform:uppercase;}
#boards .stadiumBoardsTopbar .tag{color:#93aabd;}
#boards .stadiumBoardsTopbar .btn{min-width:150px;background:linear-gradient(#35d74a,#128526)!important;border:1px solid #64ff72!important;border-radius:3px!important;color:#fff!important;box-shadow:0 0 12px rgba(52,255,84,.3)!important;}

#boards .activeLeagueBanner{margin:0 0 12px;padding:14px 17px;color:#eef5f8;background:linear-gradient(115deg,rgba(7,28,43,.98),rgba(3,10,16,.98));border:1px solid #2fa9ed;border-left:5px solid #efb82f;border-radius:0;box-shadow:0 10px 24px rgba(0,0,0,.45),inset 0 0 24px rgba(27,132,197,.08);}
#boards .activeLeagueBanner.hasLeague{background:linear-gradient(115deg,rgba(8,35,51,.98),rgba(3,10,16,.98));border:1px solid #2fa9ed;border-left:5px solid #39c6ff;}
#boards .leagueBannerLabel{color:#efbd3a;font-size:9px;letter-spacing:.15em;}
#boards .leagueBannerTitle{color:#fff;font-size:21px;font-style:italic;text-transform:uppercase;}
#boards .leagueBannerSub{color:#91a9b8;font-size:12px;}
#boards .activeLeagueBanner .btn{color:#fff!important;background:linear-gradient(#1e3850,#0b1c2b)!important;border:1px solid #56758c!important;border-radius:3px!important;}

#boards .stadiumBoardsCreatePanel,#boards .stadiumSavedBoardsPanel{margin:0 0 12px;padding:15px!important;color:#eaf2f6!important;background:linear-gradient(180deg,rgba(5,17,27,.97),rgba(1,7,12,.98))!important;border:1px solid #349fe3!important;border-radius:0!important;box-shadow:inset 0 1px rgba(255,255,255,.12),inset 0 0 30px rgba(28,126,190,.08),0 12px 28px rgba(0,0,0,.56)!important;}
#boards .stadiumEditorSectionTitle{display:flex;align-items:center;gap:11px;margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid #29495d;}
#boards .stadiumEditorSectionTitle>span{display:grid;place-items:center;width:34px;height:34px;color:#06101a;background:linear-gradient(145deg,#f7cc55,#a96e05);border:1px solid #ffe285;font-size:12px;font-weight:1000;clip-path:polygon(7px 0,100% 0,100% calc(100% - 7px),calc(100% - 7px) 100%,0 100%,0 7px);}
#boards .stadiumEditorSectionTitle h3{margin:0;color:#f3bd3b;font-size:15px;font-style:italic;letter-spacing:.08em;text-transform:uppercase;}
#boards .stadiumEditorSectionTitle small{color:#8fa6b5;font-size:10px;font-weight:700;}
#boards .stadiumBoardCreateForm{display:grid;grid-template-columns:1.3fr 1fr 1fr .7fr auto auto;gap:9px;align-items:end;}
#boards .stadiumBoardCreateForm>div{min-width:0;padding:8px;background:rgba(8,24,36,.75);border:1px solid #29495d;}
#boards label{color:#8fd3ff!important;font-size:9px!important;letter-spacing:.07em;text-transform:uppercase;}
#boards input,#boards select{width:100%;min-width:0;color:#f4f7f9!important;background:#06111c!important;border:1px solid #405d70!important;border-radius:4px!important;box-shadow:inset 0 2px 5px rgba(0,0,0,.5);}
#boards input:focus,#boards select:focus{outline:0;border-color:#42b8ff!important;box-shadow:0 0 0 2px rgba(52,174,255,.18),0 0 10px rgba(43,174,255,.24)!important;}
#boards .stadiumBoardCreateForm>.btn{min-height:40px;color:#fff!important;background:linear-gradient(#1e3850,#0b1c2b)!important;border:1px solid #56758c!important;border-radius:3px!important;}
#boards .stadiumBoardCreateForm>.stadiumCreateBoardButton{background:linear-gradient(#1178e8,#06459a)!important;border-color:#2caeff!important;box-shadow:0 0 12px rgba(31,145,255,.32)!important;}

#boards .boardCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;}
#boards .boardCard{position:relative;overflow:hidden;margin:0;padding:0!important;color:#edf4f7!important;background:linear-gradient(155deg,rgba(10,29,43,.98),rgba(2,8,13,.99))!important;border:1px solid #315d76!important;border-radius:2px!important;box-shadow:0 10px 24px rgba(0,0,0,.5),inset 0 1px rgba(255,255,255,.06)!important;transform:none!important;cursor:pointer;}
#boards .boardCard::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,rgba(255,255,255,.055),transparent 24%);}
#boards .boardCard:hover{border-color:#45bfff!important;box-shadow:0 12px 28px rgba(0,0,0,.62),0 0 15px rgba(27,166,248,.22)!important;transform:translateY(-2px)!important;}
#boards .boardCard.activeBoard{border:2px solid #efb82f!important;box-shadow:0 12px 28px rgba(0,0,0,.62),0 0 18px rgba(239,184,47,.28)!important;}
#boards .boardCard.activeBoard::before{content:"ACTIVE BOARD";position:absolute;right:11px;top:49px;z-index:2;padding:3px 7px;color:#07111a;background:#efb82f;border-radius:2px;font-size:8px;font-weight:1000;letter-spacing:.09em;}
#boards .boardCardHeader{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:9px;align-items:center;padding:12px;border-bottom:1px solid #29495d;background:linear-gradient(90deg,rgba(21,59,82,.55),rgba(3,11,17,.2));}
#boards .boardCardIcon{display:grid;place-items:center;width:36px;height:36px;color:#06111a;background:linear-gradient(145deg,#f4cb56,#9d6807);border:1px solid #ffe287;font-size:19px;font-weight:1000;}
#boards .boardCardEyebrow{color:#76ccff;font-size:7px;font-weight:1000;letter-spacing:.14em;}
#boards .boardCardTitle{margin:2px 0 0!important;padding:0!important;overflow:hidden;color:#fff!important;font-size:16px!important;font-style:italic;text-overflow:ellipsis;white-space:nowrap;}
#boards .boardCardHeader .pill{min-width:55px;padding:4px 7px;border:1px solid currentColor;border-radius:2px;font-size:8px;font-weight:1000;text-align:center;text-transform:uppercase;}
#boards .boardCardMatchup{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;gap:7px;padding:13px 12px 9px;text-align:center;}
#boards .boardCardMatchup strong{overflow:hidden;font-size:16px;font-style:italic;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 0 8px currentColor,0 2px 2px #000;}
#boards .boardCardLeftTeam{color:var(--card-left)!important;}
#boards .boardCardTopTeam{color:var(--card-top)!important;}
#boards .boardCardMatchup span{color:#fff;font-size:10px;font-weight:1000;}
#boards .boardCardStats{display:grid;grid-template-columns:repeat(4,1fr);margin:0 12px 10px;border:1px solid #29495d;background:#06111a;}
#boards .boardCardStats>div{padding:7px 4px;text-align:center;border-right:1px solid #29495d;}
#boards .boardCardStats>div:last-child{border-right:0;}
#boards .boardCardStats small{display:block;color:#70caff;font-size:7px;font-weight:1000;letter-spacing:.1em;}
#boards .boardCardStats b{display:block;margin-top:2px;color:#fff;font-size:13px;}
#boards .progressTrack{height:8px;margin:0 12px 5px;background:#02070b;border:1px solid #2f4858;border-radius:0;}
#boards .progressFill{height:100%;background:linear-gradient(90deg,#0875d2,#35c6ff);box-shadow:0 0 8px rgba(39,181,255,.55);}
#boards .boardCardProgressLabel{display:flex;justify-content:space-between;margin:0 12px 10px;color:#91a7b4;font-size:9px;font-weight:800;}
#boards .boardCardProgressLabel b{color:#55caff;}
#boards .boardCardMeta{display:grid;gap:3px;margin:0 12px 10px;color:#91a7b4!important;font-size:9px!important;line-height:1.35!important;}
#boards .boardStatusRow{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;margin:0 12px 10px;padding-top:9px;border-top:1px solid #29495d;}
#boards .boardStatusRow label{margin:0!important;}
#boards .statusSelect{height:32px;padding:5px 8px!important;font-size:11px!important;}
#boards .boardActions{position:relative;z-index:2;display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:6px;padding:10px 12px;background:rgba(0,0,0,.24);border-top:1px solid #29495d;}
#boards .boardActions .btn{min-height:34px!important;margin:0!important;padding:5px 7px!important;color:#fff!important;background:linear-gradient(#1e3850,#0b1c2b)!important;border:1px solid #56758c!important;border-radius:2px!important;font-size:10px!important;}
#boards .boardActions .boardOpenButton{background:linear-gradient(#1178e8,#06459a)!important;border-color:#2caeff!important;}
#boards .boardActions .boardDeleteButton{color:#ffaaa5!important;border-color:#8c3b3b!important;}
#boards #boardsList.empty{min-height:180px;display:grid;place-items:center;color:#8fa8b7;background:radial-gradient(circle at 50% 0,rgba(28,105,151,.15),transparent 55%);border:1px dashed #31566c;font-weight:800;}

@media(max-width:1300px){
  #boards .stadiumBoardCreateForm{grid-template-columns:repeat(4,minmax(0,1fr));}
  #boards .stadiumBoardCreateForm>.btn{grid-column:span 2;}
  #boards .boardCards{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:800px){
  body:has(#boards.active) main{padding-inline:10px!important;}
  #boards .stadiumBoardsHeader{padding-inline:4px;grid-template-columns:48px minmax(0,1fr) 48px;}
  #boards .stadiumHeaderButton{width:44px;height:44px;}
  #boards .stadiumBrandLockup>img:last-child{display:none;}
  #boards .stadiumBrandLockup>img{width:54px;height:54px;}
  #boards .stadiumMetalTitle{width:clamp(205px,55vw,360px);}
  #boards .stadiumBrandWords small{font-size:7px;}
  #boards .stadiumBoardsStrip{grid-template-columns:1fr;}
  #boards .stadiumBoardsStrip>div:not(.stadiumBoardsStripCenter){display:none;}
  #boards .stadiumBoardCreateForm,#boards .boardCards{grid-template-columns:1fr;}
  #boards .stadiumBoardCreateForm>.btn{grid-column:auto;}
  #boards .activeLeagueBanner{align-items:flex-start;flex-direction:column;}
}


/* Full-width saved-board rows */
#boards .boardCards{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px!important;
}
#boards .boardCard{
  display:grid;
  grid-template-columns:minmax(270px,1.35fr) minmax(220px,1fr) minmax(340px,1.55fr) minmax(210px,.9fr);
  grid-template-rows:auto auto auto;
  grid-template-areas:
    "header matchup stats actions"
    "header meta progress actions"
    "header status progressLabel actions";
  align-items:stretch;
  min-height:154px;
}
#boards .boardCard:hover{transform:translateX(2px)!important;}
#boards .boardCard.activeBoard::before{display:none;}
#boards .boardCardHeader{
  grid-area:header;
  border-right:1px solid #29495d;
  border-bottom:0;
}
#boards .boardCardMatchup{
  grid-area:matchup;
  align-self:center;
  padding:15px 12px 8px;
}
#boards .boardCardStats{
  grid-area:stats;
  align-self:center;
  grid-template-columns:repeat(5,minmax(0,1fr));
  margin:10px 12px 5px;
}
#boards .progressTrack{
  grid-area:progress;
  align-self:end;
  margin:5px 12px;
}
#boards .boardCardProgressLabel{
  grid-area:progressLabel;
  align-self:start;
  margin:0 12px 10px;
}
#boards .boardCardMeta{
  grid-area:meta;
  align-self:center;
  margin:2px 12px 5px;
}
#boards .boardStatusRow{
  grid-area:status;
  align-self:start;
  margin:2px 12px 10px;
  padding-top:7px;
}
#boards .boardActions{
  grid-area:actions;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-content:center;
  border-top:0;
  border-left:1px solid #29495d;
  padding:12px;
}
#boards .boardActions .btn{width:100%;}

@media(max-width:1180px){
  #boards .boardCard{
    grid-template-columns:minmax(260px,1.2fr) minmax(220px,1fr) minmax(300px,1.35fr);
    grid-template-areas:
      "header matchup stats"
      "header meta progress"
      "status progressLabel actions";
  }
  #boards .boardCardHeader{border-bottom:1px solid #29495d;}
  #boards .boardActions{border-top:1px solid #29495d;border-left:0;}
}
@media(max-width:800px){
  #boards .boardCard{
    display:block;
    min-height:0;
  }
  #boards .boardCardHeader{border-right:0;border-bottom:1px solid #29495d;}
  #boards .boardCardStats{grid-template-columns:repeat(5,minmax(0,1fr));}
  #boards .boardActions{grid-template-columns:repeat(2,minmax(0,1fr));border-left:0;border-top:1px solid #29495d;}
}


/* Keep every matchup readable, including teams whose brand color is very dark. */
#boards .boardCardMatchup strong{
  font-weight:1000;
  letter-spacing:.01em;
  -webkit-text-stroke:.35px rgba(255,255,255,.22);
  text-shadow:
    -1px -1px 0 rgba(0,0,0,.95),
     1px -1px 0 rgba(0,0,0,.95),
    -1px  1px 0 rgba(0,0,0,.95),
     1px  1px 0 rgba(0,0,0,.95),
     0 0 8px currentColor!important;
}
#boards .boardCardLeftTeam{
  color:var(--card-left)!important;
  color:color-mix(in srgb,var(--card-left) 52%,white 48%)!important;
}
#boards .boardCardTopTeam{
  color:var(--card-top)!important;
  color:color-mix(in srgb,var(--card-top) 52%,white 48%)!important;
}
