/* V15.35 compact landing design: no copies of payment/auth/save controls.
   Responsive retro navy and gold, preserving original 1990s artwork. */
#ulf35-landing-art,#ulf35-tabs,#ulf35-career-area,#ulf35-extras{display:none}
body.ulf35-landing-ready #ulf35-tabs:not([hidden]){display:flex!important;
 align-items:center;gap:8px;width:min(100% - 24px,1050px);margin:10px auto 6px}
#ulf35-tabs button{min-width:0;flex:1;min-height:43px;padding:9px 12px;
 border:1px solid #7193c2;border-radius:8px;background:#13345f;color:#f5eac9;
 font:800 13px/1.3 system-ui,sans-serif;cursor:pointer}
#ulf35-tabs #ulf35-tab-careers{background:#f2cc68;color:#10254a;border-color:#ffe39c}
#ulf35-tabs button:focus-visible,
#ulf35-subtabs button:focus-visible,#ulf35-play-free:focus-visible,
#ulf35-extras button:focus-visible{outline:3px solid #fff;outline-offset:2px}
body.ulf35-landing-ready #ulf35-landing-art:not([hidden]){display:block!important;
 max-width:1050px;width:calc(100% - 24px);margin:8px auto;
 border:2px solid #d6b365;border-radius:12px;overflow:hidden;background:#071b39}
#ulf35-landing-art picture,#ulf35-landing-art img{display:block;width:100%;
 max-width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
body.ulf35-landing-ready #ulf113-hero{width:calc(100% - 24px)!important;
 max-width:1050px!important;min-height:0!important;margin:6px auto 10px!important;
 padding:12px 14px 15px!important;border-radius:12px!important;text-align:center}
body.ulf35-landing-ready #ulf113-hero h1{font-size:clamp(25px,6vw,43px)!important;
 line-height:1.05!important;letter-spacing:-.01em!important;margin:7px 0 5px!important}
body.ulf35-landing-ready #ulf113-hero h1 span{display:block!important;color:#f4cb57!important}
body.ulf35-landing-ready #ulf113-hero p{font:500 clamp(12px,2.6vw,17px)/1.4 system-ui,sans-serif;
 margin:8px auto!important;max-width:690px}
body.ulf35-landing-ready #ulf113-hero .ulf113-eyebrow{font-size:clamp(8px,1.75vw,11px);
 letter-spacing:.10em}
body.ulf35-landing-ready #ulf113-hero .ulf113-btns{display:none!important}
#ulf35-play-free{display:block;width:min(100%,750px);min-height:59px;
 margin:10px auto 2px;padding:10px 13px;border-radius:11px;border:2px solid #f8df91;
 background:linear-gradient(#ffe68e,#f3bf40);box-shadow:0 3px 0 #806126;color:#091b39;
 font:900 clamp(17px,4.7vw,28px)/1.15 system-ui,sans-serif;cursor:pointer}
#ulf35-play-free span{margin-left:8px}
#ulf35-play-free small{display:block;margin-top:5px;color:#30415a;
 font:600 clamp(10px,2.5vw,13px)/1.35 system-ui,sans-serif}
body.ulf35-landing-ready #ulf35-career-area{display:block!important;
 width:calc(100% - 24px);max-width:1050px;margin:10px auto!important;
 padding:12px;box-sizing:border-box;border:2px solid #d2b266;border-radius:12px;
 background:linear-gradient(145deg,#081d44,#0c244d);color:#f7e4bb}
#ulf35-career-area > h2{font:800 clamp(19px,4vw,30px)/1.2 Georgia,serif;
 letter-spacing:.07em;color:#f1cf78;margin:3px 0 10px}
#ulf35-subtabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
#ulf35-subtabs button{display:flex;align-items:center;justify-content:center;
 min-width:0;min-height:66px;text-align:center;padding:9px 5px;border:1px solid #78a4d8;
 border-radius:8px;background:#12365f;color:#f6eace;
 font:800 clamp(10px,2.15vw,14px)/1.3 system-ui,sans-serif;cursor:pointer}
#ulf35-subtabs button[aria-selected="true"]{background:linear-gradient(145deg,#ffe68c,#eebd4a);
 color:#0c2443;border-color:#ffe49d;box-shadow:0 2px 0 #9a7929}
