/* LegacyWorld — habillage DA de tgiann-inventory (30/11/2026), chargé après la feuille du bundle (index.html).
   Étape 1, demandée : les typos seulement. Typo du GPS (Barlow Condensed 800 italique, contour noir fin) pour le grand
   titre (en orange), les chiffres 1 à 5 de la barre rapide, les libellés des vêtements et les noms / quantités / poids
   des objets. Couleurs des cases, fonds et vert de l'inventaire inchangés. AUCUNE position ni taille ne change.
   Pour revenir en arrière : retirer la ligne <link …lw-da.css> d'index.html. */
@font-face { font-family: "LW Display"; src: url(./barlow-condensed-800-italic-latin.woff2) format("woff2"); font-weight: 800; font-style: italic; font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "LW Display"; src: url(./barlow-condensed-800-italic-latin-ext.woff2) format("woff2"); font-weight: 800; font-style: italic; font-display: block;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font-agrandir: "LW Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --lw-display: "LW Display", "Barlow Condensed", "Arial Narrow", sans-serif;
  --lw-kill: 0 0 .1vh rgba(0, 0, 0, .85), 0 .15vh .45vh rgba(0, 0, 0, .5);
}

/* grand titre « INVENTAIRE » : typo du GPS, orange de la DA */
.font-agrandir { font-style: italic; color: #ff9f43 !important; text-shadow: var(--lw-kill); }

/* grands chiffres de la barre rapide (1 à 5) : typo du GPS, même couleur qu'avant */
.item_box > .text-\[9vh\] { font-family: var(--lw-display); font-style: italic; font-weight: 800; }

/* nom, quantité et poids sur les cases */
.item_box_top_name { font-family: var(--lw-display); font-style: italic; font-weight: 800; font-variant: normal; text-transform: uppercase; text-shadow: var(--lw-kill); }
.item_box_top_label, .item_box_top_weight { font-family: var(--lw-display); font-style: italic; font-weight: 800; text-shadow: var(--lw-kill); }

/* libellés des cases de vêtements (CASQUE, MASQUE…) */
.item_box > .absolute.text-\[1\.4vh\] { font-family: var(--lw-display); font-style: italic; font-weight: 800; font-size: 1.6vh; text-transform: uppercase; }

/* Étape 1 bis (30/11, demandée) : les autres textes courts dans la typo du GPS, même taille qu'avant.
   « Votre inventaire » / nom du coffre, poids, Moi / Joueurs proches, nom du joueur en haut, « Tout ».
   Ces textes deviennent un peu plus étroits (police condensée) : les boutons Moi / Joueurs proches rétrécissent
   légèrement autour de leur centre, rien d'autre ne bouge. */
.grid-cols-\[auto_auto\].capitalize > .font-inter.font-semibold,
.grid-cols-\[auto_auto\].capitalize .font-inter.font-normal,
.inventory_centerpanel > div:first-child > div,
.h-\[4\.4vh\].items-center > p,
.min-w-\[3\.6vh\] > .px-\[1vh\].text-\[1\.4vh\] {
  font-family: var(--lw-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; text-shadow: var(--lw-kill);
}
/* la police condensée paraît plus petite : on la grossit, avec la hauteur de ligne d'origine (mesurée sur le banc :
   1,5 × la taille d'avant), pour que les lignes et les boutons gardent exactement leur hauteur */
/* « Votre inventaire », nom du coffre et poids : taille d'origine (grossis, ils décalaient l'en-tête du coffre de 7 px) */
.inventory_centerpanel > div:first-child > div { font-size: 1.95vh !important; line-height: 2.25vh !important; }
.h-\[4\.4vh\].items-center > p { font-size: 1.8vh; line-height: 2.1vh; }
.min-w-\[3\.6vh\] > .px-\[1vh\].text-\[1\.4vh\] { font-size: 1.75vh; line-height: 2.1vh; }

/* Étape 2 (30/11, demandée) : le vert de tgiann (#36ff9f) remplacé par la menthe de la DA (#3cffb0), partout où la
   feuille du bundle l'écrit (variable et valeurs en dur). Mêmes opacités qu'avant. */
:root { --green: #3cffb0; --green-text: #04140d; }
.bg-\[rgba\(54\,255\,159\,0\.08\)\] { background-color: rgba(60, 255, 176, .08); }
.nearby_card:hover { outline-color: rgba(60, 255, 176, .40); box-shadow: 0 0 .7vh rgba(60, 255, 176, .15); }
.nearby_card.nearby_card_over { outline-color: rgba(60, 255, 176, .85); box-shadow: 0 0 1vh rgba(60, 255, 176, .30); background-color: rgba(60, 255, 176, .06) !important; }
.set_item_badge.is_set { background: rgba(60, 255, 176, .12); border-color: rgba(60, 255, 176, .45); }
.set_item_badge.is_out:hover { background: rgba(60, 255, 176, .22); border-color: rgba(60, 255, 176, .9); }
.set_clothe_menu_item:hover { background: rgba(60, 255, 176, .12); }
.item_box.item_box_selected { box-shadow: 0 0 1.2vh rgba(60, 255, 176, .35); }
.nearby_card.nearby_card_clone:hover { box-shadow: 0 0 .7vh rgba(60, 255, 176, .15); }
.nearby_card.nearby_card_clone.nearby_card_over { box-shadow: 0 0 1vh rgba(60, 255, 176, .30); }

/* Étape 3 (30/11, demandée) : chiffres des cases dans la typo du GPS (quantité « 2 x », poids « 4.0 Kg », argent),
   le « x » et le « Kg » restent gris ; « ESC pour fermer » avec la touche killA. Tailles et places inchangées. */
.item_top_label { font-family: var(--lw-display); font-style: italic; font-weight: 800; letter-spacing: .02em; text-shadow: var(--lw-kill); }
.item_top_label .item_box_top_lebel_grey { font-family: var(--lw-display); font-style: italic; font-weight: 800; text-transform: uppercase; }
.text-lightWhite.group-hover\:text-white > div { font-family: var(--lw-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; text-shadow: var(--lw-kill); }
.text-lightWhite.group-hover\:text-white b {
  display: inline-block; margin-right: .35em; padding: 0 .45em .12em; border-radius: .45vh; vertical-align: .08em;
  background: linear-gradient(180deg, #ffffff 0%, #eef1ef 60%, #c9cfcc 100%); box-shadow: 0 .12vh 0 rgba(0, 0, 0, .45), 0 .3vh .8vh rgba(0, 0, 0, .4);
  color: #121416; font-style: normal; text-shadow: none; font-size: .82em; letter-spacing: .05em;
}

/* CEF 144 : pas de filtre sur la flèche de rotation du personnage pendant qu'on la tire (un filtre par image) */
.ped_rotate_arrow.dragging { filter: none; }

/* Étape 4 (30/11, demandée) : menu du clic droit et infobulle au survol dans la typo du GPS. Fonds et places inchangés.
   - nom de l'objet (en capitales), poids, rareté, valeurs des métadonnées, quantité choisie ;
   - lignes du menu (Utiliser, Déposer, Jeter…) ; la description et les intitulés des métadonnées restent en Inter. */
.context_top .text-white.text-\[1\.4vh\].font-semibold.font-inter { font-family: var(--lw-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 1.8vh; line-height: 2.1vh; text-shadow: var(--lw-kill); }
.context_top .flex.gap-\[0\.2vh\].items-baseline,
.context_top .flex.gap-\[0\.2vh\].items-baseline > * { font-family: var(--lw-display); font-style: italic; font-weight: 800; text-shadow: var(--lw-kill); }
.context_top .text-\[1\.1vh\].not-italic.font-semibold.uppercase { font-family: var(--lw-display); font-style: italic; font-weight: 800; letter-spacing: .05em; }
.item_info_row_right { font-family: var(--lw-display); font-style: italic; font-weight: 800; letter-spacing: .02em; }
.context_durability_label, .context_durability_percent { font-family: var(--lw-display); font-style: italic; font-weight: 800; }
.context_menu_input input, .context_menu_input .context_text_input { font-family: var(--lw-display); font-style: italic; font-weight: 800; }
.context_menu_line { font-family: var(--lw-display) !important; font-style: italic; font-weight: 800 !important; letter-spacing: .04em; }

/* Étape 3 bis (30/11, retour en jeu : « difficilement lisible ») : l'étiquette des cases faisait 0,9 vh (environ 10 px en
   1080p), trop petit pour une police condensée. Chiffres plus grands, blancs ; « x » / « Kg » plus lisibles.
   L'étiquette est posée en absolu dans le coin de la case : la case et l'image ne bougent pas. */
.item_top_label { font-size: 1.5vh; line-height: 1; gap: .25vh; color: #fff; }
.item_top_label .item_box_top_lebel_grey { font-size: 1.1vh; color: rgba(233, 241, 237, .62); }
/* Interfaces minimales (réglages « Interface Minimale » 1 et 2, très jouées) : le bundle y force 0,9 vh avec une règle
   plus précise (.minimal_ui .item_top_label) ; même correction, un cran plus petit car les cases y sont plus petites. */
.minimal_ui .item_top_label { font-size: 1.35vh; line-height: 1; gap: .2vh; color: #fff; }
.minimal_ui .item_top_label .item_box_top_lebel_grey { font-size: 1vh; color: rgba(233, 241, 237, .62); }

/* Étape 5 (30/11, demandée) : panier des boutiques dans la DA. Typo du GPS pour le titre (orange), les rubriques, les
   pastilles, les noms d'articles, le total et les boutons ; la phrase d'aide et « panier vide » restent en Inter.
   Le vert est déjà le nôtre (variables). Hauteurs de ligne fixées à celles d'avant (1,5 × l'ancienne taille). */
[class="text-white font-inter text-[2vh] font-semibold"] { font-family: var(--lw-display); font-style: italic; font-weight: 800; text-transform: uppercase; color: #ff9f43; font-size: 2.6vh; line-height: 3vh; text-shadow: var(--lw-kill); }
[class="text-white font-inter text-[1.6vh] font-semibold flex items-center gap-[0.6vh]"],
/* :not(.capitalize > *) : la même classe sert à « Votre inventaire » / nom du coffre, qui garde sa taille d'origine */
[class="text-white font-inter text-[1.6vh] font-semibold"]:not(.capitalize > *) { font-family: var(--lw-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 2vh; line-height: 2.4vh; text-shadow: var(--lw-kill); }
[class="text-white font-inter text-[1.4vh] font-medium"] { font-family: var(--lw-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.7vh; line-height: 2.1vh; }
[class="text-tgigreen font-inter text-[1.8vh] font-bold"] { font-family: var(--lw-display); font-style: italic; font-weight: 800; font-size: 2.4vh; line-height: 2.7vh; text-shadow: var(--lw-kill); }
[class^="px-[1.2vh] py-[0.5vh] rounded-[0.8vh] text-tgigreen font-inter text-[1.3vh]"] { font-family: var(--lw-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: 1.6vh; line-height: 1.95vh; }
[class^="px-[1vh] py-[0.4vh] rounded-[50vh] text-tgigreen font-inter text-[1.2vh]"] { font-family: var(--lw-display); font-style: italic; font-weight: 800; font-size: 1.5vh; line-height: 1.8vh; }
[class^="py-[1vh] rounded-tgi text-[1.4vh] font-inter font-bold uppercase"] { font-family: var(--lw-display); font-style: italic; font-weight: 800; letter-spacing: .04em; font-size: 1.75vh; line-height: 2.1vh; }

/* Étape 6 (30/11, retour en jeu) : plus de contraste, couleurs seulement.
   - lignes du menu du clic droit : texte blanc à 88 % (au lieu de 60 %), contour noir fin ; survol toujours menthe ;
   - libellés des cases de vêtements : blanc à 62 % (au lieu de 20 %), contour noir fin. */
.context_menu_line { color: rgba(255, 255, 255, .88); text-shadow: var(--lw-kill); }
.context_menu_line:hover { color: var(--green-text); text-shadow: none; }
.item_box > .absolute.text-\[1\.4vh\] { color: rgba(233, 241, 237, .62) !important; text-shadow: var(--lw-kill); }

/* Étape 7 (30/11, demandée) : barre de poids en segments, comme la barre de progression du serveur.
   Même élément, même place : la barre est seulement agrandie en hauteur à l'écran (transform, sans effet sur la mise
   en page) et dessinée en segments de 0,9 vh espacés de 0,3 vh ; le remplissage menthe suit les mêmes segments. */
[class="w-full h-[0.3vh] rounded-[50vh] relative bg-mainBg"] {
  transform: scaleY(2.6); border-radius: .15vh;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .13) 0 .9vh, transparent .9vh 1.2vh);
}
[class^="absolute h-full w-[10%] bg-tgigreen"] {
  border-radius: 0; background-color: transparent;
  background-image: repeating-linear-gradient(90deg, var(--green) 0 .9vh, transparent .9vh 1.2vh);
}

/* Étape 7 bis (30/11) : segments arrondis avec un effet à l'intérieur (reflet clair en haut, menthe au milieu, plus
   sombre en bas) et une lueur menthe douce. Ultra optimisé : un petit SVG statique répété (dessiné une fois, mis en
   cache par CEF), aucune animation, aucun filtre ni masque. Coins prévus pour l'agrandissement vertical (×2,6). */
[class="w-full h-[0.3vh] rounded-[50vh] relative bg-mainBg"] {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 3' preserveAspectRatio='none'><rect x='0' y='0' width='9' height='3' rx='2.4' ry='0.92' fill='rgba(255,255,255,0.12)'/><rect x='0.6' y='0.25' width='7.8' height='0.7' rx='1.6' ry='0.3' fill='rgba(255,255,255,0.06)'/></svg>") left center / 1.2vh 100% repeat-x;
}
[class^="absolute h-full w-[10%] bg-tgigreen"] {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 3' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='%23c9ffe9'/><stop offset='0.45' stop-color='%233cffb0'/><stop offset='1' stop-color='%2318b077'/></linearGradient></defs><rect x='0' y='0' width='9' height='3' rx='2.4' ry='0.92' fill='url(%23g)'/><rect x='1.2' y='0.3' width='6.6' height='0.55' rx='1.4' ry='0.25' fill='rgba(255,255,255,0.55)'/></svg>") left center / 1.2vh 100% repeat-x;
  box-shadow: 0 0 .7vh rgba(60, 255, 176, .28);
}

/* Étape 8 (30/11, demandée) : boutons du haut (et la porte « ESC pour fermer ») comme sur les planches LegacyWorld :
   carré arrondi en verre sombre, lueur menthe en haut à gauche, liseré clair ; au survol liseré menthe et léger
   soulèvement. Même taille (4,4 vh) et même place ; les X de séparation sont adoucis. Rien ne tourne en boucle. */
[class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"] {
  border-radius: 1.3vh;
  background: radial-gradient(130% 70% at 0% 0%, rgba(60, 255, 176, .16), rgba(60, 255, 176, 0) 62%), linear-gradient(180deg, rgba(10, 19, 16, .88), rgba(6, 11, 9, .9));
  box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .09), inset 0 .1vh 0 rgba(255, 255, 255, .07), 0 .6vh 1.6vh rgba(0, 0, 0, .35);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
[class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:hover {
  transform: translateY(-.2vh);
  box-shadow: inset 0 0 0 .12vh rgba(60, 255, 176, .6), inset 0 .1vh 0 rgba(255, 255, 255, .08), 0 .8vh 2vh rgba(0, 0, 0, .4), 0 0 1.2vh rgba(60, 255, 176, .18);
}
.last\:hidden { opacity: .35; }
/* pastille du nom du joueur à côté : même verre que les boutons (forme et taille inchangées) */
[class^="flex gap-[0.5vh] h-[4.4vh] items-center bg-mainBg"] {
  background: radial-gradient(130% 90% at 0% 0%, rgba(60, 255, 176, .14), rgba(60, 255, 176, 0) 62%), linear-gradient(180deg, rgba(10, 19, 16, .88), rgba(6, 11, 9, .9));
  box-shadow: inset 0 .1vh 0 rgba(255, 255, 255, .07), 0 .6vh 1.6vh rgba(0, 0, 0, .35);
}

/* Étape 9 (30/11, demandée) : fenêtre « Paramètres de l'inventaire » dans la DA. Même taille (86 vh) et même place :
   verre sombre de legacyui, titre dans la typo du GPS, états ACTIVÉ / DÉSACTIVÉ, interrupteurs en menthe, pastilles
   de couleur arrondies, séparateurs fins. Hauteurs de ligne d'origine gardées. */
[class="rounded-[0.8vh] bg-[#1B1B1B] w-[86vh] p-[2vh] flex gap-[1vh] flex-col"] {
  border-radius: 2.2vh;
  background: radial-gradient(130% 55% at 0% 0%, rgba(34, 120, 86, .34), rgba(34, 120, 86, 0) 62%), linear-gradient(180deg, rgba(10, 19, 16, .97), rgba(6, 11, 9, .97));
  box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .07), inset 0 .1vh 0 rgba(255, 255, 255, .05), 0 3vh 7vh rgba(0, 0, 0, .5);
}
[class="text-white font-inter text-[1.6vh] not-italic font-semibold leading-[normal] uppercase"] { font-family: var(--lw-display); font-style: italic; font-weight: 800; font-size: 2.4vh; color: #ff9f43; text-shadow: var(--lw-kill); }
[class="text-[#FFF] font-agrandir text-[1.6vh] not-italic font-extrabold leading-[normal] uppercase"] { font-size: 1.9vh; }
[class^="text-[rgba(255_255_255_0.70)] text-right font-inter text-[1.4vh]"] { font-family: var(--lw-display); font-style: italic; font-weight: 800; font-size: 1.7vh; letter-spacing: .04em; }
.settings_setting { border-top: .1vh solid rgba(233, 241, 237, .08); }
/* interrupteur : piste arrondie sombre, bouton menthe lumineux */
[class^="border-[0.2vh] border-[#FFFFFF4D] rounded-[50vh] w-[5vh] h-[2.4vh]"] { border-color: rgba(233, 241, 237, .16); background: rgba(255, 255, 255, .05); box-shadow: inset 0 .2vh .5vh rgba(0, 0, 0, .45); }
[class^="bg-tgigreen w-[1.5vh] h-[1.5vh] rounded-[50vh]"] { box-shadow: 0 0 .9vh rgba(60, 255, 176, .55), inset 0 .15vh 0 rgba(255, 255, 255, .55); }
/* pastilles de couleur : coins arrondis, liseré clair */
[class="w-[4vh] h-[4vh] rounded-[0.3vh] border-[0.25vh] hover:cursor-pointer hover:opacity-80"] { border-radius: 1vh; box-shadow: inset 0 .15vh 0 rgba(255, 255, 255, .35), 0 .4vh 1vh rgba(0, 0, 0, .35); }

/* Étape 8 bis (30/11, demandée : « comme les onglets des menus métiers ») : la rangée des boutons du haut devient une
   barre d'onglets. Un fond de verre arrondi est dessiné DERRIÈRE la rangée (pseudo-élément en absolu : aucune place ne
   change) ; chaque bouton est un onglet transparent, au survol liseré menthe + lueur comme l'onglet actif ; les X de
   séparation disparaissent (leur place reste, l'écart entre onglets ne bouge pas). */
[class="flex gap-[1vh] items-center"] { position: relative; isolation: isolate; }
[class="flex gap-[1vh] items-center"]::before {
  content: ""; position: absolute; z-index: -1; inset: -.6vh -2vh; border-radius: 1.6vh; pointer-events: none;
  background: radial-gradient(130% 90% at 0% 0%, rgba(34, 120, 86, .34), rgba(34, 120, 86, 0) 62%), linear-gradient(180deg, rgba(10, 19, 16, .92), rgba(6, 11, 9, .94));
  box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .07), inset 0 .1vh 0 rgba(255, 255, 255, .05), 0 1.2vh 3vh rgba(0, 0, 0, .45);
}
[class="flex gap-[1vh] items-center"] [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"] {
  border-radius: 1.2vh; background: transparent; box-shadow: none; transform: none;
}
[class="flex gap-[1vh] items-center"] [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:hover {
  background: linear-gradient(180deg, rgba(60, 255, 176, .16), rgba(60, 255, 176, .05));
  box-shadow: inset 0 0 0 .12vh rgba(60, 255, 176, .7), 0 0 1.4vh rgba(60, 255, 176, .25);
  transform: none;
}
[class="flex gap-[1vh] items-center"] .last\:hidden { opacity: 0; }

/* Étape 10 (30/11, demandée) : l'argent sur les cases en vert, comme les montants des menus métiers. L'étiquette de
   l'argent est la seule sans « x » / « Kg » gris : on la reconnaît à ça (:has, pris en charge par CEF 144). */
.item_top_label:not(:has(.item_box_top_lebel_grey)) { color: var(--green); }

/* Étape 8 ter (30/11, demandée) : vraie barre d'onglets comme les menus métiers. Icône en haut, nom en dessous (typo du
   GPS), icônes et noms gris au repos ; au survol : pastille menthe (fond + liseré + lueur), icône menthe qui monte un
   peu, nom blanc. Tout est dessiné DANS la case du bouton ou en absolu par-dessus : aucune place ne change.
   Animations courtes au survol seulement (transform / opacity / couleurs), rien en boucle. Noms selon l'icône de
   config.topHeaderIcons (qrcode, pen-ruler, cart-shopping, shop) et la roue des réglages. */
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"] {
  position: relative; isolation: isolate; overflow: visible; flex-direction: column; justify-content: flex-start; padding-top: .55vh;
  background: transparent !important; box-shadow: none !important; transform: none !important;
}
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]::before {
  content: ""; position: absolute; z-index: -1; inset: -.1vh -1.7vh; border-radius: 1.2vh; opacity: 0;
  background: linear-gradient(180deg, rgba(60, 255, 176, .18), rgba(60, 255, 176, .06));
  box-shadow: inset 0 0 0 .12vh rgba(60, 255, 176, .7), 0 0 1.4vh rgba(60, 255, 176, .25);
  transform: scale(.92); transition: opacity .18s ease-out, transform .18s ease-out;
}
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:hover::before { opacity: 1; transform: scale(1); }
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"] svg {
  font-size: 1.9vh; color: rgba(233, 241, 237, .6) !important; opacity: 1 !important; transition: transform .18s ease-out, color .18s ease-out;
}
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:hover svg { color: var(--green) !important; transform: translateY(-.15vh); }
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]::after {
  position: absolute; left: 50%; bottom: .45vh; transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font: italic 800 1.3vh/1 var(--lw-display); letter-spacing: .04em; text-transform: uppercase; color: rgba(233, 241, 237, .6);
  text-shadow: var(--lw-kill); transition: color .18s ease-out;
}
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:hover::after { color: #fff; }
[class="flex gap-[1vh] items-center"] > :has(svg[data-icon="qrcode"])::after { content: "Menu"; }
[class="flex gap-[1vh] items-center"] > :has(svg[data-icon="pen-ruler"])::after { content: "Établi"; }
[class="flex gap-[1vh] items-center"] > :has(svg[data-icon="cart-shopping"])::after { content: "Boutique"; }
[class="flex gap-[1vh] items-center"] > :has(svg[data-icon="shop"])::after { content: "Magasin"; }
[class="flex gap-[1vh] items-center"] > :has(svg[data-icon="gear"])::after { content: "Réglages"; }

/* 30/11 : pas de barre pleine derrière les onglets (demandé) : les onglets flottent, seule la pastille du survol reste. */
[class="flex gap-[1vh] items-center"]::before { content: none; }

/* 30/11 : copie fidèle de la barre d'onglets du kit des menus métiers (lwm.css .lwm-tabs / .lwm-ink / .lwm-tab) :
   - rail très léger (blanc 3,5 %, liseré blanc 6 %, rayon 1,5) au lieu du verre sombre plein ;
   - onglets gris #9aa8a2 ; au survol la « pastille » du kit : dégradé menthe 16 → 7 %, liseré menthe 55 %, ombre
     menthe douce, rayon 1,1 ; icône menthe, nom blanc avec contour. Le rail est dessiné en absolu : rien ne bouge. */
[class="flex gap-[1vh] items-center"]::before {
  content: ""; position: absolute; z-index: -1; inset: -.45vh -2.1vh; border-radius: 1.5vh; pointer-events: none;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .06);
}
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]::before {
  inset: 0 -1.8vh; border-radius: 1.1vh;
  background: linear-gradient(180deg, rgba(60, 255, 176, .16), rgba(60, 255, 176, .07));
  box-shadow: inset 0 0 0 .1vh rgba(60, 255, 176, .55), 0 .8vh 2.2vh rgba(60, 255, 176, .1);
}
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"] svg { color: #9aa8a2 !important; }
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]::after { color: #9aa8a2; text-shadow: none; }
[class="flex gap-[1vh] items-center"] > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:hover::after { color: #fff; text-shadow: var(--lw-kill); }

/* Étape 11 (30/11, retours en jeu) */
/* a) pastille du nom du joueur : le même rail léger que la barre d'onglets (même hauteur visuelle, dessiné en absolu
      derrière : la pastille ne bouge pas), point menthe lumineux, nom blanc avec contour. */
[class^="flex gap-[0.5vh] h-[4.4vh] items-center bg-mainBg"] {
  position: relative; isolation: isolate; background: transparent; border-color: transparent; box-shadow: none;
}
[class^="flex gap-[0.5vh] h-[4.4vh] items-center bg-mainBg"]::before {
  content: ""; position: absolute; z-index: -1; inset: -.55vh 0; border-radius: 1.5vh; pointer-events: none;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .06);
}
[class^="flex gap-[0.5vh] h-[4.4vh] items-center bg-mainBg"] > p { color: #fff; text-shadow: var(--lw-kill); }
[class^="flex gap-[0.5vh] h-[4.4vh] items-center bg-mainBg"] .inventory_header_player_box_img { color: var(--green); filter: none; }

/* b) porte « ESC pour fermer » : une tuile du même rail, icône grise ; au survol la pastille menthe des onglets. */
[class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:has(svg[data-icon="door-open"]) {
  position: relative; isolation: isolate; border-radius: 1.5vh; background: transparent; box-shadow: none; transform: none;
}
[class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:has(svg[data-icon="door-open"])::before {
  content: ""; position: absolute; z-index: -1; inset: -.45vh; border-radius: 1.5vh; pointer-events: none;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .06);
  transition: background-color .15s ease-out, box-shadow .15s ease-out;
}
.group:hover > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:has(svg[data-icon="door-open"]) { transform: none; box-shadow: none; }
.group:hover > [class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:has(svg[data-icon="door-open"])::before {
  background: linear-gradient(180deg, rgba(60, 255, 176, .16), rgba(60, 255, 176, .07));
  box-shadow: inset 0 0 0 .1vh rgba(60, 255, 176, .55), 0 .8vh 2.2vh rgba(60, 255, 176, .1);
}
svg[data-icon="door-open"] { color: #9aa8a2 !important; transition: color .15s ease-out; }
.group:hover svg[data-icon="door-open"] { color: var(--green) !important; }

/* c) fenêtre des réglages : le même gris/verre que les boutons du clic droit (variables de tgiann, donc elle suit
      aussi le réglage « flou » de l'inventaire : flou activé = verre gris, désactivé = gris sombre opaque). */
[class="rounded-[0.8vh] bg-[#1B1B1B] w-[86vh] p-[2vh] flex gap-[1vh] flex-col"] {
  border-radius: var(--radius-tgi, 1.4vh); background: var(--color-blurBg);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .1), 0 3vh 7vh rgba(0, 0, 0, .4);
}

/* d) argent en vert : le « $ » est gris comme le « x » des quantités, donc l'étape 10 ne le reconnaissait pas. On
      reconnaît la case à l'image de l'objet (money_item.webp, tgiann la charge depuis items.lua). */
.item_box:has(img[src$="/money_item.webp"]) .item_top_label.left-\[0\.7vh\],
.item_box:has(img[src$="/money_item.webp"]) .item_top_label.left-\[0\.7vh\] .item_box_top_lebel_grey { color: var(--green); }
.item_box:has(img[src$="/money_item.webp"]) .item_top_label.left-\[0\.7vh\] .item_box_top_lebel_grey { opacity: .75; }
/* a bis) le nom et les onglets ne sont séparés que de 1 vh : un seul rail pour les deux (dessiné sur leur conteneur
      commun), avec un trait fin entre le nom et le premier onglet. Sans le nom (interface minimale), le rail
      reprend la marge des onglets. */
[class="flex gap-[1vh] justify-center absolute left-1/2 -translate-x-1/2"] { isolation: isolate; }
[class="flex gap-[1vh] justify-center absolute left-1/2 -translate-x-1/2"]::before {
  content: ""; position: absolute; z-index: -1; inset: -.45vh -2.1vh -.45vh -.6vh; border-radius: 1.5vh; pointer-events: none;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .06);
}
[class="flex gap-[1vh] justify-center absolute left-1/2 -translate-x-1/2"]:not(:has(> [class^="flex gap-[0.5vh] h-[4.4vh] items-center bg-mainBg"]))::before { left: -2.1vh; }
[class="flex gap-[1vh] justify-center absolute left-1/2 -translate-x-1/2"] [class="flex gap-[1vh] items-center"]::before,
[class^="flex gap-[0.5vh] h-[4.4vh] items-center bg-mainBg"]::before { content: none; }
[class^="flex gap-[0.5vh] h-[4.4vh] items-center bg-mainBg"]::after {
  content: ""; position: absolute; right: .2vh; top: .2vh; bottom: .2vh; width: .2vh; border-radius: .2vh; pointer-events: none;
  background: linear-gradient(180deg, rgba(60, 255, 176, 0), rgba(60, 255, 176, .9) 50%, rgba(60, 255, 176, 0));
  box-shadow: 0 0 .8vh rgba(60, 255, 176, .35);
}

/* Étape 12 (30/11, demandée) : argent « 53,191 $ » : le symbole passe juste derrière le nombre, à la même taille et
   en vert plein. Le nombre est du texte brut (élément anonyme d'ordre 0) : order:1 sur le symbole suffit à l'envoyer
   après, sans toucher au JS. Tout est en vh : même rendu à toutes les résolutions. */
.item_box:has(img[src$="/money_item.webp"]) .item_top_label.left-\[0\.7vh\] { display: flex; align-items: baseline; }
.item_box:has(img[src$="/money_item.webp"]) .item_top_label.left-\[0\.7vh\] .item_box_top_lebel_grey {
  order: 1; margin-left: .3vh; font-size: inherit; line-height: inherit; opacity: 1;
}

/* Étape 13 (30/11, analyse de la capture 2K) */
/* a) « INVENTAIRE » garde sa taille ; il est seulement remonté à l'écran (transform, la mise en page ne bouge pas) pour
      que son centre tombe sur la même ligne que les deux rails du haut. */
.inventory_header_left_container > .font-agrandir.text-\[4vh\] { transform: translateY(-1.1vh); }

/* b) « ESC pour fermer » + la porte : un rail jumeau de celui du centre (même hauteur, même ligne). La porte devient
      un onglet du rail : transparente au repos, pastille menthe des onglets au survol. */
.group.ml-auto.justify-end:has(svg[data-icon="door-open"]) { position: relative; isolation: isolate; }
.group.ml-auto.justify-end:has(svg[data-icon="door-open"])::before {
  content: ""; position: absolute; z-index: -1; inset: -.45vh -.45vh -.45vh -1.4vh; border-radius: 1.5vh; pointer-events: none;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .06);
}
[class^="rounded-[50vh] bg-[rgba(0,0,0,0.60)] h-[4.4vh] w-[4.4vh]"]:has(svg[data-icon="door-open"])::before {
  inset: 0; border-radius: 1.1vh; background: transparent; box-shadow: none;
}

/* c) infobulle des objets (survol) : même verre gris que la fenêtre des réglages et les boutons du clic droit (choix de
      l'utilisateur, 30/11 : le fond sombre opaque a été refusé). Ce sont les variables de tgiann, donc elle suit le
      réglage « flou » ; seul le liseré est un peu plus net. */
.context_top { border-color: rgba(255, 255, 255, .1) !important; }

/* Étape 15 (30/11, demandée) */
/* a) infobulle : unité « KG » en majuscules comme sur les cases ; intitulés des métadonnées plus lisibles (blanc 60 %). */
.context_top .flex.gap-\[0\.2vh\].items-baseline > .text-secondary { text-transform: uppercase; }
.item_info_row_left { color: rgba(255, 255, 255, .6) !important; }

/* c) barre de filtres : même rail que le haut. Les catégories sont posées sur un rail léger, icônes grises, survol
      menthe ; le filtre actif (« Tout » ou une catégorie, classe pointillée de tgiann) prend la pastille menthe des
      onglets. Tri, sens et recherche deviennent des tuiles arrondies du même verre. Tailles et places inchangées. */
.filter_box_right { border-radius: 1.2vh; background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .06); }
[class^="min-w-[3.6vh] h-[3.6vh] flex items-center justify-center rounded-full bg-mainBg cursor-pointer"] {
  border-radius: 1.1vh; background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .06) !important; color: #9aa8a2;
  transition: color .15s ease-out, border-color .15s ease-out, background-color .15s ease-out;
}
.filter_box_right > [class^="min-w-[3.6vh] h-[3.6vh] flex items-center justify-center rounded-full bg-mainBg cursor-pointer"] { background: transparent; border-color: transparent !important; }
[class^="min-w-[3.6vh] h-[3.6vh] flex items-center justify-center rounded-full bg-mainBg cursor-pointer"]:hover { color: var(--green); border-color: rgba(60, 255, 176, .3) !important; }
[class^="min-w-[3.6vh] h-[3.6vh] flex items-center justify-center rounded-full bg-mainBg cursor-pointer"][class*="border-dashed"] {
  border-style: solid; border-color: rgba(60, 255, 176, .55) !important; color: var(--green);
  background: linear-gradient(180deg, rgba(60, 255, 176, .16), rgba(60, 255, 176, .07)) !important;
  box-shadow: 0 .8vh 2.2vh rgba(60, 255, 176, .1);
}
[class^="min-w-[3.6vh] h-[3.6vh] flex items-center justify-center rounded-full bg-mainBg cursor-pointer"][class*="border-dashed"] > div { color: #fff; text-shadow: var(--lw-kill); }
[class^="px-[1.2vh] py-0 text-white rounded-[50vh] border-[0.1vh] border-mainBorder bg-mainBg flex items-center"] { border-radius: 1.2vh; background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .06); transition: border-color .15s ease-out; }
[class^="px-[1.2vh] py-0 text-white rounded-[50vh] border-[0.1vh] border-mainBorder bg-mainBg flex items-center"]:focus-within { border-color: rgba(60, 255, 176, .45); }

/* d) « Moi / Joueurs proches » : un petit rail avec la pastille menthe sur l'onglet actif (styles en ligne de tgiann,
      donc !important ; l'actif se reconnaît à son fond blanc 16 %). */
.inventory_centerpanel > div:has(> div[style*="all-small-caps"]) { position: relative; isolation: isolate; }
.inventory_centerpanel > div:has(> div[style*="all-small-caps"])::before {
  content: ""; position: absolute; z-index: -1; inset: -.4vh; border-radius: 1.4vh; pointer-events: none;
  background: rgba(255, 255, 255, .035); box-shadow: inset 0 0 0 .1vh rgba(255, 255, 255, .06);
}
.inventory_centerpanel > div:has(> div[style*="all-small-caps"]) > div[style*="all-small-caps"] { background: transparent !important; border-color: transparent !important; color: #9aa8a2 !important; transition: color .15s ease-out; }
.inventory_centerpanel > div:has(> div[style*="all-small-caps"]) > div[style*="all-small-caps"]:hover { color: #fff !important; }
.inventory_centerpanel > div:has(> div[style*="all-small-caps"]) > div[style*="all-small-caps"][style*="0.16)"] {
  color: #fff !important; text-shadow: var(--lw-kill);
  background: linear-gradient(180deg, rgba(60, 255, 176, .16), rgba(60, 255, 176, .07)) !important;
  border-color: rgba(60, 255, 176, .55) !important; box-shadow: 0 .8vh 2.2vh rgba(60, 255, 176, .1);
}

/* e) bas des grilles (inventaire et coffre) : sortie douce en dégradé sombre au lieu d'une coupe nette, pour montrer
      qu'on peut faire défiler. Surcouche fixe (pas de mask), clics non bloqués. */
[class="relative h-full overflow-hidden"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4vh; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .55));
}

/* Étape 16 (30/11, demandée) : indice « fais défiler » sur les catégories (Nourriture, Armes…), qui défilent à la
   molette. Au bord droit : fondu sombre + petite souris et chevron menthe. Piloté par le défilement lui-même
   (scroll-timeline, CEF 144) : visible au début, s'efface en arrivant au bout, absent si tout tient à l'écran
   (pas de défilement = pas de timeline = animation inactive = opacité 0). Aucun script, rien ne tourne au repos. */
[class="flex justify-between gap-[1vh] rounded-tgi overflow-hidden"] { position: relative; timeline-scope: --lwfiltres; }
.filter_box_right { scroll-timeline: --lwfiltres x; }
[class="flex justify-between gap-[1vh] rounded-tgi overflow-hidden"]::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 6vh; z-index: 2; pointer-events: none; opacity: 0;
  border-radius: 0 1.2vh 1.2vh 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 24'><rect x='3' y='2' width='12' height='20' rx='6' fill='none' stroke='%233cffb0' stroke-width='1.8'/><line x1='9' y1='6' x2='9' y2='10' stroke='%233cffb0' stroke-width='1.8' stroke-linecap='round'/><path d='M23 6l6 6-6 6M30 6l6 6-6 6' fill='none' stroke='%233cffb0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") right .8vh center / 3.3vh 2vh no-repeat,
    linear-gradient(90deg, rgba(8, 12, 10, 0), rgba(8, 12, 10, .92) 45%);
  animation: lw-indice-filtres linear both; animation-timeline: --lwfiltres;
}
@keyframes lw-indice-filtres { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
