/* Squares Pro Stadium Lights — Winners / Results */
body:has(#results.active){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(#results.active) .app,body:has(#results.active) main{background:transparent!important;}
body:has(#results.active) main{width:100%!important;margin-left:0!important;padding:0 28px 38px!important;}
body:has(#results.active) #workspaceDock,body:has(#results.active) #saveStatusIndicator,body:has(#results.active) #undoLastActionBtn,body:has(#results.active) .footerNote{display:none!important;}

/* Stadium navigation drawer */
body:has(#results.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(#results.active) .sidebar{transform:translateX(0)!important;}
body:has(#results.active) .sidebar .brand,body:has(#results.active) .sidebar .navReorg,body:has(#results.active) .sidebar .modeSwitcher,body:has(#results.active) .sidebar .notificationBell,body:has(#results.active) .sidebar .smartAlertBell,body:has(#results.active) .sidebar .commandPaletteTrigger,body:has(#results.active) .sidebar .premiumHomeUpgrade{display:none!important;}
body:has(#results.active) .sidebar .premiumHomeNav{display:grid!important;gap:4px!important;margin:0!important;padding:0!important;}
body:has(#results.active) .sidebar .premiumHomeNav button{display:flex!important;align-items:center!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(#results.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(#results.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(#results.active) .sidebar .premiumHomeNav button.active{background:transparent!important;border-color:transparent!important;box-shadow:none!important;}
body:has(#results.active) .sidebar .premiumHomeNav button:nth-child(6){color:#fff!important;background:linear-gradient(90deg,#674807,#c68d0a)!important;border-color:#ffd55a!important;box-shadow:0 0 14px rgba(239,186,59,.34),inset 3px 0 #ffe894!important;}
body:has(#results.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(#results.active) .sidebar .premiumDashThemePanel>span{color:#efbe40!important;font-size:8px!important;font-weight:1000!important;letter-spacing:.14em!important;}
body:has(#results.active) .sidebar .premiumDashThemePanel>b{font-size:12px!important;}
body:has(#results.active) .sidebar .premiumDashThemePreview{display:block!important;width:100%!important;height:48px!important;border:1px solid #31546b!important;}
body:has(#results.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;}

#results{max-width:1720px;margin:0 auto;padding:0!important;--results-top-color:#168cff;--results-left-color:#ff3b30;}
#results>.pageBackRow{display:none!important;}
#results .stadiumResultsHeader{display:grid;grid-template-columns:58px minmax(0,1fr) 58px;align-items:center;min-height:104px;padding:2px 42px 0;}
#results .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);cursor:pointer;}
#results .stadiumMenuButton{gap:5px;padding:14px;}
#results .stadiumMenuButton span{display:block;width:25px;height:3px;background:#d8e3e8;border-radius:2px;box-shadow:0 0 5px rgba(159,221,255,.42);}
#results .stadiumSettingsButton{font-size:30px;line-height:1;}
#results .stadiumBrandLockup{display:flex;align-items:center;justify-content:center;gap:clamp(14px,2.2vw,34px);min-width:0;}
#results .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));}
#results .stadiumBrandWords{text-align:center;white-space:nowrap;}
#results .stadiumMetalTitle{display:block;width:clamp(390px,41vw,620px);height:auto;filter:drop-shadow(0 7px 3px rgba(0,0,0,.84));}
#results .stadiumBrandWords small{display:block;margin-top:1px;color:#f0c247;font-size:10px;font-weight:1000;font-style:italic;letter-spacing:.38em;text-shadow:0 2px 4px #000,0 0 9px rgba(239,186,59,.55);}

#results .stadiumResultsStrip{display:grid;grid-template-columns:1fr 2fr 1fr;min-height:60px;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:#efba3b;border-right-color:#efba3b;box-shadow:0 8px 20px rgba(0,0,0,.66);}
#results .stadiumResultsStrip>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);}
#results .stadiumResultsStrip>div:last-child{border-right:0;}
#results .stadiumResultsStrip small{color:#efbd3a;font-size:8px;font-weight:1000;letter-spacing:.14em;}
#results .stadiumResultsStrip>div>b{overflow:hidden;max-width:100%;color:#fff;font-size:14px;font-style:italic;text-overflow:ellipsis;white-space:nowrap;}
#results .stadiumResultsMatchup{display:grid!important;grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:12px!important;align-items:center!important;}
#results .stadiumResultsMatchup strong{overflow:hidden;font-size:19px;font-style:italic;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 0 8px currentColor;}
#results .stadiumResultsMatchup strong:first-child{color:var(--results-left-color);text-align:right;}
#results .stadiumResultsMatchup strong:last-child{color:var(--results-top-color);}
#results .stadiumResultsMatchup span{color:#fff;font-size:10px;font-weight:1000;text-align:center;}

#results .stadiumResultsTopbar{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;}
#results .stadiumResultsTopbar h2{color:#fff;font-size:22px;font-style:italic;text-transform:uppercase;}
#results .stadiumResultsTopbar .tag{color:#93aabd;}
#results .stadiumResultsActions{display:flex;gap:8px;justify-content:flex-end;}
#results .stadiumResultsActions .btn{min-width:135px;min-height:39px;border-radius:3px!important;color:#fff!important;font-size:11px!important;font-weight:1000!important;text-transform:uppercase;}
#results .stadiumPrintResultsButton{background:linear-gradient(#1178e8,#06459a)!important;border:1px solid #2caeff!important;box-shadow:0 0 12px rgba(31,145,255,.32)!important;}
#results .stadiumClearResultsButton{background:linear-gradient(#40181a,#190708)!important;border:1px solid #a64848!important;color:#ffc0ba!important;}
#results .stadiumClearResultsButton[data-clear-armed="1"]{background:linear-gradient(#d53030,#8a1010)!important;border-color:#ff7676!important;color:#fff!important;box-shadow:0 0 14px rgba(255,60,60,.4)!important;}

#results .stadiumResultsSummary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px;}
#results .stadiumResultsSummary>div{min-width:0;padding:12px 14px;background:linear-gradient(150deg,#0d293b,#061019);border:1px solid #31566d;border-top:3px solid #efb82f;box-shadow:inset 0 1px rgba(255,255,255,.06),0 8px 18px rgba(0,0,0,.38);}
#results .stadiumResultsSummary small{display:block;color:#76ceff;font-size:7px;font-weight:1000;letter-spacing:.13em;}
#results .stadiumResultsSummary b{display:block;overflow:hidden;margin:3px 0;color:#fff;font-size:22px;font-style:italic;text-overflow:ellipsis;white-space:nowrap;}
#results .stadiumResultsSummary span{display:block;overflow:hidden;color:#8da3b0;font-size:9px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;}
#results .stadiumResultsSummary>div:nth-child(3) b{color:#5dff9f;text-shadow:0 0 8px rgba(61,255,139,.35);}

#results .stadiumResultsPanel{margin:0;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;}
#results .stadiumResultsSectionTitle{display:flex;align-items:center;gap:11px;margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid #29495d;}
#results .stadiumResultsSectionTitle>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);}
#results .stadiumResultsSectionTitle h3{margin:0;color:#f3bd3b;font-size:15px;font-style:italic;letter-spacing:.08em;text-transform:uppercase;}
#results .stadiumResultsSectionTitle small{color:#8fa6b5;font-size:10px;font-weight:700;}

#results #resultsList.empty{min-height:280px;display:grid;place-items:center;padding:25px;color:#8fa8b7;border:1px dashed #31566c;background:radial-gradient(circle at 50% 0,rgba(28,105,151,.16),transparent 58%);}
#results .resultsEmptyState{text-align:center;}
#results .resultsEmptyTrophy{display:grid;place-items:center;width:70px;height:70px;margin:0 auto 13px;color:#f4c649;background:#091722;border:1px solid #9e7624;border-radius:50%;font-size:34px;box-shadow:0 0 24px rgba(239,186,59,.18);}
#results .resultsEmptyState h3{margin:0 0 5px;color:#fff;font-size:18px;font-style:italic;text-transform:uppercase;}
#results .resultsEmptyState p{margin:0 0 14px;color:#8fa8b7;font-size:11px;}
#results .resultsEmptyState .btn{color:#fff!important;background:linear-gradient(#1178e8,#06459a)!important;border:1px solid #2caeff!important;border-radius:3px!important;}

#results .resultsQuarterGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
#results .resultsQuarterCard{overflow:hidden;min-width:0;background:linear-gradient(155deg,rgba(10,29,43,.98),rgba(2,8,13,.99));border:1px solid #315d76;box-shadow:0 9px 22px rgba(0,0,0,.42),inset 0 1px rgba(255,255,255,.05);}
#results .resultsQuarterCard.isRecorded{border-color:#b18425;}
#results .resultsQuarterHeader{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 12px;background:linear-gradient(90deg,rgba(21,59,82,.62),rgba(3,11,17,.24));border-bottom:1px solid #29495d;}
#results .resultsQuarterBadge{display:grid;place-items:center;width:42px;height:42px;color:#06111a;background:linear-gradient(145deg,#f4cb56,#9d6807);border:1px solid #ffe287;font-size:14px;font-weight:1000;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);}
#results .resultsQuarterHeader small{display:block;color:#76ccff;font-size:7px;font-weight:1000;letter-spacing:.13em;}
#results .resultsQuarterHeader h3{margin:2px 0 0;color:#fff;font-size:16px;font-style:italic;text-transform:uppercase;}
#results .resultsStatus{padding:4px 8px;color:#8ca2af;background:#07131c;border:1px solid #354f60;border-radius:2px;font-size:8px;font-weight:1000;letter-spacing:.08em;}
#results .isRecorded .resultsStatus{color:#63ffa1;background:#062419;border-color:#218d56;}
#results .resultsPending{display:grid;place-items:center;min-height:138px;padding:18px;color:#718b9b;font-size:11px;font-weight:800;text-align:center;}
#results .resultsRecord{border-top:1px solid rgba(48,82,102,.65);}
#results .resultsRecord:first-of-type{border-top:0;}
#results .resultsScoreBand{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:9px;padding:10px 12px;background:#030a0f;border-bottom:1px solid #29495d;}
#results .resultsScoreTeam{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center;padding:8px 10px;background:linear-gradient(135deg,rgba(21,52,72,.86),rgba(3,11,17,.94));border-left:4px solid var(--results-left-color);}
#results .resultsScoreTeamTop{border-left-color:var(--results-top-color);}
#results .resultsScoreTeam small{overflow:hidden;color:#a9dfff;font-size:8px;font-weight:900;text-overflow:ellipsis;white-space:nowrap;}
#results .resultsScoreTeam b{color:#fff;font-size:25px;line-height:1;text-shadow:0 0 7px #fff;}
#results .resultsScoreVs{color:#efbd3a;font-size:9px;font-weight:1000;}
#results .resultsWinnerList{display:grid;gap:5px;padding:8px;}
#results .resultsWinnerRow{display:grid;grid-template-columns:31px minmax(92px,.75fr) minmax(0,1.35fr) auto;gap:8px;align-items:center;padding:7px 8px;background:linear-gradient(90deg,rgba(15,43,61,.88),rgba(4,13,20,.94));border:1px solid #31566d;border-left:3px solid #2caeff;}
#results .resultsWinnerRow.is-back{border-left-color:#d073ff;}
#results .resultsWinnerRow.is-extra{border-left-color:#ffcc3b;}
#results .resultsWinnerRow.is-corner{border-left-color:#ff775d;}
#results .resultsWinnerRow.is-side{border-left-color:#4ce09a;}
#results .resultsWinnerIcon{display:grid;place-items:center;width:29px;height:29px;color:#f8c945;background:#08131b;border:1px solid #a87a19;border-radius:50%;font-size:13px;}
#results .resultsWinnerType small,#results .resultsWinnerOwner small{display:block;color:#76ceff;font-size:7px;font-weight:1000;letter-spacing:.08em;}
#results .resultsWinnerType b,#results .resultsWinnerOwner b{display:block;overflow:hidden;color:#fff;font-size:11px;text-overflow:ellipsis;white-space:nowrap;}
#results .resultsWinnerOwner b.isBlank{color:#788e9b;font-style:italic;}
#results .resultsWinnerAmount{min-width:58px;padding:5px 7px;color:#5dff9f;background:#062419;border:1px solid #218d56;border-radius:2px;font-size:10px;font-weight:1000;text-align:center;}
#results .resultsRecordedAt{padding:0 10px 8px;color:#6f8795;font-size:8px;text-align:right;}

@media(max-width:950px){
  #results .stadiumResultsSummary{grid-template-columns:repeat(2,1fr);}
  #results .resultsQuarterGrid{grid-template-columns:1fr;}
}
@media(max-width:700px){
  body:has(#results.active) main{padding-inline:10px!important;}
  #results .stadiumResultsHeader{padding-inline:4px;grid-template-columns:48px minmax(0,1fr) 48px;}
  #results .stadiumHeaderButton{width:44px;height:44px;}
  #results .stadiumBrandLockup>img:last-child{display:none;}
  #results .stadiumBrandLockup>img{width:54px;height:54px;}
  #results .stadiumMetalTitle{width:clamp(205px,55vw,360px);}
  #results .stadiumBrandWords small{font-size:7px;letter-spacing:.2em;}
  #results .stadiumResultsStrip{grid-template-columns:1fr;}
  #results .stadiumResultsStrip>div:not(.stadiumResultsMatchup){display:none;}
  #results .stadiumResultsTopbar{display:grid!important;gap:10px;}
  #results .stadiumResultsActions{justify-content:stretch;}
  #results .stadiumResultsActions .btn{flex:1;min-width:0;}
  #results .stadiumResultsSummary{grid-template-columns:1fr 1fr;}
  #results .resultsWinnerRow{grid-template-columns:31px minmax(80px,.85fr) minmax(0,1fr);}
  #results .resultsWinnerAmount{grid-column:2/4;width:100%;}
}
