/* Same game window geometry as the existing laptop shell, without its desktop. */
.laptop-game-icon{position:absolute;z-index:1;left:71.084337%;top:21.95122%;width:9.638554%;height:auto;fill:#9eb6b3;pointer-events:none}
.game-dialog{position:fixed;inset:0;width:min(1200px,calc(100vw - 88px));height:min(880px,calc(100dvh - 100px));max-width:none;max-height:none;margin:auto;padding:0;border:2px solid #718675;box-shadow:10px 12px 0 #05121899,0 24px 90px #0009;overflow:hidden;background:#081018;color:#e0e7d9;font:13px/1.5 monospace;flex-direction:column}
.game-dialog[open]{display:flex}
.game-dialog::backdrop{background:#06171d66;backdrop-filter:blur(1px)}
.game-window-bar{height:44px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding-left:16px;background:#203c3f;border-bottom:1px solid #718675;color:#e0e7d9;font-size:13px}
.game-window-bar>span{display:flex;align-items:center;gap:10px}
.game-window-bar img{image-rendering:pixelated}
.game-window-bar button{height:42px;width:48px;border:0;border-left:1px solid #718675;background:none;color:#e0e7d9;font-size:24px;padding:0;cursor:pointer}
.game-viewport{position:relative;flex:1;min-height:0}
.game-dialog iframe{width:100%;height:100%;border:0;display:block}
.game-loading{position:absolute;inset:0;display:grid;place-content:center;gap:20px;background:#081018;color:#e0e7d9;text-align:center;padding:20px}
.game-loading[hidden],.game-loading button[hidden]{display:none}
.game-loading button,.game-exit-dialog button{min-height:44px;padding:10px 16px;border:1px solid #718675;background:#203c3f;color:#e0e7d9;cursor:pointer}
.game-window-bar button,.game-loading button,.game-exit-dialog button{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
.game-exit-dialog{max-width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 24px);overflow:auto;padding:24px;border:1px solid #718675;background:#10252a;color:#e0e7d9;font:13px/1.6 monospace;box-shadow:8px 8px #05121899}
.game-exit-dialog::backdrop{background:#041219cc}
.game-exit-dialog h2{margin-top:0;font-size:22px}
.game-exit-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.game-exit-actions button{flex:1}
@media(max-width:800px),(any-pointer:coarse) and (max-width:1400px){
 .game-dialog{inset:0;width:100%;height:100dvh;margin:0;border:0;box-shadow:none;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
 .game-window-bar{height:44px;padding-left:12px}
 .game-window-bar button{height:44px}
}
@media(any-pointer:coarse) and (orientation:landscape) and (max-height:900px) and (max-width:1400px){
 .game-window-bar{position:absolute;z-index:2;top:calc(8px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));width:44px;height:44px;padding:0;border:0;background:none}
 .game-window-bar>span{display:none}
 .game-window-bar button{width:44px;height:44px;border:1px solid #46606a;background:#14222c}
}
