/* Téléphone, DA « clean » (body.skin-clean.mobile seulement ; l'ordinateur et ?skin=dofus n'en voient rien) : les blocs qui étaient
   « ordinateur seulement » déclinés au téléphone, dans la même langue (mêmes couleurs, mêmes tuiles). Tailles en px de scène
   (460 de haut : × 0,85 à l'écran à 390, × 0,78 à 360). Charge après skin-clean.css (index.html, skin.js applySkin).
   A. perso : la plaque B sans l'équipement (skin.js charPhone). B. synergies : grille fixe à pages (skin.js traitRows).
   C. tiroir des objets : quête façon relique, équipement en tuiles, inventaire 4 × 3 fixe, bouton PANOPLIES (skin.js setsRail, itemsPhone). */

/* ================================================================ A. perso : niveau, XP, bouton d'XP, caractéristiques */
/* grille : [NIV. N | bouton d'XP] / [XP ─ barre ─ n/N] / [place de l'onglet « point à placer », toujours réservée] / caractéristiques 2 × 3 */
body.skin-clean.mobile #d-char { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 32px 14px 17px auto; grid-template-areas: "lvl btn" "xp xp" "tab tab" "st st";
  column-gap: 10px; row-gap: 5px; padding: 4px 1px 4px; }
body.skin-clean.mobile #d-char .hp-col, body.skin-clean.mobile #d-char .portrait-wrap, body.skin-clean.mobile #d-char .char-name,
body.skin-clean.mobile #d-char .char-cls, body.skin-clean.mobile #d-char .char-xptext { display: none; }   /* PV : commandant du plateau et anneau de la liste des joueurs */
body.skin-clean.mobile #d-char .char-info, body.skin-clean.mobile #d-char .char-top, body.skin-clean.mobile #d-char .char-id { display: contents; }
/* niveau : du texte (pas un bouton) : « NIV. » petites capitales grises, nombre lime */
body.skin-clean.mobile #d-char .char-lvl { grid-area: lvl; margin: 0; height: 32px; display: flex; align-items: center; padding: 0 0 0 2px; background: none; clip-path: none; }
body.skin-clean.mobile #d-char .char-lvl b { display: flex; align-items: baseline; gap: 4px; font: 800 24px/1 Lexend, sans-serif; color: var(--lime); }
body.skin-clean.mobile #d-char .char-lvl b::before { content: 'Niv.'; font-size: 11px; font-weight: 700; color: #c9c2b0; text-transform: uppercase; letter-spacing: .5px; }
/* bouton d'XP : la pastille lime biseautée de l'ordinateur */
body.skin-clean.mobile #d-char #xp-btn { grid-area: btn; position: static; width: auto; height: 32px; margin: 0; padding: 0 6px; gap: 3px; border: 0; border-radius: 0; box-shadow: none; text-shadow: none;
  background: var(--lime); color: #15121d; font: 700 13px/1 Lexend, sans-serif; white-space: nowrap; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
