/* MSA Mobile Premium: independent responsive presentation; desktop untouched.
   Existing APIs, memberships, logos and approved onboarding assets remain unchanged. */
@media(max-width:760px){
 html[data-theme] body{background-color:#eef3f9!important;color:#132c46!important;padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));}
 html[data-theme] body::before{display:none!important}
 html[data-theme] body .masthead{display:grid!important;position:relative!important;isolation:isolate;grid-template-columns:44px 44px minmax(0,1fr) 44px 44px!important;grid-template-rows:70px 42px!important;gap:4px!important;align-items:center;min-height:0!important;height:auto!important;padding:8px 10px 10px!important;margin:0!important;width:100%!important;max-width:none!important;border:0!important;border-bottom:2px solid #d7b16c!important;border-radius:0 0 20px 20px!important;background-color:#102a45!important;box-shadow:0 6px 18px #1a395423!important}
 html[data-theme=dark] body .masthead::before{display:none!important}
 html[data-theme] body .masthead>.brand{position:static!important;inset:auto!important;grid-column:3!important;grid-row:1!important;align-self:center!important;justify-self:center!important;width:100%!important;max-width:155px;display:flex!important;justify-content:center;align-items:center;min-width:0}
 html[data-theme] body .masthead .brand img{width:100%!important;height:66px!important;object-fit:contain;max-height:66px;filter:none!important}
 html[data-theme] body .masthead>.round-button{position:static!important;inset:auto!important;transform:none!important;display:grid!important;place-items:center;align-self:center;justify-self:center;width:40px!important;height:40px!important;border-radius:13px!important;background:#ffffff15!important;color:#fff!important;border:1px solid #7e9ab568!important;box-shadow:none!important;padding:6px!important}
 html[data-theme] body .masthead>#menuButton{grid-column:1;grid-row:1}
 html[data-theme] body .masthead>#searchButton{grid-column:2;grid-row:1}
 html[data-theme] body .masthead>#alertsButton{grid-column:4;grid-row:1}
 html[data-theme] body .masthead>#accountButton{grid-column:5;grid-row:1}
 html[data-theme] body .masthead>#themeButton{grid-column:1;grid-row:2}
 html[data-theme] body .masthead>.languages{position:static!important;inset:auto!important;transform:none!important;grid-column:2/-1;grid-row:2;display:flex!important;justify-content:flex-end;align-items:center;gap:3px!important;overflow-x:auto;min-width:0;padding:0!important;margin:0!important}
 html[data-theme] body .masthead .languages button[data-lang]{min-width:32px!important;width:32px!important;height:34px!important;border:1px solid #8ca5bc55!important;border-radius:9px!important;background:#ffffff14!important;padding:4px!important;color:white!important}
 html[data-theme] body .masthead .languages button[data-lang][aria-pressed=true]{border:1px solid #e9ca8e!important;background:#dcb66a40!important}
 html[data-theme] body .masthead:has(.msa-install-links){grid-template-rows:70px 42px auto!important}
 html[data-theme] body .masthead .msa-install-links{position:static!important;inset:auto!important;transform:none!important;grid-row:3;grid-column:1/-1;display:flex!important;flex-direction:row!important;justify-content:center;gap:7px;margin:0!important}
 html[data-theme] body .masthead .msa-install-links a{background:#ffffff15!important;color:#fff!important;border:1px solid #7e9ab568!important;min-height:40px;width:auto!important;padding:4px 10px;border-radius:9px!important}
 html.msa-native-app body .masthead .msa-install-links{display:none!important}
 html[data-theme] body #content{width:100%!important;max-width:none!important;padding:0!important;margin:0!important}
 html[data-theme] body #content .page{width:100%!important;max-width:none!important;margin:0!important;padding:8px 8px 16px!important;display:flex;flex-direction:column;gap:10px}
 html[data-theme] body #content .msa-home{--home-ink:#142c46;--home-muted:#50667e;--home-paper:#fff;--home-edge:#d5e0eb;--home-blue:#183d60;--home-gold:#c89c55}
 html[data-theme] body #content .msa-home>:is(.surface,.home-lead,.msa-home-sections,.msa-promo-inline,.stream-panel){margin-block:0!important;min-width:0;max-width:100%}
 html[data-theme] body #content .msa-home .urgent{order:0;border:0!important;border-radius:12px!important;background:#17334e!important;color:#fff!important;box-shadow:none!important;min-height:40px;grid-template-columns:auto minmax(0,1fr) 32px!important}
 html[data-theme] body #content .msa-home .urgent .urgent-label{background:#dfbd78!important;color:#162b3f!important;max-width:110px;padding:7px;font-size:12px;line-height:1.3}
 html[data-theme] body #content .msa-home .urgent .marquee-group a{color:white!important;font-size:13px}
 html[data-theme] body #content .msa-home #msa-live-now{order:1}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard{order:2;display:flex!important;flex-direction:column!important;gap:10px;padding:13px 11px 8px!important;background:#fff!important;color:#142c46!important;border:1px solid #d5e0eb!important;border-radius:20px!important;box-shadow:0 7px 20px #25496912!important;overflow:hidden;min-height:0}
 .msa-mobile-score-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
 .msa-mobile-score-head p{font-size:9px;font-weight:800;letter-spacing:.14em;color:#8a642e;margin:0;direction:ltr;text-align:start}
 .msa-mobile-score-head h2{font-size:22px;line-height:1.25;margin:3px 0 0;color:#142c46!important}
 .msa-mobile-score-head>a{font-size:12px;font-weight:800;color:#234b6c!important;background:#eef4fb;border:1px solid #dbe6ef;border-radius:10px;padding:8px 10px;white-space:nowrap;text-decoration:none}
 .msa-mobile-score-tabs{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none}
 .msa-mobile-score-tabs>a{min-height:36px;display:grid;place-items:center;padding:6px 16px;border-radius:10px;background:#eff4fa;color:#244762!important;border:1px solid #dae5ee;font-size:13px;font-weight:700;text-decoration:none;white-space:nowrap}
 .msa-mobile-score-tabs>a:first-child{background:#1c3d5c!important;color:#fff!important;border-color:#1c3d5c}
 .msa-mobile-score-track{display:flex;align-items:stretch;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;gap:10px;padding:2px 1px 7px;min-width:0}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard .fixture.verified{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:6px!important;flex:0 0 88%!important;width:88%!important;min-width:88%!important;max-width:88%!important;min-height:151px!important;padding:13px 10px 10px!important;background:linear-gradient(160deg,#fff,#f3f7fc)!important;color:#152d46!important;border:1px solid #ccd9e8!important;border-radius:15px!important;box-shadow:none!important;scroll-snap-align:start;--fixture-text:#152d46;--fixture-muted:#52677d;--fixture-inset:#173c60;--fixture-rule:#214766}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard .fixture-crests{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;gap:9px;align-items:center}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard .msa-fixture-team{display:flex!important;flex-direction:column-reverse!important;align-items:center;justify-content:flex-end;gap:6px;min-width:0}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard .msa-fixture-team img{width:43px!important;height:43px!important;object-fit:contain}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard .msa-fixture-team strong{font-size:13px!important;color:#152d46!important;line-height:1.35;word-break:normal;overflow-wrap:break-word}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard [data-live-score]{display:grid;place-items:center;min-width:76px!important;padding:7px 9px!important;border-radius:11px!important;background:#163a5d!important;color:#fff!important;border:1px solid #42617e!important;box-shadow:none!important;font-size:21px!important;font-variant-numeric:tabular-nums}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard [data-live-score] b{color:#fff!important;font-size:inherit!important}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard .fixture>small{justify-self:center;color:#52677d!important;background:#e7eef6!important;padding:3px 10px;border-radius:20px;font-size:11px!important;font-weight:750}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard .fixture>small[data-last-state=live]{color:#a22738!important;background:#fde7e9!important}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard .fixture em{display:block!important;font-size:12px!important;color:#344e68!important;text-align:center;font-style:normal}
 html[data-theme] body #content .msa-home .msa-mobile-scoreboard .msa-match-dateline{justify-content:center;flex-wrap:wrap;font-size:11px!important;color:#52677d!important}
 .msa-mobile-scoreboard footer,.msa-mobile-score-empty{color:#61758a!important;font-size:12px;text-align:center;margin:0;padding:3px}
 html[data-theme] body #content .msa-home .home-lead{order:3;display:grid!important;grid-template-areas:"coverage" "latest" "leagues"!important;grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 html[data-theme] body #content .msa-home .home-lead .hero-card{display:flex!important;flex-direction:column!important;min-height:0!important;background:#fff!important;border:1px solid #d5e0eb!important;border-radius:20px!important;color:#142c46!important;overflow:hidden;box-shadow:0 7px 20px #25496912!important}
 html[data-theme] body #content .msa-home .home-lead .hero-card .hero-media{width:100%!important;aspect-ratio:16/10!important;height:auto!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#e6edf5!important}
 html[data-theme] body #content .msa-home .home-lead .hero-card .hero-media img.story-photo{object-fit:cover!important;object-position:center}
 html[data-theme] body #content .msa-home .home-lead .hero-card .hero-copy{padding:16px!important;background:#fff!important;color:#142c46!important}
 html[data-theme] body #content .msa-home .hero-copy :is(h1,h2,h2 a){color:#142c46!important;font-size:clamp(21px,5.8vw,28px)!important;line-height:1.45}
 html[data-theme] body #content .msa-home .hero-copy .msa-story-summary{font-size:16px!important;line-height:1.7;color:#465e76!important}
 html[data-theme] body #content .msa-home .hero-copy .msa-coverage-label{color:#8a642e!important}
 html[data-theme] body #content .msa-home .fixtures-rail{order:4;background:#fff!important;color:#142c46!important;padding:12px!important;border:1px solid #d5e0eb!important;border-radius:20px!important}
 html[data-theme] body #content .msa-home .fixtures-rail :is([data-fixture-scope],.league-pill,.fixture-day,.league-scroll,.calendar-arrow,.rail-arrow,.ticker-control,.schedule-link){background:#edf3f9!important;color:#234762!important;border-color:#c9d8e6!important;box-shadow:none!important;font-size:12px!important}
 html[data-theme] body #content .msa-home .fixtures-rail :is([aria-pressed=true],.active){background:#173c60!important;color:#fff!important;border-color:#173c60!important}
 html[data-theme] body #content .msa-home .fixtures-rail .fixture-calendar-shell{background:#f2f6fb!important;border-color:#d5e0eb!important}
 html[data-theme] body #content .msa-home .upcoming-marquee .fixture.verified{background:#fff!important;color:#142c46!important;border:1px solid #d5e0eb!important;border-radius:15px!important;min-width:230px;max-width:260px}
 html[data-theme] body #content .msa-home .msa-home-sections{order:5;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
 html[data-theme] body #content .msa-home .msa-home-sections .section-tile{min-height:120px!important;grid-template-rows:minmax(72px,1fr) auto!important;padding:10px 6px!important}
 html[data-theme] body #content .msa-home .msa-home-sections .section-tile strong{font-size:14px!important;line-height:1.45}
 html[data-theme] body #content .msa-home .follow-clubs{order:6}
 html[data-theme] body #content .msa-home :is(.home-quicklinks,.follow-benefits) a{background:#edf3f9!important;color:#234762!important;border-color:#d5e0eb!important;font-size:12px!important}
 html[data-theme] body #content .msa-home>.surface:not(.urgent):not(.msa-mobile-scoreboard):not(.fixtures-rail){border-radius:17px!important}
 html[data-theme] body #content .msa-home>:not(.urgent):not(#msa-live-now):not(.msa-mobile-scoreboard):not(.home-lead):not(.fixtures-rail):not(.msa-home-sections):not(.follow-clubs){order:7}
 html[data-theme] body .bottom-nav{background:#102a45!important;color:#fff!important;border:0!important;border-top:1px solid #597695!important;border-radius:16px 16px 0 0!important;box-shadow:0 -4px 16px #142c4626!important;height:calc(66px + env(safe-area-inset-bottom,0px))!important;padding:5px 4px max(3px,env(safe-area-inset-bottom,0px))!important;gap:2px!important}
 html[data-theme] body .bottom-nav :is(a,button){flex:1;min-width:0!important;display:grid!important;grid-template-rows:25px auto!important;gap:3px!important;background:transparent!important;color:#dce8f5!important;border:0!important;border-radius:11px!important;font-size:10px!important;padding:3px 1px!important;box-shadow:none!important}
 html[data-theme] body .bottom-nav :is(.current,.active,[aria-current=page],.msa-subscription-nav){background:linear-gradient(150deg,#f2dca5,#dcb66a)!important;color:#162e45!important}
 html[data-theme=dark] body{background:#101e31!important;color:#e9f0fa!important}
 html[data-theme=dark] body #content .msa-home{--home-paper:#fff;--home-ink:#142c46}
 html[data-theme=dark] body #content .msa-home :is(.msa-mobile-scoreboard,.fixtures-rail,.home-lead .hero-card){color:#142c46!important}
 @media(max-width:360px){html[data-theme] body .masthead{grid-template-columns:38px 38px minmax(0,1fr) 38px 38px!important;gap:2px!important;padding-inline:6px!important}html[data-theme] body .masthead>.round-button{width:36px!important;height:36px!important}html[data-theme] body .masthead .languages button[data-lang]{width:28px!important;min-width:28px!important}.msa-mobile-score-head h2{font-size:20px}}
}
@media(max-width:760px) and (prefers-reduced-motion:reduce){.msa-mobile-score-track{scroll-behavior:auto}}

/* Preserve the approved stadium and original glass controls on mobile;
   mobile layout rules must not replace the approved light-theme artwork. */
@media(max-width:760px){
 html[data-theme="light"] body:not([data-msa-pro-theme]) .masthead{
  background-color:#304454!important;
  background-image:url("/assets/original/msa-stadium-header-mobile.svg?v=2")!important;
  background-repeat:no-repeat!important;background-position:center bottom!important;background-size:100% 100%!important;
 }
 html[data-theme="light"] body .masthead::before{display:block!important}
 html[data-theme="light"] body .masthead>.round-button,
 html[data-theme="light"] body .masthead .msa-install-links a{
  background:var(--msa-head-glass,var(--msa-glass-matches))!important;
  color:#20262D!important;border-color:#C5A564!important;
  box-shadow:0 2px 5px #142b4b30!important;
 }
 html[data-theme="light"] body .masthead .languages button[data-lang]{
  background:transparent!important;border-color:transparent!important;box-shadow:none!important;
 }
 html[data-theme="light"] body .masthead .languages button[data-lang][aria-pressed=true]{
  background:transparent!important;border-color:#e9ca8e!important;
 }
 html[data-theme="dark"] body:not([data-msa-pro-theme]) .masthead{
  background-image:linear-gradient(140deg,#102a45,#214766 75%,#102b45)!important;
 }
 html[data-theme] body[data-msa-plan="pro"][data-msa-pro-theme] .masthead{
  background-image:linear-gradient(115deg,color-mix(in srgb,var(--msa-club-secondary) 70%,transparent),#132f4e55 55%,color-mix(in srgb,var(--msa-club-primary) 35%,transparent)),url("/assets/original/msa-stadium-header-mobile.svg?v=2")!important;
  background-size:100% 100%!important;background-position:center bottom!important;
 }
}
