/* styles.css */
:root{--navy:#061421;--navy2:#0b2032;--panel:#10283c;--muted:#8ba5b6;--cyan:#3de5ef;--pink:#e62979;--white:#f4f8fb;--line:#dbe5ec;--ink:#102638}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#edf2f5;color:var(--ink);font:15px/1.5 'DM Sans',system-ui,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #38cfdd;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3,.brand,.section-kicker,.eyebrow,.card-top,.side-big,.season-chip,.button,.table-card th,.table-card td,.week-controls,.hero-number{font-family:'Barlow Condensed',Impact,'Arial Narrow',sans-serif}.app-shell{max-width:1600px;margin:auto;overflow:hidden}.topbar{height:78px;padding:0 clamp(22px,5vw,88px);background:var(--navy);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1b3547}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;color:#fff;font-size:21px;font-weight:800;letter-spacing:.055em}.brand-mark{display:grid;place-items:center;width:49px;height:38px;border:2px solid var(--cyan);transform:skew(-8deg);line-height:1;letter-spacing:-.07em}.brand-mark span{font-size:13px;color:var(--cyan);align-self:start;display:inline}.brand-copy span{color:var(--cyan);padding-left:3px}.top-actions{display:flex;align-items:center;gap:25px}.season-chip{color:#93aebd;letter-spacing:.12em;font-size:15px}.button{border:0;border-radius:3px;padding:13px 20px;font-size:18px;line-height:1;font-weight:800;letter-spacing:.035em;text-transform:uppercase;display:inline-flex;gap:13px;align-items:center;justify-content:center;white-space:nowrap;transition:transform .18s,filter .18s}.button:hover,.side-action:hover{transform:translateY(-2px);filter:brightness(1.1)}.button-primary{background:var(--cyan);color:#062338}.button-white{background:#fff;color:#0b2537;padding:18px 24px}.button-outline{border:1px solid #aabec8;background:white;color:#16394d}.hero{min-height:380px;background:radial-gradient(circle at 78% 49%,#16405b 0,#0b2539 31%,#061421 73%);color:white;display:grid;grid-template-columns:1.14fr 1fr;padding:62px clamp(22px,5vw,88px) 46px;position:relative;overflow:hidden}.hero:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(110deg,transparent 0 110px,#b2e8f507 112px 113px);pointer-events:none}.hero-copy{position:relative;z-index:1}.eyebrow,.section-kicker{font-size:14px;letter-spacing:.18em;font-weight:800}.eyebrow{color:#9fc6d5;display:flex;align-items:center;gap:9px}.live-dot,.demo-dot,.saved-dot{width:8px;height:8px;background:var(--cyan);border-radius:50%;display:inline-block;box-shadow:0 0 0 4px #3de5ef25}.hero h1{font-size:clamp(66px,6.5vw,108px);line-height:.84;letter-spacing:-.025em;text-transform:uppercase;margin:22px 0 22px;font-weight:900}.hero h1 em{font-style:normal;color:var(--cyan)}.hero p{color:#b7cbd4;max-width:450px;font-size:15px;margin-bottom:26px}.hero-actions{display:flex;align-items:center;gap:25px}.text-link{color:white;text-decoration:none;font-weight:700;font-size:13px}.text-link span{margin-left:7px;color:var(--cyan)}.hero-visual{position:relative;min-height:278px;display:flex;flex-direction:column;justify-content:center;align-items:center;isolation:isolate}.hero-visual:after{content:'';position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,#43ddeb22,transparent 70%);z-index:-1}.orbit{position:absolute;border:1px solid #48ced149;border-radius:50%;width:300px;height:300px;transform:rotateX(62deg) rotate(-24deg)}.orbit-two{width:440px;height:440px;border-color:#e6297933;transform:rotateY(55deg) rotate(22deg)}.ball{position:absolute;font-size:270px;opacity:.07;line-height:1;color:white;transform:rotate(-18deg)}.hero-number{font-size:176px;font-weight:900;line-height:.72;letter-spacing:-.09em;text-shadow:0 8px 30px #0005}.hero-number-label{font-family:'Barlow Condensed',sans-serif;font-size:22px;font-weight:800;letter-spacing:.5em;color:var(--cyan);margin:22px 0 0 14px}.demo-notice{margin:0;background:#fff4d9;border-bottom:1px solid #eedbb0;padding:10px clamp(22px,5vw,88px);display:flex;align-items:center;gap:10px;font-size:12px;color:#5c4b28}.demo-notice .demo-dot{background:#eebc48;box-shadow:none;flex:none}.demo-notice strong{white-space:nowrap}.notice-action{margin-left:auto;flex:none;background:none;border:0;color:#8a5e08;font-weight:800;text-decoration:underline}.standings-section,.fixtures-section{padding:60px clamp(22px,5vw,88px) 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.section-kicker{color:#d31d68;margin-bottom:4px}.section-heading h2,.editor-head h2{font-size:clamp(42px,4vw,58px);font-weight:900;line-height:1;letter-spacing:-.015em;text-transform:uppercase;margin:0}.period{color:var(--pink)}.view-switch{display:flex;align-items:center;gap:8px;font-size:12px;color:#647c89;font-weight:700}.view-switch select,.week-controls select{border:1px solid #ccdae2;background:white;color:#18364b;padding:10px 13px;border-radius:3px;font-weight:800}.table-card,.matches-card{background:white;box-shadow:0 6px 24px #173c5010;border:1px solid #e1eaf0}.table-scroll{overflow-x:auto}.table-card table{width:100%;border-collapse:collapse;min-width:760px;text-align:left}.table-card th{background:var(--navy2);color:#9bb5c4;font-size:15px;font-weight:700;letter-spacing:.09em;padding:15px 11px}.table-card th:first-child{padding-left:23px}.table-card th:last-child{padding-right:23px}.table-card td{padding:13px 11px;border-bottom:1px solid #eaf0f3;font-size:20px;font-weight:700;height:58px}.table-card tbody tr:last-child td{border-bottom:0}.table-card td:first-child{padding-left:23px}.table-card td:last-child{padding-right:23px}.table-card .pos-col{width:57px}.table-card .club-col{width:32%}.table-card .num-col{text-align:center;width:6%}.table-card .pts-col{text-align:center;width:75px;background:#ecf7f8;color:#062b3c}.table-card th.pts-col{background:#176171;color:white}.table-card .move-col{text-align:center;width:70px}.club-cell{display:flex;align-items:center;gap:14px;white-space:nowrap}.club-name{font-weight:800;font-size:20px}.club-badge{height:30px;width:30px;border-radius:6px;background:var(--badge,#1d5c75);display:grid;place-items:center;color:#fff;font-size:12px;font-weight:900;letter-spacing:-.02em;border:2px solid #ffffff88;box-shadow:0 0 0 1px #cbdde4;flex:none;line-height:1}.leader-row td{border-bottom:3px solid #25b9c9!important}.drop-row td{border-top:3px solid #e62979!important}.leader-row .pos-number{color:#119bac}.drop-row .pos-number{color:#d32270}.move-up{color:#079976}.move-down{color:#d73167}.move-flat{color:#9aadba}.move-pill{font:800 16px 'Barlow Condensed',sans-serif}.diff-pos{color:#069a79}.diff-neg{color:#d53366}.table-footer{display:flex;align-items:center;gap:22px;padding:15px 22px;background:#f8fbfc;border-top:1px solid #e7eef2;color:#5d7888;font-size:11px;font-weight:700}.legend-swatch{display:inline-block;width:13px;height:3px;vertical-align:middle;margin-right:6px}.legend-swatch.leader{background:#25b9c9}.legend-swatch.drop{background:#e62979}.table-footer-right{margin-left:auto;font-weight:500}.fixtures-section{padding-bottom:82px}.week-controls{display:flex;align-items:center;gap:5px}.week-controls button{border:1px solid #ccdae2;background:white;width:39px;height:39px;color:var(--ink);font-size:20px}.week-controls select{height:39px;font:800 18px 'Barlow Condensed',sans-serif;min-width:140px;text-align:center;text-transform:uppercase}.fixtures-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:20px}.card-top{background:var(--navy2);display:flex;justify-content:space-between;color:#fff;padding:15px 21px;font-size:17px;letter-spacing:.09em;font-weight:800}.card-top span:last-child{color:var(--cyan);font-size:14px}.match{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px;padding:16px 26px;border-bottom:1px solid #edf1f4;min-height:76px}.match:last-child{border:0}.match-team{display:flex;align-items:center;gap:12px;font-weight:700}.match-team.away{justify-content:flex-end;text-align:right}.match-score{background:#eff3f5;border-radius:2px;min-width:83px;text-align:center;padding:8px 10px;font:800 25px/1 'Barlow Condensed',sans-serif;white-space:nowrap}.match-score.complete{background:#0d2b3e;color:#fff}.match-score .winning{color:var(--cyan)}.match-empty{padding:53px 25px;text-align:center;color:#637d8d}.match-empty strong{display:block;color:#254255;font-size:17px;margin-bottom:5px}.match-empty button{border:0;background:none;color:#b7155d;text-decoration:underline;font-weight:700;margin-top:8px}.side-card{background:#0d283c;color:white;padding:27px;min-height:255px;position:relative;overflow:hidden}.side-card:before{content:'';position:absolute;width:180px;height:180px;border:1px solid #3de5ef25;border-radius:50%;right:-95px;top:-83px}.side-card-kicker{font:800 14px 'Barlow Condensed',sans-serif;color:var(--cyan);letter-spacing:.14em}.side-big{font-size:86px;line-height:1;font-weight:900;margin:15px 0 0}.side-big span{font-size:36px;color:#8fa9b7}.side-caption{font-size:12px;color:#b3c6d1;margin:2px 0 18px}.progress-track{height:5px;background:#365266;overflow:hidden}.progress-track div{height:100%;width:0;background:var(--cyan);transition:width .3s}.side-card p{font-size:12px;color:#a2bdc9;line-height:1.55;margin:22px 0}.side-action{padding:0;border:0;background:none;color:var(--cyan);font-weight:800;font-size:12px}.side-action span{margin-left:8px}footer{background:var(--navy);color:#8ca5b3;padding:26px clamp(22px,5vw,88px);display:flex;justify-content:space-between;gap:15px;font-size:11px}footer span:first-child{font:800 16px 'Barlow Condensed',sans-serif;color:white;letter-spacing:.09em}footer button{color:var(--cyan);background:none;border:0;padding:0;text-decoration:underline;font-size:11px}.drawer-backdrop{position:fixed;inset:0;background:#061421aa;z-index:10;backdrop-filter:blur(3px)}.editor{position:fixed;z-index:11;right:0;top:0;bottom:0;width:min(640px,100vw);background:#f7fafb;box-shadow:-15px 0 60px #06142155;display:flex;flex-direction:column}.editor[hidden],.drawer-backdrop[hidden],.editor-panel[hidden],[hidden]{display:none!important}.editor-head{background:var(--navy);color:white;padding:27px 30px 22px;display:flex;align-items:start;justify-content:space-between}.editor-head h2{font-size:42px}.close-button{border:1px solid #547083;background:#183448;color:white;border-radius:50%;width:34px;height:34px;font-size:24px;line-height:1}.editor-tabs{background:var(--navy);display:flex;padding:0 30px;gap:23px;overflow:auto;flex:none}.editor-tabs button{border:0;border-bottom:3px solid transparent;padding:13px 0;color:#91aab8;background:none;white-space:nowrap;font-size:12px;font-weight:800}.editor-tabs button.active{border-color:var(--cyan);color:white}.editor-content{padding:25px 30px;overflow:auto;flex:1}.help-card{background:#e8f4f6;border-left:3px solid #2dc4cf;padding:15px 17px;display:grid;gap:4px;font-size:12px;color:#536b79;margin-bottom:22px}.help-card strong{color:#0d4053;font-size:13px}.field-row{display:flex;gap:12px;align-items:end;margin:15px 0}.field-row label{display:grid;gap:6px;flex:1;font-size:11px;font-weight:800;color:#405d6b;text-transform:uppercase;letter-spacing:.04em}.field-row input,.field-row select{height:39px;border:1px solid #c7d9e2;border-radius:2px;background:white;color:#18394c;padding:8px 11px;width:100%;min-width:0}.editor-subhead{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #dce8ee;margin:26px 0 11px;padding-bottom:8px;color:#758e9a;font-size:11px}.editor-subhead h3{font:800 23px 'Barlow Condensed',sans-serif;text-transform:uppercase;color:#142f43;margin:0}.fixture-edit-card,.team-edit-card{background:white;border:1px solid #dfe9ee;margin:9px 0;padding:13px;box-shadow:0 2px 6px #173c5006}.fixture-edit-row{display:flex;align-items:center;gap:7px}.fixture-edit-row select{min-width:0;flex:1;height:39px;border:1px solid #cadbe2;background:#f8fafb;padding:5px;color:#173449;font-size:12px}.fixture-edit-row input{width:51px;height:39px;text-align:center;border:1px solid #cadbe2;font:800 20px 'Barlow Condensed',sans-serif}.fixture-edit-row .dash{font-weight:800;color:#74919e}.icon-button{border:0;background:none;color:#c74b72;font-size:20px;line-height:1;padding:3px 5px}.fixture-edit-note{font-size:10px;color:#8096a1;padding-top:7px}.add-row{border:1px dashed #8eb2c2;background:#f0f8fa;color:#146071;width:100%;padding:13px;font-weight:800;margin:10px 0}.small-note{font-size:11px;color:#6e8794;line-height:1.5;margin:5px 0 17px}.team-top{display:flex;gap:8px;align-items:center;margin-bottom:11px}.team-top input{height:37px;border:1px solid #c9d9e0;padding:7px 10px;flex:1;min-width:0;font-weight:700}.team-top input[type=color]{padding:2px;width:38px;flex:none}.team-fields{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.team-fields label{font:800 11px 'Barlow Condensed',sans-serif;color:#6c8592;text-align:center}.team-fields input{width:100%;height:33px;border:1px solid #d1e0e7;text-align:center;color:#17394a;font:700 17px 'Barlow Condensed',sans-serif;margin-top:3px}.upload-box{border:2px dashed #94b9c7;background:white;padding:20px;text-align:center;display:grid;gap:2px;color:#7793a1;font-size:11px;cursor:pointer}.upload-box strong{font-size:14px;color:#1c4c62}.upload-icon{font-size:32px;color:#25b6c4;line-height:1.3}.upload-box input,.upload-inline input{display:none}#screenshotWrap{margin:14px 0;background:#e7eef1;padding:12px;text-align:center}#screenPreview{max-width:100%;max-height:340px;object-fit:contain}.link-button{display:block;margin:7px auto 0;border:0;background:none;text-decoration:underline;color:#a21b50;font-size:11px}.paste-label{display:grid;font-size:12px;font-weight:800;margin:25px 0 8px}.paste-label small{font-weight:500;color:#78909c}textarea{border:1px solid #c8dbe4;padding:10px;width:100%;resize:vertical;font-size:12px}.inline-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:10px}.inline-actions .button{font-size:15px}.inline-actions span{font-size:11px;color:#6b828e}.backup-divider{border-top:1px solid #dce8ee;margin:26px 0 5px}.upload-inline{cursor:pointer}.danger-zone{border-top:1px solid #e3e9ed;margin-top:34px;padding-top:18px}.danger-zone button{border:0;background:none;padding:0;font-size:11px;color:#ba315d;text-decoration:underline}.editor-foot{border-top:1px solid #dae6ec;background:white;padding:13px 30px;display:flex;align-items:center;justify-content:space-between;color:#718996;font-size:11px}.saved-dot{width:6px;height:6px;box-shadow:none;margin-right:5px;background:#2fc894}.toast{position:fixed;bottom:23px;left:50%;transform:translate(-50%,20px);background:#0d2f41;color:#fff;padding:11px 18px;font-size:12px;border-radius:3px;z-index:20;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:880px){.hero{grid-template-columns:1fr;padding-top:45px;min-height:340px}.hero-visual{position:absolute;right:-70px;top:15px;opacity:.28;pointer-events:none}.hero-copy{max-width:620px}.fixtures-grid{grid-template-columns:1fr}.side-card{min-height:0}.side-big{font-size:58px}.side-card p{max-width:430px}.table-card table{min-width:720px}}@media(max-width:600px){.topbar{height:66px}.brand{font-size:16px}.brand-mark{width:39px;height:32px;font-size:16px}.season-chip{display:none}.top-actions .button{font-size:15px;padding:11px 12px}.hero{min-height:350px;padding-top:42px;padding-bottom:36px}.hero h1{font-size:66px}.hero p{max-width:300px;font-size:13px}.hero-actions{gap:18px;align-items:flex-start;flex-direction:column}.hero-visual{right:-145px;top:45px}.demo-notice{flex-wrap:wrap;line-height:1.3}.demo-notice span:nth-of-type(2){flex-basis:80%}.notice-action{margin-left:18px}.standings-section,.fixtures-section{padding-top:42px}.section-heading{align-items:flex-start;flex-direction:column;gap:13px}.section-heading h2{font-size:42px}.table-card th{font-size:13px}.table-card td{font-size:18px}.table-card .club-name{font-size:18px}.table-card .club-badge{width:25px;height:25px}.table-card table{min-width:680px}.table-footer{gap:12px;flex-wrap:wrap}.table-footer-right{margin-left:0;flex-basis:100%}.match{padding:14px 12px;gap:6px}.match-team{gap:5px;font-size:11px}.match-team .club-badge{height:23px;width:23px;font-size:9px}.match-score{font-size:21px;min-width:64px}.editor-head{padding:20px}.editor-tabs{padding:0 20px;gap:17px}.editor-content{padding:20px}.editor-foot{padding:12px 20px}.fixture-edit-row{gap:3px}.fixture-edit-row input{width:35px}.fixture-edit-row select{font-size:11px}.fixture-edit-card{padding:8px}.field-row{flex-wrap:wrap}.field-row label{flex-basis:40%}footer{flex-wrap:wrap}.side-card{padding:24px}}

/* Season controls and editable appearance */
.season-picker{display:flex;align-items:center;gap:9px;color:#a9c3cf;font:800 13px 'Barlow Condensed',sans-serif;letter-spacing:.1em}.season-picker select{background:#18354a;border:1px solid #345a6e;border-radius:3px;color:white;padding:9px 29px 9px 10px;font:800 16px 'Barlow Condensed',sans-serif;min-width:125px}.season-row{background:white;border:1px solid #dce7ec;padding:12px 14px;margin:7px 0;display:flex;justify-content:space-between;gap:10px;align-items:center}.season-row strong{font:800 18px 'Barlow Condensed',sans-serif;color:#143c50}.season-row span{color:#718a98;font-size:11px;text-align:right}.week-hint{font:800 16px 'Barlow Condensed',sans-serif;color:#637e8d;padding-bottom:9px}.style-field{display:grid;gap:5px;margin:14px 0;font-size:11px;font-weight:800;text-transform:uppercase;color:#506b79}.style-field select{height:42px;border:1px solid #cbdde5;background:white;color:#18394c;padding:7px 10px}.palette-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:17px 0}.palette-grid label{background:white;border:1px solid #d6e3e9;padding:10px;font-size:11px;font-weight:800;color:#526d7a;display:grid;gap:8px}.palette-grid input{border:0;width:100%;height:38px;background:none;padding:0;cursor:pointer}.style-reset{margin-top:6px}
.hero{background:radial-gradient(circle at 78% 49%,color-mix(in srgb,var(--navy) 76%,var(--cyan)) 0,var(--navy2) 36%,var(--navy) 78%)}.side-card{background:var(--navy2)}.leader-row td{border-bottom-color:var(--cyan)!important}.drop-row td{border-top-color:var(--pink)!important}.leader-row .pos-number{color:color-mix(in srgb,var(--cyan) 72%,#004b60)}.drop-row .pos-number{color:var(--pink)}.section-kicker{color:var(--pink)}.table-card th.pts-col{background:color-mix(in srgb,var(--cyan) 35%,var(--navy))}.table-card .pts-col{background:color-mix(in srgb,var(--cyan) 13%,white)}.demo-notice .demo-dot{background:#eebc48}
body[data-layout="compact"] .hero{min-height:255px;padding-top:36px;padding-bottom:30px}body[data-layout="compact"] .hero h1{font-size:clamp(55px,5vw,78px);margin:13px 0}body[data-layout="compact"] .hero-visual{min-height:195px}body[data-layout="compact"] .hero-number{font-size:125px}body[data-layout="compact"] .standings-section,body[data-layout="compact"] .fixtures-section{padding-top:38px}body[data-layout="compact"] .table-card td{height:42px;padding-top:6px;padding-bottom:6px}body[data-layout="compact"] .match{min-height:58px;padding-top:9px;padding-bottom:9px}body[data-layout="compact"] .fixtures-grid{grid-template-columns:minmax(0,1fr) 235px}
body[data-layout="fixtures-first"] main{display:flex;flex-direction:column}body[data-layout="fixtures-first"] .hero{order:0}body[data-layout="fixtures-first"] .demo-notice{order:1}body[data-layout="fixtures-first"] .fixtures-section{order:2;padding-bottom:0}body[data-layout="fixtures-first"] .standings-section{order:3;padding-bottom:75px}
.table-fixtures{margin-top:18px}.table-fixtures .card-top{padding:16px 20px;text-transform:uppercase}.table-fixtures .match-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,430px),1fr))}.table-fixtures .match-list{gap:2px;padding:2px;background:#8096a4}.table-fixtures .match{border:0;background:#fff;min-width:0}.table-fixtures .match-empty{background:#fff}
.hero.has-photo{background-image:linear-gradient(90deg,rgba(4,18,31,.93),rgba(4,18,31,.67) 58%,rgba(4,18,31,.4)),var(--hero-image);background-size:cover;background-position:center}.hero.has-photo .hero-visual{opacity:.55}.hero-copy{position:relative;z-index:1}.team-profile-link{border:0;background:none;padding:0;color:inherit;font:inherit;font-weight:inherit;text-align:inherit;cursor:pointer}.team-profile-link:hover{text-decoration:underline;text-underline-offset:3px;color:#08788a}.front-fields{display:grid;gap:11px}.front-fields label{display:grid;gap:5px;color:#476370;font-size:12px;font-weight:700}.front-fields input,.front-fields textarea{border:1px solid #c7d9e2;border-radius:2px;background:white;color:#18394c;padding:9px 11px;width:100%;font-size:14px}.front-image-controls{display:flex;flex-wrap:wrap;gap:9px;margin:17px 0 5px}.front-image-controls .button{font-size:14px;cursor:pointer}.front-image-controls input{display:none}
.relegation-row .pos-number{color:var(--pink)}.range-switch{flex-wrap:wrap;justify-content:flex-end}.range-switch select{min-width:112px}.profile-range{margin:-3px 0 16px}@media(max-width:600px){.range-switch{justify-content:flex-start}.range-switch select{min-width:106px}.profile-range{margin-top:6px}}
.hero-trophy{display:block;height:clamp(260px,27vw,350px);width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 16px 28px rgba(0,0,0,.38))}.hero-week-badge{position:absolute;bottom:0;right:0;background:rgba(5,22,35,.82);border:1px solid color-mix(in srgb,var(--cyan) 42%,transparent);padding:8px 15px;text-align:center;z-index:1}.hero-week-badge .hero-number{font-size:46px;line-height:.9;letter-spacing:0}.hero-week-badge .hero-number-label{font-size:12px;letter-spacing:.16em;margin:2px 0 0;color:var(--cyan)}.hero.has-photo .hero-visual{opacity:1}@media(max-width:880px){.hero-visual{right:-40px;opacity:.52}.hero-trophy{height:300px}}@media(max-width:600px){.hero-visual{right:-105px;opacity:.46}.hero-trophy{height:315px}.hero-week-badge{display:none}}
/* League navigation and dedicated views */
.league-nav{background:white;border-bottom:1px solid #e7e2ec;color:#2e123f;justify-content:flex-start;gap:20px;height:75px;padding-inline:clamp(16px,3vw,48px)}.nav-toggle{border:1px solid #eee7f3;background:white;border-radius:50%;width:40px;height:40px;color:#3d1a52;font-size:18px;flex:none}.league-brand{color:#321445;font:800 19px/1 'DM Sans',sans-serif;letter-spacing:-.04em;gap:5px;white-space:nowrap}.brand-lion{font-size:40px;line-height:1;filter:grayscale(1) brightness(0) saturate(100%);transform:scaleX(-1)}.league-brand .brand-copy{padding:0}.primary-nav{display:flex;align-items:center;gap:clamp(15px,2.5vw,36px);margin-left:20px}.primary-nav a{color:#321445;text-decoration:none;font-size:16px;font-weight:700;padding:26px 0 22px;border-bottom:4px solid transparent;white-space:nowrap}.primary-nav a:hover,.primary-nav a[aria-current="page"]{border-bottom-color:#8a257b;color:#6b1d68}.league-tools{display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:11px clamp(22px,5vw,88px);background:var(--navy2)}.league-tools .button{font-size:15px;padding:10px 16px}.page-view{min-height:65vh}.page-hero{background:linear-gradient(90deg,rgba(5,20,34,.95),rgba(8,29,45,.76)),var(--page-image,linear-gradient(120deg,var(--navy),var(--navy2)));background-size:cover;background-position:center;color:white;padding:62px clamp(22px,5vw,88px);min-height:230px;display:flex;align-items:center}.page-hero>div{max-width:750px}.page-kicker{color:var(--cyan);font-weight:800;font-size:13px;letter-spacing:.16em}.page-title{font:900 clamp(50px,7vw,88px)/.95 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:11px 0}.page-description{font-size:16px;color:#d6e5eb;margin:0}.page-content{padding:42px clamp(22px,5vw,88px) 90px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:18px}.page-heading h2{font:800 35px 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:0}.page-heading label,.page-range{display:flex;align-items:center;gap:7px;color:#516d7a;font-weight:700;font-size:14px}.page-heading select,.front-fields select{border:1px solid #c7d9e2;background:white;color:#18394c;padding:9px;border-radius:3px;min-height:40px}.page-range{gap:12px}.statistics-grid,.news-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:18px}.stat-card,.news-card{background:white;border:1px solid #e2eaf0;box-shadow:0 6px 24px #173c5010;padding:23px;min-width:0}.stat-card{border-top:4px solid var(--cyan)}.stat-card small{display:block;color:#657f8e;font-size:13px;font-weight:800;text-transform:uppercase}.stat-card strong{display:block;color:var(--navy);font:900 55px/1.1 'Barlow Condensed',sans-serif;margin:8px 0;overflow-wrap:anywhere}.stat-card p,.news-card p{white-space:pre-wrap;overflow-wrap:anywhere;color:#526d79}.news-card img{width:100%;max-height:280px;object-fit:contain;background:#eaf0f4;margin-bottom:15px}.news-card .news-week{color:var(--pink);font-weight:800;font-size:13px}.news-card h3{font:800 29px 'Barlow Condensed',sans-serif;color:var(--navy);margin:8px 0}.news-card p{font-size:14px;line-height:1.65}.page-view[data-page-layout="compact"] .statistics-grid,.page-view[data-page-layout="compact"] .news-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px}.page-view[data-page-layout="compact"] .match{min-height:55px;padding-block:9px}.editor-item{border:1px solid #dce7ec;background:white;padding:13px;margin:10px 0}.editor-item .front-fields{gap:8px}.editor-item-actions{display:flex;gap:6px;justify-content:flex-end;margin-top:10px}.editor-item-actions button{border:1px solid #cbdde5;background:white;color:#274b60;padding:6px 10px;border-radius:3px}.editor-item-actions button:disabled{opacity:.4;cursor:default}.editor-item-actions .remove-item{color:#b52b56}.news-image-label{justify-self:start;font-size:14px;cursor:pointer}.news-image-label input{display:none}.page-empty{background:white;border:1px dashed #bed1da;padding:36px;color:#577583;text-align:center}.page-view[hidden],#homeView[hidden],.primary-nav[hidden]{display:none!important}body[data-layout="fixtures-first"] main{display:block}body[data-layout="fixtures-first"] #homeView{display:flex;flex-direction:column}body[data-layout="fixtures-first"] #homeView .hero{order:0}body[data-layout="fixtures-first"] #homeView .demo-notice{order:1}body[data-layout="fixtures-first"] #homeView .fixtures-section{order:2}body[data-layout="fixtures-first"] #homeView .standings-section{order:3}body[data-layout="fixtures-first"] #homeView .profiles-section{order:4}@media(max-width:760px){.league-nav{height:auto;min-height:67px;flex-wrap:wrap;gap:9px;padding:10px 16px}.primary-nav{order:3;flex-basis:100%;margin:0;gap:17px;overflow-x:auto}.primary-nav a{padding:9px 0 7px;font-size:14px}.primary-nav.is-collapsed{display:none}.page-heading{align-items:flex-start;flex-direction:column}.page-content{padding-top:26px}.league-tools{justify-content:space-between}.page-hero{min-height:205px;padding-block:39px}}
.page-view .page-hero{background-image:linear-gradient(90deg,color-mix(in srgb,var(--navy) 96%,transparent),color-mix(in srgb,var(--navy) 70%,transparent)),var(--page-image)}.profile-page-link{color:#126275;font-weight:800;white-space:nowrap}.page-view[data-page-layout="compact"] .page-content{padding-top:24px}.page-view[data-page-layout="compact"] .table-card td{height:43px;padding-block:6px}
.league-brand .brand-lion{display:block;width:48px;height:48px;object-fit:contain;filter:none;transform:none;flex:none}
@media(max-width:880px){body[data-layout="compact"] .fixtures-grid{grid-template-columns:1fr}}@media(max-width:600px){.topbar{gap:12px}.top-actions{gap:8px}.season-picker{font-size:0}.season-picker select{font-size:14px;min-width:98px;max-width:112px;padding:7px}.top-actions .button span{display:none}.palette-grid{gap:5px}.palette-grid label{font-size:10px;padding:7px}.season-row{align-items:flex-start;flex-direction:column}.season-row span{text-align:left}body[data-layout="compact"] .hero{min-height:300px}body[data-layout="compact"] .fixtures-grid{grid-template-columns:1fr}}

/* Team badges and profiles */
.club-badge.has-image{background:transparent;border:0;box-shadow:none;border-radius:0}.club-badge img{display:block;width:100%;height:100%;object-fit:contain}.manager-field{margin:0 0 10px}.manager-field label{display:grid;gap:4px;color:#607c89;font-size:10px;font-weight:800;text-transform:uppercase}.manager-field input{border:1px solid #cbdde5;padding:8px 10px;color:#1b3a4e;width:100%;font-size:12px}.badge-upload-row{display:flex;gap:10px;align-items:center;margin-bottom:9px;color:#839aa5;font-size:10px}.badge-upload-row .club-badge{height:40px;width:40px}.badge-upload-button{display:inline-flex;align-items:center;border:1px solid #bad0da;background:#f2f8fa;padding:7px 10px;color:#24576a;font-weight:800;cursor:pointer}.badge-upload-button input{display:none}.badge-upload-row .link-button{margin:0;color:#a83c67}
.profiles-section{padding:0 clamp(22px,5vw,88px) 80px}.profile-card{background:white;border:1px solid #dfe9ee;box-shadow:0 6px 24px #173c5010}.profile-head{background:var(--navy2);color:white;padding:23px 28px;display:flex;align-items:center;justify-content:space-between;gap:15px}.profile-identity{display:flex;align-items:center;gap:17px;min-width:0}.profile-identity>.club-badge{width:75px;height:75px;font-size:24px;flex:none;border-radius:10px}.profile-identity>.club-badge.has-image{border-radius:0}.profile-season{font:800 12px 'Barlow Condensed',sans-serif;letter-spacing:.12em;color:var(--cyan)}.profile-identity h3{font:900 37px/1 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:3px 0 5px;overflow-wrap:anywhere}.profile-identity p{margin:0;font-size:12px;color:#adbfca}.profile-edit{border:1px solid #7b9aa9;background:none;color:#fff;padding:8px 12px;white-space:nowrap;font-size:12px;font-weight:800}.profile-summary{display:grid;grid-template-columns:repeat(3,1fr) minmax(170px,1.5fr);border-bottom:1px solid #e4ebef}.profile-summary>div{padding:18px 25px;border-right:1px solid #e4ebef}.profile-summary>div:last-child{border:0}.profile-summary small{display:block;font:800 12px 'Barlow Condensed',sans-serif;letter-spacing:.08em;color:#77909d}.profile-summary strong{font:900 34px/1.1 'Barlow Condensed',sans-serif;color:#12344a}.form-strip{display:flex;gap:5px;margin-top:9px}.form-strip span:not(.form-none){display:grid;place-items:center;width:27px;height:27px;border-radius:2px;color:white;font:800 16px 'Barlow Condensed',sans-serif}.form-w{background:#0d9a77}.form-d{background:#7c97a4}.form-l{background:#d24171}.form-none{font-size:12px;color:#849ba6}.profile-lists{display:grid;grid-template-columns:1fr 1fr;gap:0}.profile-lists>div{padding:24px 26px}.profile-lists>div+div{border-left:1px solid #e4ebef}.profile-lists h4{font:900 23px 'Barlow Condensed',sans-serif;text-transform:uppercase;margin:0 0 12px;color:#17374b}.profile-match{display:flex;gap:10px;align-items:center;padding:10px 0;border-top:1px solid #edf1f3;font-size:12px}.profile-gw{flex:none;width:38px;font:800 15px 'Barlow Condensed',sans-serif;color:#7a94a1}.profile-opponent{min-width:0;display:flex;align-items:center;gap:8px;font-weight:700;flex:1;overflow-wrap:anywhere}.profile-opponent .club-badge{height:22px;width:22px;font-size:9px}.profile-opponent small{font:700 10px 'Barlow Condensed',sans-serif;color:#849ba6}.profile-match strong{flex:none;white-space:nowrap;font:800 16px 'Barlow Condensed',sans-serif}.profile-match .result-w{color:#078c70}.profile-match .result-l{color:#cf376d}.profile-match .result-d{color:#607b89}.profile-placeholder,.profile-empty{color:#718997;font-size:12px;padding:20px 0}.profile-empty{padding:35px;text-align:center}body[data-layout="fixtures-first"] .profiles-section{order:4}body[data-layout="compact"] .profiles-section{padding-bottom:45px}body[data-layout="compact"] .profile-match{padding:6px 0}
@media(max-width:800px){.profile-summary{grid-template-columns:repeat(3,1fr)}.profile-summary .form-summary{grid-column:1/-1;border-top:1px solid #e4ebef}.profile-lists{grid-template-columns:1fr}.profile-lists>div+div{border-left:0;border-top:1px solid #e4ebef}}@media(max-width:600px){.profiles-section{padding:0 22px 55px}.profile-head{padding:18px;align-items:flex-start}.profile-identity>.club-badge{width:54px;height:54px;font-size:18px}.profile-identity h3{font-size:27px}.profile-edit{font-size:10px;padding:6px}.profile-summary>div{padding:13px}.profile-summary strong{font-size:28px}.profile-lists>div{padding:18px}.profile-opponent small{display:none}.badge-upload-row{flex-wrap:wrap}}

.return-leg-help{margin:2px 0 17px}.fixture-edit-row select:disabled{background:#eaf2f5;color:#456878;opacity:1;cursor:default}.fixture-edit-note.needs-review{color:#b33561;font-weight:800}.week-controls button:disabled{opacity:.35;cursor:default}

/* Shareable Gameweek graphics and official FPL leaders */
.export-button{font-size:14px;padding:11px 15px}.page-range{flex-wrap:wrap}.stadium-table-scene,.match-poster{position:relative;border:3px solid #4edbe6;background:#071c2e url('/assets/stadium-pitch.jpg') center/cover no-repeat;box-shadow:0 12px 35px #09263a35;overflow:hidden;padding:24px}.stadium-table-scene::before,.match-poster::before{content:'';position:absolute;inset:0;background:rgba(2,16,28,.65);pointer-events:none}.match-poster{background-image:url('/assets/matches-backdrop.jpg');max-width:1100px;margin:auto;padding:22px clamp(14px,4vw,42px) 38px}.poster-heading{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#fff;margin:0 0 22px;font:800 23px 'Barlow Condensed',sans-serif;letter-spacing:.04em}.poster-heading span{color:var(--cyan);font-size:17px;letter-spacing:.12em}.stadium-table-layout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(145px,23%) minmax(0,1fr);gap:20px;align-items:center}.table-scene-trophy{width:100%;max-height:560px;object-fit:contain;filter:drop-shadow(0 15px 22px #0009)}.stadium-table-scene .table-card{border:3px solid #eaf6f8;box-shadow:0 9px 34px #0009}.stadium-table-scene .table-card td{height:48px;padding-top:8px;padding-bottom:8px}.match-poster .matches-card{position:relative;z-index:1;background:rgba(8,28,45,.85);border:1px solid #789aaa}.match-poster .match{border-bottom-color:#ffffff29;color:white}.match-poster .match-score:not(.complete){background:#e9f3f5;color:#122f41}.match-poster .team-profile-link:hover{color:var(--cyan)}.match-poster .match-empty{color:#c7dde3}.fpl-stats{margin-top:56px}.fpl-credit{color:#5d7685;font-size:13px;margin:0 0 20px}.fpl-credit a,.fpl-stats .small-note a{color:#116b83;font-weight:700}.fpl-leaders{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,275px),1fr));gap:16px}.fpl-leader-card{background:#fff;border:1px solid #dbe7ed;border-top:4px solid var(--cyan);padding:19px;box-shadow:0 4px 18px #173c5010}.fpl-leader-card h3{font:800 27px 'Barlow Condensed',sans-serif;text-transform:uppercase;margin-bottom:13px}.fpl-player{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 0;border-top:1px solid #e9eef1;font-size:13px;font-weight:700}.fpl-player small{display:block;color:#8195a0;font-weight:500}.fpl-player strong{font:900 25px 'Barlow Condensed',sans-serif;color:#176b7f}.fpl-stats .small-note{margin-top:17px}@media(max-width:920px){.stadium-table-layout{grid-template-columns:1fr}.table-scene-trophy{max-height:170px}.poster-heading{flex-wrap:wrap}.stadium-table-scene{padding:15px}}@media(max-width:620px){.page-range{justify-content:flex-start}.match-poster .match{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px;padding:13px 8px}.match-poster .match-team{gap:4px;font-size:12px;min-width:0}.match-poster .club-badge{width:20px;height:20px;font-size:8px}.match-poster .match-score{min-width:48px;font-size:19px;padding:8px 3px}.poster-heading{font-size:19px}}

/* News desk: independent Gameweek views for recaps and updates. */
.news-hub{display:grid;gap:58px}.news-lane+.news-lane{border-top:2px solid #d6e4ea;padding-top:42px}.news-lane>.page-heading{align-items:end}.news-lane .page-kicker{display:block;color:var(--pink);margin-bottom:5px}.news-lane .page-range{gap:12px}.news-lane .page-range label{white-space:nowrap}.news-lane .news-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr))}.news-lane .news-card{border-top:4px solid var(--cyan)}.news-lane .news-card p{white-space:pre-wrap}.bulletin-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.bulletin-group{min-width:0}.bulletin-group>h3{background:var(--navy2);color:#fff;font:800 25px 'Barlow Condensed',sans-serif;text-transform:uppercase;padding:13px 18px;margin:0}.bulletin-group:nth-child(2)>h3{border-left:5px solid var(--pink)}.bulletin-group:nth-child(3)>h3{border-left:5px solid var(--cyan)}.bulletin-items{display:grid;gap:12px;padding-top:12px}.bulletin-items .news-card{box-shadow:none}.bulletin-items .news-card h4{font:800 26px 'Barlow Condensed',sans-serif;color:var(--navy);margin:8px 0}.bulletin-empty{margin:0;padding:24px 18px;background:#fff;border:1px dashed #bed1da;color:#577583;font-size:14px}@media(max-width:900px){.bulletin-groups{grid-template-columns:1fr}.news-lane>.page-heading{align-items:flex-start}.bulletin-items{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}}@media(max-width:600px){.news-hub{gap:42px}.news-lane+.news-lane{padding-top:29px}.news-lane .page-range{width:100%}.news-lane .page-range select{flex:1}.news-lane .page-range button{width:100%}}

.editorial-note{color:#587281;font-size:14px;line-height:1.5;margin:8px 0 0;max-width:680px}.sourced-card{border-top-color:var(--pink)!important}.news-source{display:block;border-top:1px solid #e4edf1;margin-top:16px;padding-top:12px;color:#0c697d;font-size:13px;font-weight:800;line-height:1.45;text-decoration:none}.news-source:hover{text-decoration:underline}
.snapshot-note{margin:10px 0 14px;color:#b8d5df;font-size:13px;line-height:1.45}.snapshot-note[hidden]{display:none}.stadium-table-scene .snapshot-note{padding:10px 14px;margin:0;color:#e4f7f9;background:#071d30}
.stats-scope-label,.stats-compare-controls label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#456373}.stats-scope-label select,.stats-compare-controls select{min-height:42px;padding:8px 12px;border:1px solid #c7d9e2;border-radius:4px;background:#fff;color:#18394c}.stats-period-note{margin:0 0 26px;color:#527181;font-size:14px}.stats-section{margin:32px 0 40px}.stats-section h3{font:800 30px 'Barlow Condensed',sans-serif;text-transform:uppercase;color:var(--navy);margin:0 0 16px}.stats-section .page-heading h3{margin:0}.stats-compare-controls{display:flex;gap:12px;flex-wrap:wrap}.league-stat-card{min-height:135px}.league-stat-card strong{font-size:34px;line-height:1.12}.league-stat-card p{font-size:14px;line-height:1.45;margin:7px 0 0}.stats-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:9px;margin-top:16px}.stats-form-team,.stats-compare-team{display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;border:1px solid #e2eaf0;padding:13px 15px;color:#18394c}.stats-form-team .form-strip{display:flex;gap:4px;flex:none}.stats-form-team .form-strip span{display:grid;place-items:center;width:25px;height:25px;font-size:12px;border-radius:50%}.stats-form-team .team-profile-link{font-size:14px;text-align:left}.stats-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:14px}.stats-compare-team{display:block;line-height:1.6}.stats-compare-team h4{margin:0 0 8px;font:800 23px 'Barlow Condensed',sans-serif}.stats-compare-team p{margin:4px 0;color:#506b7a}.stats-compare-team strong{color:#18394c}.stats-compare-head{grid-column:1/-1;background:#ecf6f8;border:1px solid #d3e5ea;padding:15px;color:#214658;line-height:1.5}.stats-compare-head p{margin:4px 0 0}.stats-section .page-empty{grid-column:1/-1}@media(max-width:760px){.stats-compare-controls{width:100%}.stats-compare-controls label{flex:1 1 160px;flex-wrap:wrap}.stats-compare-controls select{width:100%}.stats-section{margin:26px 0 34px}.league-stat-card strong{font-size:30px}}
.fpl-leaders{display:grid;grid-template-columns:1fr;gap:10px}.fpl-category{background:#fff;border:1px solid #dbe7ed;box-shadow:0 4px 18px #173c5010}.fpl-category summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;padding:16px 20px;color:#173448;font:800 23px 'Barlow Condensed',sans-serif;text-transform:uppercase;list-style:none}.fpl-category summary::-webkit-details-marker{display:none}.fpl-category summary span{font:700 12px Arial,sans-serif;color:#63818d}.fpl-category[open] summary{border-bottom:2px solid var(--cyan)}.fpl-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,225px),1fr));gap:12px;padding:15px}.fpl-leader-card{box-shadow:none;padding:12px 14px}.fpl-leader-card h3{font-size:21px}.fpl-player strong{text-align:right;font-size:18px;max-width:55%;overflow-wrap:anywhere}.fpl-no-values{font-size:13px;color:#607887}
.manager-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px;margin:8px 0 26px}.manager-tile{border:1px solid #dbe7ed;background:#fff;display:flex;align-items:center;gap:12px;text-align:left;padding:12px;cursor:pointer;color:#18384a;min-width:0}.manager-tile:hover,.manager-tile:focus-visible,.manager-tile.selected{border-color:var(--cyan);box-shadow:inset 0 0 0 1px var(--cyan)}.manager-tile .club-badge{flex:none}.manager-tile span:nth-child(2){min-width:0;flex:1}.manager-tile strong,.manager-tile small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manager-tile strong{font-weight:800}.manager-tile small{color:#687f8b;font-size:12px;margin-top:3px}
@media(max-width:900px){.primary-nav{order:3;flex-basis:100%;margin:0;flex-wrap:wrap;overflow:visible;gap:2px 20px}.league-nav{height:auto;min-height:67px;flex-wrap:wrap;padding-block:10px}.primary-nav a{padding:8px 0 6px;font-size:14px}.primary-nav.is-collapsed{display:none}}
/* Phone layout: keep the league readable and editing controls reachable. */
.mobile-move{display:none}
@media(max-width:600px){
  .app-shell{width:100%;overflow-x:clip}
  .primary-nav{display:grid;grid-template-columns:repeat(3,max-content);gap:0 16px;width:100%;justify-content:start}
  .primary-nav a{min-height:42px;display:flex;align-items:center;padding:8px 0 5px}
  .league-tools{padding:10px 14px;gap:8px}.season-picker{font-size:11px}.season-picker select{min-width:0;max-width:145px}.league-tools .button{font-size:13px;padding:11px 9px}
  .hero{min-height:320px;padding:36px 18px 26px}.hero h1{font-size:clamp(44px,12vw,66px);line-height:.91;overflow-wrap:anywhere}.hero p{max-width:min(270px,78%)}.hero-visual{right:-125px;top:30px;opacity:.33}.hero.has-photo .hero-visual{opacity:.6}.hero-actions .button{font-size:14px;white-space:normal;text-align:center}
  .standings-section,.fixtures-section,.profiles-section{padding-left:14px;padding-right:14px}.page-content{padding-left:14px;padding-right:14px}.page-hero{padding-left:18px;padding-right:18px}
  .section-heading,.page-heading{min-width:0}.range-switch{width:100%;gap:6px}.range-switch select{min-width:0;max-width:130px;flex:1}.page-heading label{max-width:100%;flex-wrap:wrap}.page-heading select{max-width:100%}
  .table-card table{min-width:0;width:100%;table-layout:fixed}.table-card th,.table-card td,.stadium-table-scene .table-card td{padding:7px 3px;height:47px;font-size:14px}.table-card th{font-size:11px;letter-spacing:0}.table-card th:first-child,.table-card td:first-child{padding-left:5px}.table-card th:last-child,.table-card td:last-child{padding-right:4px}
  .table-card th:nth-child(5),.table-card td:nth-child(5),.table-card th:nth-child(6),.table-card td:nth-child(6),.table-card th:nth-child(9),.table-card td:nth-child(9){display:none}
  .table-card .pos-col{width:35px}.table-card .club-col{width:auto}.table-card th:nth-child(3),.table-card th:nth-child(4){width:25px}.table-card th:nth-child(7){width:50px}.table-card .pts-col{width:35px}
  .table-card .club-cell{min-width:0;gap:4px;white-space:normal}.table-card .club-badge{width:20px;height:20px;font-size:8px}.table-card .club-name{font-size:13px;line-height:1.1;overflow-wrap:anywhere;min-width:0}.table-card .team-profile-link{line-height:1.1}.mobile-move{display:block;font:800 11px/1 'Barlow Condensed',sans-serif}
  .stadium-table-scene{padding:8px}.stadium-table-layout{gap:8px}.table-scene-trophy{max-height:115px}.stadium-table-scene .table-card{border-width:2px}
  .match{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:12px 8px;gap:5px}.match-team{min-width:0;gap:4px;line-height:1.15}.match-team .team-profile-link{overflow-wrap:anywhere}.match-team .club-badge{width:20px;height:20px;flex:none}.match-score{min-width:44px;padding:8px 3px;font-size:18px}
  .fixture-edit-row{display:grid;grid-template-columns:minmax(0,1fr) 16px minmax(0,1fr);gap:7px}.fixture-edit-row select{grid-column:1/-1;width:100%;min-height:44px;font-size:14px}.fixture-edit-row input{width:100%;height:44px;font-size:22px}.fixture-edit-row input[data-fixture="hs"]{grid-column:1}.fixture-edit-row .dash{grid-column:2;text-align:center}.fixture-edit-row input[data-fixture="as"]{grid-column:3}.fixture-edit-row select[data-fixture="away"]{grid-column:1/-1}.fixture-edit-row .icon-button{grid-column:3;justify-self:end;min-width:44px;min-height:44px}.fixture-edit-card{padding:12px}
  .profile-head{flex-wrap:wrap}.profile-edit{margin-left:auto;min-height:40px}.profile-identity{flex:1 1 100%}.profile-match{min-width:0}.profile-opponent .team-profile-link{overflow-wrap:anywhere}
  .editor{width:100vw}.editor-head,.editor-content{padding:16px}.editor-foot{padding:10px 16px}.editor-tabs{padding:0 16px}.editor-tabs button{min-height:44px}.editor .button{white-space:normal;text-align:center}
  .manager-directory{grid-template-columns:1fr}.page-range{width:100%}.page-range .button{min-height:44px}
}
@media(max-width:360px){.table-card .club-name{font-size:12px}.table-card th,.table-card td{padding-inline:2px}.table-card .pos-col{width:31px}.table-card .pts-col{width:32px}.table-card th:nth-child(7){width:48px}.primary-nav{gap:0 12px}.primary-nav a{font-size:13px}}
.visitor-preview-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:9px clamp(14px,5vw,88px);background:#e6f7fa;color:#163c4b;border-bottom:1px solid #9fd7e0;font-size:13px}.visitor-preview-banner[hidden]{display:none}.visitor-preview-banner strong{font-weight:900;text-transform:uppercase}.visitor-preview-banner span{flex:1}.visitor-preview-banner a{color:#006d83;font-weight:800}
body[data-visitor-preview="true"] #openEditor,body[data-visitor-preview="true"] #heroUpdate,body[data-visitor-preview="true"] #sideUpdate,body[data-visitor-preview="true"] #demoNotice,body[data-visitor-preview="true"] #editStatistics,body[data-visitor-preview="true"] #editNews,body[data-visitor-preview="true"] #editBulletin,body[data-visitor-preview="true"] #editProfile,body[data-visitor-preview="true"] #refreshFpl,body[data-visitor-preview="true"] #importFpl,body[data-visitor-preview="true"] #emptyAdd{display:none!important}
body[data-visitor-preview="true"] .fpl-stats .page-range{display:none!important}
@media(max-width:600px){.visitor-preview-banner{padding:9px 14px;gap:5px 10px}.visitor-preview-banner span{flex-basis:100%;order:3}}
.fixture-pager{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;border-top:1px solid #dbe5ec;padding-top:14px;margin-top:10px}.fixture-pager button{border:1px solid #bdcfd8;border-radius:3px;background:#f5fafb;color:#16394d;min-height:44px;padding:8px 10px;font-size:13px;font-weight:700}.fixture-pager button:disabled{opacity:.4;cursor:default}.fixture-pager span{font-size:12px;color:#617d8c}
.table-view-time{display:block;margin-top:8px;color:#536f7d;font-size:13px;font-weight:700}.table-fixtures{margin-top:20px}
main .club-badge[data-badge-team]{cursor:zoom-in}main .club-badge[data-badge-team]:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}.badge-viewer{border:1px solid #9bc2d0;border-radius:8px;padding:26px 24px 22px;background:#071e30;color:#fff;max-width:min(92vw,520px);width:100%;max-height:90vh;text-align:center;box-shadow:0 24px 85px #0008}.badge-viewer::backdrop{background:rgba(1,11,20,.78)}.badge-viewer-close{position:absolute;top:8px;right:12px;border:0;background:transparent;color:#fff;font-size:32px;min-width:44px;min-height:44px}.badge-viewer-art{display:grid;place-items:center;min-height:min(65vw,360px);padding:22px}.badge-viewer-art .club-badge{width:min(64vw,330px);height:min(64vw,330px);font-size:clamp(60px,15vw,120px);border-radius:16px}.badge-viewer-art .club-badge.has-image{border-radius:0}.badge-viewer h2{font:800 30px 'Barlow Condensed',sans-serif;margin:4px 0 0;text-transform:uppercase}

/* Clickable page menu, live match centre and editable announcement ticker. */
.league-nav{position:relative;z-index:9}.nav-toggle{display:grid;place-items:center;cursor:pointer}.primary-nav{position:absolute;top:calc(100% - 4px);left:clamp(16px,3vw,48px);display:grid;min-width:245px;margin:0;padding:9px;background:#fff;border:1px solid #e1d8e8;border-radius:5px;box-shadow:0 18px 42px #1e0d2d33;gap:0;z-index:20}.primary-nav a{padding:13px 15px;border:0;border-left:4px solid transparent;font-size:15px}.primary-nav a:hover,.primary-nav a[aria-current="page"]{border-bottom:0;border-left-color:#8a257b;background:#f8f3fa}.primary-nav.is-collapsed{display:none}
.desktop-nav{display:flex;align-items:stretch;gap:clamp(13px,1.7vw,28px);margin-left:14px;align-self:stretch}.desktop-nav a{display:flex;align-items:center;color:#321445;text-decoration:none;font-size:15px;font-weight:800;white-space:nowrap;border-bottom:4px solid transparent;padding-top:4px}.desktop-nav a:hover,.desktop-nav a[aria-current="page"]{color:#6b1d68;border-bottom-color:#8a257b}
.site-ticker{overflow:hidden;background:var(--ticker-bg,var(--pink));color:var(--ticker-color,#fff);border-top:4px solid var(--ticker-border,var(--cyan));padding:12px 0}.site-ticker-track{display:flex;width:max-content;animation:site-ticker 22s linear infinite}.site-ticker-track span{display:block;padding-right:16vw;font:900 clamp(18px,2.3vw,28px) 'Barlow Condensed',sans-serif;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}.site-ticker:hover .site-ticker-track{animation-play-state:paused}@keyframes site-ticker{to{transform:translateX(-33.333%)}}@media(prefers-reduced-motion:reduce){.site-ticker-track{animation:none}}

/* Official H2H connection, centered official deadline, and banner editor. */
.matches-deadline{align-self:center;text-align:center;color:#496b7c;font-weight:800;font-size:14px;line-height:1.35;padding:8px 14px;border-left:3px solid var(--cyan);background:#fff;box-shadow:0 2px 10px #173c5010}.official-live-setup{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0;padding:16px;background:#eef7f8;border:1px solid #d3e8eb}.official-live-setup label{display:grid;gap:5px;color:#345a69;font-weight:800;font-size:12px}.official-live-setup input{height:42px;min-width:190px;border:1px solid #b9d2da;background:#fff;padding:8px 11px}.official-live-setup span{font-size:12px;color:#54717e;flex:1;min-width:220px}.team-identity-fields{display:grid;grid-template-columns:1fr minmax(140px,.5fr);gap:10px}.team-identity-fields label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#405d6b;text-transform:uppercase}.team-identity-fields input{height:37px;border:1px solid #c9d9e0;padding:7px 10px;min-width:0}.ticker-palette{margin:12px 0 18px}@media(max-width:760px){#page-matches .page-heading{align-items:stretch}.matches-deadline{order:3;width:100%}.team-identity-fields{grid-template-columns:1fr}.official-live-setup>*{width:100%}.official-live-setup input{width:100%}}
.team-identity-fields label:last-child{color:#8a175f;background:#fff2fa;border-left:3px solid #d72a7d;padding:8px}.team-identity-fields label:last-child input{background:#fff;border-color:#c64b87}.page-image-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 18px}.page-image-preset{border:2px solid transparent;background:#fff;padding:5px;color:#17394a;text-align:left;font-weight:800}.page-image-preset img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;margin-bottom:6px}.page-image-preset.selected{border-color:var(--cyan);box-shadow:0 0 0 2px #3de5ef33}.page-image-preset span{display:block;padding:2px 4px 5px}@media(max-width:520px){.page-image-presets{grid-template-columns:1fr}}
.live-updated{margin:5px 0 0;color:#66818f;font-size:14px;font-weight:700}.live-score-notice{margin-bottom:18px;padding:14px 17px;background:#e8f7f9;border-left:4px solid var(--cyan);color:#244d5e;font-size:14px;line-height:1.5}.live-score-grid{display:grid;gap:10px}.live-score-card{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;padding:16px 18px;background:#fff;border:1px solid #dce7ec;box-shadow:0 4px 16px #173c500a}.live-score-card>small{grid-column:1/-1;text-align:center;color:#6d8390}.live-team{display:flex;align-items:center;gap:9px;min-width:0;font-weight:800}.live-team.away{justify-content:flex-end;text-align:right}.live-inputs{display:flex;align-items:center;gap:7px;font-weight:900}.live-inputs input{width:58px;height:48px;text-align:center;border:2px solid #bcd2dc;border-radius:4px;color:#17394b;font:900 25px 'Barlow Condensed',sans-serif}.live-inputs input:focus{outline:3px solid #3de5ef55;border-color:var(--cyan)}.live-inputs input:disabled{background:#edf2f4;color:#617785}.live-score-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.live-score-actions button:disabled{opacity:.45;cursor:default}body[data-visitor-preview="true"] #saveLiveScores,body[data-visitor-preview="true"] #confirmLiveScores{display:none!important}
@media(max-width:600px){.primary-nav{left:14px;right:14px;min-width:0;width:auto;grid-template-columns:1fr}.primary-nav a{min-height:44px;padding:12px 14px}.live-score-card{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);padding:13px 8px;gap:5px}.live-team{font-size:12px;gap:4px}.live-team .club-badge{width:22px;height:22px;font-size:8px}.live-inputs{gap:3px}.live-inputs input{width:42px;height:43px;font-size:21px}.live-score-actions .button{width:100%}}
@media(max-width:1120px){.desktop-nav{display:none}}
.hero.has-photo{background-position:var(--hero-position,center 50%)}.page-view .page-hero{background-position:var(--page-position,center 50%)}
.background-position-preview{height:210px;margin:12px 0 10px;border:2px solid #9ab9c7;border-radius:5px;background-size:cover;background-repeat:no-repeat;cursor:grab;touch-action:none;position:relative;overflow:hidden;box-shadow:inset 0 0 0 1px #fff8}.background-position-preview[hidden],.background-position-control[hidden]{display:none!important}.background-position-preview.dragging{cursor:grabbing}.background-position-preview span{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);white-space:nowrap;background:#071e30d9;color:#fff;padding:7px 12px;border-radius:20px;font-size:12px;font-weight:800;pointer-events:none}.background-position-control{display:grid;grid-template-columns:auto 1fr 45px;align-items:center;gap:10px;margin:9px 0 19px;color:#405d6b;font-size:12px;font-weight:800}.background-position-control input{width:100%;accent-color:var(--pink)}.background-position-control output{text-align:right;color:#17394b;font:800 17px 'Barlow Condensed',sans-serif}@media(max-width:600px){.background-position-preview{height:170px}}

/* Visitor-only presentation: owner editing remains available in the main view. */
body[data-visitor-preview="true"] .owner-only,
body[data-visitor-preview="true"] #homeView .side-card{display:none!important}
body[data-visitor-preview="true"] #homeView .fixtures-grid{grid-template-columns:minmax(0,1fr)}
body[data-visitor-preview="true"] .hero-trophy,
body[data-visitor-preview="true"] .hero-week-badge{cursor:default;touch-action:auto}
body[data-visitor-preview="true"] .live-inputs input[readonly]{border-color:transparent;background:transparent;cursor:default}
@media(max-width:1024px){
  body[data-visitor-preview="true"] .page-view,.page-content{min-width:0}
  body[data-visitor-preview="true"] .live-team{overflow-wrap:anywhere}
}

body[data-visitor-preview="true"] .official-live-setup label{display:none!important}

/* statistics-overrides.css */
#page-statistics .stats-section h3 {
  color: var(--stats-heading, #000000);
}

#page-statistics .stats-section :where(p, small, label),
#page-statistics .stats-form-team,
#page-statistics .stats-compare-team,
#page-statistics .stats-compare-head {
  color: var(--stats-content, #000000);
}

#page-news .news-lane .page-heading h2,
#page-news .news-card :where(h3, h4) {
  color: var(--news-heading, #000000);
}

#page-news .news-lane :where(p, small, label),
#page-news .news-card p,
#page-news .bulletin-empty {
  color: var(--news-content, #000000);
}

.hero-trophy {
  transform: translate(var(--trophy-x, 0), var(--trophy-y, 0));
  transition: transform .18s ease;
}

.hero-week-badge {
  transform: translate(var(--week-x, 0), var(--week-y, 0));
  transition: transform .18s ease, border-radius .18s ease;
}

.hero-week-badge[data-visible="false"] { display: none !important; }
.hero-week-badge[data-visible="true"] { display: block; }
.hero-week-badge[data-shape="square"] { border-radius: 0; }
.hero-week-badge[data-shape="rounded"] { border-radius: 14px; }
.hero-week-badge[data-shape="pill"] { border-radius: 999px; padding-inline: 24px; }
.hero-week-badge[data-shape="circle"] { border-radius: 50%; width: 106px; height: 106px; padding: 19px 8px; }
.hero-visual-controls { margin-top: 24px; }
.hero-visibility-option { display: flex !important; grid-column: 1 / -1; flex-direction: row !important; align-items: center; gap: 9px; }
.hero-visibility-option input { width: auto; }

/* mobile.css */
/* Phone layout shared by Home and the dedicated league pages. */
@media (max-width: 600px) {
  html { font-size: 16px; }
  body { min-width: 0; }
  .app-shell { width: 100%; max-width: 100%; }
  .league-nav { gap: 10px; }
  .nav-toggle { width: 44px; height: 44px; flex: none; }
  .league-brand { min-width: 0; font-size: 17px; }
  .brand-lion { width: 40px; height: 40px; }
  .primary-nav { max-height: min(70dvh, 470px); overflow-y: auto; overscroll-behavior: contain; }
  .league-tools { flex-wrap: wrap; align-items: center; }
  .season-picker { min-width: 0; flex: 1 1 145px; }
  .season-picker select { width: 100%; max-width: none; }
  .league-tools .button { min-height: 44px; flex: 0 1 auto; }

  .hero, body[data-layout="compact"] .hero {
    display: flex; flex-direction: column; gap: 14px;
    min-height: 0; padding: 32px 18px 22px;
  }
  .hero-copy { max-width: 100%; }
  .hero h1, body[data-layout="compact"] .hero h1 {
    font-size: clamp(43px, 12vw, 66px); line-height: .95;
    margin: 18px 0; overflow-wrap: anywhere;
  }
  .hero p { max-width: 100%; font-size: 15px; line-height: 1.5; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
  .hero-actions .button { min-height: 44px; }
  .hero-visual, body[data-layout="compact"] .hero-visual,
  .hero.has-photo .hero-visual {
    position: relative; top: auto; right: auto; left: auto;
    width: 100%; min-height: 210px; opacity: 1;
    pointer-events: auto;
  }
  .hero-trophy, body[data-layout="compact"] .hero-trophy { height: 220px; max-width: 75%; }
  .hero-visual:after { width: 270px; height: 270px; max-width: 100%; }
  .hero-week-badge { right: max(2px, 4%); bottom: 2px; }
  .hero-week-badge .hero-number { font-size: 34px; }
  .hero-week-badge .hero-number-label { font-size: 11px; }

  .section-heading, .page-heading { gap: 12px; }
  .page-content { padding-bottom: 55px; }
  .page-hero { min-height: 185px; padding-top: 35px; padding-bottom: 35px; }
  .page-title { font-size: clamp(43px, 13vw, 64px); overflow-wrap: anywhere; }
  .page-description { line-height: 1.5; }
  .page-range { display: flex; flex-wrap: wrap; min-width: 0; }
  .page-range label { min-width: 0; }
  .page-range select { max-width: 100%; }
  .range-switch { justify-content: flex-start; }
  .range-switch select { max-width: none; min-height: 44px; }

  .table-card, .table-scroll { min-width: 0; }
  .table-card table { width: 100%; min-width: 0; table-layout: fixed; }
  .table-card .club-cell { display: flex; min-width: 0; }
  .table-card .club-name { min-width: 0; overflow-wrap: anywhere; }
  .table-card .club-name button { white-space: normal; }
  .table-card th, .table-card td { vertical-align: middle; }
  .stadium-table-layout { min-width: 0; }
  .stadium-table-scene .table-card { min-width: 0; }

  .match-poster { padding: 16px 9px 24px; }
  .poster-heading { align-items: flex-start; gap: 8px; }
  .match-team { font-size: 13px; }
  .match-team .team-profile-link { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
  .match-score { white-space: nowrap; }
  .live-score-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .live-team { font-size: 13px; }
  .live-inputs { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .live-inputs input { width: 58px; height: 44px; }
  .live-score-card > small { grid-row: 3; }

  .profile-match { gap: 6px; }
  .profile-gw { width: 33px; }
  .profile-opponent { min-width: 0; }
  .profile-opponent .club-badge { flex: none; }
  .profile-match strong { font-size: 14px; }
  .stats-form-team { flex-wrap: wrap; }
  .stats-form-team .team-profile-link { overflow-wrap: anywhere; }
  .fpl-player { gap: 10px; }
  .fpl-player > * { min-width: 0; }

  .editor { height: 100dvh; max-height: 100dvh; }
  .editor-head { flex: none; }
  .editor-head h2 { font-size: 34px; }
  .editor-tabs { flex: none; gap: 18px; overscroll-behavior-x: contain; }
  .editor-content { min-height: 0; padding-bottom: 32px; }
  .editor-foot { flex: none; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .field-row { align-items: stretch; }
  .field-row label { flex-basis: 100%; }
  .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .front-fields input, .front-fields textarea, .front-fields select,
  .team-identity-fields input, .fixture-edit-row select,
  .editor-content input[type="number"], .editor-content textarea { font-size: 16px; }
  .editor-content button, .editor-content select { min-height: 44px; }
  .page-image-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-image-preset { min-width: 0; }
  .page-image-preset span { font-size: 14px; line-height: 1.25; }
  .background-position-preview { height: 190px; }
}

@media (max-width: 380px) {
  .league-tools .button { width: 100%; }
  .page-image-presets { grid-template-columns: 1fr; }
  .match-team .club-badge { display: none; }
  .table-card .club-name { font-size: 12px; }
  .table-card .club-badge { width: 18px; height: 18px; }
  .table-card .pts-col { width: 33px; }
  .palette-grid { grid-template-columns: 1fr 1fr; }
}

/* deadline-squad.css */
.hero-week-badge{min-width:190px;max-width:235px;padding:10px 13px;border-radius:12px;box-shadow:0 12px 30px rgba(0,0,0,.32)}
.hero-week-badge .hero-deadline-date,.hero-week-badge .hero-countdown{display:block;font-size:11px;line-height:1.35;letter-spacing:0;color:#fff;margin-top:8px;font-weight:650}
.hero-week-badge .hero-countdown{color:#64eff0;font-size:12px;font-variant-numeric:tabular-nums;margin-top:5px}
.hero-week-badge[data-shape="circle"]{width:160px;height:160px;padding:13px 8px;border-radius:50%}
.profile-fpl-details{margin-top:22px;border:1px solid rgba(33,107,132,.24);border-radius:14px;background:#f7fbfd;color:#0b2432;overflow:hidden}
.profile-fpl-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;cursor:pointer;list-style:none;font-weight:800;font-size:17px}
.profile-fpl-details>summary::-webkit-details-marker{display:none}
.profile-fpl-details>summary small{display:block;color:#4a6571;font-weight:500;font-size:12px;margin-top:3px}
.profile-fpl-chevron{font-size:24px;transition:transform .2s}
.profile-fpl-details[open] .profile-fpl-chevron{transform:rotate(180deg)}
.profile-fpl-body{padding:0 20px 20px}
.profile-fpl-body>label{display:inline-flex;align-items:center;gap:9px;font-weight:650;font-size:13px}
.profile-fpl-body select{max-width:180px;min-height:38px;border:1px solid #a1b5c0;border-radius:8px;background:#fff;color:#0b2432;padding:5px 8px}
.profile-squad-content{padding-top:14px;line-height:1.5}
.profile-squad-overview{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 0;border-bottom:1px solid #d5e5ea}
.profile-squad-overview span{color:#405f6c;font-size:13px}
.profile-squad-lists{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}
.profile-squad-lists h4{margin:15px 0 6px;color:#0b2432}
.profile-squad-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #e0eaf0;padding:7px 0;font-size:13px}
.profile-squad-row small{display:block;color:#56717d;font-size:11px}
.profile-squad-row strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.profile-fpl-credit{font-size:11px;color:#526f7a;margin:16px 0 0}
.profile-fpl-credit a{color:#075e81}
@media(max-width:600px){.hero-week-badge{display:block;min-width:152px;max-width:175px;padding:8px 9px}.hero-week-badge .hero-deadline-date,.hero-week-badge .hero-countdown{font-size:10px}.hero-week-badge[data-shape="circle"]{width:145px;height:145px}.profile-fpl-details>summary{padding:15px}.profile-fpl-body{padding:0 15px 16px}.profile-squad-lists{grid-template-columns:1fr;gap:0}}
/* Reserve the same space for every countdown tick and deadline status. */
.hero-week-badge{box-sizing:border-box;width:260px;min-width:260px;max-width:260px;height:164px;padding:16px 14px}
.hero-week-badge .hero-deadline-date{height:30px;margin-top:10px}
.hero-week-badge .hero-countdown{height:32px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-variant-numeric:tabular-nums;line-height:1.4}
.hero-week-badge[data-shape="circle"]{width:230px;min-width:230px;max-width:230px;height:230px;padding:40px 18px}
@media(max-width:600px){
  .hero-week-badge{width:218px;min-width:218px;max-width:218px;height:152px;padding:15px 10px}
  .hero-week-badge .hero-countdown{font-size:10px}
  .hero-week-badge[data-shape="circle"]{width:208px;min-width:208px;max-width:208px;height:208px;padding:35px 16px}
}
.squad-view-switch{display:inline-flex;gap:3px;padding:3px;margin:15px 0 12px;border:1px solid #c6dce4;border-radius:9px;background:#eaf2f4}
.squad-view-switch button{border:0;border-radius:6px;padding:7px 18px;background:transparent;color:#1a4052;font-weight:800;font-size:13px}
.squad-view-switch button[aria-pressed="true"]{background:#08344a;color:#fff;box-shadow:0 1px 5px #092e3933}
.squad-pitch{position:relative;isolation:isolate;display:flex;flex-direction:column;justify-content:space-evenly;gap:11px;min-height:490px;padding:18px 18px 20px;border:4px solid #ecf6f1;border-radius:14px;background:repeating-linear-gradient(0deg,#137b5f 0 64px,#16896a 64px 128px);box-shadow:inset 0 0 0 2px #ffffff60,0 10px 20px #123d371e;overflow:hidden}
.squad-pitch:before{content:'';position:absolute;inset:24px;border:2px solid #ffffff80;border-radius:3px;pointer-events:none;z-index:-1}
.squad-pitch:after{content:'';position:absolute;left:50%;top:50%;width:min(18%,110px);aspect-ratio:1;border:2px solid #ffffff85;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;z-index:-1}
.squad-pitch-centre{position:absolute;left:24px;right:24px;top:50%;border-top:2px solid #ffffff80;z-index:-1}
.squad-pitch-line{display:grid;grid-template-columns:repeat(var(--pitch-count),minmax(0,1fr));justify-items:center;align-items:end;gap:5px;width:min(100%,780px);margin:auto}
.squad-pitch-player{position:relative;display:flex;flex-direction:column;align-items:center;min-width:0;width:100%;max-width:130px;text-align:center;font-size:11px;line-height:1.18;color:#fff;text-shadow:0 1px 3px #073a37;z-index:1}
.squad-shirt{position:relative;display:grid;place-items:center;width:48px;height:52px;background:linear-gradient(105deg,var(--shirt-trim) 0 19%,var(--shirt) 20% 81%,var(--shirt-trim) 82% 100%);clip-path:polygon(24% 0,39% 7%,61% 7%,76% 0,100% 17%,88% 42%,79% 37%,79% 100%,21% 100%,21% 37%,12% 42%,0 17%);filter:drop-shadow(0 3px 2px #102d3170)}
.squad-shirt-club{display:grid;place-items:center;width:25px;height:23px;margin-top:9px;border-radius:3px;background:#ffffffd9;color:#172e3a;font-size:8px;line-height:1;font-weight:900;text-shadow:none;letter-spacing:-.03em}
.squad-armband{position:absolute;top:0;left:calc(50% + 17px);display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#f6e238;color:#172327;font-size:10px;font-weight:900;text-shadow:none;box-shadow:0 1px 3px #0005}
.squad-armband.vice{background:#f6f6f6}
.squad-player-name{display:block;width:min(100%,110px);margin-top:5px;padding:4px 3px;background:#0a453bd9;border-radius:4px 4px 0 0;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.squad-player-points{display:block;width:min(100%,110px);padding:3px 2px;border-radius:0 0 4px 4px;background:#f8fbfc;color:#15384a;text-shadow:none;font-weight:900;font-variant-numeric:tabular-nums}
.squad-bench{padding:12px 12px 16px;border:1px solid #c7dedf;border-radius:0 0 12px 12px;background:#eaf3f1}
.squad-bench h4{margin:0 0 12px;color:#153a48}
.squad-bench-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;justify-items:center}
.squad-bench .squad-pitch-player{color:#123c49;text-shadow:none}
.squad-bench .squad-player-name{color:#fff;text-shadow:none}
@media(max-width:600px){.squad-pitch{min-height:415px;padding:13px 7px;gap:5px}.squad-pitch:before{inset:12px}.squad-pitch-centre{left:12px;right:12px}.squad-pitch-line{gap:2px}.squad-pitch-player{font-size:9px}.squad-shirt{width:37px;height:40px}.squad-shirt-club{width:20px;height:17px;margin-top:8px;font-size:7px}.squad-armband{left:calc(50% + 13px);width:15px;height:15px;font-size:9px}.squad-player-name{margin-top:3px;padding:3px 1px}.squad-player-points{padding:3px 1px}.squad-bench{padding:10px 6px}.squad-bench-grid{gap:3px}}
.hero-trophy,.hero-week-badge{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.hero-trophy.is-dragging,.hero-week-badge.is-dragging{cursor:grabbing;transition:none}
.hero-week-badge{display:flex!important;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
.hero-week-badge[data-visible="false"]{display:none!important}
.hero-week-badge .hero-number,.hero-week-badge .hero-number-label,.hero-week-badge .hero-deadline-date,.hero-week-badge .hero-countdown{max-width:100%;flex:none;margin-left:0}
.hero-week-badge .hero-deadline-date{height:auto;min-height:30px;margin-top:9px;display:grid;place-items:center}
.hero-week-badge .hero-countdown{height:auto;min-height:29px;margin-top:4px;display:grid;place-items:center;overflow-wrap:anywhere}
.hero-week-badge[data-shape="circle"]{padding:32px 24px}
@media(max-width:600px){.hero-week-badge[data-shape="circle"]{padding:28px 20px}}
/* The countdown and its heading share a safe content area in every box shape. */
.hero-week-badge{display:grid!important;place-items:center;overflow:hidden;padding:12px 15px}
.hero-week-badge[data-visible="false"]{display:none!important}
.hero-week-badge[data-shape="pill"]{padding-inline:22px}
.hero-week-badge[data-shape="circle"]{padding:34px 27px}
.hero-week-content{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;min-width:0;max-width:100%;text-align:center;transform:translate(var(--text-x,0px),var(--text-y,0px));pointer-events:none}
.hero-week-badge .hero-week-content .hero-number{font-size:var(--heroWeekNumberSize,46px);line-height:1;max-width:100%;margin:0}
.hero-week-badge .hero-week-content .hero-number-label{font-size:var(--heroWeekLabelSize,12px);line-height:1.15;letter-spacing:.07em;max-width:100%;overflow-wrap:anywhere;margin:2px 0 0}
.hero-week-badge .hero-week-content .hero-deadline-date{font-size:var(--heroWeekDateSize,12px);line-height:1.25;min-height:0;height:auto;margin:8px 0 0;max-width:100%;display:block;overflow-wrap:anywhere}
.hero-week-badge .hero-week-content .hero-countdown{font-size:var(--heroWeekTimerSize,14px);line-height:1.25;min-height:0;height:auto;margin:5px 0 0;max-width:100%;display:block;white-space:normal;font-variant-numeric:tabular-nums;letter-spacing:-.045em}
@media(max-width:600px){.hero-week-badge{padding:10px 12px}.hero-week-badge[data-shape="circle"]{padding:31px 23px}}
/* Tappable official player points and accessible detail sheet. */
.squad-points-button{cursor:pointer;font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;border:1px solid currentColor;border-radius:7px;padding:8px 10px;min-height:44px;background:#fff;color:#152d42}
.squad-pitch-player .squad-points-button{position:relative;z-index:2;max-width:100%;min-width:44px;padding:7px 4px}
.squad-points-button:focus-visible,.player-points-dialog button:focus-visible{outline:3px solid #e7a82f;outline-offset:3px}
.player-points-dialog{width:min(540px,calc(100% - 24px));max-height:85vh;max-height:85svh;margin:auto;padding:0;border:0;border-radius:16px;background:#fff;color:#162a3a;box-shadow:0 16px 70px #0006;overflow:auto}
.player-points-dialog::backdrop{background:rgba(4,16,29,.72)}
.player-points-dialog header{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;padding:20px;background:#122d43;color:#fff}
.player-points-dialog header p{font-size:12px;letter-spacing:.08em;margin:0 0 6px}.player-points-dialog h2{font-size:22px;line-height:1.25;margin:0}
.player-points-dialog header button{flex:none;min-width:44px;min-height:44px;border:1px solid #ffffff80;border-radius:50%;background:transparent;color:#fff;font-size:28px;cursor:pointer}
.player-points-body{padding:18px 20px}.player-points-match{margin-bottom:22px}.player-points-match h3{font-size:17px;margin:0 0 4px}.player-points-match p{font-size:13px;margin:0 0 10px;color:#516573}
.player-points-match table{width:100%;border-collapse:collapse;table-layout:auto;font-size:14px}.player-points-match th,.player-points-match td{padding:10px 5px;border-bottom:1px solid #e0e7ec;text-align:right}.player-points-match th:first-child{text-align:left}.player-points-match tbody th{font-weight:500}.player-points-match thead{background:#f0f4f7}.player-points-match .negative{color:#b02635}
.player-points-totals{padding:12px 14px;background:#eef4f6;border-radius:10px;margin:0}.player-points-totals div{display:flex;justify-content:space-between;gap:18px;padding:6px 0}.player-points-totals dd{margin:0;font-weight:800}.player-points-totals div:last-child{border-top:1px solid #cedce4;margin-top:5px;padding-top:12px;font-weight:800}.player-points-note{font-size:12px;line-height:1.5;color:#526574;margin:12px 0 0}
@media(max-width:600px){.player-points-dialog{margin:auto auto 0;width:100%;max-width:100%;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}.player-points-body{padding:16px}.player-points-dialog h2{font-size:20px}}
/* Reference squad layout: green pitch, club shirts and two purple label rows. */
.profile-squad-overview.squad-template-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:18px 4px;margin-bottom:0;border-bottom:1px solid #bbb;background:#fff;border-radius:0;color:#211538;text-align:center}
.squad-template-summary>div{min-width:0}.squad-template-summary span{display:block;font-size:12px;font-weight:800;color:#777;letter-spacing:.02em}.squad-template-summary strong{display:block;font-size:27px;line-height:1.3;font-variant-numeric:tabular-nums}.squad-template-summary strong small{font-size:11px;color:#507d52}
.squad-pitch{border:0;border-radius:0;min-height:680px;padding:18px 12px 28px;gap:24px;background:repeating-conic-gradient(from 25deg at 50% 50%,#4fa568 0deg 40deg,#56ad71 40deg 80deg);box-shadow:none;overflow:hidden}
.squad-pitch:before,.squad-pitch:after{display:none}.squad-pitch-markings{position:absolute;inset:15px 15px 12px;border:3px solid #ecf4ee;pointer-events:none;z-index:-1;transform:perspective(900px) rotateX(6deg);transform-origin:bottom}
.pitch-box{position:absolute;left:25%;width:50%;height:17%;border:3px solid #ecf4ee}.pitch-box.top{top:-3px}.pitch-box.bottom{bottom:-3px}.pitch-box:after{content:'';position:absolute;left:25%;width:50%;height:45%;border:2px solid #ecf4ee}.pitch-box.top:after{top:-2px}.pitch-box.bottom:after{bottom:-2px}.pitch-circle{position:absolute;width:26%;aspect-ratio:1;left:37%;top:50%;transform:translateY(-50%);border:3px solid #ecf4ee;border-radius:50%}.pitch-midline{position:absolute;left:0;right:0;top:50%;border-top:3px solid #ecf4ee}
.squad-pitch-line{gap:9px;margin:auto;width:100%;max-width:760px}.squad-pitch-player{max-width:132px;font-size:13px;line-height:1.15;text-shadow:none}.squad-kit-wrap{position:relative;width:100%;height:92px;display:flex;align-items:flex-end;justify-content:center;margin-bottom:7px}
.squad-shirt{width:88px;height:88px;background:var(--shirt);filter:drop-shadow(0 2px 1px #0002);clip-path:polygon(25% 3%,38% 0,50% 8%,62% 0,75% 3%,100% 22%,88% 48%,78% 40%,78% 100%,22% 100%,22% 40%,12% 48%,0 22%)}
.squad-shirt.kit-striped{background:repeating-linear-gradient(90deg,var(--shirt) 0 12%,var(--shirt-trim) 12% 23%)}.squad-shirt.kit-keeper{background:linear-gradient(90deg,var(--shirt-trim) 0 18%,var(--shirt) 19% 81%,var(--shirt-trim) 82%)}
.kit-collar{position:absolute;top:-7%;left:35%;width:30%;height:20%;border:4px solid var(--shirt-trim);border-radius:0 0 50% 50%;background:#ffffff25}.kit-crest{position:absolute;top:29%;right:30%;width:7px;height:8px;border-radius:50%;background:var(--shirt-trim)}.kit-sponsor{position:absolute;left:32%;width:36%;height:6px;top:50%;background:var(--shirt-trim)}
.squad-player-name{width:100%;margin:0;padding:5px 2px;background:#211538;color:#fff;border-radius:0;font-weight:800;letter-spacing:-.015em}.squad-pitch-player .squad-player-points{width:100%;min-width:0;min-height:28px;height:28px;padding:3px 2px;border:0;border-top:1px solid #eae3f1;border-radius:0;background:#211538;color:white;font-size:14px;text-decoration:none}
.squad-player-info{position:absolute;right:0;bottom:-1px;display:grid;place-items:center;width:23px;height:23px;padding:0;border:2px solid #fff;border-radius:50%;background:#211538;color:#fff;font-family:Georgia,serif;font-weight:900;font-size:17px;cursor:pointer}.squad-player-info:before{content:'';position:absolute;inset:-9px}.squad-player-info.injury-warning{background:#ffbf3b;color:#fff}.squad-player-info:focus-visible{outline:3px solid #fff;outline-offset:3px}.squad-armband,.squad-armband.vice{left:0;top:auto;bottom:0;width:23px;height:23px;border:2px solid #fff;background:#211538;color:#fff;font-size:13px;box-shadow:none}
.squad-bench{padding:15px 8px 12px;background:#dadcde;border:3px solid #eee;border-radius:0 0 7px 7px}.squad-bench h4{font-size:12px;letter-spacing:.09em;color:#666;margin:0 0 12px;text-transform:uppercase}.squad-bench-grid{gap:12px}.squad-bench .squad-player-name,.squad-bench .squad-player-points{background:#6f7072;color:#fff}.squad-inline-injury{color:#ba7800;font-size:18px}.player-injury-note{padding:12px;border-left:4px solid #ffbf3b;background:#fff6db;color:#674711;font-size:14px;line-height:1.5}
@media(max-width:600px){.squad-template-summary span{font-size:10px}.squad-template-summary strong{font-size:22px}.squad-pitch{min-height:570px;padding:16px 6px 22px;gap:23px}.squad-pitch-line{gap:5px}.squad-pitch-player{font-size:10px}.squad-kit-wrap{height:73px;margin-bottom:6px}.squad-shirt{width:70px;max-width:100%;height:72px}.squad-player-name{padding:5px 1px;font-size:10px}.squad-pitch-player .squad-player-points{min-height:30px;height:30px;font-size:13px}.squad-player-info,.squad-armband,.squad-armband.vice{width:20px;height:20px;font-size:14px}.squad-bench-grid{gap:7px}.squad-pitch-markings{inset:14px 9px 10px}}

/* raven.css */
.home-raven{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:23px clamp(22px,5vw,88px);background:#171922;color:#f5e9d4;border-block:1px solid #b59354}
.home-raven h2{margin:4px 0;font:700 clamp(25px,3vw,35px)/1.05 'Barlow Condensed',sans-serif;letter-spacing:.02em}
.home-raven p{margin:0;color:#e0d6c3}
.home-raven .button{flex:none;color:#f7e8cd;background:transparent;border-color:#c8a96a;font-size:15px}
.raven-kicker{display:block;color:#e1be73;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.raven-stakes{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:1px;overflow:hidden;border:2px solid #aa854a;border-radius:10px;background:#aa854a;box-shadow:0 16px 35px #1019231d}
.raven-stakes>div{padding:24px 26px;background:linear-gradient(130deg,#151b25,#23232a);color:#f9ecda}
.raven-stakes strong{display:block;font:700 clamp(25px,3vw,34px)/1.1 'Barlow Condensed',sans-serif;margin:9px 0}
.raven-stakes small{display:block;color:#d5cab8;font-size:14px}
.raven-stakes p{margin:7px 0 0;color:#f3e7d7!important;font-size:14px;line-height:1.55}
.raven-stakes .raven-prize-story{font-size:15px;color:#fff4e0!important}
.raven-stakes .raven-reset{padding-top:9px;margin-top:13px;border-top:1px solid #ae8d5f;color:#f6dfad!important}
.raven-edit-stakes{grid-column:1/-1;text-align:right;border:0;background:#29252a;color:#f7e1b7;padding:10px 25px;font-size:13px;font-weight:750}
.raven-report{padding-top:10px}
.raven-report .page-heading h2{font-size:clamp(28px,3vw,41px)}
.raven-masthead{padding:20px clamp(18px,4vw,38px);border:2px solid #a88752;border-bottom:0;border-radius:12px 12px 0 0;background:#161c28;color:#fff}
.raven-masthead strong{display:block;margin:6px 0 2px;color:#fff;font:700 clamp(26px,4vw,46px)/1 'Barlow Condensed',sans-serif}
.raven-edition{font-size:13px;color:#e9d6b0}
.raven-house-strip{display:grid;grid-template-columns:1fr 1.5fr;background:#232837;border-inline:2px solid #a88752;border-top:1px solid #76664d}
.raven-house{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:16px clamp(16px,3vw,28px);min-width:0;color:#f9eedc;border-right:1px solid #6b5c4a}
.raven-house.danger{border-right:0}
.raven-house-caption{width:100%;font-size:11px;font-weight:800;letter-spacing:.14em;color:#e9c77e}
.raven-house .club-badge{width:48px;height:48px;flex:0 0 48px;border:1px solid #ceab63;border-radius:7px;overflow:hidden;background:#111823}
.raven-house .club-badge img{width:100%;height:100%;object-fit:contain}
.raven-house .team-profile-link{color:#fff;text-align:left;font-size:15px}
.raven-house-teams{display:flex;flex-wrap:wrap;gap:16px}
.raven-house-teams>span{display:flex;align-items:center;gap:8px;min-width:0}
.raven-house-teams .club-badge{width:37px;height:37px;flex-basis:37px}
.raven-house-teams .team-profile-link{font-size:13px}
.raven-chapters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;border:2px solid #a88752;border-top:0;border-radius:0 0 12px 12px;overflow:hidden;background:#9d855b}
.raven-chapter{padding:22px clamp(18px,3vw,30px);background:#faf7f0;min-width:0}
.raven-chapter .raven-kicker{color:#684d29;font-size:13px}
.raven-chapter p{margin:10px 0 0;color:#232832!important;font-size:15px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.raven-footnote{font-size:12px;color:#5d6671!important;margin:12px 0 0}
.league-houses{border:1px solid #b6955c;border-radius:11px;background:#171c26;color:#f4e8d6;overflow:hidden}
.league-houses>summary{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:19px 25px;cursor:pointer;list-style:none}
.league-houses>summary::-webkit-details-marker{display:none}
.league-houses>summary strong{display:block;font:700 31px/1.1 'Barlow Condensed',sans-serif;margin-top:4px}
.house-expand{color:#eed3a0;white-space:nowrap;font-size:14px}
.league-houses[open] .house-expand{font-size:0}
.league-houses[open] .house-expand:after{content:'Close ↑';font-size:14px}
.house-example{margin:0 20px 24px;border:1px solid #9b7845;border-radius:8px;overflow:hidden;background:#101722}
.house-example img{display:block;width:100%;height:auto}
.house-example figcaption{padding:9px 13px;color:#efe2cc;font-size:13px}
.league-house-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;padding:0 20px 23px}
.league-house-card{display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;min-width:0;min-height:252px;padding:19px 12px 20px;text-align:center;background:linear-gradient(160deg,#1c2029 0%,#302228 100%);border:2px solid #a98147;box-shadow:inset 0 0 0 3px #171c26,0 5px 15px #0004}
.league-house-card:before{content:'';position:absolute;inset:10px;border:1px solid #c19e623d;pointer-events:none}
.league-house-card .house-crown{font-size:23px;line-height:1;color:#d7b16c}
.league-house-card .house-kicker{font:700 12px/1.2 'DM Sans',sans-serif;letter-spacing:.25em;color:#efd39b;margin:8px 0}
.league-house-card .house-badge{width:116px;height:116px;display:grid;place-items:center;max-width:100%}
.league-house-card .club-badge{width:110px;height:110px;max-width:100%;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:36px}
.league-house-card .club-badge img{display:block;width:100%;height:100%;object-fit:contain}
.league-house-card .house-name{margin-top:8px;max-width:100%;padding:5px 12px;border-top:1px solid #ad8e5a;border-bottom:1px solid #ad8e5a}
.league-house-card .team-profile-link{color:#fff5e3;font:700 20px/1.05 'Barlow Condensed',sans-serif;white-space:normal;text-align:center}
.league-house-card small{color:#decbb2;font-size:12px;margin-top:8px}
.profile-houses{margin:0 0 26px}
.profile-houses .league-house-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;padding:0 16px 18px}
.profile-houses .league-house-card{min-height:150px;padding:13px 7px 12px}
.profile-houses .league-house-card:before{inset:6px}
.profile-houses .league-house-card .house-crown{font-size:15px}
.profile-houses .league-house-card .house-kicker{font-size:9px;letter-spacing:.15em;margin:3px 0}
.profile-houses .league-house-card .house-badge{width:67px;height:67px}
.profile-houses .league-house-card .club-badge{width:62px;height:62px;font-size:20px}
.profile-houses .league-house-card .house-name{margin-top:3px;padding:3px 1px}
.profile-houses .league-house-card .team-profile-link{font-size:16px;line-height:1.05}
.profile-houses .league-house-card small{font-size:11px;line-height:1.1;margin-top:4px}
.houses-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 25px}
.houses-header h2{margin:4px 0 6px;color:#fff5e3;font:700 35px/1 'Barlow Condensed',sans-serif}
.houses-header p{margin:0;color:#decbb2;font-size:14px}
.houses-header .button{flex:none;color:#141b25;background:#fff5e3;border-color:#cba76d}
.houses-header .button:hover,.houses-header .button:focus-visible{color:#141b25;background:#eacb91}
.house-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.house-banner-viewer{width:min(96vw,990px);max-width:990px;max-height:94dvh;padding:0;border:2px solid #bd995c;border-radius:9px;background:#101217;color:#fff3df;overflow:auto}
.house-banner-viewer::backdrop{background:rgba(5,8,13,.82)}
.house-banner-toolbar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 16px;background:#15191f;border-bottom:1px solid #b48a51}
.house-banner-toolbar h2{margin:0;font:700 25px/1 'Barlow Condensed',sans-serif}
.house-banner-toolbar>div{display:flex;align-items:center;gap:10px}
.house-banner-toolbar .button{background:#fff5e3;color:#141b25;border-color:#cba76d;white-space:nowrap}
.house-banner-close{border:0;background:transparent;color:#fff3df;font-size:31px;line-height:1;cursor:pointer;padding:0 5px}
.house-banner-viewer img{display:block;width:100%;height:auto}
.house-poster-section{padding:4px 16px 20px;border-top:1px solid #876746}
.house-poster-section h3{margin:15px 0 2px;color:#fff2d4;font:700 26px/1 'Barlow Condensed',sans-serif}
.house-poster-section>p{margin:0 0 13px;color:#dfc8a6;font-size:13px}
.house-poster-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.house-poster-group{display:flex;flex-direction:column;gap:9px;min-width:0;padding:14px;border:1px solid #ac854e;background:#252027}
.house-poster-group strong{color:#ffe4ad;font-size:16px}
.house-poster-group small{color:#e5d4ba;line-height:1.35;min-height:38px}
.house-poster-actions{display:flex;gap:7px;flex-wrap:wrap}
.house-poster-group .button{flex:1 1 auto;background:#fff5e3;color:#151a21;border-color:#cba76d;font-size:12px;padding:8px}
.house-poster-group label{display:grid;gap:5px;color:#e5d4ba;font-size:12px}
.house-poster-group select{width:100%;min-height:36px;background:#fff9ed;color:#141b25;border:1px solid #b99a69;border-radius:3px;padding:6px}
.profile-houses .league-house-card.selected{border-color:#50d9e6;box-shadow:inset 0 0 0 3px #171c26,0 0 0 2px #50d9e6}
@media(max-width:1050px){.profile-houses .league-house-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:800px){.house-poster-groups{grid-template-columns:1fr}.house-poster-group small{min-height:0}}
@media(max-width:850px){.league-house-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-houses .league-house-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.home-raven{flex-wrap:wrap;padding-block:19px}.raven-stakes,.raven-house-strip,.raven-chapters{grid-template-columns:1fr}.raven-house{border-right:0;border-bottom:1px solid #6b5c4a}.raven-stakes>div{padding:18px}.raven-chapter{padding:18px}}
@media(max-width:550px){.league-house-grid{grid-template-columns:1fr}.league-houses>summary{padding:16px}.league-houses>summary strong{font-size:25px}.house-example{margin-inline:12px}.league-house-grid{padding-inline:12px}.league-house-card{min-height:220px}.houses-header{padding:19px 15px;align-items:flex-start;flex-direction:column}.houses-header .button{width:100%}.house-actions{width:100%}.house-actions .button{flex:1 1 100%}.house-banner-toolbar{flex-wrap:wrap}.house-banner-toolbar h2{font-size:20px}.house-banner-toolbar>div{width:100%;justify-content:space-between}.profile-houses .league-house-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 10px 14px}.profile-houses .league-house-card{min-height:142px}}

.house-match-preview{max-width:850px;margin:24px auto;padding:18px;background:#1a1820;border:1px solid #b68d58;color:#f5e4c7}.house-match-preview summary{cursor:pointer;font-weight:800;font-size:18px;color:#ffe3ae}.house-match-preview>p{font-size:14px}.house-match-preview-art{position:relative;max-width:600px;aspect-ratio:2/3;margin:14px auto;background:#191716 var(--house-board-image,url('/assets/fast-0f47b317d47b0f-phone.webp')) center/100% 100% no-repeat;color:#fff2d7}.house-match-preview-heading{position:absolute;top:8%;left:17%;width:66%;display:grid;gap:5px;text-align:center;font-family:Georgia,serif;text-shadow:0 2px 5px #000}.house-match-preview-heading span{font-size:clamp(12px,3vw,24px);font-weight:700}.house-match-preview-heading strong{font-size:clamp(10px,2.2vw,17px)}.house-match-preview-list{position:absolute;top:20%;bottom:24%;left:18%;right:18%;display:flex;flex-direction:column;justify-content:space-around;min-height:0}.house-preview-fixture{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:6px;border-bottom:1px solid #af814d99;padding:3px 0;min-height:0;font-family:Georgia,serif;font-size:clamp(9px,1.9vw,15px)}.house-preview-fixture span{min-width:0;display:flex;align-items:center;gap:4px;overflow:hidden;white-space:nowrap}.house-preview-fixture span:last-child{justify-content:flex-end}.house-preview-fixture a{color:#fff2d7;overflow:hidden;text-overflow:ellipsis}.house-preview-fixture .badge{width:24px;height:24px;flex:none}.house-preview-fixture b{color:#f6ca80}.house-preview-empty{text-align:center;padding-top:40px}.house-match-preview-art>small{position:absolute;top:76%;left:0;width:100%;text-align:center;color:#f7d5a0}.house-match-preview>.button{display:block;margin:14px auto 0;background:#fff1d4;color:#211b18;border-color:#cfaa70}@media(max-width:520px){.house-match-preview{padding:10px}.house-match-preview-list{left:17%;right:17%}.house-preview-fixture .badge{width:16px;height:16px}.house-preview-fixture{gap:3px;font-size:9px}}

/* The expanded stone board is the Matches page, including its phone layout. */
#page-matches .house-match-board{max-width:780px;margin:12px auto 0;--house-heading-font:Georgia,serif;--house-fixture-font:Georgia,serif;--house-heading-color:#ffe8ad;--house-fixture-color:#fff2d4;--house-score-color:#f6ca80}
#page-matches .house-match-preview-art{max-width:none;width:100%;margin:0;aspect-ratio:2/3}
#page-matches .house-match-preview-heading{top:8.5%;left:18%;width:64%;gap:2px;font-family:var(--house-heading-font);color:var(--house-heading-color);text-shadow:-1px -1px #170c06,1px -1px #170c06,-1px 1px #170c06,1px 1px #170c06,0 3px 5px #000}
#page-matches .house-match-preview-heading span{font-size:clamp(14px,3.5vw,34px);white-space:nowrap}
#page-matches .house-match-preview-heading strong{font-size:clamp(11px,2.5vw,23px);white-space:nowrap}
#page-matches .house-match-preview-list{top:19.7%;bottom:12.8%;left:14.4%;right:14.4%;display:grid;grid-template-rows:repeat(9,minmax(0,1fr));align-items:stretch;gap:0}
#page-matches .house-preview-fixture{font-family:var(--house-fixture-font);font-size:clamp(10px,1.65vw,18px);gap:7px;border-color:#af814d99;padding:0 4px}
#page-matches .house-preview-fixture span{gap:7px;color:var(--house-fixture-color)}
#page-matches .house-preview-fixture a{color:var(--house-fixture-color)}
#page-matches .house-preview-fixture b{color:var(--house-score-color);white-space:nowrap}
#page-matches .house-preview-fixture .club-badge{width:clamp(26px,5vw,58px);height:clamp(26px,5vw,58px);min-width:clamp(26px,5vw,58px);flex:none}
#page-matches .house-match-preview-art>small{top:85%;color:var(--house-fixture-color);font-size:clamp(10px,1.5vw,17px)}
#page-matches .house-match-download{display:block;margin:17px auto 28px;background:#fff1d4;color:#211b18;border-color:#cfaa70}
@media(max-width:550px){#page-matches .house-match-preview-heading span{font-size:clamp(10px,3vw,18px)}#page-matches .house-match-preview-heading strong{font-size:clamp(9px,2.35vw,14px)}#page-matches .house-preview-fixture{font-size:clamp(8px,2vw,11px);gap:2px;padding:0 1px}#page-matches .house-preview-fixture span{gap:2px}#page-matches .house-preview-fixture .club-badge{width:clamp(19px,6.6vw,31px);height:clamp(19px,6.6vw,31px);min-width:clamp(19px,6.6vw,31px)}#page-matches .house-match-preview-list{left:14%;right:14%}}

/* Align all nine fixtures and the season with the expanded physical slate. */
#page-matches .house-match-preview-list{top:20.5%;bottom:15.8%}
#page-matches .house-match-preview-heading strong{font-size:clamp(13px,2.9vw,28px);color:var(--house-heading-color);text-shadow:-1px -1px #120b07,1px -1px #120b07,-1px 1px #120b07,1px 1px #120b07,0 3px 5px #000}
#page-matches .house-match-preview-art>small{top:85.2%;font-family:var(--house-fixture-font);font-size:clamp(14px,2.25vw,24px);font-weight:700;color:var(--house-fixture-color);text-shadow:-1px -1px #080504,1px -1px #080504,-1px 1px #080504,1px 1px #080504,0 2px 4px #000}
@media(max-width:550px){#page-matches .house-match-preview-list{top:20.5%;bottom:15.8%}#page-matches .house-match-preview-heading strong{font-size:clamp(10px,2.65vw,17px)}#page-matches .house-match-preview-art>small{font-size:clamp(12px,3vw,17px)}}

.house-background-controls{padding:14px 0;border-top:1px solid #d7e3e9}.house-background-options{display:flex;gap:8px;flex-wrap:wrap}.house-background-options .button{flex:1 1 140px}.house-background-controls .small-note{margin:0 0 12px}
/* Keep content and controls usable across phones, tablets, iPads and wide screens. */
@media(max-width:1024px){.app-shell{width:100%;max-width:100%}.page-view .page-content{max-width:100%;padding-left:clamp(12px,3vw,26px);padding-right:clamp(12px,3vw,26px)}.page-heading{flex-wrap:wrap;gap:12px}.page-range{flex-wrap:wrap}}
@media(max-width:768px){#page-matches .house-match-board{width:min(100%,680px)}.house-poster-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.page-view .page-hero{padding-left:20px;padding-right:20px}}
@media(max-width:520px){.house-poster-groups{grid-template-columns:1fr}.house-poster-group{min-width:0}.house-poster-group select{max-width:100%}.page-view .page-content{padding-left:9px;padding-right:9px}#page-matches .house-match-board{width:100%}#page-matches .house-preview-fixture a{max-width:100%;overflow:hidden;text-overflow:ellipsis}#page-matches .house-preview-fixture .club-badge{border-width:1px}#page-matches .house-match-download{max-width:calc(100% - 24px);white-space:normal;text-align:center}}

/* Exact cutout crests and fixed row columns across breakpoints. */
#page-matches .house-preview-fixture{grid-template-columns:minmax(0,1fr) minmax(34px,auto) minmax(0,1fr);align-items:center}
#page-matches .house-preview-fixture>span:first-child,#page-matches .house-preview-fixture>span:last-child{justify-content:flex-start;text-align:left;min-width:0}
#page-matches .house-preview-fixture .club-badge.has-image{background:transparent;border:0;box-shadow:none;overflow:visible}
#page-matches .house-preview-fixture .club-badge img{display:block;width:100%;height:100%;object-fit:contain;max-width:100%}
#page-matches .house-preview-fixture b{text-align:center;min-width:34px}

.logo-choice{padding:14px 0;border-top:1px solid #d7e3e9}.logo-choice .small-note{margin:0 0 12px}.logo-choice-options{display:flex;flex-wrap:wrap;gap:12px}.logo-choice-options label{display:flex;align-items:center;gap:10px;border:1px solid #b8cbd5;border-radius:8px;padding:10px 14px;cursor:pointer;background:#fafcff;color:#173447;font-weight:800}.logo-choice-options label:has(input:checked){border:2px solid #0a87a0;background:#e9fafd}.logo-choice-options img{width:54px;height:54px;object-fit:contain;background:#061421;border-radius:6px;padding:3px}.logo-choice-options input{accent-color:#1570b8}

.house-banner-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px}.house-banner-choice{border:1px solid #cba76d;background:#242027;color:#ffe8c1;padding:13px;display:grid;gap:8px}.house-banner-choice small{color:#e6d3b6;line-height:1.35}.house-banner-choice .button{background:#fff1d4;color:#211b18}.house-banner-viewer img[hidden]{display:none}.raven-more-link{color:#7b3d13;font-weight:800;text-decoration:underline;text-underline-offset:3px}body[data-visitor-preview="true"] .raven-edit-stakes,body[data-visitor-preview="true"] #editRaven,body[data-visitor-preview="true"] #editNews,body[data-visitor-preview="true"] #editBulletin,body[data-visitor-preview="true"] #heroUpdate,body[data-visitor-preview="true"] #sideUpdate{display:none!important}body[data-visitor-preview="true"] .hero-trophy,body[data-visitor-preview="true"] .hero-week-badge{cursor:default!important}body[data-visitor-preview="true"] #fplLeagueId{background:#eef3f6;cursor:default}
@media(max-width:650px){.house-banner-choices{grid-template-columns:1fr}}

/* Keep the whole crest visible, including its shield tip. */
#page-matches .house-preview-fixture>span{overflow:visible}
.image-export-dialog{width:min(94vw,760px);max-height:92dvh;padding:18px;background:#15191f;color:#fff3df;border:2px solid #bd995c;border-radius:10px;overflow:auto}
.image-export-dialog::backdrop{background:#05080dd9}
.image-export-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.image-export-toolbar h2{margin:0;font-size:22px}.image-export-toolbar button{background:transparent;border:0;color:inherit;font-size:30px;cursor:pointer}
.image-export-dialog p{font-size:16px;line-height:1.5}.image-export-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.image-export-actions .button{background:#fff1d4;color:#211b18;white-space:normal;min-height:44px;text-align:center}
.image-export-dialog>img{display:block;max-width:100%;height:auto;margin:auto}
@media(max-width:550px){.image-export-actions .button{flex:1 1 100%}.image-export-dialog{padding:12px}}

/* House results share the same outcome palette as their PNG downloads. */
#page-matches .house-preview-fixture b .house-result-score,
#page-matches .house-preview-fixture b .house-result-separator{font-style:normal;text-shadow:0 1px 2px #120b07;-webkit-text-stroke:.25px #120b07}
#page-matches .house-preview-fixture b .house-result-win{color:#4ADE80}
#page-matches .house-preview-fixture b .house-result-loss{color:#FFF2CF}
#page-matches .house-preview-fixture b .house-result-draw,
#page-matches .house-preview-fixture b .house-result-separator{color:#E8C58A}

/* device-layout.css */
/* Shared final layout rules for phone, tablet and desktop. */
.page-content, .page-heading > *, .section-heading > *, .news-lane,
.profile-identity, .profile-opponent, .stats-compare-controls label { min-width: 0; }
.news-card h3, .news-card h4, .news-source, .profile-identity h3,
.live-team, .editorial-note { overflow-wrap: anywhere; }
.news-card p { font-size: 1rem; line-height: 1.65; }
.news-source { font-size: .875rem; }
.page-range select, .stats-compare-controls select { max-width: 100%; }
.table-scroll { max-width: 100%; overscroll-behavior-x: contain; }
.profile-fpl-details, .fpl-leader-card { min-width: 0; }
@media (min-width: 601px) and (max-width: 1024px) {
  .hero, body[data-layout="compact"] .hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,.8fr); gap: 18px; }
  .hero-copy { max-width: 100%; }
  .hero-visual, body[data-layout="compact"] .hero-visual, .hero.has-photo .hero-visual {
    position: relative; top: auto; right: auto; left: auto; width: 100%; min-height: 320px; opacity: 1; pointer-events: auto;
  }
  .hero h1, body[data-layout="compact"] .hero h1 { font-size: clamp(44px,7vw,72px); overflow-wrap: anywhere; }
  .hero-trophy { height: 260px; max-width: 100%; }
  .hero-visual::after { max-width: 100%; }
  .hero-actions, .page-heading, .section-heading { flex-wrap: wrap; }
  .hero-actions .button { white-space: normal; }
  .table-card table { min-width: 720px; }
  .bulletin-groups { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
  .page-heading, .section-heading { flex-wrap: wrap; }
  .page-range, .stats-compare-controls { gap: 10px; }
  .page-range label, .stats-scope-label { flex-wrap: wrap; }
  .page-range .button, .week-controls button, .week-controls select,
  .page-heading select, .nav-toggle { min-height: 44px; }
  .profile-head { flex-wrap: wrap; }
  .profile-identity { flex: 1 1 210px; }
  .live-score-actions { flex-wrap: wrap; }
  .official-live-setup span { min-width: 0; overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .page-range { width: 100%; }
  .page-range label { flex: 1 1 145px; }
  .page-range label select { width: 100%; }
  .page-range .button { white-space: normal; }
  .news-card, .stat-card { padding: 18px; }
  .news-card h4 { line-height: 1.15; }
  .editorial-note { line-height: 1.55; }
  .stats-compare-controls label { flex-basis: 100%; }
  .profile-fpl-body { padding-inline: 12px; }
  .hero-week-badge { max-width: 100%; }
  .live-score-card { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 8px; }
  .live-inputs { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
  .live-score-card > small { grid-row: 3; }
}

.stats-compare-dropdown {border:1px solid #ccdbe3;background:rgba(255,255,255,.94)}
.stats-compare-dropdown>summary {cursor:pointer;padding:16px 18px;font-weight:800;font-size:1.2rem;color:var(--stats-heading,#000);min-height:48px}
.stats-compare-dropdown>summary::marker {color:var(--stats-heading,#000)}
.stats-compare-body {padding:0 18px 18px}
@media(max-width:600px){.stats-compare-body {padding:0 12px 16px}.stats-compare-controls {display:grid;grid-template-columns:1fr;width:100%}.stats-compare-controls label {min-width:0}.stats-compare-controls select {width:100%}}

/* Native disclosures keep long statistics and recaps compact on every device. */
.league-stats-dropdown,.recaps-dropdown {border:1px solid #ccdbe3;background:rgba(255,255,255,.94);min-width:0}
.league-stats-dropdown>summary,.stats-compare-dropdown>summary,.recaps-dropdown>summary {cursor:pointer;padding:16px 18px;min-height:48px;color:var(--stats-heading,#000);overflow-wrap:anywhere}
.league-stats-dropdown>summary h3,.stats-compare-dropdown>summary h3 {display:inline;margin:0;font:800 1.5rem/1.3 'Barlow Condensed',sans-serif;text-transform:uppercase;color:var(--stats-heading,#000)}
#page-news .recaps-dropdown>summary h2 {display:inline;margin:0;font:800 clamp(28px,3vw,41px) 'Barlow Condensed',sans-serif;text-transform:uppercase;color:var(--news-heading,#000)}
.recaps-dropdown>summary,.recaps-dropdown>summary h2 {color:var(--news-heading,#000)}
.league-dropdown-body {padding:12px 18px 18px;min-width:0}
.league-stats-dropdown>summary:focus-visible,.stats-compare-dropdown>summary:focus-visible,.recaps-dropdown>summary:focus-visible {outline:3px solid var(--accent,#007da0);outline-offset:3px}
@media(max-width:600px){.league-dropdown-body {padding:12px}.league-stats-dropdown>summary,.stats-compare-dropdown>summary,.recaps-dropdown>summary {padding:14px 12px}}

.profile-export-actions{display:flex;flex-wrap:wrap;gap:12px;padding:18px 24px;border-top:1px solid #dce6ed;background:#f0f5f8}
.profile-export-actions .button{white-space:normal;min-height:44px}
@media(max-width:600px){.profile-export-actions{padding:14px 12px}.profile-export-actions .button{width:100%;text-align:center}}

/* Reserve artwork space and improve touch controls without resizing downloads. */
.club-badge img{aspect-ratio:1;object-fit:contain}
#heroCountdown{font-variant-numeric:tabular-nums}
@media(pointer:coarse){.week-controls button,.week-controls select,.stats-compare-controls select,.profile-export-actions button,.house-match-download{min-height:44px}.badge-viewer-close{min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.ticker-track{animation:none}html{scroll-behavior:auto}}

/* shared-saving.css */
.shared-save-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px clamp(16px,4vw,64px);background:#edf7f4;color:#143e34;font-size:14px;border-bottom:1px solid #c2dcd4}
.shared-save-bar>span{flex:1 1 230px;overflow-wrap:anywhere}
.shared-save-bar button{padding:9px 12px;min-height:44px;border:1px solid #42695e;background:#fff;color:#143e34;border-radius:4px;font-weight:700;white-space:normal}
body[data-sync-loading="true"] #openEditor,body[data-sync-loading="true"] #heroUpdate,body[data-sync-loading="true"] #sideUpdate{pointer-events:none;opacity:.5}
body[data-shared-editor="false"] .owner-only,body[data-shared-editor="false"] #openEditor{display:none!important}
@media(max-width:600px){.shared-save-bar{padding:12px 16px}.shared-save-bar button{flex:1 1 100%}}

/* Do not show owner actions before authorization is known. */
body:not([data-shared-editor="true"]) .owner-only{display:none!important}

.home-layout-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:14px clamp(16px,4vw,64px);background:#eef4f7;color:#153344}
.home-layout-bar>span{flex:1 1 220px;font-size:14px}
.home-layout-bar .button{min-height:44px;white-space:normal}
body:not([data-home-layout-editing="true"]) .hero-trophy,body:not([data-home-layout-editing="true"]) .hero-week-badge{touch-action:pan-y;cursor:default}
@media(max-width:600px){.home-layout-bar .button{flex:1 1 150px}}

/* match-centre.css */
/* Live H2H Match Centre */
.match-centre-card{position:relative;padding-bottom:34px!important;isolation:isolate}
.match-centre-open{position:absolute!important;inset:0!important;width:100%;height:100%;background:transparent!important;border:0!important;border-radius:inherit;z-index:1;color:inherit;cursor:pointer}
.match-centre-open span{position:absolute;bottom:8px;left:0;right:0;text-align:center;font-size:11px;font-weight:700;letter-spacing:.04em}
.match-centre-open:focus-visible{outline:3px solid var(--cyan,#3de5ef);outline-offset:3px}
.match-centre-card .team-profile-link,.match-centre-card .club-badge,.match-centre-card input:not([readonly]):not(:disabled){position:relative;z-index:2}
.match-centre-card input[readonly],.match-centre-card input:disabled{pointer-events:none}
.match-centre-dialog{box-sizing:border-box;width:min(940px,96vw);max-width:96vw;max-height:92dvh;padding:0;border:1px solid #cee0e7;border-radius:18px;background:#f2f6f8;color:#102434;box-shadow:0 24px 80px #00111b66;overflow:auto;font-family:'DM Sans',sans-serif}
.match-centre-dialog::backdrop{background:#03121fbb;backdrop-filter:blur(4px)}
.mc-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px 24px;background:#071b2d;color:#fff}
.mc-header p{margin:0 0 5px;color:#3de5ef;font-size:10px;font-weight:800;letter-spacing:.16em}.mc-header h2{margin:0;font-size:26px}
.mc-header button{background:#ffffff16;border:1px solid #ffffff40;color:white;width:44px;height:44px;border-radius:50%;font-size:27px;cursor:pointer;flex-shrink:0}
.mc-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 24px;border-bottom:1px solid #dbe5eb;font-size:12px}.mc-toolbar button{border:1px solid #bacdd7;border-radius:8px;padding:9px 12px;background:#fff;color:#123345;cursor:pointer;white-space:nowrap}.mc-toolbar button:disabled{opacity:.5}
.mc-content{padding:22px}.mc-scoreboard{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;text-align:center;font-size:18px;font-weight:800}.mc-scoreboard strong{display:flex;align-items:center;gap:16px;font-size:40px;letter-spacing:-.04em}.mc-scoreboard strong small{font-size:23px;color:#587384}
.mc-score-note{text-align:center;font-size:12px;font-weight:700;color:#176064}.mc-intro{text-align:center;margin-bottom:22px!important}
.mc-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.mc-team{min-width:0;background:white;border:1px solid #dce7ec;border-radius:12px;padding:18px}.mc-team h3{font-size:19px;margin:0 0 15px;color:#0e3145}.mc-team h4{font-size:12px;text-transform:uppercase;letter-spacing:.08em;margin:22px 0 9px;color:#435f70}
.mc-remaining{display:flex;align-items:center;gap:12px;background:#e7f7f5;padding:12px;border-radius:8px}.mc-remaining>strong{font-size:32px;color:#0a6965}.mc-remaining span{font-size:12px;font-weight:700}.mc-remaining small{display:block;font-size:10px;font-weight:400;margin-top:4px}
.mc-small{font-size:11px;line-height:1.5;color:#5d7380;margin:9px 0}.mc-breakdown{font-size:12px;margin:18px 0}.mc-breakdown>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #edf2f5}.mc-breakdown dd{margin:0;font-weight:800;font-variant-numeric:tabular-nums}.mc-breakdown .mc-total{font-size:16px;border-bottom:0;color:#103547}.mc-impact{font-size:12px;border-left:3px solid #22b8b0;padding:8px;background:#f3fbfa}
.mc-subs{list-style:none;padding:0;margin:0;font-size:12px}.mc-subs li{padding:8px 0;border-bottom:1px solid #edf2f5}.mc-subs strong{color:#14765d}.mc-subs span{margin-left:5px;color:#795157}.mc-subs small{display:block;color:#657f8c;font-size:10px;margin-top:4px}
.mc-squad{list-style:none;padding:0;margin:0}.mc-squad li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #edf2f5}.mc-squad li>div{min-width:0}.mc-squad strong{font-size:12px;overflow-wrap:anywhere}.mc-squad li small{display:block;font-size:10px;color:#617887;line-height:1.5}.mc-squad button{flex-shrink:0;background:#14243d;border:0;color:#fff;border-radius:7px;min-width:44px;min-height:44px;font-size:17px;font-weight:800;cursor:pointer}.mc-squad button small{color:#c9dce5;font-size:9px}.mc-captain{font-size:9px;border-radius:50%;background:#e2f4f2;padding:2px 4px}.mc-bench{opacity:.8}.mc-error{background:#fff3dc;border:1px solid #ecd29c;border-radius:8px;padding:12px;font-size:12px;color:#67450c;line-height:1.5}
.match-centre-dialog button:focus-visible{outline:3px solid #16a9a1;outline-offset:2px}
@media(max-width:560px){.match-centre-dialog{width:96vw;max-height:94dvh;border-radius:12px}.mc-header{padding:16px}.mc-header h2{font-size:22px}.mc-toolbar{padding:10px 14px;font-size:10px}.mc-content{padding:14px}.mc-scoreboard{gap:8px;font-size:13px}.mc-scoreboard strong{font-size:31px;gap:8px}.mc-columns{grid-template-columns:1fr;gap:14px}.mc-team{padding:15px}.mc-score-note{font-size:11px}}
/* Shared rows prevent unequal notes or formations from shifting the comparison. */
.mc-toolbar-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.mc-aligned{margin-top:18px}.mc-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:stretch}
.mc-cell{min-width:0;background:#fff;padding:12px 18px;border:1px solid #e0e9ed;border-top:0;display:flex;align-items:center;justify-content:space-between;gap:10px}
.mc-cell-text{min-width:0}.mc-cell strong{font-size:12px;overflow-wrap:anywhere}.mc-cell small{display:block;color:#617887;font-size:10px;line-height:1.5;overflow-wrap:anywhere}.mc-cell>b{font-size:16px;font-variant-numeric:tabular-nums;flex-shrink:0}.mc-cell h3{margin:0;font-size:19px;color:#0e3145;overflow-wrap:anywhere}.mc-cell h4{margin:0;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#19736f}
.mc-pair-team .mc-cell{flex-direction:column;justify-content:flex-start;text-align:center;border-top:1px solid #e0e9ed;border-radius:12px 12px 0 0;padding:18px}.mc-team-badge{width:76px;height:76px;object-fit:contain;flex-shrink:0}.mc-pair-heading .mc-cell{background:#e5f1f0;padding-top:15px;padding-bottom:15px}.mc-pair-total .mc-cell{background:#f0faf8}.mc-pair-total strong,.mc-pair-total b{font-size:17px}.mc-pair-metric strong{font-weight:500}.mc-pair-remaining .mc-cell{background:#f4faf9}.mc-pair-remaining b{font-size:28px;color:#12695f}.mc-pair-error .mc-cell{background:#fff5e4}.mc-pair-subs .mc-cell{align-items:flex-start}.mc-pair-checked .mc-cell{border-radius:0 0 12px 12px}.mc-pair-player .mc-cell{min-height:76px}.mc-cell.mc-empty{justify-content:center;background:#fafcfd;color:#a8b9c2}
.mc-cell button{flex-shrink:0;min-width:44px;min-height:44px;border:0;background:#14243d;color:#fff;border-radius:7px;font-size:17px;font-weight:800;cursor:pointer}.mc-cell button small{color:#c9dce5;font-size:9px}
@media(max-width:560px){.mc-content{padding:10px}.mc-toolbar{flex-wrap:wrap}.mc-toolbar-actions{gap:6px}.mc-toolbar-actions button{font-size:11px;padding:9px}.mc-pair{gap:6px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.mc-cell{padding:10px 8px;gap:5px}.mc-cell strong{font-size:10px}.mc-cell small{font-size:9px}.mc-cell h3{font-size:13px}.mc-cell h4{font-size:9px;letter-spacing:.02em}.mc-cell>b{font-size:14px}.mc-pair-team .mc-cell{padding:12px 8px}.mc-team-badge{width:58px;height:58px}.mc-pair-total strong,.mc-pair-total b{font-size:12px}.mc-pair-remaining .mc-cell{flex-wrap:wrap}.mc-pair-remaining b{font-size:22px}.mc-cell button{min-width:36px;min-height:44px;font-size:14px;padding:5px}.mc-pair-player .mc-cell{min-height:88px}}
@media(min-width:561px) and (max-width:900px){.mc-pair{gap:12px}.mc-cell{padding:12px}}
.mc-scoreboard{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.mc-scoreboard>span{min-width:0;overflow-wrap:anywhere}
/* Approved daylight stadium and black-on-sage match theme. */
.match-centre-dialog{background:#f3f6f3;color:#111111;border-color:#dee3de}.mc-header{background:#193d2b}.mc-header p{color:#fff}.mc-toolbar{border-color:#dee3de}.mc-toolbar button{color:#111;background:#fff;border-color:#b9c8ba}.mc-status,.mc-intro,.mc-small{color:#111111}
.mc-stadium-hero{background:linear-gradient(rgba(5,30,15,.65),rgba(5,30,15,.4)),url('/assets/match-stadium-daylight.webp') center/cover;border-radius:10px;overflow:hidden;padding:20px 16px 12px;color:#fff;text-align:center}
.mc-stadium-hero h3{margin:0 0 18px;font-size:19px;color:#fff}.mc-hero-teams{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}.mc-hero-teams>div{display:flex;flex-direction:column;align-items:center;min-width:0;gap:7px}.mc-hero-teams img{width:76px;height:76px;object-fit:contain}.mc-hero-teams span{font-size:15px;overflow-wrap:anywhere;min-height:36px}.mc-hero-teams strong{font-size:36px;line-height:1.15}.mc-stadium-hero .mc-score-note{color:#fff;font-size:11px;font-weight:500;margin:15px 0 0;text-shadow:0 1px 3px #06210d}
.mc-cell{border-color:#dee3de;color:#111111}.mc-cell strong,.mc-cell small,.mc-cell h3,.mc-cell h4,.mc-cell>b,.mc-cell.mc-empty{color:#111111}.mc-pair-heading .mc-cell{background:#ccdccd}.mc-pair-total .mc-cell{background:#e8f0e9}.mc-pair-remaining .mc-cell,.mc-pair-impact .mc-cell{background:#fff}.mc-cell button{background:#e8f0e9;border:1px solid #ccdccd;color:#111111}.mc-cell button small{color:#111111}.match-centre-dialog button:focus-visible{outline-color:#307344}
@media(max-width:560px){.mc-stadium-hero{padding:16px 8px 10px}.mc-stadium-hero h3{font-size:14px;margin-bottom:14px}.mc-hero-teams{gap:8px}.mc-hero-teams img{width:60px;height:60px}.mc-hero-teams span{font-size:12px;min-height:32px}.mc-hero-teams strong{font-size:29px}.mc-stadium-hero .mc-score-note{font-size:9px}}

/* playbook.css */
#page-playbook{--bg:#edf2f5;--panel:#fff;--line:#dbe5ec;--muted:#527181;--lime:var(--cyan);--ink:#102638;color:var(--ink)}#page-playbook *{box-sizing:border-box}#page-playbook a{color:inherit}#page-playbook button,#page-playbook select{font:inherit;cursor:pointer}#page-playbook button,#page-playbook a,#page-playbook select,#page-playbook input{touch-action:manipulation}#page-playbook button:focus-visible,#page-playbook a:focus-visible,#page-playbook select:focus-visible,#page-playbook input:focus-visible,#page-playbook summary:focus-visible{outline:3px solid var(--lime);outline-offset:4px}#page-playbook .brand{text-decoration:none;font-weight:900;display:flex;align-items:center;gap:10px;flex-wrap:wrap}#page-playbook .brand span{font-size:11px;letter-spacing:2px;color:var(--muted)}#page-playbook header nav{display:flex;gap:18px;flex-wrap:wrap;font-size:14px}#page-playbook header nav a{padding:8px 0;text-decoration:none}#page-playbook header nav [aria-current]{color:var(--lime)}#page-playbook .hero{display:grid;grid-template-columns:1fr 300px;gap:30px;align-items:end;padding:40px 0}#page-playbook .eyebrow{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--lime);margin:0 0 8px}#page-playbook h1 em{color:var(--lime);font-style:normal}#page-playbook h2{font-size:25px;line-height:1.2;letter-spacing:-.5px;margin:4px 0 14px}#page-playbook select{width:100%;padding:14px;background:var(--panel);color:white;border:1px solid var(--line);border-radius:8px;margin:10px 0}#page-playbook .week-box{border-left:2px solid var(--lime);padding-left:22px}#page-playbook .week-box label{font-weight:700}#page-playbook .week-box span,#page-playbook .muted{color:var(--muted);font-size:13px}#page-playbook .edition{display:flex;align-items:center;gap:25px;border-block:1px solid var(--line);padding:15px 0;font-size:13px}#page-playbook .edition span{white-space:nowrap;color:var(--lime);font-size:11px;font-weight:800}#page-playbook .jump{display:flex;flex-wrap:wrap;gap:8px;margin:22px 0}#page-playbook .jump a,#page-playbook .secondary{padding:10px 15px;background:var(--panel);border:1px solid var(--line);border-radius:30px;text-decoration:none;color:var(--ink)}#page-playbook .brief{padding:16px 0 24px}#page-playbook #pb-briefing{display:grid;grid-template-columns:1fr 1fr;gap:20px}#page-playbook #pb-briefing article{border-left:3px solid var(--lime);padding-left:18px;font-size:14px}#page-playbook #pb-briefing a{color:var(--lime);font-size:12px}#page-playbook .main-grid{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}#page-playbook .two-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}#page-playbook .panel{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:24px;margin-bottom:20px;min-width:0}#page-playbook .section-head{display:flex;justify-content:space-between;gap:10px}#page-playbook .pill{border:1px solid var(--line);border-radius:30px;padding:7px 12px;height:fit-content;font-size:12px}#page-playbook .pitch{margin-top:20px;border:1px solid #6ca88d;border-radius:12px;padding:20px 5px;background:repeating-linear-gradient(0deg,#174d3a 0,#174d3a 55px,#1d5842 55px,#1d5842 110px);position:relative;overflow:hidden}#page-playbook .pitch:before{content:'';position:absolute;inset:12px;border:1px solid #ffffff45;pointer-events:none}#page-playbook .pitch-row{display:flex;justify-content:space-evenly;position:relative;gap:3px;margin:10px 0 24px}#page-playbook .pitch-row:last-child{margin-bottom:5px}#page-playbook .shirt{width:23%;max-width:105px;min-height:92px;background:none;border:0;color:#fff;padding:2px}#page-playbook .shirt-icon{display:block;margin:0 auto 5px;width:35px;height:33px;background:var(--lime);color:#123025;clip-path:polygon(25% 0,38% 7%,62% 7%,75% 0,100% 22%,82% 42%,75% 32%,75% 100%,25% 100%,25% 32%,18% 42%,0 22%);font-size:12px;padding-top:8px;font-weight:900}#page-playbook .shirt strong{display:block;font-size:12px;background:#061b17bd;border-radius:4px;padding:3px;overflow-wrap:anywhere}#page-playbook .shirt small{display:block;font-size:10px}#page-playbook .row{padding:13px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}#page-playbook .row:last-child{border-bottom:0}#page-playbook .rank{color:var(--lime);font-size:22px;min-width:24px;font-weight:800}#page-playbook .player-link{border:0;background:none;color:var(--ink);text-align:left;padding:4px;flex:1;min-width:0}#page-playbook .player-link strong{display:block}#page-playbook .player-link small{display:block;color:var(--muted);font-size:12px}#page-playbook .estimate{font-size:20px;font-weight:900;color:var(--lime);white-space:nowrap}#page-playbook .estimate small{display:block;font-size:10px;color:var(--muted);font-weight:400}#page-playbook .star{background:transparent;border:1px solid var(--line);color:var(--lime);border-radius:50%;min-width:44px;min-height:44px;font-size:19px}#page-playbook .captain-choice{display:block;margin:10px 0 22px;width:100%;border:1px solid var(--lime);padding:10px;background:transparent;color:var(--lime);border-radius:7px}#page-playbook .captain-choice[aria-pressed=true]{background:var(--lime);color:var(--bg)}#page-playbook .risk-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}#page-playbook .risk{background:#091f2a;border-radius:10px;padding:15px;min-width:0}#page-playbook .risk p{font-size:12px;color:var(--muted)}#page-playbook .risk strong{display:block}#page-playbook .risk .flag{color:#ffd3a5;font-size:11px;letter-spacing:1px}#page-playbook .checklist{display:flex;flex-wrap:wrap;gap:20px;margin-top:22px}#page-playbook .checklist label{display:flex;align-items:center;gap:8px;font-size:13px;min-height:44px}#page-playbook .checklist input{width:20px;height:20px;accent-color:var(--lime)}#page-playbook summary{cursor:pointer;font-weight:800;padding:5px}#page-playbook details p,#page-playbook details a{font-size:13px}#page-playbook details a{color:var(--lime)}#page-playbook dialog{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:16px;max-width:440px;width:calc(100% - 28px);padding:30px}#page-playbook dialog::backdrop{background:#000b}#page-playbook .close{float:right;border:0;background:none;color:white;font-size:28px;min-width:44px;min-height:44px}#page-playbook .skip{position:absolute;left:10px;top:-70px;background:var(--lime);color:black;padding:10px;z-index:5}#page-playbook .skip:focus{top:10px}#page-playbook #pb-notice:not(:empty){background:#263c47;padding:15px;border-radius:10px;margin-bottom:20px}#page-playbook [hidden]{display:none!important}@media(max-width:850px){#page-playbook .main-grid{grid-template-columns:1fr}#page-playbook .risk-grid{grid-template-columns:repeat(2,1fr)}#page-playbook .hero{grid-template-columns:1fr 240px}}@media(max-width:600px){#page-playbook .hero{grid-template-columns:1fr;padding:20px 0;gap:18px}#page-playbook .week-box{padding-left:14px}#page-playbook .edition{display:block}#page-playbook .two-grid,#page-playbook #pb-briefing{grid-template-columns:1fr}#page-playbook .panel{padding:16px}#page-playbook .jump{gap:6px}#page-playbook .jump a{font-size:12px;padding:10px}#page-playbook .brand span{display:none}#page-playbook header nav{gap:14px;font-size:12px}#page-playbook .shirt strong{font-size:11px}#page-playbook .risk-grid{gap:8px}#page-playbook .risk{padding:12px}#page-playbook .checklist{display:grid;gap:4px}#page-playbook .estimate{font-size:18px}}@media(prefers-reduced-motion:reduce){}

#page-playbook .panel{border-radius:4px;border-top:4px solid var(--cyan);box-shadow:0 6px 20px #173c5008}#page-playbook .eyebrow{color:var(--pink)}#page-playbook h2{font-family:"Barlow Condensed",Impact,sans-serif;text-transform:uppercase;font-size:30px}#page-playbook .rank,#page-playbook .estimate,#page-playbook .star,#page-playbook .captain-choice,#page-playbook #pb-briefing a,#page-playbook details a{color:#126275}#page-playbook .risk{background:#eef5f8}#page-playbook .risk .flag{color:#9b4410}#page-playbook .edition{border-color:#dbe5ec}#page-playbook .edition span{color:#126275}#page-playbook .close{color:#102638}#page-playbook #pb-notice:not(:empty){background:#e4f3f5;color:#214658}#page-playbook .pitch strong{color:#fff}#page-playbook .captain-choice[aria-pressed=true]{color:#061421;background:var(--cyan)}#page-playbook select{background:#fff;color:#102638}#page-playbook .archive-note{padding:18px;background:#eef5f8;border-left:4px solid var(--cyan)}

#page-playbook .page-heading h2{font-size:clamp(32px,4vw,48px)}#page-playbook .page-range select{width:auto;min-width:150px;margin:0;border-radius:3px;padding:10px 13px}#page-playbook .jump a,#page-playbook .secondary{border-radius:3px}#page-playbook .page-content{min-width:0}#page-playbook .page-heading{gap:20px;flex-wrap:wrap}#page-playbook .pitch{border-radius:3px}@media(max-width:600px){#page-playbook .page-heading{align-items:flex-start}#page-playbook .page-range{width:100%}#page-playbook .page-range select{width:100%}}

#page-playbook .edition{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:20px}#page-playbook #pb-stamp{grid-column:3;grid-row:1;margin:0;max-width:220px}#page-playbook .edition>span{grid-column:1;grid-row:1}#page-playbook .edition>p:not(#pb-stamp){grid-column:2;grid-row:1;margin:0}#page-playbook .risk{text-align:left}#page-playbook .risk .player-link{display:block;width:100%;text-align:left;margin-top:12px;padding-left:0}#page-playbook .risk .flag{display:inline-block;padding:5px 8px;border-radius:3px;font-weight:800}#page-playbook .flag[data-availability=yellow]{background:#ffe65b;color:#302900}#page-playbook .flag[data-availability=orange]{background:#f5a347;color:#382000}#page-playbook .flag[data-availability=red]{background:#d9284b;color:#fff}#page-playbook .pb-forecast{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:10px;background:#eef5f8}#page-playbook .pb-forecast strong{display:block;font-size:12px}#page-playbook #pb-search{display:block;width:100%;padding:12px;border:1px solid var(--line);margin-top:8px}#page-playbook #pb-search-results{max-height:320px;overflow:auto}#page-playbook #pb-clock{padding:16px;background:var(--navy);color:white;border-radius:3px;width:320px;max-width:100%;margin-bottom:18px}#page-playbook #pb-countdown{font:700 30px 'Barlow Condensed',sans-serif;color:var(--cyan)}@media(max-width:700px){#page-playbook .edition{grid-template-columns:1fr}#page-playbook .edition>span,#page-playbook .edition>p:not(#pb-stamp),#page-playbook #pb-stamp{grid-column:1;grid-row:auto;max-width:none}}

/* championship.css */
.champ-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:18px clamp(22px,5vw,88px);background:#0b2032}.champ-overview-card{border:1px solid #456071;background:#122b3c;color:#edf7ff;text-align:left;padding:15px;display:grid;gap:5px;border-radius:5px}.champ-overview-card small{font-size:10px;letter-spacing:.07em;color:#b4cbd8}.champ-overview-card strong{font:800 25px 'Barlow Condensed',sans-serif}.champ-overview-card span{font-size:12px}.champ-overview-card.primary{border-color:#d9b66d;box-shadow:inset 0 3px #d9b66d}.champ-overview-card.gold strong{color:#f0cc85}.champ-tabs{display:flex;gap:5px;margin:16px 0 8px}.champ-tabs button{flex:1;border:1px solid #496171;background:#102638;color:#daeaf5;font-weight:700;padding:12px 8px;border-radius:4px}.champ-tabs button[aria-selected=true]{background:#223d50;color:#ffe1a1;border-color:#d6b36b;box-shadow:inset 0 -3px #d6b36b}.champ-tabs small{display:block;font-size:10px;color:#bdcedb;font-weight:400;margin-top:3px}.champ-status{font-size:12px;color:#3e5a6e;margin:8px 0 16px}.table-card .wall-divider td{height:auto!important;padding:7px 14px!important;border-top:3px solid #8ed7ff!important;background:linear-gradient(100deg,#16374b,#294e64,#16374b)!important;color:#e1f6ff!important;font:700 12px system-ui!important;letter-spacing:.11em}.table-card .relegation-row td{background:#e8f3f9!important;color:#153246}.table-card .relegation-row .pts-col{background:#d2e9f5!important}.table-card .drop-row td{border-top:1px solid #a9d6ee!important}.table-card .relegation-row .pos-number{color:#245a77!important}.table-card .leader-row td{border-bottom-color:#d6b36b!important}.club-manager{display:block;font:500 10px/1.3 'DM Sans',sans-serif;color:#526f82}.table-card .relegation-row .club-manager{color:#36576c}.champ-centre{margin:22px 0}.champ-panel{margin:10px 0;border:1px solid #c0d1dc;background:#f6f9fb;border-radius:5px;overflow:hidden}.champ-panel>summary{padding:16px;background:#102638;color:#f3d496;font-weight:800;cursor:pointer;list-style-position:inside}.champ-panel>summary small{margin-left:8px;font-weight:400;color:#d7e6ed}.champ-panel>p,.champ-panel>div:not(.champ-scroll){margin:16px}.champ-panel p{font-size:12px;line-height:1.65}.champ-scroll{overflow:auto}.champ-scroll table{width:100%;border-collapse:collapse;min-width:650px;font-size:12px}.champ-scroll th{background:#e2ebf1;text-align:left;padding:9px}.champ-scroll td{padding:10px;border-bottom:1px solid #dbe5ec;vertical-align:top}.champ-scroll td details{min-width:130px;max-width:300px}.wall-panel>summary{color:#c4e9ff;background:#163448}.honours-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.champ-honours{margin:24px 0}.champ-honours h2{font-size:30px}.honour-card{background:#112738;border:1px solid #c9a762;border-radius:4px;padding:16px;color:#fae1ad;display:grid;gap:8px}.honour-card small{color:#c9d8e1;font-size:11px}.honour-card strong{font-size:17px}.honour-card p{font-size:12px;margin:0}.honour-card.pending{border-color:#526774;color:#e8f1f7}.rivalry-pickers{display:flex;gap:16px;flex-wrap:wrap}.rivalry-pickers label{display:grid;gap:6px;font-size:12px}.rivalry-pickers select{max-width:100%;padding:9px;border:1px solid #8ea6b5;background:white;color:#102638}.rivalry-results{max-height:250px;overflow:auto;font-size:12px;padding-left:20px}.manager-achievements{border-top:1px solid #d6b36b;margin-top:22px;padding-top:18px}.manager-achievements p{font-size:13px}.hero-copy h1{max-width:310px;font-size:clamp(38px,4.4vw,60px)}.hero-copy h1 em{display:inline-block;max-width:310px}.hero-copy>p{max-width:310px}.raven-awards-heading{color:#e6c47c;font-weight:800;padding:16px 22px 0;text-transform:uppercase;letter-spacing:.08em}.raven-chapter details{font-size:11px}.raven-chapter details p{font-size:11px!important;margin-top:8px}.raven-chapter details summary{cursor:pointer;color:#afc8d5}body[data-sync-loading=true] #homeView,body[data-sync-loading=true] .page-view{visibility:hidden}body[data-sync-loading=true][data-confirmed-cache=true] #homeView,body[data-sync-loading=true][data-confirmed-cache=true] .page-view{visibility:visible}
@media(max-width:700px){.champ-overview{grid-template-columns:1fr;padding:12px 18px;gap:6px}.champ-overview-card{padding:10px 13px;grid-template-columns:1fr auto}.champ-overview-card small,.champ-overview-card span{grid-column:1/-1}.champ-overview-card strong{font-size:22px}.champ-tabs{gap:3px}.champ-tabs button{font-size:11px;padding:10px 4px}.champ-tabs small{font-size:9px}.honours-grid{grid-template-columns:1fr}.champ-panel>summary small{display:block;margin:5px 0 0 20px}.table-card .wall-divider td{font-size:10px!important;letter-spacing:.05em}.rivalry-pickers label{width:100%}}
.raven-awards-heading{background:#171c28;padding:13px 22px;color:#f0d38d}.raven-chapter details summary{color:#496170}.raven-chapters>.raven-chapter:last-child:nth-child(odd){grid-column:1/-1}

/* kingdoms.css */
.kingdom-menu{position:relative;color:#f3d79b;font-size:13px;flex-shrink:0}.kingdom-menu>summary{cursor:pointer;padding:12px 8px;font-weight:700}.kingdom-menu>div{position:absolute;right:0;top:100%;width:230px;z-index:60;padding:8px;background:#101c28;border:1px solid #b39762;border-radius:4px;box-shadow:0 12px 30px #0006}.kingdom-menu a{display:block!important;white-space:normal;padding:12px!important;color:#eef3f7!important}.kingdom-home{padding:22px clamp(18px,5vw,88px);background:#0c1b28;color:#f0d9a6}.kingdom-home h2{font:700 25px 'Barlow Condensed',sans-serif;margin:0 0 14px}.kingdom-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.kingdom-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-decoration:none;padding:22px;border:1px solid #76613e;background:linear-gradient(135deg,#192533,#10151c);color:#f7deb0;border-radius:6px;transition:border-color .15s}.kingdom-card:hover{border-color:#f6db95}.kingdom-card>span:not(.kingdom-house){font-size:34px;margin-bottom:12px}.kingdom-card strong{font:700 25px 'Barlow Condensed',sans-serif}.kingdom-card p{font-size:13px;line-height:1.5;color:#c4d0dc;margin:8px 0 18px}.kingdom-card>small{font-size:11px;margin-top:auto}.kingdom-card.k-beyond-the-wall{border-color:#52859f;background:linear-gradient(135deg,#20475e,#101d2b);color:#c3edff}.kingdom-card.k-rivalry{border-color:#956e53;background:linear-gradient(135deg,#392622,#151923)}.kingdom-page{--k-accent:#efcb7d;background:#10151c;color:#e0e8ef;min-height:80vh}.kingdom-page[hidden]{display:none!important}.kingdom-hero{padding:44px clamp(20px,5vw,78px);border-bottom:1px solid #8d774e;background:radial-gradient(ellipse at 80% 0,#72562555,transparent 70%),linear-gradient(120deg,#090d12,#1c2531)}.kingdom-hero>a{display:block;font-size:11px;letter-spacing:.18em;color:var(--k-accent)}.kingdom-hero>span{float:right;font-size:80px;color:var(--k-accent);opacity:.7}.kingdom-hero h1{font:800 clamp(35px,5vw,62px) 'Barlow Condensed',sans-serif;color:var(--k-accent);margin:14px 0 8px}.kingdom-hero p{color:#ccd7e2;max-width:650px;line-height:1.6}.k-beyond-the-wall.kingdom-page{--k-accent:#a5dfff;background:#102332}.k-beyond-the-wall .kingdom-hero{background:linear-gradient(155deg,#486e8755 0,transparent 40%),linear-gradient(30deg,#12273b,#234556);border-color:#79afc7}.k-rivalry .kingdom-hero{background:linear-gradient(120deg,#271a1b,#49312788,#141922)}.kingdom-body{max-width:1320px;margin:auto;padding:30px clamp(16px,4vw,60px) 60px;line-height:1.65;font-size:14px}.kingdom-body h3{font:700 27px 'Barlow Condensed',sans-serif;color:var(--k-accent);margin:28px 0 14px}.kingdom-controls{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:0 0 20px}.kingdom-controls label{display:grid;gap:6px;min-width:0;max-width:100%;font-size:12px;color:#c6d4df}.kingdom-page select,.kingdom-page input{background:#182b3c;color:#f5f8fa;border:1px solid #647a8c;padding:10px;border-radius:4px;max-width:100%;min-height:42px;font:14px system-ui}.kingdom-page button{background:#203344;border:1px solid #778994;color:#f8e3b2;cursor:pointer;padding:10px 14px;border-radius:4px}.kingdom-page button:hover{border-color:var(--k-accent)}.kingdom-page :focus-visible,.kingdom-menu :focus-visible{outline:3px solid #82e1ff;outline-offset:3px}.kingdom-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:24px 0}.kingdom-stats article{padding:18px;background:#ffffff06;border:1px solid #566372;border-top:3px solid var(--k-accent);border-radius:5px;min-width:0}.kingdom-stats small{display:block;color:#b8cad8;font-size:11px;text-transform:uppercase;letter-spacing:.06em}.kingdom-stats strong{display:block;font:700 clamp(22px,2.3vw,30px) 'Barlow Condensed',sans-serif;color:var(--k-accent);margin-top:8px;overflow-wrap:anywhere}.kingdom-note{color:#c2d0dd;font-size:12px}.kingdom-tabs{display:flex;gap:8px;margin:25px 0;flex-wrap:wrap;border-bottom:1px solid #4c5c6a;padding-bottom:12px}.kingdom-tabs [aria-selected=true]{background:var(--k-accent);color:#10202c;border-color:var(--k-accent)}.kingdom-scroll{overflow-x:auto;max-width:100%;margin:16px 0;border:1px solid #425767;border-radius:5px}.kingdom-scroll table{width:100%;border-collapse:collapse;min-width:560px;text-align:left;font-size:13px}.kingdom-scroll th{padding:12px;background:#203343;color:#d7e4ed;font-size:11px;text-transform:uppercase;white-space:nowrap}.kingdom-scroll td{padding:12px;border-top:1px solid #364957;color:#e3eaf1}.kingdom-house{display:inline-flex;align-items:center;gap:9px;max-width:280px;vertical-align:middle}.kingdom-house>span>small{display:block;color:#acbfce;font-size:11px}.kingdom-house .club-badge{width:32px!important;height:32px!important;min-width:32px!important;flex-shrink:0}.kingdom-house img{width:100%;height:100%;object-fit:contain}.kingdom-chart{width:100%;overflow-x:auto;background:#0b141c;padding:12px;border-radius:6px}.kingdom-chart svg{display:block;width:100%;min-width:480px;height:auto;font:12px sans-serif}.kingdom-legend{display:flex;gap:14px;flex-wrap:wrap;font-size:12px}.kingdom-advanced{margin-top:28px;border:1px solid #4b6071;border-radius:5px;padding:16px;background:#ffffff04}.kingdom-page summary{cursor:pointer;color:var(--k-accent);font-weight:600}.kingdom-empty{padding:24px;border:1px dashed #667e91;border-radius:5px;color:#cfdae5;background:#ffffff05}.kingdom-simulator{max-height:420px;overflow:auto;margin:20px 0;border:1px solid #4b6071;padding:12px}.kingdom-simulator>div{display:grid;grid-template-columns:48px 1fr 20px 1fr;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #405364}.kingdom-simulator label{display:grid;grid-template-columns:1fr 76px;align-items:center;gap:10px;font-size:12px}.kingdom-simulator input{width:76px}.kingdom-heatmap{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}.kingdom-heatmap details{padding:15px;border:1px solid #5c7889}.kingdom-heatmap .win{background:#154a3e}.kingdom-heatmap .loss{background:#502b30}.kingdom-heatmap .draw{background:#394554}.kingdom-heatmap summary{color:#fff;font-size:12px}.kingdom-intro{margin:0 0 25px}.kingdom-links{display:flex;gap:16px;flex-wrap:wrap;padding:16px;background:#152736}.kingdom-links a{color:#f1d29a;font-weight:600;font-size:13px}
@media(max-width:1000px){.kingdom-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.kingdom-menu>summary{padding:12px 5px;font-size:12px}.desktop-nav{flex-wrap:wrap}.kingdom-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.primary-nav .kingdom-menu{width:100%;grid-column:1/-1}.primary-nav .kingdom-menu>div{position:static;width:100%;box-shadow:none}.kingdom-hero{padding:28px 18px}.kingdom-hero>span{font-size:48px}.kingdom-card{padding:15px}.kingdom-card strong{font-size:22px}.kingdom-card p{font-size:12px}.kingdom-home{padding:18px}.kingdom-controls>label{width:100%}.kingdom-controls select{width:100%}.kingdom-stats article{padding:13px}.kingdom-tabs button{flex:1;font-size:12px}.kingdom-simulator>div{grid-template-columns:32px 1fr 12px 1fr;gap:5px}.kingdom-simulator label{grid-template-columns:1fr;font-size:11px}.kingdom-simulator input{width:100%}.kingdom-body{padding-top:20px}.kingdom-stats strong{font-size:24px}}
.kingdom-forecast-label{padding:12px 15px;border-left:3px solid var(--k-accent);background:#ffffff08;color:#f6dc9e}.kingdom-probability{min-width:96px;max-width:180px}.kingdom-probability>strong{display:block;color:#f2d28d;font-size:17px;font-variant-numeric:tabular-nums}.kingdom-probability>span{display:block;height:6px;background:#ffffff16;border-radius:6px;margin-top:6px;overflow:hidden}.kingdom-probability i{display:block;height:100%;background:#d9b66d}.kingdom-probability.bottom>strong{color:#b5eaff}.kingdom-probability.bottom i{background:#87cde9}.kingdom-probabilities .kingdom-scroll table{min-width:0;table-layout:fixed}.kingdom-probabilities th:first-child{width:42%}.kingdom-probabilities th:nth-child(2){width:12%}.kingdom-probabilities th:nth-child(n+3){width:23%;white-space:normal}.kingdom-probabilities td{overflow-wrap:anywhere}.kingdom-probabilities .kingdom-house{max-width:100%}@media(max-width:600px){.kingdom-probabilities .kingdom-scroll th,.kingdom-probabilities .kingdom-scroll td{padding:9px 5px;font-size:11px}.kingdom-probabilities .kingdom-house{gap:5px;align-items:flex-start}.kingdom-probabilities .kingdom-house .club-badge{width:23px!important;height:23px!important;min-width:23px!important}.kingdom-probability{min-width:0}.kingdom-probability>strong{font-size:14px}.kingdom-probabilities .kingdom-house>span>small{font-size:10px}.kingdom-probabilities th:first-child{width:40%}.kingdom-probabilities th:nth-child(2){width:12%}.kingdom-probabilities th:nth-child(n+3){width:24%}}

/* ravens-five.css */
/* Match the desktop link box, including its reserved underline. */
.desktop-nav>.kingdom-menu{display:flex;align-items:stretch;font-size:15px;color:inherit}
.desktop-nav>.kingdom-menu>summary{display:flex;align-items:center;gap:6px;padding:4px 0 0;border-bottom:4px solid transparent;font-size:15px;font-weight:800;line-height:normal;list-style:none;color:#321445}
.desktop-nav>.kingdom-menu>summary::-webkit-details-marker{display:none}
.desktop-nav>.kingdom-menu>summary:after{content:'▾';font-size:11px}
.desktop-nav>.kingdom-menu[open]>summary{border-color:#8a257b}
.desktop-nav>.kingdom-menu>div{top:100%;right:0;left:auto}
.primary-nav>.kingdom-menu>summary{padding:13px 15px;border-left:4px solid transparent;font-size:15px;font-weight:800;color:#321445;min-height:44px}
.primary-nav>.kingdom-menu>div{position:static;width:100%;box-shadow:none}
.ravens-home-link{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:16px clamp(18px,3vw,48px);background:#132b3b;color:#e8cb8c;text-decoration:none;font-size:13px;border-block:1px solid #9c7c3e}
.ravens-home-link>span:first-child{font-weight:800;letter-spacing:1px}
.ravens-five{background:#0d1c28;color:#dae5ed;padding:clamp(16px,3vw,32px);margin:0 0 30px;border:1px solid #9b7c42;border-top:5px solid #d1af66;border-radius:8px;min-width:0}
.rf-header{border-bottom:1px solid #4c5a61;padding-bottom:18px}.rf-header h2{color:#eed29a;font:800 clamp(34px,5vw,54px)/1 'Barlow Condensed',sans-serif;margin:12px 0}.rf-kicker{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#dec187;font-weight:700}.rf-header>p{margin:6px 0}.rf-header small,.rf-source,.rf-estimate{font-size:12px;color:#b8ccd9}
.rf-toolbar,.rf-actions{display:flex;gap:9px;flex-wrap:wrap;margin:20px 0}.ravens-five button,.ravens-five select{border:1px solid #a88b50;border-radius:4px;background:#203747;color:#f4dfb2;padding:10px 12px;cursor:pointer;font:inherit;font-size:12px}.ravens-five button:disabled{opacity:.5}.rf-toolbar label{display:flex;align-items:center;gap:8px;font-size:12px}.rf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.rf-card{border:1px solid #566475;border-top:3px solid #bf9b50;border-radius:5px;min-width:0;background:linear-gradient(135deg,#203344,#121e2b)}.rf-card>summary{display:block;cursor:pointer;list-style:none;padding:20px}.rf-card>summary::-webkit-details-marker{display:none}.rf-card h3{font:700 27px/1.1 'Barlow Condensed',sans-serif;color:#ecd29c;margin:12px 0 22px}.rf-versus{display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);align-items:center;gap:10px;text-align:center}.rf-versus>span{display:flex;align-items:center;flex-direction:column;gap:9px;min-width:0;overflow-wrap:anywhere}.rf-versus .club-badge{width:64px!important;height:64px!important;min-width:64px!important}.rf-versus strong{font-size:15px}.rf-versus small{font-size:12px;color:#bed1df}.rf-versus>b{font-size:13px;color:#d6b76f}.rf-status,.rf-open{display:block;text-align:center;font-size:12px;margin-top:20px;color:#b4d7e8}.rf-open{color:#e8cb8c}.rf-detail{padding:0 20px 20px;font-size:13px;line-height:1.65;overflow-wrap:anywhere}.rf-prob-labels{display:grid;grid-template-columns:1fr 70px 1fr;font-size:11px;gap:8px}.rf-prob-labels b{display:block;color:#fff;font-size:16px}.rf-prob-labels>span:last-child{text-align:right}.rf-prob-labels>span:nth-child(2){text-align:center}.rf-prob-bar{display:flex;height:12px;border-radius:5px;overflow:hidden;margin:8px 0}.rf-comparison{display:grid;grid-template-columns:1fr 1fr;gap:18px;border-block:1px solid #425461;padding:10px 0}.rf-comparison h4{margin:8px 0;font-size:14px;color:#ecd29c}.rf-form{display:flex;gap:4px;flex-wrap:wrap}.rf-form i{font-style:normal;font-size:11px;width:23px;line-height:23px;text-align:center;border-radius:3px;background:#647082;color:white}.rf-form .rf-W{background:#256c59}.rf-form .rf-L{background:#954451}.rf-alert,.rf-result{border-left:3px solid #a5cbd8;padding:10px;background:#ffffff09}.rf-impact,.rf-tactics,.rf-editor,.rf-method{border-top:1px solid #455866;padding:13px 0}.ravens-five summary:focus-visible,.ravens-five button:focus-visible{outline:2px solid #f5d99a;outline-offset:3px}.rf-detail summary,.rf-method summary{cursor:pointer;color:#eed29a;font-weight:600}.rf-detail a{color:#b7e5fb}.rf-editor label{display:block;margin:10px 0}.rf-editor input,.rf-editor textarea{display:block;width:100%;background:#13232f;color:white;border:1px solid #62727d;padding:9px;font:inherit}.rf-editor small{display:block}.rf-method{margin-top:25px;font-size:13px;line-height:1.7}.rf-unavailable{border:1px dashed #70808a;padding:12px}
@media(max-width:760px){.rf-grid{grid-template-columns:1fr}.rf-card>summary{padding:16px}.rf-detail{padding:0 16px 16px}.rf-toolbar button{flex:1}.rf-toolbar label{width:100%}.rf-versus .club-badge{width:52px!important;height:52px!important;min-width:52px!important}.ravens-home-link{font-size:12px}.rf-header h2{font-size:40px}.rf-header>p{font-size:12px}.rf-toolbar{gap:7px}.rf-comparison{gap:12px}}
/* Shared premium rivalry template for every Gameweek. */
.rf-card{background:linear-gradient(#07111de8,#07111df0),url('/assets/stadium-pitch.jpg') center/cover;border-color:#53677b;box-shadow:inset 12px 0 28px #d3223920,inset -12px 0 28px #087fff25}.rf-card>summary h3{text-align:center;text-transform:uppercase;font-size:25px}.rf-side-0{--side:#ed354a;--side-dark:#5a1020}.rf-side-1{--side:#249cff;--side-dark:#092e66}.rf-badge-frame{display:flex;align-items:center;justify-content:center;width:100%;max-width:150px;aspect-ratio:1;background:linear-gradient(145deg,#000c,var(--side-dark));border:2px solid var(--side);border-radius:6px;box-shadow:0 0 15px color-mix(in srgb,var(--side),transparent 65%),inset 0 0 15px #0009;padding:12px;margin:auto}.rf-versus .rf-badge-frame .club-badge,.rf-team-panel .rf-badge-frame .club-badge{width:100%!important;height:100%!important;min-width:0!important;aspect-ratio:1;background:transparent}.rf-badge-frame img{object-fit:contain}.rf-versus>span>small,.rf-rank{background:linear-gradient(110deg,var(--side-dark),var(--side));border:1px solid var(--side);color:white;font-weight:800;padding:10px 5px;border-radius:3px;width:100%}.rf-versus>span>small{font-size:17px}.rf-vs{font:800 24px 'Barlow Condensed',sans-serif;color:#e4c38a!important}.rf-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.rf-team-panel{min-width:0}.rf-team-panel>.rf-badge-frame,.rf-team-panel>h3{display:none}.rf-rank{display:flex;align-items:center;justify-content:center;gap:12px}.rf-rank strong{font-size:26px}.rf-rank b{font-size:17px}.rf-metrics{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}.rf-metrics>div{padding:9px 5px;text-align:center;background:#061320c9;border:1px solid #52697c;border-radius:3px}.rf-metrics small{display:block;font-size:10px;color:#c5d7e3}.rf-metrics strong{font-size:22px;color:#fff;display:block}.rf-metrics .rf-form-box{grid-column:1/-1}.rf-form{justify-content:center;margin:6px 0}.rf-form .rf-W{background:#148341}.rf-form .rf-L{background:#bd2533}.rf-form .rf-D{background:#d99b24;color:#171717}.rf-swing{border:1px solid var(--side);background:linear-gradient(135deg,var(--side-dark),#061320);padding:10px;border-radius:4px}.rf-swing h4{margin:0 0 8px;font-size:12px;color:white}.rf-swing>div{padding:7px 0;border-top:1px solid #ffffff2b}.rf-swing>div>strong,.rf-swing>div>small{display:block;font-size:10px;line-height:1.45}.rf-swing>div>b{font-size:24px;color:#fff;display:block}.rf-swing>small{font-size:10px;display:block;margin-top:8px;color:#d2e0ea}.rf-swing-note{font-size:11px;color:#b5c9d9}.rf-odds{border:1px solid #567387;background:#04121ed9;padding:12px 8px;margin-top:18px}.rf-odds h4{text-align:center;font-size:12px;margin:0 0 40px;color:#fff}.rf-prob-bar{position:relative;height:46px;overflow:visible;border-radius:4px;display:flex;margin:0 0 10px}.rf-segment{flex:none!important;display:flex;justify-content:center;align-items:center;min-width:0}.rf-segment b{font-size:18px;line-height:1;color:#fff;text-shadow:0 1px 2px #000}.rf-prob-bar>.rf-segment-0{background:linear-gradient(#e34654,#971125)}.rf-prob-bar>.rf-segment-1{background:linear-gradient(#657685,#2f3e4a)}.rf-prob-bar>.rf-segment-2{background:linear-gradient(#199fff,#0751a5)}.rf-callout{position:absolute;top:-31px;transform:translateX(-50%);font-size:11px;font-weight:bold;font-style:normal;white-space:nowrap;color:#fff;background:#152b40;padding:2px 5px;border:1px solid #8395a5;border-radius:3px;z-index:1}.rf-callout i{position:absolute;bottom:-12px;left:calc(50% - 4px);font-style:normal;font-size:10px}.rf-prob-labels{font-size:10px;grid-template-columns:1fr 48px 1fr}.rf-prob-labels span{overflow-wrap:anywhere}.image-export-dialog.preview-first{width:min(820px,96vw);max-height:95dvh;overflow:auto}.image-export-dialog.preview-first>img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(95dvh - 210px);object-fit:contain;margin:10px auto}.image-export-dialog.preview-first .image-export-toolbar button{font-size:15px;min-width:65px}.image-export-dialog.preview-first .image-export-actions{flex-wrap:wrap}
@media(max-width:600px){.rf-team-grid{gap:8px}.rf-detail{padding-inline:10px}.rf-swing{padding:8px}.rf-rank{gap:6px}.rf-rank strong{font-size:24px}.rf-rank b{font-size:13px}.rf-versus{grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:7px}.rf-badge-frame{padding:8px}.rf-versus>span>small{font-size:15px}.rf-prob-bar{height:43px}.rf-segment b{font-size:17px}.rf-card h3{font-size:23px}.rf-form{gap:3px}.rf-form i{width:20px;line-height:22px}.rf-callout{font-size:10px}}
