
body.game-mode .screen-operations{gap:10px;overflow:hidden}
/* Native modal layers preserve the game's route and its saved data. */
body.game-mode .game-dialog{inset:16px;width:min(820px,calc(100vw - 32px));height:auto;max-height:calc(100dvh - 32px);padding:18px;background:var(--surface);color:var(--text);border:1px solid var(--control);border-radius:0;box-shadow:none}
body.game-mode .game-dialog[open]{display:flex;flex-direction:column;gap:14px;min-height:0}
.game-dialog header,.game-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.game-dialog header h2{font-size:19px;line-height:1.4;margin:0}.game-dialog button{min-height:44px}
.game-dialog footer{padding-top:12px;border-top:1px solid var(--border)}
.comparison-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain}
.comparison-table{width:100%;min-width:0;table-layout:fixed;white-space:normal}
.comparison-table th,.comparison-table td{padding:10px 7px;text-align:right;font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.comparison-table th:first-child{text-align:left;width:86px}.comparison-table thead{position:sticky;top:0;background:var(--surface)}
.comparison-table thead th{font-size:13px;font-weight:650;color:var(--text)}.comparison-table tbody th{font-size:12px;color:var(--muted)}
.comparison-table a{display:block;min-height:44px;align-content:center}
.progression-controls{flex:none;min-width:0;margin:0;padding:0;border:0}
.progression-choice{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;align-items:end}
.progression-choice label{min-width:0;display:grid;gap:3px;font-size:12px;color:var(--muted);margin:0}
.progression-choice label:first-child{grid-column:1/-1}.progression-choice select,.progression-choice input{width:100%;min-width:0;margin:0}
.progression-choice label[hidden]{display:none}.progression-choice label:first-child:has(+label[hidden]){grid-column:1}
body.game-mode .progression-choice input,body.game-mode .progression-choice select,body.game-mode .progression-choice button{min-height:44px;height:44px;padding:5px 8px;font-size:14px}
.progression-choice button{font-weight:700}
.progression-speed{margin:3px 0 0;font-size:12px;color:var(--muted)}
.progression-speed>summary{cursor:pointer;min-height:28px;align-content:center}
.progression-speed>label{display:flex;align-items:center;gap:12px}.progression-speed select{flex:1}
.progression-speed p{line-height:1.5;margin:6px 0;max-width:620px}
.progression-scope{font-size:11px;line-height:1.4;color:var(--muted);margin:2px 0 0;font-variant-numeric:tabular-nums}
.progression-review{overflow:auto;min-height:0;font-size:14px;line-height:1.6}
.progression-review>p:first-child{font-size:16px;font-weight:650}
.progression-review dl{margin:12px 0}.progression-review dl>div{display:flex;justify-content:space-between;gap:12px;border-block-end:1px solid var(--border);padding:12px 0}
.progression-review dt{color:var(--muted);flex:none}.progression-review dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.progression-review dd span{display:block;font-size:12px;color:var(--muted)}
.progression-warning{border-left:2px solid var(--accent-text);padding-left:12px}
/* Club operations: a work directory and a live command sheet, not a button grid. */
.operations-workspace{display:grid;grid-template-columns:184px minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:22px;flex:1;min-height:0;min-width:0}
.operations-directory{min-height:0;overflow-y:auto;padding-right:16px;border-right:1px solid var(--border)}
body.game-mode .operations-directory h2{font-size:12px;font-weight:500;color:var(--muted);margin:18px 0 5px}
body.game-mode .operations-directory section:first-child h2{margin-top:0}
.operations-directory a{display:flex;align-items:center;min-height:44px;border-left:2px solid transparent;padding:8px 10px;font-size:14px}
.operations-directory a[aria-current=page]{background:var(--raised);border-left-color:var(--accent);font-weight:700}
.operations-content{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden}
.operations-content>.scroll-block{min-height:0;flex:1}.operations-content>.scroll-block>.block-body{padding-right:6px;overflow-x:hidden}
.command-club{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:12px;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--border)}
.command-club>.crest,.command-club>.club-logo{width:56px;height:56px;margin:0;object-fit:contain}
body.game-mode .command-club h2{margin:0;font-size:21px;line-height:1.4}.command-club p{font-size:12px;color:var(--muted);margin:4px 0 0}
.command-record{display:grid;justify-items:end;gap:4px}.command-record b{font-size:32px;line-height:1;font-variant-numeric:tabular-nums}.command-record small{font-size:12px;font-weight:400;padding-left:4px}.command-record>span{font-size:13px;font-variant-numeric:tabular-nums}
.command-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:22px 28px;padding-top:16px}
.command-grid>section,.command-grid>details{min-width:0}
.command-progress{grid-row:span 2}
body.game-mode .command-grid h2{font-size:16px;font-weight:700;margin:0 0 10px;line-height:1.5}
.command-section-title{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.command-section-title a{font-size:12px;color:var(--muted);min-height:36px;align-content:center}
.command-next{display:grid;grid-template-columns:30px minmax(0,1fr);column-gap:8px;align-items:center;min-height:70px}
.command-next time{grid-column:1/-1;font-size:12px;color:var(--muted)}.command-next>.crest,.command-next>.club-logo{width:28px;height:28px;margin:0;object-fit:contain}
.command-next strong{font-size:20px;font-weight:700}.command-next small{grid-column:1/-1;line-height:1.5;font-size:12px;color:var(--muted)}
.command-played{font-size:12px;margin:10px 0;font-variant-numeric:tabular-nums;color:var(--muted)}.command-played b{color:var(--text)}
.command-link{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:6px;padding:10px 0;min-height:50px;border-bottom:1px solid var(--border);align-content:center}
.command-link strong{font-size:14px;line-height:1.5;font-weight:600}.command-link span{grid-column:1;font-size:12px;color:var(--muted);line-height:1.5}.command-link b{grid-column:2;grid-row:1/3;align-self:center;font-size:22px;font-weight:400;color:var(--muted)}
.command-finance{grid-column:1/-1;border-block:1px solid var(--border);padding:12px 0}
.command-finance dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;gap:16px 22px}.command-finance dl>div{min-width:0}.command-finance dt{font-size:12px;color:var(--muted)}.command-finance dd{font-size:18px;font-weight:650;margin:4px 0 0;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.command-events{grid-column:1/-1;font-size:13px}.command-events summary{min-height:44px;align-content:center;cursor:pointer}.command-events h3{font-size:14px}.command-events>a{display:flex;align-items:center;min-height:44px}
.command-scope{font-size:12px;color:var(--muted);margin-top:6px}.command-scope summary{min-height:32px;align-content:center;cursor:pointer}.command-scope p{font-size:12px;line-height:1.5}
.command-progress-status progress{width:100%;accent-color:var(--accent)}.command-progress-status p{font-size:12px}
@media(max-width:760px){
body.game-mode .screen-operations{gap:7px}
 body.game-mode .game-dialog{inset:calc(8px + var(--safe-top)) 8px calc(8px + var(--safe-bottom));width:calc(100vw - 16px);max-height:calc(100dvh - 16px - var(--safe-top) - var(--safe-bottom));padding:12px}
 .comparison-table th,.comparison-table td{padding:9px 4px;font-size:13px}.comparison-table th:first-child{width:72px}.comparison-table thead th{font-size:12px}
 .game-dialog footer{gap:8px}.game-dialog footer button{padding:6px 9px;font-size:13px}
 .progression-review dl>div:first-child{display:block}.progression-review dl>div:first-child dd{text-align:left;margin-top:4px}
 .progression-choice{gap:4px 6px}.progression-choice label{font-size:11px}.progression-choice label:first-child{grid-column:1/-1}
 body.game-mode .progression-choice select,body.game-mode .progression-choice input,body.game-mode .progression-choice button{font-size:12px;padding:4px 6px}
 .progression-scope{font-size:10px}.progression-speed{font-size:11px}.progression-speed>summary{min-height:26px}
 .progression-speed[open]{max-height:145px;overflow:auto}
 .operations-workspace{display:flex;flex-direction:column;gap:10px;min-height:0}
 .operations-directory{display:none}
 .operations-content{flex:1}
 .command-club{grid-template-columns:40px minmax(0,1fr);gap:9px;padding-bottom:12px}
 .command-club>.crest,.command-club>.club-logo{width:40px;height:40px}
 body.game-mode .command-club h2{font-size:18px}.command-club p{font-size:11px}
 .command-record{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--border);padding-top:9px}
 .command-record b{font-size:28px}.command-record>span{font-size:13px}
 .command-grid{grid-template-columns:minmax(0,1fr);gap:20px;padding-top:12px}.command-progress{grid-row:auto}.command-finance,.command-events{grid-column:auto}
 .command-finance dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.command-finance dd{font-size:17px}
 body.game-mode .screen-operations>.heading{padding-right:0;min-height:0;position:static;align-items:center}
 body.game-mode .screen-operations>.heading>.button{position:static;flex:none;width:auto;font-size:13px;min-height:44px}
 .command-scope p{font-size:11px}.command-next strong{font-size:18px}
}
@media(max-height:740px) and (max-width:760px){
 .progression-speed>summary{min-height:22px}.progression-scope{font-size:9px;line-height:1.2}
}
