/* Stadium dashboard — shared by the live app and its local sample-data preview. */
:root{--stadium-panel:#0d1214;--stadium-border:#293234;--stadium-muted:#9aa6a9;--stadium-accent:#c8f25a}
body{background:#080c0e;color:#edf1f2}
.masthead{background:radial-gradient(ellipse at 70% 0,rgba(59,90,80,.13),transparent 48%),#0b1012;border-bottom:1px solid #232c2d}
.masthead-inner,main{max-width:1920px;margin-inline:auto;padding-inline:24px}
.masthead-inner{height:70px;gap:36px}
.masthead .wordmark{font-size:43px}
.masthead .team-switch{min-height:44px;padding:5px 0;border:0;border-radius:0;background:transparent;box-shadow:none;gap:11px}
.masthead .team-switch:is(:hover,[aria-expanded=true]){background:transparent;border:0;box-shadow:none}
.masthead .team-switch:focus-visible{outline:2px solid #c8f25a;outline-offset:5px;border-radius:4px}
.masthead .team-switch-text{gap:2px}
.masthead .team-switch>.icon{width:12px;height:12px;margin-left:5px;color:#94a2a5}
.masthead .team-switch:is(:hover,[aria-expanded=true])>.icon{color:#c8f25a}
.masthead .team-switch .league-logo{width:34px;height:34px;border-radius:7px}
.masthead .team-switch-name{font-size:14px;letter-spacing:-.2px}
.masthead .team-switch-text small{font-size:10px;color:#a2abad}
.masthead .main-nav-link{font-size:13px}
/* On phones, anchor the opened list to the header so it stays within the screen. */
@media(max-width:680px){
 .masthead-inner{position:relative}
 .masthead .league-picker{position:static}
 .masthead .league-menu{left:12px;top:calc(100% + 4px);width:min(320px,calc(100% - 24px))}
}
.masthead .profile-trigger{width:36px;height:36px;border-color:#323c3e;background:#141b1e;color:#f0f3f3}
.home{--home-pitch-height:clamp(420px,calc(100svh - 220px),780px);padding-top:16px}
.home-grid{grid-template-columns:minmax(0,1fr) minmax(320px,28.5%);gap:18px;align-items:start}
.home .lineup-panel{position:relative;padding:0;border:0;background:none;min-width:0}
.lineup-toolbar{position:absolute;inset:12px 16px auto;z-index:5;display:flex;align-items:flex-start;justify-content:flex-end;gap:16px;pointer-events:none}
.lineup-toolbar>*{pointer-events:auto}
.lineup-heading{padding:7px 11px;border:1px solid #34483880;border-radius:9px;background:linear-gradient(135deg,#09130eeb,#0a160ed9);box-shadow:0 6px 20px #0003;backdrop-filter:blur(8px)}
.lineup-heading h2{font-size:12px;font-weight:600;line-height:1.4;letter-spacing:0;color:#f0f3ed}
.lineup-summary{display:flex;gap:10px;margin-top:6px;align-items:center;font-size:10px;line-height:1.3;color:#a6b4ab;font-variant-numeric:tabular-nums}
.lineup-ready{display:flex;align-items:center;gap:5px}
.lineup-ready i,.feed-status i{width:6px;height:6px;flex-shrink:0;border-radius:50%;background:#c8f25a;box-shadow:0 0 8px #baf25655}
.lineup-shape{border-left:1px solid #3b493f;padding-left:9px;color:#d2ddcf}
.elf-controls{position:static;inset:auto;flex-direction:row;align-items:center;gap:9px;padding:0;pointer-events:auto}
.elf-seg.scope-seg{background:none;border:0;backdrop-filter:none;gap:20px;height:30px;padding:0;border-radius:0}
.elf-seg.scope-seg button{padding:0 0 6px;height:30px;border-radius:0;font-size:12px;color:#adbbb3;box-shadow:none;background:none;border-bottom:2px solid transparent}
.elf-seg.scope-seg button.active{color:#f1f5ef;background:none;box-shadow:none;border-bottom-color:#c8f25a}
.elf-controls>.status-key{transform:translateY(-2px)}
.status-key summary{border:1px solid #a0b5a52b;border-radius:50%;width:26px;height:26px;display:grid;place-items:center;background:#0c1a1180}
.status-key summary svg{width:20px;height:20px}
.status-key-panel{background:#101a15;border-color:#34453a;box-shadow:0 20px 50px #0009;border-radius:10px}
.home .lineup-panel .pitch{container-type:size;--visual-rows:4;position:relative;height:var(--home-pitch-height);min-height:0;padding:0;border:1px solid #324337;border-radius:11px;background:linear-gradient(180deg,#07131c20,#06131b26),url('assets/stadium-pitch-user.png') center bottom/148% 124%,radial-gradient(ellipse at 50% 30%,#245632,#0c2517 75%);box-shadow:inset 0 0 55px #03101a55;overflow:hidden;justify-content:space-around;gap:0;isolation:isolate}
.home .lineup-panel .pitch::before{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,#04111a44,transparent 24%,transparent 85%,#04101826)}
.home .lineup-panel .field-lines{display:none;inset:0;width:100%;height:100%;transform:none;opacity:1;pointer-events:none;z-index:0;mask-image:none;-webkit-mask-image:none}
.home .lineup-panel .field-lines .pl{stroke:#a1d996;stroke-opacity:.36;stroke-width:1.8;vector-effect:non-scaling-stroke}
/* A shallow stadium crop and broad attacking line keep player cards readable.
   Row spacing follows the viewport height, leaving the reserve in the first view. */
.home .lineup-panel .formation-row{position:absolute;z-index:1;left:50%;--row-step:calc((100cqh - 70px) / var(--visual-rows));--row-portrait:clamp(28px,calc(var(--row-step) - 60px),110px);--row-card:clamp(100px,22cqh,150px);bottom:calc(12px + var(--row-offset) * var(--row-step));transform:translateX(-50%);width:var(--row-width);display:flex;justify-content:space-around;align-items:end;gap:0;min-height:0;flex:none}
.home .formation-row[data-line="ST"]{--row-offset:3;--row-width:86%}
.home .formation-row[data-line="MF"]{--row-offset:2;--row-width:92%}
.home .formation-row[data-line="ABW"]{--row-offset:1;--row-width:96%}
.home .formation-row[data-line="TW"]{--row-offset:0;--row-width:44%}
.home .lineup-panel .token{width:min(var(--row-card),calc(100% / var(--line-count) - 8px));max-width:none;min-width:0;flex-shrink:1;display:flex;flex-direction:column;align-items:center;padding:0;isolation:isolate}
.home .lineup-panel .token .portrait-wrap{width:min(var(--row-portrait),72%);height:auto;aspect-ratio:1;min-height:0;margin:0;overflow:visible}
.home .lineup-panel .token .portrait-wrap>img{position:absolute;inset:0;display:block;height:100%;width:100%;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 2px 3px #0005)}
.home .lineup-panel .token .portrait-wrap::before{display:none}
.home .lineup-panel .token .portrait-wrap .club.crest{left:-10%;bottom:5px;width:30%;height:30%;filter:drop-shadow(0 2px 2px #0008)}

.home .lineup-panel .token>strong{display:block;position:relative;width:100%;max-width:none;margin:0;padding:3px 4px;border:1px solid #526b7880;border-bottom:0;border-radius:7px 7px 0 0;background:linear-gradient(180deg,#101d25f5,#0a141af5);color:#f3f5f2;font-size:clamp(11px,.98vw,16px);line-height:1.2;font-weight:650;letter-spacing:-.2px;box-shadow:0 -1px 2px #0002;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home .lineup-panel .token-data{display:flex;justify-content:center;align-items:center;width:100%;min-width:0;height:24px;margin:0;padding:0 3px;border:1px solid #526b7880;border-top:1px solid #50667640;border-radius:0 0 7px 7px;background:linear-gradient(#0c171ef7,#080f16f7);box-shadow:0 3px 6px #0003;gap:0;line-height:1}
.home .lineup-panel .token-data>b{font-size:clamp(11px,1.05vw,16px);font-weight:600;color:#f0f3ef;white-space:nowrap}
.home .lineup-panel .token-data .points-average{color:#bac5b9;font-size:.82em;font-weight:400}
.home .lineup-panel .token-data>span{font-size:clamp(8px,.73vw,11px);line-height:1;margin-left:7px;padding-left:7px;border-left:1px solid #62764d;color:#c1cbc4;white-space:nowrap;display:inline}
.home .lineup-panel .token:hover>strong,.home .lineup-panel .token:focus-visible>strong{border-color:#9cb584;background:#1b2d30;color:white}
.home .lineup-panel .token:hover .portrait-wrap,.home .lineup-panel .token:active .portrait-wrap{transform:none}
.home .lineup-panel .token .availability-icon{width:25px;height:25px;right:-15%;top:7%;filter:drop-shadow(0 1px 3px #0008)}
.home .lineup-panel .token .availability-icon svg{width:100%;height:100%}
.home .squad-view{height:var(--home-pitch-height);min-height:0;max-height:none;padding:90px 18px 18px;border:1px solid var(--stadium-border);border-radius:11px;background:#0e1716}
.home .squad-view .squad-item{min-height:56px}
/* One reserve rail keeps every squad size within the same first-screen layout. */
.reserve-bench{margin-top:10px;padding:9px 12px 10px;border:1px solid var(--stadium-border);border-radius:11px;background:linear-gradient(125deg,#10191b,#0b1113)}
.home .reserve-heading{padding:0 0 9px;gap:10px;border:0}
.home .reserve-heading h3{font-size:10px;letter-spacing:.05em;font-weight:550;color:#bec8ca}
.home .reserve-heading>span{font-size:10px;color:#8e9c9f}
.home .reserve-list{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(174px,1fr);gap:8px;min-height:70px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;padding:0;margin:0;border:0;background:none;border-radius:0}
.home .reserve-list>button,.home .reserve-list>button:first-child{display:flex;gap:9px;align-items:center;padding:8px 10px;min-height:70px;border:1px solid #2b3737;border-radius:8px;background:linear-gradient(130deg,#101b1b,#0b1314);overflow:hidden;scroll-snap-align:start}
.home .reserve-list>button+button{border-left:1px solid #2b3737}
.home .reserve-list .reserve-portrait{position:relative;width:38px;height:52px;flex:0 0 38px;align-self:center}
.home .reserve-list .reserve-cutout{position:absolute;inset:0;overflow:hidden;mask-image:linear-gradient(#000 82%,transparent);-webkit-mask-image:linear-gradient(#000 82%,transparent)}
.home .reserve-list .reserve-cutout>img{height:100%;width:100%;object-fit:contain;object-position:bottom}
.home .reserve-list>button>span.res-text{flex:1;gap:7px;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.home .reserve-list .res-text>strong{font-size:11px;font-weight:550;color:#eaf0ec;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.home .reserve-list .reserve-fixture{font-size:9px;gap:5px;color:#a6b5af}
.home .reserve-list .reserve-fixture .club.crest{width:15px;height:15px;min-width:15px;position:static}
.home .reserve-list .reserve-score{gap:5px;flex:none}
.home .reserve-list .reserve-score>b{font-size:13px;color:#e4ebe5}
.home .reserve-list .reserve-score>small{font-size:8px;color:#8f9d98}
.home .reserve-list>button:hover{border-color:#65805c;background:#14251c}
/* Framed sidebar panels mirror the supplied reference. */
.home-side{padding:0;border:0;gap:14px;min-width:0}
.home-side .side-block{padding:16px;border:1px solid var(--stadium-border);border-radius:11px;background:radial-gradient(ellipse at 100% 0,#1b292829,transparent 65%),linear-gradient(130deg,#101619,#0b1113);box-shadow:0 3px 12px #0001}
.side-section-heading,.squad-news-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 14px}
.home .side-title{font-size:17px;font-weight:650;letter-spacing:-.5px;line-height:1.3;margin:0}
.side-section-heading>div{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:1;min-width:0}.side-section-heading p{font-size:10px;color:#9eacaa;margin:0;padding:5px 7px;border:1px solid #283735;border-radius:5px;white-space:nowrap}
.section-link{width:28px;height:28px;display:grid;place-items:center;color:#c3d0ca;border:1px solid #293636;border-radius:6px;font-size:17px}
.section-link:hover{background:#1b2923;border-color:#637656}
.home .standings{max-height:calc(28px + 5 * 42px);scrollbar-width:thin;scrollbar-color:#34453e transparent;border:0}
.home .standings.more{mask-image:none;-webkit-mask-image:none}
.home .standing{height:42px;grid-template-columns:20px 28px minmax(0,1fr) auto;gap:9px;padding:0 7px;border-bottom:1px solid #26313088;font-size:12px;border-radius:0;color:#d9e0df}
.home .standing.labels{height:28px;background:#0e1516;z-index:2;font-size:10px;color:#97a3a5;border-bottom:1px solid #2d3936}
.home .standing .mgr-logo{width:27px;height:27px;font-size:9px}
.home .standing b{font-size:12px;font-weight:550;color:#eaf1ef}
.home .standing .st-rank{color:#aab6b4;font-size:12px}
.home .standing.you{border:1px solid #354732;border-left:2px solid #c8f25a;border-radius:5px;background:linear-gradient(90deg,#a8d7481a,#17231528);box-shadow:none;padding-left:5px}
.home .standing.you b,.home .standing.you .st-rank{color:#d2f17e}
.home .standing.you .st-name{color:#f1f4ed;font-weight:600}
.home .standing[data-team]:hover{background:#22342a}
.home .standing[data-team]:hover .st-name{text-decoration:none}
.feed-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:10px;line-height:1.3;color:#9eacaa;border:1px solid #2e3d37;border-radius:20px;padding:4px 8px;background:#13221c}
.feed-status.is-live{color:#d7ef9c}
.squad-news-feed{display:flex;flex-direction:column;gap:7px}
.squad-news-item,a.squad-news-item{position:relative;display:block;width:100%;padding:10px 12px 10px;text-align:left;background:linear-gradient(130deg,#1b2427,#11191c 75%);border:1px solid #2b3637;border-radius:9px;box-shadow:inset 0 1px #ffffff03;color:inherit;text-decoration:none;overflow:hidden;min-height:105px;transition:border-color .15s,background .15s}
.squad-news-item:hover{border-color:#506259;background:linear-gradient(130deg,#24322f,#15211c)}
.squad-news-item:focus-visible,.squad-news-all:focus-visible{outline:2px solid #c8f25a;outline-offset:3px}
.squad-news-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 57px 7px 0;font-size:9px;letter-spacing:0;line-height:1.3;color:#97a5a9}
.squad-news-meta>span{color:inherit;font-size:inherit;white-space:nowrap}
.news-source-brand{display:flex;align-items:center;gap:6px;text-transform:uppercase;overflow:hidden;text-overflow:ellipsis}
.news-source-mark{width:17px;height:18px;flex:none;display:grid;place-items:center;border:1px solid #566369;border-radius:4px;font-weight:750;font-size:10px;letter-spacing:-.5px;background:#080e12;color:#f0f2f3}
.news-source-mark.source-kicker{background:#ec293e;border-color:#ec293e;font-size:15px;font-style:italic}
.squad-news-copy{display:block;padding-right:62px}
.squad-news-copy>strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:13px;font-weight:550;line-height:1.4;letter-spacing:-.1px;color:#edf2f2;margin:0 0 8px}
.squad-news-player{display:inline-flex;gap:5px;align-items:center;width:auto;max-width:100%;padding:3px 6px;border-radius:20px;background:#24312f88;color:#c1cdca;font-size:9px;line-height:1.2}
.squad-news-player img{width:12px;height:12px;object-fit:contain}
.squad-news-player>span:last-child{margin-left:0;color:inherit}
.news-portrait{position:absolute;right:10px;top:50%;transform:translateY(-42%);width:48px;height:60px;overflow:hidden;border-radius:30px 30px 24px 24px;background:radial-gradient(ellipse at 50% 40%,#42544755,#0d1714);border:1px solid #3d4b4055;mask-image:linear-gradient(#000 88%,transparent);-webkit-mask-image:linear-gradient(#000 88%,transparent)}
.news-portrait img{height:100%;width:100%;object-fit:cover;object-position:top}
.squad-news-all{display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding:12px 2px 0;border-top:1px solid #25312f;color:#e0e8e3;font-size:11px;font-weight:450;background:none}
.squad-news-all>span{color:#aab8ad}
.squad-news-all:hover{color:#d4ee95}
.squad-news-note{margin-top:10px;font-size:9px;line-height:1.5;color:#81928e}
.squad-news-empty{padding:22px 5px;color:#9dafaa;font-size:12px;line-height:1.6}
.squad-news-empty strong{font-size:14px;color:#e2ece4;font-weight:550}
.home .transfer{border-color:#25312f;font-size:11px}
.home .transfer b{font-size:11px}
.home-transfers{margin-top:24px;border-color:#26332f;padding-top:25px}
.home-transfers .ht-title{font-size:23px;letter-spacing:-.6px}
.home-transfers .transfer-market{border-radius:10px;border-color:#2a3731;overflow:hidden}
.side-stats{background:#101817;border-color:#2a3632}
.home-foot{border-color:#24312d}
/* Dialog surfaces and the account state use the same restrained materials. */
#window{border:1px solid #3b4845;border-radius:13px;background:#101719;box-shadow:0 25px 100px #000b;overflow:auto}
#window::backdrop{background:#020706bd;backdrop-filter:blur(7px)}
.window-heading{background:#172023;border-bottom:1px solid #2d3938;padding:17px 22px}
.window-heading>div>span{color:#a2adac;border-color:#3a4743}
.window-heading h2{font-size:14px;color:#e6ecea}
.window-heading .icon-button{width:29px;height:29px;border-radius:6px;color:#a9b6b2}
.window-heading .icon-button:focus-visible{outline:1px solid #8ba976;outline-offset:2px}
.window-body{padding:24px}
#window[data-window=account]{max-width:560px}
.account-identity{display:flex;align-items:center;gap:16px;margin:4px 0 27px}
.account-avatar{display:grid;place-items:center;width:62px;height:62px;border-radius:50%;border:1px solid #607749;background:#243322;color:#d6eaa8;font-size:21px;font-weight:600}
.account-identity p{font-size:9px;letter-spacing:.12em;color:#92a398;margin-bottom:6px}
.account-identity h3{font-size:26px;letter-spacing:-.7px;margin:0 0 5px;line-height:1.2;overflow-wrap:anywhere}
.account-identity>div>span{font-size:12px;color:#9eada6}
.account-connection{border:1px solid #304036;border-radius:10px;padding:16px;background:#141f1b}
.account-connection header{display:flex;gap:10px;align-items:center}
.account-service-mark{display:grid;place-items:center;width:34px;height:34px;font-size:20px;font-weight:800;background:#d2ed9a;color:#152212;border-radius:7px}
.account-connection header>div{flex:1;min-width:0}
.account-connection h4{font-size:13px;font-weight:600;margin:0 0 4px}
.account-connection p{font-size:11px;color:#9ead9f;overflow-wrap:anywhere}
.account-connection dl{margin:16px 0 0;border-top:1px solid #2b3a31;padding-top:4px}
.account-connection dl>div{display:flex;gap:20px;justify-content:space-between;font-size:12px;padding-top:12px}
.account-connection dt{color:#98a59d;flex-shrink:0}.account-connection dd{margin:0;color:#d5dfd8;text-align:right}
.account-session{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:24px}
.account-session strong{font-size:12px;font-weight:550}.account-session p{font-size:10px;color:#91a197;margin-top:5px;line-height:1.5}
.account-signout{display:flex;gap:18px;padding:10px 14px;border:1px solid #47554b;border-radius:7px;font-size:12px;background:#1c2921;white-space:nowrap}
.account-signout:hover{border-color:#9cac83;background:#2b3b2d}
.account-advanced{border-top:1px solid #2c3930;margin-top:24px;padding-top:17px}
.account-advanced summary{font-size:11px;color:#94a599;cursor:pointer}
.account-advanced p{font-size:11px;color:#91a195;line-height:1.6;margin:14px 0}
.account-disconnect{color:#ec929a;font-size:11px;text-decoration:none;padding:8px 0}
.news-window-intro h3{font-size:24px;letter-spacing:-.6px;margin-bottom:8px}.news-window-intro p{font-size:12px;color:#97a8a0;margin-bottom:22px}
.news-window-feed{display:grid;gap:10px}.news-window-feed .squad-news-item{padding:15px;min-height:122px}.news-window-feed .squad-news-copy>strong{font-size:15px;-webkit-line-clamp:unset}.news-window-feed .squad-news-meta{font-size:10px}.news-window-feed .squad-news-player{font-size:10px}.news-window-feed .news-portrait{width:58px;height:75px}
@media(min-width:1500px){.masthead .wordmark{font-size:48px}.masthead .team-switch{min-width:0}.masthead-inner,main{padding-inline:30px}.home-grid{gap:22px}.home-side .side-block{padding:20px}.home .side-title{font-size:20px}.home .standing{height:48px;font-size:14px;grid-template-columns:23px 31px minmax(0,1fr) auto;gap:11px}.home .standings{max-height:calc(30px + 5 * 48px)}.home .standing.labels{height:30px;font-size:11px}.home .standing b{font-size:14px}.home .standing .mgr-logo{width:31px;height:31px;font-size:10px}.squad-news-copy>strong{font-size:15px}.squad-news-copy{padding-right:72px}.squad-news-item,a.squad-news-item{min-height:124px}.squad-news-meta{font-size:10px;margin-right:70px}.squad-news-player{font-size:10px}.news-portrait{width:62px;height:78px}.squad-news-all{font-size:12px}.feed-status{font-size:11px}.lineup-heading h2{font-size:14px}.lineup-summary{font-size:11px}.elf-seg.scope-seg button{font-size:14px}.home .reserve-list .res-text>strong{font-size:12px}.home .reserve-list .reserve-fixture{font-size:10px}.home .reserve-list .reserve-score>b{font-size:14px}}
@media(max-width:1100px){.masthead-inner{gap:18px}.masthead-nav{gap:19px}.masthead .team-switch-name{max-width:130px}.home-grid{grid-template-columns:minmax(0,1fr) 310px;gap:14px}.home-side .side-block{padding:13px}.home .side-title{font-size:16px}.lineup-toolbar{inset:12px}.lineup-heading{padding:8px}.lineup-summary{gap:6px;font-size:9px}.elf-seg.scope-seg{gap:12px}.home .lineup-panel .token>strong{font-size:11px}.home .lineup-panel .token-data>span{margin-left:5px;padding-left:5px}}
@media(max-width:900px){.home-grid{grid-template-columns:1fr}.home-side{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:14px}.home-side .side-block{padding:16px}.home .lineup-panel .token>strong{font-size:14px}.home .lineup-panel .token-data>b{font-size:14px}.home .lineup-panel .token-data>span{font-size:10px}.masthead .main-nav-link{font-size:11px}.masthead-inner{gap:20px}.masthead .team-switch{max-width:180px}.masthead .wordmark{font-size:35px}.masthead .brand-rule{display:none}}
@media(max-width:680px){.masthead-inner,main{padding-inline:12px}.masthead-inner{height:62px;gap:14px}.masthead .wordmark{font-size:32px}.masthead .team-switch{padding:5px 0;gap:7px;max-width:166px}.masthead .team-switch-name{font-size:10px;max-width:105px}.masthead .team-switch-text small{font-size:8px}.masthead .team-switch .league-logo{width:27px;height:27px}.masthead-tools{gap:12px}.masthead .team-switch>.icon{display:block;margin-left:2px}.home{padding-top:12px}.home-side{display:flex;gap:12px;align-items:stretch}.home-side .side-block{padding:16px}.home .side-title{font-size:18px}.home .standing{font-size:13px;height:43px}.home .standing b{font-size:13px}.home .standings{max-height:calc(28px + 5 * 43px)}.lineup-toolbar{inset:10px}.lineup-heading h2{font-size:10px}.lineup-summary{font-size:8px;gap:5px;margin-top:4px}.lineup-shape{padding-left:5px}.elf-seg.scope-seg{gap:10px}.elf-seg.scope-seg button{font-size:10px}.elf-controls{gap:5px}.status-key summary{width:23px;height:23px}.home .lineup-panel .pitch{border-radius:9px}.home .lineup-panel .token{width:min(var(--row-card),calc(100% / var(--line-count) - 4px));max-width:none}.home .lineup-panel .token>strong{font-size:clamp(8px,calc(11cqw / var(--line-count)),12px);padding:5px 2px;letter-spacing:-.3px}.home .lineup-panel .token-data{padding:5px 1px}.home .lineup-panel .token-data>b{font-size:10px}.home .lineup-panel .token-data>span{font-size:7px;margin-left:3px;padding-left:3px}.home .lineup-panel .token .portrait-wrap .club.crest{width:clamp(18px,5cqw,24px);height:clamp(18px,5cqw,24px);left:-20%;bottom:3px}.home .lineup-panel .token .availability-icon{width:20px;height:20px;right:-15%;top:1%}.home .lineup-panel .formation-row{gap:0}.home .squad-view{padding:78px 10px 12px}.reserve-bench{padding:11px 10px;margin-top:10px}.home .reserve-list{grid-auto-columns:165px;gap:7px}.home .reserve-list>button,.home .reserve-list>button:first-child{padding:8px 6px;gap:5px}.home .reserve-list .reserve-portrait{width:29px;height:45px;flex-basis:29px}.home .reserve-list .res-text>strong{font-size:10px}.home .reserve-list .reserve-fixture{font-size:8px;gap:3px}.home .reserve-list .reserve-fixture .club.crest{width:12px;height:12px;min-width:12px}.home .reserve-list .reserve-score>b{font-size:11px}.home .reserve-list .reserve-score>small{font-size:7px}.squad-news-item,a.squad-news-item{min-height:116px;padding:12px}.squad-news-meta{font-size:9px}.squad-news-copy>strong{font-size:13px}.squad-news-player{font-size:9px}.squad-news-all{font-size:11px}.home-transfers{margin-top:18px;padding-top:21px}.home .ht-head .side-stats{width:100%;min-width:0}.home .ht-head{gap:15px}.window-body{padding:18px}.window-heading{padding:15px 18px}.account-connection{padding:12px}.account-session{gap:12px}.account-identity h3{font-size:23px}.account-connection .feed-status{font-size:9px;padding:4px 6px}}
@media(prefers-reduced-motion:reduce){.squad-news-item{transition:none}}

/* Supplied cinematic stadium: its photographed markings replace the SVG overlay. */
.elf-seg.scope-seg{height:35px;gap:3px;padding:3px;border:1px solid #3b515b70;border-radius:22px;background:#071117ed;backdrop-filter:blur(8px);box-shadow:0 2px 10px #0005}
.elf-seg.scope-seg button{height:27px;padding:0 12px;border:1px solid transparent;border-radius:18px;font-size:11px;color:#aab8c1}
.elf-seg.scope-seg button.active{border-color:#a2ca57;background:linear-gradient(#1b3020,#0a1b12);box-shadow:inset 0 0 0 1px #b4d76530;color:#f1f5ec}
.status-key summary{background:#071117d9;border-color:#3b515b80}
.lineup-heading{background:linear-gradient(135deg,#0a161ded,#0a151ce6);border-color:#3f596570}
@media(min-width:1500px){.elf-seg.scope-seg{height:40px}.elf-seg.scope-seg button{height:32px;font-size:13px;padding-inline:16px}}
@media(max-width:680px){.elf-seg.scope-seg{height:30px;padding:2px;gap:1px}.elf-seg.scope-seg button{height:24px;font-size:9px;padding-inline:8px}.lineup-toolbar{gap:7px}.lineup-heading{padding:7px}}

/* Dense mobile midfields use a fifth visual row without increasing pitch height. */
@media(max-width:680px){
 .home .lineup-panel .pitch:has([data-line="MF"][data-count="5"], [data-line="MF"][data-count="6"]){--visual-rows:5;min-height:480px}
 .home .pitch:has([data-line="MF"][data-count="5"], [data-line="MF"][data-count="6"]) [data-line="ST"]{--row-offset:4}
 .home .lineup-panel .formation-row[data-line="MF"]:is([data-count="5"],[data-count="6"]){flex-wrap:wrap;justify-content:center;gap:10px 8px}
 .home .lineup-panel .formation-row[data-line="MF"]:is([data-count="5"],[data-count="6"]) .token{width:calc((100% - 16px) / 3)}
}

/* Floating player name and a compact pill: points, S11 bars and the next fixture. */
.home .lineup-panel .player-name{position:relative;display:block;width:100%;padding:1px 2px 3px;color:#f7faf7;font-size:clamp(12px,1.05vw,17px);font-weight:700;line-height:1.15;letter-spacing:-.25px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 3px #000,0 0 9px #000c;background:radial-gradient(ellipse at center,#04110dc9,transparent 74%)}
.home .lineup-panel .player-plate{display:block;width:100%;position:relative;border:1px solid #6c879166;border-radius:999px;background:linear-gradient(150deg,#0b191feF,#071015f2);box-shadow:0 3px 7px #0004;overflow:hidden}
.home .lineup-panel .player-plate-metrics{display:flex;justify-content:center;align-items:center;gap:8px;padding:4px 8px 1px;line-height:1}
.home .lineup-panel .player-plate-metrics>b{font-size:clamp(13px,1.15vw,18px);font-weight:650;white-space:nowrap;font-variant-numeric:tabular-nums}
.home .lineup-panel .player-plate-metrics .points-average{font-size:.65em;font-weight:400;color:#b0c0c7}
.starting-probability{display:inline-flex;align-items:center;flex-shrink:0;color:#8398a0}
.probability-bars{display:flex;align-items:stretch;gap:2px;height:13px}
.probability-bars i{display:block;width:4px;height:100%;border:1px solid currentColor;border-radius:1px;background:#8398a01c;box-sizing:border-box}
.home .lineup-panel .player-plate-metrics>.starting-probability{padding-left:8px;border-left:1px solid #8babb138}
.probability-key-row>.starting-probability{width:28px;justify-content:center}
.home .lineup-panel .player-plate-fixture{display:block;padding:2px 4px 4px;color:#a7c1d4;font-size:9px;font-weight:450;line-height:1;letter-spacing:.02em;white-space:nowrap}

.home .lineup-panel .token:hover .player-plate,.home .lineup-panel .token:focus-visible .player-plate{border-color:#a3bd8d;background:#122329}
.home .lineup-panel .empty-plate>strong{display:block;font-size:12px}
@media(max-width:680px){
 .home .lineup-panel .player-name{font-size:clamp(9px,calc(12cqw / var(--line-count)),12px);padding-bottom:3px}
 .home .lineup-panel .player-plate{border-radius:999px}
 .home .lineup-panel .player-plate-metrics{gap:4px;padding:4px 2px 1px}
 .home .lineup-panel .player-plate-metrics>.starting-probability{padding-left:4px}
 .home .lineup-panel .probability-bars{gap:1px;height:10px}
 .home .lineup-panel .probability-bars i{width:3px}
 .home .lineup-panel .player-plate-metrics>b{font-size:12px}
 .home .lineup-panel .player-plate-fixture{font-size:8px;padding:3px 2px 4px}

}

/* Standalone bench moves and accessible empty-position selection. */
.swap-options>.bench-option{width:100%;justify-content:space-between;padding:12px 14px;margin-bottom:9px;border:1px solid #46585c;border-radius:7px;background:#162125;color:#e9efec;font-weight:600}
.swap-options>.bench-option small{color:#9dadad;font-size:11px;font-weight:400}
.home .lineup-panel .token.empty-slot{cursor:pointer}
.home .lineup-panel .empty-slot:focus-visible .empty-ring,.home .lineup-panel .empty-slot:hover .empty-ring{border-color:#c8f25a;color:#c8f25a}
.reserve-bench.drop-ok{position:relative;border-color:#8eae5a;background:#142018;box-shadow:inset 0 0 0 1px #8eae5a40}
.reserve-bench.drop-hover{border-color:#c8f25a;background:#1b2a19}
.reserve-bench.drop-hover::after{content:attr(data-swap-in);top:8px;bottom:auto;left:auto;right:12px;transform:none;font-size:11px}
.bench-candidates{display:grid;gap:8px;margin-top:18px}
.bench-candidates>button{display:flex;align-items:center;gap:13px;border:1px solid #344145;border-radius:8px;padding:9px 12px;text-align:left}
.bench-candidates>button:hover{border-color:#c8f25a;background:#16251b}
.bench-candidates>button>span{display:grid;gap:3px}.bench-candidates small{color:#9daaaa;font-size:11px}
.bench-candidates>button>b{margin-left:auto;font-size:12px;color:#c8f25a;font-weight:500}

.home .lineup-panel .empty-slot .empty-ring{color:#d6e2d6;border-color:#a9bfac;background:#101e18bd}
.home .lineup-panel .empty-plate{border-style:dashed;border-color:#789282}
.home .lineup-panel .empty-plate>strong{padding:6px 4px}

/* The news feed fills the sidebar now that the standings panel is removed. */
.home-side .squad-news{grid-column:1 / -1}

.reserve-navigation{display:flex;gap:5px;margin-left:auto}
.reserve-navigation button{display:grid;place-items:center;width:22px;height:22px;border:1px solid #344247;border-radius:50%;color:#cbd6d7;background:#152024;font-size:16px;line-height:1}
.reserve-navigation button:hover:not(:disabled){border-color:#a6c778;color:#d7edaa}
.reserve-navigation button:disabled{opacity:.3;cursor:default}
.home .reserve-heading{align-items:center;padding-bottom:7px}
.home .reserve-list::-webkit-scrollbar{display:none}

/* Match the rear advertising board to the stadium image's fixed crop. */
.home .stadium-advertising{position:absolute;inset:0;z-index:0;pointer-events:none;user-select:none}
.home .stadium-advertising span{position:absolute;top:calc(13.65% + 2px);transform:translate(-50%,-50%);font:800 italic 2.8cqh/.9 'Barlow Condensed',Impact,sans-serif;letter-spacing:-.035em;color:#ecf4fa;white-space:nowrap;text-shadow:0 0 4px #a8d9ff45;opacity:.92}
.home .stadium-advertising span:first-child{left:34%}
.home .stadium-advertising span:last-child{left:66%}

/* Incomplete formations accept reserve players on their natural line. */
.home .lineup-panel .formation-row.drop-ok{min-height:min(80px,calc(var(--row-step) - 8px));border-radius:12px;outline:1px dashed #c3ee6f77;background:#bdec6310}
.home .lineup-panel .formation-row.drop-hover{outline:2px solid #c4ef72;background:#bdec6322}
.home .lineup-panel .formation-row.drop-hover::after{content:attr(data-swap-in);position:absolute;right:8px;top:4px;padding:4px 8px;background:#101d15;border-radius:6px;color:#d6f29f;font-size:11px;pointer-events:none}
.window-player-row{grid-template-columns:42px 1fr 70px}

/* Head-and-chest crop: the cached DFL photos cover 80% of the body source;
   exposing the top 60% matches the verified CDN crop=10,0,75,48 rendition.
   Only the image is clipped, so club and availability badges remain visible. */
.home .lineup-panel .token:not(.empty-slot) .portrait-wrap{width:min(calc(var(--row-portrait) * 1.12),80%);aspect-ratio:325 / 256;height:auto;z-index:2;margin-bottom:-1px}
.home .lineup-panel .portrait-cutout{position:absolute;inset:0;display:block;overflow:hidden}
.home .lineup-panel .portrait-cutout>img{position:absolute;top:0;left:0;display:block;width:100%;height:auto;max-width:none;object-fit:contain;object-position:center top;filter:drop-shadow(0 2px 3px #0004)}
.home .lineup-panel .token .portrait-wrap .club.crest{left:-8%;bottom:3px;width:28%;height:auto;aspect-ratio:1;z-index:3}
.home .lineup-panel .player-plate{border-radius:9px;background:linear-gradient(145deg,#101f28f5,#081218f7);border-color:#617d8b80;box-shadow:0 3px 9px #0005}
.home .lineup-panel .player-plate .player-name{padding:5px 4px 4px;background:none;text-shadow:none;font-size:clamp(11px,.98vw,16px);font-weight:650;line-height:1.2}
.home .lineup-panel .player-plate-metrics{padding:3px 6px 2px;gap:7px}
.home .lineup-panel .player-plate-fixture{padding:3px 4px 6px;color:#a7bac6}
.home .lineup-panel .token:focus-visible{outline:none}
.home .lineup-panel .token:focus-visible .player-plate{outline:2px solid #c8f25a;outline-offset:2px}
@media(max-width:680px){
 .home .lineup-panel .player-plate{border-radius:6px}
 .home .lineup-panel .player-plate .player-name{font-size:clamp(8px,calc(11cqw / var(--line-count)),12px);padding:4px 2px 3px}
 .home .lineup-panel .player-plate-metrics{padding:2px 2px;gap:3px}
 .home .lineup-panel .player-plate-fixture{padding:3px 2px 5px}
 .home .lineup-panel .token .portrait-wrap .club.crest{width:clamp(14px,3.5cqw,22px);height:auto;left:-10%;bottom:2px}
}
