/* Generated; edit scripts/ladder-screen-browser/src/screen.css. */
:root{color-scheme:dark;--bg:#101f1c;--panel:#1a2d28;--line:#31483e;--ink:#f3f4e8;--muted:#a2b5aa;--gold:#e9ca84;--green:#88cfaa}*{box-sizing:border-box}body{margin:0;background:#101f1c;background:var(--bg);color:#f3f4e8;color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Microsoft YaHei",sans-serif}button,input{font:inherit}button{cursor:pointer;border:1px solid #31483e;border:1px solid var(--line);border-radius:9px;background:#273e34;color:#f3f4e8;color:var(--ink);padding:10px 17px}button:hover,button:focus-visible{border-color:#e9ca84;border-color:var(--gold)}button:disabled{opacity:.55;cursor:wait}[hidden]{display:none!important}.brand{font-size:34px;font-weight:800;letter-spacing:2px;color:#e9ca84;color:var(--gold);white-space:nowrap}.brand span{display:block;font-size:10px;letter-spacing:3px;margin-top:8px;color:#a2b5aa;color:var(--muted)}header{display:flex;align-items:center;gap:36px;padding:24px 30px;border-bottom:1px solid #31483e;border-bottom:1px solid var(--line)}h1,h2,h3,p{margin:0}header h1{font-size:28px}#season-name{color:#a2b5aa;color:var(--muted);margin-top:8px;font-size:16px}.club{flex:1}.top-actions{display:flex;align-items:center;gap:12px;font-size:13px}#clock{font-size:38px;font-variant-numeric:tabular-nums;margin-left:16px;font-weight:700}#connection{color:#88cfaa;color:var(--green)}.screen-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:16px;padding:20px 24px 0}.panel{background:#1a2d28;background:var(--panel);border:1px solid #31483e;border:1px solid var(--line);border-radius:16px;padding:24px;min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:22px}h2{font-size:23px;line-height:1.4}.eyebrow{display:block;font-size:10px;letter-spacing:2px;color:#a2b5aa;color:var(--muted);margin-bottom:8px}.gold{color:#e9ca84;color:var(--gold);font-size:14px}.subtle{color:#a2b5aa;color:var(--muted);font-size:13px;line-height:1.7}nav{display:flex;gap:6px;margin-bottom:16px}nav button{flex:1;padding:10px 2px;font-size:15px}nav .active{background:#e9ca84;background:var(--gold);border-color:#e9ca84;border-color:var(--gold);color:#213c2e;font-weight:700}.rank-label{display:flex;justify-content:space-between;font-size:12px;color:#a2b5aa;color:var(--muted);padding-bottom:10px;border-bottom:1px solid #31483e;border-bottom:1px solid var(--line)}ol{list-style:none;padding:0;margin:0}li{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #31483e;border-bottom:1px solid var(--line);font-size:18px}li .rank{width:28px;color:#e9ca84;color:var(--gold);font-size:21px;font-weight:700}li .name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}li .value{text-align:right;font-size:15px}li .value small{display:block;color:#a2b5aa;color:var(--muted);margin-top:4px}.board-note{font-size:12px;line-height:1.7;color:#a2b5aa;color:var(--muted);margin-top:16px}.empty{color:#a2b5aa;color:var(--muted);line-height:1.9;text-align:center;padding:40px 12px;font-size:17px}.empty small{font-size:13px}.join{text-align:center}.join .section-heading{text-align:left}.pill{font-size:13px;background:#385041;padding:5px 10px;border-radius:50px;white-space:nowrap}#qr-area{margin:0 auto 18px;max-width:240px;aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:12px;padding:12px}#qr{width:100%;height:auto;display:block}#qr-missing{color:#587165;font-size:14px}.join h3{font-size:22px;margin-bottom:10px}#code-help{margin-top:8px}#pool-rules{white-space:pre-wrap;overflow-wrap:anywhere;color:#a2b5aa;color:var(--muted);font-size:14px;line-height:1.6;max-height:100px;overflow:auto;margin:16px 0}.waiting-summary{border-top:1px solid #31483e;border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:center;align-items:baseline;gap:12px;color:#a2b5aa;color:var(--muted)}.waiting-summary strong{color:#e9ca84;color:var(--gold);font-size:32px}#waiting-list{font-size:13px;color:#a2b5aa;color:var(--muted);margin-top:10px;line-height:1.7}.rewards section{padding:18px 0;border-top:1px solid #31483e;border-top:1px solid var(--line)}.rewards h3{font-size:17px;color:#e9ca84;color:var(--gold);margin-bottom:12px}.rewards p{font-size:18px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-height:170px;overflow:auto}.matches{grid-column:1/-1}.matches .section-heading{margin-bottom:14px}#match-count{font-size:14px;color:#a2b5aa;color:var(--muted);font-weight:400}#match-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.game{background:#13261f;padding:16px;border-radius:10px}.game-label{font-size:13px;color:#88cfaa;color:var(--green);margin-bottom:14px}.game-score{display:flex;align-items:center;gap:14px;font-size:19px}.game-score span{flex:1;overflow:hidden;text-overflow:ellipsis}.game-score span:last-child{text-align:right}.game-score strong{color:#e9ca84;color:var(--gold);font-size:25px;white-space:nowrap}footer{display:flex;justify-content:space-between;padding:16px 26px;color:#a2b5aa;color:var(--muted);font-size:12px}.notice{padding:12px 24px;background:#795828;color:#fff2cc;font-size:15px}.connect{min-height:100vh;display:grid;place-items:center;padding:30px;background:radial-gradient(ellipse at 80% 10%,#315944,transparent 60%)}.connect-card{width:min(720px,100%);padding:48px;border:1px solid #31483e;border:1px solid var(--line);border-radius:24px;background:#162b23}.connect .eyebrow{margin:44px 0 16px}.connect h1{font-size:48px;line-height:1.2;margin-bottom:24px}.connect p{color:#a2b5aa;color:var(--muted);line-height:1.8;font-size:17px}.connect label{display:block;font-size:14px;margin:32px 0 10px}.connect-row{display:flex;gap:10px}input{width:100%;min-width:0;flex:1;background:#0d2018;border:1px solid #52695b;border-radius:10px;color:white;padding:16px;font-size:20px;letter-spacing:2px;text-transform:uppercase}.connect-row button{background:#e9ca84;background:var(--gold);color:#163423;font-weight:700;white-space:nowrap}.connect-note{border-top:1px solid #31483e;border-top:1px solid var(--line);margin-top:30px;padding-top:20px;color:#a2b5aa;color:var(--muted);font-size:13px;line-height:1.9}#connect-error{color:#ffc493;font-size:14px;margin-top:12px}@media(min-width:1600px){header{padding:30px 40px}.screen-grid{gap:22px;padding:26px 32px 0}.panel{padding:30px}h2{font-size:30px}li{font-size:23px;padding:15px 0}.rewards p{font-size:23px}#qr-area{max-width:290px}.game-score{font-size:25px}}@media(max-width:850px){header{flex-wrap:wrap;gap:18px;padding:20px}.top-actions{width:100%;justify-content:space-between}#clock{font-size:28px}.screen-grid{grid-template-columns:1fr;padding:14px;gap:14px}.matches{grid-column:1}#match-list{grid-template-columns:1fr}.connect-card{padding:26px}.connect h1{font-size:36px}.connect-row{flex-direction:column}.board{order:2}.join{order:1}.rewards{order:3}.matches{order:4}footer{flex-wrap:wrap;gap:10px}.brand{font-size:27px}}

.matches .empty{padding:16px 12px}
.login-qr{margin:18px auto;max-width:260px}.login-qr img{width:100%;border-radius:12px;background:white;padding:10px}#login-version{padding:10px;background:#233d31;color:#f3f4e8;color:var(--ink);border:1px solid #31483e;border:1px solid var(--line);border-radius:8px}#login-pools{display:grid;gap:12px;margin:24px 0}#legacy-login{margin-top:28px;color:#a2b5aa;color:var(--muted)}#legacy-login summary{cursor:pointer}#login-status{font-size:15px;margin:16px 0}
/* 电视横屏固定分区，各区域数据超出时在区域内滚动。 */
@media(min-width:1100px) and (min-height:650px){#display{height:100vh;display:flex;flex-direction:column}header{padding:18px 26px;flex-shrink:0}.screen-grid{flex:1;min-height:0;grid-template-rows:minmax(0,1fr) 190px;padding:18px 24px 0;gap:16px}.panel{min-height:0;overflow:auto;padding:20px}.section-heading{margin-bottom:14px}#qr-area{max-width:min(240px,23vh);margin-bottom:12px}.matches{overflow:auto}.game{padding:12px}.game-label{margin-bottom:8px}footer{flex-shrink:0;padding:12px 24px}h2{font-size:24px}li{font-size:20px;padding:10px 0}.rewards p{font-size:20px}}

.live-stats{display:flex;gap:24px;flex-shrink:0}.live-stats>div{display:grid;grid-template-columns:auto auto;align-items:baseline;column-gap:8px}.live-stats span{grid-column:1/-1;color:#a2b5aa;color:var(--muted);font-size:14px;margin-bottom:4px}.live-stats strong{font-size:38px;line-height:1.1;color:#e9ca84;color:var(--gold);font-variant-numeric:tabular-nums}.live-stats small{color:#a2b5aa;color:var(--muted);font-size:14px}@media(max-width:1400px){header{gap:18px;flex-wrap:wrap}.top-actions{margin-left:auto}.live-stats strong{font-size:32px}}@media(max-width:850px){.live-stats{width:100%;justify-content:space-around}.top-actions{flex-wrap:wrap}}

/* 大屏整屏展示，无页面或区域滚动；较多对局由网页自动轮播。 */
html,body{height:100%;overflow:hidden}#display{height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{flex-shrink:0;padding:14px 24px;gap:22px}.screen-grid{flex:1;min-height:0;grid-template-columns:1.3fr 1fr 1fr;grid-template-rows:minmax(0,1fr) 150px;gap:14px;padding:14px 24px 0}.panel{min-height:0;overflow:hidden;padding:18px}.section-heading{margin-bottom:12px}h2{font-size:clamp(18px,2.2vh,26px)}.board{display:flex;flex-direction:column}#rank-list{flex:1;min-height:0;display:flex;flex-direction:column}#rank-list li{flex:1;min-height:0;padding:3px 0;font-size:clamp(14px,1.85vh,21px)}li .rank{font-size:clamp(15px,2vh,23px)}li .value{font-size:clamp(12px,1.5vh,17px)}.board-note{font-size:11px;margin-top:8px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}nav{margin-bottom:8px}nav button{font-size:14px;padding:8px 2px}.rank-label{padding-bottom:6px}.join{display:flex;flex-direction:column;align-items:stretch}.join .section-heading{flex-shrink:0}#qr-area{width:min(100%,24vh);max-width:260px;flex-shrink:0;margin-bottom:10px}#qr-missing{padding:8px;font-size:13px}.join h3{font-size:clamp(16px,2vh,22px);margin-bottom:6px}#code-help{font-size:12px;line-height:1.4;margin-top:4px}#pool-rules{max-height:none;overflow:hidden;margin:8px 0;line-height:1.4;font-size:13px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.waiting-summary{padding-top:8px;gap:8px}.waiting-summary strong{font-size:28px}#waiting-list{margin-top:6px;font-size:12px;line-height:1.4;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.rewards{display:flex;flex-direction:column}.rewards section{flex:1;min-height:0;padding:12px 0;overflow:hidden}.rewards h3{font-size:16px;margin-bottom:8px}.rewards p{max-height:none;overflow:hidden;font-size:clamp(15px,2vh,22px);line-height:1.5;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.matches{grid-column:1/-1;display:flex;flex-direction:column;overflow:hidden}.matches .section-heading{margin-bottom:10px}#match-list{flex:1;min-height:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.game{padding:10px 14px;overflow:hidden}.game-label{margin-bottom:8px}.game-score{font-size:clamp(15px,2vh,23px)}.game-score strong{font-size:clamp(20px,2.6vh,28px)}.matches .empty{padding:8px}.empty{padding:20px 8px}footer{flex-shrink:0;padding:10px 24px}.top-actions button{padding:7px 10px}#clock{font-size:30px;margin-left:4px}.connect{height:100dvh;min-height:0;overflow:hidden;padding:16px}.connect-card{padding:24px 36px}.connect .eyebrow{margin:18px 0 12px}.connect h1{font-size:32px;margin-bottom:14px}.connect p{font-size:14px}.connect label{margin:14px 0 8px}.login-qr{max-width:min(220px,28vh);margin:12px auto}#login-status{margin:8px 0}#legacy-login{margin-top:14px}.connect-note{margin-top:14px;padding-top:12px;font-size:12px}
@media(max-height:800px){header{padding:10px 20px}.screen-grid{grid-template-rows:minmax(0,1fr) 128px;padding-top:10px;gap:10px}.panel{padding:12px}.section-heading{margin-bottom:8px}.rewards section{padding:8px 0}.board-note{font-size:10px}.brand{font-size:26px}.club h1{font-size:22px}#season-name{margin-top:4px;font-size:13px}.live-stats strong{font-size:28px}.live-stats span{font-size:12px}.game-label{font-size:12px;margin-bottom:6px}footer{padding:7px 20px}}
@media(max-width:850px){header{gap:8px;padding:10px}.club{min-width:100px}.live-stats{width:auto;gap:12px}.top-actions{width:100%;margin:0;justify-content:space-between}.screen-grid{grid-template-columns:1.2fr 1fr;grid-template-rows:minmax(0,1fr) 130px;padding:8px;gap:8px}.board,.join,.rewards,.matches{order:initial}.rewards{grid-column:1;grid-row:2}.rewards .section-heading,.rewards section:nth-of-type(n+2){display:none}.matches{grid-column:2;grid-row:2}#match-list{grid-template-columns:1fr}.game:nth-child(n+2){display:none}.panel{padding:10px}footer{font-size:10px;padding:6px 10px}.matches .subtle{display:none}.connect-card{padding:20px}}

@media(max-width:850px){.screen-grid{grid-template-columns:1.3fr 1fr 1fr;grid-template-rows:minmax(0,1fr) 130px}.rewards{grid-column:3;grid-row:1}.rewards .section-heading{display:flex}.rewards section:nth-of-type(n+2){display:block}.matches{grid-column:1/-1;grid-row:2}#match-list{grid-template-columns:repeat(3,minmax(0,1fr))}.game:nth-child(n+2){display:block}.game-score{gap:6px;font-size:13px}.rewards p{font-size:13px}.join h3{font-size:15px}li .value{font-size:11px}li{gap:6px}.live-stats span{font-size:11px}.live-stats strong{font-size:26px}.matches .subtle{display:block}.rewards h3{font-size:14px}}

/* 实时对局向上扩高，约占屏高三成，姓名与比分加大。 */
.screen-grid{grid-template-rows:minmax(0,1fr) clamp(210px,30vh,340px)}#qr-area{width:min(100%,19vh)}.matches .section-heading{margin-bottom:16px}.matches h2{font-size:clamp(22px,2.7vh,30px)}.game{display:flex;flex-direction:column;justify-content:center;padding:18px 22px}.game-label{font-size:clamp(14px,1.7vh,19px);margin-bottom:22px}.game-score{font-size:clamp(22px,3vh,34px);gap:16px}.game-score strong{font-size:clamp(34px,4.5vh,50px)}.matches .empty{flex:1;display:flex;align-items:center;justify-content:center;font-size:clamp(18px,2.3vh,25px)}.matches .empty[hidden]{display:none}
@media(max-width:850px){.game{padding:12px}.game-score{font-size:16px;gap:6px}.game-score strong{font-size:26px}.game-label{font-size:12px;margin-bottom:16px}}

.voice-setup{margin:12px 0;padding:12px;border:1px solid #31483e;border:1px solid var(--line);border-radius:10px;background:#20392e}.voice-controls{display:flex;gap:10px}.voice-controls button:first-child{background:#e9ca84;background:var(--gold);color:#163423;font-weight:700}#voice-setup-status{font-size:12px;line-height:1.5;margin-top:8px;color:#88cfaa;color:var(--green)}.voice-notice{flex-shrink:0;padding:7px 24px;font-size:13px;line-height:1.3;background:#20392e;color:#88cfaa;color:var(--green)}.voice-error,#voice-setup-status.voice-error{color:#ffc493;background:#51351c}.voice-controls button{padding:7px 12px}@media(max-height:800px){.connect h1{font-size:26px;margin-bottom:8px}.connect .eyebrow{margin:10px 0 8px}.voice-setup{padding:8px;margin:8px 0}.login-qr{max-width:22vh;margin:8px auto}.voice-notice{padding:5px 20px;font-size:12px}.connect-note{margin-top:10px;padding-top:8px}#qr-area{width:min(100%,15vh);height:15vh;min-height:0;margin-bottom:8px}#qr-missing{font-size:12px;line-height:1.4;padding:4px}.join h3{margin-bottom:4px}#pool-rules{margin:6px 0}}

/* 双方姓名下显示本场俱乐部档位，保留比分及完整档位。 */
.game-score .game-player{min-width:0;line-height:1.25}.game-player-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:inherit}.game-player-level{display:block;margin-top:6px;color:#e9ca84;color:var(--gold);font-size:clamp(15px,2vh,22px);line-height:1.3;white-space:nowrap}.game .game-label{margin-bottom:14px}
@media(max-height:650px){.game-player-level{margin-top:4px;font-size:14px}.game .game-label{margin-bottom:8px}}

/* 待分台专栏持续可见，与已安排的实时对局分别轮播。 */
.match-area{flex:1;min-height:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.live-area{grid-column:1/-1;min-width:0;min-height:0;display:flex;flex-direction:column}.match-area.has-allocation .live-area{grid-column:2/-1}.allocation-area{min-width:0;min-height:0;display:flex;flex-direction:column}.allocation-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#e9ca84;color:var(--gold);font-size:clamp(13px,1.6vh,18px);margin-bottom:10px}.allocation-heading strong{flex-shrink:0;font-size:13px}.game-awaiting{background:#3d3421;border:1px solid #b4914e}.game-awaiting .game-label{color:#e9ca84;color:var(--gold)}#allocation-list{flex:1;min-height:0;display:grid;grid-template-columns:1fr;gap:12px}.match-area.has-allocation #match-list{grid-template-columns:repeat(2,minmax(0,1fr))}.match-area.only-allocation .allocation-area{grid-column:1/-1}.match-area.only-allocation #allocation-list{grid-template-columns:repeat(3,minmax(0,1fr))}.game-awaiting .game-score strong{font-size:clamp(24px,3vh,34px)}.live-area .game{height:100%}.live-area .empty{margin:0}
@media(max-width:850px){.allocation-heading{font-size:11px;gap:4px}.allocation-heading strong{font-size:10px}.game-awaiting .game-score strong{font-size:20px}}

/* 三项奖励使用稳定的横向行，首胜名单占用右栏剩余空间。 */
.screen-grid{grid-template-columns:1.2fr .95fr 1.1fr}
.reward-column{grid-column:3;grid-row:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.reward-column>.rewards{flex:0 0 auto;height:28vh;min-height:160px;max-height:300px;grid-column:auto;grid-row:auto}
.reward-column>.rewards .section-heading{flex:0 0 auto;margin-bottom:8px}
.reward-column>.rewards section{flex:1;min-height:0;display:flex;flex-direction:row;align-items:stretch;justify-content:flex-start;padding:4px 0;overflow:hidden}
.reward-column>.rewards h3{flex:0 0 5em;display:flex;flex-direction:column;justify-content:center;font-size:16px;line-height:1.4;margin:0 12px 0 0}
.reward-column>.rewards h3 small{font-size:11px;line-height:1.4;color:#a2b5aa;color:var(--muted);font-weight:400}
.reward-column>.rewards p{flex:1;min-width:0;min-height:0;display:block;font-size:18px;line-height:1.4;white-space:pre-wrap;word-break:break-word;overflow-wrap:break-word;-webkit-line-clamp:unset;overflow:hidden}
.reward-column>.first-wins{flex:1;min-height:0;margin-top:12px;display:flex;flex-direction:column}
.first-wins .section-heading{flex-shrink:0;margin-bottom:6px}.first-wins h2{font-size:18px;font-size:clamp(18px,2.2vh,26px)}
#first-win-count{white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}
#first-win-list{list-style:none;margin:0;padding:0;flex:1;min-height:0;display:flex;flex-wrap:wrap;align-content:flex-start;overflow-x:hidden;overflow-y:auto}
#first-win-list li{display:block;border:0;margin:0;padding:4px;text-align:center;line-height:1.25;font-size:16px;font-size:clamp(16px,2vh,24px);color:#e9ca84;color:var(--gold);white-space:normal;overflow-wrap:break-word;word-break:break-all}
.first-wins .empty{flex:1;padding:0;display:flex;align-items:center;justify-content:center;font-size:14px}
@media(max-height:650px){.reward-column>.first-wins{margin-top:8px}.first-wins h2{font-size:16px}.first-wins .section-heading{margin-bottom:4px}#first-win-count{font-size:10px}.first-wins .empty{font-size:12px}}
@media(min-height:900px){.reward-column>.rewards h3{font-size:20px}.reward-column>.rewards p{font-size:22px}}
@media(max-height:650px){.reward-column>.rewards .section-heading{margin-bottom:6px}.reward-column>.rewards h3{font-size:14px;line-height:1.1;margin-right:8px}.reward-column>.rewards h3 small{font-size:9px;line-height:1.1}.reward-column>.rewards p{font-size:16px;line-height:1.4}}
@media(max-width:1400px){header{flex-wrap:nowrap;gap:14px}.brand{font-size:26px}.club h1{font-size:22px}.live-stats{gap:12px}.live-stats strong{font-size:28px}.live-stats span{font-size:11px}.top-actions{width:auto;flex-shrink:0;gap:5px;font-size:11px}.top-actions button{padding:5px 7px;font-size:11px}#clock{font-size:24px;margin-left:2px}}
#rank-empty{flex:1;min-height:0;padding:8px 0;display:flex;flex-direction:column;justify-content:center;line-height:1.5}
@media(max-height:650px){.screen-grid{grid-template-rows:minmax(0,1fr) 27vh}.reward-column>.first-wins{min-height:76px}.club h1{line-height:1.15}}

/* 登录页只保留项目名称和可点击刷新的二维码。 */
.connect-simple{width:min(440px,100%);padding:32px;border:0;background:transparent;box-shadow:none;text-align:center}.connect-simple h1{margin:0 0 30px;color:#e9ca84;color:var(--gold);font-size:clamp(28px,3.8vh,42px);line-height:1.25;letter-spacing:2px}.connect-simple .login-qr{display:flex;align-items:center;justify-content:center;flex-direction:column;width:min(100%,34vh);max-width:340px;aspect-ratio:1;margin:0 auto;padding:14px;border:0;border-radius:16px;background:#fff;color:#385345}.connect-simple .login-qr img{width:100%;padding:0;border-radius:0}.connect-simple .login-qr:disabled{opacity:1;cursor:wait}.connect-simple #login-status{font-size:15px;line-height:1.7;margin:0;white-space:pre-line}.connect-simple #connect-error:empty{display:none}.connect-simple #pool-picker{margin-top:24px}.connect-simple #login-pools{margin:20px 0}

.login-purpose{font-size:15px;line-height:1.6;color:#889a93;margin:0 0 24px}

/* Bound the participation image even when its intrinsic size exceeds the card. */
#qr-area{min-width:0;min-height:0;overflow:hidden}
#qr{min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}

/* Keep every displayed row readable; TOP 10 pages rotate when space is short. */
#rank-list li{flex:0 0 auto;min-height:28px;line-height:1.25;font-size:14px;font-size:clamp(14px,1.8vh,21px);padding:3px 0;overflow:hidden}
#rank-list li .rank{flex:0 0 24px;line-height:1.25;font-size:15px;font-size:clamp(15px,2vh,23px);margin-right:8px}
#rank-list li .name{min-width:0;margin-right:8px}
#rank-list li .value{flex:0 1 auto;max-width:62%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-size:clamp(12px,1.5vh,17px);line-height:1.25}
#rank-page{white-space:nowrap;font-size:12px}
.board-note{flex-shrink:0}
.join #pool-rules{flex:0 0 auto;margin:10px 0 0;font-size:14px;font-size:clamp(14px,1.8vh,22px);line-height:1.5;-webkit-line-clamp:5;text-align:center}
#qr-area{width:22vh;height:22vh;max-width:100%;max-height:none;align-self:center}
.rewards section{display:flex;flex-direction:column;justify-content:center;padding:6px 0}
.rewards h3{flex-shrink:0;font-size:15px;font-size:clamp(15px,1.8vh,20px);line-height:1.3;margin-bottom:4px}
.rewards p{font-size:14px;font-size:clamp(14px,1.8vh,20px);line-height:1.4;-webkit-line-clamp:2}
.club{min-width:0}
.club h1{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.25}
@media(max-height:650px){
 header{flex-wrap:nowrap;padding:8px 14px;gap:12px}
 header .brand{font-size:22px;margin-right:12px}.brand span{font-size:8px;margin-top:4px}
 .club{margin-right:12px}.club h1{font-size:18px}#season-name{font-size:11px;margin-top:3px}
 .live-stats{gap:10px}.live-stats span{font-size:10px}.live-stats strong{font-size:24px}.live-stats small{font-size:10px}
 .top-actions{font-size:11px;gap:4px;flex-shrink:0}.top-actions button{font-size:11px;padding:5px 6px}#clock{font-size:24px;margin-left:4px}
 .panel{padding:10px}.screen-grid{grid-template-rows:minmax(0,1fr) 30vh;padding:8px 14px 0;gap:8px}
 .section-heading{margin-bottom:6px}.eyebrow{font-size:8px;margin-bottom:4px}h2{font-size:18px;line-height:1.3}
 nav button{font-size:12px;padding:6px 2px}.rank-label{font-size:10px;padding-bottom:4px}
 .board-note{font-size:10px;line-height:1.3;margin-top:4px}
 .join #pool-rules{font-size:12px;line-height:1.4;margin-top:6px;-webkit-line-clamp:4}
 #qr-area{width:24vh;height:24vh}
 .rewards section{padding:4px 0}.rewards h3{font-size:13px;line-height:1.25;margin-bottom:3px}.rewards p{font-size:12px;line-height:1.35}
 .matches .section-heading{margin-bottom:8px}.matches h2{font-size:20px}.matches .subtle{font-size:11px}
 .game{padding:10px 12px}.game-label{font-size:12px;margin-bottom:10px}.game-score{font-size:18px}.game-score strong{font-size:26px}
 .voice-notice{padding:5px 14px;font-size:11px}footer{font-size:10px;padding:6px 14px}
}

/* Older TV engines ignore min/clamp, aspect-ratio, Grid and flex gap. */
@supports not (width:min(100%,34vh)) {
 .connect-simple{width:440px;max-width:100%}
 .connect-simple h1{font-size:36px}
 .connect-simple .login-qr{width:280px;height:280px;max-width:100%}
 .connect-simple .login-qr img{height:100%;object-fit:contain}
 #display{height:100vh}
 #qr-area{width:19vh;height:19vh;max-width:100%;flex:0 0 auto;align-self:center;overflow:hidden}
 #qr{width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain}
 .live-stats>div{margin-right:16px}
 .top-actions>button{margin-left:8px}
 .game-score{font-size:26px}.game-score strong{font-size:36px}.game-player-level{font-size:18px}
 .allocation-heading{font-size:16px}.game-awaiting .game-score strong{font-size:28px}
 @media(max-height:800px){#qr-area{width:15vh;height:15vh;padding:8px}}
 @media(max-height:650px){
  .join .eyebrow{display:none}
  .join h2{font-size:18px;line-height:1.3}
  .join .section-heading{margin-bottom:6px}
  .join .pill{font-size:11px;padding:4px 8px}
  #qr-area{margin-bottom:6px}
  .join h3{font-size:14px;line-height:1.3;margin-bottom:4px}
  #pool-rules{font-size:10px;line-height:1.3;margin:4px 0}
  .waiting-summary{font-size:12px;padding-top:4px}
  .waiting-summary strong{font-size:20px;line-height:1.2}
 }
}
@supports not (width:min(100%,34vh)) {
 h2{font-size:22px}
 #qr-area{width:22vh;height:22vh;max-width:100%;max-height:none}
 .screen-grid{grid-gap:12px;grid-template-rows:minmax(0,1fr) 30vh}.match-area,#match-list,#allocation-list{grid-gap:12px}
 .game-label{font-size:14px}
 .top-actions>button{margin-left:4px}
 @media(max-height:800px){.screen-grid{grid-gap:10px}}
 @media(max-height:650px){h2{font-size:18px}.matches h2{font-size:20px}.live-stats>div{margin-right:8px}.screen-grid{grid-gap:8px}#qr-area{width:24vh;height:24vh}.game{padding:8px 10px}.game .game-label{margin-bottom:6px}.game-score{font-size:18px;gap:8px}.game-score strong{font-size:26px}.game-player-level{font-size:14px;line-height:1.2;margin-top:3px}}
 @media(min-height:801px){#rank-list li{font-size:1.8vh}#rank-list li .rank{font-size:2vh}#rank-list li .value{font-size:1.5vh}.rewards h3,.rewards p,.join #pool-rules{font-size:1.8vh}}
}
@supports not (display:grid) {
 .screen-grid{display:flex;flex-wrap:wrap;align-content:stretch;overflow:hidden;gap:0}
 .screen-grid>.board{width:36%;height:calc(100% - 30vh - 12px);margin-right:1%}
 .screen-grid>.join{width:28%;height:calc(100% - 30vh - 12px);margin-right:1%}
 .screen-grid>.reward-column{width:34%;height:calc(100% - 30vh - 12px)}
 .screen-grid>.matches{width:100%;height:30vh;margin-top:12px}
 .match-area{display:flex}.allocation-area{width:33%;margin-right:12px}
 .live-area{flex:1;min-width:0}#match-list,#allocation-list{display:flex}
 #match-list>.game{width:33.333%;margin-right:8px}
 .has-allocation #match-list>.game{width:50%}
 .only-allocation .allocation-area{width:100%;margin-right:0}
 #allocation-list>.game{width:100%}
 .only-allocation #allocation-list>.game{width:33.333%;margin-right:8px}
 .game-score{display:flex;align-items:center;justify-content:space-between}
 .game-score>span{width:38%;overflow:hidden;text-overflow:ellipsis}
 .game-score>span:last-child{text-align:right}
 .game-score>strong{width:24%;text-align:center}
 header{padding:14px 20px}.brand{margin-right:24px}
 .top-actions>button{margin-left:8px}nav>button{margin-right:6px}
 @media(max-height:650px){
  header{padding:8px 14px}.brand{margin-right:12px}
  .screen-grid>.board,.screen-grid>.join,.screen-grid>.reward-column{height:calc(100% - 27vh - 12px)}
  .screen-grid>.matches{height:27vh}
 }
}