#ulf35-career-area .ulf35-career-prompt{margin:10px 0 6px;color:#cddbec;font:500 12px/1.5 system-ui,sans-serif}
body.ulf35-landing-ready #ulf113-explore,
body.ulf35-landing-ready #ulf1515-cloud-first,
body.ulf35-landing-ready #ulfCloudBox,
body.ulf35-landing-ready #ulfc-home-entry{display:none!important}
body.ulf35-landing-ready.ulf35-mode-new #ulf113-explore{display:block!important}
body.ulf35-landing-ready.ulf35-mode-continue #ulf1515-cloud-first{display:block!important}
body.ulf35-landing-ready.ulf35-mode-saves #ulfCloudBox{display:block!important}
body.ulf35-landing-ready.ulf35-mode-game #ulfc-home-entry{display:block!important}
body.ulf35-landing-ready #ulf18-season-intro{display:none!important}
body.ulf35-landing-ready #ulf113-explore{width:100%!important;margin:6px 0!important;
 min-height:0!important;padding:0!important;border:0!important;background:transparent!important}
body.ulf35-landing-ready #ulf113-explore h2[hidden],
body.ulf35-landing-ready #ulf113-explore .ulf113-modes,
body.ulf35-landing-ready #ulf113-explore .ulf113-features,
body.ulf35-landing-ready #ulf113-explore > .ulf113-kicker{display:none!important}
body.ulf35-landing-ready #ulf113-explore .ulf113-create{margin-top:4px!important}
body.ulf35-landing-ready #ulf113-explore #ulfStartSection{margin:0!important;max-width:100%}
body.ulf35-landing-ready #ulf1515-cloud-first{max-width:100%!important;margin:7px auto!important}
body.ulf35-landing-ready #ulfCloudBox{width:100%!important;max-width:100%!important;
 margin:6px 0!important;padding:0!important}
body.ulf35-landing-ready #ulfc-home-entry{width:100%!important;max-width:100%!important;
 margin:8px 0!important;padding:12px!important}
body.ulf35-landing-ready #ulfc-home-entry > p:not(#ulfc-home-access),
body.ulf35-landing-ready #ulfc-home-entry .ulfc-hall-note{display:none!important}
body.ulf35-landing-ready #ulfc-home-entry .ulfc-entry-row{margin:10px 0!important}
body.ulf35-landing-ready #ulfc-home-entry .ulfc-entry-row button{min-height:50px!important}
body.ulf35-landing-ready #ulf35-extras:not([hidden]){display:flex!important;
 flex-wrap:wrap;justify-content:center;gap:10px;width:calc(100% - 24px);
 max-width:1050px;margin:10px auto}
#ulf35-extras > button{background:#11325c;color:#f1e1b5;border:1px solid #719cc9;
 border-radius:8px;min-height:40px;flex:1 1 145px;font:800 12px/1.3 system-ui,sans-serif;cursor:pointer}
#ulf35-extra-copy:not([hidden]){flex:1 0 100%;color:#d4e4ec;
 background:#0d2c50;border:1px solid #55779b;padding:12px;border-radius:8px;
 font:500 12px/1.55 system-ui,sans-serif}
body.ulf35-landing-ready .ulf-legal-footer{font-size:11px!important;
 padding:9px 12px 14px!important;line-height:1.4!important}
body.ulf35-landing-ready .ulf-legal-footer .ulf-legal-tagline{font-size:10px!important}
body.ulf35-landing-ready .ulf-legal-footer > p{font-size:11px!important;line-height:1.4!important}
body.ulf35-landing-ready .ulf-legal-footer summary{font-size:11px!important;
 padding:6px 8px!important}
body.ulf35-landing-ready .ulf-legal-footer .ulf-legal-copy{font-size:12px!important}
body.ulf35-landing-ready .ulf-site-info{font-size:11px!important;
 padding:6px 12px!important;gap:6px!important}
body.ulf35-landing-ready .ulf-site-info-links{font-size:11px!important}
body.ulf113-landing #ulfBuyHeader{margin-left:auto!important;flex:0 1 auto!important;
 max-width:100%!important}
body.ulf113-landing #ulfBuyFullHeader{font-size:12px!important;line-height:1.2!important;
 max-width:225px!important;min-height:37px!important;padding:8px 10px!important;
 box-shadow:0 3px 0 #70531d,0 5px 12px #0005!important}