body.skin-clean.mobile #d-char #xp-btn img { flex: none; width: auto; height: 16px; max-width: 24px; object-fit: contain; }
body.skin-clean.mobile #d-char #xp-btn:disabled { background: #3a3150; color: #b8b0d0; }
/* XP : « XP » + barre + n/N sur une ligne */
body.skin-clean.mobile .sk-xprow { grid-area: xp; display: flex; align-items: center; gap: 6px; min-width: 0; }
body.skin-clean.mobile .sk-xpl { flex: none; font: 700 11px/1 Lexend, sans-serif; font-style: normal; letter-spacing: 1.2px; color: #b8b0d0; }
body.skin-clean.mobile .sk-xprow .bar.xp { position: static; flex: 1; min-width: 0; height: 8px; margin: 0; background: #2a2236; border: 0; border-radius: 0; box-shadow: none; }
body.skin-clean.mobile .sk-xprow .bar.xp i { background: var(--lime); }
body.skin-clean.mobile .sk-xpn { flex: none; font: 700 12px/1 Lexend, sans-serif; color: var(--lime); white-space: nowrap; }
/* caractéristiques : lignes de l'ordinateur (filet de couleur, icône, valeur, bonus des objets) en 2 colonnes de 28 px */
body.skin-clean.mobile #d-char #stats-list { grid-area: st; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; width: auto; }
body.skin-clean.mobile #d-char .stat-row { position: relative; height: 28px; min-width: 0; display: flex; align-items: center; gap: 4px; padding: 0 0 0 5px; overflow: hidden;
  background: #1d1729; border: 0; border-left: 4px solid var(--sc, var(--lime)); border-radius: 0; }
body.skin-clean.mobile #d-char .stat-row:nth-child(1) { --sc: #79d62a; }
body.skin-clean.mobile #d-char .stat-row:nth-child(2) { --sc: #c457ff; }
body.skin-clean.mobile #d-char .stat-row:nth-child(3) { --sc: #ff7a1a; }
body.skin-clean.mobile #d-char .stat-row:nth-child(4) { --sc: #26a9ff; }
body.skin-clean.mobile #d-char .stat-row:nth-child(5) { --sc: #b98bff; }
body.skin-clean.mobile #d-char .stat-row > img { width: 16px; height: 16px; object-fit: contain; margin: 0; flex: none; }
body.skin-clean.mobile #d-char .stat-row .sv { order: 1; flex: none; width: auto; min-width: 0; margin: 0; text-align: left; font: 700 16px/1 Lexend, sans-serif; color: #fff; }
body.skin-clean.mobile #d-char .stat-row .sg { order: 2; position: static; flex: none; margin: 0; padding: 0; background: none; font: 700 11px/1 Lexend, sans-serif; color: #b8b0d0; }
/* « +1 » : pastille lime biseautée de 30 px au bout de la ligne, seulement s'il reste un point (zone de toucher 30 × 32) */
body.skin-clean.mobile #d-char .stat-row .btn-plus, body.skin-clean.mobile #d-char .stat-row .btn-plus:disabled { display: none; }
body.skin-clean.mobile #d-char.has-points .stat-row .btn-plus:not(:disabled) { order: 3; display: flex; align-items: center; justify-content: center; align-self: stretch; flex: none;
  width: 30px; height: auto; margin: 0 0 0 auto; padding: 0 0 0 4px; border: 0; border-radius: 0; box-shadow: none; background: var(--lime); color: #15121d; visibility: visible;
  font: 700 14px/1 Lexend, sans-serif; clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%); animation: skPill 1.1s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 90ms); }
body.skin-clean.mobile #d-char.has-points .stat-row .btn-plus:not(:disabled)::after { content: '1'; }
body.skin-clean.mobile #d-char.has-points .stat-row .sg { display: none; }   /* la pastille prend sa place (la valeur affichée l'inclut ; détail dans la bulle) */
body.skin-clean.mobile #d-char.has-points .stat-row .btn-plus:not(:disabled):active { background: #fff; }
/* un point à placer = le signal de l'ordinateur : contour lime qui respire autour des caractéristiques, lignes teintées, valeurs lime,
   onglet lime « ▼ N POINT(S) À PLACER ▼ » posé sur le contour (place réservée : rien ne bouge quand il paraît) */
body.skin-clean.mobile #d-char.has-points #stats-list { box-shadow: 0 0 0 2px var(--lime); animation: skPtsColM 1s ease-in-out infinite alternate; }
@keyframes skPtsColM { to { box-shadow: 0 0 0 3px var(--lime); } }
body.skin-clean.mobile #d-char.has-points .stat-row { background: #262e10; }
body.skin-clean.mobile #d-char.has-points .stat-row .sv { color: var(--lime); animation: skPtsVal 1s ease-in-out infinite alternate; }
body.skin-clean.mobile #d-char #stat-points { grid-area: tab; position: static; display: none; }
body.skin-clean.mobile #d-char.has-points > .char-info > #stat-points:not(:empty), body.skin-clean.mobile #d-char.has-points #stat-points:not(:empty) {
  display: flex; align-items: center; justify-content: center; gap: 5px; align-self: end; width: auto; height: 17px; margin: 0 -2px -7px; padding: 0 6px; box-sizing: border-box;
  border: 0; border-radius: 8px 8px 0 0; background: var(--lime); box-shadow: none; color: #15121d; font: 800 11px/1 Lexend, sans-serif; letter-spacing: .5px; text-transform: uppercase;
  white-space: nowrap; text-align: center; animation: none; }
