/* ============================================
   TOPBAR — Bouton Invocation fusionné
   ============================================ */

.btn-invocation {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 14px;
    background: linear-gradient(135deg, rgba(100, 50, 180, .4), rgba(50, 20, 120, .4));
    border: 1px solid rgba(150, 100, 220, .55);
    border-radius: 999px;
    color: #c8a8f0;
    font-family: 'Cinzel', serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    white-space: nowrap;
}

.btn-invocation:hover {
    background: linear-gradient(135deg, rgba(130, 70, 220, .55), rgba(70, 30, 160, .55));
    border-color: rgba(180, 130, 255, .8);
    box-shadow: 0 0 20px rgba(150, 100, 220, .3);
    color: #e0c8ff;
}

.btn-invocation-icon {
    font-size: 1rem;
    line-height: 1;
}

.btn-invocation-sep {
    width: 1px;
    height: 16px;
    background: rgba(150, 100, 220, .4);
    flex-shrink: 0;
}

.btn-invocation-amber {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-invocation-amber-val {
    font-family: 'Cinzel', serif;
    font-size: .78rem;
    font-weight: 700;
    color: #c99b4a;
    letter-spacing: .03em;
}

/* ── Icône Ambre (fossile moustique) ── */
.amber-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   PAGE INVOCATION — Layout
   ============================================ */

.inv-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 15%, rgba(80, 30, 160, .22), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(30, 10, 80, .30), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 5, 40, .50), transparent 70%),
        #070805;
    color: #f4ead2;
    font-family: Inter, system-ui, sans-serif;
}

.inv-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 34px;
    background: rgba(7, 8, 5, .88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(150, 100, 220, .25);
}

.inv-topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #c8a8f0;
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    text-decoration: none;
    transition: color .2s;
}

.inv-topbar-back:hover {
    color: #e0c8ff;
}

.inv-topbar-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: .1em;
    color: #f4ead2;
}

.inv-topbar-mark {
    color: #a070e0;
}

.inv-topbar-amber {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: rgba(201, 155, 74, .10);
    border: 1px solid rgba(201, 155, 74, .35);
    border-radius: 999px;
}

.inv-topbar-amber-value {
    font-family: 'Cinzel', serif;
    font-size: .9rem;
    font-weight: 700;
    color: #c99b4a;
}

/* ============================================
   HERO
   ============================================ */

.inv-hero {
    text-align: center;
    padding: 70px 7vw 50px;
}

.inv-hero-eyebrow {
    color: #a070e0;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .78rem;
    font-weight: 800;
    margin: 0 0 14px;
}

.inv-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #e0c8ff, #c8a8f0, #9060d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.inv-hero-sub {
    color: #9f97a9;
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* ============================================
   ZONE D'ACTION
   ============================================ */

.inv-actions-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    margin-bottom: 70px;
}

/* Booster +50% : 160→240px */
.inv-booster-visual {
    width: 240px;
    height: 315px;
    position: relative;
}

.inv-booster-pack {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #2a1060, #4a2090, #1a0840);
    border: 2px solid rgba(180, 130, 255, .6);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow:
        0 0 60px rgba(120, 60, 220, .45),
        inset 0 0 50px rgba(100, 50, 200, .15);
    position: relative;
    overflow: hidden;
    animation: boosterFloat 3s ease-in-out infinite;
}

@keyframes boosterFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.inv-booster-pack::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, transparent 50%);
    border-radius: 22px;
}

.inv-booster-dino {
    font-size: 5rem;
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(180, 130, 255, .75));
}

.inv-booster-label {
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: rgba(200, 168, 240, .75);
    text-transform: uppercase;
}

.inv-cost-info {
    text-align: center;
}

.inv-cost-info-line {
    font-size: .88rem;
    color: #9f97a9;
    margin: 4px 0;
}

.inv-cost-info-line strong {
    color: #c99b4a;
}

