:root {
  color-scheme: dark;
  --bg: #071015;
  --panel: #0c171f;
  --panel2: #0f1e28;
  --line: #223542;
  --text: #e6edf2;
  --muted: #95a5b2;
  --blue: #4b8dff;
  --green: #36d66b;
  --orange: #ff9f1a;
  --red: #ff4f4f;
  --purple: #a970ff;
  --shadow: rgba(0,0,0,.35);
  --radius: 12px;
  font-family: Segoe UI, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 50% 0%, #102431 0%, var(--bg) 55%); color: var(--text); }
button, input, select { font: inherit; }
.topbar { height: 74px; display: flex; align-items: center; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(7,16,21,.88); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 5; }
.iconButton { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #0a141b; color: var(--text); font-size: 23px; cursor: pointer; }
.topbar h1 { margin: 0; font-size: 28px; letter-spacing: .04em; }
.topbar h1 span { color: var(--muted); font-size: 18px; font-weight: 500; }
.topbar p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.topstats { margin-left: auto; display: flex; align-items: stretch; gap: 10px; }
.topstats > div, .shopping { min-width: 116px; padding: 8px 14px; border-left: 1px solid var(--line); }
.topstats span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.topstats strong { display: block; margin-top: 3px; font-size: 18px; }
#nuyen { color: var(--green); }
.shopping { background: #0d1a22; border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; }
.shopping b { margin-left: 8px; color: var(--green); background: rgba(54,214,107,.12); border-radius: 99px; padding: 3px 8px; }
.board { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; padding: 16px; min-height: calc(100vh - 74px); }
.column { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(15,30,40,.94), rgba(7,16,21,.92)); border-radius: var(--radius); box-shadow: 0 15px 40px var(--shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.column.raw { border-color: rgba(75,141,255,.35); }
.column.lab { border-color: rgba(54,214,107,.35); }
.column.carried { border-color: rgba(255,159,26,.45); }
.columnHead { min-height: 74px; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.columnHead h2 { margin: 0; text-transform: uppercase; letter-spacing: .04em; font-size: 22px; }
.columnHead p { margin: 3px 0 0; color: var(--muted); }
.headIcon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: 0 0 auto; }
.headIcon.flask { background: rgba(75,141,255,.18); border: 1px solid var(--blue); }
.headIcon.flask::after { content: ""; width: 20px; height: 24px; border: 3px solid var(--blue); border-top-width: 6px; border-radius: 3px 3px 9px 9px; transform: rotate(0deg); }
.headIcon.home { background: rgba(54,214,107,.18); border: 1px solid var(--green); }
.headIcon.home::after { content: "⌂"; font-size: 32px; color: var(--green); transform: translateY(-1px); }
.headIcon.bag { background: rgba(255,159,26,.18); border: 1px solid var(--orange); }
.headIcon.bag::after { content: "▣"; font-size: 30px; color: var(--orange); }
.pill { margin-left: auto; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 99px; display: grid; place-items: center; font-weight: 700; }
.pill.blue { background: rgba(75,141,255,.14); color: #8fb7ff; }
.pill.green { background: rgba(54,214,107,.14); color: #89efa8; }
.pill.orange { background: rgba(255,159,26,.14); color: #ffc269; }
h3 { margin: 16px 16px 8px; color: var(--muted); text-transform: uppercase; font-size: 14px; letter-spacing: .08em; }
.raw h3 { color: var(--blue); }
.lab h3 { color: var(--green); }
.carried h3 { color: var(--orange); }
.cards { padding: 0 14px 12px; display: grid; gap: 8px; }
.dropzone { min-height: 70px; border-radius: 10px; }
.dropzone.over { outline: 2px dashed rgba(255,255,255,.35); outline-offset: -4px; background: rgba(255,255,255,.04); }
.card { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 10px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.035); border-radius: 10px; cursor: default; }
.card[draggable="true"] { cursor: grab; }
.card:active { cursor: grabbing; }
.card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.card small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.25; }
.qty { min-width: 40px; height: 34px; display: grid; place-items: center; padding: 0 8px; border-radius: 8px; font-weight: 800; background: rgba(75,141,255,.12); color: #9ac0ff; }
.lab .qty { background: rgba(54,214,107,.12); color: #9effb7; }
.carried .qty { background: rgba(255,159,26,.12); color: #ffca7b; }
.actions { display: flex; align-items: center; gap: 7px; }
.smallBtn { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #0d1921; color: var(--text); cursor: pointer; }
.smallBtn:hover { border-color: rgba(255,255,255,.35); }
.smallBtn.minus { color: var(--orange); font-size: 22px; }
.smallBtn.danger { color: var(--red); }
.smallBtn.green { color: var(--green); }
.miniIcon { width: 34px; height: 34px; display: grid; place-items: center; position: relative; }
.miniIcon.dart::before { content: ""; width: 4px; height: 30px; border-radius: 2px; background: #dfe8ee; transform: rotate(42deg); box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.miniIcon.flask::before { content: ""; width: 16px; height: 24px; border: 2px solid #dfe8ee; border-top-width: 6px; border-radius: 2px 2px 8px 8px; }
.miniIcon.cloud::before { content: ""; width: 30px; height: 23px; border: 3px dotted #dfe8ee; border-radius: 50%; }
.miniIcon.round::before { content: ""; width: 30px; height: 30px; border: 2px solid #dfe8ee; border-radius: 50%; }
.miniIcon.capsule::before { content: ""; width: 30px; height: 15px; border: 2px solid #dfe8ee; border-radius: 999px; transform: rotate(-42deg); }
.miniIcon.patch::before { content: ""; width: 28px; height: 28px; border: 2px solid #dfe8ee; border-radius: 4px; }
.miniIcon.magazine::before { content: ""; width: 15px; height: 34px; border: 2px solid var(--green); border-radius: 3px; box-shadow: inset 0 -8px 0 rgba(54,214,107,.25); }
.miniIcon.emptyMag::before { content: ""; width: 15px; height: 34px; border: 2px solid #9aa8b4; border-radius: 3px; opacity: .7; }
.hint { margin: auto 14px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(255,255,255,.025); line-height: 1.45; }
.weaponPanel { margin: 14px; border: 1px solid rgba(255,159,26,.35); border-radius: 12px; background: rgba(255,159,26,.035); }
.weaponPanel h3 { margin-top: 12px; }
.weaponBox { padding: 12px; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; }
.weaponIcon { width: 44px; height: 28px; border: 2px solid #e6edf2; border-radius: 7px 13px 5px 5px; position: relative; }
.weaponIcon::after { content: ""; position: absolute; right: 4px; bottom: -16px; width: 9px; height: 17px; border: 2px solid #e6edf2; border-top: 0; border-radius: 0 0 3px 3px; transform: skew(-8deg); }
.engagedMag { width: 50px; height: 78px; border: 2px solid var(--green); border-radius: 7px; display: grid; place-items: center; color: #d9ffe4; font-weight: 900; line-height: 1.15; }
.magStrip { display: flex; gap: 10px; padding: 0 12px 12px; flex-wrap: wrap; }
.magButton { min-width: 48px; height: 64px; border: 1px solid #5a6975; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer; line-height: 1.1; }
.magButton.active { border-color: var(--green); color: #d9ffe4; box-shadow: 0 0 0 2px rgba(54,214,107,.16); }
.magButton.empty { color: var(--muted); border-style: dashed; }
dialog { border: 0; background: transparent; color: var(--text); width: min(560px, calc(100vw - 30px)); }
dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
.dialogCard { background: #0d1921; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 25px 90px rgba(0,0,0,.6); padding: 18px; display: grid; gap: 12px; }
.dialogCard.large { width: min(760px, calc(100vw - 30px)); }
.dialogHead { display: flex; align-items: center; justify-content: space-between; }
.dialogHead h2 { margin: 0; }
.close { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 24px; cursor: pointer; }
.muted { color: var(--muted); margin: 0; line-height: 1.4; }
.choiceGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: rgba(255,255,255,.035); cursor: pointer; text-align: left; color: var(--text); }
.choice.selected { border-color: var(--green); box-shadow: inset 0 0 0 1px rgba(54,214,107,.45); }
.choice b { display: block; }
.choice small { display: block; color: var(--muted); margin-top: 4px; }
label { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px; background: #071015; color: var(--text); }
.costLine { margin: 0; color: var(--green); font-weight: 700; }
menu { display: flex; justify-content: flex-end; gap: 10px; padding: 0; margin: 8px 0 0; }
.primary, .secondary { border: 1px solid var(--line); border-radius: 9px; padding: 10px 16px; cursor: pointer; }
.primary { background: rgba(54,214,107,.16); color: #aaffbd; border-color: rgba(54,214,107,.55); }
.secondary { background: transparent; color: var(--text); }
.shopRow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shopRow small { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #142632; border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 10; }
@media (max-width: 1100px) {
  .board { grid-template-columns: 1fr; }
  .topbar { height: auto; align-items: flex-start; padding: 12px; }
  .topstats { flex-wrap: wrap; }
}

/* v3 — zones de dépôt pleine colonne, plus confortables sur tablette */
.column.over {
  outline: 3px dashed rgba(255,255,255,.34);
  outline-offset: -8px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)), linear-gradient(180deg, rgba(15,30,40,.94), rgba(7,16,21,.92));
}
.column.lab.over { box-shadow: 0 0 0 3px rgba(54,214,107,.18), 0 15px 40px var(--shadow); }
.column.carried.over { box-shadow: 0 0 0 3px rgba(255,159,26,.18), 0 15px 40px var(--shadow); }
.column.over .columnHead { background: rgba(255,255,255,.035); }
.column.lab.over::after,
.column.carried.over::after {
  content: "Dépose n'importe où dans cette colonne";
  margin: 0 14px 12px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.24);
  color: var(--muted);
  text-align: center;
  order: 999;
}
.column.lab.over::after { color: #9effb7; }
.column.carried.over::after { color: #ffca7b; }
@media (pointer: coarse) {
  .card { min-height: 76px; padding: 13px; }
  .smallBtn { width: 44px; height: 44px; }
  .columnHead { min-height: 86px; }
}
.errorLine {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255,79,79,.45);
  border-radius: 10px;
  background: rgba(255,79,79,.10);
  color: #ffaaaa;
  line-height: 1.35;
}

/* v5 — magasin + armes multiples */
.weaponSubPanel + .weaponSubPanel { border-top: 1px solid rgba(255,159,26,.25); }
.weaponImage { width: 86px; max-height: 58px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.aresImage { transform: translateY(1px); }
.dartWeaponIcon::before { content: ""; position: absolute; left: 2px; top: 10px; width: 38px; height: 10px; border: 2px solid #e6edf2; border-radius: 999px; }
.dartWeaponIcon::after { content: ""; position: absolute; left: 22px; top: 22px; width: 13px; height: 18px; border: 2px solid #e6edf2; border-top: 0; border-radius: 0 0 5px 5px; transform: skew(-8deg); }
.miniIcon.dartMag::before { content: ""; width: 11px; height: 34px; border: 2px solid var(--green); border-radius: 999px; box-shadow: inset 0 -8px 0 rgba(54,214,107,.22); }
.storeDialog { width: min(1220px, calc(100vw - 24px)); }
.storeCard { width: min(1220px, calc(100vw - 24px)); max-height: calc(100vh - 34px); }
.storeGrid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; min-height: min(700px, calc(100vh - 210px)); }
.storeColumn { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); display: flex; flex-direction: column; overflow: hidden; }
.storeToolbar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.storeToolbar h3 { margin: 0; flex: 1; }
.storeToolbar input { max-width: 260px; }
.storeList { overflow: auto; padding: 10px; display: grid; gap: 8px; }
.storeRow, .cartRow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px; border: 1px solid rgba(255,255,255,.10); border-radius: 10px; background: rgba(255,255,255,.035); }
.storeRow.owned { border-color: rgba(54,214,107,.28); background: rgba(54,214,107,.045); }
.storeRow.support { border-color: rgba(75,141,255,.20); }
.storeRow strong, .cartRow strong { display: block; font-size: 14px; }
.storeRow small, .cartRow small { display: block; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.cartRow { grid-template-columns: 36px minmax(0, 1fr) 82px 38px; cursor: pointer; }
.cartRow.selected { border-color: rgba(54,214,107,.62); box-shadow: inset 0 0 0 1px rgba(54,214,107,.28); }
.cartRow input { padding: 8px; }
.supportSuggestions { padding: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.supportChoice { text-align: center; }
.buyCart { margin: 10px; justify-self: stretch; }
.compact { padding: 7px 10px; }
@media (max-width: 900px) {
  .storeGrid { grid-template-columns: 1fr; }
  .storeCard { max-height: calc(100vh - 20px); overflow: auto; }
}
@media (pointer: coarse) {
  .storeRow, .cartRow { min-height: 74px; }
  .storeToolbar input { min-height: 44px; }
}
.weaponBox { grid-template-columns: 96px 1fr auto; }

/* v6 — onglets Inventaire / Magasin + optimisation tablette magasin */
.hidden { display: none !important; }
.brandBlock { min-width: 280px; }
.tabs { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.tab {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1a22;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.tab.active {
  color: #aaffbd;
  border-color: rgba(54,214,107,.55);
  background: rgba(54,214,107,.14);
}
.tab b {
  margin-left: 8px;
  color: var(--green);
  background: rgba(54,214,107,.12);
  border-radius: 99px;
  padding: 3px 8px;
}
.storePage { padding: 16px; min-height: calc(100vh - 74px); }
.storePanel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,40,.94), rgba(7,16,21,.92));
  box-shadow: 0 15px 40px var(--shadow);
  overflow: hidden;
}
.storeHeader {
  min-height: 74px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
}
.storeHeader h2 { margin: 0; text-transform: uppercase; letter-spacing: .04em; }
.storeHeader p { margin: 4px 0 0; color: var(--muted); }
.storeHelp { padding: 10px 12px 0; }
.storeGrid { min-height: calc(100vh - 190px); padding: 14px; }
.storeList { gap: 10px; }
.storeRow {
  grid-template-columns: 48px minmax(0, 1fr) 60px;
  min-height: 82px;
  padding: 13px;
}
.storeRow strong, .cartRow strong { font-size: 15px; }
.storeAddBtn {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(54,214,107,.55);
  background: rgba(54,214,107,.12);
  color: #aaffbd;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.storeAddBtn:hover { background: rgba(54,214,107,.20); }
.cartRow { min-height: 76px; }
.weaponImage.dartImage { width: 112px; max-height: 62px; object-fit: contain; transform: translateY(2px); }
.weaponImage.aresImage { width: 112px; max-height: 64px; }
.weaponBox { grid-template-columns: 124px 1fr auto; }
@media (max-width: 1180px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 12px; }
  .tabs { order: 3; width: 100%; margin-left: 0; }
  .tab { flex: 1; }
  .topstats { margin-left: auto; }
}
@media (pointer: coarse) {
  .tab { min-height: 52px; }
  .storeAddBtn { width: 60px; height: 60px; }
  .storeRow { min-height: 92px; }
}

/* v7 — interface tablette sans infobulles, chargeur engagé explicite */
.topstats > div:first-child { border-left: 1px solid var(--line); }
.smallBtn {
  width: auto;
  min-width: 86px;
  height: 44px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}
.smallBtn.minus { font-size: 13px; }
.actions { flex-wrap: wrap; justify-content: flex-end; }
.card.engagedCard {
  border-color: rgba(54,214,107,.58);
  background: linear-gradient(90deg, rgba(54,214,107,.10), rgba(255,255,255,.035));
}
.weaponBoxDetailed {
  grid-template-columns: 132px minmax(0,1fr) 58px;
  align-items: stretch;
  padding-bottom: 8px;
}
.weaponText strong { display: block; font-size: 16px; }
.weaponText small { display: block; color: var(--muted); margin-top: 2px; }
.ammoBanner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.035);
  line-height: 1.25;
}
.ammoBanner b { display: block; font-size: 14px; }
.ammoBanner span { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.ammoBanner.engaged { border-color: rgba(54,214,107,.42); background: rgba(54,214,107,.08); }
.ammoBanner.empty { border-style: dashed; }
.magStripDetailed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: 8px;
}
.magButtonDetailed {
  min-height: 72px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #405260;
  background: rgba(255,255,255,.025);
  color: var(--text);
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  gap: 8px;
  align-items: center;
  text-align: left;
  cursor: pointer;
}
.magButtonDetailed.active {
  border-color: var(--green);
  background: rgba(54,214,107,.10);
  box-shadow: inset 0 0 0 1px rgba(54,214,107,.28);
}
.magButtonDetailed.empty { border-style: dashed; color: var(--muted); }
.verticalMag {
  width: 34px;
  height: 56px;
  border: 2px solid var(--green);
  border-radius: 6px;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  line-height: 1.05;
  color: #d9ffe4;
  background: rgba(54,214,107,.05);
}
.dartMagVisual { border-radius: 999px; width: 30px; }
.magMeta b { display: block; color: #aaffbd; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.magMeta small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  white-space: normal;
  line-height: 1.2;
}
.magNone { padding: 8px 0 10px; }
@media (pointer: coarse) {
  .smallBtn { min-width: 104px; height: 50px; font-size: 14px; }
  .magButtonDetailed { min-height: 86px; }
  .verticalMag { height: 64px; }
}

/* v8 — adaptation visuelle depuis Figma Make, cible tablette paysage */
:root {
  --bg: #070d19;
  --panel: #0c1525;
  --panel2: #0f1e30;
  --line: rgba(30, 70, 120, 0.45);
  --line-strong: rgba(75, 141, 255, 0.46);
  --text: #d8e7f5;
  --muted: #7d95ad;
  --muted2: #4a6888;
  --blue: #0088ff;
  --green: #00cc6a;
  --orange: #ff8a00;
  --red: #ff4f3a;
  --purple: #8d62ff;
  --shadow: rgba(0, 0, 0, .55);
  --radius: 8px;
  font-family: "Rajdhani", "Segoe UI", Roboto, Arial, sans-serif;
}
html { height: 100%; }
body {
  min-height: 100%;
  overflow: hidden;
  background:
    linear-gradient(rgba(0,136,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,136,255,.025) 1px, transparent 1px),
    radial-gradient(circle at 30% -10%, rgba(0,136,255,.18), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(0,204,106,.12), transparent 24%),
    #070d19;
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  color: var(--text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 20%, rgba(0,0,0,.18));
  z-index: -1;
}
button, input, select { font-family: inherit; }
button { touch-action: manipulation; }
.topbar {
  height: 78px;
  padding: 10px 18px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(7,13,25,.94);
  box-shadow: 0 16px 40px rgba(0,0,0,.34);
}
.iconButton {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  border-color: rgba(110,163,212,.35);
  background: rgba(15,32,64,.72);
  color: #b8cde4;
}
.iconButton:hover { border-color: rgba(0,204,106,.65); color: #d7ffe3; }
.brandBlock { min-width: 280px; }
.topbar h1 {
  color: #f3f8fd;
  letter-spacing: .055em;
  font-size: 26px;
  line-height: 1.05;
  text-shadow: 0 0 18px rgba(0,136,255,.10);
}
.topbar h1 span { color: #7d95ad; font-size: 16px; }
.topbar p { color: #5f7892; font-size: 12px; }
.tabs {
  align-self: stretch;
  display: flex;
  gap: 10px;
  align-items: center;
}
.tab {
  min-height: 46px;
  padding: 0 22px;
  border-radius: 8px;
  border-color: rgba(30,70,120,.7);
  background: rgba(15,32,64,.60);
  color: #6ea3d4;
  letter-spacing: .08em;
}
.tab.active {
  color: #071015;
  border-color: #00cc6a;
  background: linear-gradient(180deg, #38e989, #00cc6a);
  box-shadow: 0 0 0 1px rgba(0,204,106,.20), 0 0 22px rgba(0,204,106,.18);
}
.tab b {
  min-width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: #d7ffe3;
  background: rgba(0,204,106,.18);
}
.tab.active b { color: #071015; background: rgba(7,13,25,.15); }
.topstats { align-self: stretch; }
.topstats > div {
  min-width: 132px;
  padding: 10px 16px;
  border: 1px solid rgba(30,70,120,.45);
  border-radius: 8px;
  background: rgba(12,21,37,.72);
}
.topstats span { color: #6d849c; font-size: 11px; }
.topstats strong { color: #eaf5ff; font-size: 18px; }
.board {
  height: calc(100dvh - 78px);
  min-height: 0;
  overflow: hidden;
  grid-template-columns: minmax(310px, 1fr) minmax(310px, 1fr) minmax(360px, 1.04fr);
  gap: 14px;
  padding: 14px;
}
.column {
  min-height: 0;
  overflow-y: auto;
  border-radius: 10px;
  border-color: rgba(30,70,120,.50);
  background: linear-gradient(180deg, rgba(12,21,37,.96), rgba(7,13,25,.96));
  box-shadow: 0 18px 40px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035);
}
.column.raw { border-color: rgba(0,136,255,.44); }
.column.lab { border-color: rgba(0,204,106,.42); }
.column.carried { border-color: rgba(255,138,0,.50); }
.column::-webkit-scrollbar,
.storeList::-webkit-scrollbar,
.storePanel::-webkit-scrollbar { width: 10px; height: 10px; }
.column::-webkit-scrollbar-thumb,
.storeList::-webkit-scrollbar-thumb,
.storePanel::-webkit-scrollbar-thumb { background: rgba(110,163,212,.30); border-radius: 99px; border: 2px solid rgba(7,13,25,.80); }
.columnHead {
  min-height: 80px;
  padding: 14px 16px;
  background: linear-gradient(90deg, rgba(255,255,255,.035), transparent);
  position: sticky;
  top: 0;
  z-index: 2;
  backdrop-filter: blur(12px);
}
.columnHead h2 { font-size: 21px; letter-spacing: .07em; }
.columnHead p { color: #6f879e; font-size: 13px; }
.headIcon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
}
.headIcon.flask { background: rgba(0,136,255,.12); border-color: rgba(0,136,255,.76); }
.headIcon.home { background: rgba(0,204,106,.12); border-color: rgba(0,204,106,.72); }
.headIcon.bag { background: rgba(255,138,0,.12); border-color: rgba(255,138,0,.72); }
.headIcon.home::after { content: "◇"; font-size: 30px; }
.headIcon.bag::after { content: "▣"; font-size: 28px; }
.pill {
  height: 34px;
  border: 1px solid currentColor;
  background: transparent !important;
}
h3 {
  margin: 16px 18px 9px;
  font-size: 13px;
  letter-spacing: .11em;
  font-weight: 900;
}
.cards { padding: 0 14px 14px; gap: 9px; }
.card {
  min-height: 72px;
  grid-template-columns: 42px minmax(0,1fr) auto;
  padding: 11px 12px;
  border-radius: 8px;
  border-color: rgba(110,163,212,.18);
  background: rgba(15,32,64,.42);
  box-shadow: inset 3px 0 0 rgba(110,163,212,.10);
}
.raw .card { box-shadow: inset 3px 0 0 rgba(0,136,255,.48); }
.lab .card { box-shadow: inset 3px 0 0 rgba(0,204,106,.46); }
.carried .card { box-shadow: inset 3px 0 0 rgba(255,138,0,.55); }
.card[draggable="true"]:hover {
  border-color: rgba(0,204,106,.46);
  background: rgba(20,46,72,.56);
}
.card strong {
  color: #f1f7ff;
  font-size: 15px;
  letter-spacing: .015em;
}
.card small {
  color: #8098ad;
  font-size: 12px;
  line-height: 1.32;
}
.qty {
  min-width: 42px;
  height: 38px;
  border: 1px solid rgba(0,136,255,.30);
  border-radius: 8px;
  background: rgba(0,136,255,.10);
  color: #a8d3ff;
}
.lab .qty { border-color: rgba(0,204,106,.32); background: rgba(0,204,106,.10); color: #aaffcf; }
.carried .qty { border-color: rgba(255,138,0,.32); background: rgba(255,138,0,.10); color: #ffd39b; }
.miniIcon { color: #dbeeff; opacity: .95; }
.miniIcon.flask::before,
.miniIcon.cloud::before,
.miniIcon.capsule::before,
.miniIcon.patch::before,
.miniIcon.dart::before,
.miniIcon.round::before,
.miniIcon.emptyMag::before { border-color: currentColor; }
.miniIcon.dart::before { background: #dbeeff; }
.miniIcon.magazine::before,
.miniIcon.dartMag::before { border-color: #00cc6a; }
.smallBtn {
  min-width: 104px;
  height: 48px;
  border-radius: 8px;
  border-color: rgba(110,163,212,.30);
  background: rgba(15,32,64,.70);
  color: #cfe4f8;
  font-size: 13px;
}
.smallBtn.minus { color: #ffb861; border-color: rgba(255,138,0,.38); background: rgba(255,138,0,.08); }
.smallBtn.green { color: #aaffcf; border-color: rgba(0,204,106,.38); background: rgba(0,204,106,.08); }
.smallBtn.danger { color: #ff9b8c; border-color: rgba(255,79,58,.38); background: rgba(255,79,58,.08); }
.actions { gap: 8px; }
.hint {
  margin: 2px 14px 14px;
  border-radius: 8px;
  border-color: rgba(30,70,120,.46);
  background: rgba(15,32,64,.34);
  color: #6f879e;
}
.column.over {
  outline: 3px solid rgba(0,204,106,.58);
  outline-offset: -8px;
  background: linear-gradient(180deg, rgba(0,204,106,.08), rgba(7,13,25,.94));
}
.column.carried.over { outline-color: rgba(255,138,0,.62); }
.weaponPanel {
  margin: 14px;
  border-radius: 10px;
  border-color: rgba(255,138,0,.42);
  background: linear-gradient(180deg, rgba(255,138,0,.055), rgba(12,21,37,.58));
}
.weaponSubPanel + .weaponSubPanel { border-top-color: rgba(255,138,0,.28); }
.weaponBoxDetailed {
  grid-template-columns: 148px minmax(0, 1fr) 62px;
  gap: 12px;
  padding: 12px 14px;
}
.weaponImage.aresImage { width: 138px; max-height: 70px; }
.weaponImage.dartImage { width: 138px; max-height: 70px; }
.weaponText strong { color: #f6fbff; font-size: 17px; }
.weaponText small { color: #8ea6ba; }
.ammoBanner {
  border-radius: 8px;
  border-color: rgba(110,163,212,.18);
  background: rgba(7,13,25,.42);
}
.ammoBanner.engaged {
  border-color: rgba(0,204,106,.55);
  background: rgba(0,204,106,.095);
}
.engagedMag, .verticalMag {
  border-color: #00cc6a;
  background: rgba(0,204,106,.08);
  color: #d6ffe4;
  box-shadow: 0 0 18px rgba(0,204,106,.12);
}
.engagedMag {
  width: 56px;
  height: 86px;
  border-radius: 8px;
}
.magStripDetailed {
  padding: 0 14px 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.magButtonDetailed {
  min-height: 82px;
  border-color: rgba(110,163,212,.24);
  background: rgba(15,32,64,.36);
}
.magButtonDetailed.active {
  border-color: #00cc6a;
  background: rgba(0,204,106,.11);
}
.magMeta b { color: #9cffbb; }
.storePage {
  height: calc(100dvh - 78px);
  min-height: 0;
  padding: 14px;
  overflow: hidden;
}
.storePanel {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  border-color: rgba(30,70,120,.52);
  background: linear-gradient(180deg, rgba(12,21,37,.96), rgba(7,13,25,.96));
}
.storeHeader {
  min-height: 76px;
  background: linear-gradient(90deg, rgba(0,136,255,.06), transparent);
}
.storeHeader h2 { color: #f2f9ff; font-size: 22px; }
.storeHeader p { color: #7790a8; }
.storeGrid {
  flex: 1;
  min-height: 0;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
  padding: 14px;
}
.storeColumn {
  min-height: 0;
  border-radius: 10px;
  border-color: rgba(30,70,120,.48);
  background: rgba(12,21,37,.70);
}
.cartColumn { border-color: rgba(0,204,106,.34); }
.storeToolbar {
  min-height: 62px;
  padding: 11px 14px;
  background: rgba(15,32,64,.34);
}
.storeToolbar h3 { color: #8ec8ff; }
.cartColumn .storeToolbar h3 { color: #9cffbb; }
.storeToolbar input,
input, select {
  border-radius: 8px;
  border-color: rgba(30,70,120,.58);
  background: rgba(7,13,25,.76);
  color: #eaf5ff;
}
.storeRow, .cartRow {
  border-radius: 8px;
  border-color: rgba(110,163,212,.18);
  background: rgba(15,32,64,.38);
}
.storeRow {
  min-height: 90px;
  grid-template-columns: 48px minmax(0,1fr) 66px;
}
.storeRow.owned {
  border-color: rgba(0,204,106,.30);
  background: rgba(0,204,106,.055);
}
.storeRow strong, .cartRow strong { color: #f2f9ff; }
.storeRow small, .cartRow small { color: #8199af; }
.storeAddBtn {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  color: #071015;
  border-color: #00cc6a;
  background: linear-gradient(180deg, #38e989, #00cc6a);
}
.cartRow {
  grid-template-columns: 40px minmax(0,1fr) 92px 52px;
  min-height: 82px;
}
.cartRow.selected {
  border-color: rgba(0,204,106,.70);
  background: rgba(0,204,106,.09);
}
.choice, .supportChoice {
  border-radius: 8px;
  border-color: rgba(30,70,120,.55);
  background: rgba(15,32,64,.54);
  color: #d8e7f5;
  min-height: 54px;
}
.choice.selected, .supportChoice:hover {
  border-color: rgba(0,204,106,.72);
  background: rgba(0,204,106,.11);
}
.primary, .secondary {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: .035em;
}
.primary {
  background: linear-gradient(180deg, rgba(56,233,137,.95), rgba(0,204,106,.95));
  color: #071015;
  border-color: #00cc6a;
}
.secondary { border-color: rgba(110,163,212,.30); background: rgba(15,32,64,.46); }
dialog { width: min(680px, calc(100vw - 28px)); }
.dialogCard {
  border-radius: 10px;
  border-color: rgba(30,70,120,.58);
  background: linear-gradient(180deg, rgba(12,21,37,.98), rgba(7,13,25,.98));
}
.toast {
  border-radius: 8px;
  border-color: rgba(0,204,106,.42);
  background: rgba(12,21,37,.96);
  color: #d8e7f5;
}
@media (max-width: 1180px) {
  body { overflow: auto; }
  .board, .storePage { height: auto; min-height: calc(100dvh - 78px); overflow: visible; }
  .board { grid-template-columns: 1fr; }
  .column { overflow-y: visible; }
}
@media (pointer: coarse) {
  .card { min-height: 84px; }
  .storeRow { min-height: 96px; }
  .smallBtn { min-width: 112px; height: 52px; }
  .tab { min-height: 54px; }
  .choice { min-height: 66px; }
  .storeAddBtn { width: 64px; height: 64px; }
}

/* v9 — poubelle inventaire, groupes panier verrouillés, boutons texte, corrections tablette */
.inlineQty {
  flex: 0 0 auto;
  min-width: 42px;
  height: 40px;
}
.inlineQty.blueTone { border-color: rgba(0,136,255,.35); color: #a8d3ff; background: rgba(0,136,255,.10); }
.inlineQty.greenTone { border-color: rgba(0,204,106,.35); color: #aaffcf; background: rgba(0,204,106,.10); }
.inlineQty.orangeTone { border-color: rgba(255,138,0,.35); color: #ffd39b; background: rgba(255,138,0,.10); }
.actions {
  max-width: 360px;
}
.cartRow {
  grid-template-columns: 40px minmax(0,1fr) minmax(70px, 86px) 44px;
  overflow: hidden;
}
.cartRow input {
  width: 100%;
  min-width: 0;
  text-align: center;
}
.cartRemoveBtn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255,79,58,.40);
  background: rgba(255,79,58,.08);
  color: #ff9b8c;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.cartRemoveBtn:hover { background: rgba(255,79,58,.15); }
.cartRow.locked {
  border-color: rgba(0,204,106,.56);
  background: linear-gradient(90deg, rgba(0,204,106,.11), rgba(15,32,64,.38));
}
.cartRow.locked strong::after {
  content: "  VERROUILLÉ";
  color: #9cffbb;
  font-size: 11px;
  letter-spacing: .06em;
}
.weaponImage.dartImage {
  transform: scaleX(-1);
}
@media (pointer: coarse) {
  .cartRemoveBtn { width: 46px; height: 46px; min-width: 46px; }
  .cartRow { grid-template-columns: 40px minmax(0,1fr) minmax(78px, 92px) 50px; }
}


/* v10 — poubelle par drop, container portable, panier par lots libres/verrouillés */
.trashZone {
  margin: 8px 14px 16px;
  min-height: 112px;
  border: 2px dashed rgba(255,79,58,.45);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,79,58,.07), rgba(15,32,64,.32));
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  color: #ffc4bd;
}
.trashZone strong {
  display: block;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #ff9b8c;
}
.trashZone span {
  display: block;
  max-width: 420px;
  color: #aebccc;
  font-size: 13px;
  line-height: 1.35;
}
.trashZone.over {
  border-color: #ff4f3a;
  background: linear-gradient(180deg, rgba(255,79,58,.18), rgba(15,32,64,.42));
  box-shadow: inset 0 0 0 1px rgba(255,79,58,.25), 0 0 24px rgba(255,79,58,.12);
}
.carried .trashZone {
  box-shadow: inset 3px 0 0 rgba(255,79,58,.55);
}
@media (pointer: coarse) {
  .trashZone { min-height: 132px; }
  .trashZone strong { font-size: 20px; }
  .trashZone span { font-size: 14px; }
}

/* v11 — troisième colonne en deux blocs tablette et suppression du poids */
.topstats {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.topstats > div {
  display: none !important;
}
.splitCarriedColumn {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: minmax(0, 4fr) minmax(130px, 1fr);
  gap: 14px;
}
.carriedMain {
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(255,159,26,.45);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,40,.94), rgba(7,16,21,.92));
  box-shadow: 0 15px 40px var(--shadow);
  display: flex;
  flex-direction: column;
}
.carriedMain.over {
  outline: 2px dashed rgba(255,159,26,.65);
  outline-offset: -8px;
  background: linear-gradient(180deg, rgba(255,159,26,.10), rgba(7,16,21,.92));
}
.trashBlock {
  margin: 0 !important;
  min-height: 0 !important;
  height: 100%;
  border-radius: var(--radius) !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 16px !important;
  background: linear-gradient(180deg, rgba(255,79,58,.10), rgba(22,8,10,.72)) !important;
  border: 1px dashed rgba(255,79,58,.65) !important;
  box-shadow: inset 3px 0 0 rgba(255,79,58,.55), 0 15px 40px rgba(0,0,0,.28) !important;
}
.trashBlock strong {
  font-size: 20px !important;
  margin-bottom: 6px;
}
.trashBlock span {
  font-size: 13px !important;
  max-width: 360px;
}
.trashBlock.over {
  background: linear-gradient(180deg, rgba(255,79,58,.22), rgba(22,8,10,.78)) !important;
  border-color: #ff4f3a !important;
}
@media (pointer: coarse) {
  .splitCarriedColumn { grid-template-rows: minmax(0, 4fr) minmax(150px, 1fr); }
  .trashBlock strong { font-size: 22px !important; }
  .trashBlock span { font-size: 15px !important; }
}


/* v12 — panier tablette : suppression large à gauche, quantité +/- et achat avec total */
.cartRow {
  grid-template-columns: 64px 40px minmax(0,1fr) minmax(156px, 176px);
  align-items: center;
  gap: 10px;
}
.cartQtyControls {
  display: grid;
  grid-template-columns: 40px minmax(64px, 78px) 40px;
  gap: 8px;
  align-items: center;
  justify-self: end;
}
.cartQtyControls input {
  width: 100%;
  min-width: 0;
  text-align: center;
  padding: 10px 6px;
}
.cartQtyBtn {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(110,163,212,.30);
  background: rgba(15,32,64,.46);
  color: #d9eaff;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}
.cartQtyBtn:hover { background: rgba(32,63,121,.42); }
.cartRemoveBtn {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.1;
  font-weight: 800;
}
.buyCart {
  margin: 10px;
  justify-self: stretch;
  min-height: 56px;
}
@media (pointer: coarse) {
  .cartRow {
    grid-template-columns: 72px 42px minmax(0,1fr) minmax(192px, 220px);
    min-height: 92px;
  }
  .cartRemoveBtn, .storeAddBtn { width: 64px; height: 64px; min-width: 64px; }
  .cartQtyControls { grid-template-columns: 52px minmax(72px, 88px) 52px; gap: 10px; }
  .cartQtyBtn { width: 52px; height: 52px; min-width: 52px; font-size: 26px; }
  .cartQtyControls input { min-height: 52px; font-size: 18px; }
}


/* v13 — barre de progression Figma-like pour le chargeur engagé */
.magProgressMeta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 6px;
  font-family: 'Share Tech Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.magProgressMeta strong {
  color: #e9fff1;
  font-size: 15px;
  line-height: 1;
}
.magProgressMeta em {
  color: #86a3bd;
  font-size: 12px;
  font-style: normal;
}
.magProgress {
  height: 10px;
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(110,163,212,.22);
  background: linear-gradient(90deg, rgba(30,70,120,.34), rgba(7,13,25,.62));
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.20);
}
.magProgress i {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  transition: width .18s ease;
}
.magProgress.ok i {
  background: linear-gradient(90deg, #0fbf66, #54f089);
  box-shadow: 0 0 14px rgba(0,204,106,.28);
}
.magProgress.warn i {
  background: linear-gradient(90deg, #d98a13, #ffc857);
  box-shadow: 0 0 14px rgba(255,170,0,.24);
}
.magProgress.danger i {
  background: linear-gradient(90deg, #b83224, #ff634f);
  box-shadow: 0 0 14px rgba(255,79,58,.26);
}
@media (pointer: coarse) {
  .magProgress { height: 12px; }
  .magProgressMeta strong { font-size: 17px; }
  .magProgressMeta em { font-size: 14px; }
}


/* v14 — jauges verticales discrètes pour les chargeurs, y compris en liste */
.magCard { grid-template-columns: 54px minmax(0,1fr) auto; }
.verticalMagMeter {
  position: relative;
  width: 32px;
  height: 58px;
  border: 2px solid rgba(72, 233, 138, .9);
  border-radius: 7px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(54,214,107,.06);
  color: #ddffea;
  text-align: center;
  line-height: 1.02;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
}
.verticalMagMeter.dart { border-radius: 999px; width: 28px; }
.verticalMagMeter.compact { width: 24px; height: 46px; border-width: 2px; }
.verticalMagMeter .meterFill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0;
  background: linear-gradient(180deg, rgba(73,255,157,.82) 0%, rgba(18,190,94,.85) 100%);
  box-shadow: 0 0 14px rgba(54,214,107,.15);
}
.verticalMagMeter.warn { border-color: #ffb020; color: #fff1ca; background: rgba(255,176,32,.08); }
.verticalMagMeter.warn .meterFill { background: linear-gradient(180deg, rgba(255,203,102,.9) 0%, rgba(255,160,22,.85) 100%); }
.verticalMagMeter.danger { border-color: #ff6767; color: #ffe3e3; background: rgba(255,103,103,.08); }
.verticalMagMeter.danger .meterFill { background: linear-gradient(180deg, rgba(255,144,144,.92) 0%, rgba(233,71,71,.88) 100%); }
.verticalMagMeter .meterValue {
  position: relative;
  z-index: 1;
  font-size: 11px;
  text-shadow: 0 1px 1px rgba(0,0,0,.8);
}
.verticalMagMeter.compact .meterValue { font-size: 9px; }
.magButtonDetailed .verticalMagMeter { height: 64px; width: 34px; }
.magButtonDetailed .verticalMagMeter.dart { width: 30px; }
@media (pointer: coarse) {
  .magCard { grid-template-columns: 58px minmax(0,1fr) auto; }
  .verticalMagMeter.compact { width: 26px; height: 50px; }
  .verticalMagMeter.compact .meterValue { font-size: 10px; }
  .magButtonDetailed .verticalMagMeter { height: 70px; width: 36px; }
  .magButtonDetailed .verticalMagMeter.dart { width: 32px; }
}


/* v15 — champs numériques remplacés par contrôles tactiles [-] [valeur] [+] */
.numberStepper,
.cartQtyControls {
  display: grid;
  grid-template-columns: 56px 72px 56px;
  gap: 10px;
  align-items: center;
}
.dialogCard .numberStepper {
  margin: 4px 0 14px;
}
.numberStepBtn,
.cartQtyBtn {
  width: 56px;
  height: 56px;
  min-width: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(110,163,212,.34);
  background: rgba(15,32,64,.56);
  color: #e8f4ff;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.numberStepBtn:hover,
.cartQtyBtn:hover {
  background: rgba(32,63,121,.52);
}
.numberDisplay,
.cartQtyDisplay {
  min-width: 72px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(54,214,107,.34);
  background: linear-gradient(180deg, rgba(10,29,44,.92), rgba(8,17,31,.92));
  color: #effcff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  user-select: none;
}
.cartQtyControls {
  justify-self: end;
  grid-template-columns: 48px 68px 48px;
  gap: 8px;
}
.cartQtyControls .cartQtyBtn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  font-size: 24px;
}
.cartQtyDisplay {
  min-width: 68px;
  height: 48px;
  font-size: 18px;
}
@media (pointer: coarse) {
  .numberStepper {
    grid-template-columns: 64px 84px 64px;
    gap: 12px;
  }
  .numberStepBtn {
    width: 64px;
    height: 64px;
    min-width: 64px;
    font-size: 32px;
  }
  .numberDisplay {
    min-width: 84px;
    height: 64px;
    font-size: 22px;
  }
  .cartQtyControls {
    grid-template-columns: 56px 78px 56px;
    gap: 10px;
  }
  .cartQtyControls .cartQtyBtn {
    width: 56px;
    height: 56px;
    min-width: 56px;
    font-size: 28px;
  }
  .cartQtyDisplay {
    min-width: 78px;
    height: 56px;
    font-size: 20px;
  }
}

/* v16 — bouton Tirer à la place du compteur vertical du chargeur engagé */
.weaponBoxDetailed {
  grid-template-columns: 132px minmax(0,1fr) 96px;
  align-items: stretch;
}
.weaponFireBtn {
  width: 96px;
  min-height: 96px;
  align-self: stretch;
  border: 2px solid rgba(255,138,0,.65);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,138,0,.18), rgba(255,138,0,.055));
  color: #ffd49a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 0 18px rgba(255,138,0,.08);
}
.weaponFireBtn b {
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.weaponFireBtn span {
  font-size: 16px;
  font-weight: 900;
  color: #fff0d9;
}
.weaponFireBtn:not(:disabled):hover,
.weaponFireBtn:not(:disabled):focus-visible {
  border-color: rgba(255,176,64,.95);
  background: linear-gradient(180deg, rgba(255,138,0,.28), rgba(255,138,0,.10));
}
.weaponFireBtn:disabled {
  cursor: not-allowed;
  opacity: .55;
  border-color: rgba(125,149,173,.32);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  box-shadow: none;
}
.weaponFireBtn:disabled span { color: var(--muted); }
@media (pointer: coarse) {
  .weaponBoxDetailed {
    grid-template-columns: 132px minmax(0,1fr) 112px;
  }
  .weaponFireBtn {
    width: 112px;
    min-height: 108px;
  }
  .weaponFireBtn b { font-size: 20px; }
  .weaponFireBtn span { font-size: 18px; }
}
@media (max-width: 900px) {
  .weaponBoxDetailed {
    grid-template-columns: 110px minmax(0,1fr) 96px;
  }
}


/* v17 — panier : liste flexible, bouton achat fixé en bas */
.cartColumn {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.cartColumn .storeHelp {
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(110,163,212,.13);
  padding-bottom: 10px;
}
.cartColumn #cartList {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  border-bottom: 1px solid rgba(110,163,212,.13);
}
.emptyCartNotice {
  margin: 0;
  align-self: start;
}
.cartColumn #supportSuggestions {
  flex: 0 0 auto;
  max-height: 240px;
  overflow: auto;
}
.cartColumn #supportSuggestions:empty {
  display: none;
}
.buyCart {
  flex: 0 0 auto;
  width: calc(100% - 20px);
  margin: 10px;
  min-height: 58px;
}
.buyCart:disabled {
  cursor: not-allowed;
  color: rgba(218,232,242,.62);
  border-color: rgba(110,163,212,.22);
  background: linear-gradient(180deg, rgba(54,214,107,.34), rgba(54,214,107,.18));
  box-shadow: none;
  opacity: .72;
}
@media (pointer: coarse) {
  .buyCart { min-height: 64px; }
  .cartColumn #supportSuggestions { max-height: 280px; }
}


/* v19 — action d'achat vers stock optimal */
.storeHeaderActions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.optimalStockBtn {
  border-color: rgba(0,204,106,.42);
  color: #b9ffd0;
  background: rgba(0,204,106,.09);
}
.optimalStockBtn:disabled {
  cursor: not-allowed;
  color: rgba(218,232,242,.60);
  border-color: rgba(110,163,212,.22);
  background: rgba(110,163,212,.06);
}
@media (pointer: coarse) {
  .storeHeaderActions .compact { min-height: 52px; }
}


/* v21 — onglet Mémo équipement */
.memoPage {
  padding: 0 18px 18px;
}

.memoPanel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15,30,40,.94), rgba(7,16,21,.92));
  box-shadow: 0 15px 40px var(--shadow);
  min-height: calc(100vh - 118px);
  padding: 18px;
}

.memoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.memoCard {
  border: 1px solid rgba(96, 221, 255, .22);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}

.memoCard.highRisk {
  border-color: rgba(255,176,32,.32);
}

.memoCard h3 {
  margin: 0 0 8px;
  color: var(--text);
}

.memoTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.memoTable th,
.memoTable td {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 8px;
  vertical-align: top;
}

.memoTable th {
  width: 34%;
  text-align: left;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.memoTable td {
  color: var(--text);
  font-weight: 700;
}

.valiseMemo {
  margin-top: 14px;
}

@media (max-width: 980px) {
  .memoGrid { grid-template-columns: 1fr; }
}

/* v23 — évite le chevauchement entre sections dans les colonnes scrollables */
.column > h3,
.column > .cards,
.carriedMain > h3,
.carriedMain > .cards,
.weaponPanel {
  flex: 0 0 auto;
}

.column > .cards,
.carriedMain > .cards {
  min-height: auto;
}


/* v24 — boutons de presets opérationnels */
.headPresetActions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.columnHead .headPresetActions + .pill { margin-left: 0; }
.presetBtn {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(12,24,32,.86);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.presetBtn.green { border-color: rgba(54,214,107,.62); color: #9effb7; background: rgba(54,214,107,.10); }
.presetBtn.orange { border-color: rgba(255,159,26,.62); color: #ffc269; background: rgba(255,159,26,.10); }
.presetBtn.strong { background: rgba(255,159,26,.18); }
.presetBtn:hover { filter: brightness(1.16); }
.toast.warning { border-color: rgba(255,176,32,.85); color: #fff1ca; }
.toast.error { border-color: rgba(255,79,79,.85); color: #ffd4d4; }
@media (max-width: 1400px) {
  .headPresetActions { gap: 6px; }
  .presetBtn { min-height: 36px; padding: 0 10px; font-size: 11px; }
}
@media (pointer: coarse) {
  .presetBtn { min-height: 48px; padding: 0 18px; }
}


/* v26 — catégorisation du magasin dans le même ordre que l'inventaire */
.storeCategoryBlock {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.storeCategoryBlock + .storeCategoryBlock {
  margin-top: 8px;
}
.storeCategoryTitle {
  margin: 4px 2px 2px;
  padding: 0 0 5px;
  color: #9cffbb;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  border-bottom: 1px solid rgba(110,163,212,.18);
}
.storeCategoryList {
  display: grid;
  gap: 10px;
  min-width: 0;
}

/* v29 — mode tablette paysage compact, cible viewport ~1163×600
   Objectif : conserver les 3 colonnes utilisables au lieu de basculer en pile verticale. */
@media (min-width: 1050px) and (max-width: 1280px) and (max-height: 760px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .topbar {
    height: 58px;
    min-height: 58px;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
  }

  .brandBlock {
    min-width: 220px;
    max-width: 250px;
    flex: 0 0 250px;
  }

  .topbar h1 {
    font-size: 20px;
    line-height: 1;
  }

  .topbar h1 span {
    font-size: 12px;
  }

  .topbar p {
    margin-top: 2px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tabs {
    order: initial;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
    align-self: center;
    gap: 8px;
    margin-left: 0;
  }

  .tab {
    flex: 0 1 132px;
    min-height: 42px;
    padding: 0 12px;
    font-size: 12px;
    letter-spacing: .08em;
  }

  .tab b {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
  }

  .topstats {
    flex: 0 0 auto;
    align-self: center;
    margin-left: 0;
  }

  .iconButton {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }

  .board {
    height: calc(100dvh - 58px);
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(300px, .96fr) minmax(330px, 1fr) minmax(390px, 1.08fr);
    gap: 8px;
    padding: 8px;
  }

  .column,
  .carriedMain {
    min-height: 0;
    overflow-y: auto;
    border-radius: 8px;
  }

  .splitCarriedColumn {
    min-height: 0;
    overflow: hidden !important;
    grid-template-rows: minmax(0, 1fr) 94px;
    gap: 8px;
  }

  .columnHead {
    min-height: 54px;
    padding: 8px 10px;
    gap: 8px;
  }

  .headIcon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
  }

  .headIcon.flask::after {
    width: 13px;
    height: 17px;
    border-width: 2px;
    border-top-width: 5px;
  }

  .headIcon.home::after,
  .headIcon.bag::after {
    font-size: 20px;
  }

  .columnHead h2 {
    font-size: 15px;
    line-height: 1.05;
    letter-spacing: .06em;
  }

  .columnHead p {
    margin-top: 2px;
    font-size: 10px;
    line-height: 1.15;
  }

  .pill {
    min-width: 28px;
    height: 28px;
    padding: 0 7px;
    font-size: 12px;
  }

  .headPresetActions {
    gap: 5px;
  }

  .presetBtn,
  .presetBtn.green,
  .presetBtn.orange {
    min-height: 32px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 9px;
    letter-spacing: .05em;
  }

  h3 {
    margin: 10px 10px 6px;
    font-size: 10px;
    letter-spacing: .10em;
  }

  .cards {
    padding: 0 8px 8px;
    gap: 6px;
  }

  .card,
  .magCard {
    min-height: 52px;
    grid-template-columns: 34px minmax(0,1fr) auto;
    gap: 7px;
    padding: 7px 8px;
    border-radius: 7px;
  }

  .card strong {
    font-size: 12px;
    line-height: 1.08;
  }

  .card small {
    margin-top: 2px;
    font-size: 9px;
    line-height: 1.18;
  }

  .miniIcon {
    width: 28px;
    height: 28px;
  }

  .miniIcon.flask::before { width: 13px; height: 19px; border-width: 2px; border-top-width: 5px; }
  .miniIcon.cloud::before { width: 24px; height: 18px; border-width: 2px; }
  .miniIcon.round::before { width: 24px; height: 24px; }
  .miniIcon.capsule::before { width: 25px; height: 12px; }
  .miniIcon.patch::before { width: 23px; height: 23px; }
  .miniIcon.dart::before { height: 24px; }

  .qty,
  .inlineQty {
    min-width: 34px;
    height: 30px;
    padding: 0 6px;
    border-radius: 7px;
    font-size: 11px;
  }

  .verticalMagMeter {
    width: 26px;
    height: 46px;
    border-radius: 6px;
  }

  .verticalMagMeter.dart {
    width: 24px;
  }

  .verticalMagMeter .meterValue {
    font-size: 9px;
  }

  .smallBtn {
    min-width: 70px;
    height: 34px;
    padding: 0 8px;
    border-radius: 7px;
    font-size: 10px;
  }

  .actions {
    gap: 5px;
    max-width: 220px;
  }

  .hint {
    margin: 0 8px 8px;
    padding: 8px;
    font-size: 10px;
    line-height: 1.25;
  }

  .weaponPanel {
    margin: 8px;
    border-radius: 8px;
  }

  .weaponPanel h3 {
    margin-top: 8px;
  }

  .weaponBoxDetailed {
    grid-template-columns: 76px minmax(0,1fr) 76px;
    gap: 8px;
    padding: 8px;
  }

  .weaponImage.aresImage,
  .weaponImage.dartImage {
    width: 72px;
    max-height: 42px;
  }

  .weaponText strong {
    font-size: 12px;
  }

  .weaponText small {
    font-size: 9px;
    line-height: 1.15;
  }

  .ammoBanner {
    margin-top: 6px;
    padding: 7px 8px;
    border-radius: 7px;
  }

  .ammoBanner b {
    font-size: 10px;
  }

  .ammoBanner span {
    font-size: 9px;
    line-height: 1.15;
  }

  .magProgressMeta {
    margin-top: 6px;
    margin-bottom: 4px;
  }

  .magProgressMeta strong {
    font-size: 11px;
  }

  .magProgressMeta em {
    font-size: 9px;
  }

  .magProgress {
    height: 7px;
  }

  .weaponFireBtn {
    width: 76px;
    min-height: 74px;
    border-radius: 8px;
  }

  .weaponFireBtn b {
    font-size: 13px;
  }

  .weaponFireBtn span {
    font-size: 12px;
  }

  .magStripDetailed {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 6px;
    padding: 0 8px 8px;
  }

  .magButtonDetailed {
    min-height: 62px;
    grid-template-columns: 34px minmax(0,1fr);
    gap: 6px;
    padding: 6px;
    border-radius: 7px;
  }

  .magButtonDetailed .verticalMagMeter {
    width: 26px;
    height: 50px;
  }

  .magButtonDetailed .verticalMagMeter.dart {
    width: 24px;
  }

  .magMeta b {
    font-size: 9px;
  }

  .magMeta small {
    font-size: 8px;
    line-height: 1.12;
  }

  .trashBlock,
  .trashZone {
    min-height: 0 !important;
    padding: 8px !important;
    border-radius: 8px !important;
  }

  .trashBlock strong,
  .trashZone strong {
    font-size: 13px !important;
    margin-bottom: 3px;
  }

  .trashBlock span,
  .trashZone span {
    font-size: 9px !important;
    line-height: 1.2;
    max-width: 300px;
  }

  .storePage,
  .memoPage {
    height: calc(100dvh - 58px);
    min-height: 0;
    overflow: hidden;
    padding: 8px;
  }

  .storePanel,
  .memoPanel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .storeHeader {
    min-height: 54px;
    padding: 8px 10px;
  }

  .storeHeader h2 {
    font-size: 16px;
  }

  .storeHeader p {
    font-size: 10px;
    margin-top: 2px;
  }

  .storeHeaderActions {
    gap: 6px;
  }

  .storeHeaderActions .compact,
  .optimalStockBtn,
  .secondary.compact {
    min-height: 34px;
    padding: 0 9px;
    font-size: 10px;
  }

  .storeGrid {
    height: calc(100% - 54px);
    min-height: 0;
    grid-template-columns: minmax(0,1.12fr) minmax(330px,.88fr);
    gap: 8px;
    padding: 8px;
  }

  .storeToolbar {
    min-height: 44px;
    padding: 7px 9px;
  }

  .storeToolbar h3 {
    margin: 0;
    font-size: 10px;
  }

  .storeToolbar input {
    max-width: 190px;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .storeList {
    padding: 8px;
    gap: 6px;
  }

  .storeRow {
    min-height: 58px;
    grid-template-columns: 34px minmax(0,1fr) 44px;
    gap: 7px;
    padding: 7px;
  }

  .storeRow strong,
  .cartRow strong {
    font-size: 11px;
  }

  .storeRow small,
  .cartRow small {
    font-size: 9px;
    line-height: 1.15;
  }

  .storeAddBtn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 8px;
    font-size: 22px;
  }

  .storeCategoryTitle {
    font-size: 10px;
    padding-bottom: 3px;
    margin-top: 2px;
  }

  .cartColumn .storeHelp {
    padding: 6px 8px;
    font-size: 9px;
    line-height: 1.18;
  }

  .cartRow {
    min-height: 58px;
    grid-template-columns: 48px 28px minmax(0,1fr) minmax(120px,138px);
    gap: 6px;
    padding: 6px;
  }

  .cartRemoveBtn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    font-size: 10px;
    border-radius: 8px;
  }

  .cartQtyControls {
    grid-template-columns: 36px 48px 36px;
    gap: 5px;
  }

  .cartQtyControls .cartQtyBtn,
  .cartQtyBtn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 20px;
    border-radius: 8px;
  }

  .cartQtyDisplay {
    min-width: 48px;
    height: 36px;
    font-size: 14px;
    border-radius: 8px;
  }

  .supportSuggestions {
    padding: 6px;
    gap: 5px;
  }

  .buyCart {
    min-height: 42px;
    margin: 6px;
    width: calc(100% - 12px);
    font-size: 12px;
  }

  .memoPanel {
    padding: 10px;
    overflow: auto;
  }

  .memoGrid {
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 8px;
    margin-top: 8px;
  }

  .memoCard {
    padding: 10px;
    border-radius: 8px;
  }

  .memoCard h3 {
    font-size: 12px;
    margin-bottom: 5px;
  }

  .memoCard p,
  .memoTable td,
  .memoTable th {
    font-size: 10px;
    line-height: 1.2;
  }

  .memoTable {
    margin-top: 6px;
  }

  .memoTable th,
  .memoTable td {
    padding: 6px 5px;
  }
}

/* v30 — cure d'amaigrissement inventaire tablette */
#inventoryPage .columnHead p {
  display: none !important;
}

.card.hasInfo {
  cursor: pointer;
}
.card.hasInfo[draggable="true"] {
  cursor: grab;
}
.card.hasInfo:focus-visible {
  outline: 2px solid rgba(95,161,255,.78);
  outline-offset: 2px;
}
.card.hasInfo > div:nth-child(2) {
  position: relative;
  padding-right: 18px;
}
.card.hasInfo > div:nth-child(2)::after {
  content: "i";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 1px solid rgba(142,166,186,.7);
  color: #8ea6ba;
  font-size: 9px;
  line-height: 12px;
  text-align: center;
  font-weight: 800;
}
.infoDialogCard {
  max-width: 560px;
}
.infoDetails {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.45;
}

.splitCarriedColumn {
  grid-template-rows: minmax(0, 1fr) 70px !important;
}
.trashBlock,
.trashZone {
  padding: 8px !important;
}
.trashBlock strong,
.trashZone strong {
  margin-bottom: 2px !important;
}
.trashBlock span,
.trashZone span {
  font-size: 11px !important;
  line-height: 1.15 !important;
}

@media (pointer: coarse) {
  .splitCarriedColumn {
    grid-template-rows: minmax(0, 1fr) 78px !important;
  }
}

@media (min-width: 1050px) and (max-width: 1280px) and (max-height: 760px) {
  .splitCarriedColumn {
    grid-template-rows: minmax(0, 1fr) 48px !important;
  }
  .trashBlock span,
  .trashZone span {
    display: none !important;
  }
  .trashBlock strong,
  .trashZone strong {
    margin: 0 !important;
    font-size: 12px !important;
  }
  .card {
    min-height: 46px;
  }
}

/* v31 — ajustements tablette : descriptions en popup, entêtes et typographie plus compacts */
#inventoryPage .columnHead {
  min-height: 67px;
  padding-top: 12px;
  padding-bottom: 12px;
}
#inventoryPage .columnHead h2 {
  font-size: 20px;
}
#inventoryPage h3 {
  font-size: 12px;
}
#inventoryPage .card strong,
#inventoryPage .storeRow strong,
#inventoryPage .cartRow strong {
  font-size: 14px;
}
#inventoryPage .qty,
#inventoryPage .inlineQty,
#inventoryPage .smallBtn,
#inventoryPage .ammoBanner b,
#inventoryPage .magProgressMeta strong,
#inventoryPage .weaponFireBtn span {
  font-size: 12px;
}
#inventoryPage .weaponText strong {
  font-size: 16px;
}
#inventoryPage .ammoBanner span,
#inventoryPage .magProgressMeta em,
#inventoryPage .magMeta b,
#inventoryPage .trashBlock span,
#inventoryPage .trashZone span {
  font-size: 10px !important;
}
.card.hasInfo > div:nth-child(2)::after {
  font-size: 8px;
}
.infoDetails {
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 1050px) and (max-width: 1280px) and (max-height: 760px) {
  #inventoryPage .columnHead {
    min-height: 49px;
    padding: 7px 9px;
  }
  #inventoryPage .columnHead h2 {
    font-size: 14px;
  }
  #inventoryPage .pill {
    font-size: 11px;
  }
  #inventoryPage h3 {
    font-size: 9px;
  }
  #inventoryPage .card,
  #inventoryPage .magCard {
    min-height: 45px;
  }
  #inventoryPage .card strong {
    font-size: 11px;
  }
  #inventoryPage .qty,
  #inventoryPage .inlineQty,
  #inventoryPage .smallBtn,
  #inventoryPage .ammoBanner b,
  #inventoryPage .magProgressMeta strong,
  #inventoryPage .weaponFireBtn span {
    font-size: 9px;
  }
  #inventoryPage .weaponText strong,
  #inventoryPage .weaponFireBtn b {
    font-size: 12px;
  }
  #inventoryPage .ammoBanner span,
  #inventoryPage .magProgressMeta em,
  #inventoryPage .magMeta b,
  #inventoryPage .trashBlock span,
  #inventoryPage .trashZone span {
    font-size: 8px !important;
  }
  .card.hasInfo > div:nth-child(2)::after {
    width: 12px;
    height: 12px;
    line-height: 11px;
    font-size: 7px;
  }
}

/* v32 — densification tablette paysage 1163×600 : header et panier plus compacts */
.cartColumn #supportSuggestions {
  max-height: 170px;
}
.cartColumn #supportSuggestions > p.muted {
  margin: 0 0 4px;
  line-height: 1.2;
}
.supportChoice {
  min-height: 40px;
  padding: 7px 10px;
  font-size: 13px;
  line-height: 1.2;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (min-width: 1050px) and (max-width: 1280px) and (max-height: 760px) {
  .topbar {
    height: 42px !important;
    min-height: 42px !important;
    padding: 4px 10px !important;
    gap: 10px !important;
    align-items: center !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.30);
  }

  .brandBlock {
    min-width: 225px !important;
    max-width: 225px !important;
    flex: 0 0 225px !important;
  }

  .topbar h1 {
    font-size: 17px !important;
    line-height: 1 !important;
    letter-spacing: .045em !important;
  }

  .topbar h1 span {
    font-size: 10px !important;
  }

  .topbar p {
    display: none !important;
  }

  .tabs {
    flex: 0 0 auto !important;
    align-self: center !important;
    gap: 7px !important;
    height: 34px !important;
  }

  .tab {
    flex: 0 0 auto !important;
    min-width: 118px !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 10px !important;
    border-radius: 7px !important;
    font-size: 10px !important;
    letter-spacing: .075em !important;
  }

  .tab b {
    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;
    font-size: 9px !important;
    margin-left: 4px !important;
  }

  .topstats,
  .iconButton {
    display: none !important;
  }

  .board,
  .storePage,
  .memoPage {
    height: calc(100dvh - 42px) !important;
    min-height: 0 !important;
    padding: 6px !important;
  }

  .storePanel,
  .memoPanel {
    border-radius: 7px !important;
  }

  .storeHeader {
    min-height: 40px !important;
    padding: 5px 9px !important;
    gap: 8px !important;
  }

  .storeHeader h2 {
    font-size: 13px !important;
    line-height: 1.05 !important;
  }

  .storeHeader p {
    display: none !important;
  }

  .storeHeaderActions {
    gap: 5px !important;
    max-width: none !important;
  }

  .storeHeaderActions .compact,
  .optimalStockBtn,
  .secondary.compact {
    min-height: 30px !important;
    height: 30px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  .storeGrid {
    height: calc(100% - 40px) !important;
    min-height: 0 !important;
    gap: 7px !important;
    padding: 7px !important;
  }

  .storeToolbar {
    min-height: 36px !important;
    padding: 5px 8px !important;
  }

  .storeToolbar h3,
  .storeCategoryTitle {
    font-size: 9px !important;
  }

  .storeToolbar input {
    min-height: 28px !important;
    max-width: 170px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  .storeList {
    padding: 6px !important;
    gap: 5px !important;
  }

  .storeCategoryList {
    gap: 5px !important;
  }

  .storeRow,
  .cartRow {
    min-height: 48px !important;
    padding: 5px !important;
    gap: 6px !important;
    border-radius: 7px !important;
  }

  .storeRow {
    grid-template-columns: 30px minmax(0,1fr) 38px !important;
  }

  .storeRow strong,
  .cartRow strong {
    font-size: 10px !important;
    line-height: 1.12 !important;
  }

  .storeRow small,
  .cartRow small {
    font-size: 8px !important;
    line-height: 1.12 !important;
    margin-top: 1px !important;
  }

  .storeAddBtn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 7px !important;
    font-size: 18px !important;
  }

  .miniIcon {
    width: 28px !important;
    height: 28px !important;
  }

  .cartColumn #supportSuggestions {
    max-height: 105px !important;
    padding: 4px !important;
    gap: 4px !important;
  }

  .cartColumn #supportSuggestions > p.muted {
    margin: 0 0 2px !important;
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  .supportChoice {
    min-height: 30px !important;
    padding: 4px 7px !important;
    border-radius: 6px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  .buyCart {
    min-height: 36px !important;
    height: 36px !important;
    margin: 5px !important;
    width: calc(100% - 10px) !important;
    font-size: 11px !important;
    border-radius: 7px !important;
  }

  .cartQtyControls {
    grid-template-columns: 32px 42px 32px !important;
    gap: 4px !important;
  }

  .cartQtyControls .cartQtyBtn,
  .cartQtyBtn {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 7px !important;
    font-size: 17px !important;
  }

  .cartQtyDisplay {
    min-width: 42px !important;
    height: 32px !important;
    font-size: 12px !important;
    border-radius: 7px !important;
  }

  .cartRemoveBtn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    font-size: 9px !important;
    border-radius: 7px !important;
  }
}

/* v34 — chargeurs : l'arme n'encombre plus le libellé, l'icône indique le type de munition */
.magCard {
  grid-template-columns: 72px minmax(0,1fr) auto;
}
.magLeading {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
}
.magLeading .miniIcon {
  width: 22px;
  height: 34px;
  flex: 0 0 22px;
  opacity: .9;
}
.magLeading .miniIcon.emptyMag::before {
  width: 10px;
  height: 25px;
  border-radius: 3px;
  border-color: #dbeeff;
}
.magLeading .miniIcon.dart::before {
  height: 24px;
  width: 4px;
  background: #dbeeff;
}

@media (min-width: 1050px) and (max-width: 1280px) and (max-height: 760px) {
  #inventoryPage .magCard {
    grid-template-columns: 58px minmax(0,1fr) auto !important;
  }
  #inventoryPage .magLeading {
    gap: 3px !important;
  }
  #inventoryPage .magLeading .verticalMagMeter.compact {
    width: 23px !important;
    height: 42px !important;
  }
  #inventoryPage .magLeading .verticalMagMeter.dart.compact {
    width: 22px !important;
  }
  #inventoryPage .magLeading .miniIcon {
    width: 18px !important;
    height: 26px !important;
    flex-basis: 18px !important;
  }
  #inventoryPage .magLeading .miniIcon.emptyMag::before {
    width: 8px !important;
    height: 20px !important;
  }
  #inventoryPage .magLeading .miniIcon.dart::before {
    height: 20px !important;
  }
}

/* dev — historique compact et annulation séquentielle */
.historyPage {
  padding: 16px;
  min-height: calc(100vh - 74px);
}
.historyPanel {
  border: 1px solid rgba(40,122,255,.35);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13,28,51,.98), rgba(5,12,23,.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03);
  overflow: hidden;
}
.historyHeader {
  border-bottom: 1px solid rgba(40,122,255,.25);
}
.historyList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  max-height: calc(100dvh - 190px);
  overflow: auto;
}
.historyRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(40,122,255,.28);
  border-radius: 10px;
  background: rgba(9,25,49,.92);
}
.historyRow.undone {
  opacity: .62;
  border-style: dashed;
}
.historyMain {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.historyMain strong {
  color: #eaf5ff;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.historyMain span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.historyMeta {
  display: grid;
  grid-template-columns: 44px 64px 1fr;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}
.historyMeta b {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(40,122,255,.28);
  border-radius: 8px;
  color: #dbeeff;
  background: rgba(11,31,61,.75);
}
.historyMeta small {
  text-align: right;
  font-size: 10px;
}
.historyActions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.historyUndoBtn {
  min-width: 138px;
}
.historyBadge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(144,166,191,.28);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.undoneBadge {
  color: #67e39b;
  border-color: rgba(40,215,118,.35);
}
.historyEmpty {
  padding: 12px;
}

@media (min-width: 1050px) and (max-width: 1280px) and (max-height: 760px) {
  .historyPage {
    padding: 8px !important;
    height: calc(100dvh - 43px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .historyPanel {
    height: 100% !important;
    border-radius: 10px !important;
  }
  .historyHeader {
    min-height: 42px !important;
    padding: 7px 10px !important;
  }
  .historyHeader p {
    display: none !important;
  }
  .historyList {
    max-height: calc(100dvh - 101px) !important;
    padding: 8px !important;
    gap: 6px !important;
  }
  .historyRow {
    grid-template-columns: minmax(0, 1fr) 142px 126px !important;
    gap: 7px !important;
    min-height: 45px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
  }
  .historyMain strong {
    font-size: 11px !important;
  }
  .historyMain span {
    font-size: 9px !important;
    line-height: 1.15 !important;
  }
  .historyMeta {
    grid-template-columns: 34px 52px 1fr !important;
    gap: 4px !important;
    font-size: 9px !important;
  }
  .historyMeta b {
    min-height: 24px !important;
    border-radius: 6px !important;
  }
  .historyMeta small {
    font-size: 8px !important;
  }
  .historyUndoBtn {
    min-width: 112px !important;
    min-height: 30px !important;
    padding: 5px 7px !important;
    font-size: 9px !important;
  }
  .historyBadge {
    min-height: 28px !important;
    font-size: 9px !important;
    padding: 0 7px !important;
  }
}