body.skin-clean.mobile #d-char.has-points #stat-points:not(:empty)::before, body.skin-clean.mobile #d-char.has-points #stat-points:not(:empty)::after { content: '▼'; font-size: 8px; vertical-align: 0; }
body.skin-clean.mobile.noanim #d-char.has-points #stats-list, body.skin-clean.mobile.noanim #d-char.has-points .stat-row .sv, body.skin-clean.mobile.noanim #d-char.has-points .stat-row .btn-plus { animation: none; }

/* ================================================================ B. synergies : grille de hauteur fixe, pages (skin.js traitRows) */
/* 2 colonnes de lignes de 30 px (tuile 26 + nombre) ; autant de rangées que la place laissée par le perso ; les autres pages en
   display none ; le bouton « +N » / « ‹ » toujours au bout de la ligne du titre (invisible sans 2e page) : rien ne bouge */
body.skin-clean.mobile #traits { position: relative; display: flex; flex-direction: column; padding: 2px 0 0; overflow: hidden; }
body.skin-clean.mobile #traits-title { flex: none; height: 22px; margin: 0 34px 2px 2px; display: flex; align-items: center; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.skin-clean.mobile #traits-list { flex: 1 1 0; min-height: 0; height: auto; max-height: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 30px;
  align-content: start; gap: 2px 4px; overflow: hidden; -webkit-mask-image: none; mask-image: none; }
