/* Dimensionamento original preservado no celular/tablet. */
@media(max-width:980px) {
/* BetRJR — jogo preso na tela
   Dentro de um jogo a página não rola: o palco do jogo ocupa exatamente o
   espaço entre o header e o rodapé, e o resto fica travado. */

html.game-lock,
html.game-lock body,
html:has(.game-frame-shell:not(#sbx-stage)) {
  overflow: hidden !important;
  height: 100%;
}

/* sem respiro extra em volta do jogo */
html.game-lock .content,
html:has(.game-frame-shell:not(#sbx-stage)) .content {
  padding: 0 !important;
  min-height: 0 !important;
}

/* a altura exata vem do JS (inline); aqui só liberamos os limites do tema */
html.game-lock .game-frame-shell,
html:has(.game-frame-shell:not(#sbx-stage)) .game-frame-shell {
  min-height: 0 !important;
  max-height: none !important;
  width: 100% !important;
}

html.game-lock .game-frame-shell iframe,
html:has(.game-frame-shell:not(#sbx-stage)) .game-frame-shell iframe {
  width: 100%;
  height: 100%;
}

/* rodapé do jogo compacto para sobrar área */
html.game-lock .game-landing-footer {
  padding: 8px 14px !important;
  min-height: 0 !important;
}

html.game-lock .game-landing {
  min-height: 0 !important;
}

@media (max-width: 720px) {
  html.game-lock .game-landing-footer {
    padding: 6px 10px !important;
  }
}

}

/* SORTEDABET_CONTAINED_GAME_V1 */
@media(min-width:981px) {
  html:has(body.sd-game-contained) {
    overflow-x:clip !important;
    overflow-y:auto !important;
    height:auto !important;
  }
  html body.sd-game-contained:not(.admin) {
    overflow:visible !important;
    height:auto !important;
  }
  html body.sd-game-contained:not(.admin) #app > main.content,
  html body.sd-game-contained.sdm-collapsed:not(.admin) #app > main.content {
    box-sizing:border-box !important;
    width:calc(100% - 272px) !important;
    max-width:calc(100% - 272px) !important;
    margin:0 0 0 272px !important;
    padding:20px 28px 40px !important;
    min-width:0 !important;
    min-height:0 !important;
  }
  html body.sd-game-contained:not(.admin) main.content > .page-max {
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
    margin:0 !important;
  }
  html body.sd-game-contained:not(.admin) .game-v5-playing.game-landing {
    display:grid !important;
    grid-template-rows:auto auto !important;
    box-sizing:border-box !important;
    width:100% !important;
    max-width:1450px !important;
    min-height:0 !important;
    height:auto !important;
    margin:0 auto !important;
    overflow:hidden !important;
    border:1px solid #30303d !important;
    border-radius:14px !important;
  }
  html body.sd-game-contained:not(.admin) .game-v5-toolbar.game-landing-footer {
    box-sizing:border-box !important;
    min-height:60px !important;
    padding:10px 14px !important;
    border:0 !important;
    border-bottom:1px solid #30303d !important;
    border-radius:0 !important;
  }
  html body.sd-game-contained:not(.admin) .game-frame-shell {
    box-sizing:border-box !important;
    width:100% !important;
    min-height:0 !important;
    max-height:none !important;
    border:0 !important;
    overflow:hidden !important;
  }
  html body.sd-game-contained:not(.admin) .game-frame-shell iframe {
    display:block !important;
    width:100% !important;
    height:100% !important;
    border:0 !important;
  }
  html body.sd-game-contained:not(.admin) .game-frame-shell:fullscreen {
    width:100vw !important;
    height:100dvh !important;
    max-width:none !important;
    border-radius:0 !important;
    background:#000 !important;
  }
}
