/* Planque (menu à onglets), icônes d'objets, glisser-déposer, fiches et repères de fouille */

#hideout.hub { position: fixed; inset: 0; z-index: 20; display: flex; flex-direction: column; overflow: hidden; align-items: stretch; padding: 0;
  background: linear-gradient(180deg, rgba(10, 11, 13, 0.92), rgba(10, 11, 13, 0.97)), radial-gradient(ellipse at 20% 0%, rgba(232, 163, 61, 0.08), transparent 60%); }
#hideout.hub.hidden { display: none; }
.topbar { display: flex; align-items: center; gap: 32px; padding: 0 28px; height: 64px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); flex: none; }
.logo { font: 700 26px var(--title); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }
.logo b { color: var(--text); margin-left: 6px; }
#hoTabs { display: flex; height: 100%; }
#hoTabs button { height: 100%; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; padding: 0 22px; font: 600 16px var(--title); letter-spacing: 3px; color: var(--muted); }
#hoTabs button:hover { color: var(--text); }
#hoTabs button.on { color: var(--text); border-bottom-color: var(--amber); background: linear-gradient(0deg, rgba(232, 163, 61, 0.12), transparent); }
.who { margin-left: auto; display: flex; align-items: center; gap: 24px; font: 600 16px var(--title); letter-spacing: 1px; text-transform: uppercase; }
.who .credits { display: flex; flex-direction: column; align-items: flex-end; }
.who .credits b { font: 700 22px var(--title); color: var(--amber); }
.tab { flex: 1; min-height: 0; display: grid; gap: 16px; padding: 18px 28px 24px; }
.tab.hidden { display: none; }
.tab .panel { padding: 16px; min-height: 0; display: flex; flex-direction: column; }
.tab h3 { margin: 0 0 8px; }
.tab h3 small { font: 500 12px var(--body); text-transform: none; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.gear { grid-template-columns: 340px auto 1fr; }
.char { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 60%, rgba(232, 163, 61, 0.1), transparent 70%), var(--panel); }
#charView { flex: 1; width: 100%; min-height: 0; cursor: grab; }
.charSlots { display: flex; flex-direction: column; gap: 8px; }
.charSlots .slot { width: 100%; height: 86px; }
.stats { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.stats b { color: var(--text); font: 700 16px var(--title); margin-right: 3px; }
.kit h3 + .grid { margin-bottom: 16px; }
.stash header { display: flex; justify-content: space-between; align-items: baseline; }
.stash .scroll { flex: 1; overflow: auto; max-height: none; }
.traders { grid-template-columns: 260px 1fr auto; }
.traderList { display: flex; flex-direction: column; gap: 8px; }
.traderList button { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; text-transform: none; letter-spacing: 0; font: 500 13px var(--body); background: var(--panel); }
.traderList button.on { border-color: var(--amber); background: rgba(232, 163, 61, 0.1); }
.traderList .badge { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); background: #1c1f22; font: 700 22px var(--title); color: var(--amber); }
.traderList b { display: block; font: 700 16px var(--title); letter-spacing: 1px; text-transform: uppercase; }
.traderList small { color: var(--muted); }
.offers h2 { margin-bottom: 4px; }
#shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; align-content: start; flex: 1; overflow: auto; }
#shop button { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; gap: 2px 10px; align-items: center; padding: 8px; text-align: left; text-transform: none; letter-spacing: 0; font: 500 13px var(--body); }
#shop button img { grid-row: span 2; width: 72px; height: 48px; object-fit: contain; background: rgba(0, 0, 0, 0.35); }
#shop button .nm i { color: var(--muted); font-style: normal; }
#shop button b { font: 700 16px var(--title); color: var(--amber); }
.sellZone { margin-top: 12px; padding: 18px; border: 1px dashed rgba(255, 255, 255, 0.2); text-align: center; color: var(--muted); font: 600 14px var(--title); letter-spacing: 2px; text-transform: uppercase; }
.sellZone.hover { border-color: var(--amber); color: var(--amber); background: rgba(232, 163, 61, 0.08); }
.raid { grid-template-columns: 1fr 380px; }
.mapCard { align-items: center; justify-content: center; overflow: hidden; }
#mapView { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 0 0 1px var(--line); }
.raidInfo h2 { font-size: 44px; }
.facts { display: grid; grid-template-columns: 80px 1fr; gap: 6px 12px; margin: 16px 0; font-size: 13px; }
.facts dt { font: 600 13px var(--title); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.extracts { margin: 0; padding-left: 18px; color: #a6dc95; font-size: 13px; }
.raidInfo .go { margin-top: auto; }
.raidInfo .go .primary { font-size: 20px; letter-spacing: 4px; padding: 14px; }

/* Objets dans les grilles */
.it { padding: 0; }
.it img { position: absolute; left: 4px; top: 4px; width: calc(100% - 8px); height: calc(100% - 16px); object-fit: contain; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.it .nm { position: absolute; left: 4px; top: 2px; right: 4px; font: 600 11px var(--title); letter-spacing: 0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; z-index: 1; }
.it .qt { position: absolute; right: 4px; bottom: 1px; font: 600 12px var(--title); color: var(--text); text-shadow: 0 1px 2px #000; z-index: 1; }
.it .fr { top: auto; bottom: 2px; left: 4px; right: auto; }
.it .sz { display: none; }
.it.weapon { background: linear-gradient(180deg, #3a362e, #2c2924); }
.it.ammo { background: linear-gradient(180deg, #333a2d, #282d24); }
.it.med { background: linear-gradient(180deg, #3a2e2d, #2d2424); }
.it.loot { background: linear-gradient(180deg, #2e343c, #24282e); }
.it.ghost { background: repeating-linear-gradient(135deg, #222528 0 6px, #1d2023 6px 12px); border-style: dashed; cursor: default; display: grid; place-items: center; }
.it.ghost span { font: 700 20px var(--title); color: var(--muted); }
.it.ghost.searching::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; background: var(--amber); animation: searchBar var(--t, 0.9s) linear forwards; }
.it.ghost.searching span { animation: blink 0.6s infinite alternate; }
@keyframes searchBar { from { width: 0; } to { width: 100%; } }
@keyframes blink { to { opacity: 0.3; } }
.it.lifted { opacity: 0.25; }
.it.dragging { position: fixed; z-index: 100; pointer-events: none; opacity: 0.92; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6); }
.dropMark { position: absolute; pointer-events: none; background: rgba(123, 191, 106, 0.25); outline: 1px solid rgba(123, 191, 106, 0.8); z-index: 2; }
.dropMark.bad { background: rgba(216, 70, 59, 0.25); outline-color: rgba(216, 70, 59, 0.8); }
/* Accessoire glissé au-dessus d'une arme : vert si elle l'accepte, rouge sinon, avec ce qui va se passer */
.it.modOk { outline: 2px solid #7bbf6a; outline-offset: -1px; box-shadow: inset 0 0 0 999px rgba(123, 191, 106, 0.16); z-index: 3; }
.it.modBad { outline: 2px solid var(--red); outline-offset: -1px; box-shadow: inset 0 0 0 999px rgba(216, 70, 59, 0.16); z-index: 3; }
.it[data-hint]::after { content: attr(data-hint); position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 4px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  font: 600 12px var(--title); letter-spacing: 0.3px; color: #10130f; background: #7bbf6a; z-index: 4; }
.it.modBad[data-hint]::after { background: var(--red); color: #fff; }
.slot.hover { border-color: #7bbf6a; }
.slot.hover.bad { border-color: var(--red); }
.slot .it img { left: 8px; top: 6px; width: calc(100% - 16px); height: calc(100% - 14px); }
#itemTip { position: fixed; left: 0; top: 0; z-index: 120; width: 250px; padding: 12px; background: rgba(14, 15, 17, 0.97); border: 1px solid var(--line); border-top: 2px solid var(--amber); pointer-events: none; opacity: 0; transition: opacity 0.1s; }
#itemTip.show { opacity: 1; }
#itemTip img { width: 100%; height: 90px; object-fit: contain; background: rgba(255, 255, 255, 0.03); margin-bottom: 8px; }
#itemTip h4 { margin: 0 0 8px; color: var(--text); font-size: 15px; }
#itemTip dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; font-size: 12px; }
#itemTip dt { color: var(--muted); }
#itemTip dd { margin: 0; text-align: right; }
#itemTip.weapon { border-top-color: #b98a4e; }
#itemTip.med { border-top-color: #b85c52; }
#itemTip.loot { border-top-color: #6f8db0; }
#itemTip.ammo { border-top-color: #7f8f5f; }

/* Repères des meubles à fouiller */
#contMarks .cm { position: absolute; left: 0; top: 0; padding: 2px 7px; font: 600 11px var(--title); letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
  background: rgba(10, 10, 12, 0.7); border: 1px solid rgba(255, 255, 255, 0.18); color: var(--muted); }
#contMarks .cm.near { color: var(--text); border-color: var(--amber); }
#contMarks .cm.near b { color: var(--amber); margin-right: 5px; }
#contMarks .cm.done { opacity: 0.45; }

@media (max-width: 1200px) {
  .gear { grid-template-columns: 280px 1fr; }
  .gear .stash { grid-column: span 2; }
  .traders, .raid { grid-template-columns: 1fr; }
}

/* Réglages */
.ghostBtn { padding: 6px 12px; font-size: 12px; background: none; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5, 6, 8, 0.6); backdrop-filter: blur(3px); }
.modal.hidden { display: none; }
.setPanel { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; padding: 20px 22px; }
.setPanel header, .setPanel footer { display: flex; justify-content: space-between; align-items: center; }
.setPanel footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.setPanel section { margin-top: 16px; }
.setPanel h4 { margin: 0 0 8px; color: var(--amber); }
.setPanel .row { display: grid; grid-template-columns: 1fr 180px 48px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0; font: 500 14px var(--body); text-transform: none; letter-spacing: 0; color: var(--text); }
.setPanel .row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.setPanel .row output { text-align: right; font: 600 14px var(--title); color: var(--muted); }
.setPanel select { grid-column: span 2; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); color: var(--text); padding: 7px 10px; font: 500 14px var(--body); }
.setPanel input[type=range] { width: 100%; accent-color: var(--amber); }
.setPanel .toggle { grid-template-columns: 1fr 44px; cursor: pointer; }
.setPanel .toggle input { display: none; }
.setPanel .toggle i { position: relative; width: 40px; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, 0.12); transition: background 0.15s; }
.setPanel .toggle i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #cfcac0; transition: transform 0.15s; }
.setPanel .toggle input:checked + i { background: var(--amber); }
.setPanel .toggle input:checked + i::after { transform: translateX(18px); background: #1a1206; }
.who .ghostBtn { font: 600 13px var(--title); letter-spacing: 2px; }
#fps { position: fixed; top: 8px; right: 12px; z-index: 70; font: 600 12px var(--title); letter-spacing: 1px; color: var(--muted); pointer-events: none; }
#fps.hidden { display: none; }

/* Niveau du récupérateur */
.who .lvl { display: flex; align-items: center; gap: 10px; }
.lvl b { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--amber); color: var(--amber); font: 700 18px var(--title); }
.lvl span { display: flex; flex-direction: column; gap: 4px; font: 600 12px var(--title); letter-spacing: 1px; color: var(--muted); }
.lvl i { display: block; width: 110px; height: 4px; background: rgba(255, 255, 255, 0.1); }
.lvl i em { display: block; height: 100%; background: var(--amber); }
#shop button.locked { opacity: 0.45; }
#shop button.locked b { color: var(--muted); font-size: 13px; }

/* Planque : hangar en 3D, étiquettes des modules, fiche du module choisi */
.tab.base { display: block; position: relative; padding: 0; overflow: hidden; }
.baseView { position: absolute; inset: 0; }
.baseView canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.baseLines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.baseLines line { stroke: rgba(231, 228, 221, 0.55); stroke-width: 1.5; }
.baseLines circle { fill: #e7e4dd; stroke: #0d0f11; stroke-width: 2; }
.baseLines .on { stroke: #f0b356; }
.baseLines circle.on { fill: #f0b356; stroke: #0d0f11; }
.baseTags { position: absolute; inset: 0; pointer-events: none; }
.bTag { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; border-radius: 4px;
  background: rgba(14, 16, 18, 0.9); border: 1.5px solid rgba(231, 228, 221, 0.45); color: #ece8e0; text-align: left; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5); white-space: nowrap; }
.bTag i { width: 30px; height: 30px; display: grid; place-items: center; color: #e7e4dd; }
.bTag i svg { width: 28px; height: 28px; }
.bTag b { display: block; font: 700 19px var(--title); letter-spacing: 1.5px; text-transform: uppercase; }
.bTag small { display: flex; align-items: center; gap: 10px; font: 600 12px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #c9c4ba; }
.bTag em { display: flex; gap: 3px; }
.bTag u { width: 11px; height: 6px; background: rgba(255, 255, 255, 0.18); }
.bTag u.on { background: #f0b356; }
.bTag.hov { border-color: rgba(240, 179, 86, 0.8); }
.bTag.on { border: 2px solid #f0b356; box-shadow: 0 0 0 1px rgba(240, 179, 86, 0.25), 0 0 26px rgba(232, 163, 61, 0.35); padding: 11px 20px 11px 12px; }
.bTag.on i, .bTag.on i svg { color: #f0b356; width: 34px; height: 34px; }
.bTag.on b { font-size: 22px; }
.bTag.off { border-style: dashed; color: #a9a49a; }
.bTag.off small { color: #8f8c85; }
.baseDetail { position: absolute; top: 16px; right: 22px; bottom: 12px; width: 400px; padding: 18px 18px 16px !important; gap: 10px; overflow: auto; background: rgba(13, 15, 17, 0.93) !important; }
.bdHead { display: flex; align-items: center; gap: 12px; }
.bdHead i { width: 36px; height: 36px; color: #e7e4dd; }
.bdHead i svg { width: 36px; height: 36px; }
.bdHead h2 { margin: 0; font: 700 30px var(--title); letter-spacing: 2px; text-transform: uppercase; }
.bdDash { margin-left: auto; align-self: flex-start; width: 34px; height: 5px; background: linear-gradient(90deg, #f0b356 0 45%, transparent 45% 55%, #f0b356 55%); }
.bdTop { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 14px; }
.bdLvl { margin-top: 6px; padding: 5px 14px; border: 1.5px solid #f0b356; color: #f0b356; font: 700 15px var(--title); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.bdLvl.off { border-color: rgba(231, 228, 221, 0.35); color: #b5b0a6; }
.bdThumb { width: 100%; aspect-ratio: 2.4; object-fit: cover; border-radius: 3px; border: 1px solid rgba(255, 255, 255, 0.08); }
.bdBio { margin: 0; color: #d6d1c7; font-size: 13.5px; }
.bdSec { margin: 6px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); font: 700 14px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #cfcac0; }
.bdList, .bdNext ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: #e7e4dd; }
.bdList .none { color: var(--muted); list-style: none; margin-left: -18px; }
.bdNext { padding: 10px 14px; border: 1px solid rgba(240, 179, 86, 0.55); background: rgba(232, 163, 61, 0.05); display: flex; flex-direction: column; gap: 6px; }
.bdNext h4 { margin: 0; font: 700 15px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #f0b356; }
.bdNext ul { font-size: 13px; color: #d6d1c7; }
.bdNext .req { color: #f0a49c; }
.bdNext.max { border-color: rgba(123, 191, 106, 0.5); background: rgba(123, 191, 106, 0.05); }
.bdNext.max h4 { color: #8fd47b; }
.bdCost { display: flex; flex-wrap: wrap; gap: 6px; }
.bdCr, .bdCost .need, .bdIng .need { display: flex; align-items: center; gap: 6px; padding: 5px 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); font: 700 16px var(--title); letter-spacing: 1px; color: #e7e4dd; }
.bdCr { color: #f0b356; }
.bdCr.miss, .bdCost .need.miss, .bdIng .need.miss { color: #e5675c; border-color: rgba(216, 70, 59, 0.45); }
.bdCost .need img, .bdIng .need img { width: 34px; height: 22px; object-fit: contain; }
.bdUp { width: 100%; padding: 10px; font: 700 16px var(--title); letter-spacing: 2px; text-transform: uppercase; }
.bdUp.primary { background: rgba(232, 163, 61, 0.14); border: 1.5px solid #f0b356; color: #f0b356; }
.bdUp.primary:hover { background: rgba(232, 163, 61, 0.24); }
.bdWarn { margin: 0; font-size: 12.5px; color: #f0a49c; }
.bdRecipes { display: flex; flex-direction: column; }
.bdRec { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.bdRec img, .bdCraft img { width: 44px; height: 28px; object-fit: contain; }
.bdRec b, .bdCraft b { font: 500 14px var(--body); color: #e7e4dd; }
.bdRec small, .bdCraft small { color: var(--muted); font-size: 12px; }
.bdRec button { padding: 5px 10px; font: 700 12.5px var(--title); letter-spacing: 1.5px; text-transform: uppercase; }
.bdRec.off { opacity: 0.55; }
.bdLock { width: 18px; height: 18px; color: #b5b0a6; margin-right: 8px; }
.bdLock svg { width: 18px; height: 18px; }
.bdIng { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.bdIng .need { padding: 2px 8px 2px 2px; font-size: 13px; }
.bdAll { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px; margin-top: 4px; font: 700 13.5px var(--title); letter-spacing: 2px; text-transform: uppercase; }
.bdAll svg { width: 14px; height: 14px; }
.bdCraft { display: grid !important; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid rgba(232, 163, 61, 0.5); background: rgba(232, 163, 61, 0.06); }
.bdCraft .bar { display: block; height: 4px; margin: 6px 0 3px; background: rgba(255, 255, 255, 0.1); }
.bdCraft .bar i { display: block; height: 100%; background: var(--amber); }
.bdCraft .left { font-size: 12px; color: var(--muted); }
.bdCraft.ready { border-color: rgba(123, 191, 106, 0.7); background: rgba(123, 191, 106, 0.08); }
.need { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 900px) { .baseDetail { left: 12px; right: 12px; width: auto; top: auto; height: 52%; } }

/* Contrats */
.quests { grid-template-columns: repeat(3, 1fr); overflow: auto; }
.questList { display: contents; }
.qTrader { gap: 10px; }
.quest { padding: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.quest.active { border-color: rgba(232, 163, 61, 0.6); }
.quest.done { opacity: 0.5; }
.quest.locked { opacity: 0.4; }
.quest h4 { margin: 0 0 4px; color: var(--text); font-size: 16px; }
.quest p { margin: 0 0 8px; color: var(--muted); font-size: 12.5px; }
.qGoal { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.qGoal span:first-child { flex: 1; }
.qProg { width: 80px; height: 4px; background: rgba(255, 255, 255, 0.1); }
.qProg i { display: block; height: 100%; background: var(--amber); }
.quest footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.qReward { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.qReward b { font: 700 15px var(--title); color: var(--amber); margin-right: 6px; }
.qReward img { width: 34px; height: 24px; object-fit: contain; background: rgba(255, 255, 255, 0.05); }
.qReward small { color: var(--muted); margin-right: 4px; }
.quest button { padding: 6px 14px; }
.qDone { color: var(--green); font: 600 13px var(--title); letter-spacing: 1px; text-transform: uppercase; }
.qLock { color: var(--muted); font-size: 12px; }
#questTrack { position: absolute; top: 56px; left: 16px; display: flex; flex-direction: column; gap: 3px; }
#questTrack div { display: flex; gap: 10px; justify-content: space-between; min-width: 190px; padding: 3px 8px; background: rgba(0, 0, 0, 0.55); border-left: 2px solid var(--amber); font-size: 12px; }
#questTrack div.ok { border-left-color: var(--green); color: #a6dc95; }
#questTrack b { font: 600 13px var(--title); }

/* Protections et blessures */
.armorRow { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.armorRow .slot { width: 100%; height: 86px; }
#armorBars { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
#armorBars .ab { display: grid; grid-template-columns: 52px 1fr 28px; gap: 6px; align-items: center; font: 600 11px var(--title); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
#armorBars i { height: 4px; background: rgba(255, 255, 255, 0.1); }
#armorBars i b { display: block; height: 100%; background: #8aa0b8; }
#armorBars small { text-align: right; color: var(--text); }
#status { display: flex; gap: 6px; margin-top: 6px; }
#status .bad { padding: 2px 7px; border: 1px solid rgba(216, 70, 59, 0.7); color: #ff8a7e; font: 600 11px var(--title); letter-spacing: 1px; text-transform: uppercase; animation: blink 0.8s infinite alternate; }
#crosshair.armor .x::before, #crosshair.armor .x::after { background: #8aa0b8; }
#raidInv .slots + .slots { margin-top: 6px; }
#raidInv .slot { height: 70px; }

/* ================================================================ Thème « Blacksite » (planque) */

#hideout.hub { background: linear-gradient(180deg, rgba(7, 8, 9, 0.55), rgba(7, 8, 9, 0.25) 45%, rgba(7, 8, 9, 0.55)), url(assets/ui/backdrop.svg) center bottom / cover no-repeat, #0b0d0f; }

/* Barre du haut : logo, onglets à icônes, niveau, crédits */
.topbar { height: 88px; gap: 0; padding: 0 24px 0 26px; background: linear-gradient(180deg, rgba(5, 6, 7, 0.94), rgba(10, 11, 12, 0.8)); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.logoImg { height: 56px; width: auto; margin-right: 28px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)); }
#hoTabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-width: 128px; padding: 0 18px;
  font: 600 17px var(--title); letter-spacing: 1.5px; color: #a9a59c; border: 0; border-right: 1px solid rgba(255, 255, 255, 0.06); }
#hoTabs button svg { width: 28px; height: 28px; opacity: 0.9; }
#hoTabs button:hover { color: #e7e4dd; background: rgba(255, 255, 255, 0.025); }
#hoTabs button.on { color: #fff; border-bottom: 0; background: linear-gradient(180deg, rgba(232, 163, 61, 0) 0%, rgba(232, 163, 61, 0.1) 50%, rgba(232, 163, 61, 0.3) 100%);
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%); }
#hoTabs button.on::after { content: ""; position: absolute; left: 4%; right: 12%; bottom: 0; height: 3px; background: #f0b356; box-shadow: 0 0 16px 3px rgba(232, 163, 61, 0.75); }
#hoTabs button.on svg { color: #f0b356; }
.who { gap: 18px; }
.pname { display: flex; align-items: center; font: 600 15px var(--title); color: #cfcac0; letter-spacing: 1px; }
.iconBtn { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 3px; color: #cfcac0; }
.iconBtn svg { width: 22px; height: 22px; }
.lvl { gap: 14px; }
.lvl b { width: 44px; height: 44px; font-size: 22px; border-width: 2px; background: rgba(232, 163, 61, 0.06); }
.lvl span { display: grid; grid-template-columns: auto auto; align-items: end; gap: 4px 18px; min-width: 170px; }
.lvl strong { font: 700 15px var(--title); color: #e7e4dd; letter-spacing: 1px; text-transform: uppercase; }
.lvl small { justify-self: end; font: 600 12px var(--title); color: var(--muted); letter-spacing: 0.5px; }
.lvl i { grid-column: span 2; width: 100%; height: 6px; background: rgba(255, 255, 255, 0.1); }
.lvl i em { background: #f0b356; box-shadow: 0 0 6px rgba(232, 163, 61, 0.6); }
.who .credits { display: block; font: 700 28px var(--title); color: #f0b356; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; }

/* Panneaux */
.tab { padding: 18px 22px 8px; gap: 18px; }
.tab .panel { background: rgba(13, 15, 17, 0.86); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
.ph { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.ph svg { width: 22px; height: 22px; color: #b9b4aa; flex: none; }
.ph h3 { margin: 0; font-size: 19px; letter-spacing: 2px; }
.ph small { font: 500 15px var(--title); color: var(--muted); letter-spacing: 1px; }
.ph .val { margin-left: auto; font: 500 15px var(--title); color: var(--muted); letter-spacing: 1px; }
.ph .val b { color: #e7e4dd; margin-left: 6px; text-transform: uppercase; }
.kit .grid { margin-bottom: 22px; }
.gear { grid-template-columns: minmax(470px, 1fr) auto minmax(0, 1.25fr); }

/* Personnage : sous-onglets, scène, protections, armes, constantes */
.charPanel { padding: 12px 14px 14px; gap: 12px; }
.subTabs { display: flex; }
.subTabs button { flex: 0 0 170px; padding: 10px; font: 600 16px var(--title); letter-spacing: 2px; color: var(--muted); border-radius: 0;
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%); }
.subTabs button + button { margin-left: -12px; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
.subTabs button.on { color: #fff; background: linear-gradient(180deg, rgba(232, 163, 61, 0.04), rgba(232, 163, 61, 0.24)); border-bottom: 2px solid #f0b356; }
.charStage { position: relative; flex: 1; min-height: 320px; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden;
  background: radial-gradient(ellipse 42% 50% at 36% 50%, rgba(225, 222, 210, 0.11), transparent 72%), radial-gradient(ellipse 30% 8% at 36% 92%, rgba(0, 0, 0, 0.55), transparent), rgba(0, 0, 0, 0.28); }
.charStage #charView { position: absolute; left: 0; top: 0; width: 70%; height: 100%; }
.brk { position: absolute; width: 18px; height: 18px; border: 0 solid rgba(255, 255, 255, 0.5); pointer-events: none; }
.brk.tl { left: 24px; top: 20px; border-width: 1.5px 0 0 1.5px; }
.brk.tr { left: calc(70% - 42px); top: 20px; border-width: 1.5px 1.5px 0 0; }
.brk.bl { left: 24px; bottom: 20px; border-width: 0 0 1.5px 1.5px; }
.brk.br { left: calc(70% - 42px); bottom: 20px; border-width: 0 1.5px 1.5px 0; }
.armorCol { position: absolute; right: 12px; top: 16px; width: 30%; max-width: 172px; display: flex; flex-direction: column; gap: 14px; }
.armorCol .slot { width: 100%; height: 90px; background: rgba(9, 10, 11, 0.78); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 3px; }
.armorCol .slot .cap { left: 47%; top: 9px; font-size: 11px; }
.armorCol .slot .it { inset: 0; margin: 0; background: none; border: 0; }
.armorCol .slot .it img { left: 6px; top: 10px; width: 42%; height: calc(100% - 20px); }
.armorCol .slot .it .nm { left: 47%; top: 25px; right: 6px; font-size: 14px; color: #e7e4dd; }
.armorCol .slot .it .qt { right: 9px; bottom: 7px; font-size: 14px; }
.armorCol .slot .empty { left: 47%; top: 27px; bottom: auto; }
.bagCard .bagIcon { position: absolute; left: 10px; top: 14px; width: 40%; height: 62px; color: #8e8b64; }
.bagCard .bagIcon svg { width: 100%; height: 100%; }
.bagCard .bagName { position: absolute; left: 47%; top: 25px; right: 6px; font: 600 14px var(--title); color: #e7e4dd; }
.bagCard .bagCap { position: absolute; right: 9px; bottom: 7px; font: 700 14px var(--title); }
.statsSheet { position: absolute; inset: 0; z-index: 3; padding: 20px 24px; display: grid; align-content: start; gap: 2px; background: rgba(9, 10, 11, 0.95); }
.statsSheet div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); color: var(--muted); }
.statsSheet b { font: 700 20px var(--title); color: #e7e4dd; }
.weaponRow { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; }
.weaponRow .slot { width: auto; height: 120px; background: rgba(9, 10, 11, 0.78); border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 3px; }
.weaponRow .slot::after { content: attr(data-key); position: absolute; right: 9px; top: 30px; z-index: 2; width: 21px; height: 21px; display: grid; place-items: center;
  border-radius: 2px; background: rgba(255, 255, 255, 0.14); font: 600 12px var(--title); color: #e7e4dd; }
.weaponRow .slot .cap { top: 7px; left: 10px; font-size: 13px; color: #cfcac0; }
.weaponRow .slot .it { top: 27px; left: 6px; right: 6px; bottom: 6px; border-left: 3px solid #f0b356; }
#slotSecondary .it { border-left-color: #c46b3a; }
.weaponRow .slot .it img { left: 9%; top: 20px; width: 80%; height: calc(100% - 34px); }
.weaponRow .slot .it .nm { top: 5px; left: 9px; font-size: 13px; }
.weaponRow .slot .it .qt { font-size: 16px; right: 8px; bottom: 5px; }
.vitals { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px;
  background: rgba(0, 0, 0, 0.32); font: 500 15px var(--title); color: var(--muted); }
.vitals span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.vitals svg { width: 22px; height: 22px; color: #b9b4aa; }
.vitals b { font: 700 19px var(--title); color: #e7e4dd; }
.vitals .hp svg { color: #7bbf6a; }
.vitals .hp b { color: #a6dc95; }
.vitals .val svg, .vitals .val b { color: #f0b356; }

/* Objets : couleur de bordure par catégorie */
.grid { background-color: rgba(0, 0, 0, 0.38); border-color: rgba(255, 255, 255, 0.1); border-radius: 2px;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px); }
.it { border-radius: 3px; }
.it.weapon { background: linear-gradient(180deg, #2d2f31, #212325); border: 1px solid #57544d; }
.it.ammo { background: linear-gradient(180deg, #26311f, #1b2317); border: 1px solid #5f7d3b; }
.it.med { background: linear-gradient(180deg, #35211f, #271817); border: 1px solid #923f37; }
.it.loot { background: linear-gradient(180deg, #1f2934, #172029); border: 1px solid #416289; }
.it.armor { background: linear-gradient(180deg, #2c2d22, #202119); border: 1px solid #6e6c45; }
.it .nm { font: 600 12.5px var(--title); color: #efebe3; }
.it .qt { font: 700 13px var(--title); color: #fff; }
.it:hover { border-color: #f0b356; box-shadow: inset 0 0 0 1px rgba(232, 163, 61, 0.45); }

/* Pied de page : version et raccourcis */
.hubFoot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 6px 26px 12px; font: 500 13px var(--title); letter-spacing: 0.5px; color: var(--muted); }
.hubFoot .keys { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.hubFoot kbd { margin-left: 16px; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 3px; background: rgba(0, 0, 0, 0.5); font: 600 13px var(--title); color: #e7e4dd; }

/* Accueil */
.brandLogo { margin: 4px 0 10px; line-height: 0; }
.brandLogo img { width: min(600px, 88vw); height: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)); }

@media (max-width: 1450px) {
  .gear { grid-template-columns: 420px auto minmax(0, 1fr); }
  #hoTabs button { min-width: 104px; padding: 0 12px; font-size: 15px; }
  .logoImg { height: 44px; margin-right: 16px; }
  .pname { display: none; }
}

/* Le décor se devine à travers les panneaux, comme sur la maquette */
.tab .panel { background: rgba(13, 15, 17, 0.8); }
.kit { background: linear-gradient(180deg, rgba(13, 15, 17, 0.9) 0%, rgba(13, 15, 17, 0.82) 45%, rgba(13, 15, 17, 0.35) 100%) !important; }
#menu { background: linear-gradient(90deg, rgba(7, 8, 9, 0.6), rgba(7, 8, 9, 0.2) 60%, rgba(7, 8, 9, 0.55)), url(assets/ui/backdrop.svg) center bottom / cover no-repeat, #0b0d0f; }
.gear { grid-template-columns: minmax(470px, 1fr) max-content max-content; }
.stash .scroll { padding-right: 6px; }
.kit .risk { width: 0; min-width: 100%; }

/* ================================================================ Accueil « Blacksite » */

#menu.menu { flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; overflow: hidden;
  background: linear-gradient(90deg, rgba(6, 7, 8, 0.5), rgba(6, 7, 8, 0.05) 45%, rgba(6, 7, 8, 0.15) 60%, rgba(6, 7, 8, 0.6)), url(assets/ui/menu.svg) center bottom / cover no-repeat, #0b0d0f; }
.menuNav { flex: none; height: 60px; display: flex; align-items: center; padding: 0 40px 0 70px; background: linear-gradient(180deg, rgba(5, 6, 7, 0.92), rgba(5, 6, 7, 0.6)); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.navLogo { height: 34px; width: auto; padding-right: 28px; border-right: 1px solid rgba(255, 255, 255, 0.14); }
#menuTabs { display: flex; height: 100%; gap: 6px; margin-left: 40px; }
#menuTabs button { position: relative; height: 100%; padding: 0 22px; background: none; border: 0; border-radius: 0; font: 600 15px var(--title); letter-spacing: 2px; color: #b5b0a6; }
#menuTabs button:hover { color: #e7e4dd; }
#menuTabs button.on { color: #f0b356; }
#menuTabs button.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: #f0b356; box-shadow: 0 0 12px rgba(232, 163, 61, 0.7); }
.navIcons { margin-left: auto; display: flex; gap: 22px; }
.navIcon { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; background: none; border: 0; color: #cfcac0; }
.navIcon:hover { color: #fff; }
.navIcon svg { width: 28px; height: 28px; }
.menuBody { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 30px 60px; }
.menuPage.home { display: grid; grid-template-columns: minmax(0, 660px) 510px; gap: 90px; align-items: center; width: min(1320px, 100%); }
.menu .brand { padding-left: 10px; }
.badge { position: relative; display: inline-block; margin: 0 56px 4px 0; padding: 6px 16px; border: 1.5px solid #e8a33d; color: #f0b356; font: 700 16px var(--title); letter-spacing: 4px; text-transform: uppercase; }
.badge i { position: absolute; right: -50px; top: 4px; width: 38px; height: calc(100% - 8px); background: repeating-linear-gradient(115deg, #e8a33d 0 4px, transparent 4px 10px); opacity: 0.85; }
.menu .brandLogo { margin: 10px 0 6px; }
.menu .brandLogo img { width: min(660px, 100%); }
.menu .lead { max-width: 620px; margin-top: 26px; padding-left: 22px; border-left: 4px solid #e8a33d; font-size: 21px; line-height: 1.45; color: #d6d1c7; }
.menu .join { position: relative; padding: 30px 30px 26px; gap: 12px; background: rgba(12, 14, 16, 0.84); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6px; }
.menu .join::before { content: ""; position: absolute; right: 18px; top: 0; width: 80px; height: 20px; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.08) 0 10px, transparent 10px 20px); }
.menu #guest label { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; font: 600 14px var(--title); letter-spacing: 3px; text-transform: uppercase; color: #cfcac0; }
.menu #guest label svg { width: 20px; height: 20px; }
.menu #name { height: 48px; padding: 0 18px; font-size: 19px; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 3px; }
.menu .join .primary, .menu .join .secondary, .menu .join .discord { display: flex; align-items: center; justify-content: center; gap: 14px; height: 52px; margin: 0; font: 700 18px var(--title); letter-spacing: 3px; }
.menu .join .primary { margin-top: 10px; background: linear-gradient(180deg, #f2b85c, #d68d29); border-color: #f0b356; color: #17110a; }
.menu .join .primary svg { width: 20px; height: 20px; }
.menu .join .secondary { background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.32); color: #e7e4dd; }
.menu .join .secondary svg { width: 22px; height: 22px; }
.menu .join .discord { font-size: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.12); color: #e7e4dd; }
.menu .join .discord:not(:disabled) { background: #5865f2; border-color: #5865f2; color: #fff; }
.menu .join .discord:disabled { color: #77736b; cursor: default; }
.menu .join .discord svg { width: 24px; height: 24px; }
.ctrlTitle { display: flex; align-items: center; gap: 14px; margin: 14px 0 4px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); font: 600 15px var(--title); letter-spacing: 3px; text-transform: uppercase; color: #cfcac0; }
.ctrlTitle svg { width: 30px; height: 30px; }
.menu .join .controls { grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; padding-top: 4px; border-top: 0; font-size: 14.5px; }
.menu .join .controls dt { padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, 0.12); }
.menu .join .controls kbd { display: inline-block; padding: 2px 12px; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 3px; background: rgba(0, 0, 0, 0.4); font: 600 15px var(--title); letter-spacing: 0.5px; color: #ece8df; }
.menu .join .controls dd { align-self: center; color: #cfcac0; }
.controls.flash { animation: ctrlFlash 1.4s ease-out; }
@keyframes ctrlFlash { 0% { box-shadow: 0 0 0 2px #f0b356; } 100% { box-shadow: 0 0 0 2px transparent; } }
.menuPage.info { width: min(860px, 100%); max-height: 100%; overflow: auto; }
.infoPanel { padding: 30px 36px; background: rgba(12, 14, 16, 0.9); }
.infoPanel h2 { margin-bottom: 14px; }
.infoPanel article { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.infoPanel .tag { display: inline-block; margin: 0 0 4px; font: 700 13px var(--title); letter-spacing: 3px; text-transform: uppercase; color: #f0b356; }
.infoPanel h3 { margin: 0 0 6px; }
.infoPanel ul { margin: 0; padding-left: 18px; color: #cfcac0; line-height: 1.6; }
.infoPanel p { color: #cfcac0; line-height: 1.6; }
.infoPanel a { color: #f0b356; }
.road { list-style: none; margin: 0 0 12px; padding: 0; }
.road li { display: grid; grid-template-columns: 110px 1fr; gap: 2px 18px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.road li .tag { grid-row: span 2; }
.road li b { font: 700 18px var(--title); letter-spacing: 1px; text-transform: uppercase; }
.road li span:last-child { color: #cfcac0; }
.menuFoot { flex: none; height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 56px; background: linear-gradient(0deg, rgba(5, 6, 7, 0.95), rgba(5, 6, 7, 0.6));
  border-top: 1px solid rgba(255, 255, 255, 0.08); font: 600 14px var(--title); letter-spacing: 4px; text-transform: uppercase; color: #b5b0a6; }
.menuFoot .game { display: flex; align-items: center; gap: 10px; }
.menuFoot .game b { font-weight: 600; }
.menuFoot .game i { width: 120px; height: 1px; margin-left: 16px; background: rgba(255, 255, 255, 0.25); }
.menuFoot .meta { display: flex; align-items: center; gap: 24px; }
.menuFoot .sep { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.2); }
.menuFoot .hatch { width: 40px; height: 16px; background: repeating-linear-gradient(115deg, #e8a33d 0 4px, transparent 4px 10px); }
@media (max-width: 1250px) {
  .menuPage.home { grid-template-columns: 1fr; gap: 24px; }
  .menuNav { padding: 0 20px; }
  #menuTabs { margin-left: 16px; }
  #menuTabs button { padding: 0 10px; }
  .menuBody { padding: 20px; overflow: auto; align-items: flex-start; }
}
.menuBody { justify-content: flex-end; }
.menuPage.info { margin: 0 auto; }
@media (max-width: 1250px) { .menuBody { justify-content: center; } }

/* ================================================================ Écran de chargement « Blacksite » */
#loading.loadingScreen { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(6, 7, 8, 0.35), rgba(6, 7, 8, 0.75)), url(assets/ui/loading.svg) center / cover no-repeat, #0b0d0f; }
.loadWrap { display: flex; flex-direction: column; align-items: center; width: min(780px, 100%); margin-top: -40px; }
.loadWrap .kicker { align-self: flex-start; margin: 0 0 0 64px; font-size: 15px; letter-spacing: 4px; }
.loadLogo { width: min(660px, 100%); height: auto; margin: 4px 0 70px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8)); }
.loadPanel { position: relative; width: min(745px, 100%); padding: 26px 48px 30px; background: rgba(12, 13, 14, 0.82); border: 1px solid rgba(232, 163, 61, 0.35); border-radius: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.loadPanel::before { content: ""; position: absolute; right: 18px; top: 10px; width: 62px; height: 16px; background: repeating-linear-gradient(115deg, #b98a4e 0 6px, transparent 6px 13px); opacity: 0.7; }
.loadHead { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; }
.loadIcon { position: relative; width: 62px; height: 48px; display: grid; place-items: center; color: #f0b356;
  background: linear-gradient(#f0b356, #f0b356) left top / 10px 1.5px no-repeat, linear-gradient(#f0b356, #f0b356) left top / 1.5px 10px no-repeat,
    linear-gradient(#f0b356, #f0b356) right top / 10px 1.5px no-repeat, linear-gradient(#f0b356, #f0b356) right top / 1.5px 10px no-repeat,
    linear-gradient(#f0b356, #f0b356) left bottom / 10px 1.5px no-repeat, linear-gradient(#f0b356, #f0b356) left bottom / 1.5px 10px no-repeat,
    linear-gradient(#f0b356, #f0b356) right bottom / 10px 1.5px no-repeat, linear-gradient(#f0b356, #f0b356) right bottom / 1.5px 10px no-repeat; }
.loadIcon svg { width: 34px; height: 34px; }
.loadIcon i { position: absolute; right: -22px; top: 0; width: 1px; height: 100%; background: rgba(255, 255, 255, 0.18); }
.loadHead h2 { margin: 0 0 0 10px; font: 700 28px var(--title); letter-spacing: 4px; color: #f0b356; }
.loadPanel .bar { height: 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.loadPanel #loadBar { border-radius: 3px; background: linear-gradient(180deg, #f6bf63, #e3a03c); transition: width 0.3s ease-out; }
.loadStep { margin: 20px 0 0; text-align: center; font-size: 18px; color: #d6d1c7; }

/* ================================================================ HUD de raid « Blacksite » */
#hudLogo { position: absolute; top: 14px; left: 22px; width: 190px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)); }
#hud #roomTag { top: 74px; left: 26px; font-size: 11px; opacity: .75; }
#hud #roomTag b { font-size: 13px; letter-spacing: 2px; }
/* Cadres : fond sombre et liseré orange, bouts en pointe (vitals, arme) */
#hud { --hx: #e9a23b; --hxBg: rgba(19, 20, 21, 0.97); }
#hud .hx { --c: 26px; background: var(--hx); clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% 50%, calc(100% - var(--c)) 100%, var(--c) 100%, 0 50%); filter: drop-shadow(0 3px 8px rgba(0,0,0,.5)); }
#hud .hx::before { content: ''; position: absolute; inset: 2.5px; background: var(--hxBg); clip-path: polygon(calc(var(--c) - 1px) 0, calc(100% - var(--c) + 1px) 0, 100% 50%, calc(100% - var(--c) + 1px) 100%, calc(var(--c) - 1px) 100%, 0 50%); }
#hud .hx > * { position: relative; }
/* Boussole : bande sombre, graduations, repère orange */
#compass { position: absolute; top: 10px; left: 50%; width: 620px; height: 52px; transform: translateX(-50%); overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 15, 16, 0.82), rgba(14, 15, 16, 0.55)); border-top: 2px solid rgba(240, 236, 228, 0.75);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
#compassStrip { position: absolute; left: 50%; top: 0; height: 100%; }
#compassStrip span { position: absolute; top: 22px; transform: translateX(-50%); font: 600 17px var(--title); color: rgba(240, 236, 228, 0.7); }
#compassStrip span::before { content: ""; position: absolute; left: 50%; top: -20px; width: 2px; height: 9px; background: rgba(240, 236, 228, 0.7); }
#compassStrip span.card { font-size: 21px; font-weight: 700; color: #fff; }
#compassStrip span.card::before { height: 13px; background: #fff; }
#compass .needle { position: absolute; left: 50%; top: 0; width: 0; height: 0; transform: translateX(-50%); border: 9px solid transparent; border-top: 13px solid #f0a63a; border-bottom: 0; }
#hud #timer { top: 66px; display: flex; align-items: center; gap: 8px; padding: 4px 22px; font: 700 23px var(--title); letter-spacing: 1px; color: #f1ede6; background: rgba(14, 15, 16, 0.88); border: 1.5px solid rgba(240, 236, 228, 0.25); border-top: 0;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 12px 100%); }
#hud #timer svg { width: 19px; height: 19px; }
#hud #timer.late { color: #ff7a6b; }
/* Réseau et objectif, en haut à droite */
#net { position: absolute; top: 14px; right: 22px; display: flex; align-items: center; gap: 8px; padding: 3px 12px; font: 700 15px var(--title); color: #f1ede6; background: rgba(14, 15, 16, 0.85); border: 1px solid rgba(240, 236, 228, 0.18); border-radius: 4px; }
.sig { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.sig i { width: 3px; background: rgba(255,255,255,.2); }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 7px; } .sig i:nth-child(3) { height: 10px; } .sig i:nth-child(4) { height: 14px; }
.sig.q4 i, .sig.q3 i:nth-child(-n+3) { background: #63c25a; }
.sig.q2 i:nth-child(-n+2) { background: #e6b83c; }
.sig.q1 i:nth-child(1) { background: #e2574b; }
#objective { position: absolute; top: 52px; right: 22px; min-width: 290px; padding: 12px 20px 14px 22px; background: rgba(14, 15, 16, 0.86); border: 2px solid var(--hx); border-right: 0; border-top: 0;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px); filter: drop-shadow(0 3px 8px rgba(0,0,0,.45)); }
#objective h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 700 20px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #f0a63a; }
#objective h4 i { width: 15px; height: 15px; background: #f0a63a; transform: rotate(45deg); }
#hud #questTrack { position: static; display: flex; flex-direction: column; gap: 8px; }
#hud #questTrack div { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0; background: none; border: 0; font: 500 17px var(--body); color: #ece8df; }
#hud #questTrack div i { width: 18px; height: 18px; flex: none; border: 2px solid rgba(240, 236, 228, 0.85); border-radius: 2px; }
#hud #questTrack div.ok { color: #a6dc95; }
#hud #questTrack div.ok i { background: #7bbf6a; border-color: #7bbf6a; }
#hud #killfeed { top: 170px; }
/* Équipe : cartes sous le logo */
#squad { position: absolute; top: 98px; left: 22px; display: flex; flex-direction: column; gap: 7px; }
.sq { position: relative; display: flex; align-items: center; gap: 10px; width: 250px; height: 54px; padding: 0 12px 0 0; background: rgba(16, 17, 18, 0.86); border: 1.5px solid rgba(240, 236, 228, 0.16); border-radius: 4px; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.sq.me { border: 2px solid var(--hx); }
.sq .pic { position: relative; width: 52px; height: 100%; flex: none; overflow: hidden; border-radius: 3px 0 0 3px; }
.sq .pic svg { width: 100%; height: 100%; display: block; }
.sq .pic u { position: absolute; left: 4px; bottom: 4px; width: 8px; height: 8px; border-radius: 50%; background: #63c25a; box-shadow: 0 0 5px rgba(99,194,90,.8); }
.sq .n { position: absolute; left: 3px; top: 1px; font: 700 12px var(--title); color: #f0a63a; text-shadow: 0 1px 2px #000; }
.sq .bd { flex: 1; min-width: 0; }
.sq b { display: block; font: 700 16px/1.1 var(--title); color: #f1ede6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq.me b { color: #f6c26e; }
.sq i { display: block; height: 6px; margin-top: 6px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.sq i em { display: block; height: 100%; background: #f2efe8; border-radius: 2px; transition: width .3s; }
.sq small { flex: none; font: 600 13px var(--title); color: #b9b4aa; }
.sq.dead, .sq.out { opacity: .55; }
.sq.dead .pic, .sq.out .pic { filter: grayscale(1); }
.sq.dead .pic u, .sq.out .pic u { background: #7c7c7c; box-shadow: none; }
.sq.dead small { color: #ff7a6b; }
.sq.ext small { color: #8fd27f; }
.sq.ext .pic u { background: #8fd27f; }
/* Santé et protections, en bas à gauche */
#hud #health { left: 18px; bottom: 22px; width: 380px; height: 108px; padding: 0; display: flex; align-items: stretch; }
#hud .vfig { width: 108px; flex: none; display: grid; place-items: center; }
#hud .vfig::after { content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 26px; background: var(--hx); clip-path: polygon(0 0, 2.5px 0, 100% 50%, 2.5px 100%, 0 100%, calc(100% - 2.5px) 50%); }
#vFig { width: 54px; height: 94px; margin-left: 14px; color: #ece8df; fill: currentColor; transition: color .3s; }
#vFig .arm, #vFig .leg { fill: none; stroke: currentColor; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round; transition: color .3s; }
#vFig .kneel { display: none; }
#vFig.crouch .stand { display: none; }
#vFig.crouch .kneel { display: inline; }
#vFig.crouch .up { transform: translateY(8px); }
#vFig.low { color: #e9b8a8; }
#vFig.broken .leg { color: #e2574b; }
#vFig.bleed .torso, #vFig.bleed .arm { animation: bleed 1s ease-in-out infinite; }
@keyframes bleed { 50% { color: #e2574b; } }
#hud #stance { display: none; }
#hud .vbars { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 44px 0 12px; }
.vrow { display: grid; grid-template-columns: 20px 1fr 36px; align-items: center; gap: 12px; margin: 0; }
.vrow .vi svg { width: 18px; height: 18px; color: #ece8df; display: block; }
.vrow b, .vrow small { text-align: right; font: 700 17px var(--title); color: #ece8df; }
#hud .hp { height: 8px; margin: 0; background: rgba(255, 255, 255, 0.16); border-radius: 2px; overflow: hidden; }
#hud #hpFill { background: #f2efe8; border-radius: 2px; }
#hud #hpFill.low { background: #e2574b; }
#hud #armorBars { display: flex; flex-direction: column; gap: 8px; margin: 0; }
#hud #armorBars .ab { display: grid; grid-template-columns: 20px 1fr 36px; gap: 12px; }
#hud #armorBars i { height: 8px; border-radius: 2px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
#hud #armorBars i b { display: block; height: 100%; border-radius: 2px; }
#hud #armorBars .vest i b { background: #3d8fe0; }
#hud #armorBars .vest .vi svg { color: #4f9ef0; }
#hud #armorBars .helm i b { background: #f0a63a; }
#hud #armorBars .helm .vi svg { color: #f0a63a; }
#hud #armorBars .none { opacity: .45; }
#hud #status { position: absolute; left: 30px; bottom: 140px; display: flex; gap: 6px; }
#hud #status span { padding: 3px 10px; font: 700 13px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #fff; background: rgba(170, 40, 30, 0.85); border-radius: 3px; }
/* Barre d'objets : cases numérotées, case active encadrée d'orange */
#hotbar { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; gap: 12px; }
.hb { position: relative; width: 78px; height: 78px; background: rgba(16, 17, 18, 0.82); border: 1.5px solid rgba(240, 236, 228, 0.12); border-radius: 8px; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.hb.on { border: 3px solid var(--hx); box-shadow: 0 0 12px rgba(233, 162, 59, 0.35); }
.hb small { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); min-width: 20px; padding: 0 5px; text-align: center; font: 700 13px/19px var(--title); color: #f1ede6; background: #141516; border: 1.5px solid rgba(240, 236, 228, 0.35); border-radius: 3px; }
.hb.on small { border-color: var(--hx); }
.hb img { position: absolute; inset: 14px 8px 12px; width: calc(100% - 16px); height: calc(100% - 26px); object-fit: contain; filter: drop-shadow(0 1px 2px #000); }
.hb b { position: absolute; right: 7px; bottom: 4px; font: 700 15px var(--title); color: #fff; text-shadow: 0 1px 2px #000; }
/* Arme : silhouette, munitions, mode de tir */
#hud #weapon { display: flex; align-items: center; gap: 22px; right: 18px; bottom: 22px; width: auto; min-width: 330px; height: 108px; padding: 0 46px 0 40px; text-align: left; }
#wIcon { width: 150px; height: 64px; object-fit: contain; filter: brightness(1.7) grayscale(0.5) drop-shadow(0 1px 2px #000); }
#hud .wright { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; }
#hud #weapon .ammo b { font: 700 48px/1 var(--title); color: #f6f3ec; }
#hud #weapon .ammo b.empty { color: #ff7a6b; }
#hud #weapon .ammo span { margin-left: 4px; font: 700 30px var(--title); color: #f0a63a; }
#hud .wtop { display: flex; align-items: center; gap: 8px; margin-top: 4px; font: 600 16px var(--title); letter-spacing: 0.5px; color: #ddd8ce; }
#hud .magIc { width: 15px; height: 15px; color: #8f8a80; }
#hud #wName { display: none; }
#hud #wReload { position: absolute; left: 48px; right: 50px; bottom: 12px; height: 3px; }
#hud #slots { display: none; }

/* ================================================================ Écran de fin de raid « Blacksite » */
#endScreen.endScreen { z-index: 30; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(8, 8, 9, 0.35), rgba(8, 8, 9, 0.7)); backdrop-filter: blur(5px) brightness(0.75); -webkit-backdrop-filter: blur(5px) brightness(0.75); }
.endLogo { position: absolute; top: 40px; left: 54px; width: 240px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8)); }
.endCard { width: min(762px, calc(100vw - 32px)); padding: 0 0 40px; background: rgba(20, 21, 23, 0.94); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.endHead { position: relative; height: 168px; padding: 32px 44px 0; }
.endArt { position: absolute; inset: 0; width: 100%; height: 100%; }
.endKicker { position: relative; margin: 0 0 8px; font: 700 21px var(--title); letter-spacing: 3px; text-transform: uppercase; color: #f0b356; }
.endKicker::before, .endKicker::after { content: "///"; margin: 0 10px; font-style: italic; opacity: 0.8; }
.endKicker::before { margin-left: 0; }
.endKicker.bad { color: #ff8a7e; }
.endHead h2 { position: relative; display: flex; align-items: center; gap: 20px; margin: 0; font: 700 70px/1 var(--title); letter-spacing: 1px; color: #f1ede6; text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6); }
.endMark { width: 54px; height: 54px; flex: none; border: 3px solid currentColor; border-radius: 4px; position: relative; }
.endMark.ok { color: #6ec25a; }
.endMark.ok::after { content: ""; position: absolute; left: 13px; top: 4px; width: 16px; height: 30px; border: solid currentColor; border-width: 0 6px 6px 0; transform: rotate(40deg); }
.endMark.bad { color: #e2574b; }
.endMark.bad::before, .endMark.bad::after { content: ""; position: absolute; left: 21px; top: 6px; width: 6px; height: 36px; background: currentColor; transform: rotate(45deg); }
.endMark.bad::after { transform: rotate(-45deg); }
.endRows { margin: 14px 40px 0; display: flex; flex-direction: column; gap: 2px; }
.er { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 0 26px; padding: 12px 18px; background: rgba(255, 255, 255, 0.035); }
.er > span:nth-child(2) { font: 400 19px var(--body); color: #e7e4dd; }
.er b { font: 700 24px var(--title); color: #f1ede6; }
.er b.gold { color: #f0b356; }
.er.bad b { color: #ff8a7e; font-size: 20px; }
.ei { display: grid; place-items: center; color: #cfcac0; }
.ei svg { width: 30px; height: 30px; }
.ei.xp svg { color: #d6d1c7; }
.er.lvl2 { grid-template-rows: auto auto; row-gap: 10px; }
.er.lvl2 .ei { grid-row: span 2; align-self: start; }
.er.lvl2 em:not(.lbar em) { margin-left: 10px; font: 700 15px var(--title); font-style: normal; letter-spacing: 1px; text-transform: uppercase; color: #6ec25a; }
.lbar { grid-column: 2; height: 9px; background: rgba(255, 255, 255, 0.14); border-radius: 2px; overflow: hidden; }
.lbar em { display: block; height: 100%; background: #f0b356; border-radius: 2px; transition: width 1.2s ease-out; }
.er.lvl2 small { grid-column: 3; justify-self: end; font: 500 16px var(--title); color: #b5b0a6; }
.endBtn { display: flex; align-items: center; justify-content: center; gap: 16px; width: min(550px, calc(100% - 80px)); height: 68px; margin: 34px auto 0;
  background: linear-gradient(180deg, #f2b85c, #d68d29); border-color: #f0b356; color: #17110a; font: 700 25px var(--title); letter-spacing: 3px; }
.endBtn svg { width: 32px; height: 32px; }

/* ================================================================ Carte du raid illustrée */
.mapCard { padding: 18px !important; }
.mapWrap { position: relative; max-width: 100%; max-height: 100%; aspect-ratio: 300 / 220; height: 100%; }
#mapImg { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1); filter: contrast(1.06); }
#mapImg.hidden { display: none; }
#mapMarks { position: absolute; inset: 0; pointer-events: none; }
#mapMarks .mk { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 7px; white-space: nowrap;
  background: rgba(14, 15, 16, 0.86); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 3px; font: 700 11.5px var(--title); letter-spacing: 0.8px; text-transform: uppercase; color: #f1ede6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5); }
#mapMarks .mk svg { width: 15px; height: 15px; color: #e7e4dd; }
#mapMarks .ex { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 8px; }
#mapMarks .ex.left { flex-direction: row-reverse; }
#mapMarks .ex i { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 2.5px solid #7bdc5e; border-radius: 50%; background: rgba(10, 20, 10, 0.75); color: #7bdc5e;
  box-shadow: 0 0 12px rgba(123, 220, 94, 0.55); }
#mapMarks .ex i svg { width: 20px; height: 20px; }
#mapMarks .ex b { padding: 4px 9px; background: rgba(14, 15, 16, 0.86); border-radius: 3px; font: 700 11.5px var(--title); letter-spacing: 0.8px; text-transform: uppercase; color: #8be06d; white-space: nowrap; }

.mapWrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 3px; background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgba(10, 8, 6, 0.55)); }
#mapMarks { z-index: 1; }

/* ================================================================ Contrats « Blacksite » */
.quests { grid-template-columns: 330px minmax(0, 1fr) 520px; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; align-content: stretch; }
.qHead { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; padding: 4px 6px 2px; }
.qhIcon svg { width: 46px; height: 46px; color: #f0b356; }
.qHead h2 { font-size: 38px; letter-spacing: 3px; }
.qHead p { margin: 2px 0 0; color: #cfcac0; font-size: 14px; }
.qPartners h3, .qMissions h3 { margin: 4px 4px 14px; font-size: 19px; letter-spacing: 2px; }
#qPartners { display: flex; flex-direction: column; gap: 12px; }
.qp { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 0; text-align: left; text-transform: none; letter-spacing: 0; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; }
.qp.on { border: 2px solid #f0b356; box-shadow: 0 0 14px rgba(232, 163, 61, 0.25); }
.qpPic svg { display: block; width: 112px; height: 118px; }
.qpBody { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 10px 0; }
.qpTop { display: flex; justify-content: space-between; align-items: center; }
.qpTop b { font: 700 19px var(--title); letter-spacing: 1.5px; text-transform: uppercase; color: #f1ede6; }
.qpTop svg { width: 26px; height: 26px; color: #cfcac0; }
.qpBody small { color: #b5b0a6; font-size: 12.5px; }
.qpRep { display: flex; align-items: center; gap: 10px; margin-top: auto; font: 600 12px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #b5b0a6; }
.qpRep strong { color: #f1ede6; font-size: 14px; }
.qpRep span { margin-left: auto; color: #e7e4dd; }
.qpBody i { height: 4px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.qpBody i u { display: block; height: 100%; background: #f0b356; }
.qMissions { padding: 0 !important; }
#qTabs { display: flex; align-items: stretch; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
#qTabs button { display: flex; align-items: center; gap: 8px; padding: 14px 18px; background: none; border: 0; border-radius: 0; font: 600 14px var(--title); letter-spacing: 1.5px; color: #b5b0a6; }
#qTabs button svg { width: 18px; height: 18px; }
#qTabs button b { font-weight: 600; }
#qTabs button.on { color: #f1ede6; background: linear-gradient(0deg, rgba(232, 163, 61, 0.22), rgba(232, 163, 61, 0.04)); box-shadow: inset 0 -3px 0 #f0b356; }
.qSort { margin: auto 12px auto auto; display: flex; align-items: center; gap: 8px; padding: 0; font: 600 13px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #b5b0a6; }
.qSort select { background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.15); color: #e7e4dd; padding: 5px 8px; font: 500 13px var(--body); }
.quests .questList { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; overflow: auto; min-height: 0; flex: 1; }
.qRow { display: grid; grid-template-columns: 96px minmax(0, 1fr) 150px 120px; gap: 0 14px; align-items: center; padding: 10px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 3px; cursor: pointer; }
.qRow:hover { border-color: rgba(255, 255, 255, 0.22); }
.qRow.sel { border: 2px solid #f0b356; box-shadow: 0 0 12px rgba(232, 163, 61, 0.2); }
.qRow.locked { opacity: 0.6; }
.qArt { position: relative; display: block; width: 96px; height: 62px; border-radius: 2px; overflow: hidden; background: linear-gradient(160deg, #2a2d30, #16181a); }
.qArt svg { width: 100%; height: 100%; display: block; }
.qArt.item img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; filter: drop-shadow(0 2px 3px #000); }
.qArt.big { width: 100%; height: 150px; }
.qArt.big.item img { inset: 14px 30% 14px 30%; width: 40%; height: calc(100% - 28px); }
.qMain h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 3px; font: 700 17px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #f1ede6; }
.qMain h4 svg { width: 16px; height: 16px; color: #7bdc5e; }
.qTracked { margin-left: 6px; padding: 1px 6px; border: 1px solid #f0b356; border-radius: 2px; font: 600 11px var(--title); font-style: normal; color: #f0b356; }
.qMain p { margin: 0 0 5px; font-size: 12.5px; color: #b5b0a6; line-height: 1.35; }
.qObj { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #e7e4dd; }
.qObj svg { width: 15px; height: 15px; color: #b5b0a6; }
.qRew { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(255, 255, 255, 0.08); padding-left: 14px; }
.qCr, .qItem { display: flex; align-items: center; gap: 8px; font: 700 15px var(--title); color: #f0b356; }
.qCr svg { width: 28px; height: 22px; }
.qItem { color: #e7e4dd; font-weight: 600; }
.qItem img { width: 34px; height: 22px; object-fit: contain; }
.qStat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.qs { display: flex; align-items: center; gap: 6px; font: 700 14px var(--title); letter-spacing: 1px; text-transform: uppercase; }
.qs svg { width: 16px; height: 16px; }
.qs.done { color: #7bdc5e; }
.qs.active { color: #f0b356; }
.qs.locked, .qs.open { color: #cfcac0; }
.qStat small { font: 500 12.5px var(--title); color: #b5b0a6; }
.qBar { width: 100%; height: 5px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.qBar i { display: block; height: 100%; background: #f0b356; }
.qEmpty { color: var(--muted); padding: 20px; }
.qDetail { padding: 18px 22px !important; gap: 12px; overflow: auto; }
.qdHead { display: flex; justify-content: space-between; align-items: center; }
.qdPath { display: flex; align-items: center; gap: 10px; font: 600 15px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #cfcac0; }
.qdPath svg { width: 26px; height: 26px; }
.qdPath i { font-style: normal; color: var(--muted); }
.qBadge { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid currentColor; border-radius: 2px; font: 700 13px var(--title); letter-spacing: 1px; text-transform: uppercase; }
.qBadge svg { width: 14px; height: 14px; }
.qBadge.done { color: #7bdc5e; }
.qBadge.active { color: #f0b356; }
.qBadge.locked, .qBadge.open { color: #cfcac0; }
.qdHero { position: relative; }
.qdHero h2 { position: absolute; left: 16px; bottom: 12px; font-size: 40px; letter-spacing: 2px; text-shadow: 0 2px 8px #000; }
.qdBrief { margin: 0; color: #d6d1c7; line-height: 1.5; }
.qdSec { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); font: 700 15px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #f1ede6; }
.qdSec svg { width: 16px; height: 16px; color: #f0b356; }
.qdSec.plain { font-size: 18px; }
.qdObj { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; background: rgba(255, 255, 255, 0.04); border-radius: 2px; color: #e7e4dd; }
.qdObj i { width: 20px; height: 20px; border: 1.5px solid #cfcac0; border-radius: 2px; display: grid; place-items: center; }
.qdObj.ok i { border-color: #7bdc5e; background: rgba(123, 220, 94, 0.15); color: #7bdc5e; }
.qdObj i svg { width: 14px; height: 14px; }
.qdObj b { font: 600 15px var(--title); }
.qdInfo { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.qdInfo div { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #e7e4dd; }
.qdInfo svg { width: 22px; height: 22px; color: #cfcac0; flex: none; }
.qdInfo small { display: block; font: 600 12px var(--title); letter-spacing: 1.5px; text-transform: uppercase; color: #b5b0a6; margin-bottom: 2px; }
.qdRewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.qdRewards span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 86px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 3px; color: #e7e4dd; }
.qdRewards svg { width: 34px; height: 30px; }
.qdRewards img { width: 52px; height: 34px; object-fit: contain; }
.qdRewards b { font: 700 17px var(--title); }
.qdRewards b.gold { color: #f0b356; }
.qdRep { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #e7e4dd; font: 600 15px var(--title); letter-spacing: 1px; text-transform: uppercase; }
.qdRep svg { width: 28px; height: 28px; color: #f0b356; }
.qdRep em { font-style: normal; color: #7bdc5e; font-size: 18px; }
.qdRep i { grid-column: 2; height: 6px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.qdRep i u { display: block; height: 100%; background: #f0b356; }
.qdRep small { color: #cfcac0; font-size: 13px; }
.qdBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: auto; }
.qdBtns button { display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; font-size: 18px; letter-spacing: 3px; }
.qdBtns button svg { width: 20px; height: 20px; }
.qTrack { border: 1.5px solid #f0b356; color: #f0b356; background: rgba(0, 0, 0, 0.3); }
.qTrack.on { background: rgba(232, 163, 61, 0.18); }
@media (max-width: 1450px) { .quests { grid-template-columns: 280px minmax(0, 1fr) 420px; } .qRow { grid-template-columns: 80px minmax(0, 1fr) 120px 100px; } .qArt:not(.big) { width: 80px; height: 54px; } }

.qArt.big { height: 116px; }
.qDetail { gap: 9px; }
.qdHero h2 { font-size: 34px; }
.qdRewards span { height: 72px; }
.qdBtns button { height: 46px; }

/* Barres de défilement discrètes : fines, sombres, ambre au survol ; jamais de barre horizontale dans le coffre */
#hideout * { scrollbar-width: thin; scrollbar-color: rgba(231, 228, 221, 0.22) transparent; }
#hideout *::-webkit-scrollbar { width: 6px; height: 6px; }
#hideout *::-webkit-scrollbar-track { background: transparent; }
#hideout *::-webkit-scrollbar-thumb { background: rgba(231, 228, 221, 0.2); border-radius: 3px; }
#hideout *::-webkit-scrollbar-thumb:hover { background: rgba(240, 179, 86, 0.6); }
#hideout *::-webkit-scrollbar-button, #hideout *::-webkit-scrollbar-corner { display: none; background: transparent; }
.stash .scroll { overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; padding-right: 4px; }

/* Coffre : recherche, catégories, rangement */
.stashBar { display: flex; align-items: center; gap: 8px; margin: -4px 0 10px; flex-wrap: wrap; contain: inline-size; } /* ne fixe pas la largeur du panneau : la grille la décide */
.sSearch { display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 32px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 3px; flex: 1 1 140px; min-width: 120px; }
.sSearch svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.sSearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: 500 13px var(--body); padding: 0; }
.sSearch:focus-within { border-color: rgba(240, 179, 86, 0.6); }
#stashCats { display: flex; gap: 2px; }
#stashCats button { height: 32px; padding: 0 10px; border-radius: 0; font: 600 13px var(--title); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); }
#stashCats button:hover { color: var(--text); }
#stashCats button.on { color: #f0b356; border-color: rgba(240, 179, 86, 0.6); background: rgba(232, 163, 61, 0.1); }
.sSort { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; font: 700 13px var(--title); letter-spacing: 1.5px; text-transform: uppercase; }
.sSort svg { width: 16px; height: 16px; }
.grid .it.dim { opacity: 0.18; filter: grayscale(1); }

/* Infobulle : comparaison avec l'objet porté */
#itemTip .cmp { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
#itemTip .cmp h5 { margin: 0 0 6px; font: 700 12.5px var(--title); letter-spacing: 1.5px; text-transform: uppercase; color: #cfcac0; }
#itemTip .cmp h5 small { font: 500 11px var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
#itemTip .cmp dd { font-weight: 700; }
#itemTip .cmp dd.up { color: #8fd47b; }
#itemTip .cmp dd.down { color: #e5675c; }
#itemTip .cmp dd.eq { color: var(--muted); }

/* Réparation d'une protection portée */
.slot .repBtn { position: absolute; left: 6px; bottom: 6px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 2px;
  font: 700 12px var(--title); letter-spacing: 0.5px; color: #f0b356; background: rgba(232, 163, 61, 0.12); border: 1px solid rgba(240, 179, 86, 0.55); }
.slot .repBtn svg { width: 12px; height: 12px; }
.slot .repBtn:hover { background: rgba(232, 163, 61, 0.25); }
.slot .repBtn.miss { color: #e5675c; border-color: rgba(216, 70, 59, 0.5); background: rgba(216, 70, 59, 0.08); }

/* Armes : bouton « Modifier », pastille du nombre d'accessoires */
.slot .modBtn { position: absolute; right: 8px; top: 6px; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 2px;
  font: 700 11.5px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #cfcac0; background: rgba(0, 0, 0, 0.45); border: 1px solid rgba(255, 255, 255, 0.18); }
.slot .modBtn svg { width: 12px; height: 12px; }
.slot .modBtn:hover { color: #f0b356; border-color: rgba(240, 179, 86, 0.6); }
.it .md { position: absolute; left: 3px; bottom: 3px; z-index: 1; padding: 0 4px; border-radius: 2px; font: 700 10.5px var(--title); color: #141516; background: #f0b356; }
.grid .it.mod { background: rgba(80, 90, 110, 0.28); border-color: rgba(140, 160, 200, 0.35); }
#itemTip dd.fx .up { color: #8fd47b; } #itemTip dd.fx .down { color: #e5675c; }

/* Atelier d'armes */
.wsModal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(5, 6, 7, 0.72); backdrop-filter: blur(3px); }
.wsModal.hidden { display: none; }
.wsBox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 20px;
  background: rgba(13, 15, 17, 0.97); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); }
.wsHead { display: flex; align-items: center; gap: 14px; }
.wsIco svg { width: 34px; height: 34px; color: #f0b356; }
.wsHead small { font: 600 13px var(--title); letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.wsHead h2 { margin: 0; font: 700 28px var(--title); letter-spacing: 1.5px; text-transform: uppercase; }
.wsClose { margin-left: auto; width: 36px; height: 36px; font-size: 16px; }
.wsBody { display: grid; grid-template-columns: 1fr 340px; gap: 16px; min-height: 0; }
.wsView { position: relative; min-height: 260px; border-radius: 4px; background: radial-gradient(ellipse at 50% 60%, rgba(232, 163, 61, 0.1), transparent 70%), rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); }
.wsView canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.wsHint { position: absolute; left: 12px; bottom: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.wsStats h4 { margin: 0 0 10px; font: 700 14px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #cfcac0; }
.wsStat { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; margin-bottom: 8px; font-size: 13px; color: #d6d1c7; }
.wsStat b { font: 700 14px var(--title); color: #e7e4dd; }
.wsStat i { grid-column: 1 / -1; position: relative; height: 6px; background: rgba(255, 255, 255, 0.08); }
.wsStat u { position: absolute; left: 0; top: 0; bottom: 0; background: #b5b0a6; }
.wsStat em { position: absolute; top: 0; bottom: 0; }
.wsStat.up b { color: #8fd47b; } .wsStat.up em { background: #8fd47b; }
.wsStat.down b { color: #e5675c; } .wsStat.down em { background: #e5675c; }
.wsNote { margin: 6px 0 0; font-size: 12px; color: #9fb7cf; }
.wsSlots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wsSlot { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 4px; background: rgba(255, 255, 255, 0.02); }
.wsSlot.on { border-color: rgba(240, 179, 86, 0.5); }
.wsSlot.off { opacity: 0.45; }
.wsSlot.off p { margin: 0; font-size: 12.5px; color: var(--muted); }
.wsSlot h5 { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 14px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #e7e4dd; }
.wsSlot h5 svg { width: 18px; height: 18px; color: #f0b356; }
.wsCur { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px; background: rgba(0, 0, 0, 0.3); border-radius: 3px; }
.wsCur img { width: 48px; height: 32px; object-fit: contain; }
.wsCur b { flex: 1; font: 600 13px var(--body); }
.wsEmpty { color: var(--muted); font-size: 13px; padding-left: 4px; }
.wsOff { padding: 3px 8px; font: 700 11.5px var(--title); letter-spacing: 1px; text-transform: uppercase; }
.wsOpts { display: flex; flex-direction: column; gap: 4px; }
.wsOpt { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; text-align: left; font: 500 13px var(--body); }
.wsOpt img { width: 40px; height: 26px; object-fit: contain; }
.wsOpt small { color: var(--muted); font-size: 12px; }
.wsOpt:not(:disabled):hover { border-color: rgba(240, 179, 86, 0.6); color: #f0b356; }
.wsOpt.mounted { border-color: rgba(123, 191, 106, 0.6); }
.wsOpt.mounted small { color: #8fd47b; }
@media (max-width: 900px) { .wsBody { grid-template-columns: 1fr; } .wsSlots { grid-template-columns: 1fr 1fr; } }

/* Mode test */
.devBtn { height: 32px; padding: 0 12px; font: 700 13px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #9fd4ff; border: 1px dashed rgba(159, 212, 255, 0.6); background: rgba(80, 140, 200, 0.08); }
.devBtn.hidden { display: none; }
.devPanel { position: fixed; right: 16px; top: 76px; bottom: 16px; width: 360px; z-index: 55; display: flex; flex-direction: column; gap: 8px; padding: 14px;
  background: rgba(12, 16, 20, 0.97); border: 1px dashed rgba(159, 212, 255, 0.45); border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6); }
.devPanel.hidden { display: none; }
.devPanel header { display: flex; align-items: baseline; gap: 8px; }
.devPanel header b { font: 700 18px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #9fd4ff; }
.devPanel header small { color: var(--muted); font-size: 12px; }
.devX { margin-left: auto; width: 30px; height: 30px; }
.devQuick { display: flex; flex-wrap: wrap; gap: 6px; }
.devQuick button { padding: 5px 9px; font: 700 12.5px var(--title); letter-spacing: 1px; text-transform: uppercase; }
.devQ { height: 32px; padding: 0 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); color: var(--text); border-radius: 3px; }
.devCats { display: flex; flex-wrap: wrap; gap: 3px; }
.devCats button { padding: 4px 8px; font: 600 12px var(--title); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.devCats button.on { color: #9fd4ff; border-color: rgba(159, 212, 255, 0.6); }
.devList { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 3px; }
.devRow { display: grid; grid-template-columns: 52px 1fr auto auto; align-items: center; gap: 6px; padding: 3px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; }
.devRow img { width: 52px; height: 32px; object-fit: contain; }
.devRow small { display: block; color: var(--muted); font-size: 11px; }
.devRow button { padding: 3px 8px; font: 700 12px var(--title); }
.devNone { color: var(--muted); }

/* Corps récents des pillards : repère rouge visible de loin */
#contMarks .cm.dead { color: #f0a49c; border-color: rgba(216, 70, 59, 0.6); background: rgba(40, 10, 8, 0.7); }

/* Raid : choix de l'heure et de la météo */
.cond { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; margin-bottom: 6px; }
.cond > span { font: 600 12.5px var(--title); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font: 600 13px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #b5b0a6; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 2px; }
.seg button svg { width: 16px; height: 16px; }
.seg button:hover { color: var(--text); }
.seg button.on { color: #f0b356; border-color: rgba(240, 179, 86, 0.65); background: rgba(232, 163, 61, 0.1); }
.condNote { margin: 4px 0 10px; font-size: 12.5px; color: #d6d1c7; }
.condNote small { color: var(--muted); font-size: 12px; }

/* Raid : le panneau défile si l'écran est petit ; le bouton Déployer reste toujours visible en bas */
.raidInfo { overflow-y: auto; }
.raidInfo h2 { font-size: 38px; margin: 2px 0 6px; }
.raidInfo .facts { margin: 10px 0; }
.raidInfo h4 { margin: 12px 0 6px; }
.raidInfo .extracts { columns: 2; column-gap: 16px; }
.raidInfo .go { position: sticky; bottom: -16px; z-index: 1; margin: auto -16px -16px; padding: 14px 16px 16px;
  background: linear-gradient(180deg, rgba(13, 15, 17, 0), rgba(13, 15, 17, 0.97) 28%); }

/* ---------------------------------------------------------------- Amis et groupe */
#hoFriends { position: relative; }
#hoFriends .badge { position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e8a33d; color: #14110d; font: 700 11px/16px var(--title); text-align: center; }
.socialPanel { position: absolute; top: 64px; right: 12px; bottom: 44px; width: 340px; z-index: 20; display: flex; flex-direction: column; gap: 8px; padding: 14px; overflow-y: auto;
  background: rgba(14, 16, 18, 0.97); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55); }
.socialPanel header { display: flex; align-items: center; justify-content: space-between; }
.socialPanel h3 { margin: 0; font: 600 18px var(--title); letter-spacing: 2px; text-transform: uppercase; }
.socialPanel h5 { margin: 10px 0 2px; font: 600 12px var(--title); letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.socialPanel h5 small { float: right; font-size: 11px; letter-spacing: .5px; }
#socSearch { height: 34px; padding: 0 10px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); border-radius: 3px; color: var(--text); font: 13px var(--body, inherit); }
.socRow { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.socRow.dim { opacity: .55; }
.socRow.hot { background: rgba(232, 163, 61, 0.08); }
.socWho { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; }
.socWho img, .socAva { width: 30px; height: 30px; border-radius: 50%; flex: none; background: #2a2d31; }
.socWho > span { min-width: 0; display: flex; flex-direction: column; }
.socWho b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.socWho small { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #5a5d61; flex: none; }
.dot.hideout { background: #7bbf6a; } .dot.queue { background: #e8a33d; } .dot.raid { background: #d0583f; }
.socAct { display: flex; gap: 4px; align-items: center; }
.socAct small { color: var(--muted); font-size: 11.5px; }
.socialPanel button.sm { padding: 4px 9px; font-size: 11.5px; letter-spacing: 1px; }
.socialPanel button.icon { padding: 2px 8px; font-size: 15px; }
.socialPanel button.wide { width: 100%; margin-top: 6px; }
/* Onglet Raid : conditions du serveur, groupe, recherche */
.condNow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.condNow .chip { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font: 600 13px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #f0b356; border: 1px solid rgba(240, 179, 86, 0.5); background: rgba(232, 163, 61, 0.08); }
.condNow .chip svg { width: 16px; height: 16px; }
.condNow small { color: var(--muted); font-size: 12px; }
.raidGroup { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.raidGroup .socRow { border: 0; padding: 3px 0; }
.raidGroup .hint { margin: 0; }
.raidInfo .go { display: flex; flex-direction: column; gap: 6px; }
.queueInfo { font-size: 12.5px; color: #f0b356; text-align: center; min-height: 16px; }

/* Objet tourné d'un quart de tour : l'icône pivote dans sa case (largeur et hauteur échangées) */
.it.rot img { left: 50%; top: calc(50% + 4px); width: calc(var(--ch) - 14px); height: calc(var(--cw) - 8px); transform: translate(-50%, -50%) rotate(90deg); }

/* Sac du coffre ouvert (Ctrl + clic) : sous la poche sécurisée */
#packView { margin-top: 10px; }
#packView header { align-items: center; }
.packClose { margin-left: auto; font: 600 11px var(--title); letter-spacing: 1px; text-transform: uppercase; color: var(--muted, #9aa3a8); background: none; border: 1px solid rgba(255,255,255,.14); padding: 3px 8px; cursor: pointer; }
.packClose:hover { color: #fff; border-color: rgba(255,255,255,.35); }

/* Grenades : case olive sombre */
.it.throw { background: linear-gradient(180deg, #2f3424, #23271b); border: 1px solid #5d6a3a; }

/* Marchands : hangar en 3D, fiches au-dessus des marchands ; la boutique s'ouvre au clic */
.tab.traders.room, .tab.traders { display: block; position: relative; padding: 0; overflow: hidden; }
.tab.traders.room > .trShop, .tab.traders.room > .trSay, .tab.traders:not(.room) .trTags { display: none; }
.trView { position: absolute; inset: 0; }
.trView canvas { width: 100%; height: 100%; display: block; }
.trTags { position: absolute; inset: 0; pointer-events: none; }
.trTag { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 12px 22px 12px 14px; min-width: 230px; text-align: left;
  background: rgba(14, 13, 12, 0.88); border: 1.5px solid rgba(240, 179, 86, 0.55); border-radius: 6px; color: #e9e4da; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.45); transition: border-color .15s, background .15s; }
.trTag::after { content: ''; position: absolute; left: 50%; bottom: -9px; width: 16px; height: 16px; transform: translateX(-50%) rotate(45deg); background: rgba(14, 13, 12, 0.92); border-right: 1.5px solid rgba(240, 179, 86, 0.55); border-bottom: 1.5px solid rgba(240, 179, 86, 0.55); }
.trTag i { width: 38px; height: 38px; display: grid; place-items: center; color: #e7e4dd; flex: none; }
.trTag i svg { width: 34px; height: 34px; }
.trTag b { display: block; font: 700 21px var(--title); letter-spacing: .5px; }
.trTag small { display: block; font: 500 15px var(--title); color: #c9c4ba; }
.trTag em { display: block; margin-top: 3px; font: 700 15px var(--title); font-style: normal; color: #f0b356; letter-spacing: 1px; }
.trTag u { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: #5bd36a; box-shadow: 0 0 8px rgba(91, 211, 106, .8); }
.trTag.hov { border-color: #f0b356; background: rgba(28, 24, 18, 0.94); }
.trTag.hov::after { border-color: #f0b356; }
.trBack { float: right; margin: 0 0 8px 12px; font: 600 12px var(--title); letter-spacing: 1px; text-transform: uppercase; color: #c9c4ba; background: none; border: 1px solid rgba(255,255,255,.18); padding: 5px 10px; cursor: pointer; }
.trBack:hover { color: #fff; border-color: rgba(240, 179, 86, .6); }
.trTag em span { margin: 0 6px; color: #8a8478; }

/* Boutique d'un marchand : gros plan sur lui à gauche, panneau à droite (mêmes codes que le coffre et la planque) */
.trShop { position: absolute; top: 16px; right: 22px; bottom: 12px; width: min(60%, 980px); display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 16px;
  background: rgba(13, 15, 17, 0.93); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 6px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); animation: tsIn .25s ease-out; }
@keyframes tsIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.tsTop { display: flex; align-items: center; gap: 12px; }
.tsBack { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px 0 6px; border-radius: 0; font: 600 13px var(--title); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer; }
.tsBack svg { width: 16px; height: 16px; }
.tsBack:hover { color: var(--text); }
.tsSwitch { display: flex; gap: 2px; margin: 0 auto; }
.tsSwitch button { width: 40px; height: 32px; display: grid; place-items: center; padding: 0; border-radius: 0; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer; }
.tsSwitch button svg { width: 18px; height: 18px; }
.tsSwitch button:hover { color: var(--text); }
.tsSwitch button.on { color: #f0b356; border-color: rgba(240, 179, 86, 0.6); background: rgba(232, 163, 61, 0.1); }
.tsCr { font: 700 20px var(--title); letter-spacing: 1px; color: #f0b356; }
.tsHead { display: flex; align-items: center; gap: 12px; }
.tsHead > i { width: 36px; height: 36px; color: #e7e4dd; }
.tsHead > i svg { width: 36px; height: 36px; }
.tsHead h2 { margin: 0; font: 700 30px/1 var(--title); letter-spacing: 2px; text-transform: uppercase; }
.tsHead small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.tsRep { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.tsRep > span:last-child { padding: 5px 14px; border: 1.5px solid #f0b356; color: #f0b356; font: 700 15px var(--title); letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; }
.tsRep .bar { display: block; width: 120px; height: 4px; background: rgba(255, 255, 255, 0.1); }
.tsRep .bar i { display: block; height: 100%; background: #f0b356; }
.tsModes { display: flex; gap: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.tsModes button { position: relative; flex: none; padding: 8px 22px; border: 0; border-radius: 0; font: 600 15px var(--title); letter-spacing: 3px; text-transform: uppercase; color: var(--muted); background: none; cursor: pointer; }
.tsModes button:hover { color: var(--text); }
.tsModes button.on { color: #fff; background: linear-gradient(180deg, rgba(232, 163, 61, 0) 0%, rgba(232, 163, 61, 0.18) 100%); }
.tsModes button.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #f0b356; box-shadow: 0 0 12px 2px rgba(232, 163, 61, 0.6); }
.tsBuy, .tsSell { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.trShop.sell .tsBuy, .trShop:not(.sell) .tsSell { display: none; }
.tsCats { display: flex; flex-wrap: wrap; gap: 2px; }
.tsCats:empty { display: none; }
.tsCats button { height: 32px; padding: 0 10px; border-radius: 0; font: 600 13px var(--title); letter-spacing: 1px; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.08); cursor: pointer; }
.tsCats button:hover { color: var(--text); }
.tsCats button.on { color: #f0b356; border-color: rgba(240, 179, 86, 0.6); background: rgba(232, 163, 61, 0.1); }
.tsGrid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 6px; align-content: start; padding-right: 4px; }
/* Offres : tuiles aux couleurs des catégories du coffre */
.tsOffer { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 8px; text-align: left; text-transform: none; letter-spacing: 0; color: var(--text); border-radius: 3px; cursor: pointer;
  background: linear-gradient(180deg, #2d2f31, #212325); border: 1px solid #57544d; }
.tsOffer.c-ammo { background: linear-gradient(180deg, #26311f, #1b2317); border-color: #5f7d3b; }
.tsOffer.c-med { background: linear-gradient(180deg, #35211f, #271817); border-color: #923f37; }
.tsOffer.c-armor, .tsOffer.c-bag { background: linear-gradient(180deg, #2c2d22, #202119); border-color: #6e6c45; }
.tsOffer.c-mod { background: linear-gradient(180deg, #252a33, #1c2027); border-color: #4e5d7a; }
.tsOffer.c-throw { background: linear-gradient(180deg, #2f3424, #23271b); border-color: #5d6a3a; }
.tsOffer:hover { filter: brightness(1.15); }
.tsOffer.on { outline: 2px solid #f0b356; outline-offset: -1px; }
.tsOffer img { width: 100%; height: 80px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.tsOffer .nm { font: 600 15px/1.15 var(--title); letter-spacing: .3px; }
.tsOffer .nm i { font-style: normal; color: var(--muted); }
.tsOffer .sp { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tsOffer .pr { font: 700 16px var(--title); letter-spacing: .5px; color: #f0b356; }
.tsOffer .pr.poor { color: var(--red); }
.tsOffer .own { position: absolute; top: 6px; right: 6px; font: 600 11px var(--title); letter-spacing: .5px; color: var(--muted); }
.tsLockH { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); font: 700 14px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #cfcac0; }
.tsOffer.locked { cursor: default; opacity: .5; filter: grayscale(.6); }
.tsOffer.locked:hover { filter: grayscale(.6); }
.tsOffer.locked .pr { color: var(--muted); font-size: 14px; }
/* Fiche de l'offre choisie : cadre orange comme le prochain niveau d'un module */
.tsDetail { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border: 1px solid rgba(240, 179, 86, 0.55); background: rgba(232, 163, 61, 0.05); }
.tsDetail:empty { display: none; }
.tsDetail img { width: 110px; height: 66px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.tsDetail .info { flex: 1; min-width: 0; }
.tsDetail h3 { margin: 0 0 6px; font: 700 15px var(--title); letter-spacing: 2px; text-transform: uppercase; color: #f0b356; }
.tsDetail .chips { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tsDetail .chips span { font-size: 13px; color: #d6d1c7; }
.tsDetail .chips span + span::before { content: ''; display: inline-block; width: 4px; height: 4px; margin: 0 10px 2px -10px; background: rgba(240, 179, 86, 0.6); transform: rotate(45deg); }
.tsDetail .buy { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.tsDetail .buy b { font: 700 24px var(--title); letter-spacing: 1px; color: #f0b356; }
.tsDetail .buy small { color: var(--muted); font-size: 12px; }
.tsDetail .buy button { min-width: 150px; padding: 9px 18px; border-radius: 0; font: 700 16px var(--title); letter-spacing: 2px; text-transform: uppercase; background: rgba(232, 163, 61, 0.14); border: 1.5px solid #f0b356; color: #f0b356; }
.tsDetail .buy button:hover:not(:disabled) { background: rgba(232, 163, 61, 0.24); }
.tsDetail .buy button:disabled { background: none; border-color: rgba(231, 228, 221, 0.25); color: var(--muted); }
.tsSell .scroll { flex: 1; min-height: 0; overflow: auto; }
.tsSell .sellZone { margin: 0; }
.tsHint { margin: 0; color: var(--muted); font-size: 13px; }
/* Réplique du marchand, en bas à gauche */
.trSay { position: absolute; left: 22px; bottom: 12px; max-width: min(32%, 440px); padding: 12px 16px; font: italic 400 14px/1.5 var(--body); color: #e7e4dd; background: rgba(13, 15, 17, 0.9); border: 1px solid rgba(255, 255, 255, 0.08); border-left: 3px solid #f0b356; animation: tsIn .25s ease-out; }
.trSay b { display: block; margin-bottom: 3px; font: 700 13px var(--title); font-style: normal; letter-spacing: 2px; text-transform: uppercase; color: #f0b356; }
@media (max-width: 1100px) { .trShop { width: auto; left: 22px; top: 40%; } .trSay { display: none; } }
#shop.tsGrid { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
#shop .tsOffer { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 8px; font: inherit; }
#shop .tsOffer img { grid-row: auto; width: 100%; height: 80px; background: none; }