body.skin-clean.mobile #traits-list > .trait, body.skin-clean.mobile #traits-list > .trait.on { width: auto; min-width: 0; height: 30px; padding: 0 4px 0 2px; }
body.skin-clean.mobile #traits-list > .trait.sk-off { display: none; }
body.skin-clean.mobile #traits-list > .empty-note { grid-column: 1 / -1; grid-row: span 3; font-size: 11px; line-height: 1.3; color: #a39c8c; }
body.skin-clean.mobile .sk-trmore { position: absolute; top: 1px; right: 4px; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: var(--lime); color: #15121d; font: 800 11.5px/1 Lexend, sans-serif; letter-spacing: -.3px; cursor: pointer; }
body.skin-clean.mobile .sk-trmore::before { content: ''; position: absolute; inset: -4px -4px -6px -8px; }   /* zone de toucher 36 × 34 */
body.skin-clean.mobile .sk-trmore[hidden] { display: flex !important; visibility: hidden; pointer-events: none; }
body.skin-clean.mobile .sk-trmore .x { display: none; }
body.skin-clean.mobile .sk-trmore.back .c { font-size: 16px; }

/* ================================================================ C. tiroir des objets (bouton « Objets ») */
/* grille sans défilement : quête (toute la largeur) / [ÉQUIPEMENT 3 × 2 + PANOPLIES | INVENTAIRE 4 × 3] ; plaque d'encre, bord droit fondu */
body.skin-clean.mobile #items { width: 372px; padding: 10px 18px 8px 10px; box-sizing: border-box;
  background: linear-gradient(90deg, rgba(var(--ink),.95) 0, rgba(var(--ink),.92) calc(100% - 18px), rgba(var(--ink),0) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 8px, #000 calc(100% - 8px), transparent); mask-image: linear-gradient(180deg, transparent, #000 8px, #000 calc(100% - 8px), transparent); }
body.skin-clean.mobile #game[data-drawer="items"] #items { display: grid; grid-template-columns: 166px 159px; grid-template-rows: auto 18px 93px 30px;
  grid-template-areas: "quest quest" "eqh invh" "eq inv" "pano inv"; column-gap: 14px; row-gap: 5px; align-content: start; }
/* bas du tiroir au-dessus de la poignée « MARCHÉ » (elle reste entière) ; marché replié : au-dessus de la poignée posée en bas */
body.skin-clean.mobile #items { bottom: 160px; }
body.skin-clean.mobile #game.mk-closed:not(.mk-peek) #items { bottom: 32px; }
body.skin-clean.mobile #sk-sets-hold { display: none; }
/* titres : « ÉQUIPEMENT n/6 » (le h3 « Objets » : skin.js railsPC écrit n/6 ; le bouton Vendre d'un objet touché y reste) et « INVENTAIRE » */
body.skin-clean.mobile #items > h3 { margin: 0; height: 18px; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; }
body.skin-clean.mobile #items > h3:first-child { grid-area: eqh; font-size: 0; }
body.skin-clean.mobile #items > h3:first-child::before { content: 'Équipement'; font: 700 11px/1 Lexend, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #ece6d6; }
body.skin-clean.mobile #items > h3:first-child .hint { font: 700 11px/1 Lexend, sans-serif; color: #d9d2bf; }
body.skin-clean.mobile #items > h3.h-res { grid-area: invh; margin: 0; font: 700 11px/1 Lexend, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #ece6d6; }
body.skin-clean.mobile #items > h3.h-res .hint { display: none; }   /* « glisse sur une autre » : la bulle des cases vides et le tutoriel le disent */
body.skin-clean.mobile #items > h3 .sell { flex: none; height: 18px; margin-left: auto; padding: 0 7px; font: 700 11px/18px Lexend, sans-serif; letter-spacing: 0; text-transform: none; }
/* quête / relique : le bloc de prestige de l'ordinateur en bande : panneau indigo → encre, liseré d'or, « QUÊTE » (gagnée : « RELIQUE ») ;
   [tuile 40 | quête 2 lignes + barre | effet de la relique 3 lignes] ; texte entier dans sa bulle (toucher) */
body.skin-clean.mobile .relic-slot, body.skin-clean.mobile .relic-slot.done { grid-area: quest; position: relative; height: 76px; min-height: 0; margin: 0 0 4px -10px; padding: 22px 10px 6px 13px; overflow: hidden;
  background: linear-gradient(90deg, #2a1d6b 0, #170f3a 58%, rgba(23,15,58,.9) 100%); border: 0; border-left: 3px solid #ffd23f; border-radius: 0 10px 10px 0; box-sizing: border-box;
  display: grid; grid-template-columns: 40px minmax(0, .92fr) minmax(0, 1.08fr); grid-template-rows: 30px 14px; grid-template-areas: "ic q txt" "ic prog txt"; column-gap: 11px; row-gap: 4px; align-items: center; }
body.skin-clean.mobile .relic-slot.done { grid-template-areas: "ic q txt" "ic q txt"; }
body.skin-clean.mobile .relic-slot::before { content: 'Quête'; position: absolute; left: 13px; top: 7px; font: 800 11px/1 Lexend, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: #ffd23f; }
body.skin-clean.mobile .relic-slot.done::before { content: 'Relique'; }
/* équipement : les tuiles de l'ordinateur (3 × 2 de 52 × 44), icône seule (les chiffres sont dans la bulle) ; case vide = « libre » pointillé */
body.skin-clean.mobile #items #equip-grid { grid-area: eq; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 44px); gap: 5px; }
body.skin-clean.mobile #equip-grid .slot, body.skin-clean.mobile #equip-grid .slot:not(.full) ~ .slot:not(.full) { width: auto; height: 44px; display: flex; align-items: center; justify-content: center;
  background: #241d38; border: 0; border-bottom: 4px solid #4b3477; border-radius: 0; box-shadow: none; overflow: hidden; box-sizing: border-box; }
body.skin-clean.mobile #equip-grid .slot > img { width: 32px; height: 32px; margin: 0; object-fit: contain; }
body.skin-clean.mobile #equip-grid .slot .st { display: none; }
body.skin-clean.mobile #equip-grid .slot.full:hover, body.skin-clean.mobile #equip-grid .slot.sel { border: 0; border-bottom: 4px solid var(--lime); background: #2e2548; }
body.skin-clean.mobile #equip-grid .slot.drop { border: 0; border-bottom: 4px solid var(--lime); background: #3b4410; }
body.skin-clean.mobile #equip-grid .slot:not(.full), body.skin-clean.mobile #equip-grid .slot:not(.full) ~ .slot:not(.full) { background: #17131f; border: 2px dashed #3a3150; }
body.skin-clean.mobile #equip-grid .slot:not(.full)::after { content: 'libre'; width: auto; height: auto; border: 0; border-radius: 0; background: none; font: 600 11px/1 Lexend, sans-serif; color: #7a7194; }
body.skin-clean.mobile #equip-grid .slot.drop:not(.full), body.skin-clean.mobile #equip-grid .slot:not(.full) ~ .slot.drop:not(.full) { background: #3b4410; border: 2px solid var(--lime); }
/* inventaire : les 12 places toujours dessinées (4 × 3 de 36 px) : les icônes ne glissent plus d'une case à l'autre */
body.skin-clean.mobile #items #bag-grid { grid-area: inv; display: grid; grid-template-columns: repeat(4, 36px); grid-template-rows: repeat(3, 36px); grid-auto-rows: 36px; gap: 5px; align-content: start; margin: 0; }
body.skin-clean.mobile #bag-grid .res { width: 36px; height: 36px; }
body.skin-clean.mobile #bag-grid .res img, body.skin-clean.mobile #bag-grid .res.cons img { width: 32px; height: 32px; }
body.skin-clean.mobile #bag-grid .res.cons .cs-badge { min-width: 17px; height: 17px; font-size: 11px; }
body.skin-clean.mobile #bag-grid .res.empty ~ .res.empty, body.skin-clean.mobile #bag-grid:not(:has(.res:not(.empty))) > * { display: flex; }
body.skin-clean.mobile #bag-grid:not(:has(.res:not(.empty)))::before { content: none; }
/* panoplies : le bouton de l'ordinateur (liseré lime, pastille = panoplies actives) sous l'équipement ; un toucher ouvre le panneau
   (à droite du tiroir, sur le plateau ; un toucher ailleurs le ferme) */
body.skin-clean.mobile #sk-pano { grid-area: pano; position: relative; }
body.skin-clean.mobile .sk-pano-btn { width: 100%; height: 30px; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 0 8px;
  background: #170f3a; border: 2px solid var(--lime); border-radius: 0; box-shadow: none; color: var(--lime); font: 800 11.5px/1 Lexend, sans-serif; letter-spacing: 1.8px; text-transform: uppercase; cursor: pointer; }
body.skin-clean.mobile .sk-pano-btn.on { background: var(--lime); color: #15121d; }
body.skin-clean.mobile .sk-pano-n { min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--lime); color: #15121d; font: 800 11px/18px Lexend, sans-serif; letter-spacing: 0; text-align: center; }
body.skin-clean.mobile .sk-pano-n[hidden] { display: none; }
body.skin-clean.mobile .sk-pano-btn.on .sk-pano-n { background: #15121d; color: var(--lime); }
body.skin-clean.mobile .sk-pano-pop { position: absolute; z-index: 26; left: 558px; top: 48px; width: 266px; max-height: 276px; box-sizing: border-box; overflow-y: auto; scrollbar-width: none; touch-action: pan-y;
  padding: 9px 12px 12px; display: flex; flex-direction: column; gap: 8px; background: #15121d; border: 2px solid #000; border-top: 4px solid var(--lime); border-radius: 12px; }
body.skin-clean.mobile .sk-pano-pop[hidden], body.skin-clean.mobile #game:not([data-drawer="items"]) .sk-pano-pop { display: none; }
body.skin-clean.mobile .sk-pano-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0; padding: 0; border: 0;
  font: 800 11.5px/16px Lexend, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--lime); }
body.skin-clean.mobile .sk-pano-h small { font: 600 11px/1 Lexend, sans-serif; letter-spacing: 0; text-transform: none; color: #b3aacb; }
body.skin-clean.mobile .sk-pano-list { display: flex; flex-direction: column; gap: 7px; }
body.skin-clean.mobile .sk-pano-list .empty-note { font: 500 12px/1.35 Lexend, sans-serif; color: #b3aacb; }
body.skin-clean.mobile .sk-set { display: flex; align-items: center; gap: 8px; padding: 2px 4px 2px 2px; border-radius: 8px; }
body.skin-clean.mobile .sk-set:active { background: rgba(255,255,255,.07); }
body.skin-clean.mobile .sk-set-ic { flex: none; width: 30px; height: 30px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(var(--ink),.8); border: 1.5px solid var(--fc, #c9bcef); }
body.skin-clean.mobile .sk-set-ic img { width: 22px; height: 22px; object-fit: contain; }
body.skin-clean.mobile .sk-set.on .sk-set-ic { box-shadow: 0 0 0 2px rgb(var(--ink)), 0 0 0 3.5px var(--lime); }
body.skin-clean.mobile .sk-set-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
body.skin-clean.mobile .sk-set-t > span { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
body.skin-clean.mobile .sk-set-t b { overflow: hidden; text-overflow: ellipsis; font: 700 13px/1.15 Lexend, sans-serif; color: #ece6d6; }
body.skin-clean.mobile .sk-set-t em { flex: none; font: 700 11.5px/1 Lexend, sans-serif; font-style: normal; color: #c9bcef; }
body.skin-clean.mobile .sk-set.on .sk-set-t b, body.skin-clean.mobile .sk-set.on .sk-set-t em { color: var(--lime); }
body.skin-clean.mobile .sk-set-t small { font: 500 11px/1.25 Lexend, sans-serif; color: #b3aacb; }
body.skin-clean.mobile .sk-set-t small i { display: block; font-style: normal; font-weight: 700; color: #e6f58a; }
body.skin-clean.mobile .sk-set-t small s { display: block; text-decoration: none; }
/* le tiroir s'élargit (372 px) : la colonne « Vendre » du glisser et les notifs passent à sa droite */
body.skin-clean.mobile #game[data-drawer="items"] #m-sell.on { left: 558px; }
body.skin-clean.mobile #game[data-drawer="items"] #toast { left: 558px; }
/* version Waven (agent items) : panneau AFFINITÉS (4 barres) au téléphone */
body.skin-clean.mobile .sk-aff-pop { max-height: 334px; top: 36px; gap: 6px; }
body.skin-clean.mobile .sk-aff-pop .sk-pano-list { gap: 4px; }
body.skin-clean.mobile .res .rs-pts { bottom: 0; }

/* ================================================================ D. colonne de gauche (Scott 2026-10-21 : « le bouton pour level up
   en bas à gauche en plus gros et au-dessus le reste bien rangé ») : [NIV. N ─ barre d'XP] / caractéristiques / kamas · pods /
   AFFINITÉS (4 tuiles) / SYNERGIES (pages) / en bas : Objets + gros bouton d'XP */
body.skin-clean.mobile #m-left { gap: 6px; }
body.skin-clean.mobile #d-char { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: 24px 15px auto; grid-template-areas: "lvl xp" "tab tab" "st st"; column-gap: 8px; row-gap: 3px; padding: 2px 1px 3px; }
body.skin-clean.mobile #d-char .char-lvl { height: 24px; }
body.skin-clean.mobile #d-char .char-lvl b { font-size: 22px; }
body.skin-clean.mobile .sk-xprow .sk-xpl { display: none; }   /* « XP » : la barre à côté du niveau suffit */
body.skin-clean.mobile #d-char .stat-row { height: 26px; }
body.skin-clean.mobile #m-aff .aff-title, body.skin-clean.mobile #traits-title { height: 15px; margin: 0 0 0 2px; display: flex; align-items: center; font: 700 11px/1 Lexend, sans-serif; letter-spacing: 1.2px; text-transform: uppercase; color: #ece6d6; }
body.skin-clean.mobile #traits-title { margin-right: 34px; }
body.skin-clean.mobile .aff-tile { background: #1d1729; border-radius: 0; }
/* bouton d'XP : la pastille lime biseautée, grande : « +6 XP » | « 8 kamas » ; grisé quand on ne peut pas acheter */
body.skin-clean.mobile #m-bottom #xp-btn { display: flex; align-items: center; justify-content: center; gap: 0; padding: 0 10px; border: 0; border-radius: 0; box-shadow: none; text-shadow: none;
  background: var(--lime); color: #15121d; white-space: nowrap; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
body.skin-clean.mobile #m-bottom #xp-btn .xb-main { display: flex; align-items: center; gap: 3px; font: 800 19px/1 Lexend, sans-serif; }
body.skin-clean.mobile #m-bottom #xp-btn .xb-sub { display: flex; align-items: center; gap: 3px; margin-left: 9px; padding-left: 9px; border-left: 1.5px solid rgba(21,18,29,.35); font: 700 14px/1 Lexend, sans-serif; }
body.skin-clean.mobile #m-bottom #xp-btn img { flex: none; width: auto; height: 20px; max-width: 26px; object-fit: contain; }
body.skin-clean.mobile #m-bottom #xp-btn .xb-sub img { height: 16px; }
body.skin-clean.mobile #m-bottom #xp-btn:disabled { background: #3a3150; color: #b8b0d0; }
body.skin-clean.mobile #m-bottom #xp-btn:disabled .xb-sub { border-color: rgba(184,176,208,.3); }
body.skin-clean.mobile #m-bottom #xp-btn:not(:disabled):active { background: #fff; }
body.skin-clean.mobile #m-bottom #m-items { background: #1d1729; border-radius: 0; }
body.skin-clean.mobile #m-bottom #m-items img { width: 24px; height: 24px; }

/* ================================================================ E. tiroir des objets, règles v3 (Scott 2026-10-21 : « on ne peut pas
   équiper d'objets sur les mobs puisque l'interface reste au milieu ») : une bande EN BAS à la place du marché (le plateau remonte comme
   marché ouvert, tes monstres restent visibles au-dessus) : INVENTAIRE en une ligne de 12 cases, la case « Vendre » au bout */
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #d-market { visibility: hidden; }
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #items { display: flex; flex-direction: column; justify-content: center; gap: 5px; left: 180px; right: 58px; width: auto; top: auto; bottom: 0; height: 92px;
  padding: 6px 114px 6px 10px; box-sizing: border-box; overflow: visible; background: rgba(var(--ink), .95); border-top: 3px solid var(--lime) !important; -webkit-mask-image: none; mask-image: none; }
body.skin-clean.mobile.rules-v3 #items > h3.h-res { flex: none; height: 16px; }
body.skin-clean.mobile.rules-v3 #items > h3.h-res .hint { display: inline; font: 500 11px/1 Lexend, sans-serif; letter-spacing: 0; text-transform: none; color: #a39c8c; }
body.skin-clean.mobile.rules-v3 #items #bag-grid { display: grid; grid-template-columns: repeat(12, 38px); grid-template-rows: 38px; grid-auto-rows: 38px; gap: 4px; }
body.skin-clean.mobile.rules-v3 #bag-grid .res { width: 38px; height: 38px; }
body.skin-clean.mobile.rules-v3 #bag-grid .res > img, body.skin-clean.mobile.rules-v3 #bag-grid .res.cons > img { width: 32px; height: 32px; }
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #m-sell { display: flex; position: absolute; z-index: 26; left: auto; right: 64px; top: auto; bottom: 6px; width: 98px; height: 76px; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 4px; box-sizing: border-box; border-radius: 0; border: 2px dashed #4b3a52; background: rgba(40,18,16,.5); color: #a39c8c; text-align: center; pointer-events: none; }
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #m-sell img { width: 22px; }
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #m-sell span { font: 700 13px/1 Lexend, sans-serif; color: inherit; }
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #m-sell em { display: none; }
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #m-sell b { font-size: 10.5px; line-height: 1.2; }
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #m-sell.on { border-color: #ff9a8f; background: rgba(90,25,20,.92); color: #ffd6d0; }
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #m-sell.hot { border-style: solid; border-color: #fff; background: #d8321f; color: #fff; }
body.skin-clean.mobile.rules-v3 #game[data-drawer="items"] #toast { left: 186px; }

/* glyphes d'élément chiffrés sur les anneaux de l'inventaire : petits, dans le coin (la règle des icônes 32 px les gonflait) */
body.skin-clean.mobile #bag-grid .res .rs-el, body.skin-clean.mobile #bag-grid .res .rs-el img { width: 15px; height: 15px; }
body.skin-clean.mobile #bag-grid .res .rs-el b { font-size: 9px; }
body.skin-clean.mobile #bag-grid .res .rs-pts { right: -3px; bottom: -3px; left: auto; gap: 0; flex-direction: row; }
