/* Preserve the original stadium identity; only adjust readability and new feature layouts. */
:root,:root[data-theme="dark"]{--display:'Big Shoulders Display','Manrope',system-ui,sans-serif;--body:'Manrope',system-ui,sans-serif;--label:'Manrope',system-ui,sans-serif}
body{font-size:16px;line-height:1.55}
.wrap{padding:28px 36px 130px}
.panel,.pitchbox{min-width:0}.panel{gap:20px}
.panel>*,.hub-dialog>*,.pass-shop-layout>*{min-width:0}
.panel .muted,.hub-dialog .muted,.ladder-intro,.pass-intro{font-size:16px;line-height:1.65}
.btn,.hub-btn{min-height:44px;font-size:15px;letter-spacing:0}
.btn.sm,.hub-save-note,.eyebrow,.foot,.draft-panel-label,.hub-message{font-size:13px;line-height:1.5}
.panel input,.panel select,.panel textarea,.hub-dialog input,.hub-dialog select,.pass-market-controls select{font-size:16px;min-height:44px}
.panel label,.hub-dialog label{font-size:14px}
.choice small,.styles .choice small,.pc .bio,.pc .st,.pc .tr span{font-size:13px;line-height:1.45}
.choice b,.styles .choice b{font-size:19px}.pc .nm{font-size:22px;line-height:1.2}
.hub-strip{font-size:12px;letter-spacing:.03em;line-height:1.5;flex-wrap:wrap;gap:8px 16px}
.row{flex-wrap:wrap}.brand{min-width:0}.hub-actions{flex-shrink:0}

