/* Football workspace: fixed chrome, contextual sections and contained content. */
html:has(body.game-mode){height:100%;overflow:hidden;scroll-padding:0}
body.game-mode{height:100dvh;overflow:hidden;font-size:14px}
.game-mode .header,.game-mode .header-inner{height:54px}
.game-mode .header-inner{padding:0 20px}
.game-mode .header:after{display:none}
.game-mode .header .brand{font-size:10px}
.game-mode .header .brand-mark{height:30px;width:30px}
.game-mode .account-shell.family-shell{height:calc(100dvh - 54px);min-height:0;padding:0;margin:0;overflow:hidden}
.game-mode .account-workspace{display:flex;flex-direction:column;min-height:0;height:100%}
.game-mode .connection-panel{flex:none;margin:0!important;max-height:32dvh;overflow:auto}
.game-mode .family-shell #account-app.screen-mounted{padding:0;min-height:0;height:auto;flex:1;overflow:hidden}
.game-mode #account-app.screen-mounted:before{display:none}
.game-screen{height:100%;display:grid;grid-template-rows:52px auto var(--section-height,46px) minmax(0,1fr) 28px;min-width:0;min-height:0;background:var(--bg)}
.game-mode .game-screen .desk-nav.family-nav{position:static;order:0;width:100%;height:52px;min-height:0;display:flex;flex-direction:row;flex-wrap:nowrap;gap:0;align-items:stretch;padding:0 16px;margin:0;border:0;border-bottom:1px solid var(--line);background:var(--surface);overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin}
.game-mode .game-screen .desk-nav button{border:0;border-radius:0;flex:none;text-align:center;font-size:12px;min-height:44px;padding:0 14px;color:var(--muted);background:transparent;box-shadow:none}
.game-mode .game-screen .desk-nav button.active{color:var(--accent);background:var(--soft);box-shadow:inset 0 -3px var(--accent)}
.game-mode .game-screen .desk-nav button:hover{background:var(--soft);color:var(--text)}
.game-mode .game-screen .desk-nav button span{font-size:15px;width:auto}
.game-mode .game-screen .desk-manager,.game-mode .game-screen .desk-nav-foot{display:none}
.screen-shortcuts{display:flex;margin-left:auto;border-left:1px solid var(--line)}
.screen-title{padding:15px 22px 12px;position:relative;min-width:0;background:linear-gradient(110deg,var(--surface-2),var(--surface));border-bottom:1px solid var(--line)}
.game-mode .family-shell .screen-title h1{margin:3px 0 3px;font-size:25px;line-height:1.2;font-weight:750;letter-spacing:-.04em;max-width:75%}
.game-mode .family-shell .screen-title .intro{margin:0;font-size:12px;max-width:76%;line-height:1.5}
.screen-clock{position:absolute;right:22px;top:22px;font-size:11px;color:var(--accent);border:1px solid var(--line);background:var(--soft);padding:9px 12px;border-radius:3px}
.screen-title #account-error:not(:empty){margin:10px 0 0}
.screen-toolbar{min-width:0;border-bottom:1px solid var(--line);background:var(--surface)}
.screen-tabs{display:flex;gap:0;padding:0 10px;overflow-x:auto;height:100%;scrollbar-width:thin}
.game-mode .screen-tab{flex-shrink:0;background:none;border:0;border-bottom:2px solid transparent;color:var(--muted);padding:0 14px;min-height:44px;font-size:12px;white-space:nowrap}
.game-mode .screen-tab[aria-selected=true]{color:var(--accent);border-bottom-color:var(--accent);font-weight:700;background:var(--soft)}
.game-mode .screen-tab:hover{color:var(--text)}
.screen-picker{display:none}
.screen-content{min-height:0;min-width:0;overflow:hidden;padding:16px}
.screen-page{height:100%;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent;padding:2px}
.screen-page[hidden]{display:none!important}
.game-mode .family-shell .screen-page>.family-panel{margin:0;min-height:100%;padding:20px;border-radius:4px;background:var(--surface);box-shadow:none}
.game-mode .family-shell .family-panel{background:var(--surface)}
.game-mode .family-shell .family-panel:before{display:none}
.screen-page>.family-panel>h2{padding-bottom:12px;border-bottom:1px solid var(--line)}
.screen-page .family-panel p{font-size:13px;line-height:1.6}
.screen-page .family-panel .account-small{font-size:12px}
.screen-page .game-form{max-width:900px}
.screen-page .world-spaced{margin-top:16px}
.screen-page .account-field{font-size:12px;margin-bottom:12px}
.screen-page .account-field input,.screen-page .account-field select{min-height:40px;padding:8px 10px;font-size:14px;margin-top:5px}
.screen-page .account-workspace .primary{width:auto}
.screen-status{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 20px;border-top:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:10px;letter-spacing:.05em}
.game-mode .screen-page .desk-numbers{margin:0;background:var(--surface);border-top:1px solid var(--line);border-radius:4px;grid-column:1/-1}
.game-mode .screen-page .desk-numbers dd{color:var(--text)}
.screen-portal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:min-content;gap:14px;align-content:start}
.game-mode .screen-portal>.family-panel{min-height:0!important;margin:0!important}
.screen-portal>.journey-card{grid-column:1/-1}
.screen-portal>.family-panel:has(.profile-actions){grid-column:1/-1}
.screen-portal>.desk-columns{display:contents}
.game-mode .screen-portal .desk-fixture{padding:7px 0;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}
.game-mode .screen-portal .desk-deals li{padding:8px 0}
.screen-portal .desk-note{display:none}
.screen-page .desk-clubs{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.screen-page .desk-clubs .family-panel{margin:0}
.game-mode .screen-page .league-table th{background:var(--surface-2);color:var(--muted)}
.game-mode .screen-page .league-table tbody tr:nth-child(even){background:var(--surface-2)}
.game-mode .screen-page .league-table td,.game-mode .screen-page .league-table th{padding:7px 10px;font-size:12px}
.game-mode .screen-page .league-table thead{position:sticky;top:0;z-index:1}
.game-mode .screen-page .squad-table button{min-height:32px;font-size:13px;padding:3px 0;text-align:left}
.game-mode .screen-page .squad-table th small{font-size:10px}
.game-mode .screen-page .account-workspace .button,.game-mode .screen-page .button{background:var(--surface-2);color:var(--text);border-color:var(--line)}
.game-mode .screen-page .button.primary{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}
.screen-page .family-form{max-width:900px;margin:0 auto}
@media(min-width:1150px){
 .screen-page:has(#squad-board)>.family-panel{height:100%;display:flex;flex-direction:column;overflow:hidden}
 .screen-page #squad-board{display:grid;grid-template-columns:minmax(0,1fr) 310px;grid-template-rows:auto auto auto minmax(100px,1fr);column-gap:20px;min-height:0;flex:1}
 #squad-board>*{grid-column:1;min-width:0}
 .game-mode .screen-page #squad-player-detail{grid-column:2;grid-row:1/5;border:1px solid var(--line);background:var(--surface-2);border-radius:4px;padding:16px;margin:0;overflow:auto;scrollbar-width:thin}
 .screen-page #squad-player-detail h3{font-size:18px;color:var(--accent);line-height:1.35}
 .screen-page .squad-scroll{min-height:0;overflow:auto;margin:6px 0}
 .screen-page .squad-table{min-width:600px}
 .screen-page .squad-board-tools{gap:9px}
 .screen-page .squad-board-tools .account-field{flex-basis:130px}
 .screen-page #squad-board .skills-groups{grid-template-columns:1fr}
}
@media(max-width:760px){
 .game-mode .header,.game-mode .header-inner{height:46px}
 .game-mode .account-shell.family-shell{height:calc(100dvh - 46px);min-height:0}
 .game-screen{grid-template-rows:48px auto var(--section-height,48px) minmax(0,1fr) 24px}
 .game-mode .game-screen .desk-nav.family-nav{height:48px;padding:0 6px}
 .game-mode .game-screen .desk-nav button{padding:0 11px;font-size:12px}
 .screen-title{padding:10px 14px}
 .game-mode .family-shell .screen-title h1{font-size:21px;max-width:none}
 .game-mode .family-shell .screen-title .intro{display:none}
 .screen-clock{position:static;display:block;border:0;background:none;padding:0;margin:0 0 5px;font-size:10px}
 .screen-tabs{display:none}
 .screen-picker{display:block;width:calc(100% - 24px);height:40px;margin:4px 12px;border:1px solid var(--line);border-radius:3px;background:var(--surface-2);color:var(--text);padding:0 10px;font:inherit}
 .screen-content{padding:8px}
 .game-mode .family-shell .screen-page>.family-panel{padding:14px}
 .screen-portal{grid-template-columns:1fr}
 .screen-portal>*{grid-column:1!important}
 .screen-status{padding:0 10px;font-size:9px}
 .screen-status span:first-child{display:none}
 .screen-status span:last-child{margin-left:auto}
 .game-mode .screen-page .button{min-height:44px}
 .game-mode .screen-page .squad-table button{min-height:44px}
 .screen-shortcuts{margin-left:0}
}

.screen-explainer{font-size:11px;color:var(--muted);margin-bottom:8px}
.screen-explainer summary{cursor:pointer;padding:5px 0}
.screen-title>button{margin:5px 0 0;font-size:11px;min-height:28px}
@media(min-width:761px){
 .game-mode .screen-title>button{position:absolute;right:22px;bottom:10px;min-height:26px;padding:3px 8px;margin:0;font-size:10px}
 .screen-title:has(>button){min-height:95px}
}
@media(min-width:1150px){
 .game-mode .screen-page:has(#squad-board)>.family-panel{padding:14px 18px}
 .game-mode .screen-page:has(#squad-board)>.family-panel>h2{margin:0 0 8px;padding-bottom:8px;font-size:15px}
 .game-mode .screen-page:has(#squad-board)>.family-panel>.account-notice{font-size:11px;padding:4px 8px;margin:5px 0 0;flex:none}
 .game-mode #squad-board{grid-template-rows:auto auto auto minmax(0,1fr);overflow:hidden}
 .game-mode #squad-board #squad-count{margin:4px 0 0;font-size:11px}
 .game-mode #squad-board .account-field{margin-bottom:0}
 .game-mode #squad-board .screen-explainer{margin:0;max-height:110px;overflow:auto}
 .game-mode #squad-board .screen-explainer summary{padding:0}
 .game-mode #squad-board .squad-table caption{font-size:10px;padding:5px 8px}
 .game-mode #squad-board .squad-table th{font-size:10px}
}
.screen-page #team-shape>details>summary{display:none}
.screen-page #team-shape .formation-pitch{width:250px;max-width:100%;margin:10px auto}
@media(min-width:1000px){
 .screen-page #team-shape .game-form{display:grid;grid-template-columns:minmax(270px,1fr) minmax(230px,1fr);grid-template-rows:auto auto 1fr;column-gap:28px;max-width:1000px}
 .screen-page #team-shape [data-shape-preview]:not([hidden]){grid-column:1;grid-row:1/4;border:1px solid var(--line);padding:12px;background:var(--surface-2)}
 .screen-page #team-shape [data-shape-preview]>p:first-child{margin-top:0}
 .screen-page #team-shape .account-field,.screen-page #team-shape .account-notice,.screen-page #team-shape button{grid-column:2;align-self:start}
 .screen-page #team-shape .account-notice{margin:0 0 16px}
 .screen-page #team-shape button{justify-self:start}
}
.game-mode .family-shell .screen-paired>.family-panel{min-height:0;margin-bottom:14px}
@media(min-width:1000px){
 .screen-paired:has(.youngster-card){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-content:start}
}
.game-mode .header .brand-mark{color:var(--accent-ink)}
.screen-page>form,.screen-page>.family-age,.screen-page>.account-notice,.screen-page>.account-small{max-width:900px}
.screen-page:has(>form){padding:18px}
.screen-position-key{font-size:11px;color:var(--muted)}
.screen-position-key summary{cursor:pointer}
@media(min-width:1000px) and (max-height:849px){
 .game-mode .screen-page>#team-shape{padding:14px 20px}
 .screen-page #team-shape>.eyebrow{display:none}
 .game-mode .screen-page #team-shape>h2{font-size:16px;margin:0 0 6px;padding-bottom:6px}
 .game-mode .screen-page #team-shape>p{font-size:12px;line-height:1.4;margin:6px 0 12px}
 .screen-page #team-shape .formation-pitch{width:180px;margin:6px auto}
 .game-mode .screen-page #team-shape [data-shape-preview]>p{font-size:11px;line-height:1.4;margin:0 0 6px}
 .game-mode .screen-page #team-shape .account-notice{font-size:12px;line-height:1.5}
}

.screen-single-section{--section-height:0px}
.screen-single-section .screen-toolbar{visibility:hidden;overflow:hidden}
.game-mode .family-shell .game-screen[data-view="parent-exercise"] .screen-title .intro{display:block;max-width:75%}
@media(max-width:760px){.game-mode .family-shell .game-screen[data-view="parent-exercise"] .screen-title .intro{max-width:none}}

/* Trial desk: one shortlist and one player file, within the game frame. */
.game-mode .screen-page:has(>.trial-desk){overflow:hidden}
.game-mode .family-shell .screen-page>.trial-desk{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:12px 16px;gap:8px}
.game-mode .screen-page>.trial-desk>h2{font-size:16px;margin:0;padding:0 0 8px;flex:none}
.trial-rules{font-size:12px;flex:none;color:var(--muted)}
.trial-rules>summary{cursor:pointer;min-height:32px;display:list-item;align-content:center;color:var(--accent)}
.trial-rules>div{max-height:130px;overflow:auto;border:1px solid var(--line);padding:8px 12px}
.trial-rules>div>p:first-child{margin-top:0}
.trial-desk>.trial-deadline{margin:0;font-size:11px!important;color:var(--muted);flex:none}
.trial-desk>.account-notice{font-size:12px!important;margin:0;padding:6px 10px;max-height:80px;overflow:auto;flex:none}
.trial-layout{flex:1;min-height:0;min-width:0;display:grid;grid-template-columns:minmax(280px,1.15fr) minmax(270px,1fr);gap:16px;overflow:hidden}
.trial-list{display:flex;flex-direction:column;min-height:0;min-width:0;gap:8px}
.trial-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;flex:none}
.trial-tools .account-field{min-width:0;margin:0!important}
.trial-tools input,.trial-tools select{width:100%;min-width:0}
.trial-count-row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex:none}
.trial-count-row p{margin:0}
.trial-count-row button{font-size:12px;min-height:32px}
.trial-table-scroll{min-height:0;overflow:auto;flex:1;border:1px solid var(--line);scrollbar-width:thin}
.trial-table{width:100%;min-width:0!important}
.trial-table th:first-child{width:60%;white-space:normal}
.trial-table th small{display:block;font-weight:400;color:var(--muted);font-size:11px}
.trial-table button{min-height:38px;text-align:left;font-size:13px}
.trial-table .trial-selected{outline:2px solid var(--accent);outline-offset:-2px}
.trial-table caption{text-align:left;padding:8px;font-size:11px;color:var(--muted)}
.trial-file{min-width:0;min-height:0;overflow:auto;border:1px solid var(--line);background:var(--surface-2);padding:14px;scrollbar-width:thin}
.trial-file h3{font-size:22px;line-height:1.2;margin:10px 0 8px;color:var(--accent)}
.trial-file>.eyebrow{font-size:10px!important;margin:0 0 12px}
.trial-file .trial-player-meta{font-size:12px!important}
.trial-skill-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--line);margin:12px 0}
.trial-skill-strip>div{padding:8px;text-align:center;min-width:0}
.trial-skill-strip span{display:block;font-size:10px;color:var(--muted)}
.trial-skill-strip strong{display:block;font-size:20px;color:var(--text)}
.trial-file .game-form,.trial-list>.game-form{margin:0;flex:none}
.trial-file .game-form button,.trial-list>.game-form button{width:100%;min-height:44px}
.trial-empty{padding:12px}
.trial-table-scroll:focus-visible,.trial-file [data-trial-title]:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
@media(max-width:900px){
 .trial-layout{grid-template-columns:minmax(0,1fr)}
 .trial-layout .trial-file{display:none}
 .trial-layout.trial-has-player .trial-list{display:none}
 .trial-layout.trial-has-player .trial-file{display:block}
 .game-mode .family-shell .screen-page>.trial-desk{padding:10px;gap:6px}
 .trial-tools{gap:8px}
 .trial-tools .account-field{font-size:11px}
 .trial-tools select,.trial-tools input{font-size:12px!important}
 .trial-table button{min-height:44px}
 .trial-rules>div{max-height:100px}
 .trial-file{padding:10px}
}
@media(max-height:600px){
 .game-mode .screen-page:has(>.trial-desk){overflow:auto}
 .game-mode .family-shell .screen-page>.trial-desk{min-height:350px;height:100%}
}

.trial-rules>summary{font-size:11px;min-height:28px}
.trial-rules .trial-deadline{float:right;margin-left:10px;color:var(--muted);font-size:11px;font-weight:400}
.trial-rules .game-form{margin:8px 0 0}
.game-mode .trial-count-row p{font-size:11px}
.trial-count-row button{min-height:24px;padding:0}
.game-mode .screen-page .trial-table th[scope=row]{text-transform:none;letter-spacing:normal;text-align:left}
.game-mode .screen-page .trial-table th small{font-size:10px}
@media(max-width:550px){.trial-rules .trial-deadline{float:none;display:block;margin:4px 0 2px}}

/* Keep the football visible before optional matchday explanations. */
.match-centre-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 6px}
.football-help{border-bottom:1px solid var(--line);margin:4px 0 12px;min-width:0}
.football-help>summary{cursor:pointer;min-height:44px;display:list-item;align-content:center;font-size:12px;font-weight:600;color:var(--muted)}
.football-help>summary:hover{color:var(--text)}
.football-help>summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.football-help[open]{padding-bottom:10px}
.football-help p{max-width:78ch}
.game-mode .match-centre .match-list{margin:12px 0 0;gap:12px;align-items:start}
.game-mode .match-centre .match-card{padding:14px;border-radius:4px;background:var(--surface-2)}
.game-mode .match-centre .match-card>p{margin:6px 0}
.game-mode .match-centre .match-card .match-heading .eyebrow{margin:0 0 4px;font-size:10px}
.game-mode .match-centre .match-score{font-size:28px;line-height:1.1}
.game-mode .match-centre-actions .button{min-height:44px;font-size:12px;padding:8px 12px}
.game-mode .competition-panel .season-intake{margin:8px 0}
.game-mode .competition-panel .season-block{margin-top:10px;padding-top:8px}
.game-mode .competition-panel .season-rules{margin:0 0 8px}
.game-mode .competition-panel .league-scroll{margin:8px 0 16px}
@media(min-width:1000px){.game-mode .match-centre .match-list{grid-template-columns:repeat(2,minmax(0,1fr))}.game-mode .match-centre .match-card:has(details[open]){grid-column:1/-1}}
@media(max-width:760px){.game-mode .match-centre .match-card{padding:12px}.game-mode .match-centre-actions{margin-top:8px}.game-mode .match-centre .match-heading time{font-size:12px}}

