/* [72-deploy-window] Fenêtre de déploiement (attaque, raid, renforts), reproduction de l'original */
.deploy-box { width: 760px; height: 96%; } /* l'original est plus étroit que haut-large : ~1,24 de rapport */
.deploy-body { flex: 1; min-height: 0; display: flex; padding: 6px 84px 10px; /* marges latérales de l'original : les panneaux n'occupent que ~77 % de la largeur */ }
.deploy-pane { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; min-height: 0; }

/* Cadres gris métallisé de l'original */
.deploy-stage, .deploy-armory, .deploy-bottom { border: 3px solid #9d9d96; border-radius: 3px; background: #2a2a2a; box-shadow: inset 0 0 0 1px #111; }

/* Cible : panneau au-dessus des cartes (gains, autres gains possibles, défenseurs) */
.deploy-target { display: flex; flex-direction: column; gap: 1px; padding: 4px 10px; border: 3px solid #9d9d96; border-radius: 3px; background: #2a2a2a; box-shadow: inset 0 0 0 1px #111; font-size: 11.5px; line-height: 1.3; color: #e2ddd6; }
.deploy-target-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.deploy-target .g-lbl { flex: 0 0 105px; color: #e1cbaf; font-size: 10px; text-transform: uppercase; letter-spacing: 0.3px; }
.deploy-target .g-val { color: #fff; }
.deploy-target .gang-coords-tag { display: none; }
.deploy-inline { display: inline-flex; flex-wrap: wrap; gap: 2px 14px; min-width: 0; }
.deploy-inline > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.deploy-drop { width: 34px; height: 34px; padding: 0; border: 2px solid #e1cbaf; background: #111; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; }
.deploy-drop img { width: 100%; height: 100%; object-fit: cover; object-position: center 12%; }
.deploy-drop-emoji { font-size: 20px; line-height: 1; }
.deploy-drop-svg { width: 22px; height: 22px; fill: #e2ddd6; }
.deploy-res-icon { width: 14px; height: 14px; }
.deploy-target-row:empty, .deploy-target-row.hidden { display: none; }

/* Cartes : 3 colonnes × 2 rangées, flèches rouges sur les bords du cadre */
.deploy-stage { position: relative; flex: 1; min-height: 0; padding: 7px 8px; display: flex; }
.deploy-cards { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.deploy-arrow { position: absolute; top: 50%; width: 22px; height: 56px; margin-top: -28px; border: none; background: linear-gradient(90deg, #c99249, #318b6d); cursor: pointer; padding: 0; z-index: 2; }
.deploy-arrow-prev { left: -24px; clip-path: polygon(100% 0, 100% 100%, 0 50%); }
.deploy-arrow-next { right: -24px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: linear-gradient(270deg, #c99249, #318b6d); }
.deploy-arrow:disabled { opacity: 0.45; cursor: default; }

.deploy-card { min-height: 0; display: flex; flex-direction: column; border: 2px solid #e1cbaf; background: #111; }
.deploy-card-name { padding: 0 4px; background: #f4f4ef; color: #333; text-align: center; font-size: 11.5px; line-height: 15px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* portrait 64 px : net au centre, fond flou de la même image pour remplir le cadre sans zoomer le portrait */
.deploy-card-art { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; }
.deploy-card-art::before { content: ''; position: absolute; inset: -10px; background: var(--art) center / cover; filter: blur(8px) brightness(0.6); }
.deploy-card-art img { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); height: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
/* Super-troupes (portraits 256 px) : illustration en plein cadre comme dans l'original */
.deploy-card-art-full::before { display: none; }
.deploy-card-art-full img { left: 0; width: 100%; transform: none; aspect-ratio: auto; object-fit: cover; object-position: center 15%; }
.deploy-card-owned { position: absolute; right: 4px; bottom: 3px; min-width: 38px; padding: 0 6px; background: rgba(0, 0, 0, 0.72); color: #fff; font-weight: 700; font-size: 13px; text-align: right; }
.deploy-card-ctl { display: flex; align-items: center; gap: 8px; padding: 3px 6px; background: linear-gradient(180deg, #debd92, #bb9058 55%, #9c7542); }
.deploy-card-ctl .army-num { width: 46%; padding: 0 6px; background: #fff; color: #222; border: 1px solid #9c7542; text-align: right; font-size: 12px; height: 18px; }
.deploy-card-ctl .army-range { flex: 1; min-width: 0; height: 18px; margin: 0; background: none; -webkit-appearance: none; appearance: none; }
.deploy-card-ctl .army-range::-webkit-slider-runnable-track { height: 3px; background: #f0ebe4; box-shadow: 0 0 0 1px #674b27; }
.deploy-card-ctl .army-range::-moz-range-track { height: 3px; background: #f0ebe4; }
.deploy-card-ctl .army-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px; border-radius: 50%; border: 1px solid #501710; background: radial-gradient(circle at 35% 30%, #f0a199, #b93526 55%, #5e1a12); }
.deploy-card-ctl .army-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #501710; background: radial-gradient(circle at 35% 30%, #f0a199, #b93526 55%, #5e1a12); }
.deploy-empty { margin: auto; text-align: center; grid-column: 1 / -1; }

/* Armurerie et totaux */
.deploy-armory { display: flex; align-items: stretch; }
.deploy-armory-equip { flex: 0 0 auto; width: max-content; padding: 6px 10px; background: #3a3a3a; display: flex; flex-direction: column; gap: 4px; }
.deploy-panel-label { font-size: 11px; color: #fff; letter-spacing: 0.3px; }
.deploy-armory-slots { display: flex; gap: 10px; }
/* Une pièce portée : cadre à la couleur de sa famille, niveau en pastille ; emplacement vide en pointillés */
.deploy-slot { --c: #6d604a; position: relative; width: 46px; height: 46px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 2px solid var(--c); border-radius: 3px; background: radial-gradient(circle at 50% 38%, #1f2327, #0d0c0a); font-size: 18px; }
.deploy-slot img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 2px #000); }
.deploy-slot.is-empty { border-style: dashed; }
.deploy-slot.is-empty img { opacity: 0.18; filter: grayscale(1); }
.deploy-slot-empty { position: absolute; font-size: 9px; letter-spacing: 0.5px; color: #9a9a9a; }
.deploy-slot-lvl { position: absolute; top: -6px; right: -6px; height: 14px; padding: 0 5px; border-radius: 8px; background: var(--c); color: #111; font-size: 9px; font-weight: 800; line-height: 14px; }
.deploy-armory-bonus { font-size: 11px; letter-spacing: 0.3px; color: #88d3b8; }
.deploy-counts { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 22px; padding: 4px 14px; text-align: right; }
.deploy-counts div { display: flex; flex-direction: column; }
.deploy-counts strong { font-size: 17px; color: #fff; font-weight: 400; }
.deploy-counts strong.over { color: #e86e61; }
.deploy-counts div span { font-size: 11px; color: #dccbb4; }
.deploy-note { margin-right: auto; font-size: 10.5px; color: #f0a199; text-align: left; }

/* Barre du bas */
.deploy-bottom { display: flex; align-items: center; gap: 8px; padding: 6px 8px; }
.deploy-bookmark, .deploy-more { display: flex; flex-direction: column; gap: 3px; }
.deploy-coords { display: flex; align-items: center; gap: 6px; color: #fff; }
.deploy-coords span { min-width: 44px; padding: 1px 6px; background: #fff; color: #333; font-size: 11px; text-align: center; border-radius: 2px; }
.deploy-bar { position: relative; width: 84px; height: 16px; border: 1px solid #bbb; background: #1a1a1a; }
.deploy-bar-fill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(180deg, #bd8d4d, #724f22); }
.deploy-bar span { position: relative; display: block; text-align: center; font-size: 11px; line-height: 16px; color: #fff; }
.deploy-quick { display: flex; flex-direction: column; gap: 3px; margin-left: auto; }
.deploy-btn { min-width: 96px; padding: 2px 10px; border-radius: 3px; border: 1px solid #f3b3ac; color: #fff; font-family: 'Josefin Sans', sans-serif; font-weight: 700; font-size: 12px; cursor: pointer; }
.deploy-btn-red { background: linear-gradient(180deg, #d44838 0%, #aa3023 50%, #791f15 100%); }
.deploy-btn:hover { filter: brightness(1.12); }
.deploy-timer { display: flex; align-items: center; gap: 6px; max-width: 58px; font-size: 10px; color: #fff; }
.deploy-timer svg { width: 22px; height: 22px; flex: none; }
.deploy-launch { width: 132px; height: 40px; padding: 0 4px; line-height: 1.1; font-size: 11px; border: 3px double #f2f2f2; border-radius: 3px; background: linear-gradient(180deg, #8a8a8a, #3c3c3c); color: #fff; font-family: 'Josefin Sans', sans-serif; font-weight: 700; text-transform: uppercase; cursor: pointer; }
/* allumé (troupes choisies) : rouge ; éteint : gris */
.deploy-launch:not(:disabled) { background: linear-gradient(180deg, #d44838 0%, #aa3023 50%, #791f15 100%); box-shadow: 0 0 10px rgba(212, 72, 56, 0.7); }
.deploy-launch:disabled { filter: grayscale(1) brightness(0.7); cursor: not-allowed; }
.deploy-launch:hover:not(:disabled) { filter: brightness(1.15); }
#pvp-poison-row { display: flex; align-items: center; gap: 8px; padding: 4px 10px; border: 2px solid #9d9d96; border-radius: 3px; background: #2a2a2a; font-size: 11px; color: #dccbb4; }
#pvp-poison-row.hidden { display: none; }
#pvp-poison-row select { flex: 1; min-width: 0; padding: 2px 4px; background: #151515; color: #fff; border: 1px solid #aaa; font-size: 11px; }

/* Troupes déjà en marche */
.deploy-deployed-list { flex: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 14px; align-content: start; padding: 10px; border: 3px solid #9d9d96; background: #2a2a2a; overflow-y: auto; }
.deploy-deployed-row { display: flex; align-items: center; gap: 10px; padding: 4px 8px; background: rgba(0, 0, 0, 0.4); color: #e2ddd6; }
.deploy-deployed-row img { width: 40px; height: 40px; object-fit: cover; }
.deploy-deployed-row strong { margin-left: auto; color: #fff; }