#ulf35-header-mail[hidden]{display:none!important}
#ulf35-header-mail{min-height:38px;border:1px solid #b99b5f;border-radius:7px;
 background:#102c52;color:#ffe5ad;padding:7px 10px;
 font:800 11px/1.2 system-ui,sans-serif;cursor:pointer}
@media(max-width:650px){
 body.ulf35-landing-ready header.ulf113-header{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;column-gap:8px!important;row-gap:8px!important;padding:9px 12px!important}
 body.ulf35-landing-ready header.ulf113-header .logo{grid-column:1/-1!important;
  grid-row:1!important;min-width:0;max-width:100%}
 body.ulf35-landing-ready header.ulf113-header #ulf115ExitControls{
  grid-column:1!important;grid-row:2!important;width:auto!important;min-width:0!important;
  margin:0!important;display:flex!important;flex-wrap:wrap;gap:6px}
 body.ulf35-landing-ready header.ulf113-header #ulfBuyHeader{
  grid-column:2!important;grid-row:2!important;max-width:100%!important;
  justify-self:end!important;margin:0!important;width:auto!important;flex-basis:auto!important}
 body.ulf113-landing #ulfBuyFullHeader{font-size:10px!important;max-width:176px!important}
 body.ulf35-landing-ready #ulf35-subtabs{gap:5px}
 body.ulf35-landing-ready #ulf35-subtabs button{font-size:clamp(9px,2.4vw,12px);padding:8px 4px;min-height:62px}
 body.ulf35-landing-ready #ulfc-home-entry .ulfc-entry-row{grid-template-columns:1fr!important;gap:7px!important}
 body.ulf35-landing-ready #ulf113-hero h1{font-size:clamp(24px,7vw,35px)!important}
}
@media(max-width:360px){
 body.ulf113-landing #ulfBuyFullHeader{max-width:145px!important;font-size:10px!important}
 #ulf35-subtabs button{font-size:9px!important}
}
@media(prefers-reduced-motion:reduce){#ulf35-subtabs button,#ulf35-tabs button{transition:none!important}}
/* Next patch: Mail and Log Off stay aligned; only purchased-game badge shrinks. */
body.ulf24-nav-active header.ulf113-header #ulf115ExitControls{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:5px!important;min-width:0!important}
body.ulf24-nav-active header.ulf113-header #ulf115ExitControls #ulf35-header-mail,
body.ulf24-nav-active header.ulf113-header #ulf115ExitControls #ulf115LogOutBtn{white-space:nowrap;flex:0 0 auto;min-height:38px}
body.ulf24-nav-active #ulfBuyFullHeader.ulf-next-owned{max-width:118px!important;min-height:30px!important;padding:5px 7px!important;font:800 10px/1.2 system-ui,sans-serif!important;box-shadow:none!important}
@media(max-width:760px){
 body.ulf24-nav-active header.ulf113-header #ulf115ExitControls{justify-self:start!important;max-width:100%!important;gap:4px!important}
 body.ulf24-nav-active header.ulf113-header #ulf115ExitControls #ulf35-header-mail,
 body.ulf24-nav-active header.ulf113-header #ulf115ExitControls #ulf115LogOutBtn{padding:8px 5px!important;font:800 10px/1.2 system-ui,sans-serif!important}
 body.ulf24-nav-active #ulfBuyFullHeader.ulf-next-owned{max-width:83px!important;padding:5px!important;font-size:9px!important}
}

/* Next patch: read-only Actions button alongside Mail and Log Off. */
#ulf-next-actions-button[hidden]{display:none!important}
#ulf-next-actions-button{min-height:38px;white-space:nowrap;border:1px solid #d4b877;
 border-radius:7px;background:#173b5b;color:#ffe9b0;padding:7px 9px;
 font:800 11px/1.2 system-ui,sans-serif;cursor:pointer}
#ulf-next-actions-overlay{position:fixed;inset:0;z-index:2147483500;
 background:rgba(1,9,27,.88);display:grid;place-items:center;
 padding:max(12px,env(safe-area-inset-top)) 12px max(12px,env(safe-area-inset-bottom))}