/* The home screen starts with play, with the stadium visible around the menu. */
.is-menu #matchday-hero,.is-menu .pitchbox,.is-menu .draft-panel-label{display:none}
.is-menu .stage{display:block;width:100%;max-width:760px;margin:8px auto 0}
.is-menu .panel{padding:28px;gap:20px}
.is-menu .home-title{font-size:34px;line-height:1.2;letter-spacing:-.035em;margin:0}
.is-menu .hub-play{font-size:23px;min-height:60px;text-transform:none}
.hub-switch button,.is-menu .hub-switch button{font-size:15px;min-height:44px}
.event-compact summary,.is-menu .event-compact summary{font-size:15px;min-height:44px;gap:12px}
.event-compact summary>span,.is-menu .event-compact summary>span,.event-compact p,.is-menu .event-compact p{font-size:13px;line-height:1.6}
.home-social-actions,.is-menu .home-social-actions{display:flex;flex-direction:column;gap:0}
.friend-home-card,.duel-home-card,.ladder-home-card,.passplay-home-card,.is-menu .friend-home-card,.is-menu .duel-home-card{display:flex;flex-direction:row;justify-content:space-between;align-items:center;gap:14px;min-height:64px;padding:15px 0;border:0;border-bottom:1px solid #ffffff20;border-radius:0;background:none;font-size:16px;box-shadow:none}
.friend-home-card>span,.duel-home-card>span,.ladder-home-card>span,.passplay-home-card>span,.is-menu .friend-home-card>span,.is-menu .duel-home-card>span{gap:10px;white-space:normal;line-height:1.45}
.friend-home-card small,.duel-home-card small,.ladder-home-card small,.passplay-home-card small,.is-menu .friend-home-card small,.is-menu .duel-home-card small{font-size:13px;line-height:1.5;text-align:right;max-width:150px}
.home-links,.is-menu .home-links{flex-wrap:wrap;gap:10px 20px}
.home-links .btn,.is-menu .home-links .btn{font-size:13px;min-height:44px}
.hub-metrics,.is-menu .hub-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hub-metrics>div,.is-menu .hub-metrics>div{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.hub-metrics strong,.is-menu .hub-metrics strong{font:700 27px var(--display)}
.hub-metrics small,.is-menu .hub-metrics small{font-size:13px;letter-spacing:0}
.matchday-dock button{font-size:11px;min-height:52px}.matchday-dock button[data-nav=leaderboard] span{font-size:11px}

/* New screens keep the original blue, lime and football card treatments. */
.ladder-table-wrap{padding:0;border:0;background:none}
.ladder-table th{font-size:12px;letter-spacing:.03em}.ladder-table td b{font-size:15px}.ladder-table td small{font-size:13px}
.ladder-table td{padding-block:16px}.ladder-table th:first-child{width:48px}.ladder-table th:last-child{width:120px}
.ladder-roster{font-size:13px;min-height:44px;white-space:normal}.ladder-team-link{min-height:44px}
.ladder-podium-card b,.ladder-movement-list b{font-size:15px}.ladder-podium-card small,.ladder-podium-inspect,.ladder-movement-list small{font-size:13px}
.ladder-podium-label{display:none}.ladder-podium-number{font-size:13px}
.ladder-overview small,.ladder-overview span,.ladder-period button,.ladder-movement-note,.ladder-no-risers,.ladder-mover-hero small,.ladder-mover-hero span,.ladder-rules,.ladder-rules summary,.ladder-rules ol,.ladder-rules p,.ladder-history li small,.ladder-history li>span:last-child,.ladder-empty p,.ladder-roster-hint{font-size:13px;line-height:1.6;letter-spacing:0}
.ladder-period button{min-height:44px}.ladder-tactics small{font-size:12px}.ladder-tactics b,.ladder-team-meta b{font-size:15px}
.ladder-roster-detail .roster-list>.ladder-player-button,.ladder-roster-detail .bench-list>.ladder-player-button{font-size:14px;min-height:60px}.ladder-attributes>div,.ladder-player-rating small{font-size:13px}
.pass-form label,.pass-roster-row b,.pass-fixture>span,.pass-table td b{font-size:14px}
.pass-setup-stats small,.pass-hero span,.pass-budget span,.pass-roster-row small,.pass-roster-row>button:first-child>span,.pass-card-top>span,.pass-card>small,.pass-card-price i,.pass-market-count,.pass-table td small{font-size:13px;line-height:1.5;letter-spacing:0}
.pass-section-title{flex-wrap:wrap}.pass-section-title .btn{font-size:13px}.pass-card>b{font-size:15px}.pass-card-price{font-size:18px}.pass-card{min-height:215px}.pass-remove{min-width:44px}
.hub-dialog-top h2{font-size:30px;line-height:1.2}.hub-close{min-width:44px;min-height:44px}

@media(max-width:860px){
 .wrap,.is-menu .wrap{max-width:760px;padding:24px 24px calc(125px + env(safe-area-inset-bottom,0px));gap:22px}
 .stage{grid-template-columns:minmax(0,1fr)}
 .panel,.is-menu .panel,body[data-phase="leaderboard"] .panel{padding:22px;gap:20px}
 .is-menu .stage{margin-top:4px}.is-menu #hub-count{display:block}.is-menu #hub-strip{font-size:12px;letter-spacing:0}
 .is-menu .matchday-dock,.matchday-dock{width:min(490px,calc(100vw - 24px));max-width:calc(100vw - 24px);min-width:0;padding:6px;gap:0}
 .matchday-dock button,.is-menu .matchday-dock button{display:flex;flex:1;min-width:0;width:auto;min-height:54px;padding:6px 2px;font-size:11px;letter-spacing:-.025em}
 .is-menu .matchday-dock button[data-nav=friends],.is-menu .matchday-dock button[data-nav=duel]{display:flex}
 .is-menu .stadium-backdrop{opacity:.78}.is-menu.quiet-stadium .stadium-backdrop{opacity:.12}
 .pass-shop-layout{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 header,.is-menu header{gap:10px;align-items:center;flex-wrap:nowrap}
 h1,.is-menu h1{font-size:21px;line-height:1.15}.brand{gap:8px}.brand svg{width:25px;height:25px}.brand h1 em{display:block}
 .hub-actions{gap:2px}.hub-actions .hub-btn,.is-menu .hub-actions #hub-profile,.hub-actions #hub-leaderboard{width:40px;min-width:40px;min-height:44px;padding:10px}
 .hub-actions .hub-name,.hub-actions .hub-stat-label{display:none}.is-menu .hub-actions #hub-stats{display:flex}
 .panel,.is-menu .panel,body[data-phase="leaderboard"] .panel{padding:20px 18px}
 .panel>h2,body[data-phase="leaderboard"] .panel>h2,.is-menu .home-title{font-size:29px;line-height:1.2}
 .is-menu .hub-play{font-size:20px}.friend-home-card small,.duel-home-card small,.ladder-home-card small,.passplay-home-card small,.is-menu .friend-home-card small,.is-menu .duel-home-card small{max-width:100px}
 .hub-metrics strong,.is-menu .hub-metrics strong{font-size:24px}.hub-metrics small,.is-menu .hub-metrics small{font-size:12px}
 .ladder-table th:first-child{width:35px}.ladder-table th:last-child{width:67px}.ladder-table th,.ladder-table td{padding-inline:4px}.ladder-table td b{font-size:14px}.ladder-rank,.ladder-rank.podium{font-size:19px}
 .ladder-table-title{flex-wrap:wrap}.ladder-table-title h3{font-size:18px}.ladder-table-title .btn{font-size:13px}.ladder-roster{padding:8px 3px!important}
 .ladder-podium{gap:7px}.ladder-podium-card{padding:12px 8px}.ladder-podium-card b{font-size:13px}.ladder-podium-card small,.ladder-podium-inspect{font-size:12px}.ladder-podium-emblem{font-size:25px}
 .ladder-movement{padding:16px}.ladder-movement-head h3{font-size:23px}.ladder-history li{flex-wrap:wrap}.ladder-history li>span:last-child{white-space:normal}
 .pass-form-grid,.pass-name-grid{grid-template-columns:minmax(0,1fr)}.pass-tactics>.pass-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pass-roster{grid-template-columns:minmax(0,1fr)}.pass-roster-row>button:first-child{min-height:70px;padding:13px 10px}.pass-roster-row>button:first-child>span{width:30px}
 .pass-market-controls{grid-template-columns:minmax(0,1fr)}.pass-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.pass-card{padding:14px 11px;min-height:225px}
 .pass-setup-stats{gap:8px}.pass-setup-stats>div{padding:15px 9px}.pass-setup-stats strong{font-size:25px}.pass-setup-stats small{font-size:12px}
 .pass-fixture{flex-wrap:wrap}.pass-table th,.pass-table td{padding-inline:6px}.pass-table th:nth-child(n+3){width:32px}
 .hub-overlay{padding:12px}.hub-dialog{padding:25px 22px calc(25px + env(safe-area-inset-bottom,0px))}.hub-dialog-top h2{font-size:26px}
 .styles{grid-template-columns:minmax(0,1fr)}.styles .choice{min-height:65px}.signbar{padding-inline:24px}.signbar .btn{min-width:100px;font-size:15px}
}
@media(max-width:360px){
 .brand svg{display:none}.hub-actions .hub-btn,.is-menu .hub-actions #hub-profile,.hub-actions #hub-leaderboard{width:36px;min-width:36px;padding:8px}
 .pass-cards{grid-template-columns:minmax(0,1fr)}.pass-card{min-height:190px}.matchday-dock button,.is-menu .matchday-dock button{font-size:10px}
 .ladder-overview>div{padding:15px 11px}.ladder-overview strong{font-size:32px}
}

/* Formation choices remain readable before committing to a squad. */
.forms3.formation-single{grid-template-columns:minmax(0,1fr);width:100%;max-width:260px;margin-inline:auto}
#formation-budget{font-size:14px;font-variant-numeric:tabular-nums}
@media(max-width:600px){
 body[data-phase="formpick"] .forms3{grid-template-columns:minmax(0,1fr)}
 body[data-phase="formpick"] .fcard{display:grid;grid-template-columns:70px minmax(0,1fr);gap:6px 16px;text-align:left;padding:14px;min-width:0}
 body[data-phase="formpick"] .fcard .mini{grid-row:1/3;width:70px;margin:0}
 body[data-phase="formpick"] .fcard b{align-self:end;font-size:23px;line-height:1.15}
 body[data-phase="formpick"] .fcard small{align-self:start;font-size:13px;line-height:1.5}
 body[data-phase="formpick"] .formation-single{max-width:none}
 #formation-reroll{width:100%}
}

/* Draft is the primary action; the other modes stay close at hand. */
.is-menu .draft-home-note{margin:-8px 0 0;color:var(--muted);font-size:14px;line-height:1.6}
.draft-settings{padding:0;border:0;background:none}
.draft-settings>summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 14px;min-height:44px;font:600 14px/1.5 var(--body);text-transform:none;letter-spacing:0;cursor:pointer}
.draft-settings>summary>span{font-weight:400;color:var(--muted);font-size:13px}
.draft-setting-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:12px 0 6px}
.draft-setting-fields label{display:grid;gap:7px;min-width:0;color:var(--muted)}
.draft-setting-fields select{width:100%;min-width:0;padding:10px;border:1px solid var(--line);background:var(--panel-2);color:var(--fg);border-radius:8px}
.daily-live{border-block:1px solid var(--line);padding:18px 0;min-width:0}
.daily-live-top,.daily-live-meta,.daily-live-actions{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}
.daily-live-top{font-size:12px;color:var(--muted);margin-bottom:8px}
.daily-live-top>span{color:var(--star);font-weight:700}
#daily-title{display:block;font-size:18px;line-height:1.4;color:var(--fg)}
#daily-desc{font-size:14px;line-height:1.6;color:var(--muted);margin:7px 0 10px}
.daily-live-meta,.daily-live-best{font-size:12px;line-height:1.6;color:var(--muted)}
#daily-count{font-variant-numeric:tabular-nums}
.daily-live-actions{justify-content:flex-start;margin-top:12px;gap:10px}
.daily-live-actions .btn{min-height:44px;font-size:14px;text-transform:none;padding:9px 15px}
#hub-daily{border-color:#9bbcf04d;color:var(--star);background:#9bbcf00a}
#daily-live[data-played="false"] #hub-daily.daily-play-pending{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-basis:100%;min-height:64px;padding:16px 22px;border-color:var(--accent);background:var(--accent);color:#10200a;font:700 23px/1.3 var(--body);box-shadow:0 0 24px #c3ed7014}
#daily-live[data-played="false"] #hub-daily:hover{background:#d2f58f;box-shadow:0 0 28px #c3ed7028}
#hub-daily:focus-visible{outline:2px solid var(--fg);outline-offset:4px}
#hub-daily:disabled{cursor:default;opacity:.7;box-shadow:none;transform:none}
#daily-calendar-open{margin:0;border:0;background:none;color:var(--muted)}
.is-menu .home-secondary-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
.is-menu .home-secondary-modes>button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:66px;padding:10px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none;text-align:left;font-size:15px;line-height:1.4}
.is-menu .home-secondary-modes>button>span{font-size:15px;line-height:1.4}
.is-menu .home-secondary-modes>button>small{max-width:none;text-align:left;font-size:12px;line-height:1.5;color:var(--muted)}
.is-menu .home-secondary-modes>button:hover>span{color:var(--accent)}
@media(max-width:600px){
 .draft-setting-fields{grid-template-columns:minmax(0,1fr)}
 .is-menu .home-secondary-modes{gap:0 16px}
 .is-menu .hub-play{font-size:26px;min-height:66px}
}

