/* New full-page home/result surface; the existing battlefield keeps its 5:3 layout. */
#ui-root[hidden],main.game[hidden]{display:none!important}
#ui-root{width:100%;min-height:100dvh}
body.ac-terminal-active{display:block;overflow:auto;min-height:100dvh;margin:0;background:#10161d}
body.ac-terminal-active>main.game{display:none!important}
.terminal-boot{min-height:100dvh;display:grid;place-items:center;color:#e9c58b;font:16px "Microsoft YaHei",sans-serif}
.ac-app .ac-dialog[data-kind="full-gallery"]{width:min(1280px,96vw);max-width:96vw}
.ac-app .ac-dialog[data-kind="full-gallery"] .dialog-content{padding:0;overflow:hidden}
.terminal-gallery-host{container-type:inline-size;width:100%;height:min(70vh,730px);min-height:380px}
.terminal-gallery-host>#encyclopedia-panel{position:static;inset:auto;width:100%;height:100%;display:block;background:transparent;backdrop-filter:none}
.terminal-gallery-host .gallery-dialog{width:100%;height:100%;max-height:100%;padding:1cqw;align-self:stretch}
.terminal-gallery-host #close-encyclopedia{display:none}
@media(max-width:600px){.terminal-gallery-host{height:75vh;min-height:460px}.terminal-gallery-host .gallery-body{grid-template-columns:30% minmax(0,1fr)}.terminal-gallery-host .gallery-sidebar input{font-size:12px}.terminal-gallery-host .gallery-preview p{font-size:11px!important}.terminal-gallery-host .preview-controls{font-size:11px}.terminal-gallery-host .preview-heading h3{font-size:15px}.terminal-gallery-host .gallery-heading h2{font-size:18px}.terminal-gallery-host #gallery-list button{font-size:12px}.terminal-gallery-host #gallery-list img{width:25px;height:25px}.terminal-gallery-host #gallery-list small{font-size:10px}.terminal-gallery-host .gallery-preview{grid-template-rows:auto minmax(100px,1fr) auto minmax(0,35%)}}
