/* Touch-first structure; desktop retains its full navigation and competition rail. */
.studio-mobile-only{display:none}
body.studio-sheet-open{overflow:hidden}
@media(min-width:721px){html body.centre-page .top-nav>.studio-more{display:none}}
.studio-mobile-sheet{width:min(480px,100%);max-height:min(78dvh,700px);max-width:100%;margin:auto auto 0;padding:20px 20px calc(20px + env(safe-area-inset-bottom));border:1px solid var(--line);border-radius:8px 8px 0 0;background:var(--paper);color:var(--ink);box-shadow:0 -12px 48px #0002;overflow:auto;overscroll-behavior:contain}
.studio-mobile-sheet::backdrop{background:#09130e80;backdrop-filter:blur(3px)}
.studio-mobile-sheet>header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:10px}
.studio-mobile-sheet h2{font-size:19px;margin:0;line-height:1.4}
.studio-mobile-sheet [data-studio-sheet-close]{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);cursor:pointer;flex:none}
.studio-mobile-sheet svg{width:19px;height:19px;flex:none}
.studio-sheet-options{display:grid;gap:4px}
html body.centre-page .studio-sheet-options>:is(button,a){display:flex;align-items:center;gap:12px;min-height:52px;width:100%;padding:12px;border:0;border-radius:5px;background:transparent;color:var(--ink);text-align:left;font:inherit;font-size:14px;text-decoration:none;cursor:pointer;white-space:normal}
.studio-sheet-options>.selected,.studio-sheet-options>.active{background:var(--green-soft);color:var(--green)}
.studio-sheet-options .league-number,.studio-sheet-options .all-leagues>span{margin-left:auto}
.studio-sheet-options img{width:24px;height:22px;object-fit:contain;flex:none}
@media(max-width:720px){
  html body.centre-page{padding-bottom:calc(76px + env(safe-area-inset-bottom))}
  html body.centre-page .header{position:sticky;top:0;z-index:35}
  html body.centre-page .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;height:68px;min-height:68px;padding:10px 14px;gap:8px;align-items:center}
  html body.centre-page .goldenstats-navbar-logo{width:145px;max-width:100%}
  html body.centre-page .brand{min-width:0;margin:0}
  html body.centre-page .brand>small{display:none}
  html body.centre-page .header-end{display:flex;align-items:center;gap:4px;min-width:0;margin:0}
  html body.centre-page .header-end :is(.icon-button,.account-button,.member-gift){width:36px;height:40px;min-height:40px;min-width:36px;padding:0;display:inline-grid;place-items:center;flex:none}
  html body.centre-page .header-end :is(#admin-link,#refresh){display:none}
  html body.centre-page .account-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  html body.centre-page .layout{padding:18px 12px 28px}
  html body.centre-page .layout>.sidebar{display:none}
  html body.centre-page #main>.studio-sports{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0;margin:0 0 12px;overflow:visible}
  html body.centre-page .studio-sports button{min-height:46px;padding:8px 6px;gap:6px;font-size:12px;border-radius:5px}
  html body.centre-page .studio-leagues{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:10px 12px;margin:0 0 22px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px;text-align:left;cursor:pointer}
  html body.centre-page .studio-leagues[hidden]{display:none}
  .studio-leagues svg{width:17px;height:17px;flex:none;color:var(--muted)}
  .studio-leagues span{flex:1;min-width:0;overflow-wrap:anywhere}
  html body.centre-page .page-heading{gap:14px;padding:0 0 20px;min-width:0}
  html body.centre-page .page-heading h1{font-size:26px;line-height:1.25;margin-block:5px}
  html body.centre-page .page-heading p{font-size:12px;line-height:1.5}
  html body.centre-page .today-button{min-height:44px;padding:10px 12px;flex:none}
  html body.centre-page .calendar-section-heading{min-height:44px;margin:0;padding:0 0 8px;gap:10px}
  html body.centre-page #calendar-open{min-height:44px;padding:8px;font-size:11px}
  html body.centre-page .calendar-toolbar{padding:4px 0;gap:0}
  html body.centre-page .calendar-toolbar>.icon-button{width:36px;min-width:36px;height:48px;padding:0;flex:none}
  html body.centre-page .date-strip{grid-template-columns:repeat(5,minmax(0,1fr));gap:1px}
  html body.centre-page .date-strip>.day:first-child,html body.centre-page .date-strip>.day:last-child{display:none}
  html body.centre-page .day{height:62px;min-height:44px;padding:6px 0}
  html body.centre-page .day strong{font-size:21px}
  html body.centre-page .day>span{font-size:10px}
  html body.centre-page .journey-overview{padding:18px 0;gap:10px}
  html body.centre-page .journey-overview .overview-icon{display:none}
  html body.centre-page .journey-overview>div{padding:0 8px 0 0}
  html body.centre-page .journey-overview strong{font-size:23px}
  html body.centre-page .journey-overview small{font-size:11px;line-height:1.5;white-space:normal}
  html body.centre-page .match-controls{margin:12px 0;overflow:hidden}
  html body.centre-page .segments{gap:4px;padding:0 0 3px;scroll-snap-type:x proximity}
  html body.centre-page .segments button{min-height:44px;padding:10px 12px;font-size:11px;scroll-snap-align:start;flex:none}
  html body.centre-page .search{height:48px;padding-inline:12px;gap:10px}
  html body.centre-page .search input{font-size:16px;min-width:0;width:100%}
  html body.centre-page .search kbd{display:none}
  html body.centre-page .results-heading{margin-top:24px;gap:8px}
  html body.centre-page .results-heading h2{font-size:14px;flex:1;min-width:130px}
  html body.centre-page #visible-count{font-size:10px;margin:0}
  .studio-view-switch{display:none}
  html body.centre-page .league-section{margin:20px 0 24px}
  html body.centre-page .league-section-header{gap:8px;min-height:32px;padding-bottom:10px}
  html body.centre-page .league-section-header h2{font-size:12px;min-width:0;overflow-wrap:anywhere}
  html body.centre-page .match-row,html body.centre-page[data-fixture-layout=grid] .match-row{min-height:92px;display:flex}
  html body.centre-page .match-main,html body.centre-page[data-fixture-layout=grid] .match-main{display:grid;grid-template-columns:40px minmax(0,1fr);padding:14px 6px 14px 10px;gap:10px;min-width:0;min-height:90px}
  html body.centre-page .match-time{min-width:0;font-size:10px}
  html body.centre-page .match-teams{min-width:0;gap:10px}
  html body.centre-page .team-line{font-size:12px;gap:7px}
  html body.centre-page .team-line .crest{width:22px;height:22px}
  html body.centre-page .team-line .name{white-space:normal;overflow-wrap:anywhere;line-height:1.4;min-width:0}
  html body.centre-page .team-line .goals{width:24px;min-width:24px;height:25px;font-size:15px}
  html body.centre-page .match-row>.star-button{width:40px;min-width:40px;height:44px;align-self:center;padding:8px;margin:0 2px 0 0}
  html body.centre-page .match-row>.score-follow{width:34px;min-width:34px;height:44px;padding:7px;margin:0;align-self:center}
  html body.centre-page .top-nav{position:fixed;inset:auto 0 0;width:100%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;min-height:64px;margin:0;padding:5px 6px calc(5px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);z-index:40;box-shadow:0 -4px 18px #00000008;overflow:visible}
  html body.centre-page .top-nav>:is([data-view=data],[data-view=bank],[data-view=membership]){display:none}
  html body.centre-page .top-nav>:is(button,a){display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:7px 2px;min-width:0;min-height:52px;font-size:10px;line-height:1.2;white-space:nowrap}
  html body.centre-page .top-nav svg{width:20px;height:20px}
  html body.centre-page .top-nav #favorite-count{display:none}
  html body.centre-page .top-nav .studio-more{display:flex}
  html body.centre-page .detail.mobile-open{inset:0;top:0;width:100%;height:100dvh;max-height:100dvh;padding:16px 16px calc(22px + env(safe-area-inset-bottom));overscroll-behavior:contain;scroll-padding-top:54px}
  html body.centre-page .detail.mobile-open .detail-heading{position:sticky;top:-16px;background:var(--page);z-index:2;min-height:48px;padding-block:10px;display:flex;align-items:center;justify-content:space-between}
  html body.centre-page .detail.mobile-open [data-close]{width:44px;min-width:44px;height:44px}
  html body.centre-page .detail.mobile-open .detail-analysis-cta{min-height:52px}
  html body.match-page .match-header-inner{padding:10px 14px;gap:12px;min-height:68px}
  html body.match-page .match-header nav{overflow:auto;justify-content:flex-start;scrollbar-width:thin}
  html body.match-page .match-header nav a{min-height:44px;padding:8px;font-size:11px;white-space:nowrap}
  html body.match-page main#analysis{padding:22px 12px 40px}
  html body.match-page main#analysis>h1{font-size:23px;line-height:1.35;overflow-wrap:anywhere}
  html body.match-page .match-tabs{position:static;margin:22px 0;padding:0 6px;gap:8px;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
  html body.match-page .match-tabs button{min-height:52px;padding-inline:10px;font-size:12px;scroll-snap-align:start}
  html body.match-page .nba-player-grid{grid-template-columns:minmax(0,1fr);gap:10px}
  html body.match-page .nba-prop-choice{min-height:90px;padding:12px}
  html body.match-page :is(input:not([type=checkbox]),select,textarea){font-size:16px;min-height:44px;max-width:100%}
  html body.match-page .nba-prop-switch button{min-height:44px}
  html body.match-page .nba-prop-back{min-height:48px}
  html body.centre-page .calendar-dialog{width:calc(100% - 24px);max-width:420px;padding:18px;max-height:90dvh;overflow:auto}
  html body.centre-page .calendar-dialog .month-day{min-height:40px}
  html body.centre-page .calendar-direct-date input{min-height:44px;font-size:16px}
  html body.centre-page .auth-dialog{max-height:90dvh;overflow:auto;overscroll-behavior:contain}
  html body.centre-page .auth-dialog :is(input:not([type=checkbox]),select){font-size:16px;min-height:46px}
  html body.centre-page .advertising-infeed{margin:18px 0}
  html body.centre-page .footer{padding-bottom:24px}
}
@media(max-width:350px){html body.centre-page .goldenstats-navbar-logo{width:118px}html body.centre-page .header-inner{padding-inline:12px}html body.centre-page .header-end{gap:2px}html body.centre-page .header-end :is(.icon-button,.account-button,.member-gift){width:34px;min-width:34px}html body.centre-page .team-line{font-size:11px}html body.centre-page .match-row>.score-follow{width:30px;min-width:30px;padding:5px}}
@media(max-width:720px){
  html body.centre-page .studio-leagues{margin-bottom:16px}
  html body.centre-page .page-heading{padding-bottom:10px}
  html body.centre-page .page-heading p{margin-top:4px}
  html body.centre-page .calendar-section-heading{min-height:36px}
  html body.centre-page #calendar-open{min-height:36px}
  html body.centre-page .day{height:58px}
  html body.centre-page .journey-overview{padding:14px 0;gap:8px}
  html body.centre-page .journey-overview>div>span:last-child{display:flex;align-items:center;gap:7px;min-width:0}
  html body.centre-page .journey-overview strong{font-size:20px}
  html body.centre-page .journey-overview small{font-size:10px}
  html body.centre-page .match-controls{margin-block:8px}
  html body.centre-page .results-heading{margin-top:18px}
  html body.centre-page .league-section{margin-top:14px}
  html body.centre-page .top-nav .studio-more span{position:static;display:block;background:transparent;color:inherit;border:0;padding:0;margin:0;width:auto;height:auto;min-width:0;font-size:10px;line-height:1.2}
  .studio-mobile-sheet>header{position:sticky;top:-20px;background:var(--paper);z-index:1}
  html body.match-page main#analysis>.scoreboard{grid-template-columns:minmax(0,1fr) 120px minmax(0,1fr);gap:8px;padding:22px 10px}
  html body.match-page main#analysis>.scoreboard .score{font-size:22px;white-space:nowrap;line-height:1.3}
  html body.match-page main#analysis>.scoreboard .team img{width:52px;height:52px;max-width:100%;object-fit:contain}
  html body.match-page main#analysis>.scoreboard .team strong{font-size:12px;line-height:1.4}
}
