/* Desktop dialogs: the painted perimeter is decoration, never a content gutter. */
@media(min-width:1100px) and (min-height:650px){
 #dialog.game-screen:not([data-view=loadout]){width:min(1400px,96vw);max-width:96vw!important;height:min(900px,94dvh);max-height:94dvh!important;min-height:0;padding:12px!important;display:flex;flex-direction:column;gap:0;border-radius:12px;overflow:hidden;box-sizing:border-box}
 #dialog.game-screen:not([data-view=loadout])>.screen-header{position:relative;flex:none;min-height:66px;padding:10px 20px;gap:20px;margin:0}
 #dialog.game-screen:not([data-view=loadout]) .screen-identity{min-width:0;gap:12px}
 #dialog.game-screen:not([data-view=loadout]) .screen-emblem{width:42px;height:42px;flex:none}
 #dialog.game-screen:not([data-view=loadout]) .ui-emblem-art{width:40px;height:40px}
 #dialog.game-screen:not([data-view=loadout]) .screen-header h2{font-size:23px!important;line-height:1.35;margin:0;letter-spacing:1px}
 #dialog.game-screen:not([data-view=loadout]) .screen-path{font-size:11px;line-height:1.4;margin:0 0 3px}
 #dialog.game-screen:not([data-view=loadout]) .screen-back{min-height:38px;padding:8px 14px;min-width:0;white-space:nowrap;border-radius:7px;font-size:13px;line-height:1.4;flex:none}
 #dialog.game-screen:not([data-view=loadout])>.screen-steps{flex:none;padding:3px 20px;min-height:32px;gap:16px;margin:0}
 #dialog.game-screen:not([data-view=loadout])>.screen-steps span{font-size:12px;line-height:1.4;padding:5px 8px}
 #dialog.game-screen:not([data-view=loadout])>.screen-body{position:relative;flex:1;min-height:0;min-width:0;padding:16px 20px;scrollbar-gutter:auto;overflow:auto}
 #dialog.game-screen:not([data-view=loadout])>.screen-footer{position:relative;inset:auto;flex:none;min-height:66px;padding:12px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;width:auto;text-align:left}
 #dialog.game-screen:not([data-view=loadout])>.screen-footer>p{flex:1;min-width:0;max-width:62%;font-size:12px;line-height:1.6;margin:0;color:#6f644c}
 #dialog.game-screen:not([data-view=loadout])>.screen-footer .dialog-actions{display:flex;flex-wrap:nowrap;gap:12px;margin:0;align-items:center;justify-content:flex-end;flex:none}
 #dialog.game-screen:not([data-view=loadout])>.screen-footer :is(button,a){min-height:42px;min-width:0;font-size:14px!important;padding:10px 20px!important;line-height:1.5;letter-spacing:0;margin:0;white-space:nowrap}
 #dialog.game-screen:not([data-view=loadout])>.screen-footer .primary{min-width:150px}
 #dialog.game-screen :is(button,a,input,select,summary):focus-visible{outline:3px solid #357c70!important;outline-offset:3px!important}
 #dialog.game-screen:not([data-view=loadout]) :is(.screen-utility,.dialog-actions){gap:12px}
 #dialog.game-screen:not([data-view=loadout]) [hidden]{display:none!important}
 #dialog.game-screen:is([data-view=pause],[data-view=quit],[data-view=replace],[data-view=siteintro],[data-view=side]){width:min(880px,90vw);height:auto;max-height:90dvh!important}
 #dialog.game-screen:is([data-view=pause],[data-view=quit],[data-view=replace])>.screen-body{padding:20px}
 #dialog.game-screen:is([data-view=pause],[data-view=quit]) .popup-vignette{min-height:215px;margin:0 0 16px;padding:24px;--scene-height:215px}
 #dialog.game-screen:is([data-view=pause],[data-view=quit]) .popup-copy{width:65%}
 #dialog.game-screen:is([data-view=pause],[data-view=quit]) .popup-title{font-size:24px!important;margin:0 0 12px!important}
 #dialog.game-screen:is([data-view=pause],[data-view=quit]) .popup-vignette .sub{font-size:15px;line-height:1.8;margin:0}
 #dialog.game-screen:is([data-view=pause],[data-view=quit]) .rest-illustration{right:20px;bottom:16px;width:180px;height:170px}
 #dialog.game-screen:is([data-view=pause],[data-view=quit]) .rest-illustration .ui-illustration{width:180px;height:170px}
 #dialog.game-screen:is([data-view=pause],[data-view=quit]) .screen-utility{display:flex;gap:12px;margin:0;justify-content:flex-start}
 #dialog.game-screen:is([data-view=pause],[data-view=quit]) .screen-utility button{padding:10px 16px;min-height:40px;font-size:13px}
}