.inv-btns {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.inv-btn-open {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    border-radius: 16px;
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    border: none;
    transition: all .2s ease;
}

.inv-btn-open.single {
    background: linear-gradient(135deg, #6030b0, #9060d0);
    color: #f0e8ff;
    box-shadow: 0 8px 28px rgba(100, 50, 200, .45);
}

.inv-btn-open.single:hover:not(:disabled) {
    background: linear-gradient(135deg, #7040c0, #a070e0);
    box-shadow: 0 14px 36px rgba(120, 70, 220, .55);
    transform: translateY(-2px);
}

.inv-btn-open.multi {
    background: linear-gradient(135deg, rgba(201, 155, 74, .15), rgba(201, 155, 74, .08));
    border: 1px solid rgba(201, 155, 74, .55);
    color: #c99b4a;
}

.inv-btn-open.multi:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(201, 155, 74, .28), rgba(201, 155, 74, .18));
    border-color: rgba(201, 155, 74, .85);
    transform: translateY(-2px);
}

.inv-btn-open:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none !important;
}

.inv-btn-cost {
    font-size: .72rem;
    opacity: .75;
    font-family: Inter, sans-serif;
    font-weight: 600;
}

/* ============================================
   PITY TRACKER
   ============================================ */

.inv-pity-zone {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 70px;
    padding: 0 7vw;
}

.inv-pity-bar {
    flex: 1;
    min-width: 260px;
    max-width: 400px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
}

.inv-pity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.inv-pity-label {
    font-size: .82rem;
    color: #9f97a9;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.inv-pity-counter {
    font-family: 'Cinzel', serif;
    font-size: .9rem;
    font-weight: 700;
}

.inv-pity-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, .08);
    border-radius: 999px;
    overflow: hidden;
}

.inv-pity-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .5s ease;
}

