/* Taille de l'interface (ui-scale.js) : zoom des éléments d'interface, jamais de la carte (canvas) ni des étiquettes du monde.
   Les éléments agrandis ne dépassent jamais l'écran : leur largeur et leur hauteur maximales sont divisées par le zoom. */
:root{--ui-zoom:1}
html:not([data-ui-size="m"]) :is(
 dialog[open],[popover]:popover-open,
 .title.glass,.tools.glass,#mobile-map-panel,.combat-launch,#spell-dock,#game-topbar,#mobile-topbar,#mobile-explorebar,
 #feedback-fab,#leaderboard-fab,#multiplayer-toggle,.monster-toggle,#zone-banner,#rv-top-stack,#rv-palier-banner,#rv-palier-detail,.rv-ce-detail,
 #trade-toasts,#mp-toasts,#companions-hud,#rv-teamframe,#rv-ping,#update-notice,.ytv-notice,.ytv-toast,.gf-overlay>.gf-dialog
){zoom:var(--ui-zoom);max-width:calc(100vw / var(--ui-zoom))!important;max-height:calc(100dvh / var(--ui-zoom))!important}
/* barres pleine largeur (mobile) : gardent toute la largeur de l'écran */
html:not([data-ui-size="m"]) :is(#mobile-topbar,#mobile-explorebar){width:calc((100vw - 16px) / var(--ui-zoom))!important}
/* fenêtres plein écran sur mobile (console MJ, menus) : occupent tout l'écran, contenu agrandi */
@media (max-width:760px){html:not([data-ui-size="m"]) #admin-panel[open]{width:calc(100vw / var(--ui-zoom))!important;height:calc(100dvh / var(--ui-zoom))!important}html:not([data-ui-size="m"]) #mobile-menu-sheet[open]{max-width:calc((100vw - 12px) / var(--ui-zoom))!important}}
.ui-size-pick>div{grid-template-columns:repeat(5,minmax(0,1fr))!important}
.ui-size-pick button{font-weight:800!important;line-height:1}
