:root{--b2-font:Questrial,Arial,sans-serif}
@font-face{font-family:Questrial;src:url('/assets/fonts/Questrial-Regular.ttf') format('truetype');font-display:swap}*{box-sizing:border-box}body{margin:0;background:#071119;color:#f2f6fa;font-family:Questrial,Arial,sans-serif;font-size:18px;min-height:100vh}button,select{font:inherit;min-height:44px;border-radius:8px;border:1px solid #4a6675;background:#132531;color:#f2f6fa;padding:8px 12px}button,a,select,input{touch-action:manipulation}button{cursor:pointer}a{color:#65dfff}button:hover,button:focus-visible,select:focus-visible{outline:2px solid #50dcff;outline-offset:2px}header{display:flex;align-items:center;gap:24px;padding:24px 3vw;border-bottom:1px solid #264655}header img{width:132px;height:72px;object-fit:contain}h1,h2,p{margin:0}h1{font-size:clamp(26px,3vw,48px);line-height:1.1;margin:6px 0;overflow-wrap:anywhere}h2{font-size:clamp(22px,2.3vw,34px)}.heading{flex:1;min-width:0}.eyebrow{font-size:12px;letter-spacing:.16em;color:#6edff5;font-weight:bold}#night-detail{color:#b7cbd6;margin-top:8px}.connection{display:grid;gap:8px;max-width:250px;text-align:right}#connection-label{color:#8df0b7}small{font-size:13px;color:#b6c8d4}nav{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:14px 3vw;background:#0c1922}label{display:grid;gap:4px;font-size:12px;color:#b7cbd6}label:first-child{flex:1;min-width:180px;max-width:480px}select{max-width:100%;min-width:0;font-size:16px}.check{display:flex;align-items:center;min-height:44px;font-size:15px;gap:8px}.check input{width:20px;height:20px}#notice{padding:12px 3vw;background:#49330d;color:#ffe6ad}#gate{margin:8vh auto;padding:24px;max-width:680px;display:grid;gap:24px}#gate p{line-height:1.6}#gate h2{font-size:40px}#gate button{background:#087695}main{padding:24px 3vw;display:grid;grid-template-columns:1.15fr 1fr;gap:24px;align-items:start}.panel{border:1px solid #2c4554;border-radius:16px;background:linear-gradient(145deg,#10232e,#0b1720);overflow:hidden}.standings{border-top:4px solid #45d6f2}.section-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 24px}.section-head .eyebrow{margin-bottom:7px}.section-head>span{font-size:14px;color:#bdd1dd}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}th{font-size:13px;color:#afc7d5;text-align:right;padding:14px 20px;background:#132d3b}th:nth-child(2),td:nth-child(2){text-align:left}th:first-child,td:first-child{text-align:center}td{padding:17px 20px;border-bottom:1px solid #223a48;text-align:right;font-size:clamp(22px,2.2vw,34px)}td:nth-child(2){font-weight:500;overflow-wrap:anywhere}td:last-child{color:#64e0fc;font-weight:bold}tbody tr:first-child{background:#12323e}.panel-foot{display:flex;justify-content:space-between;gap:12px;color:#afc6d1;font-size:13px;padding:16px 22px;line-height:1.5}.fixtures{display:grid;gap:24px}.playing{border-top:4px solid #95e9bc}.playing .eyebrow{color:#95e9bc}.upcoming{border-top:4px solid #fa9aa7}.upcoming .eyebrow{color:#fa9aa7}.match{padding:18px 24px;border-top:1px solid #29414d}.match p{font-size:clamp(22px,2.2vw,32px);line-height:1.3;overflow-wrap:anywhere}.match small{display:block;margin-top:8px;font-size:15px}.vs{font-size:.65em;color:#9fb8c5;margin:0 .5em}.empty{padding:22px 24px;color:#bed1dd;line-height:1.6}footer{margin:0 3vw 20px;padding:18px 0;border-top:1px solid #2c4554;display:flex;justify-content:space-between;align-items:center;gap:24px;color:#b5cbd7;font-size:14px}footer>div{display:grid;gap:8px}#latest{font-size:22px;color:#f4f8fa}#show-tools{position:fixed;right:16px;bottom:12px;z-index:5;background:#112835}body[data-view=standings] main,body[data-view=matches] main{grid-template-columns:1fr}body[data-view=standings] .fixtures,body[data-view=matches] .standings{display:none}body[data-view=matches] .fixtures{grid-template-columns:1fr 1fr}body[data-size=large] td,body[data-size=large] .match p{font-size:clamp(28px,3.2vw,48px)}body.presenting nav{display:none}body.presenting header{padding-top:14px;padding-bottom:14px}body.presenting footer{padding-right:170px}body.presenting #show-tools{display:block}[hidden]{display:none!important}#modal-root .backdrop{position:fixed;inset:0;background:#000b;z-index:20;display:grid;place-items:center;padding:16px}#modal-root .modal{background:#132531;border:1px solid #547380;border-radius:14px;padding:24px;max-width:600px;max-height:90vh;overflow:auto;width:100%}#modal-root label{margin:14px 0;font-size:16px}#modal-root input{width:100%;padding:12px;font:inherit}#modal-root button{margin:6px}#modal-root p{margin:10px 0;line-height:1.5}@media(max-width:900px){header{gap:12px;padding:14px 18px}header img{width:84px;height:52px}.connection{max-width:150px;font-size:14px}main{gap:14px;padding:14px}.fixtures{gap:14px}.section-head{padding:16px}.match{padding:14px 16px}td{padding:14px 12px}th{padding:12px 10px}.panel-foot{padding:12px;font-size:12px}}@media(max-width:650px){main,body[data-view=matches] .fixtures{grid-template-columns:1fr}header{flex-wrap:wrap}.connection{text-align:left;max-width:none;width:100%;display:flex;justify-content:space-between}footer{display:block}footer>span{display:block;margin-top:12px}body.presenting footer{padding-bottom:50px;padding-right:0}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s}} 

@media(max-height:600px) and (min-width:651px){body.presenting header{padding:6px 14px;gap:12px}body.presenting header img{height:42px;width:80px}body.presenting h1{font-size:24px}body.presenting #night-detail,body.presenting header .eyebrow{display:none}body.presenting main{padding:10px 14px;gap:12px}body.presenting .fixtures{gap:10px}body.presenting .section-head{padding:8px 12px}body.presenting .section-head .eyebrow{display:none}body.presenting h2{font-size:20px}body.presenting .match{padding:8px 12px}body.presenting .match p{font-size:22px}body.presenting .match small{font-size:12px;margin-top:4px}body.presenting th{padding:8px;font-size:12px}body.presenting td{padding:8px 12px;font-size:24px}body.presenting .panel-foot{padding:6px 12px;font-size:11px}body.presenting footer{margin-bottom:4px;padding-top:6px;padding-bottom:6px}body.presenting #latest{font-size:18px}body.presenting footer .eyebrow{display:none}body.presenting #footer-note{display:none}}

/* App game-family tokens, kept identical to layout-tokens.css. */
.family-x01{--game:#55c9f3}.family-cricket{--game:#62d99b}.family-practice{--game:#ffb84d}.family-party{--game:#be82ff}.family-unknown{--game:#afc7d5}
.game-badge{display:inline-block;color:var(--game)!important;border:1px solid var(--game);border-radius:7px;padding:7px 12px;font-size:18px!important;text-transform:uppercase;letter-spacing:.04em;font-weight:bold;background:#071119}
.match{border-left:4px solid var(--game,#afc7d5)}.match-labels{display:flex;align-items:center;gap:12px;margin-bottom:10px}.stage-badge{font-size:15px;letter-spacing:.09em;color:#d7e5eb}.playing,.upcoming{border-top-color:#516c7b}.playing .eyebrow,.upcoming .eyebrow{color:#c5d9e4}
body[data-view=draw] main{grid-template-columns:1fr}body[data-view=draw] .standings,body[data-view=draw] .fixtures{display:none}
body[data-stats=scoring]:not([data-view=matches]):not([data-view=draw]) main{grid-template-columns:1fr}body[data-stats=scoring][data-view=overview] .fixtures{grid-template-columns:1fr 1fr}
.group-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px;padding:0 24px 24px}.group-table{border:1px solid #355260;border-radius:10px;overflow:auto}.group-table h3{padding:18px 20px;margin:0;background:#193543;font-size:26px}.group-table td{font-size:clamp(20px,2.3vw,32px)}
.bracket{display:flex;gap:36px;overflow-x:auto;padding:12px 28px 28px;min-height:380px}.bracket-round{flex:1;min-width:250px;display:flex;flex-direction:column}.bracket-round h3{margin:0 0 20px;font-size:24px;color:#c5d9e4}.round-matches{display:flex;flex:1;flex-direction:column;justify-content:space-around;gap:32px}.bracket-match{position:relative;border:1px solid #4b6b7d;border-radius:9px;background:#0c1e2a}.bracket-round:not(:last-child) .bracket-match:after{content:'';position:absolute;right:-37px;top:50%;width:36px;border-top:2px solid #4b6b7d}.bracket-player{display:flex;justify-content:space-between;gap:12px;padding:14px 18px;font-size:26px;border-bottom:1px solid #284353}.bracket-player.winner{color:#83efb1;background:#17392c}.bracket-player b{font-size:12px;align-self:center}.bracket-match small{display:block;padding:8px 18px}.fixture-table{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
@media(max-width:650px){body[data-stats=scoring][data-view=overview] .fixtures{grid-template-columns:1fr}.group-grid{padding:0 12px 12px;gap:12px;grid-template-columns:1fr}.game-badge{font-size:16px!important}.standings table{min-width:380px}body[data-stats=scoring] .standings table{min-width:720px}}

body[data-view=stats] main{grid-template-columns:1fr}body[data-view=stats] .fixtures{display:none}body[data-view=stats] .standings table{min-width:720px}
.group-grid{grid-template-columns:1fr}.group-table{border-top:3px solid var(--game,#55c9f3)}.matrix-scroll{overflow-x:auto;padding-bottom:4px}.round-robin-matrix{min-width:650px}.round-robin-matrix th,.round-robin-matrix td{border:1px solid #3c5564;text-align:center;min-width:55px;padding:18px 12px;font-size:clamp(18px,2vw,30px)}.round-robin-matrix thead th{font-size:18px}.round-robin-matrix td:nth-child(2){min-width:180px;text-align:left}.round-robin-matrix .self-cell{background:#03090e}.round-robin-matrix .cell-win{color:#83efb1;background:#14382b}.round-robin-matrix .cell-loss{color:#f6bac2;background:#341f29}.round-robin-matrix .cell-unplayed{color:#90a3af}.round-robin-matrix .wins-total{font-weight:bold;color:var(--game,#55c9f3);background:#16303e}.round-robin-matrix tbody tr:first-child{background:transparent}

/* Consolidated overview: scoring leaders, results, draw and fixtures. */
#overview-highlights{display:none;grid-column:1/-1;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}body[data-view=overview] #overview-highlights{display:grid}.highlight{padding:16px 20px;border:1px solid #355364;border-top:3px solid #55c9f3;border-radius:12px;background:#10232e;min-width:0}.highlight>span{display:block;color:#b8cfdd;font-size:16px}.highlight strong{display:block;font-size:36px;line-height:1.15;margin:8px 0;color:#79ddff}.highlight strong small{font-size:16px}.highlight p{font-size:17px;line-height:1.3;overflow-wrap:anywhere}body[data-view=overview] #draw-panel{grid-column:1/-1}body[data-view=overview] .standings td{padding:12px;font-size:26px}body[data-view=overview] .standings th{padding:12px}body[data-view=overview] .section-head{padding:16px 20px}body[data-view=overview] .match{padding:12px 20px}body[data-view=overview] .group-grid{grid-template-columns:repeat(auto-fit,minmax(550px,1fr))}body[data-view=overview] .round-robin-matrix th,body[data-view=overview] .round-robin-matrix td{padding:12px 8px;font-size:22px}body[data-view=overview] .round-robin-matrix{min-width:550px}body[data-view=overview] .round-robin-matrix td:nth-child(2){min-width:140px}
@media(min-width:1600px){body[data-view=overview] main{grid-template-columns:minmax(310px,.85fr) minmax(600px,1.6fr) minmax(310px,.85fr);gap:18px}body[data-view=overview] .standings{grid-column:1;grid-row:2}body[data-view=overview] #draw-panel{grid-column:2;grid-row:2}body[data-view=overview] .fixtures{grid-column:3;grid-row:2}body[data-view=overview] .group-grid{grid-template-columns:1fr;gap:16px}body[data-view=overview] h2{font-size:28px}body[data-view=overview] .match p{font-size:28px}}
@media(max-width:750px){#overview-highlights{grid-template-columns:repeat(2,minmax(0,1fr))}.highlight:last-child{grid-column:1/-1}body[data-view=overview] .group-grid{grid-template-columns:1fr}body[data-view=overview] .standings td{font-size:22px}}
body[data-view=overview][data-size=large] .standings td{font-size:32px}body[data-view=overview][data-size=large] .highlight strong{font-size:44px}

/* Revision 5: three information-dense views. Preserve scroll as a fallback. */
#overview-highlights{display:none!important}
main,body[data-view=overview] main{grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:12px;padding:12px 2vw}
body[data-view=overview] .standings{grid-column:1;grid-row:1}
body[data-view=overview] .fixtures{grid-column:2;grid-row:1 / span 2}
body[data-view=overview] #draw-panel{grid-column:1;grid-row:2}
body[data-view=matches] main{grid-template-columns:minmax(0,2fr) minmax(250px,1fr)}
body[data-view=matches] #draw-panel{grid-column:1;grid-row:1}
body[data-view=matches] .fixtures{grid-column:2;grid-row:1;grid-template-columns:1fr}
body[data-view=standings] main{grid-template-columns:1fr}
header{padding:10px 2vw;gap:16px}header img{height:48px;width:100px}h1{font-size:clamp(24px,2.4vw,38px)}
nav{padding:8px 2vw;gap:8px}.section-head,body[data-view=overview] .section-head{padding:10px 14px}h2{font-size:24px}
.fixtures{gap:12px}.match,body[data-view=overview] .match{padding:10px 14px}.match p{font-size:clamp(20px,1.8vw,28px)}.match-labels{margin-bottom:6px;gap:8px}.game-badge{padding:4px 7px;font-size:14px!important}.stage-badge{font-size:12px}
.standings table{min-width:620px}.standings td,body[data-view=overview] .standings td{font-size:clamp(18px,1.65vw,28px);padding:8px 7px}.standings th,body[data-view=overview] .standings th{padding:8px 7px;font-size:12px;white-space:nowrap}.standings td:nth-child(2){min-width:100px}
.panel-foot{padding:7px 12px;font-size:11px}.section-head .eyebrow{margin-bottom:3px}.group-grid,body[data-view=overview] .group-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,390px),1fr));gap:10px;padding:0 10px 10px}.group-table h3{padding:8px 10px;font-size:20px}
.round-robin-matrix,body[data-view=overview] .round-robin-matrix{min-width:380px}.round-robin-matrix th,.round-robin-matrix td,body[data-view=overview] .round-robin-matrix th,body[data-view=overview] .round-robin-matrix td{padding:7px 5px;font-size:16px;min-width:28px}.round-robin-matrix td:nth-child(2),body[data-view=overview] .round-robin-matrix td:nth-child(2){min-width:75px}.result-cell{white-space:nowrap}.group-table .panel-foot{display:none}
.bracket{padding:10px;gap:20px;min-height:220px}.bracket-round{min-width:160px}.bracket-player{font-size:20px;padding:9px}.bracket-round:not(:last-child) .bracket-match:after{right:-21px;width:20px}.round-matches{gap:14px}.bracket-round h3{font-size:19px;margin-bottom:10px}
footer{margin:0 2vw 8px;padding:8px 0;font-size:12px}footer>div{display:flex;align-items:center;gap:12px}#latest{font-size:18px}
body[data-size=large] .standings td,body[data-view=overview][data-size=large] .standings td{font-size:clamp(22px,2vw,34px)}
@media(max-width:900px){main,body[data-view=overview] main,body[data-view=matches] main{grid-template-columns:1fr}body[data-view=overview] .standings,body[data-view=overview] .fixtures,body[data-view=overview] #draw-panel,body[data-view=matches] .fixtures,body[data-view=matches] #draw-panel{grid-column:1;grid-row:auto}body[data-view=overview] .fixtures,body[data-view=matches] .fixtures{grid-template-columns:1fr 1fr}}
@media(max-width:600px){body[data-view=overview] .fixtures,body[data-view=matches] .fixtures{grid-template-columns:1fr}footer>div{display:grid}.connection{font-size:12px}}

/* Keep every fullscreen section reachable on short landscape displays. */
@media(min-width:901px){
 body.presenting{height:100vh;min-height:0;display:flex;flex-direction:column;overflow:hidden}
 body.presenting header,body.presenting #notice,body.presenting footer{flex:0 0 auto}
 body.presenting main:not([hidden]){flex:1;min-height:0;overflow:hidden;align-items:stretch;grid-template-rows:minmax(0,1fr) minmax(0,1fr)}
 body.presenting[data-view=overview] main:not([hidden]){grid-template-rows:auto minmax(0,1fr)}
 body.presenting[data-view=standings] main:not([hidden]),body.presenting[data-view=matches] main:not([hidden]){grid-template-rows:minmax(0,1fr)}
 body.presenting[data-view=overview] .standings,body.presenting[data-view=standings] .standings{display:flex;flex-direction:column;min-height:0}
 body.presenting .standings .table-wrap{flex:1;min-height:0;overflow:auto}
 body.presenting .standings .table-wrap{overflow-anchor:none}
 body.presenting #draw-panel,body.presenting .fixtures{min-height:0;overflow:auto}
 body.presenting .fixtures{align-content:start}
}
@media(min-width:901px) and (max-height:800px){
 body.presenting #draw-panel .section-head{padding:6px 10px}
 body.presenting #draw-panel .panel-foot{padding:4px 10px}
 body.presenting .bracket{min-height:0;padding:4px 8px;gap:16px}
 body.presenting .bracket-round h3{font-size:16px;margin-bottom:5px}
 body.presenting .round-matches{gap:6px}
 body.presenting .bracket-player{font-size:18px;padding:5px 7px}
 body.presenting .bracket-match small{padding:4px 8px}
 body.presenting .bracket-round:not(:last-child) .bracket-match:after{right:-17px;width:16px}
}
