/* Persistent Footy Forge appearance control */
.ff-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:82px;min-height:44px;padding:7px 10px;border:1px solid rgba(120,124,130,.35);border-radius:999px;background:rgba(255,255,255,.72);color:#25282b;font:800 .7rem/1 Inter,ui-sans-serif,system-ui;cursor:pointer;white-space:nowrap}
.ff-theme-toggle-track{position:relative;width:31px;height:18px;flex:0 0 31px;border-radius:999px;background:#b9bdc1;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)}
.ff-theme-toggle-track span{position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .18s ease}
.ff-theme-toggle[aria-checked="true"]{border-color:rgba(220,165,46,.58);background:#1a1d21;color:#f4d78e}
.ff-theme-toggle[aria-checked="true"] .ff-theme-toggle-track{background:#b68119}
.ff-theme-toggle[aria-checked="true"] .ff-theme-toggle-track span{transform:translateX(13px)}
.ff-theme-toggle:focus-visible{outline:3px solid rgba(220,165,46,.7);outline-offset:2px}
.ff-theme-dock{position:relative;z-index:30;display:flex;justify-content:flex-end;width:min(1180px,calc(100% - 28px));margin:10px auto -54px;pointer-events:none}
.ff-theme-dock .ff-theme-toggle{pointer-events:auto}
.ff-global-menu-strip{position:relative;z-index:45;display:flex;justify-content:space-between;gap:10px;width:min(1180px,calc(100% - 28px));min-height:46px;margin:10px auto 0}
.ff-global-menu-button{display:grid;flex:0 0 46px;place-content:center;gap:4px;width:46px;height:46px;padding:0;border:1px solid rgba(120,124,130,.35);border-radius:13px;background:#25292d;color:#fff;cursor:pointer}
.ff-global-menu-button span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor}
.ff-global-menu-button:hover,.ff-global-menu-button:focus-visible{background:#363b40;outline:3px solid rgba(220,165,46,.42);outline-offset:2px}
.ff-menu-beside-brand{margin-left:2px;margin-right:auto}
.topbar>.menu-button.ff-menu-beside-brand{flex:0 0 46px;margin-left:2px;margin-right:auto}
.ff-global-menu{width:min(520px,calc(100% - 24px));max-height:min(760px,calc(100dvh - 24px));margin:auto;padding:0;border:0;border-radius:24px;background:#f8f7f3;color:#25282b;box-shadow:0 28px 80px rgba(0,0,0,.3)}
.ff-global-menu::backdrop{background:rgba(15,17,19,.68);backdrop-filter:blur(3px)}
.ff-global-menu-panel{padding:22px}.ff-global-menu-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:17px;border-bottom:1px solid #d9d8d3}.ff-global-menu-head strong{font-size:.72rem;letter-spacing:.13em;color:#8d6818}.ff-global-menu-head h2{margin:4px 0 0;font-size:1.6rem}.ff-global-menu-head button{display:grid;place-items:center;width:46px;height:46px;border:0;border-radius:13px;background:#e9e6df;color:#27292b;font-size:1.8rem;cursor:pointer}.ff-global-menu nav{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:17px}.ff-global-menu nav a{min-height:96px;padding:15px;border-radius:15px;background:#efede7;color:#25282b;text-decoration:none}.ff-global-menu nav a:hover,.ff-global-menu nav a:focus-visible{background:#e5e1d7;outline:2px solid #d8ad45}.ff-global-menu nav strong,.ff-global-menu nav span{display:block}.ff-global-menu nav strong{font-size:.91rem}.ff-global-menu nav span{margin-top:5px;color:#70757a;font-size:.71rem;line-height:1.4}.ff-global-menu nav .ff-global-menu-support{background:#f0cd7b}

html[data-ff-theme="dark"]{color-scheme:dark;background:#07090c;--paper:#07090c;--white:#11151a;--ink:#f3f1ea;--charcoal:#161a1f;--charcoal2:#20252b;--muted:#aab0b8;--line:#2b3138;--gold:#e2ad3d;--gold-soft:#f0cd7b;--green:#50cb8b;--blue:#79a9d4;--platform-paper:#07090c;--platform-white:#11151a;--platform-ink:#f3f1ea;--platform-charcoal:#171b20;--platform-charcoal-2:#22272d;--platform-muted:#aab0b8;--platform-line:#2b3138;--platform-gold:#e2ad3d;--platform-gold-soft:#f0cd7b;--platform-green:#50cb8b;--platform-red:#ee7d86}
html[data-ff-theme="dark"] body{background:#07090c;color:#f3f1ea}
html[data-ff-theme="dark"] .brand span,html[data-ff-theme="dark"] .lb-brand span{color:#aab0b8}
html[data-ff-theme="dark"] .main-nav a,html[data-ff-theme="dark"] .platform-nav a{color:#d8dce1}
html[data-ff-theme="dark"] .main-nav a:hover,html[data-ff-theme="dark"] .main-nav a:focus-visible,html[data-ff-theme="dark"] .platform-nav a:hover,html[data-ff-theme="dark"] .platform-nav a:focus-visible{background:#1d2228}
html[data-ff-theme="dark"] .featured-game-section,html[data-ff-theme="dark"] .today,html[data-ff-theme="dark"] .hq-feature,html[data-ff-theme="dark"] .metric,html[data-ff-theme="dark"] .mini,html[data-ff-theme="dark"] .match-card,html[data-ff-theme="dark"] .lower article{background:#11151a;border-color:#2b3138}
html[data-ff-theme="dark"] .today-head span,html[data-ff-theme="dark"] .today-item,html[data-ff-theme="dark"] .hq-graphic,html[data-ff-theme="dark"] .match-pills span{background:#1b2026;color:#c8cdd3}
html[data-ff-theme="dark"] .today-item small,html[data-ff-theme="dark"] .hq-feature p,html[data-ff-theme="dark"] .mini span,html[data-ff-theme="dark"] .match-card p,html[data-ff-theme="dark"] .lower p,html[data-ff-theme="dark"] .footer{color:#aab0b8}
html[data-ff-theme="dark"] .mini:nth-child(1),html[data-ff-theme="dark"] .mini:nth-child(2),html[data-ff-theme="dark"] .mini:nth-child(3),html[data-ff-theme="dark"] .mini:nth-child(4){background:#14191e}
html[data-ff-theme="dark"] .game.ff,html[data-ff-theme="dark"] .game.tw{background:#151a20;color:#f3f1ea;box-shadow:inset 0 0 0 1px #313842}
html[data-ff-theme="dark"] .game.ff p,html[data-ff-theme="dark"] .game.tw p{color:#b9c0c7}
html[data-ff-theme="dark"] .game.ff a,html[data-ff-theme="dark"] .game.tw a{border-top-color:#343b44}
html[data-ff-theme="dark"] .modern-menu{background:#11151a;color:#f3f1ea}
html[data-ff-theme="dark"] .menu-head{border-color:#2b3138}
html[data-ff-theme="dark"] .menu-head button,html[data-ff-theme="dark"] .modern-menu nav a{background:#1b2026;color:#f3f1ea}
html[data-ff-theme="dark"] .modern-menu nav a:hover,html[data-ff-theme="dark"] .modern-menu nav a:focus-visible{background:#242a31}
html[data-ff-theme="dark"] .modern-menu nav span{color:#aab0b8}
html[data-ff-theme="dark"] .modern-menu nav .menu-support{background:#3a2c10}
html[data-ff-theme="dark"] .ff-global-menu{background:#11151a;color:#f3f1ea}html[data-ff-theme="dark"] .ff-global-menu-head{border-color:#2b3138}html[data-ff-theme="dark"] .ff-global-menu-head button,html[data-ff-theme="dark"] .ff-global-menu nav a{background:#1b2026;color:#f3f1ea}html[data-ff-theme="dark"] .ff-global-menu nav a:hover,html[data-ff-theme="dark"] .ff-global-menu nav a:focus-visible{background:#242a31}html[data-ff-theme="dark"] .ff-global-menu nav span{color:#aab0b8}html[data-ff-theme="dark"] .ff-global-menu nav .ff-global-menu-support{background:#3a2c10}

html[data-ff-theme="dark"] body:is(.ff-account,.ff-leaderboards,.ff-privacy,.ff-utility){background:radial-gradient(circle at 82% 0,rgba(226,173,61,.11),transparent 24rem),#07090c;color:#f3f1ea}
body.ff-utility main{box-sizing:border-box;max-width:min(960px,100%)}
html[data-ff-theme="dark"] .ff-account,html[data-ff-theme="dark"] .ff-leaderboards{--bg:#07090c;--panel:#11151a;--line:#2b3138;--text:#f3f1ea;--muted:#aab0b8;--gold:#e2ad3d;--green:#50cb8b;--red:#ee7d86;--lb-bg:#07090c;--lb-panel:#11151a;--lb-panel-hi:#1a1f25;--lb-line:#2b3138;--lb-gold:#e2ad3d;--lb-gold-hi:#f0cd7b;--lb-cream:#f3f1ea;--lb-copy:#c9cdd0;--lb-muted:#aab0b8;--lb-green:#50cb8b}
html[data-ff-theme="dark"] .ff-account .brand,html[data-ff-theme="dark"] .ff-leaderboards .lb-brand{color:#f3f1ea}
html[data-ff-theme="dark"] .ff-account .panel,html[data-ff-theme="dark"] .ff-leaderboards .lb-panel,html[data-ff-theme="dark"] .ff-privacy .policy-card,html[data-ff-theme="dark"] .ff-utility .utility-card{background:#11151a;border-color:#2b3138;color:#f3f1ea}
html[data-ff-theme="dark"] .ff-account .account-auth-grid form,html[data-ff-theme="dark"] .ff-account .progress-card,html[data-ff-theme="dark"] .ff-account .club-avatar-choice,html[data-ff-theme="dark"] .ff-account .account-stats-grid article,html[data-ff-theme="dark"] .ff-account .notice{background:#181d23;border-color:#303741}
html[data-ff-theme="dark"] .ff-account input,html[data-ff-theme="dark"] .ff-account select,html[data-ff-theme="dark"] .ff-leaderboards input{background:#0c1014;border-color:#38414b;color:#f3f1ea}
html[data-ff-theme="dark"] .ff-account .btn{background:#242a31;color:#f3f1ea}
html[data-ff-theme="dark"] .ff-account .btn-primary,html[data-ff-theme="dark"] .ff-leaderboards .lb-button{background:#e2ad3d;color:#17130a}
html[data-ff-theme="dark"] .ff-leaderboards .lb-nav{background:#151a20}
html[data-ff-theme="dark"] .ff-leaderboards .lb-nav a{color:#b9c0c7}
html[data-ff-theme="dark"] .ff-leaderboards .lb-nav a[aria-current="page"]{background:#242a31;color:#f0cd7b;box-shadow:none}
html[data-ff-theme="dark"] .ff-leaderboards .lb-tabs button{background:#1b2026;color:#c9cdd3}
html[data-ff-theme="dark"] .ff-leaderboards .lb-tabs button[aria-current="page"]{background:#e2ad3d;color:#17130a}
html[data-ff-theme="dark"] .ff-leaderboards .lb-count,html[data-ff-theme="dark"] .ff-leaderboards .lb-table-wrap{background:#151a20;border-color:#2b3138;color:#b9c0c7}
html[data-ff-theme="dark"] .ff-leaderboards .lb-table th,html[data-ff-theme="dark"] .ff-leaderboards .lb-table td{border-color:#2b3138;color:#f3f1ea}
html[data-ff-theme="dark"] .ff-leaderboards .lb-entry{border-color:#2b3138;background:#0b1016;color:#f3f1ea}
html[data-ff-theme="dark"] .ff-leaderboards .lb-entry>summary,html[data-ff-theme="dark"] .ff-leaderboards .lb-entry>summary strong,html[data-ff-theme="dark"] .ff-leaderboards .lb-entry dd{color:#f3f1ea}
html[data-ff-theme="dark"] .ff-leaderboards .lb-entry>summary b{color:#f0cd7b}
html[data-ff-theme="dark"] .ff-leaderboards .lb-entry dt,html[data-ff-theme="dark"] .ff-leaderboards .lb-rank,html[data-ff-theme="dark"] .ff-leaderboards .lb-pagination>span{color:#aab0b8}
html[data-ff-theme="dark"] .ff-leaderboards .lb-pagination button{border-color:#2b3138;background:#1b2026;color:#f3f1ea}
html[data-ff-theme="dark"] .ff-leaderboards .lb-pagination button:disabled{background:#151a20;color:#aab0b8}

/* Game pages keep their layouts while swapping the modern light surfaces for a true dark palette. */
html[data-ff-theme="dark"] body:is(.ff-forge-five,.ff-trade-week,.ff-dynasty){--modern-page:#07090c;--modern-paper:#11151a;--modern-soft:#1b2026;--modern-ink:#f3f1ea;--modern-muted:#b8c0c8;--modern-line:#303741;background:#07090c;color:#f3f1ea;color-scheme:dark}
html[data-ff-theme="dark"] body.ff-dynasty{--ink:#f3f1ea;--ink-2:#0c1014;--surface:#11151a;--surface-2:#171c22;--surface-3:#20262d;--line:#38414b;--line-soft:rgba(255,255,255,.11);--cream:#f3f1ea;--muted:#b8c0c8;--dynasty-copy:#edf0f2;--dynasty-muted:#b8c0c8;--dynasty-subtle:#a9b2bb;--dynasty-soft:#181d23;--dynasty-line:#38414b;background:#07090c;color:#f3f1ea}
html[data-ff-theme="dark"] body.ff-dynasty :is(.site-header,.prototype-tools){border-color:#303741}
html[data-ff-theme="dark"] body.ff-dynasty :is(.game-bar,.entry-hero){border-color:#303741;background:#11151a;color:#fff}
html[data-ff-theme="dark"] body.ff-dynasty .entry-copy>p:not(.section-kicker){color:#d2d7dc}
html[data-ff-theme="dark"] body.ff-dynasty :is(.screen-frame,.panel,.draft-status,.needs-card,.next-action-card,.stage-track,.data-count,.data-principle,.pick-clock,.record-chip,.selection-state,.weather,.offseason-count,.player-row,.squad-player-row){border-color:#303741;background:#11151a;color:#f3f1ea;box-shadow:none}
html[data-ff-theme="dark"] body.ff-dynasty :is(.prototype-status,.draft-live-note,.career-summary>div){border-color:#38414b;background:#181d23;color:#edf0f2}
html[data-ff-theme="dark"] body.ff-dynasty :is(.player-row:hover,.squad-player-row:hover){border-color:#b9903b;background:#202117}
html[data-ff-theme="dark"] body.ff-dynasty :is(input[type="text"],input[type="search"],input:not([type]),select){border-color:#38414b;background:#0c1014;color:#f3f1ea}
html[data-ff-theme="dark"] body.ff-dynasty :is(.screen-tab,.header-actions a,.quiet-button,.wide-button,.text-button){border-color:#38414b;background:#1b2026;color:#edf0f2}
html[data-ff-theme="dark"] body.ff-dynasty .screen-tab.is-active{border-color:#d9b45d;background:#d9b45d;color:#17130a}
html[data-ff-theme="dark"] body.ff-dynasty .player-data-table th{background:#181d23;color:#c8cfd5}
html[data-ff-theme="dark"] body.ff-dynasty .player-data-table td{color:#edf0f2}
html[data-ff-theme="dark"] body.ff-dynasty :is(.rating.strong,.rating.developing,.data-key.no-art){color:#dce1e5}
html[data-ff-theme="dark"] body.ff-dynasty .club-disc.muted{border-color:#59636d;background:#20262d;color:#e0e5e8}
html[data-ff-theme="dark"] body.ff-dynasty :is(.prototype-intro p:not(.eyebrow),.concept-badge,.game-bar-meta,.career-summary span,.form-grid>label,.draft-control-fieldset legend,.draft-choice small,.draft-choice b,.pick-clock span,.record-chip span,.selection-state span,.weather span,.offseason-count span,.draft-status span,.player-identity small,.ovr small,.draft-empty,.draft-board-footer,.workspace-intro,.page-intro,.data-footnote,.season-notice,.season-metrics span,.season-caption,.season-table thead th,.season-select-label,.season-stat-filters label,.season-player-table small,.season-list-details>summary,.prototype-note){color:#b8c0c8}
html[data-ff-theme="dark"] body.ff-dynasty>footer{color:#b8c0c8}

html[data-ff-theme="dark"] body.ff-trade-week{--tw-black:#07090c;--tw-ink:#f3f1ea;--tw-panel:#11151a;--tw-panel-hi:#181d23;--tw-line:#303741;--tw-cream:#f3f1ea;--tw-copy:#d1d6db;--tw-muted:#b8c0c8;background:#07090c;color:#f3f1ea}
html[data-ff-theme="dark"] body.ff-trade-week :is(.tw-setup,.tw-panel,.tw-setup-card,.tw-objective,.tw-player-row,.tw-selected-asset,.tw-feed-offer,.tw-history-item,.tw-club-card,.tw-pick-card,.tw-asset-option,.tw-table tr){border-color:#303741;background:#11151a;color:#f3f1ea}
html[data-ff-theme="dark"] body.ff-trade-week :is(.tw-setup-copy h1,.tw-section-heading h2){color:#f3f1ea}
html[data-ff-theme="dark"] body.ff-trade-week :is(.tw-setup-copy>p,.tw-player-name small,.tw-preference,.tw-objective small,.tw-feed-offer span,.tw-history-item span,.tw-club-card p,.tw-muted){color:#b8c0c8}
html[data-ff-theme="dark"] body.ff-trade-week .tw-nav{background:#181d23}
html[data-ff-theme="dark"] body.ff-trade-week .tw-nav button{color:#c8cfd5}
html[data-ff-theme="dark"] body.ff-trade-week .tw-nav button[aria-current="page"]{background:#2a261c;color:#f0cd7b}
html[data-ff-theme="dark"] body.ff-trade-week :is(input,select,.tw-quick-terms select){border-color:#38414b;background:#0c1014;color:#f3f1ea}

html[data-ff-theme="dark"] body.ff-forge-five{--bg:#07090c;--panel:#11151a;--panel2:#181d23;--line:#303741;--text:#f3f1ea;--muted:#b8c0c8;background:#07090c;color:#f3f1ea}
html[data-ff-theme="dark"] body.ff-forge-five :is(.hero,.player-card){border-color:#303741;background:#11151a;color:#fff}
html[data-ff-theme="dark"] body.ff-forge-five :is(.quick-how,.notice,.budget,.roster,.record,.season-model,.collapsible-panel,.panel,.need-side,.ai-strategy,.bid-stat,.attribute,.slot,.fixture,.record-card,.public-leaderboard-table tr){border-color:#303741;background:#11151a;color:#f3f1ea}
html[data-ff-theme="dark"] body.ff-forge-five :is(.quick-how summary,.collapsible-panel>summary,.roster-head){color:#f3f1ea}
html[data-ff-theme="dark"] body.ff-forge-five :is(input[type="text"],input[type="search"],select){border-color:#38414b;background:#0c1014;color:#f3f1ea}

@media(max-width:700px){.ff-theme-toggle{min-width:44px;width:44px;padding:7px}.ff-theme-toggle-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.ff-theme-dock{margin-bottom:-50px}.ff-global-menu-strip{width:calc(100% - 18px);min-height:44px;margin:7px auto 0}.ff-global-menu-button{flex-basis:44px;width:44px;height:44px}.ff-menu-beside-brand,.topbar>.menu-button.ff-menu-beside-brand{margin-left:0;margin-right:auto}.top-actions>:not(.menu-button):not(.ff-global-menu-button):not(.ff-theme-toggle),.tw-top-actions>:not(.ff-global-menu-button):not(.ff-theme-toggle),.header-actions>:not(.ff-global-menu-button):not(.ff-theme-toggle){display:none!important}.ff-global-menu{border-radius:20px}.ff-global-menu-panel{padding:17px}.ff-global-menu nav{grid-template-columns:1fr}.ff-global-menu nav a{min-height:78px}.ff-global-menu nav span{font-size:.73rem}}
@media(max-width:390px){.ff-global-menu{width:calc(100% - 14px);max-height:calc(100dvh - 14px)}.ff-global-menu-panel{padding:14px}}
@media(prefers-reduced-motion:reduce){.ff-theme-toggle-track span{transition:none}}
[data-ff-install-link][hidden]{display:none!important}
@media(display-mode:standalone){[data-ff-install-link]{display:none!important}}