.pity-legendary .inv-pity-fill {
    background: linear-gradient(90deg, #8a6c28, #c99b4a);
}

.pity-legendary .inv-pity-counter {
    color: #c99b4a;
}

.pity-apex .inv-pity-fill {
    background: linear-gradient(90deg, #6b1a1a, #c0392b);
}

.pity-apex .inv-pity-counter {
    color: #e05050;
}

/* ============================================
   TAUX DE DROP
   ============================================ */

.inv-rates {
    padding: 0 7vw 90px;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.inv-rates-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: rgba(200, 168, 240, .7);
    margin-bottom: 24px;
    letter-spacing: .1em;
}

.inv-rates-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

@media (max-width: 600px) {
    .inv-rates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.inv-rate-item {
    padding: 20px 12px;
    border-radius: 14px;
    border: 1px solid;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.inv-rate-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.inv-rate-rarity {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.inv-rate-pct {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.rate-commun {
    background: rgba(180, 180, 180, .06);
    border-color: rgba(180, 180, 180, .22);
}

.rate-commun .inv-rate-dot {
    background: #b4b4b4;
}

.rate-commun .inv-rate-rarity {
    color: #909090;
}

.rate-commun .inv-rate-pct {
    color: #b4b4b4;
}

.rate-rare {
    background: rgba(80, 140, 220, .07);
    border-color: rgba(80, 140, 220, .25);
}

.rate-rare .inv-rate-dot {
    background: #7ab0f0;
}

.rate-rare .inv-rate-rarity {
    color: #5a90d0;
}

.rate-rare .inv-rate-pct {
    color: #7ab0f0;
}

.rate-epique {
    background: rgba(150, 80, 220, .07);
    border-color: rgba(150, 80, 220, .25);
}

.rate-epique .inv-rate-dot {
    background: #c090f0;
}

.rate-epique .inv-rate-rarity {
    color: #a070d0;
}

.rate-epique .inv-rate-pct {
    color: #c090f0;
}

.rate-legendaire {
    background: rgba(220, 170, 50, .07);
    border-color: rgba(220, 170, 50, .28);
}

.rate-legendaire .inv-rate-dot {
    background: #e8c060;
}

.rate-legendaire .inv-rate-rarity {
    color: #b89040;
}

.rate-legendaire .inv-rate-pct {
    color: #e8c060;
}

.rate-apex {
    background: rgba(220, 50, 50, .07);
    border-color: rgba(220, 50, 50, .28);
}

.rate-apex .inv-rate-dot {
    background: #f08080;
}

.rate-apex .inv-rate-rarity {
    color: #c05050;
}

.rate-apex .inv-rate-pct {
    color: #f08080;
}

/* ============================================
   OVERLAY OUVERTURE
   ============================================ */

.inv-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(3, 2, 8, .97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.inv-overlay.active {
    display: flex;
}

/* Particules */
.inv-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.inv-particle {
    position: absolute;
    border-radius: 50%;
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: .6;
    }

    100% {
        transform: translateY(-20vh) scale(1);
        opacity: 0;
    }
}

/* ── Phase 1 : booster ── */
.inv-booster-open-stage {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    position: relative;
    z-index: 2;
}

/* Éclairs plein écran — conteneur fixed sur tout l'écran */
.inv-lightning-fullscreen {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.inv-lightning-bolt {
    position: absolute;
    border-radius: 2px;
    opacity: 0;
}

@keyframes boltStrike {
    0% {
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    50% {
        opacity: .7;
    }

    75% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Booster à cliquer — taille +50% : 160→240px */
.inv-booster-open-pack {
    width: 240px;
    height: 315px;
    background: linear-gradient(160deg, #2a1060, #4a2090, #1a0840);
    border: 2px solid rgba(180, 130, 255, .7);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 70px rgba(120, 60, 220, .55);
    cursor: pointer;
    transition: transform .15s ease;
}

.inv-booster-open-pack:hover {
    transform: scale(1.03);
}

.inv-booster-open-pack::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, transparent 50%);
    border-radius: 22px;
}

.inv-booster-open-dino {
    font-size: 5rem;
    filter: drop-shadow(0 0 24px rgba(180, 130, 255, .9));
    animation: boosterPulse 1.5s ease-in-out infinite;
}

@keyframes boosterPulse {

    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px rgba(180, 130, 255, .8));
    }

    50% {
        transform: scale(1.08);
        filter: drop-shadow(0 0 36px rgba(200, 160, 255, 1));
    }
}

.inv-booster-open-label {
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: rgba(200, 168, 240, .8);
    text-transform: uppercase;
}

.inv-booster-open-hint {
    font-size: .82rem;
    color: rgba(200, 168, 240, .45);
    letter-spacing: .12em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
}

/* Halo d'explosion */
.inv-open-halo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    z-index: 4;
}

@keyframes haloExpand {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(6);
        opacity: 0;
    }
}

@keyframes packOpenShake {
    0% {
        transform: rotate(0) scale(1);
    }

    20% {
        transform: rotate(-4deg) scale(1.05);
    }

    40% {
        transform: rotate(4deg) scale(1.08);
    }

    60% {
        transform: rotate(-3deg) scale(1.06);
    }

    80% {
        transform: rotate(2deg) scale(1.04);
    }

    100% {
        transform: rotate(0) scale(1);
    }
}

.inv-booster-open-pack.opening {
    animation: packOpenShake .5s ease forwards;
}

/* ── Phase 2 : résultat cartes ── */
.inv-result-stage {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 20px;
}

.inv-result-stage.visible {
    display: flex;
}

.inv-overlay-title {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: rgba(200, 168, 240, .6);
    margin: 0;
}

.inv-cards-row {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Cartes */
.inv-card {
    width: 140px;
    cursor: pointer;
    perspective: 900px;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .inv-card {
        width: 110px;
    }

    .inv-cards-row {
        gap: 12px;
    }
}

.inv-card-inner {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    transform-style: preserve-3d;
    transition: transform .65s cubic-bezier(.4, 0, .2, 1);
    transform: rotateY(180deg);
}

.inv-card.revealed .inv-card-inner {
    transform: rotateY(0deg);
}

.inv-card-face,
.inv-card-back {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.inv-card-back {
    background: linear-gradient(160deg, #2a1060, #4a2090, #1a0840);
    border: 2px solid rgba(180, 130, 255, .4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: rotateY(180deg);
}

.inv-card-back-dino {
    font-size: 2.4rem;
    filter: blur(2px) drop-shadow(0 0 10px rgba(180, 130, 255, .7));
}

.inv-card-back-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .10) 0%, transparent 50%);
    border-radius: 12px;
}

.inv-card-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px 12px;
    border: 2px solid;
    overflow: hidden;
}

.rarity-commun .inv-card-face {
    background: linear-gradient(180deg, #1a1f14, #0d1009);
    border-color: rgba(180, 180, 180, .5);
}

.rarity-rare .inv-card-face {
    background: linear-gradient(180deg, #0d1a30, #060d1a);
    border-color: rgba(80, 140, 220, .75);
    box-shadow: 0 0 20px rgba(80, 140, 220, .2) inset;
}

.rarity-epique .inv-card-face {
    background: linear-gradient(180deg, #1a0d30, #0d0620);
    border-color: rgba(150, 80, 220, .85);
    box-shadow: 0 0 20px rgba(150, 80, 220, .25) inset;
}

.rarity-legendaire .inv-card-face {
    background: linear-gradient(180deg, #2a1f05, #151003);
    border-color: rgba(220, 170, 50, .95);
    box-shadow: 0 0 24px rgba(220, 170, 50, .3) inset;
}

.rarity-apex .inv-card-face {
    background: linear-gradient(180deg, #200505, #0d0202);
    border-color: rgba(220, 50, 50, .95);
    box-shadow: 0 0 28px rgba(220, 50, 50, .35) inset;
}

.inv-card-emoji {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .6));
}

.inv-card-name {
    font-family: 'Cinzel', serif;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-align: center;
    color: #f4ead2;
    line-height: 1.3;
}

.inv-card-rarity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.badge-commun {
    background: rgba(180, 180, 180, .15);
    color: #b4b4b4;
    border: 1px solid rgba(180, 180, 180, .35);
}

.badge-rare {
    background: rgba(80, 140, 220, .15);
    color: #7ab0f0;
    border: 1px solid rgba(80, 140, 220, .4);
}

.badge-epique {
    background: rgba(150, 80, 220, .18);
    color: #c090f0;
    border: 1px solid rgba(150, 80, 220, .5);
}

.badge-legendaire {
    background: rgba(220, 170, 50, .18);
    color: #e8c060;
    border: 1px solid rgba(220, 170, 50, .55);
}

.badge-apex {
    background: rgba(220, 50, 50, .18);
    color: #f08080;
    border: 1px solid rgba(220, 50, 50, .55);
}

.rarity-legendaire .inv-card-face::after,
.rarity-apex .inv-card-face::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, transparent 40%, rgba(255, 255, 255, .06) 100%);
    pointer-events: none;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(.82);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.inv-card {
    opacity: 0;
}

.inv-card.appeared {
    animation: cardAppear .5s cubic-bezier(.2, 0, .2, 1) forwards;
}

@keyframes rarityFlash {
    0% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.inv-rarity-flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    animation: rarityFlash .8s ease forwards;
}

.inv-reveal-all-btn {
    padding: 16px 42px;
    background: linear-gradient(135deg, #6030b0, #9060d0);
    border: none;
    border-radius: 16px;
    color: #f0e8ff;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .06em;
    cursor: pointer;
    transition: all .2s ease;
}

.inv-reveal-all-btn:hover {
    background: linear-gradient(135deg, #7040c0, #a070e0);
    transform: translateY(-2px);
}

.inv-close-btn {
    padding: 13px 30px;
    background: transparent;
    border: 1px solid rgba(200, 168, 240, .3);
    border-radius: 999px;
    color: rgba(200, 168, 240, .7);
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    display: none;
    transition: all .2s ease;
}

.inv-close-btn:hover {
    border-color: rgba(200, 168, 240, .7);
    color: #c8a8f0;
}

.inv-instruction {
    font-size: .8rem;
    color: rgba(200, 168, 240, .45);
    letter-spacing: .12em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
    margin: 0;
}

@keyframes pulse {

    0%,
    100% {
        opacity: .45;
    }

    50% {
        opacity: .9;
    }
}

/* ============================================
   OVERLAY RÉVÉLATION DRAMATIQUE
   ============================================ */

.inv-dramatic {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
}

.inv-dramatic.active {
    display: flex;
}

.inv-dramatic-rays {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inv-dramatic-rays svg {
    position: absolute;
    width: 120vmax;
    height: 120vmax;
    animation: raysRotate 8s linear infinite;
    opacity: .4;
}

@keyframes raysRotate {
    to {
        transform: rotate(360deg);
    }
}

.inv-dramatic-card {
    width: 200px;
    aspect-ratio: 2/3;
    position: relative;
    z-index: 2;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 16px 16px;
    border: 3px solid;
    animation: dramaticReveal .8s cubic-bezier(.2, 0, .2, 1) forwards;
    opacity: 0;
}

@keyframes dramaticReveal {
    0% {
        opacity: 0;
        transform: scale(.4) rotateY(90deg);
    }

    60% {
        transform: scale(1.08) rotateY(-5deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

.inv-dramatic-card.rarity-legendaire {
    background: linear-gradient(180deg, #2a1f05, #151003);
    border-color: #dcaa32;
    box-shadow: 0 0 70px rgba(220, 170, 50, .65), 0 0 140px rgba(220, 170, 50, .3);
}

.inv-dramatic-card.rarity-apex {
    background: linear-gradient(180deg, #200505, #0d0202);
    border-color: #dc3232;
    box-shadow: 0 0 70px rgba(220, 50, 50, .65), 0 0 140px rgba(220, 50, 50, .3);
}

.inv-dramatic-emoji {
    font-size: 4.5rem;
    filter: drop-shadow(0 0 24px rgba(255, 255, 255, .45));
}

.inv-dramatic-name {
    font-family: 'Cinzel', serif;
    font-size: .85rem;
    font-weight: 700;
    color: #f4ead2;
    text-align: center;
    letter-spacing: .06em;
}

.inv-dramatic-label {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    animation: labelFadeIn .5s .6s ease forwards;
    opacity: 0;
}

@keyframes labelFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.inv-dramatic-label.legendaire {
    color: #dcaa32;
}

.inv-dramatic-label.apex {
    color: #e05050;
}

.inv-dramatic-continue {
    margin-top: 8px;
    padding: 13px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    color: rgba(255, 255, 255, .6);
    font-family: 'Cinzel', serif;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    z-index: 2;
    animation: labelFadeIn .5s 1.2s ease forwards;
    opacity: 0;
    transition: all .2s;
}

.inv-dramatic-continue:hover {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

/* ============================================
   TOAST
   ============================================ */

.inv-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 26px;
    background: rgba(155, 47, 36, .92);
    border: 1px solid rgba(232, 90, 79, .65);
    border-radius: 999px;
    color: #ffd5d0;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .04em;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: all .3s ease;
    z-index: 3000;
    pointer-events: none;
    white-space: nowrap;
}

.inv-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   PRIX BARRÉ ×10
   ============================================ */

.inv-cost-strike {
    text-decoration: line-through;
    color: rgba(201, 155, 74, .4);
    font-size: .85em;
}

.inv-cost-promo {
    color: #c99b4a;
}

.inv-cost-save {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(143, 191, 77, .18);
    border: 1px solid rgba(143, 191, 77, .5);
    border-radius: 999px;
    color: #aee87a;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-left: 6px;
    vertical-align: middle;
}

/* Bouton multi avec prix barré intégré */
.inv-btn-multi-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.inv-btn-multi-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inv-btn-cost-strike {
    font-size: .65rem;
    font-family: Inter, sans-serif;
    font-weight: 600;
    text-decoration: line-through;
    opacity: .45;
    color: #c99b4a;
}

.inv-btn-cost-promo {
    font-size: .75rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: #e8c060;
}

/* ============================================
   ANIMATION BOOSTER — onde de choc
   ============================================ */

@keyframes shockwave {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: .9;
        border-width: 6px;
    }

    100% {
        transform: translate(-50%, -50%) scale(8);
        opacity: 0;
        border-width: 1px;
    }
}

.inv-shockwave {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid;
    pointer-events: none;
    z-index: 8;
    animation: shockwave .8s ease-out forwards;
}

@keyframes packExplode {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    40% {
        transform: scale(1.15);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}
