/* Fenêtres contraintes par la zone visible, y compris avec le clavier Android. */
body #modalWrap:not(.hidden){position:fixed!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;inset:auto!important;left:var(--fwr-vp-x-r11,0px)!important;top:var(--fwr-vp-y-r11,0px)!important;width:var(--fwr-vp-w-r11,100vw)!important;height:var(--fwr-vp-h-r11,100dvh)!important;max-width:none!important;min-width:0!important;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))!important;z-index:2000!important;overflow:hidden!important}
body #modalWrap:not(.hidden)>.modal{position:relative!important;display:flex!important;flex-direction:column!important;box-sizing:border-box!important;width:min(640px,100%)!important;max-width:100%!important;min-width:0!important;max-height:100%!important;min-height:0!important;margin:0!important;overflow:hidden!important}
body #modalWrap:not(.hidden):has(.fwr-wl-dialog)>.modal{width:min(800px,100%)!important;max-width:100%!important;min-width:0!important}
body #modalWrap:not(.hidden) #modalTitle{flex:0 0 auto!important;min-width:0!important;margin:0!important;padding:12px 52px 12px 14px!important;font-size:clamp(18px,4.6vw,26px)!important;line-height:1.25!important;white-space:normal!important;overflow-wrap:anywhere!important}
body #modalWrap:not(.hidden) #modalCloseX{position:absolute!important;right:5px!important;top:4px!important;width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;z-index:30!important;font-size:24px!important}
body #modalWrap:not(.hidden) #modalBody{box-sizing:border-box!important;flex:1 1 auto!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:none!important;overflow-y:auto!important;overflow-x:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch;touch-action:pan-y pinch-zoom;scrollbar-gutter:auto!important;padding:14px!important}
body #modalWrap:not(.hidden) .modal-actions{flex:0 0 auto!important;flex-wrap:wrap!important;min-width:0!important;padding:8px!important;gap:8px!important}
body #modalWrap:not(.hidden) .modal-actions button{min-height:40px!important;white-space:normal!important}
body #modalWrap:not(.hidden) :is(input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0}
body #modalWrap:not(.hidden) :is(.fwr-wl-dialog,.fwr-wl-hero,.fwr-wl-animal-lines,.fwr-wl-animal-lines>section,.fwr-wl-animal-lines article,.fwr-wl-animal-lines article>div,.fwr-wl-reward,.fwr-wl-reward>div){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body #modalWrap:not(.hidden) :is(.fwr-wl-stat-title,.fwr-wl-animal-lines small,.fwr-wl-animal-lines strong,.fwr-wl-hero h3,.fwr-wl-hero p,.fwr-wl-reward strong){white-space:normal!important;overflow-wrap:anywhere!important}
/* Profil : actions regroupées, aucun libellé tronqué sur deux colonnes. */
body #app #profileMenu{box-sizing:border-box!important;width:min(360px,calc(var(--fwr-vp-w-r11,100vw) - 16px))!important;max-width:calc(var(--fwr-vp-w-r11,100vw) - 16px)!important;max-height:calc(var(--fwr-vp-h-r11,100dvh) - 80px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px!important;z-index:600!important}
body #app #profileMenu:not(.hidden){display:flex!important;flex-direction:column!important;gap:7px!important}
body #app #profileMenu :is(button,summary){box-sizing:border-box!important;width:100%!important;min-width:0!important;min-height:44px!important;max-width:100%!important;white-space:normal!important;text-overflow:clip!important;overflow-wrap:anywhere!important;font-size:14px!important;line-height:1.35!important;text-align:left!important;margin:0!important;padding:10px 12px!important}
body #app #profileMenu :is(div,details){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body #app #profileMenu .profile-group-r11{border:1px solid #b69a5b66;border-radius:10px;padding:0!important;background:#06192666}
body #app #profileMenu .profile-group-r11>div{display:flex!important;flex-direction:column!important;gap:7px;padding:8px!important}
body #app #profileMenu .profile-group-r11:not([open])>div{display:none!important}
body #app #profileMenu .profile-identity-r11{font:13px/1.5 Arial,sans-serif!important;padding:5px 8px 10px!important}
body #app #profileMenu .profile-hints-r11{display:flex;gap:10px;align-items:center;min-height:44px;font:13px/1.5 Arial,sans-serif;color:inherit}
body #app #profileMenu .profile-hints-r11 input{width:20px!important;height:20px!important;flex:0 0 20px}
body #app #profileMenu .profile-group-r11 small{font:12px/1.5 Arial,sans-serif;color:#b9c9cd}
body #app .classic-nav37 .navbubble .submenu{box-sizing:border-box;max-width:calc(var(--fwr-vp-w-r11,100vw) - 16px)!important;max-height:min(65vh,480px);overflow-y:auto}
body #app .classic-nav37 .submenu button{min-height:42px!important;white-space:normal!important;line-height:1.35!important}
/* Les règles consultables, coûts, prérequis, avertissements et erreurs ne sont pas masqués. */
body[data-fwr-hints-r11=off] :is([data-fwr-hint-r11],.fwr-wl-map-help,.fwr-slide-hint,.race-tooltip,#buildingTip,#slotTip){display:none!important}
@media(max-width:600px){body #modalWrap:not(.hidden) #modalBody{padding:12px!important;font-size:14px!important}body #modalWrap:not(.hidden) :is(input,select,textarea){font-size:16px!important}body #modalWrap:not(.hidden) .fwr-wl-hero{grid-template-columns:minmax(0,1fr)!important;min-height:0!important}body #modalWrap:not(.hidden) .fwr-wl-hero-picture{display:none!important}body #modalWrap:not(.hidden) .fwr-wl-hero h3{font-size:26px!important;padding:0!important;background:none!important}body #modalWrap:not(.hidden) .fwr-wl-animal-lines article{display:grid!important;grid-template-columns:52px minmax(0,1fr)!important;gap:10px!important}body #modalWrap:not(.hidden) .fwr-wl-roster-art{width:52px!important;height:52px!important}body #modalWrap:not(.hidden) .fwr-wl-animal-lines strong{font-size:18px!important}body #modalWrap:not(.hidden) .fwr-wl-animal-lines small{font-size:12px!important;line-height:1.55!important}body #modalWrap:not(.hidden) .fwr-wl-stat-title{font-size:12px!important;line-height:1.5!important}body #modalWrap:not(.hidden) .fwr-wl-reward{gap:10px!important;padding:12px!important}body #modalWrap:not(.hidden) .fwr-wl-reward-art{width:56px!important;height:56px!important}body #modalWrap:not(.hidden) .fwr-wl-reward strong{font-size:24px!important}}
