/* Local integration wrapper. Original artwork and navigation remain in WASM. */
html,body{margin:0;background:#080808;color:#ddd}
#menu-tools{position:absolute;inset:0 0 auto;z-index:10;display:flex;min-height:44px;align-items:center;flex-wrap:wrap;gap:12px;padding:0 8px;background:#080808ed}
#menu-tools[hidden],#menu-show-tools[hidden]{display:none}
#menu-show-tools{position:absolute;right:8px;top:8px;z-index:9}
#menu-device{max-width:220px}
#menu-status{min-width:180px;flex:1}
/* One responsive display box in windowed and fullscreen. Fixed WASM backing
   stays untouched; fit the complete 16:9 game with letterboxing, never crop. */
body.native-player #viewport{position:relative;width:100%;height:100dvh;aspect-ratio:auto;min-height:0;max-height:none;max-width:none;margin:0;border:0;border-radius:0;background:#000;overflow:hidden;display:grid;place-items:center}
body.native-player #viewport:fullscreen{width:100vw;height:100dvh}
body.native-player #world{width:min(100vw,calc(100dvh * 16 / 9));height:auto;aspect-ratio:16/9;max-height:100dvh;display:block}
.menu-local .topbar,.menu-local footer,.menu-local .session-bar,.menu-local .controls,.menu-local aside,.menu-local #empty-state,.menu-local #play-label{display:none!important}
.menu-local main,.menu-local .play{display:block;padding:0;margin:0;border:0}
