/* ==========================================================================
   OHDB - FUSION D'ANOMALIES V3 (CAPSULE INTERACTIVE PLEINE LARGEUR & HUD COMPLET)
   ========================================================================== */

/* 1. Conteneur pleine page pour occuper tout l'espace disponible sur grands écrans */
.builder-container.fusion-page-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 32px 45px 32px !important;
    box-sizing: border-box !important;
}

.fusion-layout-wrapper {
    display: grid;
    grid-template-columns: 1.18fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.fusion-setup-column,
.fusion-results-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.fusion-hud-section {
    padding: 24px 28px !important;
    margin-bottom: 0 !important;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.fusion-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(104, 253, 214, 0.25);
}

.fusion-section-header h2 {
    font-family: 'h73bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(104, 253, 214, 0.45);
    font-size: 1.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fusion-section-header h2::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #68fdd6;
    box-shadow: 0 0 8px #68fdd6;
}

.fusion-header-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Pillule du switch Serveur Anomalie */
.fusion-server-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(6, 12, 18, 0.88);
    border: 1px solid rgba(104, 253, 214, 0.35);
    padding: 6px 14px;
    height: 34px;
    box-sizing: border-box;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.fusion-server-label {
    font-family: 'h73bold', sans-serif;
    font-size: 0.73rem;
    color: #e0f7fa;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

/* ==========================================================================
   SCÈNE VISUELLE DU POD (images/Icon_fusion/fusion_cylinder3.png - 1000x1000)
   ========================================================================== */
.fusion-pod-stage {
    position: relative;
    width: 100%;
    max-width: 980px;
    aspect-ratio: 1 / 1;
    margin: auto;
    background: radial-gradient(circle at 50% 50%, rgba(22, 52, 68, 0.38) 0%, rgba(4, 7, 10, 0.96) 74%);
    border: 1px solid rgba(104, 253, 214, 0.16);
    border-radius: 10px;
    overflow: visible;
    user-select: none;
}

.fusion-pod-bg-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 28px rgba(104, 253, 214, 0.22));
    pointer-events: none;
}

.fusion-pod-node {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   EMPLACEMENTS CŒUR 1 (Fiole gauche : x=17.8%, y=60.5%)
   & CŒUR 2 (Entonnoir droit : x=81.6%, y=60.5%)
   ========================================================================== */
.fusion-pod-core-left {
    left: 17.8%;
    top: 60.5%;
    transform: translate(-50%, -50%);
    width: 175px;
}

.fusion-pod-core-right {
    left: 81.6%;
    top: 60.5%;
    transform: translate(-50%, -50%);
    width: 175px;
}

.pod-node-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    background: rgba(5, 10, 15, 0.92);
    border: 1px solid rgba(104, 253, 214, 0.38);
    padding: 4px 11px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.pod-node-title {
    font-family: 'h73bold', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e0f7fa;
}

/* Vignette carrée posée sur la fiole gauche et sur l'entonnoir droit
   IMPORTANT : overflow: visible !important pour ne pas couper la pastille de note ni le bouton × */
.pod-slot-box {
    width: 138px !important;
    height: 138px !important;
    min-height: 138px !important;
    padding: 10px 8px 16px 8px !important;
    border-radius: 12px;
    clip-path: none !important;
    overflow: visible !important;
    background: rgba(8, 15, 22, 0.78) !important;
    border: 1.5px dashed rgba(104, 253, 214, 0.6) !important;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.85), inset 0 0 16px rgba(104, 253, 214, 0.14);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.22s ease;
}

.pod-slot-box::after {
    display: none !important;
}

.pod-slot-box:hover {
    border-color: #68fdd6 !important;
    box-shadow: 0 0 26px rgba(104, 253, 214, 0.4), inset 0 0 20px rgba(104, 253, 214, 0.22);
    transform: scale(1.03);
}

.pod-slot-box .placeholder-text {
    font-size: 2.3rem;
    font-family: 'h73bold', sans-serif;
    color: #68fdd6;
    opacity: 0.8;
    line-height: 1;
}

.pod-slot-box .selected-item-image {
    width: 74px !important;
    height: 74px !important;
    max-height: 74px !important;
    object-fit: contain;
    margin: 0 auto 4px auto !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.85));
}

.pod-slot-box .selected-item-name {
    font-size: 0.71rem !important;
    line-height: 1.15 !important;
    text-align: center !important;
    max-width: 100%;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal !important;
    word-break: break-word;
}

.pod-rating-pill {
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: #08121a;
    border: 1px solid #68fdd6;
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
    font-size: 0.69rem;
    padding: 2px 10px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
    z-index: 15;
}

