/* Digital Opus bounded GAME_VIEWPORT_FIT_QA repair overlay. */
html,body{max-width:100%;min-height:100%;overflow-x:hidden}
body{min-height:100dvh;padding-bottom:env(safe-area-inset-bottom)}
canvas,svg[data-game-surface],svg.game-surface,[data-game-surface],.game-board,.board{max-width:100%;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));height:auto;object-fit:contain;touch-action:none}
[data-game-root],#game-root,#game-container,.game-root,.game-container{max-width:100%;min-height:0;overflow:auto;overscroll-behavior:contain}
.controls,.touch-controls,.game-controls,.hud,[data-hud]{max-width:100%;inset-inline:max(0px,env(safe-area-inset-left)) max(0px,env(safe-area-inset-right));padding-bottom:max(.25rem,env(safe-area-inset-bottom));flex-wrap:wrap}
body.h-full{height:100dvh!important;min-height:100dvh!important}
#authorWorkspace,#playWorkspace,#authorMainContainer,#playMainContainer{min-height:0}
