/* [98-armory] Armurerie : équipement à gauche (4 emplacements, set, bonus), inventaire en grille à droite, détail de la pièce choisie en bas */
.arm { display: flex; gap: 14px; height: 100%; min-height: 0; padding: 12px 14px; box-sizing: border-box; color: var(--text-cream); }
.arm-left { width: 292px; flex: none; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.arm-right { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.arm-h { margin: 0 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--panel-border); font-family: 'Limelight', serif; font-size: 13px; letter-spacing: 1.5px; color: var(--gold-classic); }
.arm-note { font-size: 11px; color: var(--text-dim); line-height: 1.35; }

/* Emplacements d'équipement */
.arm-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arm-slot, .arm-card { --c: var(--panel-border); position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 2px solid var(--c); border-radius: 4px; background: radial-gradient(circle at 50% 38%, #1f2327, #0d0c0a); cursor: pointer; padding: 0; color: inherit; font: inherit; }
.arm-slot { height: 118px; box-shadow: inset 0 0 14px #000; }
.arm-slot img, .arm-card img { object-fit: contain; filter: drop-shadow(0 2px 4px #000); }
.arm-slot img { width: 66px; height: 66px; }
.arm-slot-label { position: absolute; top: 3px; left: 6px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #8d7d62; }
.arm-slot-name { margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--c); }
.arm-slot.is-empty { border-style: dashed; cursor: default; color: #6d604a; font-size: 11px; }
.arm-slot.is-empty .arm-ghost { opacity: 0.18; filter: grayscale(1); }
.arm-slot.is-selected, .arm-card.is-selected { box-shadow: 0 0 0 2px var(--gold-highlight), 0 0 12px var(--gold-classic); }
.arm-lvl { position: absolute; top: 3px; right: 5px; padding: 0 6px; border-radius: 9px; background: var(--c); color: #111; font-size: 10px; font-weight: 800; }

/* Set et bonus */
.arm-box { padding: 8px; border: 1px solid #352f27; border-radius: 4px; background: linear-gradient(180deg, #13110e, #090807); font-size: 11px; }
.arm-box .arm-h { margin-top: 0; }
.arm-pips { display: flex; gap: 5px; margin: 5px 0; }
.arm-pip { width: 22px; height: 8px; border-radius: 2px; border: 1px solid var(--panel-border); background: #1f2327; }
.arm-pip.is-on { background: var(--c); border-color: var(--gold-sand); }
.arm-set-done { margin-top: 4px; color: #deae70; }
.arm-bonus { display: flex; justify-content: space-between; padding: 2px 0; border-bottom: 1px dotted #352f27; }
.arm-bonus b { color: #88d3b8; }

/* Inventaire */
.arm-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 5px; margin-bottom: 8px; }
.arm-filter { padding: 4px 8px; border: 1px solid #7a7a7a; border-bottom: none; border-radius: 1px 1px 0 0; background: linear-gradient(180deg, #2c2c2c, #0a0a0a); color: #fff; font-family: 'Josefin Sans', sans-serif; font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase; cursor: pointer; }
.arm-filter.is-active { background: linear-gradient(180deg, #897151, #413321 45%, #17120b); border-color: #c4a67f; }
.arm-count { margin-left: auto; font-size: 11px; color: var(--text-dim); }
.arm-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; align-content: start; overflow-y: auto; padding: 2px; }
.arm-card { height: 104px; }
.arm-card img { width: 54px; height: 54px; }
.arm-card-name { margin-top: 3px; padding: 0 3px; font-size: 10px; line-height: 1.1; text-align: center; color: #c8bfb3; }
.arm-card .arm-lvl { right: 4px; padding: 0 5px; }
.arm-cmp { position: absolute; left: 4px; top: 2px; font-size: 13px; font-weight: 900; }
.arm-cmp.is-up { color: #5ec7a1; }
.arm-cmp.is-down { color: #e86e61; }
.arm-cmp.is-same { color: var(--text-dim); }
.arm-cmp.is-locked { color: #b388ff; }
.arm-empty { grid-column: 1 / -1; padding: 16px 8px; font-size: 12px; color: var(--text-dim); }

/* Détail de la pièce choisie */
.arm-detail { --c: var(--gold-classic); display: flex; align-items: center; gap: 12px; margin-top: 8px; min-height: 94px; padding: 10px; border: 1px solid var(--gold-brass); border-radius: 4px; background: linear-gradient(180deg, #181512, #090807); }
.arm-detail img { width: 74px; height: 74px; object-fit: contain; flex: none; }
.arm-detail-main { flex: 1; min-width: 0; }
.arm-detail h4 { margin: 0; font-family: 'Limelight', serif; font-size: 15px; color: var(--c); }
.arm-detail-sub { margin: 3px 0; font-size: 11px; color: var(--text-dim); }
.arm-detail-desc { margin: 0 0 3px; font-size: 11px; font-style: italic; line-height: 1.3; color: #c5b5a0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.arm-detail-line { font-size: 12px; }
.arm-detail-line b { margin: 0 3px; color: #88d3b8; }
.arm-detail-line .is-up { color: #5ec7a1; font-weight: 700; }
.arm-detail-line .is-down { color: #e86e61; font-weight: 700; }
.arm-detail-line .arm-dim { color: #8d7d62; }
.arm-detail-lock { margin-top: 3px; font-size: 11px; color: #b388ff; }
.arm-detail-hint { flex: 1; font-size: 12px; color: var(--text-dim); text-align: center; }
.arm-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.arm-btn-main { padding: 8px 16px; border: 1px solid #cda775; border-radius: 3px; background: linear-gradient(180deg, #b04236, #70241c 60%, #511711); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; cursor: pointer; }
.arm-btn-main:disabled { opacity: 0.4; cursor: not-allowed; filter: grayscale(0.6); }
.arm-btn-alt { padding: 8px 12px; border: 1px solid #7a7a7a; border-radius: 3px; background: linear-gradient(180deg, #3a3a3a, #111); color: #ddd; font-size: 11px; cursor: pointer; }
.arm-btn-main:hover:not(:disabled), .arm-btn-alt:hover { filter: brightness(1.15); }
.arm-error { padding: 20px; font-size: 13px; color: #ea7b6f; }