.fusion-core-picker.has-item .clear-slot-btn {
    opacity: 1 !important;
    top: -8px !important;
    right: -8px !important;
    transform: scale(1) !important;
    z-index: 25;
}

/* ==========================================================================
   PANNEAUX DE RÉGLAGES CŒUR 1 & CŒUR 2 (BOUTONS SEGMENTÉS 1 À 5 + TRAITS)
   ========================================================================== */
.pod-core-drawer {
    width: 26%;
    min-width: 215px;
    max-width: 255px;
    background: rgba(6, 12, 18, 0.94);
    border: 1px solid rgba(104, 253, 214, 0.35);
    border-top: 2px solid #68fdd6;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 4;
}

/* Connecteur vertical HUD reliant chaque panneau supérieur au badge Cœur 1 / Cœur 2 */
.pod-core-drawer::after {
    content: '';
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 36px;
    background: linear-gradient(to bottom, #68fdd6, rgba(104, 253, 214, 0.15));
    pointer-events: none;
}

.pod-core-drawer-left {
    left: 17.8%;
    bottom: 55.5%;
    transform: translateX(-50%);
}

.pod-core-drawer-right {
    left: 81.6%;
    bottom: 55.5%;
    transform: translateX(-50%);
}

.pod-mini-sliders {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.pod-mini-slider-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.pod-mini-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-family: 'h73bold', sans-serif;
    color: #c2d6e4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sélecteur par boutons 1 à 5 (remplace les sliders) */
.pod-rating-btn-group {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    width: 100%;
}

.pod-lvl-btn {
    height: 26px;
    background: rgba(12, 20, 28, 0.85);
    border: 1px solid rgba(104, 253, 214, 0.22);
    color: #9ab0c0;
    font-family: 'h73bold', sans-serif;
    font-size: 0.76rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.18s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pod-lvl-btn:hover {
    border-color: rgba(104, 253, 214, 0.65);
    color: #fff;
    background: rgba(104, 253, 214, 0.12);
}

.pod-lvl-btn.active {
    background: rgba(104, 253, 214, 0.22);
    border-color: #68fdd6;
    color: #68fdd6;
    box-shadow: 0 0 10px rgba(104, 253, 214, 0.3), inset 0 0 6px rgba(104, 253, 214, 0.2);
    text-shadow: 0 0 6px rgba(104, 253, 214, 0.5);
}

.pod-traits-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
    padding-top: 8px;
}

.pod-add-trait-btn {
    width: 100%;
    height: 28px !important;
    font-size: 0.72rem !important;
    padding: 0 10px !important;
}

/* ==========================================================================
   CYLINDRE CENTRAL : 3 EMPLACEMENTS DE MATÉRIAUX (x = 49.1%, y = 25.5%..68%)
   ========================================================================== */
.fusion-pod-center {
    left: 49.1%;
    top: 25.5%;
    transform: translateX(-50%);
    width: 24.5%;
    min-width: 195px;
    max-width: 240px;
}

.pod-center-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    background: rgba(5, 10, 15, 0.92);
    border: 1px solid rgba(104, 253, 214, 0.38);
    padding: 4px 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.pod-materials-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: stretch;
}

/* Emplacement de matériau vide dans le tube gradué */
.pod-mat-slot-empty {
    width: 100%;
    height: 74px;
    background: rgba(8, 16, 24, 0.74);
    border: 1.5px dashed rgba(104, 253, 214, 0.5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(104, 253, 214, 0.9);
    font-family: 'h73bold', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 14px rgba(104, 253, 214, 0.08), 0 4px 14px rgba(0, 0, 0, 0.65);
    transition: all 0.2s ease;
}

.pod-mat-slot-empty:hover {
    border-color: #68fdd6;
    background: rgba(104, 253, 214, 0.16);
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 0 18px rgba(104, 253, 214, 0.32);
}

.pod-mat-slot-empty b {
    font-size: 1.3rem;
    line-height: 1;
}

/* Carte de matériau rempli dans le cylindre central */
.fusion-material-item {
    width: 100%;
    background: rgba(7, 13, 19, 0.93);
    border: 1px solid rgba(104, 253, 214, 0.38);
    border-left: 3px solid #68fdd6;
    padding: 8px 10px;
    border-radius: 7px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}

.mat-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mat-item-identity {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.mat-item-thumb {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    padding: 2px;
    flex-shrink: 0;
}

.mat-item-info {
    min-width: 0;
    flex: 1;
}

.mat-item-info strong {
    display: block;
    font-family: 'h73bold', sans-serif;
    font-size: 0.75rem;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.15;
    white-space: normal;
    word-break: break-word;
}

.mat-item-info small {
    display: block;
    color: #68fdd6;
    font-size: 0.65rem;
    opacity: 0.9;
    margin-top: 2px;
}

.mat-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.73rem;
    color: #a8c0d0;
}

.mat-qty-row .fusion-num-input {
    width: 54px;
    height: 24px;
    font-size: 0.8rem;
}

/* ==========================================================================
   BASE DU POD : CATALYSEURS (ICÔNE + STEPPER + BOUTON MAX)
   ========================================================================== */
.fusion-pod-base {
    left: 49.1%;
    bottom: 2.5%;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: rgba(6, 12, 18, 0.95);
    border: 1px solid rgba(104, 253, 214, 0.42);
    padding: 7px 14px;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.9);
}

.catalyst-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.catalyst-thumb {
    width: 28px;
    height: 28px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(104, 253, 214, 0.25);
    border-radius: 4px;
    padding: 2px;
}

.catalyst-label-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.catalyst-sub-hint {
    font-size: 0.62rem;
    color: #88a4b8;
    white-space: nowrap;
}

.catalyst-sub-hint.is-min {
    color: #68fdd6;
}

.catalyst-max-btn {
    height: 28px !important;
    padding: 0 10px !important;
    font-size: 0.68rem !important;
}

.catalyst-max-btn.active {
    background: rgba(104, 253, 214, 0.22);
    border-color: #68fdd6;
    color: #fff;
}

/* ==========================================================================
   BADGES, PUCES DE TRAITS & BOUTONS HUD
   ========================================================================== */
.fusion-core-type-badge {
    font-family: 'h73bold', sans-serif;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 7px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.fusion-core-type-badge.combat-type { color: #ff6b81; border-color: rgba(243, 18, 56, 0.5); background: rgba(243, 18, 56, 0.15); }
.fusion-core-type-badge.gadget-type { color: #22c7dd; border-color: rgba(34, 199, 221, 0.5); background: rgba(34, 199, 221, 0.15); }
.fusion-core-type-badge.territoire-type { color: #f0e68c; border-color: rgba(240, 230, 140, 0.5); background: rgba(240, 230, 140, 0.15); }

/* Badge d'origine sur les cartes de résultats (Cœur 1 / Cœur 2 / Mutagène) */
.outcome-origin-badge {
    font-family: 'h73bold', sans-serif;
    font-size: 0.63rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 2px 7px;
    border-radius: 2px;
    background: rgba(104, 253, 214, 0.1);
    border: 1px solid rgba(104, 253, 214, 0.35);
    color: #68fdd6;
}

.outcome-origin-badge.is-mutagen {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.45);
    color: #ffd54f;
}

.fusion-rating-badge {
    background: rgba(104, 253, 214, 0.15);
    border: 1px solid rgba(104, 253, 214, 0.45);
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
    font-size: 0.72rem;
    padding: 0 6px;
    min-width: 20px;
    text-align: center;
}

.fusion-chips-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 120px;
    overflow-y: auto;
}

.fusion-trait-chip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    background: rgba(15, 22, 28, 0.96);
    border: 1px solid rgba(104, 253, 214, 0.32);
    border-left: 3px solid #68fdd6;
    color: #e9e9e9;
    padding: 5px 8px;
    font-size: 0.72rem;
    font-family: 'h73bold', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.fusion-trait-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fusion-trait-chip.legendaire-rarete { border-left-color: #ffc107; border-color: rgba(255, 193, 7, 0.35); color: #ffe082; }
.fusion-trait-chip.epique-rarete { border-left-color: #9c27b0; border-color: rgba(156, 39, 176, 0.35); color: #e1bee7; }
.fusion-trait-chip.rare-rarete { border-left-color: #3498db; border-color: rgba(52, 152, 219, 0.35); color: #90caf9; }
.fusion-trait-chip.commun-rarete { border-left-color: #2ecc71; border-color: rgba(46, 204, 113, 0.35); color: #a5d6a7; }

.fusion-trait-chip:hover {
    background: rgba(255, 82, 82, 0.15);
    border-color: #ff5252;
    color: #fff;
}

.fusion-trait-chip b {
    color: #ff6b6b;
    font-size: 0.95rem;
    line-height: 1;
}

.fusion-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px;
    background: rgba(104, 253, 214, 0.08);
    border: 1px solid rgba(104, 253, 214, 0.4);
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.fusion-action-btn:hover:not(:disabled) {
    background: rgba(104, 253, 214, 0.2);
    border-color: #68fdd6;
    color: #fff;
    box-shadow: 0 0 12px rgba(104, 253, 214, 0.25);
}

.fusion-action-btn.copied {
    background: rgba(104, 253, 214, 0.24) !important;
    border-color: #68fdd6 !important;
    color: #fff !important;
}

.fusion-btn-danger {
    background: rgba(255, 82, 82, 0.08);
    border-color: rgba(255, 82, 82, 0.35);
    color: #ff6b6b;
}

.fusion-btn-danger:hover:not(:disabled) {
    background: rgba(255, 82, 82, 0.2);
    border-color: #ff5252;
    color: #fff;
}

.fusion-stepper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(104, 253, 214, 0.35);
}

.stepper-btn {
    background: rgba(104, 253, 214, 0.08);
    border: none;
    color: #68fdd6;
    width: 28px;
    height: 28px;
    font-family: 'h73bold', sans-serif;
    font-size: 1rem;
    cursor: pointer;
}

.stepper-btn:hover {
    background: rgba(104, 253, 214, 0.25);
    color: #fff;
}

.fusion-num-input {
    width: 56px;
    height: 28px;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    font-family: 'h73bold', sans-serif;
    font-size: 0.9rem;
    text-align: center;
    -moz-appearance: textfield;
}

.fusion-num-input::-webkit-outer-spin-button,
.fusion-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.fusion-counter-pill {
    background: rgba(104, 253, 214, 0.14);
    border: 1px solid rgba(104, 253, 214, 0.4);
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
    font-size: 0.72rem;
    padding: 1px 9px;
    border-radius: 10px;
}

/* ==========================================================================
   COLONNE DROITE : APERÇU, RÉSULTATS, RARETÉ DES TRAITS & ESSAIS ESTIMÉS
   ========================================================================== */
.fusion-empty-hud {
    flex: 1;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 50px 30px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px dashed rgba(104, 253, 214, 0.25);
    color: #a8c0d0;
    font-size: 1rem;
}

.fusion-alert-box {
    background: rgba(255, 82, 82, 0.12);
    border: 1px solid rgba(255, 82, 82, 0.45);
    border-left: 4px solid #ff5252;
    color: #ff9e9e;
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 0.86rem;
}

.fusion-notice-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.35);
    border-left: 4px solid #ffc107;
    color: #ffe082;
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.fusion-summary-cards {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 22px;
}

.fusion-time-box {
    justify-content: space-between;
    gap: 10px;
}

.fusion-time-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(104, 253, 214, 0.2);
}

.fusion-time-catalysts {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.catalyst-controls-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.catalyst-inline-label {
    font-size: 0.72rem;
    cursor: pointer;
}

.fusion-stat-box {
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(104, 253, 214, 0.18);
    border-top: 2px solid #68fdd6;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.fusion-stat-title {
    font-family: 'h73bold', sans-serif;
    font-size: 0.74rem;
    color: #a8c0d0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fusion-stat-big {
    font-family: 'h73bold', sans-serif;
    font-size: 1.45rem;
    color: #68fdd6;
    text-shadow: 0 0 12px rgba(104, 253, 214, 0.45);
}

.rating-dist-badges,
.fusion-sim-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.dist-pill {
    background: rgba(15, 22, 28, 0.92);
    border: 1px solid rgba(104, 253, 214, 0.24);
    padding: 5px 11px;
    font-size: 0.82rem;
    color: #d0dce5;
}

.dist-pill b {
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
}

.fusion-outcomes-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
}

.fusion-outcome-card {
    background: rgba(8, 12, 16, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 4px solid #68fdd6;
    padding: 18px 20px;
}

.outcome-header {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.outcome-dev-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(104, 253, 214, 0.22);
    padding: 4px;
}

.outcome-title-block {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.outcome-title-block h3 {
    margin: 0 0 6px 0;
    font-family: 'h73bold', sans-serif;
    font-size: 1.12rem;
    color: #fff;
}

.outcome-badges-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.outcome-rate-badge {
    background: rgba(104, 253, 214, 0.15);
    border: 1px solid #68fdd6;
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
    font-size: 1.02rem;
    padding: 5px 14px;
}

.outcome-trait-group {
    margin-top: 12px;
}

.outcome-trait-group h5 {
    margin: 0 0 8px 0;
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 1px;
}

.outcome-trait-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.outcome-trait-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(0, 0, 0, 0.42);
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #68fdd6;
    font-size: 0.86rem;
}

.outcome-trait-row.legendaire-rarete { border-left-color: #ffc107; background: linear-gradient(90deg, rgba(255, 193, 7, 0.1) 0%, rgba(0, 0, 0, 0.42) 60%); }
.outcome-trait-row.epique-rarete { border-left-color: #9c27b0; background: linear-gradient(90deg, rgba(156, 39, 176, 0.1) 0%, rgba(0, 0, 0, 0.42) 60%); }
.outcome-trait-row.rare-rarete { border-left-color: #3498db; background: linear-gradient(90deg, rgba(52, 152, 219, 0.1) 0%, rgba(0, 0, 0, 0.42) 60%); }
.outcome-trait-row.commun-rarete { border-left-color: #2ecc71; background: linear-gradient(90deg, rgba(46, 204, 113, 0.1) 0%, rgba(0, 0, 0, 0.42) 60%); }

.outcome-trait-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.outcome-trait-name {
    font-family: 'h73bold', sans-serif;
    color: #fff;
}

.outcome-trait-row.legendaire-rarete .outcome-trait-name { color: #ffe082; }
.outcome-trait-row.epique-rarete .outcome-trait-name { color: #e1bee7; }
.outcome-trait-row.rare-rarete .outcome-trait-name { color: #90caf9; }
.outcome-trait-row.commun-rarete .outcome-trait-name { color: #a5d6a7; }

.outcome-trait-desc {
    font-size: 0.76rem;
    color: #9cb2c2;
    line-height: 1.35;
}

.outcome-trait-group li.no-trait-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    color: #8892b0;
    font-style: italic;
    font-size: 0.82rem;
}

/* Barre d'estimation du nombre d'essais (Expected Tries) */
.outcome-tries-bar {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tries-chip {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(104, 253, 214, 0.22);
    padding: 4px 10px;
    font-size: 0.74rem;
    color: #b4c8d8;
    border-radius: 3px;
}

.tries-chip strong {
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
}

.fusion-sim-panel {
    background: rgba(0, 0, 0, 0.48);
    border: 1px solid rgba(104, 253, 214, 0.22);
    padding: 18px 20px;
    margin-top: auto;
}

.fusion-sim-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.fusion-sim-header h4 {
    margin: 0;
    font-family: 'h73bold', sans-serif;
    color: #fff;
    font-size: 0.96rem;
}

.fusion-sim-sub {
    color: #8892b0;
    font-size: 0.78rem;
}

.fusion-trait-vignette {
    min-height: 115px !important;
    justify-content: flex-start !important;
    padding: 12px !important;
    gap: 6px;
}

.fusion-trait-vignette .vignette-sub-badge {
    font-size: 0.65rem;
    color: #68fdd6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fusion-trait-vignette .vignette-desc-preview {
    font-size: 0.74rem;
    color: #a8c0d0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Couleurs par type d'anomalie */
.vignette-placeholder.combat-type,
.item-vignette.combat-type {
    background: linear-gradient(135deg, rgba(243, 18, 56, 0.22) 0%, rgba(10, 15, 20, 0.92) 100%) !important;
    border: 1.5px solid rgba(243, 18, 56, 0.65) !important;
}

.vignette-placeholder.gadget-type,
.item-vignette.gadget-type {
    background: linear-gradient(135deg, rgba(34, 199, 221, 0.22) 0%, rgba(10, 15, 20, 0.92) 100%) !important;
    border: 1.5px solid rgba(34, 199, 221, 0.65) !important;
}

.vignette-placeholder.territoire-type,
.item-vignette.territoire-type {
    background: linear-gradient(135deg, rgba(240, 230, 140, 0.22) 0%, rgba(10, 15, 20, 0.92) 100%) !important;
    border: 1.5px solid rgba(240, 230, 140, 0.65) !important;
}

.fusion-outcome-card.combat-type,
.fusion-material-item.combat-type {
    border-left: 4px solid #f31238 !important;
}

.fusion-outcome-card.gadget-type,
.fusion-material-item.gadget-type {
    border-left: 4px solid #22c7dd !important;
}

.fusion-outcome-card.territoire-type,
.fusion-material-item.territoire-type {
    border-left: 4px solid #f0e68c !important;
}

/* Responsive */
@media (max-width: 1280px) {
    .fusion-layout-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .builder-container.fusion-page-container {
        padding: 15px !important;
    }
    .fusion-pod-stage {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }
    .fusion-pod-bg-img,
    .pod-core-drawer::after {
        display: none;
    }
    .fusion-pod-node {
        position: static;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .fusion-summary-cards {
        grid-template-columns: 1fr;
    }
}