/* Shared stadium and neon treatment for the signed-in Workplace Games experience. */
:root{--wg-ink:#f5f8ff;--wg-muted:#b6c6dc;--wg-panel:#06152af2;--wg-panel2:#0a1d35f5;--wg-line:#24496c;--wg-red:#f32442;--wg-blue:#078dff;--wg-gold:#ffdf18}
body{background:radial-gradient(ellipse at 15% 0%,#062c5b 0,transparent 36%),radial-gradient(ellipse at 90% 24%,#380c28 0,transparent 32%),#020715;color:var(--wg-ink)}
body.reference-dashboard .page-wrap{padding-top:13px}
body.reference-dashboard .dashboard-welcome{min-height:clamp(350px,31vw,430px);padding:24px 22px 118px;border:1px solid #1a6ab4;border-radius:18px;background:linear-gradient(90deg,#020817f5 0%,#06132de5 38%,#06132d8a 67%,#06132d30 100%),linear-gradient(0deg,#020817ca 0%,transparent 62%),url("stadium-photo.jpg") center 48%/cover no-repeat;box-shadow:0 0 0 1px #f3244230,0 0 14px #087ffb35,0 18px 42px #000a}
body.reference-dashboard .dashboard-welcome:before{z-index:0;background:radial-gradient(ellipse at 13% 0%,#008aff32 0,transparent 35%),radial-gradient(ellipse at 92% 8%,#ff123b3b 0,transparent 32%),linear-gradient(180deg,#02071520 40%,#020715c9 100%);opacity:1}
body.reference-dashboard .dashboard-welcome-copy{z-index:1;width:100%;max-width:100%}
body.reference-dashboard .dashboard-welcome-copy>.dashboard-kicker{color:#f5d639;font-size:11px;letter-spacing:2px}
body.reference-dashboard .dashboard-welcome h1{display:table;width:max-content;max-width:min(100%,1160px);margin:10px 0 9px;padding:10px 23px 13px;border:2px solid #ff4157;border-radius:19px;background:linear-gradient(95deg,#bf071de8,#4a0b19bd 86%,#120a17a8);color:#fff;font-size:clamp(30px,5vw,66px);font-style:italic;font-weight:1000;line-height:.98;letter-spacing:-1.7px;text-transform:uppercase;text-shadow:2px 3px 0 #203852,0 0 10px #fff7;box-shadow:0 0 5px #ff1d3d88,0 9px 24px #0008,inset 0 1px #ffffff66}
body.reference-dashboard .dashboard-welcome-copy>p{max-width:960px;margin:0;color:#f4f7ff;font-size:clamp(14px,1.7vw,21px);font-style:italic;font-weight:800;line-height:1.38;text-shadow:0 2px 5px #000,0 0 12px #00152a}
body.reference-dashboard .dashboard-welcome-actions{gap:14px;margin-top:15px}
body.reference-dashboard .dashboard-welcome-actions .primary-button,body.reference-dashboard .dashboard-secondary{min-width:245px;min-height:53px;padding:0 23px;border:2px solid #ff4e62;border-radius:40px;background:linear-gradient(#fb1838,#ad071e);color:#fff;font-size:clamp(12px,1.3vw,17px);font-style:italic;font-weight:1000;text-transform:uppercase;text-shadow:0 2px 3px #56000b;box-shadow:0 0 5px #f3244288,0 7px 16px #0009,inset 0 1px #ffffff7a}
body.reference-dashboard .dashboard-welcome-actions .primary-button:hover{background:linear-gradient(#ff4057,#d30b29)}
body.reference-dashboard .dashboard-secondary{border-color:#1b9bff;background:linear-gradient(110deg,#020918ed,#061a35f2);box-shadow:0 0 5px #078dff88,0 7px 16px #0009,inset 0 1px #ffffff55}
body.reference-dashboard .dashboard-secondary:hover{background:#102c4b}
body.reference-dashboard .dashboard-stats{left:14px;right:14px;bottom:14px;gap:10px}
body.reference-dashboard .dashboard-stat{position:relative;min-height:94px;padding:14px 10px 11px 72px;border:1px solid transparent;border-radius:21px;background:linear-gradient(#030918f4,#020715f4) padding-box,linear-gradient(125deg,#ff153b,#078bff 56%,#ff153b) border-box;box-shadow:0 0 4px #f3244277,0 0 9px #078bff60,inset 0 1px #ffffff20;backdrop-filter:blur(8px)}
body.reference-dashboard .dashboard-stat:before{left:17px;top:25px;font-size:43px;filter:drop-shadow(0 0 5px #fff6)}
body.reference-dashboard .dashboard-stat:nth-child(2):before{font-size:47px}
body.reference-dashboard .dashboard-stat>span{color:#fff;font-size:clamp(8px,.9vw,13px);letter-spacing:.3px}
body.reference-dashboard .dashboard-stat strong{margin-top:2px;color:var(--wg-gold);font-size:clamp(22px,2.8vw,39px);font-weight:1000;text-shadow:0 0 12px #ffd50055}
body.reference-dashboard .dashboard-stat small{color:#f3f6ff;font-size:clamp(8px,.95vw,14px)}
body.reference-dashboard .dashboard-group-stat strong{overflow:visible;font-size:clamp(14px,1.5vw,21px);line-height:1.05;white-space:normal;text-overflow:clip}

/* All other pages reuse the same navigation and stadium banner, but keep their own content and controls. */
body:not(.reference-dashboard) .site-header{position:sticky;top:0;z-index:20;background:linear-gradient(100deg,#020716f7,#08182ef7 58%,#100817f7);color:#fff;border-bottom:1px solid #16456d;box-shadow:0 6px 24px #0009;backdrop-filter:blur(14px)}
body:not(.reference-dashboard) .site-header .brand,body:not(.reference-dashboard) .site-header .nav-link{color:#f5f8ff}
body:not(.reference-dashboard) .site-header .brand-name b{color:#f32442}
body:not(.reference-dashboard) .site-header .nav-link.active:after{height:4px;background:linear-gradient(90deg,#ff183c,#008cff);box-shadow:0 0 12px #f32442}
body:not(.reference-dashboard) .site-header .header-login{border:1px solid #168eff;background:#04152c;color:#fff;box-shadow:0 0 9px #078dff52}
body:not(.reference-dashboard) .site-header .header-signup{border:1px solid #ff5265;background:linear-gradient(#ff2b47,#c40b26);color:#fff;box-shadow:0 0 10px #fa1c3d66}
body:not(.reference-dashboard) .site-header .active-group-picker label,body:not(.reference-dashboard) .site-header .account-label{color:#eaf2ff}
body:not(.reference-dashboard) .site-header .active-group-picker select{border-color:#138bfa;background:#05162b;color:#fff}
body:not(.reference-dashboard) .hero{height:clamp(180px,17vw,220px);border:1px solid #147cce;border-radius:16px;background:linear-gradient(90deg,#020817f4 0%,#07162ad9 42%,#07162a52 100%),linear-gradient(0deg,#020817c4,transparent 62%),url("stadium-photo.jpg") center 50%/cover no-repeat;box-shadow:0 0 0 1px #f3244228,0 0 12px #078dff38,0 12px 32px #0009}
body:not(.reference-dashboard) .hero:before{background:radial-gradient(ellipse at 8% 0%,#078dff55,transparent 34%),radial-gradient(ellipse at 95% 0%,#ff193e55,transparent 30%),linear-gradient(180deg,#0309181c,#03091886)}
body:not(.reference-dashboard) .hero:after{border-color:#3fda8c99;box-shadow:0 -8px 30px #22b65955}
body:not(.reference-dashboard) .hero-copy{padding:clamp(20px,3vw,37px)}
body:not(.reference-dashboard) .hero .eyebrow{color:#f5d639}
body:not(.reference-dashboard) .hero h1{font-size:clamp(28px,4vw,48px);font-style:italic;text-transform:uppercase;text-shadow:2px 3px 0 #132e4b,0 0 14px #fff8}
body:not(.reference-dashboard) .hero p{color:#f4f7ff;font-weight:700;text-shadow:0 2px 6px #000}
body:not(.reference-dashboard) .hero-tag{border:1px solid #078dff;border-radius:12px;background:#030918df;box-shadow:0 0 12px #078dff77}
body:not(.reference-dashboard) .hero-art{opacity:.82}

body:not(.reference-dashboard) .game-tabs{border:1px solid #1678bf;border-radius:12px;background:#06152bf2;box-shadow:0 0 13px #078dff3b}
body:not(.reference-dashboard) .game-tab{border-right:1px solid #173755;background:transparent;color:#c4d2e5}
body:not(.reference-dashboard) .game-tab:hover{background:#102b48;color:#fff}
body:not(.reference-dashboard) .game-tab.active{background:linear-gradient(110deg,#bc0822,#ed1937);color:#fff;box-shadow:0 0 13px #f3244266}
body:not(.reference-dashboard) .game-tab.active:after{background:#ff5265}

body:not(.reference-dashboard) .section-title-row h2,body:not(.reference-dashboard) .panel-title h2,body:not(.reference-dashboard) .home-panel-head h2{color:#f4f7ff}
body:not(.reference-dashboard) .section-label{color:#ff4a61}
body:not(.reference-dashboard) .section-intro,body:not(.reference-dashboard) .filters-row label,body:not(.reference-dashboard) .bonus-heading p{color:#bfcee1}
body:not(.reference-dashboard) .demo-pill{border:1px solid #168cff;border-radius:99px;background:#061a31;color:#eaf3ff;box-shadow:0 0 9px #078dff4d}
body:not(.reference-dashboard) .panel,body:not(.reference-dashboard) .filters-row,body:not(.reference-dashboard) .home-dashboard-panel,body:not(.reference-dashboard) .more-games{border:1px solid #17659f;border-radius:14px;background:linear-gradient(145deg,#071a31f5,#030c1bf7);color:#f4f7ff;box-shadow:0 0 0 1px #078dff20,0 0 10px #078dff20,0 10px 28px #0008}
body:not(.reference-dashboard) .panel-title{color:#fff}
body:not(.reference-dashboard) .panel-title>span{filter:drop-shadow(0 0 5px #078dff88)}
body:not(.reference-dashboard) .panel-title h2{color:#fff}
body:not(.reference-dashboard) .filters-row select,body:not(.reference-dashboard) .form-input,body:not(.reference-dashboard) input,body:not(.reference-dashboard) select,body:not(.reference-dashboard) textarea{border:1px solid #285577;border-radius:8px;background:#030d1d;color:#f3f7ff;box-shadow:inset 0 1px #ffffff09}
body:not(.reference-dashboard) .filters-row select:focus,body:not(.reference-dashboard) .form-input:focus,body:not(.reference-dashboard) input:focus,body:not(.reference-dashboard) select:focus,body:not(.reference-dashboard) textarea:focus{outline:2px solid #168fff;outline-offset:1px;box-shadow:0 0 12px #078dff55}
body:not(.reference-dashboard) input::placeholder,body:not(.reference-dashboard) textarea::placeholder{color:#8195ad}
body:not(.reference-dashboard) .countdown{border:1px solid #167ee0;border-radius:10px;background:#061a33;color:#fff;box-shadow:0 0 11px #078dff4a}
body:not(.reference-dashboard) .countdown small{color:#b7c8df}
body:not(.reference-dashboard) .countdown b{color:#ffe021}
body:not(.reference-dashboard) .clock-icon{background:linear-gradient(140deg,#109dff,#075cb0);box-shadow:0 0 9px #078dff88}

body:not(.reference-dashboard) .fixture-head,body:not(.reference-dashboard) .leader-head,body:not(.reference-dashboard) .mini-head{border-bottom:1px solid #19496e;background:linear-gradient(90deg,#092747,#081a31);color:#d9e9fc}
body:not(.reference-dashboard) .fixture-row,body:not(.reference-dashboard) .leader-row,body:not(.reference-dashboard) .mini-row,body:not(.reference-dashboard) .summary-line,body:not(.reference-dashboard) .entry-row,body:not(.reference-dashboard) .lps-standing-row,body:not(.reference-dashboard) .lps-history-row,body:not(.reference-dashboard) .admin-member-row,body:not(.reference-dashboard) .group-prediction-row{border-color:#183a58;color:#f2f6ff}
body:not(.reference-dashboard) .fixture-row:nth-child(even),body:not(.reference-dashboard) .leader-row:nth-child(even),body:not(.reference-dashboard) .group-prediction-row:nth-child(even){background:#0a1b31a8}
body:not(.reference-dashboard) .fixture-date,body:not(.reference-dashboard) .leader-row small,body:not(.reference-dashboard) .lps-standing-row>span:last-child,body:not(.reference-dashboard) .lps-history-row>span:first-child,body:not(.reference-dashboard) .lps-history-row small{color:#a9bdd4}
body:not(.reference-dashboard) .fixture-row input,body:not(.reference-dashboard) .score-input{border-color:#2d5f81;background:#020b19;color:#fff}
body:not(.reference-dashboard) .lock-chip{max-width:55px;min-height:28px;padding:3px 4px;border-color:#1878bd;border-radius:7px;background:#061b31;color:#d5eaff;font-size:7px;line-height:1.15;text-align:center;white-space:normal;overflow-wrap:anywhere}
body:not(.reference-dashboard) .fixture-foot{border-top:1px solid #19496e;background:#06152a;color:#b9c9dd}
body:not(.reference-dashboard) .fixture-foot a,body:not(.reference-dashboard) .small-link{color:#69bdff}
body:not(.reference-dashboard) .home-dashboard-grid .home-fixture-row,body:not(.reference-dashboard) .home-fixture-row{border-color:#1c405f;color:#f1f6ff}
body:not(.reference-dashboard) .home-fixture-row .club,body:not(.reference-dashboard) .home-fixture-row .fixture-date{color:#e5effb}
body:not(.reference-dashboard) .status-chip{border-color:#227dca;background:#0a2540;color:#dceeff}
body:not(.reference-dashboard) .primary-button{border:1px solid #ff6270;border-radius:10px;background:linear-gradient(#fa2944,#b90621);color:#fff;font-weight:900;box-shadow:0 0 11px #f3244255,inset 0 1px #ffffff44}
body:not(.reference-dashboard) .primary-button:hover{background:linear-gradient(#ff485b,#d80b2a);box-shadow:0 0 17px #f3244277}
body:not(.reference-dashboard) .secondary-button,body:not(.reference-dashboard) .group-view-tab{border:1px solid #197fca;border-radius:9px;background:#061a31;color:#e9f3ff}
body:not(.reference-dashboard) .secondary-button:hover,body:not(.reference-dashboard) .group-view-tab:hover{background:#102c4b;border-color:#51b5ff}
body:not(.reference-dashboard) .danger-button{border:1px solid #ff596c;border-radius:9px;background:#400a18;color:#fff}
body:not(.reference-dashboard) .group-view-tabs{border:1px solid #185b8f;border-radius:12px;background:#041226}
body:not(.reference-dashboard) .group-view-tab.active{border-color:#ff5063;background:linear-gradient(100deg,#b80722,#ed1937);color:#fff;box-shadow:0 0 13px #f324425e}
body:not(.reference-dashboard) .group-view-panel.active{color:#f5f8ff}
body:not(.reference-dashboard) .bonus-group-panel,body:not(.reference-dashboard) .my-groups-switcher,body:not(.reference-dashboard) .groups-panel,body:not(.reference-dashboard) .account-panel,body:not(.reference-dashboard) .bonus-picker,body:not(.reference-dashboard) .bonus-admin-settings,body:not(.reference-dashboard) .lps-pick-panel,body:not(.reference-dashboard) .lps-admin-panel,body:not(.reference-dashboard) .lps-history-panel{color:#f4f7ff}
body:not(.reference-dashboard) .bonus-entry-line{border-color:#254968;background:#071a30;color:#f6f8fc}
body:not(.reference-dashboard) .bonus-entry-line small,body:not(.reference-dashboard) .points-note,body:not(.reference-dashboard) .auth-note{color:#b4c5d9}
body:not(.reference-dashboard) .bonus-winning-line{border-color:#f5c525;background:linear-gradient(100deg,#6d5110,#2c250b);color:#fff1a2;box-shadow:0 0 12px #ffd21f48}
body:not(.reference-dashboard) .number-grid button{border-color:#24628e;background:linear-gradient(145deg,#0c2947,#06152a);color:#f4f8ff;box-shadow:0 2px 7px #0008}
body:not(.reference-dashboard) .number-grid button:hover{border-color:#ff5a6c;color:#fff;box-shadow:0 0 10px #f3244266}
body:not(.reference-dashboard) .number-grid button.selected{border-color:#ff6475;background:linear-gradient(#ff364d,#bd0922);color:#fff;box-shadow:0 0 13px #f3244280}
body:not(.reference-dashboard) .draw-panel strong{color:#ffe11b}
body:not(.reference-dashboard) .draw-panel small,body:not(.reference-dashboard) .draw-panel p{color:#c1d0e3}
body:not(.reference-dashboard) .bonus-draw-history>div{color:#b8cade}
body:not(.reference-dashboard) .lps-intro-panel{border:1px solid #138bff;border-radius:14px;background:linear-gradient(110deg,#06152deF,#092346f2);box-shadow:0 0 14px #078dff44}
body:not(.reference-dashboard) .lps-intro-panel h3,body:not(.reference-dashboard) .lps-admin-panel h3{color:#fff}
body:not(.reference-dashboard) .lps-rollover-controls{border:1px solid #f1c835;border-radius:10px;background:#241d09;color:#fff0a4}
body:not(.reference-dashboard) .lps-rollover-controls strong{color:#ffe45a}
body:not(.reference-dashboard) .lps-rollover-controls p{color:#dfd4aa}
body:not(.reference-dashboard) .group-invite-code,body:not(.reference-dashboard) .group-invite-qr-wrap{border-color:#1c679e;background:#06162a;color:#f2f6ff}
/* Group invitations: keep the share card readable and consistent with the dark game UI. */
body:not(.reference-dashboard) .group-invite-tools{grid-template-columns:minmax(0,1fr) 220px;align-items:stretch;gap:20px;margin-top:18px;padding:20px;border:1px solid #1766a0;border-radius:16px;background:linear-gradient(135deg,#071a31 0%,#041020 100%);box-shadow:0 10px 28px #0006,inset 0 1px #ffffff0a;color:#eef6ff}
body:not(.reference-dashboard) .group-invite-code{min-width:0;padding:4px 2px;border:0;background:transparent;color:#f2f6ff}
body:not(.reference-dashboard) .group-invite-code .section-label{display:block;margin-bottom:9px;color:#69bdff;font-size:10px;letter-spacing:.12em}
body:not(.reference-dashboard) .group-invite-code>strong{width:max-content;max-width:100%;padding:10px 14px;border:1px solid #c49a29;border-radius:10px;background:linear-gradient(145deg,#162842,#0a1729);color:#ffe27a;font:900 clamp(22px,3vw,30px)/1.1 var(--display);letter-spacing:.11em;text-shadow:0 0 14px #ffd54d44}
body:not(.reference-dashboard) .group-invite-code p{max-width:520px;margin:12px 0 15px;color:#bdcce0;font-size:12px;line-height:1.6}
body:not(.reference-dashboard) .group-invite-actions{gap:9px}
body:not(.reference-dashboard) .group-invite-code .secondary-button{min-height:38px;height:auto;padding:8px 12px;font-size:11px;line-height:1.25}
body:not(.reference-dashboard) .group-invite-qr-wrap{align-content:center;gap:10px;padding:14px;border:1px solid #1b5680;border-radius:13px;background:linear-gradient(145deg,#0a2340,#06152a);color:#f2f6ff}
body:not(.reference-dashboard) #groupQrCode{width:182px;height:182px;padding:12px;border:0;border-radius:9px;background:#fff;box-shadow:0 5px 18px #0008}
body:not(.reference-dashboard) #groupQrCode img,body:not(.reference-dashboard) #groupQrCode canvas{width:158px!important;height:158px!important;image-rendering:pixelated}
body:not(.reference-dashboard) .group-invite-qr-wrap small{color:#c4d8ed;font-size:11px;text-align:center}
body:not(.reference-dashboard) .owner-invite-reset{border-color:#a73548!important;background:#300d1a!important;color:#ffd8df!important}
body:not(.reference-dashboard) .owner-invite-reset:hover{border-color:#ff6072!important;background:#50101f!important}
@media(max-width:700px){body:not(.reference-dashboard) .group-invite-tools{grid-template-columns:minmax(0,1fr) 190px;gap:12px;padding:14px}body:not(.reference-dashboard) .group-invite-qr-wrap{padding:10px}body:not(.reference-dashboard) #groupQrCode{width:166px;height:166px;padding:10px}body:not(.reference-dashboard) #groupQrCode img,body:not(.reference-dashboard) #groupQrCode canvas{width:146px!important;height:146px!important}}
@media(max-width:560px){body:not(.reference-dashboard) .groups-panel{padding:20px 14px}body:not(.reference-dashboard) .group-invite-tools{grid-template-columns:minmax(0,1fr);gap:14px;padding:14px}body:not(.reference-dashboard) .group-invite-code{text-align:left}body:not(.reference-dashboard) .group-invite-code>strong{font-size:24px}body:not(.reference-dashboard) .group-invite-code p{margin:10px 0 13px}body:not(.reference-dashboard) .group-invite-code .group-invite-actions{display:grid;grid-template-columns:1fr 1fr}body:not(.reference-dashboard) .group-invite-code .group-invite-actions button{min-width:0;padding:8px 7px;font-size:10px}body:not(.reference-dashboard) .group-invite-code .owner-invite-reset{grid-column:1/-1}body:not(.reference-dashboard) .group-invite-qr-wrap{justify-items:center;padding:13px;border-top:1px solid #1b5680}}
body:not(.reference-dashboard) .inline-message{color:#c8e2ff}
body:not(.reference-dashboard) .empty-state{color:#a9bdd4}
body:not(.reference-dashboard) .group-icon{border:1px solid #177ec5;background:linear-gradient(145deg,#0c2b4a,#08172c);box-shadow:0 0 13px #078dff55}
/* Group competition and membership summaries must follow the dark Groups panel on every page state. */
body:not(.reference-dashboard) #groupsPage .group-competition-summary{border-color:#28638e;background:#0a2340;color:#e4f2ff}
body:not(.reference-dashboard) #groupsPage .game-membership-controls{border:1px solid #1b5680;border-radius:12px;background:#071a31;color:#f4f7ff}
body:not(.reference-dashboard) #groupsPage .game-membership-controls p{color:#d9e9fc}
body:not(.reference-dashboard) .site-footer{border-top:1px solid #123a5c;color:#9cb0c8}
body:not(.reference-dashboard) .connect-screen{background:radial-gradient(ellipse at 15% 5%,#0c4a88aa,transparent 42%),#01040ce8;backdrop-filter:blur(7px)}
body:not(.reference-dashboard) .connect-card{border:1px solid #168bff;border-radius:18px;background:linear-gradient(145deg,#071b34,#020816);color:#f5f8ff;box-shadow:0 0 0 1px #ff24464d,0 0 30px #078dff66,0 25px 80px #000d}
body:not(.reference-dashboard) .connect-card h2{color:#fff}
body:not(.reference-dashboard) .connect-card label{color:#d6e4f5}
body:not(.reference-dashboard) .connect-card .section-label{color:#ff5367}
body:not(.reference-dashboard) .auth-close{color:#fff}
body:not(.reference-dashboard) #bonusPage>.section-title-row .section-label,body:not(.reference-dashboard) #bonusPage>.section-title-row h2,body:not(.reference-dashboard) #lastStandingPage>.section-title-row .section-label,body:not(.reference-dashboard) #lastStandingPage>.section-title-row h2,body:not(.reference-dashboard) #groupsPage>.section-title-row .section-label,body:not(.reference-dashboard) #groupsPage>.section-title-row h2,body:not(.reference-dashboard) #resultsPage>.section-title-row h2{display:none}
body:not(.reference-dashboard) #bonusPage>.section-title-row .section-intro,body:not(.reference-dashboard) #lastStandingPage>.section-title-row .section-intro,body:not(.reference-dashboard) #groupsPage>.section-title-row .section-intro,body:not(.reference-dashboard) #resultsPage>.section-title-row .section-intro{margin:4px 0 10px;color:#c0d1e5}

@media(max-width:760px){body.reference-dashboard .dashboard-welcome{min-height:430px;padding:18px 15px 137px}body.reference-dashboard .dashboard-welcome h1{max-width:100%;font-size:clamp(27px,7vw,40px)}body.reference-dashboard .dashboard-welcome-copy>p{font-size:13px}body.reference-dashboard .dashboard-welcome-actions{gap:8px}body.reference-dashboard .dashboard-welcome-actions .primary-button,body.reference-dashboard .dashboard-secondary{min-width:0;min-height:43px;padding:0 13px;font-size:11px}body.reference-dashboard .dashboard-stats{left:10px;right:10px;bottom:10px;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}body.reference-dashboard .dashboard-stat{min-height:57px;padding:7px 8px 7px 45px;border-radius:12px}body.reference-dashboard .dashboard-stat:before{left:9px;top:15px;font-size:24px}body.reference-dashboard .dashboard-stat:nth-child(2):before{font-size:27px}body.reference-dashboard .dashboard-stat>span{font-size:8px}body.reference-dashboard .dashboard-stat strong{font-size:17px}body.reference-dashboard .dashboard-stat small{font-size:8px}}

/* Groups page uses the same dark dashboard skin, including its top cards. */
body.reference-dashboard #groupsPage>.section-title-row h2{color:#f4f7ff}
body.reference-dashboard #groupsPage>.section-title-row .section-label{color:#ff5065}
body.reference-dashboard #groupsPage>.section-title-row .section-intro{color:#bdd0e5}
body.reference-dashboard #groupsPage .panel{border:1px solid #17659f;border-radius:14px;background:linear-gradient(145deg,#071a31f5,#030c1bf7);color:#f4f7ff;box-shadow:0 0 0 1px #078dff20,0 0 10px #078dff20,0 10px 28px #0008}
body.reference-dashboard #groupsPage h2{color:#f4f7ff}
body.reference-dashboard #groupsPage .section-label{color:#69bdff}
body.reference-dashboard #groupsPage .section-intro,body.reference-dashboard #groupsPage .my-groups-switcher-note{color:#bdcce0}
body.reference-dashboard #groupsPage .groups-panel{padding:24px}
body.reference-dashboard #groupsPage .group-icon{border:1px solid #177ec5;background:linear-gradient(145deg,#0c2b4a,#08172c);box-shadow:0 0 13px #078dff55}
body.reference-dashboard #groupsPage .game-membership-controls{border:1px solid #1b5680;border-radius:12px;background:#071a31;color:#f4f7ff}
body.reference-dashboard #groupsPage .game-membership-controls p{color:#d9e9fc}
body.reference-dashboard #groupsPage .group-competition-summary{border-color:#28638e;background:#0a2340;color:#e4f2ff}
body.reference-dashboard #groupsPage .group-invite-tools{grid-template-columns:minmax(0,1fr) 220px;align-items:stretch;gap:20px;margin:18px auto 0;padding:20px;border:1px solid #1766a0;border-radius:16px;background:linear-gradient(135deg,#071a31,#041020);box-shadow:0 10px 28px #0006;color:#eef6ff}
body.reference-dashboard #groupsPage .group-invite-code{min-width:0;padding:4px 2px;border:0;background:transparent;color:#f2f6ff}
body.reference-dashboard #groupsPage .group-invite-code .section-label{display:block;margin-bottom:9px;color:#69bdff;font-size:10px;letter-spacing:.12em}
body.reference-dashboard #groupsPage .group-invite-code>strong{display:block;width:max-content;max-width:100%;padding:10px 14px;border:1px solid #c49a29;border-radius:10px;background:linear-gradient(145deg,#162842,#0a1729);color:#ffe27a;font:900 clamp(22px,3vw,30px)/1.1 var(--display);letter-spacing:.11em;text-shadow:0 0 14px #ffd54d44}
body.reference-dashboard #groupsPage .group-invite-code p{max-width:520px;margin:12px 0 15px;color:#bdcce0;font-size:12px;line-height:1.6}
body.reference-dashboard #groupsPage .group-invite-qr-wrap{display:grid;align-content:center;justify-items:center;gap:10px;padding:14px;border:1px solid #1b5680;border-radius:13px;background:linear-gradient(145deg,#0a2340,#06152a);color:#f2f6ff}
body.reference-dashboard #groupsPage #groupQrCode{display:grid;place-items:center;width:182px;height:182px;padding:12px;border:0;border-radius:9px;background:#fff;box-shadow:0 5px 18px #0008}
body.reference-dashboard #groupsPage #groupQrCode img,body.reference-dashboard #groupsPage #groupQrCode canvas{display:block;width:158px!important;height:158px!important;image-rendering:pixelated}
body.reference-dashboard #groupsPage .group-invite-qr-wrap small{color:#c4d8ed;font-size:11px;text-align:center}
body.reference-dashboard #groupsPage .group-invite-actions{display:flex;flex-wrap:wrap;gap:9px}
body.reference-dashboard #groupsPage .group-invite-code .secondary-button{width:auto;min-height:38px;height:auto;padding:8px 12px;border:1px solid #197fca;border-radius:9px;background:#061a31;color:#e9f3ff;font-size:11px;line-height:1.25}
body.reference-dashboard #groupsPage .owner-invite-reset{border-color:#a73548!important;background:#300d1a!important;color:#ffd8df!important}
body.reference-dashboard #groupsPage .group-view-tabs{border:1px solid #185b8f;border-radius:12px;background:#041226}
body.reference-dashboard #groupsPage .group-view-tab{border:1px solid #197fca;border-radius:9px;background:#061a31;color:#e9f3ff}
body.reference-dashboard #groupsPage .group-view-tab.active{border-color:#ff5063;background:linear-gradient(100deg,#b80722,#ed1937);color:#fff;box-shadow:0 0 13px #f324425e}
body.reference-dashboard #groupsPage .my-group-card{border-color:#1b5680;background:#081a30;color:#f2f6ff}
body.reference-dashboard #groupsPage .my-group-card.active{border-color:#268ed0;background:#102b47}
body.reference-dashboard #groupsPage .my-group-card-icon{background:#123454}
body.reference-dashboard #groupsPage .my-group-card-copy small{color:#afc5dd}
body.reference-dashboard #groupsPage .my-group-card-action{color:#75c1ff}
body.reference-dashboard #groupsPage .leader-head,body.reference-dashboard #groupsPage .mini-head{border-bottom:1px solid #19496e;background:linear-gradient(90deg,#092747,#081a31);color:#d9e9fc}
body.reference-dashboard #groupsPage .leader-row,body.reference-dashboard #groupsPage .group-prediction-row{border-color:#183a58;color:#f2f6ff}
body.reference-dashboard #groupsPage .leader-row:nth-child(even),body.reference-dashboard #groupsPage .group-prediction-row:nth-child(even){background:#0a1b31a8}
body.reference-dashboard #groupsPage .admin-role-button{border-color:#28638e;background:#0a2340;color:#e6f3ff}
body.reference-dashboard .lps-results-panel{margin:12px 0;padding:16px;border:1px solid #17659f;border-radius:14px;background:linear-gradient(145deg,#071a31f5,#030c1bf7);color:#f4f7ff;box-shadow:0 0 10px #078dff20,0 10px 28px #0008}
body.reference-dashboard .lps-results-panel .panel-title h2{color:#f4f7ff}
body.reference-dashboard .lps-results-panel .section-intro{color:#bdcce0}
body.reference-dashboard .lps-results-panel>label{display:block;margin:12px 0 5px;color:#d9e9fc;font-size:11px;font-weight:800}
body.reference-dashboard .lps-results-panel>#lpsResultsGameweek{max-width:230px;margin-bottom:12px;border-color:#2d5f81;background:#020b19;color:#fff}
body.reference-dashboard .lps-result-row{display:grid;grid-template-columns:minmax(100px,1fr) 28px minmax(100px,1fr) minmax(180px,230px);align-items:center;gap:10px;padding:10px 2px;border-top:1px solid #183a58;color:#f2f6ff;font-size:12px}
body.reference-dashboard .lps-result-row>span{text-align:center;color:#86a1bd;font-size:10px;font-weight:800}
body.reference-dashboard .lps-result-row .form-input{height:36px;margin:0;border-color:#2d5f81;background:#020b19;color:#fff;font-size:11px}
body.reference-dashboard .lps-results-panel>.primary-button{max-width:260px;margin-top:14px}
body.reference-dashboard #lpsResultsMessage{color:#c8e2ff}
@media(max-width:700px){body.reference-dashboard #groupsPage .group-invite-tools{grid-template-columns:minmax(0,1fr) 190px;gap:12px;padding:14px}body.reference-dashboard #groupsPage .group-invite-qr-wrap{padding:10px}body.reference-dashboard #groupsPage #groupQrCode{width:166px;height:166px;padding:10px}body.reference-dashboard #groupsPage #groupQrCode img,body.reference-dashboard #groupsPage #groupQrCode canvas{width:146px!important;height:146px!important}}
@media(max-width:560px){body.reference-dashboard #groupsPage .groups-panel{padding:20px 14px}body.reference-dashboard #groupsPage .group-invite-tools{grid-template-columns:minmax(0,1fr);gap:14px;padding:14px}body.reference-dashboard #groupsPage .group-invite-code>strong{font-size:24px}body.reference-dashboard #groupsPage .group-invite-code p{margin:10px 0 13px}body.reference-dashboard #groupsPage .group-invite-code .group-invite-actions{display:grid;grid-template-columns:1fr 1fr}body.reference-dashboard #groupsPage .group-invite-code .group-invite-actions button{width:100%;min-width:0;padding:8px 7px;font-size:10px}body.reference-dashboard #groupsPage .owner-invite-reset{grid-column:1/-1}body.reference-dashboard #groupsPage .group-view-tabs{gap:4px;margin:12px 0 8px;padding:4px}body.reference-dashboard #groupsPage .group-view-tab{min-height:38px;padding:0 5px;font-size:10px}body.reference-dashboard #groupsPage .my-groups-list{grid-template-columns:1fr}body.reference-dashboard .lps-results-panel{padding:13px}body.reference-dashboard .lps-result-row{grid-template-columns:minmax(0,1fr) 22px minmax(0,1fr);gap:7px;font-size:10px}body.reference-dashboard .lps-result-row .form-input{grid-column:1/-1}}
body.reference-dashboard .dashboard-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
body.reference-dashboard button.dashboard-stat{display:block;width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;transition:transform .15s ease,filter .15s ease}
body.reference-dashboard button.dashboard-stat:hover{transform:translateY(-2px);filter:brightness(1.16)}
body.reference-dashboard button.dashboard-stat:focus-visible,body.reference-dashboard .dashboard-group-stat select:focus-visible,body.reference-dashboard .dashboard-group-open:focus-visible{outline:3px solid #ffdf18;outline-offset:3px}
body.reference-dashboard .dashboard-stat:nth-child(4):before{content:'🛡️'}
body.reference-dashboard .dashboard-stat:nth-child(5):before{content:'👥'}
body.reference-dashboard .dashboard-stat>span{letter-spacing:.15px}
body.reference-dashboard .dashboard-stat>small{white-space:normal;line-height:1.25}
body.reference-dashboard .dashboard-stat strong{font-size:clamp(17px,1.7vw,24px)}
body.reference-dashboard .dashboard-group-stat{padding-bottom:9px}
body.reference-dashboard .dashboard-group-stat strong{font-size:clamp(14px,1.25vw,18px)}
body.reference-dashboard .dashboard-group-stat select{display:block;width:100%;min-width:0;height:27px;margin-top:5px;padding:2px 7px;border:1px solid #2777ad;border-radius:6px;background:#05162b;color:#f5f8ff;font-family:inherit;font-size:10px;font-weight:700}
body.reference-dashboard .dashboard-group-stat select[hidden]{display:none}
body.reference-dashboard .dashboard-group-open{display:block;margin-top:4px;padding:2px 0;border:0;background:none;color:#72c7ff;font-family:inherit;font-size:9px;font-weight:800;text-align:left;cursor:pointer}
body.reference-dashboard .dashboard-group-open:hover{text-decoration:underline}
body.reference-dashboard .home-game-card{cursor:pointer}
body.reference-dashboard .home-game-card:focus-visible{outline:3px solid #ffdf18;outline-offset:3px}
@media(max-width:760px){body.reference-dashboard .dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))}body.reference-dashboard .dashboard-stat strong{font-size:17px}body.reference-dashboard .dashboard-group-stat select{height:25px;font-size:9px}body.reference-dashboard .dashboard-group-open{font-size:8px}}
body.reference-dashboard .home-league-note{display:block;margin-top:6px;color:#a9bdd4;font-size:9px;line-height:1.3}
body.reference-dashboard #homeLeague .home-player-row{border-radius:7px;background:#123b60;box-shadow:inset 0 0 0 1px #2daaff70}
body.reference-dashboard #homeLeague .home-player-row .rank-badge{background:#ffdf18;color:#172033;font-weight:1000}
body.reference-dashboard .home-bonus-my-lines{display:grid;gap:6px;margin:7px 0 10px}
body.reference-dashboard .home-bonus-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:1px solid #225075;border-radius:8px;background:#06162b;color:#c7d8ee;font-size:9px}
body.reference-dashboard .home-bonus-balls{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
body.reference-dashboard .home-bonus-balls i{display:grid;place-items:center;width:27px;height:27px;border:1px solid #afc3db;border-radius:50%;background:radial-gradient(circle at 32% 25%,#fff,#dce7f5 66%,#9fb3ca);color:#14233a;font-size:10px;font-style:normal;font-weight:1000;box-shadow:0 2px 5px #0006}
body.reference-dashboard .home-bonus-balls i.hit{border-color:#ffe06b;background:radial-gradient(circle at 30% 25%,#fff7c7,#ffd529 65%,#bd8100);color:#3b2900;box-shadow:0 0 0 2px #ffd52748,0 0 12px #ffd52775}
body.reference-dashboard .home-bonus-empty{margin:7px 0;color:#a9bdd4;font-size:9px;line-height:1.35}
@media(max-width:560px){body.reference-dashboard .home-bonus-line{align-items:flex-start;flex-direction:column}.home-bonus-balls{justify-content:flex-start}}
body.reference-dashboard .dashboard-welcome{min-height:520px}
body.reference-dashboard button.dashboard-stat:nth-child(1),body.reference-dashboard button.home-bonus-stat{padding-left:50px}
body.reference-dashboard .dashboard-stat:nth-child(1):before{left:13px;top:18px;font-size:26px}
body.reference-dashboard .dashboard-stat:nth-child(3):before{left:12px;top:18px;font-size:28px}
body.reference-dashboard .dashboard-stat>.home-banner-league-preview{display:grid;gap:3px;margin-top:6px;color:#f4f7ff;font-size:10px;letter-spacing:0}
body.reference-dashboard .home-banner-player-row{display:grid;grid-template-columns:19px minmax(0,1fr) 27px;align-items:center;gap:4px;padding:3px 5px;border:1px solid #ffffff1c;border-radius:5px;background:#081a30d9;font-size:9px;line-height:1.1}
body.reference-dashboard .home-banner-player-row.current{border-color:#ffdf18;background:#54451375;box-shadow:inset 0 0 0 1px #ffdf1850}
body.reference-dashboard .home-banner-rank{color:#b9d7f1;font-weight:900}
body.reference-dashboard .home-banner-player-row.current .home-banner-rank,body.reference-dashboard .home-banner-player-row.current .home-banner-name,body.reference-dashboard .home-banner-player-row.current .home-banner-points{color:#ffe768}
body.reference-dashboard .home-banner-name{overflow:hidden;color:#f2f6ff;text-align:left;text-overflow:ellipsis;white-space:nowrap}
body.reference-dashboard .home-banner-points{text-align:right;color:#d7eaff;font-weight:900;font-variant-numeric:tabular-nums}
body.reference-dashboard .dashboard-stat>small.home-banner-preview-note{margin-top:5px;color:#a9bdd4;font-size:8px;letter-spacing:0;line-height:1.2}
body.reference-dashboard .dashboard-stat>.home-bonus-my-lines{display:grid;gap:4px;margin-top:5px;color:#f2f6ff;font-size:9px;letter-spacing:0}
body.reference-dashboard .home-bonus-line{align-items:center;gap:4px;padding:4px 5px;border-color:#225075;background:#06162bdc;font-size:8px;line-height:1.1}
body.reference-dashboard .home-bonus-line-label{color:#c7d8ee;white-space:nowrap}
body.reference-dashboard .home-bonus-balls{flex-wrap:nowrap;gap:3px}
body.reference-dashboard .home-bonus-balls i{width:20px;height:20px;font-size:8px}
body.reference-dashboard .home-bonus-empty{margin:3px 0;color:#a9bdd4;font-size:8px;line-height:1.2}
@media(max-width:760px){body.reference-dashboard .dashboard-welcome{min-height:590px}body.reference-dashboard .dashboard-stat:nth-child(1):before{left:9px;top:14px;font-size:22px}body.reference-dashboard .dashboard-stat:nth-child(3):before{left:8px;top:15px;font-size:23px}body.reference-dashboard .home-banner-player-row{grid-template-columns:17px minmax(0,1fr) 23px;gap:3px;padding:3px;font-size:8px}body.reference-dashboard .home-bonus-line{align-items:center;flex-direction:row;padding:3px;gap:3px}body.reference-dashboard .home-bonus-line-label{font-size:7px}body.reference-dashboard .home-bonus-balls{flex-wrap:wrap;justify-content:flex-end;gap:2px}body.reference-dashboard .home-bonus-balls i{width:17px;height:17px;font-size:7px}}
body.reference-dashboard .home-next-up{margin:14px 0 24px;padding:18px;border:1px solid #248bca;border-radius:16px;background:linear-gradient(135deg,#061b33ed,#061020f2);box-shadow:0 10px 28px #0004}
body.reference-dashboard .home-next-up .home-panel-head{margin-bottom:12px}
body.reference-dashboard .home-next-up h2{margin:2px 0 0;color:#f6f8fc;font-size:clamp(20px,2vw,27px)}
body.reference-dashboard .home-next-up-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.reference-dashboard .home-next-card{display:grid;grid-template-columns:38px minmax(0,1fr) 16px;align-items:center;gap:10px;min-height:78px;padding:12px;border:1px solid #2b5377;border-radius:11px;background:#07172bdd;color:#f5f8ff;text-align:left;cursor:pointer;transition:border-color .16s ease,transform .16s ease,background .16s ease}
body.reference-dashboard .home-next-card:hover{transform:translateY(-2px);border-color:#39aaff;background:#0b2340}
body.reference-dashboard .home-next-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#12395c;font-size:21px}
body.reference-dashboard .home-next-copy{display:grid;gap:5px;min-width:0}
body.reference-dashboard .home-next-copy strong{font-size:13px}
body.reference-dashboard .home-next-copy small{color:#b7c9df;font-size:11px;line-height:1.35}
body.reference-dashboard .home-next-arrow{color:#78c9ff;font-size:25px}
body.reference-dashboard .site-sync-status{margin-bottom:24px;padding:14px;border:1px solid #254965;border-radius:12px;background:#06172a}
body.reference-dashboard .site-sync-summary,.site-sync-counts{display:grid;gap:8px}
body.reference-dashboard .site-sync-summary{margin:10px 0}
body.reference-dashboard .site-sync-summary span,.site-sync-counts span{display:flex;justify-content:space-between;gap:12px;color:#c5d5e8;font-size:12px}
body.reference-dashboard .site-sync-summary strong{color:#f3f7ff;text-align:right}
body.reference-dashboard .site-sync-badge{display:inline-flex!important;justify-content:center!important;width:max-content;padding:4px 9px;border-radius:999px;font-weight:900}
body.reference-dashboard .site-sync-badge.ok{background:#174c37;color:#8ff0bb}
body.reference-dashboard .site-sync-badge.warning{background:#594313;color:#ffe28a}
body.reference-dashboard .site-sync-badge.error{background:#5a2027;color:#ffb5be}
body.reference-dashboard .site-sync-counts{padding-top:10px;border-top:1px solid #25415d}
body.reference-dashboard .site-sync-counts b{color:#f5da49}
body.reference-dashboard .site-sync-error{padding:9px;border-radius:7px;background:#49242b;color:#ffd1d6;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
@media(max-width:760px){body.reference-dashboard .home-next-up{padding:13px}body.reference-dashboard .home-next-up-grid{grid-template-columns:1fr}body.reference-dashboard .home-next-card{min-height:68px}body.reference-dashboard .site-sync-summary span,.site-sync-counts span{font-size:11px}}

/* Phone usability pass: comfortable tap targets and layouts that fit without sideways page scrolling. */
@media (max-width: 600px) {
  body.reference-dashboard .site-header {
    padding: 7px 12px 0;
    gap: 6px;
  }
  body.reference-dashboard .site-header .main-nav {
    order: 3;
    flex: 0 0 100%;
    height: 44px;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  body.reference-dashboard .site-header .main-nav::-webkit-scrollbar { display: none; }
  body.reference-dashboard .site-header .main-nav > .nav-link,
  body.reference-dashboard .site-header .nav-games > .nav-link {
    flex: none;
    min-height: 44px;
    height: 44px;
    padding: 0 10px;
    font-size: 12px;
  }
  body.reference-dashboard .site-header .nav-games { height: 44px; flex: none; }
  body.reference-dashboard .header-actions button { min-height: 40px; height: 40px; font-size: 11px; }
  body.reference-dashboard .active-group-picker select { min-height: 40px; max-width: 132px; font-size: 12px; }

  body.reference-dashboard .page-wrap { padding: 10px 12px 28px; }
  body.reference-dashboard .dashboard-welcome {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 17px 14px 14px;
    gap: 14px;
    background-position: 57% center;
  }
  body.reference-dashboard .dashboard-welcome h1 { font-size: clamp(27px, 8vw, 36px); line-height: 1.05; }
  body.reference-dashboard .dashboard-welcome-copy > p { max-width: 35ch; font-size: 13px; line-height: 1.45; }
  body.reference-dashboard .dashboard-welcome-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
  body.reference-dashboard .dashboard-welcome-actions .primary-button,
  body.reference-dashboard .dashboard-secondary { min-width: 0; min-height: 44px; height: auto; padding: 8px; font-size: 11px; }
  body.reference-dashboard .dashboard-stats {
    position: relative;
    inset: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }
  body.reference-dashboard .dashboard-stat { min-width: 0; min-height: 76px; padding: 10px 9px 9px 43px; }
  body.reference-dashboard .dashboard-stat > span { font-size: 9px; }
  body.reference-dashboard .dashboard-stat strong { font-size: 18px; }
  body.reference-dashboard .dashboard-stat small { font-size: 10px; line-height: 1.3; }
  body.reference-dashboard .dashboard-stat:nth-child(5) { grid-column: 1 / -1; }
  body.reference-dashboard .home-banner-player-row { grid-template-columns: 20px minmax(0,1fr) 32px; gap: 5px; padding: 5px 6px; font-size: 10px; }
  body.reference-dashboard .home-bonus-line { padding: 5px 6px; gap: 5px; }
  body.reference-dashboard .home-bonus-line-label { font-size: 9px; }
  body.reference-dashboard .home-bonus-balls { gap: 4px; }
  body.reference-dashboard .home-bonus-balls i { width: 22px; height: 22px; font-size: 9px; }

  body.reference-dashboard .home-games-section { margin-top: 22px; }
  body.reference-dashboard .home-section-heading h2 { font-size: 23px; }
  body.reference-dashboard .home-section-note { max-width: 130px; font-size: 10px; }
  body.reference-dashboard .home-game-grid { grid-template-columns: minmax(0, 420px); justify-content: center; gap: 14px; }
  body.reference-dashboard .home-game-card { width: 100%; max-width: 420px; height: auto; aspect-ratio: 389 / 565; border-radius: 17px; }

  body.reference-dashboard .game-tabs { height: 50px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
  body.reference-dashboard .game-tab { flex: 0 0 auto; min-width: 118px; min-height: 44px; font-size: 12px; }
  body.reference-dashboard .filters-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  body.reference-dashboard .filters-row label { display: grid; gap: 5px; font-size: 11px; }
  body.reference-dashboard .filters-row select { width: 100%; height: 44px; min-height: 44px; font-size: 16px; }
  body.reference-dashboard .countdown { grid-column: 1 / -1; min-height: 42px; height: auto; }
  body.reference-dashboard .section-title-row h2 { font-size: 20px; }

  body.reference-dashboard #predictionsPage .prediction-layout,
  body.reference-dashboard #bonusPage .bonus-layout { grid-template-columns: minmax(0, 1fr); }
  body.reference-dashboard #predictionsPage .fixtures-panel { overflow: hidden; }
  body.reference-dashboard #predictionsPage .fixture-head { display: none; }
  body.reference-dashboard #predictionsPage .fixture-row {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr);
    grid-template-areas: "date date kickoff" "home scores away" "lock lock lock";
    gap: 8px 5px;
    min-height: 0;
    padding: 12px 10px;
    font-size: 12px;
  }
  body.reference-dashboard #predictionsPage .fixture-date { grid-area: date; font-size: 11px; }
  body.reference-dashboard #predictionsPage .fixture-row > .club:not(.away) { grid-area: home; }
  body.reference-dashboard #predictionsPage .fixture-row > .prediction-inputs { grid-area: scores; }
  body.reference-dashboard #predictionsPage .fixture-row > .club.away { grid-area: away; }
  body.reference-dashboard #predictionsPage .fixture-row > .club { gap: 4px; font-size: 11px; }
  body.reference-dashboard #predictionsPage .fixture-row > .club .crest,
  body.reference-dashboard #predictionsPage .fixture-row > .club .club-badge { width: 19px; height: 20px; }
  body.reference-dashboard #predictionsPage .fixture-row > .kickoff { grid-area: kickoff; text-align: right; font-size: 11px; }
  body.reference-dashboard #predictionsPage .fixture-row > .lock-chip { grid-area: lock; min-height: 32px; font-size: 10px; white-space: normal; }
  body.reference-dashboard .prediction-inputs { gap: 3px; }
  body.reference-dashboard .prediction-inputs input { width: 42px; height: 42px; font-size: 16px; }
  body.reference-dashboard #predictionsPage .fixture-foot { min-width: 0; flex-direction: column; font-size: 11px; line-height: 1.45; }
  body.reference-dashboard #predictionsPage .lock-legend { white-space: normal; }
  body.reference-dashboard #predictionsPage .side-panels { grid-template-columns: minmax(0, 1fr); }

  body.reference-dashboard #resultsList { overflow: hidden; }
  body.reference-dashboard #resultsList .result-row {
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    grid-template-areas: "date date status" "home score away";
    gap: 8px 5px;
    padding: 12px 10px;
    font-size: 12px;
  }
  body.reference-dashboard #resultsList .result-row > .fixture-date { grid-area: date; font-size: 11px; }
  body.reference-dashboard #resultsList .result-row > .club:nth-child(2) { grid-area: home; }
  body.reference-dashboard #resultsList .result-row > .result-score-inputs,
  body.reference-dashboard #resultsList .result-row > .result-score { grid-area: score; }
  body.reference-dashboard #resultsList .result-row > .club:nth-child(4) { grid-area: away; }
  body.reference-dashboard #resultsList .result-row > .demo-pill { grid-area: status; justify-self: end; font-size: 9px; }
  body.reference-dashboard #resultsList .result-row > .club { gap: 4px; font-size: 11px; }
  body.reference-dashboard #resultsList .result-score-inputs input { width: 42px; height: 42px; font-size: 16px; }
  body.reference-dashboard #resultsList .result-score { font-size: 15px; }
  body.reference-dashboard #saveResults { min-height: 46px; }

  body.reference-dashboard #groupsPage .group-view-tabs { overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  body.reference-dashboard #groupsPage .group-view-tab { flex: 0 0 auto; min-height: 44px; padding: 0 11px; font-size: 12px; }
  body.reference-dashboard .group-prediction-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  body.reference-dashboard .group-prediction-table caption::after { content: 'Swipe sideways to view the other players'; display: block; margin-top: 8px; color: #b7c9df; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
  body.reference-dashboard .number-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
  body.reference-dashboard .number-grid button { min-height: 44px; font-size: 14px; }
  body.reference-dashboard #groupsPage input,
  body.reference-dashboard #groupsPage select,
  body.reference-dashboard #bonusPage input,
  body.reference-dashboard #bonusPage select,
  body.reference-dashboard #accountPage input,
  body.reference-dashboard #accountPage select,
  body.reference-dashboard #accountPage textarea { min-height: 44px; font-size: 16px; }
  body.reference-dashboard .site-footer { gap: 8px; padding: 14px 4px; font-size: 10px; }
}

/* Bonus Ball uses lottery imagery in its page header; the football and LPS headers keep the stadium treatment. */
body:not(.reference-dashboard) #hero.hero-bonus {
  background:
    linear-gradient(90deg, #020817f5 0%, #07162ade 34%, #07162a66 72%, #07162a35 100%),
    linear-gradient(0deg, #020817ba 0%, transparent 62%),
    url("bonus-ball-hero-ai.jpg") center 48% / cover no-repeat;
}
body:not(.reference-dashboard) #hero.hero-bonus .hero-art,
body:not(.reference-dashboard) #hero.hero-bonus .hero-tag { display: none; }

/* Keep the fixture count card compact and give it a useful next-match preview. */
body.reference-dashboard .dashboard-stats { align-items: start; }
body.reference-dashboard .home-fixture-preview {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  padding: 8px 9px;
  border: 1px solid #2478a8;
  border-radius: 9px;
  background: linear-gradient(115deg, #0a2c4b, #07172ddd);
  box-shadow: inset 0 1px #ffffff14, 0 3px 10px #0004;
}
body.reference-dashboard .home-fixture-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body.reference-dashboard .home-fixture-preview-head b {
  color: #82d4ff;
  font-size: 8px;
  letter-spacing: .09em;
}
body.reference-dashboard .home-fixture-preview-head small {
  margin: 0;
  color: #c9d9e9;
  font-size: 9px;
  letter-spacing: 0;
  text-align: right;
}
body.reference-dashboard .home-fixture-preview-match {
  display: grid;
  grid-template-columns: minmax(0,1fr) 22px minmax(0,1fr);
  align-items: center;
  gap: 5px;
}
body.reference-dashboard .home-fixture-preview-team {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
body.reference-dashboard .home-fixture-preview-team:last-child { justify-content: flex-end; text-align: right; }
body.reference-dashboard .home-fixture-preview-team .home-club-badge { width: 19px; height: 20px; object-fit: contain; flex: none; }
body.reference-dashboard .home-fixture-preview-team .club-name { color: #f3f7ff; font-size: 10px; font-weight: 800; }
body.reference-dashboard .home-fixture-preview-vs { color: #f5d639; font-size: 8px; text-align: center; }
body.reference-dashboard .home-fixture-preview-empty { color: #d1deec; font-size: 10px; line-height: 1.35; }
@media(max-width:600px) {
  body.reference-dashboard .home-fixture-preview { gap: 6px; padding: 8px; }
  body.reference-dashboard .home-fixture-preview-team .club-name { font-size: 9px; }
}

/* Home summary cards inspired by the user's neon scorecard reference. */
body.reference-dashboard .dashboard-welcome { min-height: 590px; }
body.reference-dashboard .dashboard-stats { align-items: stretch; gap: 12px; }
body.reference-dashboard .dashboard-stat {
  min-width: 0;
  min-height: 300px;
  padding: 23px 15px 15px 65px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 27px;
  background: linear-gradient(155deg, #030a17f5, #020610f5 62%, #050813f5) padding-box,
    linear-gradient(145deg, #ff1649, #a51b65 48%, #ff1649) border-box;
  box-shadow: 0 0 7px #ff174b86, 0 12px 24px #0009, inset 0 1px #ffffff1c;
  backdrop-filter: blur(9px);
}
body.reference-dashboard .dashboard-stat:nth-child(even) {
  background: linear-gradient(155deg, #030a17f5, #020610f5 62%, #050813f5) padding-box,
    linear-gradient(145deg, #0a9dff, #1760c8 48%, #09b9ff) border-box;
  box-shadow: 0 0 8px #058aff8c, 0 12px 24px #0009, inset 0 1px #ffffff1c;
}
body.reference-dashboard .dashboard-stat:before {
  top: 26px;
  left: 16px;
  font-size: 40px;
  filter: drop-shadow(0 0 9px #ffffff64);
}
body.reference-dashboard .dashboard-stat:nth-child(1):before { content: '🏆'; font-size: 42px; }
body.reference-dashboard .dashboard-stat:nth-child(2):before { content: '📅'; font-size: 40px; }
body.reference-dashboard .dashboard-stat:nth-child(3):before { content: '🎱'; font-size: 39px; }
body.reference-dashboard .dashboard-stat:nth-child(4):before { content: '🏅'; font-size: 40px; }
body.reference-dashboard .dashboard-stat:nth-child(5):before { content: '👥'; font-size: 40px; }
body.reference-dashboard .dashboard-stat > span:first-child {
  display: block;
  min-height: 38px;
  color: #f5f8ff;
  font-size: clamp(10px, .95vw, 14px);
  font-style: italic;
  font-weight: 1000;
  letter-spacing: .25px;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 8px #67baff4c;
}
body.reference-dashboard .dashboard-stat strong {
  display: block;
  margin: 6px 0 0;
  overflow: visible;
  color: #ffd817;
  font-size: clamp(32px, 3vw, 48px);
  font-style: italic;
  font-weight: 1000;
  line-height: 1.05;
  text-align: center;
  text-overflow: clip;
  text-shadow: 0 0 15px #ffd81758;
  white-space: normal;
}
body.reference-dashboard .dashboard-stat > small {
  display: block;
  margin-top: 8px;
  color: #f4f7ff;
  font-size: clamp(10px, .95vw, 14px);
  line-height: 1.35;
  text-align: center;
}
body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines,
body.reference-dashboard .dashboard-stat > .home-fixture-preview {
  margin-top: 17px;
}
body.reference-dashboard .dashboard-stat .home-banner-player-row {
  min-height: 34px;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid #2589b2;
  border-radius: 9px;
  background: linear-gradient(100deg, #071a2beF, #03101feF);
  font-size: 10px;
}
body.reference-dashboard .dashboard-stat .home-banner-player-row.current {
  border-color: #ffd81a;
  background: linear-gradient(100deg, #4e3f0b99, #211d0d99);
  box-shadow: 0 0 9px #ffd81745, inset 0 0 0 1px #ffd81752;
}
body.reference-dashboard .dashboard-stat .home-banner-preview-note { color: #c2d1e2; font-size: 10px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview {
  display: grid;
  gap: 11px;
  min-height: 86px;
  padding: 11px 9px;
  border: 1px solid #168ddc;
  border-radius: 13px;
  background: linear-gradient(125deg, #06182deF, #020a17f5);
  box-shadow: inset 0 0 14px #0679ce25;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-head { gap: 4px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-head b { color: #55c6ff; font-size: 9px; letter-spacing: .9px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-head small { font-size: 9px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-match { grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr); gap: 4px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team { flex-direction: column; gap: 5px; text-align: center; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team:last-child { text-align: center; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 30px; height: 31px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name { font-size: 10px; line-height: 1.15; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-vs { align-self: center; font-size: 9px; }
body.reference-dashboard .dashboard-stat .home-bonus-my-lines { gap: 8px; }
body.reference-dashboard .dashboard-stat .home-bonus-line { min-height: 39px; padding: 5px 7px; border-color: #168ddc; border-radius: 10px; }
body.reference-dashboard .dashboard-stat .home-bonus-line-label { font-size: 9px; }
body.reference-dashboard .dashboard-stat .home-bonus-balls { gap: 5px; }
body.reference-dashboard .dashboard-stat .home-bonus-balls i { width: 26px; height: 26px; font-size: 9px; }
body.reference-dashboard .dashboard-group-stat { padding-bottom: 17px; }
body.reference-dashboard .dashboard-group-stat strong { font-size: clamp(20px, 2vw, 32px); }
body.reference-dashboard .dashboard-group-stat > small { margin-top: 9px; }
body.reference-dashboard .dashboard-group-stat select {
  height: 42px;
  margin-top: 17px;
  padding: 6px 11px;
  border: 1px solid #1199e8;
  border-radius: 12px;
  background: linear-gradient(110deg, #06182beF, #03101feF);
  font-size: 12px;
}
body.reference-dashboard .dashboard-group-open { margin: 12px auto 0; font-size: 12px; text-align: center; }
body.reference-dashboard .dashboard-stat:hover { transform: translateY(-3px); filter: brightness(1.16); }
@media(max-width:1100px) {
  body.reference-dashboard .dashboard-welcome { min-height: 650px; }
  body.reference-dashboard .dashboard-stats { grid-template-columns: repeat(3, minmax(0,1fr)); }
  body.reference-dashboard .dashboard-stat { min-height: 265px; }
  body.reference-dashboard .dashboard-stat:nth-child(4),
  body.reference-dashboard .dashboard-stat:nth-child(5) { min-height: 245px; }
}
@media(max-width:760px) {
  body.reference-dashboard .dashboard-welcome { min-height: 0; padding: 17px 14px; }
  body.reference-dashboard .dashboard-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  body.reference-dashboard .dashboard-stat { min-height: 235px; padding: 17px 9px 12px 45px; border-radius: 19px; }
  body.reference-dashboard .dashboard-stat:before { top: 19px; left: 8px; font-size: 29px; }
  body.reference-dashboard .dashboard-stat:nth-child(n):before { font-size: 29px; }
  body.reference-dashboard .dashboard-stat > span:first-child { min-height: 32px; font-size: 9px; }
  body.reference-dashboard .dashboard-stat strong { margin-top: 5px; font-size: 29px; }
  body.reference-dashboard .dashboard-stat > small { margin-top: 6px; font-size: 9px; }
  body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
  body.reference-dashboard .dashboard-stat > .home-bonus-my-lines,
  body.reference-dashboard .dashboard-stat > .home-fixture-preview { margin-top: 12px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview { gap: 8px; min-height: 82px; padding: 8px 6px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 23px; height: 24px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name { font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-banner-player-row { min-height: 28px; grid-template-columns: 15px minmax(0,1fr) 23px; gap: 3px; padding: 4px; font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-banner-preview-note { font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-bonus-line { align-items: center; flex-direction: row; gap: 3px; padding: 4px; }
  body.reference-dashboard .dashboard-stat .home-bonus-line-label { font-size: 7px; }
  body.reference-dashboard .dashboard-stat .home-bonus-balls { gap: 2px; }
  body.reference-dashboard .dashboard-stat .home-bonus-balls i { width: 19px; height: 19px; font-size: 7px; }
  body.reference-dashboard .dashboard-group-stat { grid-column: 1 / -1; min-height: 176px; padding: 17px 14px 13px 55px; }
  body.reference-dashboard .dashboard-group-stat strong { font-size: 24px; }
  body.reference-dashboard .dashboard-group-stat select { height: 36px; margin-top: 10px; font-size: 10px; }
  body.reference-dashboard .dashboard-group-open { margin-top: 8px; font-size: 10px; }
}

/* Tighter, centred version of the exact five-card reference layout. */
body.reference-dashboard .dashboard-welcome {
  min-height: 520px;
}
body.reference-dashboard .dashboard-stats {
  bottom: 12px;
  gap: 9px;
  align-items: stretch;
  padding: 12px 9px 24px;
  border-radius: 22px;
  background: linear-gradient(180deg, #020a1370 0%, #020a1326 58%, #020a1360 100%),
    url("dashboard-stadium-bg.jpg") center 68% / cover no-repeat;
  box-shadow: inset 0 0 0 1px #ffffff20;
}
body.reference-dashboard .dashboard-stat {
  min-height: 205px;
  padding: 50px 10px 10px;
  border-radius: 20px;
}
body.reference-dashboard .dashboard-stat:before {
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 33px;
}
body.reference-dashboard .dashboard-stat:nth-child(n):before { font-size: 33px; }
body.reference-dashboard .dashboard-stat > span:first-child {
  min-height: 24px;
  font-size: clamp(10px, .9vw, 13px);
  line-height: 1.13;
}
body.reference-dashboard .dashboard-stat strong {
  margin: 1px auto 0;
  font-size: clamp(27px, 2.2vw, 34px);
  line-height: 1.05;
}
body.reference-dashboard .dashboard-stat > small {
  margin-top: 5px;
  font-size: clamp(10px, .85vw, 12px);
  line-height: 1.3;
}
body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines,
body.reference-dashboard .dashboard-stat > .home-fixture-preview { margin-top: 6px; }
body.reference-dashboard .dashboard-stat .home-banner-player-row {
  min-height: 21px;
  padding: 2px 5px;
  font-size: 9px;
}
body.reference-dashboard .dashboard-stat .home-banner-preview-note { margin-top: 3px; font-size: 8px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview {
  min-height: 64px;
  gap: 5px;
  padding: 6px;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 25px; height: 26px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name { font-size: 9px; }
body.reference-dashboard .dashboard-stat .home-bonus-my-lines { gap: 5px; }
body.reference-dashboard .dashboard-stat .home-bonus-line { min-height: 32px; padding: 3px 5px; }
body.reference-dashboard .dashboard-stat .home-bonus-line-label { font-size: 8px; }
body.reference-dashboard .dashboard-stat .home-bonus-balls { gap: 3px; }
body.reference-dashboard .dashboard-stat .home-bonus-balls i { width: 22px; height: 22px; font-size: 8px; }
body.reference-dashboard .dashboard-stat strong.home-lps-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: inherit;
}
body.reference-dashboard .home-lps-pick .home-lps-club-badge {
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px #67baff70);
}
body.reference-dashboard .home-lps-pick .club-name { color: #ffd817; font-size: inherit; }
body.reference-dashboard .dashboard-group-stat { text-align: center; }
body.reference-dashboard .dashboard-group-stat strong { font-size: clamp(19px, 1.7vw, 27px); }
body.reference-dashboard .dashboard-group-stat select { height: 36px; margin: 10px auto 0; text-align: left; }
body.reference-dashboard .dashboard-group-open { margin: 8px auto 0; font-size: 11px; text-align: center; }
@media(max-width:1100px) {
  body.reference-dashboard .dashboard-welcome { min-height: 570px; }
  body.reference-dashboard .dashboard-stat { min-height: 210px; }
}
@media(max-width:760px) {
  body.reference-dashboard .dashboard-welcome { min-height: 0; padding: 17px 14px; }
  body.reference-dashboard .dashboard-stats { position: relative; inset: auto; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 10px 7px 17px; }
  body.reference-dashboard .dashboard-stat { min-height: 205px; padding: 54px 8px 10px; border-radius: 16px; }
  body.reference-dashboard .dashboard-stat:before { top: 9px; left: 50%; transform: translateX(-50%); }
  body.reference-dashboard .dashboard-stat > span:first-child { min-height: 27px; font-size: 9px; }
  body.reference-dashboard .dashboard-stat strong { font-size: 27px; }
  body.reference-dashboard .dashboard-stat > small { font-size: 9px; }
  body.reference-dashboard .dashboard-stat .home-banner-player-row { min-height: 26px; grid-template-columns: 15px minmax(0,1fr) 23px; padding: 3px 4px; font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-banner-preview-note { font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview { min-height: 68px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 21px; height: 22px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name { font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-bonus-line { flex-direction: row; align-items: center; }
  body.reference-dashboard .dashboard-stat .home-bonus-line-label { font-size: 7px; }
  body.reference-dashboard .dashboard-stat .home-bonus-balls i { width: 18px; height: 18px; font-size: 7px; }
  body.reference-dashboard .dashboard-group-stat { grid-column: 1/-1; min-height: 150px; }
  body.reference-dashboard .dashboard-group-stat select { width: min(100%, 330px); }
}

/* Tile-only dashboard rebuild based on the five-card reference. */
body.reference-dashboard .dashboard-welcome {
  min-height: 0;
  padding: 19px 20px 22px;
}
body.reference-dashboard .dashboard-summary-strip {
  position: relative;
  margin: 12px 0 20px;
  padding: 15px 12px 38px;
  overflow: hidden;
  border: 1px solid #183e5a;
  border-radius: 19px;
  background: linear-gradient(180deg,#020a1388 0%,#020a1320 52%,#020a1355 100%),url("dashboard-stadium-bg.jpg") center 68% / cover no-repeat;
  box-shadow: 0 12px 28px #0006, inset 0 0 0 1px #ffffff12;
}
body.reference-dashboard .dashboard-stats {
  position: relative;
  inset: auto;
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  align-items: stretch;
  gap: 11px;
  width: 100%;
  padding: 0;
  background: none;
  box-shadow: none;
}
body.reference-dashboard .dashboard-stat {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 276px;
  height: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  padding: 13px 11px 12px;
  overflow: visible;
  border: 1px solid transparent;
  border-radius: 20px;
  background: linear-gradient(160deg,#020817f7,#020610f5 64%,#060914f7) padding-box,
    linear-gradient(145deg,#ff174b,#842b7b 54%,#ff174b) border-box;
  box-shadow: 0 0 8px #ff174b7d,0 8px 20px #0008,inset 0 1px #ffffff1c;
  color: #f8faff;
  text-align: center;
}
body.reference-dashboard .dashboard-stat:nth-child(even) {
  background: linear-gradient(160deg,#020817f7,#020610f5 64%,#060914f7) padding-box,
    linear-gradient(145deg,#078dff,#2463ce 54%,#08bcff) border-box;
  box-shadow: 0 0 8px #078dff80,0 8px 20px #0008,inset 0 1px #ffffff1c;
}
body.reference-dashboard .dashboard-stat:before { display: none !important; content: none !important; }
body.reference-dashboard .dashboard-stat-heading {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 60px;
  color: #f8faff;
  text-align: center;
}
body.reference-dashboard .dashboard-stat-heading img {
  display: block;
  width: 53px;
  height: 53px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px #ffffff45);
}
body.reference-dashboard .dashboard-stat-heading > span {
  display: flex;
  min-width: 0;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  color: #f7f9ff;
  font-size: clamp(10px,.93vw,13px);
  font-style: italic;
  font-weight: 1000;
  letter-spacing: .15px;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}
body.reference-dashboard .dashboard-stat > strong {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 9px auto 0;
  overflow: visible;
  color: #ffd91a;
  font-size: clamp(32px,2.7vw,43px);
  font-style: italic;
  font-weight: 1000;
  line-height: 1.04;
  text-align: center;
  text-overflow: clip;
  text-shadow: 0 0 13px #ffd91a59;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.reference-dashboard .dashboard-stat > small {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 6px auto 0;
  color: #f3f6ff;
  font-size: clamp(10px,.86vw,12px);
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}
body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
body.reference-dashboard .dashboard-stat > .home-fixture-preview,
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines {
  width: 100%;
  margin: 13px auto 0;
}
body.reference-dashboard .dashboard-stat .home-banner-player-row {
  min-height: 29px;
  grid-template-columns: 20px minmax(0,1fr) 27px;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid #25536f;
  border-radius: 8px;
  background: #051223ee;
  font-size: 9px;
  text-align: left;
}
body.reference-dashboard .dashboard-stat .home-banner-player-row.current {
  border-color: #ffd91a;
  background: linear-gradient(100deg,#483b0be8,#15150cf2);
  box-shadow: 0 0 8px #ffd91a5c,inset 0 0 0 1px #ffd91a4d;
}
body.reference-dashboard .dashboard-stat .home-banner-preview-note { margin-top: 7px; color: #e3eaf4; font-size: 9px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview {
  display: grid;
  min-height: 88px;
  gap: 7px;
  padding: 7px 6px;
  border: 1px solid #118fdf;
  border-radius: 11px;
  background: linear-gradient(120deg,#06192bee,#030b17f5);
  box-shadow: inset 0 0 12px #168eff24;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-head { gap: 4px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-head b { color: #60c9ff; font-size: 8px; letter-spacing: .8px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-head small { margin: 0; font-size: 8px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-match { grid-template-columns: minmax(0,1fr) 18px minmax(0,1fr); gap: 3px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team { flex-direction: column; gap: 4px; text-align: center; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team:last-child { text-align: center; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 24px; height: 25px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name { font-size: 8px; line-height: 1.15; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-vs { align-self: center; color: #ffd91a; font-size: 8px; }
body.reference-dashboard .dashboard-stat .home-bonus-my-lines { gap: 6px; }
body.reference-dashboard .dashboard-stat .home-bonus-line { min-height: 34px; flex-direction: row; align-items: center; gap: 4px; padding: 4px 5px; border-color: #128ede; border-radius: 9px; }
body.reference-dashboard .dashboard-stat .home-bonus-line-label { font-size: 8px; text-align: left; }
body.reference-dashboard .dashboard-stat .home-bonus-balls { gap: 3px; }
body.reference-dashboard .dashboard-stat .home-bonus-balls i { width: 21px; height: 21px; font-size: 8px; }
body.reference-dashboard .dashboard-stat strong.home-lps-pick { display: flex; align-items: center; justify-content: center; gap: 8px; }
body.reference-dashboard .dashboard-stat .home-lps-club-badge { width: 38px; height: 38px; flex: 0 0 auto; object-fit: contain; }
body.reference-dashboard .dashboard-stat .home-lps-pick .club-name { color: #ffd91a; }
body.reference-dashboard .dashboard-group-stat { text-align: center; }
body.reference-dashboard .dashboard-group-stat > strong { font-size: clamp(20px,1.8vw,30px); }
body.reference-dashboard .dashboard-group-stat > small { max-width: 26ch; align-self: center; }
body.reference-dashboard .dashboard-group-stat select {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 39px;
  margin: 15px auto 0;
  padding: 5px 9px;
  border: 1px solid #078dff;
  border-radius: 10px;
  background: #041528;
  color: #f8faff;
  text-align: left;
}
body.reference-dashboard .dashboard-group-stat select[hidden] { display: none; }
body.reference-dashboard .dashboard-group-open { align-self: center; margin: 10px auto 0; font-size: 11px; text-align: center; }
body.reference-dashboard .dashboard-stat:hover { transform: translateY(-2px); filter: brightness(1.12); }
@media(max-width:1100px) {
  body.reference-dashboard .dashboard-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
  body.reference-dashboard .dashboard-stat { min-height: 265px; }
  body.reference-dashboard .dashboard-group-stat { grid-column: auto; }
}
@media(max-width:760px) {
  body.reference-dashboard .dashboard-welcome { padding: 16px 15px 18px; }
  body.reference-dashboard .dashboard-summary-strip { padding: 10px 8px 25px; }
  body.reference-dashboard .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body.reference-dashboard .dashboard-stat { min-height: 245px; padding: 10px 8px; border-radius: 16px; }
  body.reference-dashboard .dashboard-stat-heading { grid-template-columns: 43px minmax(0,1fr); gap: 5px; min-height: 50px; }
  body.reference-dashboard .dashboard-stat-heading img { width: 42px; height: 42px; }
  body.reference-dashboard .dashboard-stat-heading > span { min-height: 40px; font-size: 9px; }
  body.reference-dashboard .dashboard-stat > strong { margin-top: 6px; font-size: 29px; }
  body.reference-dashboard .dashboard-stat > small { margin-top: 5px; font-size: 9px; }
  body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
  body.reference-dashboard .dashboard-stat > .home-fixture-preview,
  body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { margin-top: 9px; }
  body.reference-dashboard .dashboard-stat .home-banner-player-row { min-height: 25px; grid-template-columns: 16px minmax(0,1fr) 22px; gap: 3px; padding: 3px 4px; font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-banner-preview-note { font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview { min-height: 80px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 21px; height: 22px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name { font-size: 7px; }
  body.reference-dashboard .dashboard-stat .home-bonus-line { min-height: 29px; gap: 2px; padding: 3px; }
  body.reference-dashboard .dashboard-stat .home-bonus-line-label { font-size: 7px; }
  body.reference-dashboard .dashboard-stat .home-bonus-balls { gap: 2px; }
  body.reference-dashboard .dashboard-stat .home-bonus-balls i { width: 18px; height: 18px; font-size: 7px; }
  body.reference-dashboard .dashboard-group-stat { grid-column: 1/-1; min-height: 170px; }
  body.reference-dashboard .dashboard-group-stat select { max-width: 360px; height: 36px; margin-top: 9px; }
  body.reference-dashboard .dashboard-group-open { margin-top: 7px; }
}

/* Final alignment pass: keep each tile's icon/title pair centred as one unit. */
body.reference-dashboard .dashboard-summary-strip { padding: 16px 14px 34px; }
body.reference-dashboard .dashboard-stats { gap: 12px; }
body.reference-dashboard .dashboard-stat {
  align-items: center;
  min-height: clamp(300px, 22vw, 440px);
  padding: 20px 15px 16px;
  overflow: hidden;
  text-align: center;
}
body.reference-dashboard .dashboard-stat > * { max-width: 100%; }
body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 66px;
  margin: 0 auto;
}
body.reference-dashboard .dashboard-stat-heading img {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
}
body.reference-dashboard .dashboard-stat-heading > span {
  flex: 0 1 auto;
  width: auto;
  max-width: 17ch;
  min-height: 54px;
  font-size: clamp(13px, 1.15vw, 19px);
  line-height: 1.12;
  overflow-wrap: normal;
}
body.reference-dashboard .dashboard-stat > strong {
  margin: 8px auto 0;
  font-size: clamp(32px, 2.65vw, 46px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
body.reference-dashboard .dashboard-stat > small {
  margin: 7px auto 0;
  font-size: clamp(11px, .95vw, 15px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
body.reference-dashboard .dashboard-stat > .home-fixture-preview,
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { margin: 14px auto 0; }
body.reference-dashboard .dashboard-stat .home-fixture-preview { width: 100%; }
body.reference-dashboard .dashboard-stat .home-bonus-line { flex-wrap: wrap; justify-content: center; }
body.reference-dashboard .dashboard-stat .home-bonus-line-label { text-align: center; }
body.reference-dashboard .dashboard-stat strong.home-lps-pick { width: 100%; justify-content: center; }
body.reference-dashboard .dashboard-group-stat { align-items: center; }
body.reference-dashboard .dashboard-group-stat > small { max-width: 28ch; }
body.reference-dashboard .dashboard-group-stat select { max-width: 100%; }
@media(max-width:1100px) {
  body.reference-dashboard .dashboard-stat { min-height: 310px; }
}
@media(max-width:760px) {
  body.reference-dashboard .dashboard-summary-strip { padding: 10px 8px 22px; }
  body.reference-dashboard .dashboard-stats { gap: 9px; }
  body.reference-dashboard .dashboard-stat { min-height: 260px; padding: 13px 9px 12px; }
  body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading { gap: 6px; min-height: 53px; }
  body.reference-dashboard .dashboard-stat-heading img { flex-basis: 41px; width: 41px; height: 41px; }
  body.reference-dashboard .dashboard-stat-heading > span { max-width: 13ch; min-height: 42px; font-size: 10px; }
  body.reference-dashboard .dashboard-stat > strong { margin-top: 6px; font-size: 29px; }
  body.reference-dashboard .dashboard-stat > small { margin-top: 5px; font-size: 10px; }
  body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
  body.reference-dashboard .dashboard-stat > .home-fixture-preview,
  body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { margin-top: 9px; }
  body.reference-dashboard .dashboard-group-stat { grid-column: 1 / -1; min-height: 185px; }
}
@media(max-width:390px) {
  body.reference-dashboard .dashboard-stats { grid-template-columns: 1fr; }
  body.reference-dashboard .dashboard-stat,
  body.reference-dashboard .dashboard-group-stat { min-height: 245px; }
}

/* Approved dashboard tile concept: vertical icon, title, neon divider, then live data. */
body.reference-dashboard .dashboard-summary-strip {
  padding: 18px 14px 38px;
  background:
    linear-gradient(180deg, #020916bd 0%, #02091658 55%, #02091666 100%),
    url("dashboard-stadium-bg.jpg") center 70% / cover no-repeat;
}
body.reference-dashboard .dashboard-stats { gap: 14px; }
body.reference-dashboard .dashboard-stat {
  min-height: clamp(350px, 29vw, 520px);
  padding: 18px 14px 16px;
  border: 1px solid transparent;
  border-radius: 22px;
  background:
    linear-gradient(155deg, #030b1cf7 0%, #020817f7 65%, #030817f8 100%) padding-box,
    linear-gradient(145deg, #078fff 0%, #ff173d 48%, #087dff 100%) border-box;
  box-shadow: 0 0 10px #078fff66, 0 0 17px #ff173d4d, 0 12px 25px #0009, inset 0 1px #ffffff20;
  text-align: center;
}
body.reference-dashboard .dashboard-stat:nth-child(even) {
  background:
    linear-gradient(155deg, #030b1cf7 0%, #020817f7 65%, #030817f8 100%) padding-box,
    linear-gradient(145deg, #ff173d 0%, #087dff 52%, #ff173d 100%) border-box;
  box-shadow: 0 0 10px #ff173d66, 0 0 17px #078fff4d, 0 12px 25px #0009, inset 0 1px #ffffff20;
}
body.reference-dashboard .dashboard-stat:hover { filter: brightness(1.12); }
body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading {
  display: flex;
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
body.reference-dashboard .dashboard-stat-heading img {
  display: block;
  flex: 0 0 auto;
  width: clamp(64px, 5vw, 88px);
  height: clamp(58px, 4.5vw, 78px);
  object-fit: contain;
  filter: drop-shadow(0 0 8px #68bcff54);
}
body.reference-dashboard .dashboard-stat-heading > span {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 48px;
  color: #f7f9ff;
  font-size: clamp(15px, 1.35vw, 24px);
  font-style: normal;
  font-weight: 900;
  letter-spacing: .3px;
  line-height: 1.12;
  text-align: center;
  text-wrap: balance;
}
body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading::after {
  content: "";
  display: block;
  width: min(88%, 260px);
  height: 2px;
  margin: 7px auto 2px;
  background: linear-gradient(90deg, transparent, #08aaff 28%, #ff173d 72%, transparent);
  box-shadow: 0 0 9px #168dff80, 0 0 8px #ff173d70;
}
body.reference-dashboard .dashboard-stat > strong {
  width: 100%;
  margin: 8px auto 0;
  color: #ffda1a;
  font-size: clamp(37px, 3.1vw, 58px);
  line-height: 1.06;
  text-align: center;
  text-shadow: 0 0 14px #ffd91a5c;
}
body.reference-dashboard .dashboard-stat > small {
  width: 100%;
  margin: 6px auto 0;
  color: #f3f6ff;
  font-size: clamp(11px, .96vw, 16px);
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}
body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
body.reference-dashboard .dashboard-stat > .home-fixture-preview,
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { margin: 15px auto 0; }
body.reference-dashboard .dashboard-stat .home-banner-player-row {
  min-height: 42px;
  grid-template-columns: 24px minmax(0, 1fr) 36px;
  gap: 7px;
  padding: 6px 9px;
  border: 1px solid #25648d;
  border-radius: 11px;
  background: linear-gradient(100deg, #07182cf2, #020b17f5);
  font-size: clamp(11px, .82vw, 14px);
}
body.reference-dashboard .dashboard-stat .home-banner-player-row.current {
  border-color: #ffd91a;
  background: linear-gradient(100deg, #41370de8, #15150cf2);
  box-shadow: 0 0 9px #ffd91a61, inset 0 0 0 1px #ffd91a4d;
}
body.reference-dashboard .dashboard-stat .home-banner-preview-note { margin-top: 8px; color: #e3eaf4; }
body.reference-dashboard .dashboard-stat .home-fixture-preview {
  display: grid;
  width: 100%;
  min-height: 126px;
  gap: 8px;
  padding: 10px 9px;
  border: 1px solid #078fff;
  border-radius: 13px;
  background: linear-gradient(120deg, #06192bf2, #030b17f7);
  box-shadow: inset 0 0 12px #168eff24, 0 0 8px #078fff3d;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-head { gap: 6px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-head b { color: #ffffff; font-size: 11px; letter-spacing: .6px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-head small { margin: 0; font-size: 10px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-match { grid-template-columns: minmax(0,1fr) 24px minmax(0,1fr); gap: 5px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team {
  min-width: 0;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-team:last-child { text-align: center; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 27px; height: 28px; flex: 0 0 auto; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name { font-size: clamp(9px, .75vw, 12px); line-height: 1.12; overflow-wrap: anywhere; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-vs { align-self: center; color: #ffffff; font-size: 10px; }
body.reference-dashboard .dashboard-stat .home-bonus-my-lines { gap: 8px; }
body.reference-dashboard .dashboard-stat .home-bonus-line {
  min-height: 47px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #1579b3;
  border-radius: 11px;
  background: linear-gradient(100deg, #06172af2, #030b18f5);
}
body.reference-dashboard .dashboard-stat .home-bonus-line-label { font-size: clamp(9px, .74vw, 12px); text-align: left; }
body.reference-dashboard .dashboard-stat .home-bonus-balls { gap: 4px; }
body.reference-dashboard .dashboard-stat .home-bonus-balls i { width: clamp(24px, 1.8vw, 32px); height: clamp(24px, 1.8vw, 32px); font-size: clamp(10px, .75vw, 13px); }
body.reference-dashboard .dashboard-stat strong.home-lps-pick {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 17px;
  font-size: clamp(24px, 2vw, 36px);
}
body.reference-dashboard .dashboard-stat .home-lps-club-badge { width: clamp(46px, 3.2vw, 62px); height: clamp(46px, 3.2vw, 62px); flex: 0 0 auto; object-fit: contain; }
body.reference-dashboard .dashboard-stat .home-lps-pick .club-name { color: #ffd91a; }
body.reference-dashboard .dashboard-group-stat { align-items: center; text-align: center; }
body.reference-dashboard .dashboard-group-stat > strong { font-size: clamp(28px, 2.5vw, 44px); }
body.reference-dashboard .dashboard-group-stat > small { max-width: 29ch; }
body.reference-dashboard .dashboard-group-stat select {
  width: 100%;
  max-width: 100%;
  height: 48px;
  margin: 15px auto 0;
  border: 1px solid #078fff;
  border-radius: 12px;
  background: linear-gradient(120deg, #071b31, #030b17);
  color: #f8faff;
  font-size: 15px;
}
body.reference-dashboard .dashboard-group-stat select[hidden] { display: none; }
body.reference-dashboard .dashboard-group-open { align-self: center; margin: 13px auto 0; color: #11c7ff; font-size: 14px; font-weight: 800; text-align: center; }
@media(max-width:1100px) {
  body.reference-dashboard .dashboard-stat { min-height: 360px; }
}
@media(max-width:760px) {
  body.reference-dashboard .dashboard-summary-strip { padding: 12px 8px 24px; }
  body.reference-dashboard .dashboard-stats { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
  body.reference-dashboard .dashboard-stat { min-height: 320px; padding: 13px 9px 12px; border-radius: 18px; }
  body.reference-dashboard .dashboard-stat-heading img { width: 55px; height: 51px; }
  body.reference-dashboard .dashboard-stat-heading > span { min-height: 42px; font-size: 13px; }
  body.reference-dashboard .dashboard-stat > strong { margin-top: 6px; font-size: 31px; }
  body.reference-dashboard .dashboard-stat > small { margin-top: 5px; font-size: 10px; }
  body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
  body.reference-dashboard .dashboard-stat > .home-fixture-preview,
  body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { margin-top: 10px; }
  body.reference-dashboard .dashboard-stat .home-banner-player-row { min-height: 31px; grid-template-columns: 18px minmax(0,1fr) 27px; gap: 4px; padding: 4px 5px; font-size: 9px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview { min-height: 100px; padding: 7px 5px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team { gap: 3px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 20px; height: 21px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name { font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-bonus-line { min-height: 36px; gap: 3px; padding: 4px; }
  body.reference-dashboard .dashboard-stat .home-bonus-line-label { font-size: 8px; }
  body.reference-dashboard .dashboard-stat .home-bonus-balls { gap: 2px; }
  body.reference-dashboard .dashboard-stat .home-bonus-balls i { width: 21px; height: 21px; font-size: 8px; }
  body.reference-dashboard .dashboard-stat strong.home-lps-pick { gap: 6px; font-size: 22px; }
  body.reference-dashboard .dashboard-stat .home-lps-club-badge { width: 37px; height: 37px; }
  body.reference-dashboard .dashboard-group-stat { grid-column: 1 / -1; min-height: 250px; }
  body.reference-dashboard .dashboard-group-stat select { max-width: 380px; height: 42px; margin-top: 10px; }
}
@media(max-width:390px) {
  body.reference-dashboard .dashboard-stats { grid-template-columns: 1fr; }
  body.reference-dashboard .dashboard-stat,
  body.reference-dashboard .dashboard-group-stat { min-height: 280px; }
}

/* Make the five tiles share the same vertical alignment grid. */
body.reference-dashboard .dashboard-stat {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading {
  display: flex;
  flex: 0 0 clamp(145px, 11vw, 160px);
  height: clamp(145px, 11vw, 160px);
  min-height: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
body.reference-dashboard .dashboard-stat-heading img {
  flex: 0 0 clamp(68px, 5vw, 82px);
  width: clamp(68px, 5vw, 82px);
  height: clamp(68px, 5vw, 82px);
}
body.reference-dashboard .dashboard-stat-heading > span {
  display: flex;
  flex: 0 0 52px;
  min-height: 52px;
  width: 100%;
  align-items: center;
  justify-content: center;
}
body.reference-dashboard .dashboard-stat > strong {
  display: flex;
  flex: 0 0 62px;
  height: 62px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  margin: 8px auto 0;
}
body.reference-dashboard .dashboard-stat > small {
  display: flex;
  flex: 0 0 42px;
  min-height: 42px;
  align-items: flex-start;
  justify-content: center;
  margin: 6px auto 0;
}
body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
body.reference-dashboard .dashboard-stat > .home-fixture-preview,
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines {
  flex: 0 0 auto;
  align-self: stretch;
  margin: 7px auto 0;
}
body.reference-dashboard .dashboard-stat > .home-banner-league-preview { min-height: 82px; align-content: start; }
body.reference-dashboard .dashboard-stat > .home-fixture-preview { min-height: 126px; }
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { min-height: 102px; align-content: start; }
body.reference-dashboard .dashboard-stat strong.home-lps-pick { flex-basis: 62px; height: 62px; margin-top: 8px; }
body.reference-dashboard .dashboard-group-stat > strong { min-height: 62px; }
body.reference-dashboard .dashboard-group-stat > small { align-self: center; }
@media(max-width:760px) {
  body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading {
    flex-basis: 128px;
    height: 128px;
  }
  body.reference-dashboard .dashboard-stat-heading img { flex-basis: 58px; width: 58px; height: 58px; }
  body.reference-dashboard .dashboard-stat-heading > span { flex-basis: 48px; min-height: 48px; }
  body.reference-dashboard .dashboard-stat > strong,
  body.reference-dashboard .dashboard-stat strong.home-lps-pick,
  body.reference-dashboard .dashboard-group-stat > strong { flex-basis: 54px; height: 54px; min-height: 54px; }
  body.reference-dashboard .dashboard-stat > small { flex-basis: 38px; min-height: 38px; }
  body.reference-dashboard .dashboard-stat > .home-banner-league-preview { min-height: 70px; }
  body.reference-dashboard .dashboard-stat > .home-fixture-preview { min-height: 100px; }
  body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { min-height: 80px; }
}

/* Keep all writing visually centered inside the five dashboard tiles. */
body.reference-dashboard .dashboard-stat,
body.reference-dashboard .dashboard-stat * {
  text-align: center !important;
}
body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading,
body.reference-dashboard .dashboard-stat .home-fixture-preview-head {
  align-items: center !important;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-head {
  justify-content: center !important;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-match {
  justify-items: center !important;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-team {
  justify-content: center !important;
}
body.reference-dashboard .dashboard-stat .home-bonus-line {
  justify-content: center !important;
}
body.reference-dashboard .dashboard-stat .home-bonus-line-label {
  text-align: center !important;
}
body.reference-dashboard .dashboard-stat .home-bonus-balls {
  justify-content: center !important;
}
body.reference-dashboard .dashboard-stat .home-banner-player-row {
  justify-items: center !important;
}

/* Let multi-line values grow naturally so centering never causes overlap. */
body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}
body.reference-dashboard .dashboard-stat-heading > span {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 48px !important;
  padding: 2px 4px;
}
body.reference-dashboard .dashboard-stat > strong,
body.reference-dashboard .dashboard-stat > small {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
}
body.reference-dashboard .dashboard-group-stat > strong {
  max-width: 100%;
  font-size: clamp(24px, 1.8vw, 34px) !important;
  line-height: 1.12;
  text-wrap: balance;
}
body.reference-dashboard .dashboard-stat > small {
  display: block !important;
}
body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
body.reference-dashboard .dashboard-stat > .home-fixture-preview,
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines {
  flex: 0 0 auto !important;
  min-height: 0 !important;
}
body.reference-dashboard .dashboard-stat > .home-fixture-preview { padding: 10px 9px; }
body.reference-dashboard .dashboard-stat strong.home-lps-pick {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 0 !important;
  flex-wrap: wrap;
}
body.reference-dashboard .dashboard-group-stat > small { align-self: center; }
@media(max-width:760px) {
  body.reference-dashboard .dashboard-stat-heading > span { min-height: 42px !important; }
  body.reference-dashboard .dashboard-stat > small { min-height: 0 !important; }
}

/* Compact five-card home summary for better balance above the game banners. */
body.reference-dashboard .dashboard-summary-strip { padding: 14px 14px 26px; }
body.reference-dashboard .dashboard-stats { gap: 10px; }
body.reference-dashboard .dashboard-stat {
  min-height: 278px;
  padding: 12px 10px 11px;
  border-radius: 18px;
}
body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading { gap: 3px; }
body.reference-dashboard .dashboard-stat-heading img {
  flex-basis: 50px;
  width: 50px;
  height: 48px;
}
body.reference-dashboard .dashboard-stat-heading > span {
  min-height: 40px !important;
  padding: 1px 3px;
  font-size: clamp(12px, 1.05vw, 16px);
  line-height: 1.1;
}
body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading::after {
  margin: 4px auto 0;
}
body.reference-dashboard .dashboard-stat > strong {
  min-height: 47px !important;
  margin-top: 4px;
  font-size: clamp(31px, 2.55vw, 44px);
  line-height: 1.05;
}
body.reference-dashboard .dashboard-stat > small {
  margin-top: 3px;
  font-size: clamp(10px, .82vw, 13px);
  line-height: 1.25;
}
body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
body.reference-dashboard .dashboard-stat > .home-fixture-preview,
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { margin-top: 7px; }
body.reference-dashboard .dashboard-stat > .home-banner-league-preview { min-height: 66px; }
body.reference-dashboard .dashboard-stat .home-banner-player-row {
  min-height: 30px;
  grid-template-columns: 20px minmax(0, 1fr) 30px;
  gap: 4px;
  padding: 4px 6px;
  font-size: clamp(9px, .72vw, 12px);
}
body.reference-dashboard .dashboard-stat .home-banner-preview-note { margin-top: 5px; }
body.reference-dashboard .dashboard-stat > .home-fixture-preview {
  min-height: 84px;
  gap: 4px;
  padding: 6px;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-head { gap: 3px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-head b,
body.reference-dashboard .dashboard-stat .home-fixture-preview-head small { font-size: 9px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-match { gap: 3px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team { gap: 3px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge {
  width: 21px;
  height: 22px;
}
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name {
  font-size: clamp(8px, .68vw, 10px);
}
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { min-height: 0; gap: 5px; }
body.reference-dashboard .dashboard-stat .home-bonus-line {
  min-height: 34px;
  flex-wrap: nowrap;
  gap: 4px;
  padding: 4px 5px;
}
body.reference-dashboard .dashboard-stat .home-bonus-line-label {
  font-size: clamp(8px, .66vw, 10px);
}
body.reference-dashboard .dashboard-stat .home-bonus-balls { flex-wrap: nowrap; gap: 3px; }
body.reference-dashboard .dashboard-stat .home-bonus-balls i {
  width: 22px;
  height: 22px;
  font-size: 9px;
}
body.reference-dashboard .dashboard-stat strong.home-lps-pick {
  gap: 7px;
  margin-top: 5px;
  font-size: clamp(23px, 1.8vw, 31px);
}
body.reference-dashboard .dashboard-stat .home-lps-club-badge {
  width: 42px;
  height: 42px;
}
body.reference-dashboard .dashboard-group-stat > strong {
  min-height: 47px !important;
  font-size: clamp(22px, 1.55vw, 29px) !important;
}
body.reference-dashboard .dashboard-group-stat > small { max-width: 26ch; }
body.reference-dashboard .dashboard-group-stat select { height: 38px; margin-top: 8px; font-size: 13px; }
body.reference-dashboard .dashboard-group-open { margin-top: 8px; font-size: 12px; }
@media(max-width:1100px) {
  body.reference-dashboard .dashboard-stat { min-height: 272px; }
}
@media(max-width:760px) {
  body.reference-dashboard .dashboard-summary-strip { padding: 12px 8px 20px; }
  body.reference-dashboard .dashboard-stats { gap: 8px; }
  body.reference-dashboard .dashboard-stat { min-height: 260px; padding: 11px 8px 10px; }
  body.reference-dashboard .dashboard-stat-heading img { flex-basis: 46px; width: 46px; height: 44px; }
  body.reference-dashboard .dashboard-stat-heading > span { min-height: 38px !important; font-size: 12px; }
  body.reference-dashboard .dashboard-stat > strong { min-height: 43px !important; font-size: 30px; }
  body.reference-dashboard .dashboard-stat > small { font-size: 10px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview { min-height: 78px; padding: 5px; }
  body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 19px; height: 20px; }
  body.reference-dashboard .dashboard-stat .home-banner-player-row { min-height: 28px; padding: 3px 4px; }
  body.reference-dashboard .dashboard-group-stat { min-height: 230px; }
}
@media(max-width:390px) {
  body.reference-dashboard .dashboard-stat,
  body.reference-dashboard .dashboard-group-stat { min-height: 244px; }
}

/* Reset the legacy left gutter on the prediction and Bonus Ball buttons so their icon and title center on the card. */
body.reference-dashboard button.dashboard-stat:nth-child(1),
body.reference-dashboard button.home-bonus-stat { padding-left: 10px !important; }

/* Tighter homepage summary cards: trim excess space while keeping previews readable. */
body.reference-dashboard .dashboard-summary-strip { padding: 12px 14px 20px; }
body.reference-dashboard .dashboard-stat { min-height: 238px; padding: 9px 9px 8px; }
body.reference-dashboard .dashboard-stat-heading img { flex-basis: 42px; width: 42px; height: 40px; }
body.reference-dashboard .dashboard-stat-heading > span { min-height: 34px !important; font-size: clamp(11px, .95vw, 14px); }
body.reference-dashboard .dashboard-stat > span.dashboard-stat-heading { gap: 2px; }
body.reference-dashboard .dashboard-stat > strong { min-height: 39px !important; margin-top: 2px; font-size: clamp(28px, 2.1vw, 38px); }
body.reference-dashboard .dashboard-stat > small { margin-top: 2px; font-size: clamp(9px, .72vw, 11px); }
body.reference-dashboard .dashboard-stat > .home-banner-league-preview,
body.reference-dashboard .dashboard-stat > .home-fixture-preview,
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { margin-top: 5px; }
body.reference-dashboard .dashboard-stat > .home-banner-league-preview { min-height: 56px; }
body.reference-dashboard .dashboard-stat .home-banner-player-row { min-height: 25px; padding: 3px 4px; }
body.reference-dashboard .dashboard-stat .home-banner-preview-note { margin-top: 3px; font-size: 7px; }
body.reference-dashboard .dashboard-stat > .home-fixture-preview { min-height: 70px; gap: 3px; padding: 4px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-head b,
body.reference-dashboard .dashboard-stat .home-fixture-preview-head small { font-size: 8px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .home-club-badge { width: 18px; height: 19px; }
body.reference-dashboard .dashboard-stat .home-fixture-preview-team .club-name { font-size: 8px; }
body.reference-dashboard .dashboard-stat > .home-bonus-my-lines { gap: 4px; }
body.reference-dashboard .dashboard-stat .home-bonus-line { min-height: 29px; padding: 3px 4px; }
body.reference-dashboard .dashboard-stat .home-bonus-line-label { font-size: 8px; }
body.reference-dashboard .dashboard-stat .home-bonus-balls i { width: 19px; height: 19px; font-size: 8px; }
body.reference-dashboard .dashboard-stat .home-lps-club-badge { width: 36px; height: 36px; }
body.reference-dashboard .dashboard-group-stat select { height: 34px; margin-top: 6px; }
body.reference-dashboard .dashboard-group-stat select { color-scheme: dark; }
body.reference-dashboard .dashboard-group-stat select option {
  background-color: #07172a;
  color: #f5f8ff;
}
body.reference-dashboard .dashboard-group-open { margin-top: 6px; }
@media(max-width:1100px) {
  body.reference-dashboard .dashboard-stat { min-height: 238px; }
}
@media(max-width:760px) {
  body.reference-dashboard .dashboard-summary-strip { padding: 10px 8px 16px; }
  body.reference-dashboard .dashboard-stat { min-height: 250px; padding: 9px 7px 8px; }
  body.reference-dashboard .dashboard-stat-heading img { flex-basis: 40px; width: 40px; height: 38px; }
  body.reference-dashboard .dashboard-stat-heading > span { min-height: 32px !important; font-size: 11px; }
  body.reference-dashboard .dashboard-stat > strong { min-height: 36px !important; font-size: 27px; }
  body.reference-dashboard .dashboard-stat > .home-fixture-preview { min-height: 70px; }
}

/* Show the current Last Person Standing week first, then its team pick. */
body.reference-dashboard .dashboard-stat .home-lps-pick-note{display:flex!important;align-items:center;justify-content:center;gap:6px;margin-top:5px}
body.reference-dashboard .dashboard-stat .home-lps-pick-note .home-lps-club-badge{width:27px;height:27px;flex:0 0 auto;object-fit:contain}
body.reference-dashboard .dashboard-stat .home-lps-pick-note .club-name{font-size:clamp(10px,.85vw,13px);font-weight:800;line-height:1.2}

/* Stack the LPS week, pick number, and selected team. */
body.reference-dashboard .dashboard-stat .home-lps-pick-note{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:4px;margin-top:4px}
body.reference-dashboard .dashboard-stat .home-lps-pick-order{display:block;color:#cbd9ec;font-size:clamp(10px,.72vw,12px);font-weight:800;line-height:1.1}
body.reference-dashboard .dashboard-stat .home-lps-pick-team{display:flex;align-items:center;justify-content:center;gap:7px;color:#ffdf18;font-size:clamp(18px,1.35vw,23px);font-weight:900;line-height:1.15}
body.reference-dashboard .dashboard-stat .home-lps-pick-team .home-lps-club-badge{width:30px;height:30px;flex:0 0 auto;object-fit:contain}
body.reference-dashboard .dashboard-stat .home-lps-pick-team .club-name{color:#ffdf18;font-size:inherit;font-weight:900;line-height:1.15}
body.reference-dashboard .dashboard-stat #homeLpsValue{min-height:0!important;margin-top:4px;font-size:clamp(18px,1.35vw,23px)!important;line-height:1.15}

/* Keep site-owner support ticket text readable on its light card. */
body.reference-dashboard .site-support-ticket{color:#12243a;background:#f8fafc}
body.reference-dashboard .site-support-ticket header strong{color:#14243a}
body.reference-dashboard .site-support-ticket>p{color:#253c54}
body.reference-dashboard .site-support-ticket small{color:#64748b}
body.reference-dashboard .site-support-ticket label{color:#23354c}
body.reference-dashboard .site-backup-tools .panel-title h2{color:#14243a}

/* Force dark text inside the white support message cards, independent of page theme. */
#siteSupportInbox .site-support-ticket{color:#12243a!important;background:#f8fafc!important}
#siteSupportInbox .site-support-ticket header strong{color:#14243a!important}
#siteSupportInbox .site-support-ticket>p{color:#253c54!important}
#siteSupportInbox .site-support-ticket small{color:#52657c!important}
#siteSupportInbox .site-support-ticket label{color:#23354c!important}
.site-backup-tools .panel-title h2{color:#14243a!important}
