.game-card .modal-head {flex:none;display:flex;align-items:center;justify-content:space-between}
.game-window-actions {display:flex;align-items:center;gap:6px;margin-left:auto}
.game-card .game-window-actions button {display:grid;place-items:center;flex:none;width:32px;height:32px;min-height:32px;padding:0;border:1px solid #997146;border-radius:5px;background:#392319;color:#ffe4a9;font:22px/1 Arial,sans-serif;box-shadow:none;touch-action:manipulation;cursor:pointer}
.game-window-actions button:focus-visible {outline:2px solid #e7bc65;outline-offset:2px}
.original-game {background:#101010;color-scheme:dark}
.game-opening {display:grid;place-items:center;min-height:200px;background:#101010;color:#eee}
.game-rotate-hint {display:none}
.game-card:fullscreen {box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;display:flex;flex-direction:column;overflow:hidden}
.game-card:fullscreen .original-game {flex:1;width:100%;height:100%;min-height:0;max-height:none;aspect-ratio:auto}
body.game-immersive {overflow:hidden;background:#101010}
.game-immersive #overlay-layer {--game-safe-top:env(safe-area-inset-top,0px);--game-safe-right:env(safe-area-inset-right,0px);--game-safe-bottom:env(safe-area-inset-bottom,0px);--game-safe-left:env(safe-area-inset-left,0px);position:fixed;inset:0;z-index:10000;width:100%;height:100vh;height:100dvh;display:block;padding:0;overflow:hidden;background:#101010}
.game-immersive #overlay-layer > .modal-backdrop {display:none}
.game-immersive #overlay-layer > .game-card {box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;overflow:hidden;display:block;background:#101010;color:#eee}
.game-immersive .game-card > .modal-head {position:absolute;z-index:3;top:var(--game-safe-top);right:var(--game-safe-right);display:block;width:44px;height:44px;margin:0;padding:0;border:0;background:#101010}
.game-immersive .game-card > .modal-head h2,.game-immersive .game-card .game-window-actions [data-action="game-fullscreen"] {display:none}
.game-immersive .game-window-actions {margin:0;display:block}
.game-immersive .game-card .game-window-actions .modal-close {width:44px;height:44px;min-height:44px;font-size:27px;border:0;background:#101010;color:#eee;border-radius:0}
.game-immersive .game-card > .original-game {position:absolute;top:var(--game-safe-top);left:calc(var(--game-safe-left) + 44px);width:calc(100% - var(--game-safe-left) - var(--game-safe-right) - 88px);height:calc(100% - var(--game-safe-top) - var(--game-safe-bottom));max-height:none;margin:0;aspect-ratio:auto;border:0;background:#101010}
.game-immersive .game-opening {height:100%;min-height:0}
@media(orientation:portrait){
 .game-immersive .game-rotate-hint {position:absolute;z-index:2;bottom:calc(var(--game-safe-bottom) + 8px);left:44px;right:44px;display:block;margin:0;padding:6px;text-align:center;color:#ddd;background:#101010;font:12px/1.35 Arial,sans-serif;pointer-events:none}
 .game-immersive .game-card > .original-game {height:calc(100% - var(--game-safe-top) - var(--game-safe-bottom) - 42px)}
}