.ulf-next-actions-panel{box-sizing:border-box;width:min(100%,520px);max-height:min(88dvh,780px);
 overflow-y:auto;border:2px solid #deb66c;border-radius:10px;
 background:#0b2345;color:#f2f1e5;padding:15px;font:14px/1.45 system-ui,sans-serif}
.ulf-next-actions-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.ulf-next-actions-heading h2{color:#ffe19c;font-size:19px;margin:0}
.ulf-next-actions-heading button{font-size:24px;min-width:44px;min-height:44px}
.ulf-next-actions-panel>p{font-size:12px;color:#c8dce9}
.ulf-next-action-row{display:flex;flex-direction:column;gap:4px;padding:11px 0;
 border-bottom:1px solid #486384}
.ulf-next-action-row strong{font-size:14px;overflow-wrap:anywhere}
.ulf-next-action-row small{color:#f0d492}
.ulf-next-actions-panel button{cursor:pointer}
.ulf-next-action-row button{align-self:flex-start;min-height:44px;border-radius:5px;
 border:1px solid #f3de9a;background:#e6c477;color:#142b4d;font-weight:850;padding:9px 12px}
.ulf-next-actions-panel button:focus-visible,#ulf-next-actions-button:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(max-width:760px){
 body.ulf24-nav-active header.ulf113-header #ulf115ExitControls #ulf-next-actions-button{
 font:800 10px/1.2 system-ui,sans-serif;padding:8px 5px!important;min-height:38px}
}

/* Next patch: 390px actionability fix. The old two-column row let the status
   strip overlap the third header action. Use separate explicit grid rows. */
@media(max-width:760px){
 body.ulf24-nav-active header.ulf113-header{
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;gap:7px 8px!important;
 }
 body.ulf24-nav-active header.ulf113-header .logo,
 body.ulf24-nav-active header.ulf113-header .ulf114-brand{
  grid-column:1!important;grid-row:1!important;min-width:0!important;max-width:100%!important;
 }
 body.ulf24-nav-active header.ulf113-header #ulfBuyHeader{
  grid-column:2!important;grid-row:1!important;justify-self:end!important;
  max-width:100%!important;order:unset!important;margin:0!important;
 }
 body.ulf24-nav-active header.ulf113-header #ulf115ExitControls{
  grid-column:1 / -1!important;grid-row:2!important;
  width:100%!important;max-width:100%!important;flex:0 0 auto!important;
  box-sizing:border-box!important;justify-content:flex-start!important;flex-wrap:nowrap!important;
  min-width:0!important;position:relative;z-index:2;
 }
 body.ulf24-nav-active header.ulf113-header #ulf34-header-meta{
  grid-column:1 / -1!important;grid-row:3!important;
  width:100%!important;order:unset!important;position:relative;z-index:1;
 }
 body.ulf24-nav-active header.ulf113-header #ulf24-match-shortcut{
  grid-column:1 / -1!important;grid-row:4!important;
  order:unset!important;position:relative;
 }
}

/* Next patch: desktop 1280px matchweek banner must never cover Mail/Actions.
   Keep purchase indicator at top right, controls on their own line, then club summary. */
@media(min-width:761px){
 body.ulf24-nav-active header.ulf113-header{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important}
 body.ulf24-nav-active header.ulf113-header #ulfBuyHeader{
  order:2!important;margin-left:auto!important;flex:0 0 auto!important;
 }
 body.ulf24-nav-active header.ulf113-header #ulf115ExitControls{
  order:3!important;flex:1 1 100%!important;width:100%!important;max-width:100%!important;
  margin:0!important;justify-content:flex-end!important;position:relative;z-index:2;
 }
 body.ulf24-nav-active header.ulf113-header #ulf34-header-meta{
  order:4!important;flex:1 1 100%!important;width:100%!important;position:relative;z-index:1;
 }
 body.ulf24-nav-active header.ulf113-header #ulf24-match-shortcut{
  order:5!important;flex:1 1 100%!important;width:100%!important;position:relative;
 }
}

/* Desktop club sidebar is fixed at 236px; the header lives outside #root.
   Align its content with #root so the club title and matchweek stay readable. */
@media(min-width:901px){
 body.ulf24-nav-active header.ulf113-header{
  box-sizing:border-box!important;margin-left:236px!important;
  width:calc(100% - 236px)!important;max-width:calc(100% - 236px)!important;
 }
}
