/* FRBC V35.2 — une seule feuille mobile paysage (fusion Work + Masterclass). */

@media (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 html.frbc-v28-demo.frbc-mobile-ui.frbc-mobile-horizontal.frbc-landscape-overlay
 #game-dock #frbc-multiplayer-actions[hidden]{display:none!important}

 html.frbc-v28-demo.frbc-mobile-ui.frbc-mobile-horizontal.frbc-landscape-overlay
 #game-dock #frbc-multiplayer-actions:not([hidden]){
  display:flex!important;flex-flow:row wrap!important;align-items:center!important;
  gap:6px!important;width:auto!important;max-width:100%!important;
  max-height:none!important;overflow:visible!important;margin:0!important;padding:0!important;
 }

 /* Le dock de gauche réservait 74 px en bas pour une bande de notifications qui
  * vit à DROITE : cette hauteur lui est rendue quand les commandes humaines sont
  * affichées. Aucun déplacement, aucune translation. */
 html.frbc-v28-demo.frbc-mobile-ui.frbc-mobile-horizontal.frbc-landscape-overlay
 #game-dock:has(#frbc-multiplayer-actions:not([hidden])){
  bottom:max(6px,env(safe-area-inset-bottom))!important;
  max-height:none!important;
 }

 html.frbc-v28-demo.frbc-mobile-ui.frbc-mobile-horizontal.frbc-landscape-overlay
 #game-dock #frbc-multiplayer-actions:not([hidden]) > button{
  box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  flex:0 1 auto!important;min-width:48px!important;min-height:48px!important;height:auto!important;max-height:none!important;
  padding:6px 9px!important;font:600 11px/1.15 system-ui,sans-serif!important;
  white-space:nowrap!important;touch-action:manipulation;
 }

 #frbc-lobby-modal:not([hidden])>.frbc-lobby{
  width:100%;max-width:100%;height:auto;max-height:calc(100dvh - 12px);box-sizing:border-box;
  overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right))
          max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));
 }
 #frbc-lobby-close{min-width:48px;min-height:48px;touch-action:manipulation}
}

#frbc-resident-cap-message{
 display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:12px 14px;margin:10px 0;
 border:1px solid rgba(239,195,115,.65);border-radius:10px;background:rgba(23,43,60,.94);
 color:#f3ebd9;font-size:13px;line-height:1.45;
}
#frbc-resident-cap-message[hidden]{display:none!important}
#frbc-resident-cap-message button{min-height:48px;min-width:48px;padding:8px 12px;touch-action:manipulation}

@media (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 #profile-modal:not([hidden]) .inventory-panel{
  width:min(100%,960px);max-width:100%;max-height:calc(100dvh - 12px);box-sizing:border-box;
  overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;
  padding-top:max(8px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom));
 }
}
