:root{color-scheme:dark;--text:#f4f7fb;--muted:#a8b4c8;--line:#ffffff24;--glass:#0b1526d9;--accent:#8dd6fa}*{box-sizing:border-box}body{margin:0;background:#070d19;color:var(--text);font:15px system-ui,'Segoe UI',sans-serif}.app{min-height:100vh;position:relative;isolation:isolate}.arena-backdrop{position:fixed;inset:0;z-index:-1;background:linear-gradient(180deg,#060b19c7,#07101bd9 65%,#060b19ed),url('/assets/arena_final.png') center top/cover no-repeat}header{height:86px;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(16px,4vw,60px);background:#060c1bc9;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px}.brand small{display:block;color:#94b7d2;letter-spacing:.2em;font-size:10px}.brand strong{font-size:18px;letter-spacing:.12em}.orb{width:44px;height:44px;border:1px solid #7fcfff;display:grid;place-items:center;border-radius:50%;font-weight:900;color:#b6e8ff;box-shadow:0 0 20px #4ba9ff40}.header-actions{display:flex;align-items:center;gap:16px}.portal-label,.section-label{font-size:11px;letter-spacing:.19em;font-weight:800;color:#9fd9fb}.top-nav{display:flex;justify-content:center;gap:10px;padding:15px;background:#050b19b3}.top-nav button,.tabs button{border:1px solid #ffffff24;background:#111c2dbb;color:#b8c6db;padding:12px 25px;border-radius:5px;letter-spacing:.1em;font-weight:800;cursor:pointer}.top-nav button.active,.tabs button.active{color:#fff;border-color:#81cbfa;box-shadow:inset 0 -2px #81cbfa}main{max-width:1250px;margin:auto;padding:28px 26px 80px;min-height:70vh}.panel{background:var(--glass);border:1px solid #ffffff24;border-radius:12px;padding:22px;margin-bottom:18px;backdrop-filter:blur(9px)}.glow{box-shadow:0 0 28px #2c9bff14}.heading{display:flex;justify-content:space-between;align-items:center;gap:15px}h1{font-size:clamp(28px,4vw,45px);letter-spacing:.07em;margin:10px 0 24px}h3{font-size:16px;margin:12px 0}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.game-card{width:100%;text-align:left;display:flex;align-items:center;gap:15px;padding:13px 12px;margin:12px 0;background:#16253bc9;cursor:pointer;color:inherit;border:1px solid #ffffff1d}.game-card:hover{border-color:#84ccff}.game-info{flex:1;min-width:0}.game-info strong{font-size:14px}.game-score{font-size:23px;font-weight:900}.game-logo{width:46px;flex-shrink:0}.team-logo{width:100%;max-height:65px;object-fit:contain}.meta,.muted{color:var(--muted)}.meta{font-size:12px;margin-top:7px}.standings{margin:14px 0 22px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th,td{padding:9px;border-bottom:1px solid #ffffff22;text-align:left;white-space:nowrap}th{color:#9bd8fc}.filters{display:flex;gap:10px;flex-wrap:wrap}.filters label{font-size:11px;color:#a9c9e2;display:grid;gap:5px}select,input{background:#111c2e;color:white;border:1px solid #ffffff55;border-radius:6px;padding:11px;min-width:150px}.tabs{display:flex;gap:10px;margin:16px 0 24px}.group h3{color:#b5dffd}.arena-landing{min-height:60vh;display:grid;place-items:center;text-align:center}.arena-welcome h1{font-size:clamp(35px,6vw,72px);text-shadow:0 0 25px #72bdff88}.arena-menu{display:flex;gap:15px;justify-content:center;margin-top:30px}.arena-menu button{padding:24px 45px;background:#0c203bbd;color:white;border:1px solid #7cbeff;cursor:pointer;font-size:18px;font-weight:900}.arena-menu span{display:block;color:#b2c5d9;font-size:11px;margin-top:8px;font-weight:400}.detail{text-align:center;max-width:820px;margin:30px auto}.detail>.team-logo{width:120px}.final-score{font-size:64px;font-weight:900}.quiet{background:transparent;color:#d9e9fb;border:1px solid #ffffff55;padding:10px 15px;border-radius:5px;cursor:pointer}.primary{display:inline-block;background:#1c6aa7;border:1px solid #80d4ff;color:white;padding:13px 24px;border-radius:5px;font-weight:900;cursor:pointer}.link{text-decoration:none}.login{max-width:480px;margin:10vh auto;padding:35px}.login form{display:grid;gap:12px}.login input{width:100%}.login p{color:var(--muted)}.error{color:#ffb6b6}.bottom-nav{display:none}[hidden]{display:none!important}
@media(max-width:700px){header{height:65px;padding:10px 16px}.brand strong{font-size:13px}.brand small{font-size:8px}.orb{width:35px;height:35px}.portal-label{display:none}.top-nav{display:none}main{padding:20px 13px 92px}.home-grid{grid-template-columns:1fr}.heading{align-items:flex-start;flex-direction:column}.filters{width:100%}.filters label{flex:1}.filters select{width:100%;min-width:0}.panel{padding:15px;margin-bottom:12px}.game-card{padding:11px 9px;gap:9px}.game-logo{width:36px}.game-info strong{font-size:13px}.game-score{font-size:19px}.game-info .meta{font-size:11px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:10;display:flex;justify-content:space-around;background:#07111ff5;border-top:1px solid #ffffff30;padding:8px 0 max(8px,env(safe-area-inset-bottom))}.bottom-nav button{border:0;background:none;color:#b6c7dd;font-size:21px;display:grid;gap:3px;place-items:center;min-width:75px}.bottom-nav button span{font-size:11px}.bottom-nav button.active{color:#82d4ff}.arena-menu{flex-direction:column}.arena-menu button{padding:17px 45px}.arena-landing{min-height:65vh}.arena-welcome h1{font-size:36px}.final-score{font-size:45px}.tabs button{padding:11px 15px;flex:1}.arena-backdrop{background:linear-gradient(180deg,#060b19d9,#07101bf2 65%,#060b19),url('/assets/arena_final.png') center top/auto 100vh no-repeat}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Phase 2: match the Windows application's neutral dark palette and vivid arena. */
:root{--text:#f4f7fb;--muted:#a4adb9;--line:rgba(255,255,255,.12);--glass:rgba(10,15,22,.82);--accent:#f7fbff}
body{background:#05080c;font-family:Inter,'Segoe UI',Arial,sans-serif}
.arena-backdrop{background:linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.08)),url('/assets/arena_final.png') center center/cover no-repeat}
header{background:rgba(5,8,12,.66)}.top-nav{background:rgba(5,8,12,.45)}
.panel{background:linear-gradient(145deg,rgba(13,19,27,.90),rgba(7,11,16,.82));border-radius:16px}
.glow{box-shadow:0 0 28px rgba(255,255,255,.045)}
.section-label,.portal-label,.brand small,th,.group h3{color:#cdd3dc}
.orb{border-color:#b4bbc6;color:#f7fbff;box-shadow:0 0 16px #ffffff20}
.top-nav button.active,.tabs button.active{border-color:#f7fbff;box-shadow:inset 0 -2px #f7fbff}
.top-nav button,.tabs button{background:rgba(13,19,27,.65)}
.game-card{background:rgba(15,20,27,.72)}.game-card:hover{border-color:#ffffff7a}
.primary{background:#252c35;border-color:#aeb9c7}.bottom-nav button.active{color:#fff}
.arena-landing{min-height:calc(100vh - 175px)}.arena-welcome h1{font-size:clamp(24px,3.4vw,44px);text-shadow:0 2px 18px #000a}
.attendance-counts{display:flex;flex-wrap:wrap;gap:9px;font-size:11px;margin-top:8px}
.yes{color:#7ee1a5}.no{color:#f4a5aa}.wait{color:#e2c781}
.attendance-panel{text-align:left;margin:24px 0}.att-group{margin:12px 0}.att-group h4{font-size:11px;letter-spacing:.1em;color:#b4bdc8;margin:0 0 7px}.att-name{display:inline-block;margin:3px 6px 3px 0;padding:7px 9px;border:1px solid #ffffff24;border-radius:8px;font-size:12px}
.video-wrap{position:relative;aspect-ratio:16/9;max-width:760px;margin:20px auto;background:#000}.video-wrap iframe{width:100%;height:100%;border:0}
@media(min-width:701px){main{animation:pageAppear .28s ease-out}@keyframes pageAppear{from{opacity:.72;transform:translateY(7px)}to{opacity:1;transform:none}}.panel,.game-card{transition:border-color .18s ease,background-color .18s ease}}
@media(max-width:700px){.arena-backdrop{background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.14)),url('/assets/arena_final.png') center center/cover no-repeat}.arena-landing{min-height:calc(100dvh - 180px)}.arena-welcome h1{font-size:clamp(24px,7vw,36px)}.attendance-counts{font-size:10px;gap:6px}}

/* Phase 3: standings-first desktop home, two next games, minimal mobile changes. */
.standings-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.standings-pair>.standings{margin:0 0 18px;min-width:0}
.standings-pair table{table-layout:fixed;width:100%}
.standings-pair col.standing-first{width:48%}
.standings-pair col.standing-stat{width:auto}
.standings-pair th,.standings-pair td{overflow:hidden;text-overflow:ellipsis;padding:9px 7px}
.standings-pair .numeric{text-align:right;font-variant-numeric:tabular-nums}
.next-games-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.next-games-grid .game-card{margin:8px 0;min-width:0}
.home-section-title{margin:6px 0 12px}
@media(max-width:700px){.standings-pair,.next-games-grid{grid-template-columns:1fr;gap:0}.standings-pair>.standings{margin-bottom:12px}.standings-pair table{table-layout:auto}.standings-pair th,.standings-pair td{overflow:visible}.next-games-grid .game-card{margin:8px 0}}

/* Phase 4: keep the established mobile presentation; refine desktop standings and cards. */
@media(min-width:701px){
.standings-pair col.standing-rank{width:36px}.standings-pair col.standing-team{width:auto}.standings-pair col.standing-stat{width:52px}
.standings-pair th,.standings-pair td{padding:8px 4px}.standings-pair td:not(.numeric){text-overflow:ellipsis}
.home-game-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:stretch}
.home-game-pair .game-card{margin:8px 0;height:calc(100% - 16px);min-width:0}
}
.standings-header{display:flex;align-items:center;gap:13px;margin-bottom:10px}.standings-header>.team-logo{width:56px;height:56px;object-fit:contain;flex-shrink:0}.standings-header h3{margin:0 0 8px}.sim-open{font-size:10px;padding:6px 9px}
.home-results-panel{background:linear-gradient(145deg,rgba(13,19,27,.68),rgba(7,11,16,.57))}.home-results-panel .game-card{background:rgba(15,20,27,.55)}
.sim-overlay{position:fixed;inset:0;z-index:100;background:#000b;display:flex;align-items:center;justify-content:center;padding:16px}.sim-window{max-width:660px;width:100%;max-height:85dvh;overflow:auto}.sim-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
body:has(.arena-landing){height:100dvh;overflow:hidden}body:has(.arena-landing) .app{height:100dvh;min-height:0;overflow:hidden}body:has(.arena-landing) main{height:calc(100dvh - 142px);min-height:0;padding-top:0;padding-bottom:0;overflow:hidden}body:has(.arena-landing) .arena-landing{height:100%;min-height:0}
@media(max-width:700px){.home-game-pair{display:block}.standings-header>.team-logo{width:38px;height:38px}body:has(.arena-landing) main{height:calc(100dvh - 65px);padding-bottom:65px}.sim-header h2{font-size:16px}}

/* Phase 5: deterministic two-column desktop game cards and simulator. */
@media (min-width: 800px){.home-game-pair{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}.home-game-pair>.game-card{width:100%!important;min-width:0!important;max-width:none!important;grid-column:auto!important}}
.sim-fixture-choices{display:grid;gap:8px;max-height:42vh;overflow-y:auto;margin:12px 0}.sim-fixture{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px;border:1px solid rgba(255,255,255,.14);border-radius:8px}.sim-fixture span{min-width:0}.sim-fixture small{display:block;opacity:.7}.sim-fixture select{min-width:140px;max-width:45%}.sim-window{max-height:90vh;overflow-y:auto}.sim-controls{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}.sim-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.sim-results>div{border:1px solid rgba(255,255,255,.18);padding:12px;border-radius:8px}.sim-results small{display:block;font-size:10px;opacity:.75}.sim-results strong{display:block;font-size:24px;margin-top:6px}@media(max-width:600px){.sim-fixture{flex-direction:column;align-items:stretch}.sim-fixture select{max-width:100%}}