@media(max-width:600px){.game-mode .league-table .league-points{position:sticky;right:0;background:var(--surface-2);box-shadow:-1px 0 0 var(--line)}.game-mode .league-table thead .league-points{z-index:2}}

/* Compare a family's next club inside the game panel, including narrow phones. */
.transfer-comparison{width:100%;table-layout:fixed;border-collapse:collapse;font-size:.85rem;margin:1rem 0}
.transfer-comparison caption{text-align:left;font-weight:700;padding-bottom:.65rem}
.transfer-comparison th,.transfer-comparison td{padding:.65rem .4rem;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.transfer-comparison th:first-child{width:29%}
.transfer-comparison small{font-weight:400}

/* Short windows and landscape phones need room for the football, not repeated chrome. */
@media(max-height:520px){
 .game-mode .header,.game-mode .header-inner{height:44px}
 .game-mode .header #theme-toggle{min-height:44px;min-width:44px}
 .game-mode .account-shell.family-shell{height:calc(100dvh - 44px)}
 .game-mode .game-screen{grid-template-rows:48px auto var(--section-height,48px) minmax(0,1fr) 0}
 .game-mode .game-screen .desk-nav.family-nav{height:48px}
 .game-mode .screen-title{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px;padding:6px 14px}
 .game-mode .screen-title>.eyebrow,.game-mode .screen-title>.intro,.game-mode .screen-status{display:none}
 .game-mode .family-shell .screen-title h1{grid-column:1;grid-row:1;max-width:none;margin:0;font-size:20px}
 .game-mode .screen-clock{position:static;grid-column:2;grid-row:1;max-width:170px;margin:0;padding:4px 6px;font-size:10px}
 .game-mode .screen-title:has(>button){min-height:0}
 .game-mode .screen-title>button{position:static;grid-column:1/-1;justify-self:start;min-height:44px;margin:0;padding:6px 10px}
 .game-mode .screen-title>#account-error,.game-mode .screen-title>.intro{grid-column:1/-1;margin:0}
 .game-mode .screen-title>#account-error:empty{display:none}
 .game-mode .screen-content{padding:6px}
 .game-mode .family-shell .screen-page>.family-panel{padding:12px}
 .game-mode .screen-page .account-field input,.game-mode .screen-page .account-field select{min-height:44px}
}
@media(max-height:520px) and (max-width:480px){
 .game-mode .screen-title{grid-template-columns:minmax(0,1fr)}
 .game-mode .screen-clock{grid-column:1;grid-row:2;max-width:none;padding:0;background:none;border:0}
}

/* Preserve usable roster rows when a wide window is too short for split panes. */
@media(min-width:1150px) and (max-height:600px){
 .game-mode .family-shell .screen-page:has(#squad-board)>.family-panel{min-height:400px;height:100%}
}


.screen-navigation{display:contents}
.screen-compact-title,.screen-menu-toggle,.screen-practice-context{display:none}
/* Keep football and forms usable when zoom or a short window leaves little height. */
@media(max-height:320px){
 .screen-practice-context{display:block;padding:8px 0}
 .game-mode .screen-practice-context h2{font-size:17px;line-height:1.4;margin:0 0 6px}
 .game-mode .screen-practice-context p{font-size:12px;line-height:1.4;margin:0}
 .game-mode .game-screen{grid-template-rows:72px minmax(0,1fr)}
 .game-mode .screen-navigation{display:none}
 .game-mode .screen-toolbar,.game-mode .screen-single-section .screen-toolbar{grid-row:1;display:grid;grid-template-columns:116px minmax(0,1fr);grid-template-rows:24px 48px;visibility:visible;overflow:hidden}
 .game-mode .family-shell .screen-compact-title{display:block;grid-column:1/-1;grid-row:1;font-size:13px;line-height:20px;padding:2px 12px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .game-mode .screen-menu-toggle{display:block;grid-column:1;grid-row:2;min-height:44px;margin:2px 4px 2px 8px;padding:4px 8px;font-size:12px;border:1px solid var(--line);background:var(--surface-2);color:var(--text)}
 .game-mode .screen-tabs{display:none}
 .game-mode .screen-picker{display:block;grid-column:2;grid-row:2;min-width:0;width:calc(100% - 12px);height:44px;margin:2px 8px 2px 4px;padding:0 6px;font:inherit;background:var(--surface-2);color:var(--text);border:1px solid var(--line)}
 .game-mode .screen-single-section .screen-picker{display:none}
 .game-mode .screen-content{grid-row:2}
 .game-mode .screen-menu-open .screen-content{display:none}
 .game-mode .screen-menu-open .screen-navigation{display:block;grid-row:2;overflow:auto;min-height:0;overscroll-behavior:contain}
 .game-mode .screen-menu-open .desk-nav.family-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));height:auto;width:auto;overflow:visible;white-space:normal;gap:2px;padding:4px 8px}
 .game-mode .screen-menu-open .desk-nav button{white-space:normal;min-width:0;min-height:44px;text-align:left;padding:6px 8px}
 .game-mode .screen-menu-open .screen-shortcuts{display:contents}
 .game-mode .screen-menu-open .screen-title{padding:8px 12px}
 .game-mode .screen-menu-toggle:focus-visible,.game-mode .screen-compact-title:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
}
