/* Shared page rhythm and navigation across the league and tools. */
.roster-actual,.roster-projection{white-space:nowrap;word-break:normal;overflow-wrap:normal;font-variant-numeric:tabular-nums}
@media(min-width:421px){.starter-matchup .rich-player.roster-player{grid-template-columns:32px minmax(0,1fr) 68px}}
html{scroll-padding-top:var(--header-offset,130px)}
main,main>*,.lower-grid>*,.section-head>*,.home-hub>*,.trade-sides>*{min-width:0}
main{margin-inline:auto}
header nav a,.mobile-nav a{transition:color .15s,background .15s}
header nav a[aria-current],.mobile-nav a[aria-current]{color:var(--gold);background:#e9c66512;border-radius:7px}
header nav a[aria-current]{box-shadow:inset 0 -2px var(--gold)}
header nav a{padding:8px 10px}
header nav{gap:8px;flex-wrap:wrap}
.section-head{gap:16px}
.data-bar{gap:12px}
.data-bar p{min-width:0;margin-block:0}
button,select,input{min-height:44px}
select{color-scheme:dark}
input[type=search]{scroll-margin-top:140px}
.lineup-results,.player-results,#team-updates-content{scrollbar-width:thin;scrollbar-color:#65705e transparent;scrollbar-gutter:stable}
.lineup-main .compare-button{position:static;min-height:48px;border-radius:8px}
.lineup-browser{margin-block:20px}
.lineup-results{height:280px;overscroll-behavior:contain}
.selection-card{min-width:0}
.lineup-main #compare-form{grid-column:1/-1;width:100%;min-width:0}
.lineup-main .lineup-browser{width:100%;margin-block:20px}
#prize-dialog{width:min(1080px,calc(100% - 40px));max-width:none;max-height:calc(100dvh - 40px);padding:22px;border:1px solid #a68d48;border-radius:16px;background:var(--bg);overflow-y:auto;scrollbar-gutter:stable}
#prize-dialog::backdrop{background:#000b;backdrop-filter:blur(5px)}
#prize-dialog .dialog-head{position:sticky;top:-22px;background:var(--bg);z-index:2;padding:12px 0;margin-bottom:16px}
#prize-dialog .dialog-head button{min-width:44px;flex-shrink:0}
#prize-dialog .prize-section{margin:0;padding:24px}
#prize-dialog .prize-heading{margin-bottom:24px}
#prize-dialog .prize-trophy{max-height:160px}
#prize-dialog .prize-card{padding-inline:16px}
@media(min-width:701px){#prize-dialog .prize-section{padding:20px}#prize-dialog .prize-heading h2{font-size:42px}#prize-dialog .total-pot strong{font-size:60px}#prize-dialog .prize-card{padding-block:22px 18px}#prize-dialog .prize-champion{padding-top:38px}#prize-dialog .prize-trophy{height:120px;width:100px;margin-bottom:12px}#prize-dialog .prize-amount{font-size:58px;margin-block:14px 10px}#prize-dialog .prize-champion .prize-amount{font-size:76px}#prize-dialog .prize-share{margin-bottom:16px}}
@media(max-width:700px){#prize-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);padding:14px;border-radius:12px}#prize-dialog .dialog-head{top:-14px;margin-bottom:10px}#prize-dialog .prize-section{padding:16px}#prize-dialog .prize-heading{gap:12px}}
.selected-info{overflow-wrap:anywhere;line-height:1.45}
.trade-side h2{line-height:1.15}
.trade-toolbar{gap:8px}
.source-panel,.method{line-height:1.65}
.tool-link small{line-height:1.5}
#tools-menu{width:min(440px,calc(100% - 32px));padding:22px;border-radius:14px}
#tools-menu .dialog-head{gap:16px;align-items:center}
#tools-menu .dialog-head button{flex-shrink:0;min-width:44px}
@media(min-width:701px) and (max-width:1100px){header nav{gap:8px 16px}}
@media(max-width:700px){
 html{scroll-padding-top:16px}
 body{padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 main{width:calc(100% - 28px);margin-inline:auto;padding-bottom:24px}
 .start-main{width:100%;margin:0;padding:24px 14px 32px}
 .mobile-nav{padding:6px 8px calc(8px + env(safe-area-inset-bottom,0px))}
 .mobile-nav a{min-height:48px;font-size:12px}
 .mobile-nav a[aria-current]{box-shadow:inset 0 2px var(--gold)}
 .section-head{align-items:center}
 .section-head h2{line-height:1.15}
 .data-bar{align-items:center;flex-wrap:wrap;padding-block:14px}
 .data-bar p{flex:1;font-size:12px;line-height:1.5}
 .data-bar button{font-size:13px;padding:8px 12px}
 .home-hub .team-picker-hint{line-height:1.5}
 .my-team-panel{padding:14px}
 #open-my-roster{padding:9px 12px;font-size:13px;white-space:nowrap}
 .lineup-main .compare-panel .section-head{gap:10px;margin-bottom:18px}
 .lineup-main .compare-panel .section-head h2{font-size:25px}
 .selection-cards{gap:8px}
 .selection-card{flex:1 1 120px;padding:12px}
 .selection-card .eyebrow{font-size:10px;letter-spacing:1px}
 .selected-info{font-size:14px;min-height:44px;margin:10px 0}
 .selected-info small{font-size:12px}
 .lineup-option{min-height:72px}
 .lineup-name strong{font-size:14px}
 .lineup-name small{font-size:12px}
 .lineup-points{font-size:17px}
 .lineup-points small{font-size:10px}
 .add-third{margin-top:0}
 .trade-mini{position:static;margin-inline:0;border-radius:8px}
 .position-filters{gap:5px}
 .position-filters button{min-height:40px;flex:1;padding:6px 7px;font-size:12px}
 .trade-toolbar button{flex:1;white-space:nowrap}
 .trade-main .trade-side h2{font-size:30px;margin-bottom:16px}
 .source-panel{padding:18px}
 .expert-links{gap:8px}
 footer{margin-top:24px;gap:14px;padding:22px 14px}
}
@media(max-width:420px){header{flex-wrap:nowrap;gap:8px;padding-block:14px}header .brand{font-size:14px;gap:8px;flex-shrink:0}header .brand small{font-size:7px;letter-spacing:1px}header .brand-mark{width:34px;height:42px;font-size:27px;line-height:35px}header .brand-mark span{left:10px}header .sleeper{width:auto;font-size:11px;padding:10px 8px;white-space:nowrap;margin-left:auto}header .brand{margin:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

.standings-sort{display:inline-flex;align-items:center;gap:6px;min-height:44px;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:0 4px}.standings-sort:hover,.standings-sort:focus-visible,th[aria-sort="ascending"] .standings-sort,th[aria-sort="descending"] .standings-sort{color:var(--gold,#e8c765)}.standings-sort span{width:1em;text-align:center}

/* Standings share the player-card treatment without changing table alignment. */
#standings table{border-collapse:separate;border-spacing:0 6px}
#standings tbody tr,#standings tbody tr:first-child{background:transparent;cursor:pointer}
#standings tbody td{background:#202620;border-top:1px solid #ffffff0b;border-bottom:1px solid #ffffff0b;transition:background .16s,border-color .16s;padding-top:16px;padding-bottom:16px}
#standings tbody td:first-child{border-left:1px solid #ffffff0b;border-radius:8px 0 0 8px}
#standings tbody td:last-child{border-right:1px solid #ffffff0b;border-radius:0 8px 8px 0}
#standings tbody tr:is(:hover,:focus-within) td{background:#2b3328;border-color:#786a3b}
#standings .stand-team button{background:transparent;font-weight:700;min-height:40px}
#standings tbody tr:active td{background:#2b3328;border-color:#786a3b}
@media(max-width:700px){#standings tbody td{padding-top:12px;padding-bottom:12px}}
@media(max-width:520px){#standings tbody td:nth-child(4){border-right:1px solid #ffffff0b;border-radius:0 8px 8px 0}}

@media(max-width:520px){
#standings .pa{display:table-cell}
#standings table{table-layout:fixed;width:100%;font-size:12px}
#standings th,#standings td{padding-inline:5px}
#standings th:first-child,#standings td:first-child{width:28px}
#standings th:nth-child(3){width:58px}
#standings th:nth-child(4),#standings th:nth-child(5){width:57px}
#standings .stand-team button{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
#standings tbody td:nth-child(4){border-right:0;border-radius:0}
#standings tbody td:last-child{border-right:1px solid #ffffff0b;border-radius:0 8px 8px 0}
#standings tbody tr:is(:hover,:focus-within,:active) td:last-child{border-right-color:#786a3b}
#standings .standings-sort{gap:3px;letter-spacing:0;padding:0;white-space:nowrap}
#standings .standings-sort span{font-family:Arial,sans-serif;font-variant-emoji:text}
}

.selection-card{cursor:pointer;transition:border-color .15s,background .15s}.selection-card:hover,.selection-card:focus-within{border-color:#a68d48;background:#252c22}.selection-card .selected-info{width:100%;text-align:left;border:0;padding:10px 0;min-height:60px;background:transparent;color:var(--white);font:inherit;display:block}.selection-card .selected-info small{display:block;color:var(--muted);margin-top:6px}.selection-card .selected-info:empty{min-height:60px}
#lineup-picker{width:min(720px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);border:1px solid #a68d48;border-radius:14px;padding:22px;background:#1b211b;overflow:auto}
.picker-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:18px}.picker-head .eyebrow{margin:0 0 5px}.picker-head h2{font-size:28px}.picker-head p.muted{font-size:13px;margin:6px 0 0}#picker-close{height:44px;width:44px;flex:none;font-size:24px}#lineup-picker .lineup-browser{margin:0}#lineup-picker .lineup-results{height:auto;max-height: min(440px,50dvh);overflow-y:auto;scrollbar-gutter:stable}#lineup-picker #player-search{width:100%;min-height:48px;margin:8px 0 12px}#lineup-picker .lineup-option{min-height:72px}#lineup-picker .lineup-name{min-width:0}#lineup-picker .lineup-points{white-space:nowrap}
@media(max-width:520px){#lineup-picker{width:calc(100vw - 20px);max-height:calc(100dvh - 24px);padding:16px}.picker-head h2{font-size:25px}#lineup-picker .lineup-option{gap:8px;padding:12px 8px}#lineup-picker .lineup-name strong{font-size:14px}#lineup-picker .lineup-points{font-size:17px}}

.starter-matchup .roster-actual.is-projected{color:var(--gold)}

#lineup-picker .lineup-option{display:flex;align-items:center;gap:12px}#lineup-picker .picker-photo{width:48px;height:54px;flex:0 0 48px;object-fit:cover;object-position:center 18%;border-radius:8px;background:#141b16}#lineup-picker .picker-photo.defense-portrait{object-fit:contain;padding:4px}#lineup-picker .lineup-name{flex:1}#lineup-picker .lineup-position{flex-shrink:0}.selection-card .picker-photo{width:52px;height:58px;object-fit:cover;object-position:center 18%;border-radius:8px;background:#141b16;float:left;margin-right:12px}.selection-card .picker-photo.defense-portrait{object-fit:contain;padding:4px}@media(max-width:520px){#lineup-picker .picker-photo{width:38px;height:46px;flex-basis:38px}#lineup-picker .lineup-option{gap:8px}#lineup-picker .lineup-position{font-size:10px;min-width:24px;padding:6px 3px}#lineup-picker .lineup-points small{font-size:10px}}

.trade-add-players{width:100%;min-height:64px;margin:20px 0;background:#252c22;border:1px solid #a68d48;color:var(--gold);font-weight:700}.trade-picker-dialog{width:min(720px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:20px;border-radius:14px;border-color:#a68d48;background:#1b211b}.trade-picker-dialog .player-picker{margin:0;border:0;padding:0}.trade-picker-dialog .player-results{max-height:50dvh;height:auto}.trade-photo{width:44px;height:50px;object-fit:cover;object-position:center 18%;border-radius:8px;background:#141b16;flex-shrink:0}.trade-picker-dialog .player-option{display:flex;gap:10px}.trade-picker-dialog .option-name{flex:1;min-width:0}.trade-player .trade-photo{width:40px;height:46px}@media(max-width:520px){.trade-picker-dialog{padding:14px}.trade-picker-dialog .player-option{gap:7px}.trade-photo{width:34px;height:42px}.trade-picker-dialog .option-name strong{font-size:13px}}

/* Fixed portrait and score columns keep every picker row aligned. */
#lineup-picker .lineup-option,.trade-picker-dialog .player-option{display:grid;grid-template-columns:32px 48px minmax(0,1fr) 90px 20px;gap:12px;align-items:center;width:100%;padding:12px;min-height:80px}
#lineup-picker .lineup-position,.trade-picker-dialog .position-badge{grid-column:1;width:32px;min-width:0;text-align:center;padding:8px 2px}
#lineup-picker .picker-photo,.trade-picker-dialog .trade-photo{grid-column:2;width:48px;height:54px;margin:0}
#lineup-picker .lineup-name,.trade-picker-dialog .option-name{grid-column:3;min-width:0;text-align:left;overflow-wrap:anywhere}
#lineup-picker .lineup-points,.trade-picker-dialog .option-value{grid-column:4;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
#lineup-picker .lineup-option>span:last-child,.trade-picker-dialog .add-symbol{grid-column:5;text-align:center}
.selection-card .selected-info:has(img){display:grid;grid-template-columns:52px minmax(0,1fr);column-gap:12px;align-content:center}.selection-card .selected-info .picker-photo{grid-column:1;grid-row:1/3;float:none;margin:0}.selection-card .selected-info strong,.selection-card .selected-info small{grid-column:2;min-width:0;overflow-wrap:anywhere}
#lineup-picker,.trade-picker-dialog{overscroll-behavior:contain}#lineup-picker .lineup-results,.trade-picker-dialog .player-results{padding-right:4px;scrollbar-gutter:stable}
@media(max-width:520px){#lineup-picker .lineup-option,.trade-picker-dialog .player-option{grid-template-columns:26px 38px minmax(0,1fr) 64px 16px;gap:7px;padding:10px 6px;min-height:74px}#lineup-picker .lineup-position,.trade-picker-dialog .position-badge{width:26px;font-size:10px}#lineup-picker .picker-photo,.trade-picker-dialog .trade-photo{width:38px;height:46px}#lineup-picker .lineup-points,.trade-picker-dialog .option-value{font-size:16px}#lineup-picker .lineup-name strong,.trade-picker-dialog .option-name strong{font-size:13px}#lineup-picker .lineup-name small,.trade-picker-dialog .option-name small{font-size:11px}}

.trade-photo.defense-portrait{object-fit:contain;object-position:center;padding:4px}

/* Give names room on phones while keeping values and tap targets clear. */
@media(max-width:520px){
 #lineup-picker .picker-head button,.trade-picker-dialog .picker-head button{min-width:44px;min-height:44px}
 .starter-matchup .roster-player-name strong{font-size:12px;line-height:1.4}
 .starter-matchup .roster-player-name small{font-size:11px;line-height:1.4}
 .starter-matchup .rich-player .roster-game-status,.starter-matchup .rich-player .roster-statline{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
 #lineup-picker .lineup-option,.trade-picker-dialog .player-option{grid-template-columns:38px minmax(0,1fr) 60px;grid-template-rows:auto auto;gap:6px 10px;padding:12px 8px}
 #lineup-picker .picker-photo,.trade-picker-dialog .trade-photo{grid-column:1;grid-row:1;width:38px;height:46px}
 #lineup-picker .lineup-position,.trade-picker-dialog .position-badge{grid-column:1;grid-row:2;justify-self:center;padding:3px 2px}
 #lineup-picker .lineup-name,.trade-picker-dialog .option-name{grid-column:2;grid-row:1/3}
 #lineup-picker .lineup-points,.trade-picker-dialog .option-value{grid-column:3;grid-row:1;font-size:15px}
 #lineup-picker .lineup-option>span:last-child,.trade-picker-dialog .add-symbol{grid-column:3;grid-row:2}
 #lineup-picker input,.trade-picker-dialog input,.trade-side select,.filters select{font-size:16px}
}

.my-team-week-control{display:flex;gap:10px;align-items:center;font-size:14px;color:#c4cec5;flex-shrink:0}.my-team-week-control select{min-height:44px;font-size:16px;max-width:100%}.my-team-panel>.section-head{flex-wrap:wrap;gap:12px}#my-roster-preview{max-height:none;overflow:visible}@media(max-width:380px){.my-team-week-control{width:100%;justify-content:space-between}.my-team-week-control select{flex:1;margin-left:10px}}

/* Clear matchup positions, score meanings, and actionable roster alerts. */
.starter-context{font-size:12px;line-height:1.6;color:#c4cec5;margin:4px 0 16px}.starter-matchup .matchup-slot{display:flex;align-items:center;gap:10px;margin:14px 0 8px;font-size:11px;letter-spacing:1px}.starter-matchup .matchup-slot::after{content:'';height:1px;flex:1;background:#ffffff16}
.starter-matchup .roster-player-name strong{font-size:14px;line-height:1.4}.starter-matchup .rich-player .roster-actual{font-size:20px}.starter-matchup .roster-statline:empty{display:none}.starter-matchup .rich-player.roster-player{min-height:104px}.starter-team-head{align-items:start;gap:16px}.starter-team-scores{display:block;margin-top:8px}.starter-team-scores .team-actual{color:#6ee3cf;font-size:17px}.starter-team-scores .team-actual small{font-size:10px;display:inline;color:#b7c5bc}.starter-team-head .team-projected{display:block!important;color:var(--gold)!important;font-size:14px!important;margin-top:3px!important}
.team-score-stack{text-align:right;flex-shrink:0;min-width:88px}.team-score-stack .score{display:block;color:#6ee3cf!important;margin:0}.actual-label{display:block;font-size:10px;color:#bbc8c0}.team-projected{display:block;font-size:14px;line-height:1.5;color:var(--gold);font-variant-numeric:tabular-nums;margin-top:5px}.team-projected span{font-size:10px}
#lineup-alerts{padding:20px;border:1px solid #a17c46;border-radius:12px;background:#342b1c55;margin-bottom:20px}#lineup-alerts[hidden]{display:none}#lineup-alerts h3{margin:0 0 12px;font-size:18px;color:var(--gold)}.lineup-alert{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #ffffff15;padding:12px 0}.lineup-alert strong,.lineup-alert span{display:block}.lineup-alert span{font-size:13px;color:#edb98d}.lineup-alert a{font-size:13px;color:var(--gold);min-height:44px;display:flex;align-items:center}.lineup-alert small,#lineup-alerts>p{font-size:12px;color:#c4cec5;line-height:1.6}#lineup-alerts>p{margin:8px 0 0}
@media(max-width:600px){.starter-matchup .roster-player-name strong{font-size:12px}.starter-matchup .rich-player .roster-actual{font-size:18px}.starter-matchup .rich-player.roster-player{min-height:112px}.starter-team-head{font-size:12px}.team-score-stack{min-width:78px}.team-projected{font-size:13px}#lineup-alerts{padding:16px}.lineup-alert{flex-wrap:wrap;gap:4px}.lineup-alert>div{width:100%}.lineup-alert a{padding-block:6px}}

.starter-row{position:relative}.starter-row .starter-pair{gap:32px}.starter-row .matchup-slot{position:absolute;left:50%;top:28px;transform:translateX(-50%);z-index:1;display:grid;place-items:center;width:38px;height:38px;margin:0;border:1px solid #5e6044;border-radius:50%;background:#252b22;color:var(--gold);font-size:10px;letter-spacing:0;box-shadow:0 0 0 4px #1b211b}.starter-row .matchup-slot::after{display:none}
@media(max-width:600px){.starter-row .starter-pair{gap:22px}.starter-row .matchup-slot{width:30px;height:30px;top:38px;font-size:9px;box-shadow:0 0 0 2px #1b211b}}

/* Mirrored head-to-head cards with both score types always visible. */
.starter-pair{align-items:stretch}.starter-side{display:flex}.matchup-player-card{display:flex;flex-direction:column;width:100%;text-align:left;padding:12px;background:#20281f;border:1px solid #343c31;border-radius:10px;gap:10px;color:var(--white);min-width:0}.matchup-player-card:hover{border-color:#b29a52;background:#252e24}.matchup-player-identity{display:flex;align-items:center;gap:9px;min-width:0}.matchup-player-identity>img{width:36px;height:42px;object-fit:cover;object-position:center 18%;border-radius:7px;flex:none;background:#151c16}.matchup-player-identity>img.defense-portrait{object-fit:contain;padding:3px}.matchup-player-identity .roster-player-name{min-width:0}.matchup-player-identity strong{display:block;font-size:14px;line-height:1.35;overflow-wrap:anywhere}.matchup-player-identity small{display:block;font-size:11px;color:#b8c8bc;margin-top:3px}.matchup-player-identity .injury-tag{display:inline-block;font-size:10px;margin-top:4px;max-width:100%;overflow-wrap:anywhere}
.matchup-player-scores{display:flex;justify-content:space-between;gap:12px;font-variant-numeric:tabular-nums}.matchup-player-scores>span{font-size:21px;font-weight:700;line-height:1.3}.matchup-player-scores small{display:block;font-size:10px;font-weight:400;color:#c4cec5;margin-top:2px}.matchup-projected{color:var(--gold)}.matchup-actual{color:#6ee3cf;text-align:right}.matchup-game{display:flex;align-items:start;gap:6px;font-size:11px;line-height:1.5;color:#bdcec1;flex-wrap:wrap}.game-badge{display:inline-block;padding:2px 6px;border-radius:4px;font-size:9px;line-height:1.5;font-weight:700;border:1px solid #64746255;background:#64746220;color:#d2dfcf;flex:none}.game-live{color:#6ee3cf;border-color:#6ee3cf66;background:#6ee3cf12}.game-final{color:#e9c665;border-color:#e9c66566;background:#e9c66512}.game-bye{color:#c5b4fa;border-color:#c5b4fa55;background:#c5b4fa12}.matchup-statline{font-size:11px;line-height:1.5;color:#c4d8cc;border-top:1px solid #ffffff10;padding-top:7px;overflow-wrap:anywhere}
.starter-side[data-side="1"] .matchup-player-card{text-align:right}.starter-side[data-side="1"] .matchup-player-identity,.starter-side[data-side="1"] .matchup-player-scores{flex-direction:row-reverse}.starter-side[data-side="1"] .matchup-actual{text-align:left}.starter-side[data-side="1"] .matchup-game{justify-content:flex-end}.starter-row{margin-bottom:12px}.starter-row .matchup-slot{top:48px}
.starter-matchup>.starter-team-head{position:sticky;top:var(--header-offset,120px);z-index:3;background:#1b211bf7;padding:12px 0;border-bottom:1px solid #ffffff16;margin-bottom:12px;backdrop-filter:blur(10px)}.starter-team-scores .team-actual{font-size:25px;font-weight:700}.starter-team-head .team-actual small{display:inline!important;font-size:10px!important;color:#bdcec1!important}.starter-context{margin-bottom:12px;font-size:11px}#matchup-dialog .starter-team-head{position:sticky;top:76px}
@media(max-width:700px){.starter-matchup>.starter-team-head{top:0}.matchup-player-card{padding:9px;gap:8px}.matchup-player-identity{gap:6px}.matchup-player-identity>img{width:28px;height:34px}.matchup-player-identity strong{font-size:12px}.matchup-player-identity small{font-size:10px}.matchup-player-scores>span{font-size:18px}.matchup-player-scores small{font-size:9px}.matchup-game,.matchup-statline{font-size:10px}.starter-team-scores .team-actual{font-size:22px}#matchup-dialog .starter-team-head{position:sticky;top:76px}}
@media(max-width:360px){.matchup-player-card{padding:7px}.matchup-player-identity{flex-wrap:wrap}.starter-side[data-side="1"] .matchup-player-identity{justify-content:flex-start}.matchup-player-scores{gap:6px}.matchup-player-scores>span{font-size:16px}.matchup-player-scores small{font-size:8px}}

/* Compact matchup cards, mirrored across the position marker. */
.starter-side>.rich-player{width:100%;margin-bottom:0!important}
.starter-row .matchup-slot{top:28px}
.starter-side[data-side="1"]>.rich-player.roster-player{grid-template-columns:68px minmax(0,1fr) 32px;text-align:right}
.starter-matchup .starter-side[data-side="1"]>.rich-player>img{grid-column:3}
.starter-matchup .starter-side[data-side="1"]>.rich-player>.roster-player-name{grid-column:2;text-align:right}
.starter-matchup .starter-side[data-side="1"]>.rich-player>.roster-actual{grid-column:1;text-align:left}
.starter-matchup .starter-side[data-side="1"]>.rich-player>.roster-game-status,.starter-matchup .starter-side[data-side="1"]>.rich-player>.roster-statline{text-align:right}
@media(max-width:420px){.starter-side[data-side="1"]>.rich-player.roster-player{grid-template-columns:minmax(0,1fr) 26px}.starter-matchup .starter-side[data-side="1"]>.rich-player>img{grid-column:2;grid-row:1}.starter-matchup .starter-side[data-side="1"]>.rich-player>.roster-player-name{grid-column:1;grid-row:1}.starter-matchup .starter-side[data-side="1"]>.rich-player>.roster-actual{grid-column:1/3;grid-row:2;text-align:right}.starter-row .matchup-slot{top:38px}}

/* Keep matchup summaries in the normal document flow on every screen. */
.starter-matchup>.starter-team-head,#matchup-dialog .starter-team-head{position:static;top:auto;z-index:auto;backdrop-filter:none}

.matchup-card .matchup-open{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;padding:18px 16px 14px;border-bottom:0;border-radius:12px 12px 0 0}
.matchup-open .match-team{display:grid;grid-template-columns:32px minmax(0,1fr);align-content:start;gap:8px;min-width:0;padding:0;min-height:0}
.matchup-open .match-team+.match-team{border:0;text-align:right;grid-template-columns:minmax(0,1fr) 32px}
.matchup-open .avatar{width:32px;height:32px;grid-row:1}.matchup-open .team-name{grid-row:1;align-self:center;overflow-wrap:anywhere}
.matchup-open .match-team+.match-team .avatar{grid-column:2}.matchup-open .match-team+.match-team .team-name{grid-column:1}
.matchup-open .team-score-stack{grid-column:1/3;display:block;margin-top:6px;min-width:0}.matchup-open .score{font-size:28px}.matchup-open .actual-label{display:inline;margin-left:5px}.matchup-open .team-projected{font-size:12px!important}
.matchup-card>.live-odds,.matchup-card>.sleeper-live-odds{margin:0;padding:16px;border:1px solid #48523f;border-top:1px solid #ffffff12;background:#1d261e}
.matchup-card .odds-heading{text-align:center;font-size:10px;color:#bdc8b6;letter-spacing:1.2px;margin:0 0 5px}.matchup-card .odds-labels{gap:12px}.matchup-card .odds-labels strong{font-size:23px;line-height:1.3}.matchup-card .odds-labels>div:last-child strong{color:#6ee3cf}.matchup-card .odds-labels small{font-size:11px;margin-top:8px}.matchup-card .odds-track{background:#6ee3cf;margin:10px 0 12px}.matchup-card .odds-source{font-size:10px}.matchup-card .odds-method{font-size:11px;min-height:36px}
.matchup-bar-open{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:12px 16px;border:1px solid #48523f;border-top:0;border-radius:0 0 12px 12px;background:#e9c66515;color:var(--gold);text-align:left;font-size:13px;font-weight:700}.matchup-bar-open:hover{background:#e9c66524}.matchup-bar-open span{font-size:20px}
@media(max-width:420px){.matchup-card .matchup-open{padding:14px 12px;gap:12px}.matchup-open .match-team{grid-template-columns:26px minmax(0,1fr);gap:6px}.matchup-open .match-team+.match-team{grid-template-columns:minmax(0,1fr) 26px}.matchup-open .avatar{width:26px;height:26px}.matchup-open .team-name{font-size:12px}.matchup-open .score{font-size:25px}.matchup-card>.live-odds{padding:14px 12px}}
.matchup-open .match-team:first-child .team-score-stack{text-align:left}.matchup-open .match-team:last-child .team-score-stack{text-align:right}
/* Give team names their own full-width line instead of squeezing beside avatars. */
.matchup-open .match-team{container-type:inline-size;grid-template-rows:32px auto auto}
.matchup-open .match-team .team-name,.matchup-open .match-team+.match-team .team-name{grid-column:1/3;grid-row:2;min-width:0;white-space:nowrap;overflow-wrap:normal;font-size:clamp(11px,8cqi,15px);line-height:1.5}
.matchup-open .match-team .team-score-stack{grid-row:3}
@media(max-width:420px){.matchup-open .match-team{grid-template-rows:26px auto auto}}

.news-player-label{display:block;color:var(--gold);font-size:10px;letter-spacing:.5px;margin-bottom:5px}.news-headline strong{display:block}.matchup-overview #team-updates-content>.underdog-player-links{margin-top:16px}.news-headline{overflow-wrap:anywhere}

/* Subtle scoreboard and compact mirrored starter-card polish. */
.starter-title{margin-bottom:18px}.starter-title>span{padding:5px 9px;border:1px solid #e9c66530;border-radius:6px;background:#e9c6650a}
.starter-matchup>.starter-team-head{padding:16px;border:1px solid #48503b;border-radius:10px;background:linear-gradient(135deg,#252e23,#1d271f);margin-bottom:13px;gap:20px}
.starter-team-head>strong{min-width:0}.starter-team-identity{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.4;color:#e9ede2}.starter-team-identity>span:last-child{overflow-wrap:anywhere}.starter-team-identity .avatar{width:30px;height:30px;flex:none;border:1px solid #b4bf9b40}.starter-team-head>strong:last-child .starter-team-identity{flex-direction:row-reverse}.starter-team-scores{margin-top:12px}.starter-team-scores .team-actual{font-size:29px;letter-spacing:-.7px;font-variant-numeric:tabular-nums}.starter-team-head .team-projected{font-size:13px!important;letter-spacing:0}
.starter-context{color:#a9b9ab!important;font-size:10px;margin-bottom:20px}
.starter-row:before{content:'';position:absolute;top:-7px;bottom:-7px;left:50%;width:1px;background:#b9bd9430;pointer-events:none}.starter-row:last-child:before{bottom:50%}.starter-row .matchup-slot{width:32px;height:32px;font-size:9px;background:#252e23;border-color:#8c8351;box-shadow:0 0 0 4px #1b211b;top:26px}
.starter-matchup .rich-player.roster-player{padding:12px 10px;background:linear-gradient(145deg,#273025,#222b23);border:1px solid #626e4d45;border-radius:10px;box-shadow:0 2px 7px #00000012;min-height:108px;gap:6px 8px;transition:background .15s,border-color .15s}
.starter-matchup .rich-player.roster-player:hover{background:#2c372a;border-color:#b49b5366}.starter-matchup .roster-player-name strong{font-size:14px;font-weight:700;line-height:1.4}.starter-matchup .roster-player-name small{font-size:10px;color:#bccbbb;line-height:1.5}.starter-matchup .rich-player .roster-actual{font-size:21px;font-variant-numeric:tabular-nums;letter-spacing:-.4px}.starter-matchup .rich-player .roster-actual small{letter-spacing:0}.starter-matchup .rich-player .roster-game-status{background:#16251c;border-radius:5px;padding:5px 6px;display:flex;gap:5px;align-items:center;flex-wrap:wrap;font-size:10px;line-height:1.4}.starter-matchup .starter-side[data-side="1"] .roster-game-status{justify-content:flex-end}.starter-matchup .rich-player .roster-statline{color:#b7cdbc;line-height:1.6;font-size:10px}.starter-game-badge{display:inline-block;padding:1px 4px;border-radius:3px;font-size:9px;font-weight:700;white-space:nowrap}.starter-game-badge.final{background:#e9c66515;color:#e9c665}.starter-game-badge.live{background:#6ee3cf18;color:#6ee3cf}.starter-game-badge.live:before{content:'•';margin-right:3px}
@media(max-width:600px){.starter-matchup>.starter-team-head{padding:12px;gap:14px}.starter-team-identity{font-size:12px;gap:6px}.starter-team-identity .avatar{width:25px;height:25px}.starter-team-scores .team-actual{font-size:25px}.starter-team-head .team-projected{font-size:11px!important}.starter-matchup .rich-player.roster-player{padding:9px 7px;gap:5px 6px;min-height:112px}.starter-matchup .roster-player-name strong{font-size:12px}.starter-row .matchup-slot{width:28px;height:28px;font-size:8px;top:30px;box-shadow:0 0 0 2px #1b211b}.starter-matchup .rich-player .roster-actual{font-size:18px}.starter-matchup .rich-player .roster-game-status{font-size:9px}.starter-matchup .rich-player .roster-statline{font-size:9px}}
@media(prefers-reduced-motion:reduce){.starter-matchup .rich-player.roster-player{transition:none}}
#matchup-dialog .starter-team-head{padding:16px}@media(max-width:600px){#matchup-dialog .starter-team-head{padding:12px}}
/* Illuminate only the inner team-score box. */
.matchup-card .matchup-open{position:relative;transition:border-color .18s ease,box-shadow .18s ease}
@media(hover:hover) and (pointer:fine){.matchup-card>.matchup-open:hover{border-color:#e9c665;box-shadow:0 0 0 1px #e9c665,0 0 18px #e9c66530;z-index:1}}
.matchup-card>.matchup-open:focus-visible{border-color:#e9c665;box-shadow:0 0 0 1px #e9c665,0 0 18px #e9c66530;z-index:1}
@media(prefers-reduced-motion:reduce){.matchup-card .matchup-open{transition:none}}
/* Match the score-box illumination on the starter-matchup action. */
.matchup-bar-open{position:relative;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
@media(hover:hover) and (pointer:fine){.matchup-card>.matchup-bar-open:hover{border-color:#e9c665;box-shadow:0 0 0 1px #e9c665,0 0 18px #e9c66530;z-index:1}}
.matchup-card>.matchup-bar-open:focus-visible{border-color:#e9c665;box-shadow:0 0 0 1px #e9c665,0 0 18px #e9c66530;z-index:1}
@media(prefers-reduced-motion:reduce){.matchup-bar-open{transition:none}}
/* Touch feedback uses the same glow as desktop hover. */
@media(hover:none),(pointer:coarse){.matchup-card>.matchup-open:active,.matchup-card>.matchup-bar-open:active{border-color:#e9c665;box-shadow:0 0 0 1px #e9c665,0 0 18px #e9c66530;z-index:1;transition:none}}


/* Compact shared rows: only visible content contributes to each matched pair. */
.starter-matchup .rich-player.roster-player{grid-template-rows:auto auto auto;min-height:0;align-content:start;align-items:start;row-gap:6px}
.starter-matchup .rich-player>img,.starter-matchup .rich-player>.roster-player-name,.starter-matchup .rich-player>.roster-actual{grid-row:1;align-self:start}
.starter-matchup .rich-player>.roster-game-status{grid-row:2;align-self:start}
.starter-matchup .rich-player>.roster-statline{grid-row:3;align-self:start}
.starter-matchup .roster-player-name{min-width:0}
.starter-matchup .roster-player-name small{display:flex;flex-wrap:wrap;align-items:center;gap:3px}
.starter-matchup .starter-side[data-side="1"] .roster-player-name small{justify-content:flex-end}
.starter-matchup .roster-player-name .injury-tag{max-width:100%;white-space:normal;overflow-wrap:anywhere;font-size:9px;line-height:1.3;padding:1px 4px;margin:0}
@supports(grid-template-rows:subgrid){
 .starter-row .starter-pair{grid-template-rows:auto auto auto;row-gap:6px}
 .starter-row .starter-side{display:grid;grid-template-rows:subgrid;grid-row:1/4}
 .starter-row .starter-side[data-side="0"]{grid-column:1}
 .starter-row .starter-side[data-side="1"]{grid-column:2}
 .starter-matchup .starter-side>.rich-player.roster-player{grid-row:1/4;grid-template-rows:subgrid}
}
@media(max-width:420px){
 .starter-matchup .rich-player.roster-player{grid-template-rows:auto auto auto auto;row-gap:5px}
 .starter-matchup .rich-player>.roster-actual,.starter-matchup .starter-side[data-side="1"]>.rich-player>.roster-actual{grid-row:2;grid-column:1/-1;margin:0}
 .starter-matchup .rich-player>.roster-game-status{grid-row:3}
 .starter-matchup .rich-player>.roster-statline{grid-row:4}
 @supports(grid-template-rows:subgrid){
  .starter-row .starter-pair{grid-template-rows:auto auto auto auto;row-gap:5px}
  .starter-row .starter-side,.starter-matchup .starter-side>.rich-player.roster-player{grid-row:1/5;grid-template-rows:subgrid}
 }
}

.starter-matchup .rich-player .roster-actual small.live-player-projection{display:block;color:var(--gold);font-size:9px;line-height:1.4;margin-top:3px;letter-spacing:0;white-space:normal}

/* The picker owns its scroll area; the page behind it stays frozen. */
.trade-picker-dialog[open]{display:flex;flex-direction:column;height:min(700px,var(--picker-height,calc(100dvh - 24px)));max-height:var(--picker-height,calc(100dvh - 24px));overflow:hidden}
.trade-picker-dialog .picker-head{flex:none}
.trade-picker-dialog .player-picker{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
.trade-picker-dialog .player-picker>label,.trade-picker-dialog .player-picker>input,.trade-picker-dialog .position-filters,.trade-picker-dialog .picker-note{flex:none}
.trade-picker-dialog .player-results{flex:1;min-height:0;height:0;max-height:none;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
@media(max-width:700px){.trade-picker-dialog[open]{position:fixed;top:var(--picker-top,12px);bottom:auto;margin-top:0;margin-bottom:0}.trade-picker-dialog .picker-head h2{font-size:24px}.trade-picker-dialog .position-filters{gap:4px;margin:8px 0}.trade-picker-dialog .picker-note{font-size:12px;margin:6px 0 0}}

/* Shared keyboard-aware picker, with one scrolling surface. */
#lineup-picker[open]{display:flex;flex-direction:column;height:min(700px,var(--picker-height,calc(100dvh - 24px)));max-height:var(--picker-height,calc(100dvh - 24px));overflow:hidden}
#lineup-picker .picker-head{flex:none;margin-bottom:10px}#lineup-picker .lineup-browser{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
#lineup-picker .lineup-results{flex:1;min-height:0;height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y}
#lineup-picker .lineup-browser>label,#lineup-picker .lineup-browser>input,#lineup-picker #search-count{flex:none}
@media(max-width:700px){#lineup-picker[open]{position:fixed;top:var(--picker-top,12px);bottom:auto;margin-top:0;margin-bottom:0}#lineup-picker .picker-head .eyebrow{display:none}#lineup-picker #search-count{font-size:12px;margin:6px 0 0}.starter-matchup .rich-player .roster-player-name small,.starter-matchup .rich-player .roster-game-status,.starter-matchup .rich-player .roster-statline,.starter-matchup .rich-player .roster-actual small,.starter-matchup .rich-player .roster-player-name .injury-tag{font-size:11px;line-height:1.4}.starter-matchup .rich-player .roster-game-status{white-space:normal;overflow-wrap:anywhere}}
/* News grows only with real content; do not stretch a sparse feed. */
@media(min-width:1001px){.matchup-overview{min-height:0!important;align-self:start;display:grid;gap:16px;grid-template-rows:auto auto}.matchup-overview>.team-updates{position:static;height:auto;max-height:650px;min-height:0}.matchup-overview #team-updates-content{flex:initial;display:block;overflow-y:auto;max-height:540px}.matchup-overview #team-updates-content>details{margin-top:12px}}
.news-status{font-size:12px;line-height:1.5;margin:0 0 12px}

/* Keep opponent totals within a comfortable comparison width on foldables. */
@media (min-width: 480px) and (max-width: 1100px) {
  #matchup-grid .matchup-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 30rem;
    justify-self: center;
    margin-inline: auto;
  }
  .matchup-card .matchup-open .match-team {
    grid-template-rows: auto auto;
    align-items: center;
  }
  .matchup-card .match-team .team-name,
  .matchup-card .match-team + .match-team .team-name {
    grid-column: 2;
    grid-row: 1;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .matchup-card .match-team + .match-team .team-name { grid-column: 1; }
  .matchup-card .match-team .team-score-stack { grid-row: 2; }
}

/* Unfolded phones have room for the overview beside the lineup. */
@media (min-width: 630px) and (max-width: 1000px) {
  #matchup-grid:has(> .starter-matchup) {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
    gap: clamp(8px, 1.3vw, 16px);
    align-items: start;
  }
  #matchup-grid > .matchup-overview { grid-area: 1 / 1; }
  #matchup-grid > .starter-matchup { grid-area: 1 / 2; min-width: 0; padding: 10px; }
  #matchup-grid .my-matchup { padding: 10px; max-width: none; }
  .starter-matchup .starter-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .starter-matchup .starter-side { min-width: 0; }
  .starter-matchup .starter-row .matchup-slot { width: 23px; height: 23px; font-size: 8px; }
  .starter-matchup .rich-player { padding: 7px; min-width: 0; }
  .starter-matchup .roster-player-name strong { white-space: normal; overflow-wrap: anywhere; }
  header { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 6px; padding: 8px 12px; }
  header .brand { margin: 0; font-size: 13px; gap: 6px; }
  header .brand small { font-size: 7px; letter-spacing: 1px; }
  header .brand-mark { width: 32px; height: 38px; line-height: 33px; font-size: 26px; }
  header nav { display: flex; order: 0; flex: 0 1 auto; width: auto; flex-wrap: nowrap; gap: 2px; padding: 0; }
  header nav a { padding: 10px 4px; font-size: 12px; white-space: nowrap; }
  header .sleeper { margin: 0; padding: 8px; font-size: 12px; white-space: nowrap; }
  .mobile-nav { display: none; }
}

@media (min-width: 630px) and (max-width: 1000px) {
  #matchup-grid > .matchup-overview {
    align-self: stretch;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .matchup-overview > .team-updates {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: clamp(10px, 1.5vw, 16px);
  }
  .matchup-overview #team-updates-content {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    overflow-wrap: anywhere;
    overscroll-behavior-y: contain;
  }
}

button.profile-name {
  font: inherit;
  color: inherit;
  text-align: inherit;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
button.profile-name:hover, button.profile-name:focus-visible { color: var(--gold); }

/* Let the scoreboard reach the edges of the folded display's web viewport. */
@media (max-width: 479px) {
  main:has(> #matchups) { width: 100%; margin-inline: 0; padding-inline: 0; }
  main:has(> #matchups) > :not(#matchups) { margin-inline: 14px; }
  #matchups > :not(#matchup-grid) { margin-inline: 12px; }
  #matchup-grid .matchup-card {
    width: 100%;
    max-width: none;
    padding-inline: 0;
    border-inline: 0;
    border-radius: 0;
  }
  #matchup-grid .matchup-label, #matchup-grid .fan-picks { margin-inline: 12px; }
  #matchup-grid .matchup-open { padding-inline: 12px; }
  #matchup-grid .matchup-open .team-name { font-size: 15px; white-space: normal; overflow-wrap: anywhere; }
  #matchup-grid .matchup-open .score { font-size: 32px; }
  #matchup-grid .odds-labels strong { font-size: 27px; }
}
@media (max-width: 479px) { main:has(> #matchups) > .team-updates { width: auto; } }
