/* App-only backgrounds fill the window. Content and controls keep safe insets. */
:root{--joga-safe-top:env(safe-area-inset-top,0px);--joga-safe-right:env(safe-area-inset-right,0px);--joga-safe-bottom:env(safe-area-inset-bottom,0px);--joga-safe-left:env(safe-area-inset-left,0px);--joga-shell-header:calc(var(--ui-header,56px) + var(--joga-safe-top));--joga-shell-nav:calc(var(--ui-nav,60px) + var(--joga-safe-bottom))}
html,body{margin:0;min-width:0;min-height:100%;width:100%}
html body{min-height:100dvh;padding-top:var(--joga-shell-header)!important;padding-bottom:var(--joga-shell-nav)!important}
html body .layout{width:100%;max-width:none!important;margin:0;min-width:0}
html body .layout .app-main{width:100%;max-width:none!important;margin:0;min-height:calc(100dvh - var(--joga-shell-header) - var(--joga-shell-nav));border:0;border-radius:0;box-shadow:none}
html body .topbar{padding-left:max(12px,var(--joga-safe-left));padding-right:max(12px,var(--joga-safe-right))}
html body .bottom-nav{padding-left:var(--joga-safe-left)!important;padding-right:var(--joga-safe-right)!important}
body.games-playing .arcade-root.pocket-game-root,body.games-playing .arcade-root.skill-game-root{position:fixed;inset:0;width:100%;max-width:none!important;height:100dvh;min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-radius:0}
body.games-playing .pocket-game-frame,body.games-playing .skill-game-frame{width:100%;height:100%;max-width:none;border:0;display:block}
body[data-map-immersive=true] .city-map-immersive{height:calc(100dvh - var(--joga-shell-header) - var(--joga-shell-nav) - var(--joga-shell-back,0px));min-height:0;display:flex;flex-direction:column;overflow:hidden}
body[data-map-immersive=true] .city-map-immersive iframe{width:100%;height:100%;min-height:0;flex:1;border:0}
body.games-playing .v3-game-top{padding-top:calc(4px + var(--joga-safe-top))!important;min-height:calc(52px + var(--joga-safe-top))!important;height:auto!important;padding-left:max(12px,var(--joga-safe-left))!important;padding-right:max(12px,var(--joga-safe-right))!important}
body.games-playing .v3-match,body.games-playing .v3-memory-screen{min-height:calc(100dvh - 52px - var(--joga-safe-top))!important;padding-bottom:var(--joga-safe-bottom)!important}

body.games-arcade:not(.games-playing) .flick-kick-page,body.games-arcade:not(.games-playing) .free-kick-page{height:calc(100dvh - var(--joga-shell-nav))!important;bottom:var(--joga-shell-nav)!important}
