/* Mobile v4 (21/10/2026) : retours du propriétaire sur téléphone (≈ 412 × 915). Chargée en dernier par promenade.html.
   1. Annonces (boss, événements) : jamais sur le choix du personnage (event-ui.js les diffère), bandeau compact refermable en jeu.
   2. Monde : fiche de maison ou d'enclos en feuille du bas, au-dessus des étiquettes, chat et cadre d'équipe repliés pendant la fiche ;
      étiquettes plus petites, atténuées, regroupées (« +N », label-declutter.js), sans débordement.
   3. Banque : onglets Sac ↔ Coffre (adventure-ui.js), dépôt rapide compact, kamas sur une ligne, grille dense, message au-dessus de la barre système.
   4. Succès : zones sûres, en-tête compact, ruban des catégories avec fondu et catégorie active centrée, un seul ruban de filtres, cartes denses.
   5. Zones sûres haut et bas des fenêtres plein écran qui ne les respectaient pas, cibles tactiles agrandies sans changer le dessin.
   Les règles « html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) » + !important passent devant mobile-v2.css / mobile-v3.css, sans toucher au bureau. */
.rv-bank-tabs{display:none}

@media (max-width:700px),(max-width:1000px) and (max-height:500px){
:root{--v4-sat:env(safe-area-inset-top,0px);--v4-sab:env(safe-area-inset-bottom,0px)}

/* ---------- 1. Annonces ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d).rv-chars-open #rv-palier-banner{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner{top:calc(env(safe-area-inset-top,0px) + 54px)!important;width:calc(100vw - 16px)!important;max-width:440px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-palier-rays{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-palier-card{padding:8px 38px 8px 12px!important;text-align:left;border-width:2px;border-radius:12px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-palier-card::after{content:"×";position:absolute;top:2px;right:4px;width:30px;height:30px;display:grid;place-items:center;font:700 20px/1 var(--font-ui,sans-serif);color:#5b4420;opacity:.75}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-palier-title{font-size:14.5px!important;margin:1px 0 2px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-palier-eyebrow{font-size:9.5px!important;letter-spacing:.08em}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-palier-bonus,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-ce-meta{font-size:11.5px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner.rv-ce-banner .rv-palier-card{padding-top:8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner.rv-ce-banner .rv-palier-card:has(.rv-be-img,.rv-ce-icon){padding-left:58px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-be-img,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-ce-icon{position:absolute!important;left:8px!important;top:8px!important;transform:none!important;width:42px!important;height:42px!important;font-size:28px;display:grid;place-items:center}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-be-actions{justify-content:flex-start;gap:6px;margin-top:6px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-palier-banner .rv-be-actions button{min-height:36px;padding:4px 12px;font-size:12px}

/* bandeau du tirage : une ligne (médaille, titre, Voir, ×) au lieu d'une carte de 140 px */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .drw-banner{flex-wrap:nowrap!important;gap:8px!important;padding:6px 6px 6px 10px!important;top:calc(env(safe-area-inset-top,0px) + 54px)!important;width:calc(100vw - 16px)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .drw-banner .drw-medal{width:24px!important;height:30px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .drw-banner .drw-banner-s{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .drw-banner .drw-banner-k{font-size:9.5px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .drw-banner #draw-banner-t{font-size:12.5px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .drw-banner .drw-banner-act{flex:none!important;width:auto!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .drw-banner .drw-banner-open{min-height:44px!important;padding:0 10px!important;font-size:12px!important;width:auto!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .drw-banner .drw-banner-x{width:44px!important;height:44px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d):is(.rv-chars-open,.rvh-card:not(#rvh0)) .drw-banner{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d):where(.rv-f-palier):not(#rv-fx) .drw-banner{display:none!important}
/* combat : la bulle d'aide passe sous le bandeau des ennemis au lieu de le couvrir */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d).in-battle:where(.rv-f-foe):not(#rv-fx):not(.rv-fx) #rv-onb-tip{top:calc(env(safe-area-inset-top,0px) + 196px)!important;bottom:auto!important}

/* ---------- 2. Monde : étiquettes ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-world .adventure-point-name{padding:1px 5px!important;gap:0!important;max-width:44vw;box-shadow:0 1px 2px #0004!important;transition:opacity .15s}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-world .adventure-point-name:not(:hover){background:color-mix(in srgb,var(--window-paper,#e5dfc4) 80%,transparent)!important;border-color:color-mix(in srgb,var(--window-ink,#3d3021) 55%,transparent)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-world .adventure-point-name b{font-size:10.5px!important;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-world .adventure-point-name small{font-size:9.5px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-world .adventure-point:not([aria-expanded=true]):not(.tracked):not(.pending):not(.harvesting) .adventure-point-name small{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-world .adventure-point.dungeon.npc-hitbox>.adventure-point-name small,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-world .adventure-point.npc.npc-hitbox>.adventure-point-name small{font-size:9px!important;padding:0 5px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #label,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .remote-player-label{font-size:10.5px!important;padding:1px 5px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .rv-lbl-grouped{opacity:0!important;pointer-events:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) [data-more]:not(#label):not(.remote-player-label)::after{content:attr(data-more);position:absolute;top:-7px;right:-9px;min-width:16px;height:15px;padding:0 3px;box-sizing:border-box;border-radius:8px;background:#e07b12;color:#fff;font:800 9px/15px var(--font-ui,sans-serif);text-align:center;box-shadow:0 1px 2px #0006}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .adventure-point-name[data-more]{overflow:visible!important}
/* fiche ouverte : seules l'étiquette du lieu choisi et ton nom restent */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d).rvh-card:not(#rvh0) #adventure-world .adventure-point:not([aria-expanded=true]) .adventure-point-name{opacity:0!important;pointer-events:none!important}

/* ---------- 2. Fiche de maison / enclos / lieu : feuille du bas ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d).rvh-card-nd:not(#rvh0):not(.rvh0) #adventure-world{z-index:43}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d).rvh-card:not(#rvh0) :is(#chat-overlay,#retroverse-chat:not(.is-open),#rv-teamframe,#mobile-explorebar){visibility:hidden!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card:not(.is-dungeon){z-index:60!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;max-width:none!important;margin:0!important;transform:none!important;
 padding:8px 16px calc(12px + env(safe-area-inset-bottom,0px))!important;border-radius:16px 16px 0 0!important;border-width:1px 0 0!important;box-shadow:0 -10px 30px #0008!important;max-height:min(60dvh,420px);overflow:auto}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card:not(.is-dungeon)::before{content:"";display:block;width:38px;height:4px;margin:0 auto 8px;border-radius:2px;background:currentColor;opacity:.25}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card:not(.is-dungeon) h3{font-size:18px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card:not(.is-dungeon) p{margin:8px 0!important;font-size:12.5px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card [data-point-close]{width:44px!important;height:44px!important;margin:-6px -8px 0 auto!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card .adventure-point-footer{display:flex;align-items:center;gap:10px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card .adventure-point-footer>span{flex:1;min-width:0;font-size:12px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card .adventure-point-footer>button{flex:0 1 auto;min-height:44px;padding:8px 16px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card.is-dungeon{z-index:60!important;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);overflow:auto}
/* cadre d'équipe (« 4 · 429 PP ») : sous la colonne de gauche, jamais sous les fenêtres */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d).rvh-modal:not(.rvh0):not(rvhx) #rv-teamframe{visibility:hidden!important}

/* ---------- 3. Banque ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2{gap:8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-top{display:flex!important;flex-direction:column;gap:6px!important;padding:8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-money{display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px!important;font-size:12.5px;white-space:nowrap;min-width:0}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-money img{width:20px;height:20px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-money span{overflow:hidden;text-overflow:ellipsis}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-kamas{display:flex!important;flex-wrap:nowrap!important;gap:6px!important;align-items:stretch}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-kamas input{flex:1 1 auto!important;min-width:0!important;width:auto!important;height:40px!important;min-height:40px!important;padding:0 10px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-kamas button{flex:none!important;width:auto!important;min-height:40px!important;padding:0 12px!important;font-size:12px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-tools input{height:40px!important;min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-dump:not(.is-confirm){display:flex!important;flex-wrap:nowrap!important;gap:6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-dump:not(.is-confirm)>button{flex:1 1 0!important;min-height:40px!important;padding:4px 8px!important;font-size:12px!important;white-space:nowrap}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-tabs{display:flex;position:sticky;top:-1px;z-index:4;gap:0;padding:3px;border-radius:12px;background:#d9c99a;box-shadow:0 2px 6px #0002}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-tabs button{flex:1 1 0;min-height:44px;border:0!important;border-radius:9px!important;background:transparent!important;color:#4a3b1c!important;font:800 14px var(--font-ui,sans-serif)!important;box-shadow:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-tabs button small{display:inline-block;min-width:22px;margin-left:4px;padding:1px 6px;border-radius:999px;background:#0000001a;font-size:11.5px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-tabs button[aria-selected=true]{background:#fffaf0!important;color:#2a1c08!important;box-shadow:0 1px 3px #0003!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-tabs button[aria-selected=true] small{background:#e07b12;color:#fff}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-cols2{display:flex!important;flex-direction:column!important;gap:8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2[data-tab=bag] .rv-bank-side[data-side=bank],html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2[data-tab=bank] .rv-bank-side[data-side=bag]{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2[data-tab=bag] [data-action=bank_take_many],html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2[data-tab=bank] [data-action=bank_put_many]{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-move{order:2;display:flex!important;flex-direction:row!important;flex-wrap:nowrap;align-items:center;gap:8px!important;margin:0 -2px;padding:8px 2px!important;position:sticky;bottom:0;z-index:3;background:linear-gradient(180deg,#efe5c8f0,#efe5c8)!important;box-shadow:0 -6px 10px -6px #0004}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-move>button{flex:1 1 auto!important;min-height:44px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-move label{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;font-size:12px;white-space:nowrap}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-move label input{width:72px!important;height:40px!important;min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-move small{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-side>header{padding:6px 8px!important;min-height:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-side>header h3{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-side .rv-bank-all{min-height:36px!important;padding:0 12px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-sidefilter{display:flex!important;flex-wrap:wrap!important;gap:5px!important;padding:6px 8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-sidefilter button{flex:1 1 0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-sidefilter .rv-bank-type{flex:1 1 100%!important;max-width:none!important;height:40px!important;min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-sidefilter button{min-height:40px!important;padding:0 10px!important;font-size:12px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-grid{grid-template-columns:repeat(auto-fill,minmax(50px,1fr))!important;gap:5px!important;padding:6px 8px 8px!important;min-height:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-cell{min-height:50px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-note{font-size:10.5px!important;line-height:1.35}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel #adventure-message{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel:has(#adventure-message[hidden]) #adventure-content{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-toast{top:calc(env(safe-area-inset-top,0px) + 64px)!important;max-width:calc(100vw - 24px)!important}

/* ---------- 4. Succès ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;inset:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-window{height:100dvh!important;display:flex!important;flex-direction:column!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-main{padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-head{flex:none;padding:calc(env(safe-area-inset-top,0px) + 4px) 6px 4px 12px!important;min-height:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-head h2{font-size:18px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-head-ico{width:26px!important;height:26px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-close{display:grid!important;place-items:center;width:44px!important;height:44px!important;min-width:44px;margin-left:auto;font-size:18px!important;visibility:visible!important;opacity:1!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-top{flex:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-hero{display:grid!important;grid-template-columns:auto 1fr 44px;align-items:center;gap:4px 10px!important;padding:6px 10px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-score{display:flex!important;flex-direction:column;align-items:center;min-width:0!important;padding:3px 9px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-score-n{font-size:18px!important;line-height:1.1}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-score-l{font-size:8.5px!important;letter-spacing:.04em}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-hero-mid{min-width:0}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-hero-line{font-size:12px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-hero-sub{display:flex;gap:6px;margin-top:3px!important;font-size:11px!important;white-space:nowrap;overflow:hidden}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-hero-sub>*{overflow:hidden;text-overflow:ellipsis;padding-top:0!important;padding-bottom:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-lb{order:0!important;flex:none!important;width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;font-size:0!important;justify-content:center;border-radius:12px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-lb span{font-size:20px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-main{flex:1;min-height:0}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-nav{position:relative;padding:5px 10px!important;scroll-padding-inline:24px;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 22px),transparent);scrollbar-width:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-nav::-webkit-scrollbar{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-tab{min-height:44px;padding:3px 9px 3px 4px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-tab-ico{width:24px!important;height:24px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-body{padding:8px 10px calc(16px + env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-art{min-height:46px!important;max-height:52px;margin-bottom:8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-art img{object-fit:cover}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-art>div{padding:6px 12px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-art b{font-size:15px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-art span{font-size:11px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-tools.is-ribbon{margin:0 0 6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-tools.is-ribbon .ach-search{flex:1 1 auto}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-ribbon{position:relative;display:flex;flex-wrap:nowrap;align-items:center;gap:5px;margin:0 -10px 8px;padding:2px 10px 4px;overflow-x:auto;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 18px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 10px,#000 calc(100% - 18px),transparent)}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-ribbon::-webkit-scrollbar{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-ribbon button{flex:none;min-height:36px;padding:0 11px;border:1px solid #c9b07a;border-radius:999px;background:#fffaf0;color:#3a2c12;font:700 12px var(--font-ui,sans-serif);white-space:nowrap}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-ribbon button[aria-pressed=true]{background:linear-gradient(180deg,#f39a3b,#d9721a);border-color:#b25a10;color:#fff}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-ribbon button small{opacity:.75;font-size:10.5px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-rib-sep{flex:none;width:1px;height:22px;margin:0 3px;background:#b9a26c}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-card{grid-template-columns:40px 1fr auto!important;gap:4px 9px!important;padding:7px 8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-ico{width:40px!important;height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-pts{width:34px!important;height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-card h4{font-size:13.5px!important;margin:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-desc,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-when,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-reward{font-size:11.5px!important;margin:1px 0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-prog{margin:2px 0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-objs summary{min-height:32px;display:flex;align-items:center;font-size:12px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-flag{font-size:9px!important;padding:1px 5px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-stats{gap:6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-stats li{padding:6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-cat{padding:7px 9px!important}

/* ---------- 5. Zones sûres des autres fenêtres plein écran ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars .rv-lx-top{padding-top:calc(env(safe-area-inset-top,0px) + 8px)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #polls-dialog .polls-body,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #mobile-menu-sheet .mobile-sheet-scroll,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #social-content{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #draw-results .drw-body{padding-bottom:12px}
/* cibles tactiles : zone de toucher élargie sans changer le dessin (boutons ronds du HUD, onglets du chat) */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) :is(#feedback-fab,#leaderboard-fab,#multiplayer-toggle){position:fixed}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) :is(#feedback-fab,#leaderboard-fab,#multiplayer-toggle)::before{content:"";position:absolute;inset:-4px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #chat-overlay .chat-ov-tabs button::before{content:"";position:absolute;inset:-11px -2px}
}

/* barre de sorts en combat sur petit écran (≤ 400 px) : plus de premier sort coupé à gauche */
@media (max-width:400px){
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #spell-dock .dock-main{justify-content:safe center!important;gap:4px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #spell-dock{padding-left:6px!important;padding-right:6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #spell-dock .spell-bar{gap:4px!important}
}

/* paysage bas : en-tête des succès encore plus court, feuille du bas limitée en hauteur */
@media (max-height:500px) and (max-width:1000px){
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-art{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-hero{padding:3px 10px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-head{padding-left:max(12px,env(safe-area-inset-left,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-point-card:not(.is-dungeon){left:max(0px,env(safe-area-inset-left,0px))!important;right:auto!important;width:min(420px,70vw)!important;border-radius:16px 16px 0 0!important;max-height:calc(100dvh - 60px)}
}

/* ===================== Lot mobile5 (21/10/2026, après la mise en prod b530d3cf) ===================== */
.bag-search,.bag-filters-toggle{display:none}
@media (max-width:700px),(max-width:1000px) and (max-height:500px){
/* ---------- 6. Sorts : rangs du sort en cartes (Rang · Niv., pastilles mana / relance / portée, effets pleine largeur) ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap{overflow:visible!important;border:0!important;background:transparent!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap table{display:block!important;width:100%!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap thead{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tbody{display:grid!important;gap:6px;width:100%}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr{display:flex!important;flex-wrap:wrap;align-items:center;gap:5px 6px;padding:7px 10px!important;border:1px solid #d6c79f;border-radius:10px;background:#fffaf0;opacity:.85}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>*{display:block;padding:0!important;border:0!important;text-align:left!important;white-space:normal!important;min-width:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>th{order:1;flex:1 1 auto;font:800 13px/1.2 var(--font-ui,sans-serif)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>th::before{content:"Rang "}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>td:nth-child(6){order:2;flex:none;font-size:11.5px!important;font-weight:700;color:#7a6d52}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>td:nth-child(6)::before{content:"Niv. "}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>td:nth-child(3),html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>td:nth-child(4),html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>td:nth-child(5){order:4;flex:none;display:inline-flex!important;align-items:center;gap:4px;padding:2px 8px!important;border-radius:999px;background:#efe4c6;font:700 11.5px/1.3 var(--font-ui,sans-serif)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>td:nth-child(3){margin-left:0;flex-basis:auto}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>th+td.rk-eff{order:5;flex:1 1 100%;font:600 12px/1.4 var(--font-ui,sans-serif)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>td:nth-child(3)::before{content:"Mana";font-weight:600;opacity:.7}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>td:nth-child(4)::before{content:"Relance";font-weight:600;opacity:.7}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr>td:nth-child(5)::before{content:"Portée";font-weight:600;opacity:.7}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr::before{content:"";order:3;flex:1 1 100%;height:0}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr.is-cur{opacity:1;border:2px solid #e07b12;background:#ffe9c7;box-shadow:0 2px 8px #e07b1233}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr.is-next{opacity:1;border:1px dashed #5d9a2c;background:#f4f9ec}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-wrap tr.is-next>th::after{content:" · suivant";font-size:11px;color:#2f7a14}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-ranks-note{font-size:10.5px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .spell-options{grid-template-columns:1fr 1fr!important;gap:6px!important;margin-top:8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .spell-options>button{min-height:44px!important;padding:6px 8px!important;font-size:12px!important;line-height:1.2}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-reorder{gap:6px!important;margin-top:6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-reorder>span{flex:1}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-reorder>button{width:44px!important;height:40px!important;min-height:40px!important;padding:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #class-dialog .book-casting{margin:8px 0!important;padding:6px 9px!important;font-size:12px!important;line-height:1.35}

/* ---------- 8. Administration : plein écran, zones sûres, en-tête compact, tuiles en 3 colonnes ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;inset:0!important;border-radius:0!important;border:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-heading{flex:none;padding:calc(env(safe-area-inset-top,0px) + 4px) max(10px,env(safe-area-inset-right,0px)) 6px max(10px,env(safe-area-inset-left,0px))!important;min-height:0!important;gap:8px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-heading>div:first-child{min-width:0;display:flex;align-items:center;gap:8px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-heading>div:first-child>:is(svg,img){width:22px;height:22px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-heading>div:first-child span{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-heading h2{font-size:16px!important;margin:0!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-heading-tools{gap:6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-heading-tools button{min-height:40px!important;min-width:40px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel #admin-close{width:44px!important;height:44px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-stat{padding:6px 7px!important;column-gap:6px!important;min-width:0}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-stat :is(small,span){font-size:10.5px!important;line-height:1.2;overflow:hidden;text-overflow:ellipsis}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-stat :is(svg,img){width:18px;height:18px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-main,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel #admin-content{padding-bottom:calc(14px + env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-toast{bottom:calc(10px + env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-nav{padding-bottom:env(safe-area-inset-bottom,0px)}
}
/* section 7 limitée au portrait (21/10/2026, lot mobile6) : en paysage, le sac garde sa disposition en deux colonnes */
@media (max-width:700px){
/* ---------- 7. Sac : grille contenue, filtres compacts (recherche + « Filtres » : type et tri), pods et kamas fixés en bas ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-storage{display:flex!important;flex-direction:column!important;min-width:0!important;max-width:100%!important;overflow:visible!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-grid{width:auto!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:visible!important;grid-template-columns:repeat(auto-fill,minmax(64px,1fr))!important;grid-auto-rows:auto!important;gap:5px!important;padding:6px!important;box-sizing:border-box}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-grid .bag-cell{min-width:0!important;width:auto!important;height:auto!important;aspect-ratio:1}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center;gap:6px!important;min-width:0!important;max-width:100%!important;margin:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar>.bag-pets-open{flex:none;min-height:40px!important;padding:0 10px!important;font-size:12px!important;order:1}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar>.bag-search{display:block;order:2;flex:1 1 90px;min-width:0;height:40px;min-height:40px!important;padding:0 10px;border:1px solid #c9b07a;border-radius:10px;background:#fffaf0;font:600 13px var(--font-ui,sans-serif);color:#2f2a1e}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar>.bag-filters-toggle{display:block;order:3;flex:none;min-height:40px;padding:0 12px;border:1px solid #c9b07a;border-radius:10px;background:#efe4c6;font:700 12px var(--font-ui,sans-serif);color:#3a2c12}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar>.bag-filters-toggle[aria-expanded=true]{background:#e07b12;border-color:#b25a10;color:#fff}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar>span{order:5;flex:1 1 100%;font-size:11px!important;color:#7a6d52;white-space:nowrap}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar>#bag-type,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar>label{display:none!important;order:4}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar.is-open>#bag-type{display:block!important;flex:1 1 150px;max-width:none!important;min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar.is-open>label{display:flex!important;flex:1 1 120px;align-items:center;gap:6px;font-size:12px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-toolbar.is-open>label select{flex:1;min-width:0;max-width:none!important;min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-footer{position:sticky!important;bottom:0;z-index:6;margin:8px 0 0!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))!important;background:#efe5c8!important;border-top:1px solid #c9b07a!important;border-radius:10px 10px 0 0;box-shadow:0 -6px 12px -8px #0006}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] #player-dialog-content{padding-bottom:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-footer .bag-wallet{display:flex;flex-wrap:wrap;gap:4px 12px;font-weight:700}
}

/* ===================== Lot mobile6 (21/10/2026, après la prod 8da7915f) : chat plein écran + chasse automatique (hunt.mjs) ===================== */
@media (max-width:700px),(max-width:1000px) and (max-height:500px){
/* ---------- 9. Discussion plein écran : fil, puis canaux sur une ligne, puis saisie ; zone sûre du bas et clavier virtuel ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel#chat-panel:not([hidden]){display:flex!important;flex-direction:column!important;box-sizing:border-box!important;padding:0 env(safe-area-inset-right,0px) max(env(safe-area-inset-bottom,0px),var(--rv-kb,0px)) env(safe-area-inset-left,0px)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel>:is(#chat-astrub,#chat-private,#chat-combat,#chat-social):not([hidden]){flex:1 1 auto!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel :is(#chat-messages,#chat-pm-feed,#chat-journal){flex:1 1 auto!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel :is(.chat-toggles,#chat-access,#chat-status,.chat-channels,.chat-channel-hint,#chat-form,.chat-compose-note,#chat-pm-form){flex:none!important;position:static!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-channels{height:auto!important;min-height:0!important;max-height:none!important;margin:0!important;padding:4px 10px!important;gap:6px!important;border:0!important;border-top:1px solid #c9b07a66!important;border-radius:0!important;background:#00000010!important;align-items:center!important;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent)}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-channels>button{height:40px!important;min-height:40px!important;padding:0 12px!important;flex:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-channel-hint:empty{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel #chat-form,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel #chat-pm-form{margin:0!important;min-height:48px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel :is(#chat-input,#chat-pm-input){min-height:48px!important;font-size:16px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel :is(#chat-send,#chat-pm-send){min-width:48px!important;min-height:48px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel #chat-combat>:last-child,html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel #social-feedback{flex:none}
/* boutons ⋮ de modération : 32 px, en haut à droite, le texte leur laisse la place */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat .chat-message>.chat-mod-btn{top:2px!important;right:2px!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px;padding:0!important;border-radius:8px!important;font:800 16px/30px var(--font-ui,sans-serif)!important;opacity:.6}
/* bienvenue et coordonnées : jamais plus larges que le message */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat .chat-message :is(.chat-welcome,.chat-pos-link,.chat-item-link){max-width:100%;white-space:normal!important;overflow-wrap:anywhere;text-align:left}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat .chat-message .chat-welcome{display:flex;width:max-content;align-items:center;height:32px;min-height:32px!important;margin:4px 0 2px!important;padding:0 10px!important;position:relative}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat .chat-message .chat-welcome::after{content:"";position:absolute;inset:-5px -2px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #chat-overlay .chat-ov-welcome{position:relative;max-width:100%;white-space:normal!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #chat-overlay .chat-ov-welcome::before{content:"";position:absolute;inset:-8px -2px}

/* ---------- 10. HUD : bandeau du tirage sous les pastilles du haut, cibles tactiles élargies ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d).rvh-onb:not(#rvh0) .drw-banner{top:calc(env(safe-area-inset-top,0px) + 122px)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d).rvh-mwc:not(#rvh0) .drw-banner{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) :is(#mobile-location,#mobile-menu-toggle,.i18n-option){position:relative}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) :is(#mobile-location,#mobile-menu-toggle,.i18n-option)::after{content:"";position:absolute;inset:-4px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d).rvh-mp:not(#rvh0) :is(#feedback-fab,#leaderboard-fab){visibility:hidden!important}

/* ---------- 11. Cibles tactiles d'au moins 40 px (création, fiche d'objet, banque, succès, percepteur, réglages, administration, journal) ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars [data-act=sex]{min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars .rv-color-random{min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars .rv-create{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet .ish-nav button{min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet .ish-x{width:40px!important;height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet .ish-tags button{position:relative}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet .ish-tags button::after{content:"";position:absolute;inset:-8px -2px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel :is(.rv-bank-all,.rv-bank-sidefilter button,.rv-bank-type){min-height:40px!important;height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-search input{min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-ribbon button{min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-objs summary{min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #collector-card .cc-x{width:44px!important;height:44px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) :is(.account-login,.account-signup){min-height:40px!important;display:inline-flex!important;align-items:center;justify-content:center}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .account-forgot{display:inline-flex!important;align-items:center;min-height:40px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel :is(button,input,select){min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #admin-panel .admin-link{min-height:40px!important;display:inline-flex;align-items:center}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) .setrow-qty{position:relative;z-index:2}

/* ---------- 12. Paysage : encoche à gauche et barre du bas sur les fenêtres plein écran ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) :is(#player-dialog,#player-dialog-char,#class-dialog,#adventure-panel,#player-market,#astrub-shop,#guild-window,#codex-dialog,#bestiary-dialog,#leaderboard-dialog,#achievements-dialog,#rv-item-sheet,#admin-panel,#draw-results,#worldmap,#rv-chars):not([hidden]){padding-left:env(safe-area-inset-left,0px)!important;padding-right:env(safe-area-inset-right,0px)!important;box-sizing:border-box!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #worldmap :is(.wm-legend,.wm-foot,footer){padding-bottom:env(safe-area-inset-bottom,0px)}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #achievements-dialog .ach-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars :is(.rv-lx-cta,.rv-chars-actions){padding-bottom:max(10px,env(safe-area-inset-bottom,0px))!important}
}

/* ---------- 13. Deuxième passe de la chasse (hunt.mjs) ---------- */
@media (max-width:700px),(max-width:1000px) and (max-height:500px){
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat .chat-message>.chat-mod-btn::after{content:"";position:absolute;inset:-4px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #update-notice-later{position:relative}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #update-notice-later::after{content:"";position:absolute;inset:-7px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet .ish-tag{position:relative}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet .ish-tag::after{content:"";position:absolute;inset:-8px -2px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-sidefilter :is(button,.rv-bank-type){min-height:40px!important;height:40px!important}
/* HUD en paysage : rien sous l'encoche */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #mobile-topbar{left:max(8px,env(safe-area-inset-left,0px))!important;right:max(8px,env(safe-area-inset-right,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) :is(#rv-ping,#rv-onb-chip){left:max(8px,env(safe-area-inset-left,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #chat-overlay#chat-overlay{left:max(8px,env(safe-area-inset-left,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #mobile-explorebar{left:max(8px,env(safe-area-inset-left,0px))!important;right:max(8px,env(safe-area-inset-right,0px))!important}
}
@media (max-height:500px) and (max-width:1000px){
/* sac en paysage : la grille n'a plus une hauteur figée (les rangées se chevauchaient), la page défile */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-layout{height:auto!important;max-height:none!important;min-height:0!important;grid-template-rows:auto auto!important;align-items:start}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] :is(.bag-storage,.item-inspector,.bag-equipment){height:auto!important;max-height:none!important;min-height:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #player-dialog[data-view=inventory] .bag-grid{max-height:none!important;overflow:visible!important}
/* carte du monde : colonne d'outils qui défile au lieu de déborder, légende au-dessus de la barre du bas */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #worldmap .worldmap-tools{bottom:8px!important;max-height:calc(100% - 16px)!important;overflow-y:auto!important;scrollbar-width:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #worldmap #worldmap-legend{padding-bottom:env(safe-area-inset-bottom,0px)!important;padding-left:env(safe-area-inset-left,0px)!important}
}
@media (max-width:700px),(max-width:1000px) and (max-height:500px){
/* création et choix du personnage : flèches, rotation, couleurs à 40 px ; bas de l'écran au-dessus de la barre système */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars .rv-step{min-width:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars :is(.rv-turn,.rv-s3-turn){width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars input[type=color]{width:40px!important;height:40px!important;min-width:40px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars [data-act=color-reset]{position:relative}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars [data-act=color-reset]::after{content:"";position:absolute;inset:-9px -7px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-chars:not([hidden]){padding-bottom:env(safe-area-inset-bottom,0px)!important;box-sizing:border-box!important}
}
/* ⋮ de modération : masqué sur écran tactile (appui long sur le message, chat-ui.js) ; le texte garde toute la largeur */
@media (hover:none) and (pointer:coarse){
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat .chat-message>.chat-mod-btn{display:none!important}
}

/* ===================== Lot mobile7 (21/10/2026) : téléphone en paysage (hauteur ≤ 500 px) ===================== */
@media (orientation:landscape) and (max-height:500px){
/* ---------- 14. HUD : barre du bas compacte (icône et libellé sur une ligne), chat de jeu réduit ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d){--mobile-nav-height:44px!important;--m3-head-h:44px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #mobile-explorebar{height:44px!important;min-height:0!important;padding:2px 4px!important;bottom:max(4px,env(safe-area-inset-bottom,0px))!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(560px,calc(100vw - 2 * max(8px,env(safe-area-inset-left,0px)) - 120px))!important;box-sizing:border-box}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #mobile-explorebar>button{flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:6px!important;height:40px!important;min-height:40px!important;padding:0 6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #mobile-explorebar>button>:is(img,svg){width:20px!important;height:20px!important;margin:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #mobile-explorebar>button>span{font-size:12px!important;line-height:1!important;margin:0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #chat-overlay#chat-overlay{width:min(36vw,330px)!important;bottom:calc(max(4px,env(safe-area-inset-bottom,0px)) + 50px)!important;font-size:11px!important;background:rgba(22,16,9,.32)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #chat-overlay#chat-overlay .chat-overlay-feed{max-height:calc(3 * 1.45em + 6px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #chat-overlay#chat-overlay .chat-ov-tabs button{height:20px!important;min-height:20px!important;font-size:10px!important;padding:0 7px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-teamframe{top:auto!important;bottom:calc(max(4px,env(safe-area-inset-bottom,0px)) + 52px)!important;left:auto!important;right:max(8px,env(safe-area-inset-right,0px))!important;width:160px!important}

/* ---------- 15. Fenêtres : en-têtes compacts, largeur utilisée, défilement interne ---------- */
/* fiche d'objet : deux colonnes (présentation à gauche, détails et actions à droite) */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet[open]{display:grid!important;grid-template-columns:minmax(250px,36%) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) auto!important;height:100dvh!important;max-height:100dvh!important;overflow:hidden!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet[open]>.ish-grab{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet[open]>.ish-hero{grid-column:1;grid-row:1 / 3;min-height:0;overflow-y:auto!important;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet[open]>.ish-body{grid-column:2;grid-row:1;min-height:0;overflow-y:auto!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet[open]>.ish-actions{grid-column:2;grid-row:2;padding-bottom:max(8px,env(safe-area-inset-bottom,0px))!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-item-sheet[open]>.ish-actions .ish-btn{min-height:40px!important}
/* banque : sac et coffre côte à côte (plus d'onglets), outils sur deux colonnes */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:6px 10px!important;align-items:start}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2>*{grid-column:1 / -1}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2>.rv-bank-top{grid-column:1}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2>.rv-bank-tools{grid-column:2}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-tabs{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank-cols2{display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;align-items:start;gap:8px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2[data-tab] .rv-bank-side[data-side]{display:block!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2 .rv-bank-side[data-side=bank]{grid-column:1;grid-row:1}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2 .rv-bank-side[data-side=bag]{grid-column:3;grid-row:1}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2 .rv-bank-move{grid-column:2;grid-row:1;order:0!important;position:sticky!important;top:0;flex-direction:column!important;flex-wrap:nowrap!important;width:120px;background:transparent!important;box-shadow:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2[data-tab] .rv-bank-move [data-action]{display:block!important;width:100%}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #adventure-panel .rv-bank2 .rv-bank-side>header h3{display:block!important;font-size:13px!important}
/* menu, sondages, communauté : feuilles plus larges, hauteur limitée à l'écran */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) :is(#mobile-menu-sheet,#polls-dialog,#community-dialog)[open]{transform:none!important;translate:none!important;left:0!important;right:0!important;margin-inline:auto!important;width:min(760px,calc(100vw - 2 * max(12px,env(safe-area-inset-left,0px))))!important;max-width:none!important;max-height:calc(100dvh - 8px)!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #mobile-menu-sheet #quick-access-grid{grid-template-columns:repeat(auto-fill,minmax(104px,1fr))!important}
/* tirage : fenêtre plus large, gagnants sur deux colonnes */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #draw-results[open]{left:0!important;right:0!important;margin:auto!important;transform:none!important;width:min(900px,calc(100vw - 2 * max(12px,env(safe-area-inset-left,0px))))!important;max-width:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #draw-results .drw-window{width:100%!important;max-width:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #draw-results .drw-wins{grid-template-columns:repeat(2,minmax(0,1fr))!important}
/* en-têtes compacts des fenêtres plein écran (Sac, Personnage, Sorts, HDV, banque, marchand, guilde, codex, bestiaire, classement, social…) */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) :is(#player-dialog,#player-dialog-char,#class-dialog,#adventure-panel,#player-market,#astrub-shop,#guild-window,#codex-dialog,#bestiary-dialog,#leaderboard-dialog) :is(header,.m3-head):first-child{min-height:44px!important}
}

/* ===================== Lot mobile8 (21/10/2026) : conversations privées, étiquette du joueur ===================== */
@media (max-width:700px),(max-width:1000px) and (max-height:500px){
/* ---------- 16. Onglet Privé : toutes les conversations sur une ligne qui défile, pastilles compactes ---------- */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-pm-list{flex:none!important;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;max-height:none!important;height:auto!important;gap:6px!important;padding:6px 10px!important;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 22px),transparent)}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-pm-list::-webkit-scrollbar{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-pm-chip{flex:none!important;display:inline-flex!important;align-items:stretch}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-pm-peer{height:36px!important;min-height:36px!important;padding:0 10px!important;font-size:13px!important;white-space:nowrap;position:relative}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-pm-peer::after{content:"";position:absolute;inset:-2px 0}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-pm-chip .chat-pm-close{width:28px!important;min-width:28px!important;height:36px!important;min-height:36px!important;font-size:11px!important;line-height:1!important;position:relative}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-pm-chip .chat-pm-close::after{content:"";position:absolute;inset:-2px -12px -2px 0}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel .chat-pm-inbox{flex:none!important;min-height:40px!important;margin:6px 10px 0!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #retroverse-chat #chat-panel #chat-combat label:has(>input[type=checkbox]){min-height:40px!important;display:inline-flex!important;align-items:center;gap:6px}
}

/* ===================== Lot mobile9 (21/10/2026) : bandeau de fin de combat compact ===================== */
@media (max-width:700px),(max-width:1000px) and (max-height:500px){
/* une seule bande au-dessus de la barre du bas : emblème, Victoire, XP, kamas, butin qui défile, « Suivant », × ; toucher le bandeau = détails (fight-result.js) */
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast{bottom:calc(env(safe-area-inset-bottom,0px) + 80px)!important;width:calc(100vw - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))!important;max-width:520px!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;padding:6px 6px 6px 8px!important;border-radius:14px!important;min-height:0!important;max-height:64px;cursor:pointer}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast::before{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-head{flex:none!important;gap:6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-emblem{width:28px!important;height:28px!important;font-size:14px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-title{flex:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-title b{font-size:14px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-title small{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-gains{gap:4px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast :is(.ft-xp,.ft-kamas){padding:3px 7px 3px 5px!important;font-size:12px!important;gap:3px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-gains img{width:14px!important;height:14px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-ups{flex:none!important;flex-wrap:nowrap!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-up{padding:2px 6px 2px 3px!important;font-size:11px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-up b{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-foot{display:flex!important;flex:1 1 auto!important;flex-wrap:nowrap!important;align-items:center!important;min-width:0!important;padding:0!important;border:0!important;gap:6px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d):where(.rv-f-toast):not(#rv-fx) #chat-overlay{visibility:hidden!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-loot{flex:1 1 auto!important;min-width:0!important;overflow-x:auto!important;scrollbar-width:none;gap:5px!important;padding:5px 2px!important;-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 14px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 14px),transparent)}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-loot::-webkit-scrollbar{display:none}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast :is(.ft-item,.ft-more){width:30px!important;height:30px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-item img{width:24px!important;height:24px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-actions{gap:4px!important;flex:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-actions .ft-more-btn{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-actions .ft-next{font-size:0!important;min-height:40px!important;padding:0 10px!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-actions .ft-next::before{content:"⚔ Suivant";font:800 12px/1 var(--font-ui,sans-serif)}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-actions .ft-x{width:32px!important;height:32px!important;min-height:32px!important;position:relative;background:transparent!important;border-color:transparent!important;opacity:.75}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-actions .ft-x::after{content:"";position:absolute;inset:-4px}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast.is-lost{width:auto!important;max-width:min(420px,calc(100vw - 16px))!important}
}
@media (orientation:landscape) and (max-height:500px){
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast{bottom:calc(max(4px,env(safe-area-inset-bottom,0px)) + 52px)!important;width:min(560px,calc(100vw - 2 * max(8px,env(safe-area-inset-left,0px)) - 120px))!important}
}
@media (max-width:380px){
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast.is-won .ft-title{display:none!important}
html:not(#v4a):not(#v4b):not(#v4c) body:not(#v4d) #rv-fight-toast .ft-actions .ft-next{padding:0 8px!important}
}
