@font-face{font-family:Montserrat;src:url('/fonts/Montserrat-400-Latin.woff') format('woff');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('/fonts/Montserrat-500-Latin.woff') format('woff');font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('/fonts/Montserrat-600-Latin.woff') format('woff');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('/fonts/Montserrat-700-Latin.woff') format('woff');font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('/fonts/Montserrat-800-Latin.woff') format('woff');font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:Montserrat;src:url('/fonts/Montserrat-900-Latin.woff') format('woff');font-weight:900;font-style:normal;font-display:swap}
@font-face{font-family:TGSport;src:url('/fonts/Montserrat-800-Latin.woff') format('woff');font-weight:100 900;font-style:normal;font-display:swap}
#home-screen{--sport:TGSport,'Arial Narrow',sans-serif;--mint:#b5f56b;color:#e9f1ee;padding-bottom:80px;background:#071b29!important;scroll-padding-top:75px}#home-screen [hidden],#home-screen .legacy-tactics{display:none!important}#home-screen .home-top{padding:7px 12px!important;position:sticky;top:0;z-index:25;background:#061b2cef;border-bottom:1px solid #829db225;min-height:64px}#home-screen .home-header{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) 38px;gap:9px;align-items:center;min-height:48px}#home-screen .home-header #home-coins{background:transparent;border:0;padding:0;max-width:86px;font-size:14px}#home-screen .home-header .brand-title{height:48px}#home-screen .home-header #home-menu,#home-screen .home-header #menu-toggle{height:38px;width:38px}#home-screen .home-sub,#home-screen .home-glow,#home-screen .home-stats{display:none!important}#home-screen .home-tabs{position:fixed;top:auto;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:390px;z-index:30;background:linear-gradient(#143443f5,#041826fa);border:1px solid #7395a452;border-bottom:0;min-height:74px;padding-bottom:env(safe-area-inset-bottom,0px);backdrop-filter:blur(8px)}#home-screen .home-tabs .tab-btn{border:0;border-top:3px solid transparent;background:none;display:flex;flex-direction:column;gap:5px;padding:10px 2px;color:#9fb4c0;letter-spacing:.4px;font-family:var(--sport);font-size:12px;cursor:pointer}#home-screen .home-tabs .tab-btn svg{width:29px;height:29px;fill:currentColor;filter:drop-shadow(0 2px #0006)}#home-screen .home-tabs .tab-btn.active{color:#c1ef80;border-top-color:#c1ef80;background:#9cc17c0a}#home-screen .home-content{padding-bottom:80px;background:transparent;min-height:calc(100% - 64px)}#home-screen .home-content::before{top:64px;height:calc(100svh - 64px);margin-bottom:calc(64px - 100svh)}#home-screen .home-content:has(#tab-team.active){--tab-scene:url('/brand/tab-backgrounds/tactics.webp')}#home-screen .home-content:has(#tab-shop.active){--tab-scene:url('/brand/tab-backgrounds/squad.webp')}#home-screen .tab-panel{padding:16px 14px 24px;min-height:0}#home-screen #league-view,#home-screen #roster-view,#home-screen #club-view{border:0;background:none;padding:0;box-shadow:none}#home-screen .home-page-title{font-family:var(--sport);font-size:27px;letter-spacing:1.1px;margin:6px 0 15px;color:#eef6ed;text-shadow:0 2px 3px #0009}#home-screen button{cursor:pointer}#home-screen button:disabled{cursor:default;opacity:.55}#home-screen button:focus-visible,#home-screen [role=button]:focus-visible{outline:2px solid #c0ee85;outline-offset:3px}.home-mode-switch{display:flex;border:1px solid #678896;border-radius:12px;padding:4px;background:linear-gradient(#123647,#071d2b);gap:4px;margin-bottom:14px}.home-mode-switch button{flex:1;min-height:41px;border:0;border-radius:7px;background:none;color:#abc0c9;font:18px var(--sport);letter-spacing:.5px}.home-mode-switch button.selected{background:linear-gradient(110deg,#8bd335,#c8ff6b);color:#153027;box-shadow:0 3px #537832}.home-panel,.team-tactics-panel,.home-collection{border:1px solid #7898a56b;background:linear-gradient(130deg,#173c4bea,#081f2aec);border-radius:13px;box-shadow:0 5px 13px #0004;overflow:hidden;margin:0 0 16px}.home-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:13px 12px;border-bottom:1px solid #7898a528}.home-panel-heading h2,.home-last-results h2{font:18px var(--sport);letter-spacing:.7px;margin:0}.home-panel-heading strong{color:#c1ef80;font:18px var(--sport)}.home-match-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:12px;border-bottom:1px solid #7898a528}.home-match-meta strong{font:15px var(--sport);letter-spacing:.3px}.home-match-meta small{font-size:8px;color:#b5c8cb;white-space:nowrap}.home-match-date{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #7898a528;font-size:9px;letter-spacing:.8px;color:#c0d4dd}.home-versus{display:grid;grid-template-columns:1fr 30px 1fr;align-items:center;padding:16px 10px 6px;gap:6px}.home-versus>div{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.home-versus b{font:20px var(--sport);text-align:center;overflow-wrap:anywhere}.home-versus>span{color:#77919c;font:italic 16px var(--sport)}.home-opponent{text-align:center;font-size:10px;color:#bbd1d0;padding:4px 8px 12px}.home-match-story{margin:0 12px;padding:10px 0;border-top:1px solid #7898a528;font-size:11px;line-height:1.55;color:#bbd1d0}.home-next>h2,.home-next>p{padding:12px}.home-primary,#home-screen #play-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:46px;height:auto;margin:0;padding:10px;border:1px solid #d7ff94;border-bottom:4px solid #5c852e;border-radius:9px;background:linear-gradient(110deg,#90db37,#c7ff69);color:#193020;font:23px var(--sport);letter-spacing:1px;box-shadow:0 4px 10px #0004;animation:none}#home-play-slot{padding:0 12px 12px}#home-screen #play-btn{font-size:22px}.home-secondary,.home-fixture{border:1px solid #6b94a3;border-bottom:3px solid #153c4c;border-radius:8px;color:#e2edf2;background:linear-gradient(#244d60,#0d2937);min-height:41px;font:16px var(--sport);padding:9px 12px}.home-divisions{display:flex;gap:2px}.home-divisions button{border:1px solid transparent;border-radius:4px;background:none;color:#a7bdc6;padding:7px 6px;font:12px var(--sport);min-height:32px}.home-divisions .selected{border-color:#b5dc80;color:#c6ef8f;background:#91b65722}#home-screen .lg-table{font-size:10px;margin:0;width:100%;table-layout:fixed}#home-screen .lg-table th{font-size:8px;padding:10px 1px}#home-screen .lg-table td{padding:9px 1px;border-top:1px solid #829ead24}#home-screen .lg-table th:first-child{width:7%}#home-screen .lg-table th.l{width:39%}#home-screen .lg-table .l span{vertical-align:middle}#home-screen .lg-table td.l{overflow-wrap:anywhere}#home-screen .lg-table td.l .cpu-crest,#home-screen .lg-table td.l .human-crest{vertical-align:middle}#home-screen .lg-table tr.you{background:#8ab24b24;border-left:3px solid #bcf37c}#home-screen .home-table-gap td{padding:0;height:9px}.home-fixture{display:flex;justify-content:space-between;width:calc(100% - 20px);margin:8px 10px 12px;font-size:18px;letter-spacing:.6px}.home-last-results h2{margin:18px 0 10px}.home-last-results .lg-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.home-last-results .lg-res{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;padding:9px 4px;gap:3px;background:#0a2538dc;border-color:#63818a}.home-last-results .lg-res strong{font-size:16px}.home-last-results .lg-res small{flex-basis:100%;text-align:center;font-size:9px}.home-last-results .lg-res b{margin:0}.home-challenge-button,#home-screen #daily-challenge-btn{width:100%;margin:8px 0 0;min-height:50px;border:1px solid #a58f4b;border-bottom:3px solid #65582d;border-radius:9px;background:linear-gradient(110deg,#38473a,#132d3b);color:#f1dfaa;font:18px var(--sport);letter-spacing:.6px}.home-online-hero{display:flex;flex-direction:column;align-items:center;gap:6px;padding:2px 0 6px}.home-rank-badge{border:0;background:none}.home-online-hero>strong{font:24px var(--sport);text-transform:uppercase;letter-spacing:1px}.home-cups{display:flex;gap:7px;align-items:center;font-size:10px;color:#b9c8d5}.home-cups b{font:34px var(--sport);color:#fff}.home-cups svg{width:25px;height:25px;color:#ffe080}.home-online-actions{display:grid;gap:9px;margin:10px 0 15px}.home-rank-progress{padding:14px}.home-rank-progress .rank-progress{height:9px}.home-rank-progress .rank-progress i{background:linear-gradient(#ddff9b,#94c658)}.home-rank-progress .rank-progress-label{font-size:9px}.home-rank-road{display:flex;justify-content:space-around;padding:9px 0 0;border-top:1px solid #829ead24;margin-top:10px}.home-rank-road>div{display:flex;align-items:center;flex-direction:column;gap:4px}.home-rank-road strong{font:12px var(--sport)}.home-rank-road small{font-size:8px;color:#b7cbd4}#home-online-status{font-size:12px;color:#e9bf86}
/* One central five-a-side pitch. Real roster selection and saved formations. */
.team-tactics-panel{padding:0 10px 12px}.team-tactics-panel .home-panel-heading{padding:12px 2px;border:0}.home-pitch{height:310px;position:relative}.home-field{position:absolute;width:100%;height:100%;inset:0}.home-pitch-player{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;min-width:44px;padding:0;background:none;border:0;color:#fff}.home-pitch-player canvas{width:40px;height:37px;image-rendering:pixelated;filter:drop-shadow(0 3px 2px #0009)}.home-pitch-player>span{display:flex;flex-direction:column;background:#041c23c9;border-radius:2px;padding:2px 6px;max-width:80px;text-align:center}.home-pitch-player b{font-size:11px;font-weight:600;line-height:1.15}.home-pitch-player small{font-size:8px;margin-top:2px}.home-keeper>span{position:absolute;left:100%;top:10px;background:none;text-align:left;padding:0;white-space:nowrap}.home-keeper b{font-size:10px}.home-keeper small{font-size:7px}#home-screen .formation-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:10px}#home-screen .formation-card{display:flex;align-items:center;justify-content:center;padding:8px 2px;min-height:39px;border:1px solid #688997;border-bottom:3px solid #203a4c;border-radius:7px;background:linear-gradient(#21495a,#102e3c);color:#d2e2e8;font:14px var(--sport)}#home-screen .formation-card.selected{background:linear-gradient(#beed88,#99c960);border-color:#dbf3ae;color:#183321;box-shadow:0 3px 8px #0005}#home-screen #tab-tactics .marking-options{padding:0;margin-top:19px;border:0;background:none;gap:10px}#home-screen .tactics-title{font-size:9px;margin:0 0 6px;color:#bbccce}#home-screen .marking-options .club-tactic-cycle{height:68px;min-height:68px;border-radius:7px;border-width:2px;border-bottom-width:4px;font:15px var(--sport);letter-spacing:.8px}.home-collection>summary{cursor:pointer;list-style:inside;padding:15px 12px;font:18px var(--sport)}#home-screen #roster-view{padding:0 10px 12px}#roster-view .squad-status{margin:0 0 12px!important}#roster-view .collection-heading{display:none}.home-collection .collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.home-collection .collection-card{min-width:0}.home-collection .collection-status{font-size:8px!important}
/* Existing club controls and economy remain authoritative. */
#home-screen #club-view>.kit-identity{align-items:flex-start;padding:18px 18px 8px;background:#102c37eb;border:1px solid #68889766;border-radius:13px 13px 0 0;gap:0}#club-view>.kit-identity .kit-mini-colors{display:none}#club-view .kit-preview-name{font:29px var(--sport);display:flex;align-items:center;gap:10px;color:#eef6ed}#club-view .home-name-edit{border:1px solid #7899a3;background:#1e4657;color:#d9e9ec;padding:4px 8px;border-radius:6px;font-size:19px}#home-screen #club-view .kit-preview{display:flex;align-items:center;justify-content:center;gap:32px;padding:12px;min-height:128px;background:#102c37eb;border:1px solid #68889766;border-top:0;border-bottom:0;margin:0;border-radius:0}#club-view .kit-rotation canvas{width:64px;height:80px;image-rendering:pixelated}#club-view .kit-rotation{display:flex;align-items:center;gap:2px}#club-view .kit-rotation button{width:26px;min-width:26px;height:32px;padding:0;background:#1c4050;border:1px solid #638492;border-radius:5px;color:#e2edf1}#club-view .human-crest-edit{width:78px;min-width:78px}#club-view .kit-preview-tabs{margin:0 0 16px;padding:4px 15px 16px;border:1px solid #68889766;border-top:0;background:#102c37eb;border-radius:0 0 13px 13px}#club-view .kit-preview-tabs button{font:14px var(--sport);background:#123140;color:#b6c9d1;border-color:#526d7a}#club-view .kit-preview-tabs button[aria-pressed=true]{background:linear-gradient(#c6fa87,#96cf4c);color:#15321f;border-color:#c7ed9c}#club-view>.club-section{border:1px solid #68889766;border-radius:12px;background:#102c37eb;padding:14px;margin:0 0 16px}#club-view .club-section-title{font:17px var(--sport);letter-spacing:.7px;color:#e3f1e9;margin-bottom:12px}#club-view .pattern-grid,#club-view .alternate-pattern-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}#club-view .pattern-btn{min-width:0;width:100%;background:linear-gradient(#173a49,#092331);border:1px solid #60818f;border-radius:7px;min-height:79px;font-size:8px;color:#c8d9db;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}#club-view .pattern-btn.active{border-color:#c3ef8d;background:#6c975032}#club-view .club-name-first{border-radius:0;border-top:0;margin:0}.club-stadium-section.my-stadium{margin:0 0 16px!important;border:1px solid #68889766!important;border-radius:12px!important;background:#102c37eb!important;padding:12px!important;width:100%!important}.club-stadium-section.my-stadium h1{font:20px var(--sport);text-transform:uppercase;letter-spacing:.8px}.club-stadium-section.my-stadium .stadium-wrap{border:0;background:none}.club-stadium-section.my-stadium .grid{display:grid;grid-template-columns:1fr;gap:8px}.club-stadium-section.my-stadium .card{background:#123442;border:1px solid #61829255}#club-pack-slots{padding:12px;background:#102c37eb;border:1px solid #68889766;border-radius:12px}#club-pack-slots h3{font:20px var(--sport);text-transform:uppercase;margin:0 0 12px}#club-pack-slots .pack-slot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#club-pack-slots .timed-pack{background:linear-gradient(#183d49,#09212d);min-height:180px}
/* Inline shop uses the existing purchases and account balance. */
#home-shop.embedded-shop{position:static;display:block;width:100%;max-width:none;padding:0;border:0;border-radius:0;background:none;box-shadow:none;color:#e9f1ee;max-height:none;overflow:visible}#home-shop .shop-header{display:none}#home-shop .shop-daily{margin:0 0 20px;padding:12px;background:#102c37ed;border:1px solid #68889766;border-radius:12px}#home-shop .daily-title,#home-shop .shop-section h3{font:20px var(--sport);text-transform:uppercase;letter-spacing:.6px;margin:0 0 8px}#home-shop .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#home-shop .shop-item{background:linear-gradient(#173b49,#0a2431);border:1px solid #6e8d9966;border-radius:9px}#home-shop .daily-card-wrap{padding:6px}#home-shop .daily-collection-card{width:100%!important;height:auto!important;padding:0!important;border:0!important;background:none!important}#home-shop .shop-buy{font:14px var(--sport);border:1px solid #91b360;border-bottom:3px solid #4d7133;background:linear-gradient(#c2eb86,#8db955);color:#172e23;padding:8px 4px;white-space:nowrap}#home-shop .shop-item-body{padding:7px}#home-shop .shop-stage{height:115px;background:none}#home-shop .shop-section{margin:12px 0}#home-shop .shop-intro{display:none}#home-shop .shop-note{font-size:10px}.home-fixture-dialog{width:calc(100% - 24px);max-width:440px;max-height:85dvh;margin:auto;padding:16px;border:1px solid #638393;border-radius:14px;color:#eef6ef;background:#102c38;overflow:auto}.home-fixture-dialog::backdrop{background:#031018df}.home-fixture-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.home-fixture-dialog button{border:0;background:none;color:white;font-size:28px}.home-fixture-dialog h2{font:24px TGSport}.home-fixture-dialog h3{font:17px TGSport;margin:15px 0 8px;color:#c0ec8c}.home-fixture-line{display:grid;grid-template-columns:1fr 34px 1fr;align-items:center;gap:6px;padding:9px 0;border-top:1px solid #67889733;font-size:11px}.home-fixture-line>span{display:flex;align-items:center;gap:4px;overflow-wrap:anywhere}.home-fixture-line>b{text-align:center}
@media(max-width:699px){#home-screen .home-tabs{max-width:none}#home-screen .tab-panel{padding:14px 12px 24px}}@media(max-width:359px){#home-screen .tab-panel{padding-left:10px;padding-right:10px}.home-match-meta strong{font-size:13px}.home-panel-heading{padding:11px 9px}.home-panel-heading h2{font-size:17px}.home-pitch{height:280px}.home-divisions button{padding:6px 4px}.home-online-hero .rank-badge{width:92px;height:92px}.home-versus b{font-size:18px}}@media(prefers-reduced-motion:reduce){#home-screen *{scroll-behavior:auto}}

#home-screen .home-tabs .tab-btn{border-radius:0;box-shadow:none}#home-coins .coin-amount svg{width:24px;height:24px}#home-screen .home-positions{background:linear-gradient(130deg,#153849f5,#081f2af5)}.stadium-installations{width:100%}.stadium-installations summary{cursor:pointer;font:16px TGSport;text-transform:uppercase;padding:10px 4px;border-top:1px solid #8bb0bd44}.stadium-installations .grid{margin-top:8px}#home-shop .shop-reactions-grid{padding:10px;background:#102c37eb;border:1px solid #68889766;border-radius:12px}

#home-shop .daily-collection-card.illustrated-collection{display:block!important;width:100%!important;min-height:0!important;gap:0!important;box-shadow:none!important}#home-shop .illustrated-face{width:100%}#home-shop .illustrated-face .mini-stats{position:absolute;top:75%;left:13%;right:13%;width:auto;gap:2.5cqw 2cqw}#home-shop .illustrated-face .mini-stats span{font-size:11cqw;line-height:1.05}#home-shop .illustrated-face .mini-stats i{font-size:6.2cqw;line-height:1.2;margin-bottom:1cqw}.club-color-shortcuts{display:flex;justify-content:space-around;margin:12px 0 0;gap:6px}.club-color-shortcuts button{display:flex;align-items:center;flex-direction:column;gap:5px;background:none;border:0;color:#c5d6dc;font-size:9px}.club-color-shortcuts i{display:block;width:28px;height:28px;border:2px solid #9ab8c3;border-radius:50%}
#home-screen{scroll-padding-bottom:96px}
#home-screen .home-last-results .lg-results>p{grid-column:1/-1;margin:0;padding:16px;border:1px solid #ffffff20;border-radius:14px;background:#082b26e8;color:#c3d8d0;text-align:center}
/* The header, scroll viewport and navigation share the actual app width. */
#home-screen{display:flex;flex-direction:column;overflow:hidden;padding-bottom:0}
#home-screen::before{content:'';position:absolute;inset:64px 0 0;pointer-events:none;background:linear-gradient(#05101938,#05101918),url('/brand/tab-backgrounds/league.webp') center/cover}
#home-screen:has(#tab-team.active)::before{background-image:linear-gradient(#05101938,#05101918),url('/brand/tab-backgrounds/tactics.webp')}
#home-screen:has(#tab-store.active)::before{background-image:linear-gradient(#05101938,#05101918),url('/brand/tab-backgrounds/club.webp')}
#home-screen:has(#tab-shop.active)::before{background-image:linear-gradient(#05101938,#05101918),url('/brand/tab-backgrounds/squad.webp')}
#home-screen .home-top{position:relative;flex:0 0 auto;order:0}
#home-screen .home-content{order:1;flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;padding-bottom:16px;scroll-padding:12px 0;overscroll-behavior:contain;background:transparent}
#home-screen .home-content::before{display:none}
#home-screen .home-tabs{order:2;position:relative;left:auto;top:auto;bottom:auto;transform:none;flex:0 0 auto;width:100%;max-width:none;min-height:78px;display:flex;gap:3px;margin:0;padding:0 9px calc(6px + env(safe-area-inset-bottom,0px));border:0;border-top:1px solid #6a98a7;background:linear-gradient(#0c2c40,#031522);box-shadow:0 -3px 20px #00101ba6;backdrop-filter:none}
#home-screen .home-tabs .tab-btn{position:relative;min-height:72px;margin:0;padding:9px 0 4px;border:0;border-radius:0;gap:0;font:800 12px var(--sport);letter-spacing:.6px;color:#8facbe;background:none;box-shadow:none}
#home-screen .home-tabs .tab-btn svg{width:33px;height:33px;display:block;margin:0 auto 4px;fill:none;filter:drop-shadow(0 3px 1px #0008)}
#home-screen .home-tabs .tab-btn.active{color:#c1f578;background:radial-gradient(ellipse at 50% 20%,#acd85c21,transparent 70%)}
#home-screen .home-tabs .tab-btn.active::before{content:'';position:absolute;top:-2px;left:23%;right:23%;height:3px;background:#c4f581;box-shadow:0 0 10px #baef6970}
#home-screen .home-mode-switch button{text-transform:uppercase}
#home-screen .home-opponent{font-size:13px;font-weight:700;line-height:1.6;color:#d7e6eb;padding:7px 12px 11px}
#home-screen .home-stars{display:block;font-size:19px;letter-spacing:3px;color:#f5d36b;text-shadow:0 1px 3px #0008}
#home-screen .home-match-story{font-size:13px;font-weight:400;line-height:1.55;color:#e1ebee;text-align:left;opacity:1;margin:0 12px 12px;padding:12px 0;background:none}
#home-screen #daily-challenge-btn{display:flex;align-items:center;gap:9px;width:100%;min-height:70px;margin:10px 0 0;padding:11px;border:1px solid #b99950;border-bottom:3px solid #746035;border-radius:10px;background:linear-gradient(120deg,#31413b,#172d38 70%);color:#f3e0ac;text-align:left;box-shadow:inset 0 1px #fff2;letter-spacing:normal}
#daily-challenge-btn .challenge-copy{flex:1;min-width:0}
#daily-challenge-btn strong{display:block;font:17px var(--sport);letter-spacing:.6px}
#daily-challenge-btn small{display:block;color:#d0dfe3;font:12px/1.35 Arial,sans-serif;margin-top:4px}
#daily-challenge-btn .challenge-emblem{display:flex;align-items:center;justify-content:center;width:44px;height:44px;flex:none}
#daily-challenge-btn .challenge-emblem img{display:block;width:44px;height:44px;object-fit:contain;image-rendering:pixelated}
#daily-challenge-btn .challenge-reward{display:flex;align-items:center;gap:4px;font:700 15px Arial,sans-serif;white-space:nowrap}
#daily-challenge-btn .challenge-reward svg{width:22px;height:22px}
#daily-challenge-btn>.icon{width:12px;height:17px;flex:none}
#home-screen #home-invite{display:flex;align-items:center;justify-content:center;gap:9px}
#home-invite svg{width:24px;height:24px}
.home-roster-filters{display:flex;gap:6px;padding:0 0 14px}
.home-roster-filters button{flex:1;min-height:38px;border:1px solid #54798c;border-bottom:3px solid #112d3c;border-radius:7px;background:linear-gradient(#214454,#0d2939);color:#b9d2df;font:15px var(--sport);letter-spacing:.6px}
.home-roster-filters button.selected{background:linear-gradient(#c4f184,#95c756);border-color:#cbeea1;color:#183520}
#club-view .club-color-shortcuts button{min-height:48px;min-width:48px;font-size:11px;padding:5px;border:1px solid transparent;border-radius:7px}
#club-view .club-color-shortcuts button[aria-pressed=true]{border-color:#b9e77b;background:#98be5120;color:#e0f4c4}
#home-shop .shop-note:empty{display:none}

/* Larger standings text inside the existing cell geometry. */
#home-screen .lg-table .home-table-number{font-size:12px;line-height:0}
#home-screen .lg-table .home-table-name{display:inline-block;max-width:calc(100% - 31px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:12px;vertical-align:middle}
/* Paint the camera clearance without moving any protected controls. */
#app{--camera-clearance:0px}
@media(pointer:coarse){
 #app{--camera-clearance:env(safe-area-inset-top,0px)}
 :fullscreen #app,#app:fullscreen{--camera-clearance:max(32px,env(safe-area-inset-top,0px))}
}
@media(display-mode:standalone) and (pointer:coarse){#app{--camera-clearance:max(32px,env(safe-area-inset-top,0px))}}
#app::before{content:'';position:absolute;top:0;left:0;right:0;height:var(--camera-clearance);pointer-events:none;background:#102627}
#app:has(#home-screen:not(.hidden))::before{background-image:linear-gradient(#05101938,#05101918),url('/brand/tab-backgrounds/league.webp');background-position:center top;background-size:auto,cover}
#app:has(#home-screen:not(.hidden) #tab-team.active)::before{background-image:linear-gradient(#05101938,#05101918),url('/brand/tab-backgrounds/tactics.webp')}
#app:has(#home-screen:not(.hidden) #tab-store.active)::before{background-image:linear-gradient(#05101938,#05101918),url('/brand/tab-backgrounds/club.webp')}
#app:has(#home-screen:not(.hidden) #tab-shop.active)::before{background-image:linear-gradient(#05101938,#05101918),url('/brand/tab-backgrounds/squad.webp')}

#home-screen .home-tabs .tab-btn .home-play-ball{width:33px;height:33px;display:block;object-fit:contain;margin:0 auto 4px;filter:drop-shadow(0 3px 1px #0008)}

/* Montserrat: sentence case copy, existing uppercase navigation labels. */
#home-screen,#home-screen *,#player-modal,#player-modal *{font-family:Montserrat,Arial,sans-serif!important}
#home-screen h1,#home-screen h2,#home-screen h3,#home-screen .home-mode-switch button,#home-screen .home-match-meta strong,#home-screen .home-fixture,#home-screen .home-online-hero>strong,#home-screen .stadium-installations summary{font-weight:800}
#home-screen .home-page-title{font-size:25px;letter-spacing:.4px}
#home-screen .home-panel-heading h2,#home-screen .home-last-results h2{font-size:16px;letter-spacing:.2px}
#home-screen .home-mode-switch button{font-size:16px}
#home-screen .home-tabs .tab-btn{font-size:11px;letter-spacing:.2px}
#home-screen .home-fixture{font-size:16px;letter-spacing:.2px}

/* Opaque backing keeps stadium flags out of the recent-results heading and tiles. */
#home-screen .home-last-results{background:linear-gradient(130deg,#173c4b,#081f2a);border:1px solid #7898a56b;border-radius:13px;padding:12px 10px;margin:16px 0 0;box-shadow:0 5px 13px #0004}
#home-screen .home-last-results h2{margin:0 0 10px}

/* Stronger Montserrat hierarchy across the home UI and card details. */
#home-screen,#player-modal{font-weight:700}
#home-screen button,#home-screen input,#home-screen select,#home-screen label,#home-screen summary,#home-screen small,#home-screen .home-table-name,#home-screen .home-table-number,#home-screen .home-last-results .lg-res small,#player-modal button,#player-modal small{font-weight:700!important}
#home-screen #play-btn,#home-screen .home-tabs .tab-btn,#home-screen .home-versus b,#home-screen h1,#home-screen h2,#home-screen h3,#home-screen strong,#player-modal h2,#player-modal h3{font-weight:800!important}
#home-screen p,#home-screen .home-match-story,#home-screen .home-opponent,#player-modal p{font-weight:600!important}

#home-screen #club-view .kit-preview-name,#home-screen #club-view .club-section-title{font-weight:800!important}

/* Decorative tactic annotations: only players and arrow tips capture touch drags. */
.home-pitch-player{z-index:3;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.tactic-arrows,.tactic-arrow-tips{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.tactic-arrows{z-index:1;overflow:visible}
.tactic-arrows path{fill:none;stroke:#e4f4ba;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #001811);opacity:.9}
.tactic-arrows path.draft{stroke:#fff;stroke-dasharray:4 3}
.tactic-arrow-tips{z-index:2}
#home-screen .tactic-arrow-tip,.tactic-arrow-tip{position:absolute;transform:translate(-50%,-50%);width:44px;height:44px;min-height:44px;padding:0;border:0;background:transparent;pointer-events:auto;touch-action:none;border-radius:50%;cursor:pointer}
.tactic-arrow-tip::after{content:'';position:absolute;left:19px;top:19px;width:6px;height:6px;border-radius:50%;background:#e4f4ba;box-shadow:0 0 0 1px #12382a}
.tactic-arrow-tip:focus-visible{outline:2px solid #c1ef80;outline-offset:-7px}

#home-screen .formation-grid .formation-card{font-weight:800!important}

/* Match history uses the same compact dialog language as fixtures. */
.home-last-results button.lg-res{font:inherit;color:inherit;cursor:pointer;min-width:0;text-align:center}
.home-last-results button.lg-res:focus-visible{outline:2px solid #c0ec8c;outline-offset:2px}
.match-history-score{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;text-align:center;font-size:13px;overflow-wrap:anywhere}
.match-history-score strong{font:34px TGSport,system-ui;white-space:nowrap;color:#e5f6d3}
.match-history-meta{font-size:11px;color:#afc6ce;text-align:center;margin:14px 0}
.match-history-row{display:grid;grid-template-columns:42px 1fr 42px;gap:6px;padding:9px 0;border-bottom:1px solid #ffffff15;text-align:center;font-size:12px}
.match-history-row span{color:#b7ccd4}.match-history-goal{font-size:12px;line-height:1.5;margin:10px 0}.match-history-goal small{display:block;color:#aec6d0}
.match-history-potm{display:grid;gap:6px;padding:14px;margin-top:16px;border:1px solid #b9da7955;background:#b9da790c;border-radius:10px;text-align:center}.match-history-potm small{color:#c0ec8c;font-size:10px}.match-history-potm span{font-size:12px}
.match-history-tv{font-size:12px;margin-top:16px}.match-history .match-history-watch{display:block;width:100%;padding:12px;margin:8px 0;border:1px solid #93ba73;border-radius:8px;background:#294c3b;color:#e8f5de;font-size:13px;font-weight:700;cursor:pointer}
/* Match archive: compact broadcast score, comparison rails and goal timeline. */
.home-fixture-dialog.match-history{box-sizing:border-box;max-width:480px;padding:0 20px 22px;background:radial-gradient(ellipse at 50% 0,#234853 0,transparent 42%),#0c222d;border-color:#547681;box-shadow:0 24px 80px #0009;scrollbar-width:thin;scrollbar-color:#53717b transparent}
.match-history header{position:sticky;top:0;z-index:2;margin:0 -20px 0;padding:16px 20px;background:#102b35f5;border-bottom:1px solid #ffffff12;backdrop-filter:blur(8px)}
.match-history header h2{font-size:21px;margin:0}.match-history header button{width:36px;height:36px;border-radius:50%;background:#ffffff0b;cursor:pointer;line-height:1}
.match-history-score{padding:22px 0 16px;gap:10px;font-weight:700}.match-history-score>span{line-height:1.4}.match-history-score>span:first-child{color:#c2ee8c}.match-history-score>span:last-child{color:#8ad5ed}
.match-history-score strong{font-size:48px;line-height:1.05;letter-spacing:1px}.match-history-score strong small{display:block;font:700 8px system-ui;letter-spacing:2px;color:#a6bbc1;margin-bottom:9px}.match-history-score em{font-style:normal;font-size:30px;color:#66818b;padding:0 7px}
.match-history-meta{margin:0 0 22px;padding:9px 5px;border-top:1px solid #ffffff0c;border-bottom:1px solid #ffffff0c;font-size:10px;color:#91aeb8}
.match-history h3{font:700 11px system-ui;text-transform:uppercase;letter-spacing:1.5px;margin:23px 0 12px;color:#d8e7df}
.match-history-row{padding:8px 10px 9px;border:0;font-size:12px;row-gap:6px;border-radius:6px}.match-history-row:nth-of-type(even){background:#ffffff03}.match-history-row>b:first-child{color:#c2ee8c}.match-history-row>b:last-of-type{color:#8ad5ed}.match-history-row span{font-size:11px;color:#b9ccd2}
.match-history-bars{grid-column:1/-1;display:flex;height:3px;gap:3px;background:#ffffff08;border-radius:4px;overflow:hidden}.match-history-bars i{height:100%;background:#afd976;border-radius:4px}.match-history-bars i+i{background:#62b5d0}
.match-history-goal{display:grid;grid-template-columns:44px 1fr;gap:12px;align-items:start;margin:0;padding:12px 10px;border-bottom:1px solid #ffffff09}.match-history-goal>b{font:700 11px system-ui;color:#c2ee8c;background:#b5ee7612;padding:6px 3px;text-align:center;border-radius:5px}.match-history-goal[data-team="1"]>b{color:#8ad5ed;background:#62b5d012}.match-history-goal strong{font-size:13px}.match-history-goal small{font-size:10px;line-height:1.6;margin-top:2px;color:#91aeb8}
.match-history-potm{position:relative;margin-top:22px;padding:18px;background:radial-gradient(ellipse at top,#e3c15b18,transparent 80%),#142d34;border-color:#c8ac5145}.match-history-potm:before{content:'★';color:#efd275;font-size:23px}.match-history-potm small{color:#e0c67c;font-size:9px;letter-spacing:1.3px}.match-history-potm strong{font:24px TGSport,system-ui}.match-history-potm span{color:#a5bbc3;font-size:11px}.match-history-tv:empty{display:none}
@media(max-width:360px){.home-fixture-dialog.match-history{padding:0 14px 16px}.match-history header{margin:0 -14px;padding:12px 14px}.match-history-score strong{font-size:40px}.match-history-score{font-size:11px}}

/* Compact match official: no extra row in the fixture panel. */
.home-match-date{gap:8px}
#home-screen .referee-info-button{display:flex;align-items:center;justify-content:center;gap:3px;flex:0 0 36px;width:36px;height:30px;min-height:0;margin:-5px 0 -5px auto;padding:0 3px;border:1px solid #8daeb344;border-radius:7px;background:#071e2c80;color:#e8dca0;cursor:pointer}
.referee-info-button svg{width:28px;height:28px;flex:none}
#home-screen .referee-info-button:hover{background:#254b58;border-color:#d7e6a6}
.referee-dialog{position:fixed;inset:0;margin:auto;max-height:calc(100dvh - 32px);overflow:auto;box-sizing:border-box;width:min(340px,calc(100vw - 32px));padding:18px 20px 22px;border:1px solid #729b94;border-radius:16px;background:linear-gradient(145deg,#173e45,#091f2a);color:#edf5ed;text-align:center;box-shadow:0 20px 70px #000a;font-family:Montserrat,Arial,sans-serif}
.referee-dialog::backdrop{background:#001016bb}
.referee-dialog header{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#acc4ce;font-size:10px;font-weight:800;letter-spacing:1px;text-align:left}
.referee-dialog header button{width:36px;height:36px;flex:none;border:1px solid #75988c;border-radius:8px;background:#ffffff09;color:#edf5ed;font-size:25px;cursor:pointer}
.referee-dialog>canvas{display:block;width:120px;height:120px;margin:4px auto 0;image-rendering:pixelated}
.referee-dialog h2{margin:4px 0 12px;font:800 22px Montserrat,Arial,sans-serif;text-shadow:0 2px 3px #000}
.referee-criterion{display:inline-block;border-radius:6px;padding:6px 12px;font-size:12px;letter-spacing:1px;background:#e9c96b18;color:#f0d582}
.referee-criterion.strict{color:#ff9d8c;background:#ff80651a}.referee-criterion.lenient{color:#89d8f1;background:#69caf01a}
.referee-dialog p{margin:14px 0 0;font-size:14px;line-height:1.55;color:#cedde1}
.tactic-position-origin{position:absolute;width:12px;height:12px;border:1px dashed #d2ebc280;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:1}
.tactic-position-controls{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:5px 2px 8px;color:#bed1c5}.tactic-position-controls small{font:11px/1.4 system-ui}.tactic-position-controls button{font:12px system-ui;padding:8px;border:1px solid #789872;border-radius:6px;background:#19372c;color:#effadf}