/* Saved squads stay readable and easy to inspect on a challenge link. */
.challenge-actions{display:flex;flex-wrap:wrap;gap:10px}
.challenge-actions .btn{min-height:48px;font-size:15px;text-transform:none}
.challenge-actions #duel-select,.challenge-actions #duel-resume{flex-basis:100%;min-height:58px;font-size:20px}
.challenge-squads{display:grid;border-top:1px solid var(--line)}
.challenge-squad{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:82px;padding:17px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;color:var(--fg);text-align:left;font:400 16px/1.5 var(--body);cursor:pointer}
.challenge-squad>span:first-child{min-width:0}.challenge-squad b{display:block;font-size:17px;overflow-wrap:anywhere}.challenge-squad small{display:block;font-size:13px;color:var(--muted);margin-top:4px}
.challenge-squad[aria-pressed="true"]{background:#c3ed7010;color:var(--accent);box-shadow:inset 3px 0 var(--accent)}
.challenge-squad:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.challenge-squad:disabled{opacity:.65;cursor:default}.challenge-squad .challenge-ineligible{color:#efb4aa}
.challenge-squad-preview{display:grid;gap:16px;scroll-margin-top:24px;min-width:0}.challenge-squad-preview:empty{display:none}.challenge-squad-preview h3{font-size:24px;line-height:1.3;margin:8px 0 0}
.challenge-squad-preview .btn{min-height:52px;font-size:17px;text-transform:none}
