/* --- Adventure Panel --- */
.adventure-wrap {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.adventure-header {
    text-align: center;
    position: relative;
}
.adventure-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--gold-light);
    margin: 0 0 6px;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(var(--gold-rgb), 0.3);
}
.adventure-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 560px;
}

/* ============================================
   Sac d'exploration - pavé intégré à la page Expéditions.
   Remplace l'ancien bouton header. DA "Plaque d'obsidienne tiède"
   (même liseré or / fond tiède que les autres actions primaires).
   Positionné en haut-droite du header, passe en pleine largeur
   centrée sous le subtitle en mobile.
   ============================================ */
.adv-bag-pill {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    grid-template-columns: 48px 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;
    padding: 14px 18px 14px 16px;
    min-width: 300px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: var(--gold-text-warm);
    background: linear-gradient(165deg, #1c1815 0%, #120f0d 55%, #0b0908 100%);
    border: 1px solid rgba(var(--gold-rgb), 0.55);
    border-radius: 10px;
    box-shadow:
        inset 0 1px 0 rgba(var(--gold-rgb), 0.22),
        inset 0 -10px 14px -10px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(0, 0, 0, 0.5),
        0 2px 8px -2px rgba(0, 0, 0, 0.45);
    transition:
        background 0.25s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.25s ease,
        transform 0.18s ease;
}
.adv-bag-pill:hover {
    background: linear-gradient(165deg, #241e19 0%, #181310 55%, #0d0a08 100%);
    border-color: rgba(var(--gold-rgb), 0.95);
    color: var(--gold-text-light);
    box-shadow:
        inset 0 1px 0 rgba(var(--gold-rgb), 0.38),
        inset 0 -10px 14px -10px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(0, 0, 0, 0.5),
        0 3px 12px -2px rgba(0, 0, 0, 0.5),
        0 0 16px rgba(var(--gold-rgb), 0.28);
    transform: translateY(-1px);
}
.adv-bag-pill-icon {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 7px rgba(var(--gold-rgb), 0.38));
}
.adv-bag-pill-body {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.adv-bag-pill-label {
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gold);
    line-height: 1;
}
.adv-bag-pill-cap {
    font-family: 'Oswald', sans-serif;
    font-size: 1.05rem;
    color: var(--text-main);
    letter-spacing: 0.5px;
    line-height: 1;
    white-space: nowrap;
}
.adv-bag-pill-cap #adv-bag-cap {
    font-size: 1.3rem;
    color: var(--gold-text-light);
    font-weight: 600;
}
.adv-bag-pill-sep {
    opacity: 0.5;
    margin: 0 3px;
}
.adv-bag-pill-unit {
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin-left: 5px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}
.adv-bag-pill-chev {
    grid-row: 1 / span 2;
    grid-column: 3;
    font-size: 1.7rem;
    color: var(--gold);
    opacity: 0.65;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.adv-bag-pill:hover .adv-bag-pill-chev {
    opacity: 1;
    transform: translateX(3px);
}
.adv-bag-pill-track {
    grid-column: 2;
    grid-row: 2;
    height: 4px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}
.adv-bag-pill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark) 0%, var(--gold) 55%, var(--gold-light) 100%);
    box-shadow: 0 0 8px rgba(var(--gold-rgb), 0.45);
    transition: width 0.3s ease;
}

@media (max-width: 760px) {
    .adv-bag-pill {
        position: static;
        margin: 14px auto 0;
    }
}

.adv-section {
    background: rgba(20, 20, 40, 0.8);
    border: 1px solid var(--gold);
    border-radius: 14px;
    padding: 16px 22px;
}
.adv-section-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 0.88rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(var(--gold-rgb), 0.12);
}
.adv-section-hint {
    color: var(--text-secondary-blue);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    font-weight: 500;
}
.adv-section-hint.active { color: var(--gold-light); }

/* ============================
   Zone Carousel - Portrait Cards
   ============================ */
.xpd-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
}
.xpd-carousel-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
    padding: 20px 0;
    height: 520px;
}

/* --- Arrows --- */
.xpd-carousel-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(var(--gold-rgb), 0.25);
    background: rgba(10, 10, 24, 0.8);
    color: var(--text-secondary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    z-index: 3;
    backdrop-filter: blur(8px);
}
.xpd-carousel-arrow:hover {
    background: rgba(var(--gold-rgb), 0.12);
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.3);
    transform: scale(1.1);
}
.xpd-carousel-arrow span { line-height: 1; margin-top: -1px; }

/* --- Dots --- */
.xpd-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}
.adv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-input);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.adv-dot:hover { border-color: var(--gold); background: var(--border); }
.adv-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--gold);
    border-color: var(--gold-light);
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.6);
}

/* ============================================
   ENDGAME : Antre de Nyragh (hors carrousel)
   Section dediee sous les 5 zones standards. Style violet/neutre pour
   contraster avec les zones starter et signaler le contenu post-game.
   ============================================ */
.adv-endgame {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 16px 16px;
}
.adv-endgame-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 640px;
    color: rgba(170, 130, 255, 0.85);
    font-family: 'Cinzel', serif;
    font-size: 0.86rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(170, 130, 255, 0.4);
}
.adv-endgame-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(170, 130, 255, 0.55) 50%,
        transparent 100%);
}
.adv-endgame-divider-label {
    flex: 0 0 auto;
    white-space: nowrap;
}
.adv-endgame-card {
    /* Reprend le layout des zone-cards standard mais surcharge les couleurs
       et le glow pour une identite endgame. */
    position: relative;
    flex: 0 0 auto;
    width: 280px;
    height: 420px;
    border-color: rgba(170, 130, 255, 0.6) !important;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(170, 130, 255, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
    background:
        radial-gradient(140% 80% at 50% 0%, rgba(170, 130, 255, 0.18), transparent 65%),
        linear-gradient(180deg, rgba(28, 18, 46, 0.96) 0%, rgba(12, 8, 22, 0.98) 100%) !important;
    animation: adv-endgame-pulse 3.5s ease-in-out infinite;
}
.adv-endgame-card:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(190, 150, 255, 0.85) !important;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.65),
        0 0 48px rgba(170, 130, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.adv-endgame-card .adv-card-name {
    color: rgb(210, 180, 255) !important;
    text-shadow: 0 0 12px rgba(170, 130, 255, 0.45);
}
.adv-endgame-card .adv-card-elem-tag {
    background: linear-gradient(180deg, rgba(170, 130, 255, 0.22), rgba(110, 70, 200, 0.2)) !important;
    border-color: rgba(190, 150, 255, 0.55) !important;
    color: rgb(220, 200, 255) !important;
}
.adv-endgame-card .adv-card-border-glow {
    background: radial-gradient(circle at center,
        rgba(170, 130, 255, 0.28) 0%,
        transparent 70%) !important;
}

/* Tag "Endgame" en haut-droite de la card */
.adv-endgame-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgb(170, 130, 255), rgb(110, 70, 200));
    border: 1px solid rgba(220, 200, 255, 0.7);
    border-radius: 999px;
    color: var(--white, #fff);
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5),
                0 0 14px rgba(170, 130, 255, 0.45);
    pointer-events: none;
}

@keyframes adv-endgame-pulse {
    0%, 100% { box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(170, 130, 255, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.06); }
    50% { box-shadow:
        0 22px 44px rgba(0, 0, 0, 0.55),
        0 0 44px rgba(170, 130, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.08); }
}

@media (max-width: 640px) {
    .adv-endgame-card { width: 240px; height: 360px; }
    .adv-endgame-divider { font-size: 0.76rem; gap: 10px; }
}

/* Card endgame en état "agrandi" (1er click) : on garde la taille native
   (280px) au lieu d'hériter du width:400px du carrousel principal — la card
   est isolée hors carrousel, pas besoin de prendre l'espace track. */
.adv-endgame-card.adv-active {
    flex: 0 0 280px;
    width: 280px;
}
@media (max-width: 640px) {
    .adv-endgame-card.adv-active { flex: 0 0 240px; width: 240px; }
}

/* ============================
   Zone Card - Portrait style
   ============================ */
.adv-card-boss-canvas {
       display: block;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1;
}
.adv-zone-card {
    position: relative;
    flex: 0 0 200px;
    width: 200px;
    height: 480px;
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    background: var(--bg-deep);
    font-family: 'Inter', sans-serif;
    color: var(--text-panel);
    transition: flex-basis 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.45s,
                box-shadow 0.45s;
    transform: scale(0.88);
    filter: brightness(0.55) saturate(0.6);
    z-index: 1;
}
.adv-zone-card.adv-active {
    flex: 0 0 400px;
    width: 400px;
    transform: scale(1);
    filter: brightness(1) saturate(1);
    z-index: 2;
}
.adv-zone-card:hover:not([data-locked="1"]):not(.adv-active) {
    filter: brightness(0.75) saturate(0.8);
    transform: scale(0.92);
}
.adv-zone-card[data-locked="1"] {
    cursor: not-allowed;
    opacity: 0.35;
    filter: grayscale(0.7) brightness(0.4);
}

/* --- Corruption --- */
.adv-zone-card.is-corrupted {
    border-color: var(--corruption);
    box-shadow: 0 0 24px rgba(var(--corruption-rgb), 0.35),
                inset 0 0 40px rgba(var(--corruption-dark-rgb), 0.25);
    animation: corruption-card-pulse 2.4s ease-in-out infinite;
}
.adv-zone-card.is-corrupted::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(var(--corruption-rgb), 0.18) 0%,
        rgba(var(--corruption-dark-rgb), 0.22) 60%,
        transparent 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
    z-index: 5;
    border-radius: 14px;
}
@keyframes corruption-card-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(var(--corruption-rgb), 0.30),
                           inset 0 0 36px rgba(var(--corruption-dark-rgb), 0.22); }
    50%      { box-shadow: 0 0 32px rgba(var(--corruption-rgb), 0.55),
                           inset 0 0 52px rgba(var(--corruption-dark-rgb), 0.32); }
}

.corruption-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--red) 0%, var(--corruption-dark) 100%);
    border: 1px solid var(--corruption);
    border-radius: 8px;
    color: var(--white, #fff);
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(var(--corruption-dark-rgb), 0.6),
                0 0 12px rgba(var(--corruption-rgb), 0.4);
    pointer-events: none;
    user-select: none;
}
.corruption-badge-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--corruption) 30%, var(--red) 100%);
    box-shadow: 0 0 8px var(--corruption);
    animation: corruption-dot-pulse 1.2s ease-in-out infinite;
}
.corruption-badge-pct {
    color: var(--gold-text-warm, #FFE29A);
}
.corruption-badge-timer {
    opacity: 0.85;
    font-size: 11px;
    padding-left: 6px;
    
}
@keyframes corruption-dot-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.7; }
}

/* ============================================
   INVASION DE DRAGON (event)
   Style or/feu pour distinguer de la corruption violette. Une zone peut etre
   simultanement corrompue ET invadee - les 2 effets visuels coexistent (badge
   corruption haut-gauche, badge invasion haut-droite).
   ============================================ */
.adv-zone-card.is-invaded {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(var(--gold-rgb), 0.40),
                inset 0 0 40px rgba(var(--orange-rgb), 0.18);
    animation: invasion-card-pulse 2.4s ease-in-out infinite;
}
.adv-zone-card.is-invaded::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center,
        rgba(var(--gold-rgb), 0.10) 0%,
        rgba(var(--orange-rgb), 0.14) 60%,
        transparent 100%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 4;
    border-radius: 14px;
}
@keyframes invasion-card-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.35),
                           inset 0 0 36px rgba(var(--orange-rgb), 0.16); }
    50%      { box-shadow: 0 0 32px rgba(var(--gold-rgb), 0.55),
                           inset 0 0 48px rgba(var(--orange-rgb), 0.24); }
}

.invasion-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--gold) 100%);
    border: 1px solid var(--gold);
    border-radius: 8px;
    color: var(--white, #fff);
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(var(--gold-rgb), 0.45);
    pointer-events: none;
}
.invasion-badge-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold) 30%, var(--orange) 100%);
    box-shadow: 0 0 8px var(--gold);
    animation: invasion-dot-pulse 1.2s ease-in-out infinite;
}
.invasion-badge-name {
    color: var(--white, #fff);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.invasion-badge-timer {
    opacity: 0.85;
    font-size: 11px;
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}
@keyframes invasion-dot-pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.7; }
}

/* --- Barre de corruption dans le detail de zone ---
   Affichee uniquement si la zone selectionnee est celle actuellement corrompue.
   Presente sous le header de la zone detail, au-dessus du grid drops+difficultes. */
.adv-corruption-bar {
    background: linear-gradient(135deg,
        rgba(43, 18, 68, 0.85) 0%,
        rgba(24, 12, 40, 0.9) 100%);
    border: 1px solid rgba(176, 102, 255, 0.45);
    border-radius: 10px;
    padding: 12px 16px;
    margin: 0 0 18px 0;
    box-shadow:
        0 0 0 1px rgba(176, 102, 255, 0.08) inset,
        0 4px 14px rgba(106, 0, 204, 0.15);
    animation: adv-corr-pulse 3.2s ease-in-out infinite;
}
@keyframes adv-corr-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(176, 102, 255, 0.08) inset, 0 4px 14px rgba(106, 0, 204, 0.15); }
    50%      { box-shadow: 0 0 0 1px rgba(176, 102, 255, 0.18) inset, 0 4px 22px rgba(176, 102, 255, 0.28); }
}
.adv-corr-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}
.adv-corr-label {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--corruption-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(176, 102, 255, 0.35);
}
.adv-corr-timer {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--corruption-pale);
    letter-spacing: 0.5px;
}
.adv-corr-track {
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(176, 102, 255, 0.35);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}
.adv-corr-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
        var(--corruption) 0%,
        var(--corruption-mid) 60%,
        var(--corruption-deeper) 100%);
    box-shadow: 0 0 8px rgba(176, 102, 255, 0.5);
    transition: width 0.6s ease;
}
.adv-corr-caption {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    color: rgba(211, 189, 246, 0.72);
}
.adv-corr-pct {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--corruption-text);
    font-size: 13px;
}
/* Compteur participation : "X/Y corrompus vaincus pour valider votre participation" */
.adv-corr-participation {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(var(--corruption-rgb), 0.08);
    border: 1px solid rgba(var(--corruption-rgb), 0.25);
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    color: rgba(211, 189, 246, 0.85);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.adv-corr-participation-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--corruption);
    box-shadow: 0 0 6px var(--corruption);
    flex-shrink: 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
/* Etat valide : la barre BG/border/texte passent en vert, le dot reste violet
   pour rappeler la cible (la corruption a tuer). Pas de override sur le dot. */
.adv-corr-participation.is-validated {
    background: rgba(76, 175, 80, 0.12);
    border-color: rgba(76, 175, 80, 0.45);
    color: var(--text-gain, #d4ffd4);
}

/* Compteur Gardiens engages - discret, juste en dessous. */
.adv-corr-engaged {
    margin-top: 4px;
    padding-left: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(211, 189, 246, 0.6);
}

.adv-corr-bonus-hint {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.10), rgba(var(--gold-rgb), 0.04));
    
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 12px;
    font-style: italic;
    color: var(--gold-light);
    letter-spacing: 0.2px;
}
.adv-corr-bonus-hint strong {
    font-style: normal;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
}

/* Undiscovered species - handled via canvas drawFrame hidden flag */

/* --- Animated border glow (active only) --- */
.adv-card-border-glow {
    position: absolute;
    inset: -1px;
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
    z-index: 3;
}
.adv-zone-card.adv-active .adv-card-border-glow { opacity: 1; }

/* --- Shine sweep on hover (active) --- */
.adv-card-shine {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
    border-radius: 14px;
}
.adv-card-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(105deg, transparent 40%, rgba(var(--white-rgb),0.06) 45%, rgba(var(--white-rgb),0.12) 50%, rgba(var(--white-rgb),0.06) 55%, transparent 60%);
    transform: skewX(-15deg);
    opacity: 0;
}
.adv-zone-card.adv-active:hover .adv-card-shine::after {
    animation: adv-shine-sweep 0.7s ease-out forwards;
}
@keyframes adv-shine-sweep {
    0%   { left: -60%; opacity: 1; }
    100% { left: 130%; opacity: 0; }
}

/* --- Card inner --- */
.adv-card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Boss area */
.adv-card-boss {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 30px;
    position: relative;
    overflow: hidden;
    min-height: 0;
    animation: adv-egg-float 3s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.adv-zone-card.adv-active .adv-card-boss {
    animation: adv-boss-float 3.5s ease-in-out infinite;
}
.adv-zone-card.adv-active:hover .adv-card-boss {
    transform: scale(1.08) translateY(-6px);
}
@keyframes adv-egg-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}
@keyframes adv-boss-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Footer info - pinned to bottom, no layout shift */
.adv-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 14px 16px;
    text-align: center;
    z-index: 2;
    background: linear-gradient(0deg, rgba(5,5,15,0.95) 40%, transparent 100%);
}
.adv-card-elem-badge {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(var(--black-rgb),0.6);
    border: 1px solid rgba(var(--white-rgb),0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    backdrop-filter: blur(4px);
}
.adv-card-elem-icon {
    width: 20px;
    height: 20px;
   }
.adv-card-name {
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0 0 4px;
    text-shadow: 0 2px 8px rgba(var(--black-rgb),0.9);
    letter-spacing: 0.5px;
    line-height: 1.2;
}
.adv-card-lore {
    font-size: 0.68rem;
    font-style: italic;
    color: var(--text-secondary-dark);
    line-height: 1.35;
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s 0.15s ease, opacity 0.4s 0.15s ease, margin 0.4s 0.15s ease;
}
.adv-zone-card.adv-active .adv-card-lore {
    max-height: 3.5em;
    opacity: 1;
    margin: 0 0 6px;
}
.adv-card-elem-tag {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 0 8px;
    border: 1px solid rgba(var(--white-rgb),0.06);
    border-radius: 3px;
    background: rgba(var(--white-rgb),0.03);
    color: var(--text-secondary);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s 0.2s ease, opacity 0.3s 0.2s ease, padding 0.3s 0.2s ease;
}
.adv-zone-card.adv-active .adv-card-elem-tag {
    max-height: 2em;
    opacity: 1;
    padding: 2px 8px;
}

/* Active card sizes */
.adv-zone-card.adv-active .adv-card-name { font-size: 1.15rem; }
.adv-zone-card.adv-active .adv-card-lore { font-size: 0.78rem; -webkit-line-clamp: 3; }
.adv-zone-card.adv-active .adv-card-elem-badge { width: 36px; height: 36px; }
.adv-zone-card.adv-active .adv-card-elem-icon { width: 24px; height: 24px; }

/* ============================
   Element themes
   ============================ */
/* Earth */
.adv-zone-earth { background: linear-gradient(170deg, var(--zone-earth-1) 0%, var(--zone-earth-2) 50%, var(--zone-earth-3) 100%); }
.adv-zone-earth .adv-card-boss::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(80,200,60,0.15), transparent 65%);
}
.adv-zone-earth.adv-active { border-color: rgba(100,200,80,0.4); }
.adv-zone-earth.adv-active .adv-card-border-glow {
    box-shadow: inset 0 0 20px rgba(100,200,80,0.15), 0 0 30px rgba(100,200,80,0.2);
}
.adv-zone-earth .adv-card-boss-canvas { filter: drop-shadow(0 6px 20px rgba(80,180,60,0.4)); }
.adv-zone-earth .adv-card-elem-tag { color: var(--zone-earth-tag); border-color: rgba(100,200,80,0.2); }

/* Fire */
.adv-zone-fire { background: linear-gradient(170deg, var(--zone-fire-1) 0%, var(--zone-fire-2) 50%, var(--zone-fire-3) 100%); }
.adv-zone-fire .adv-card-boss::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(240,100,30,0.18), transparent 65%);
}
.adv-zone-fire.adv-active { border-color: rgba(240,100,30,0.4); }
.adv-zone-fire.adv-active .adv-card-border-glow {
    box-shadow: inset 0 0 20px rgba(240,100,30,0.15), 0 0 30px rgba(240,80,20,0.2);
}
.adv-zone-fire .adv-card-boss-canvas { filter: drop-shadow(0 6px 20px rgba(240,80,20,0.5)); }
.adv-zone-fire .adv-card-elem-tag { color: var(--zone-fire-tag); border-color: rgba(240,100,30,0.2); }

/* Water */
.adv-zone-water { background: linear-gradient(170deg, var(--zone-water-1) 0%, var(--zone-water-2) 50%, var(--zone-water-3) 100%); }
.adv-zone-water .adv-card-boss::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(60,150,240,0.15), transparent 65%);
}
.adv-zone-water.adv-active { border-color: rgba(60,150,240,0.4); }
.adv-zone-water.adv-active .adv-card-border-glow {
    box-shadow: inset 0 0 20px rgba(60,150,240,0.15), 0 0 30px rgba(60,140,240,0.2);
}
.adv-zone-water .adv-card-boss-canvas { filter: drop-shadow(0 6px 20px rgba(60,140,240,0.4)); }
.adv-zone-water .adv-card-elem-tag { color: var(--zone-water-tag); border-color: rgba(60,150,240,0.2); }

/* Wind */
.adv-zone-wind { background: linear-gradient(170deg, var(--zone-wind-1) 0%, var(--zone-wind-2) 50%, var(--zone-wind-3) 100%); }
.adv-zone-wind .adv-card-boss::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(160,230,190,0.12), transparent 65%);
}
.adv-zone-wind.adv-active { border-color: rgba(160,230,190,0.35); }
.adv-zone-wind.adv-active .adv-card-border-glow {
    box-shadow: inset 0 0 20px rgba(160,230,190,0.12), 0 0 30px rgba(160,230,190,0.18);
}
.adv-zone-wind .adv-card-boss-canvas { filter: drop-shadow(0 6px 20px rgba(140,220,180,0.35)); }
.adv-zone-wind .adv-card-elem-tag { color: var(--zone-wind-tag); border-color: rgba(160,230,190,0.2); }

/* Lightning */
.adv-zone-lightning { background: linear-gradient(170deg, var(--zone-lightning-1) 0%, var(--zone-lightning-2) 50%, var(--zone-lightning-3) 100%); }
.adv-zone-lightning .adv-card-boss::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(240,210,60,0.15), transparent 65%);
}
.adv-zone-lightning.adv-active { border-color: rgba(240,210,60,0.4); }
.adv-zone-lightning.adv-active .adv-card-border-glow {
    box-shadow: inset 0 0 20px rgba(240,210,60,0.15), 0 0 30px rgba(240,200,40,0.2);
}
.adv-zone-lightning .adv-card-boss-canvas { filter: drop-shadow(0 6px 20px rgba(240,200,40,0.45)); }
.adv-zone-lightning .adv-card-elem-tag { color: var(--zone-lightning-tag); border-color: rgba(240,210,60,0.2); }

/* Difficulty pills */
.adv-difficulties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.adv-diff {
    background: rgba(10, 10, 24, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-panel);
    font-family: 'Inter', sans-serif;
    position: relative;
}
.adv-diff:hover:not([data-locked="1"]) {
    transform: translateY(-2px);
    border-color: var(--border-input);
}
.adv-diff[data-locked="1"] {
    cursor: not-allowed;
    opacity: 0.4;
}
.adv-diff-dots {
    display: flex;
    gap: 3px;
}
.adv-diff-dots i {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
    border: 1px solid var(--border-light);
}
/* Fill dots per tier - couleurs de rarete */
.adv-diff-1 .adv-diff-dots i:nth-child(-n+1) { background: var(--rarity-fragile); border-color: var(--diff-1-border); }
.adv-diff-2 .adv-diff-dots i:nth-child(-n+2) { background: var(--rarity-robuste); border-color: var(--diff-2-border); }
.adv-diff-3 .adv-diff-dots i:nth-child(-n+3) { background: var(--rarity-alpha); border-color: var(--diff-3-border); }
.adv-diff-4 .adv-diff-dots i:nth-child(-n+4) { background: var(--rarity-ancien); border-color: var(--diff-4-border); }
.adv-diff-5 .adv-diff-dots i:nth-child(-n+5) {
    background: var(--rarity-primordial);
    border-color: var(--diff-5-border);
    box-shadow: 0 0 6px rgba(var(--rarity-primordial-rgb), 0.6);
}
.adv-diff-6 .adv-diff-dots i:nth-child(-n+6) {
    background: var(--rarity-primordial_pur);
    border-color: var(--diff-6-border);
    box-shadow: 0 0 8px rgba(var(--rarity-primordial_pur-rgb), 0.7);
}
.adv-diff-name {
    font-family: 'Cinzel', serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--gold-light);
}
.adv-diff-desc {
    font-size: 0.7rem;
    color: var(--text-secondary-blue);
    letter-spacing: 0.3px;
}
.adv-diff.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), 0 0 16px rgba(var(--gold-rgb), 0.3);
    background: rgba(var(--gold-rgb), 0.08);
}
.adv-diff.selected .adv-diff-name { color: var(--gold-title); }

/* First-victory reward badge : ecaille-fantome en coin de la carte difficulte.
   Couleur du border/halo = couleur du tier (var --badge-tier-color, injectee en JS). */
.adv-diff-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    padding: 2px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    pointer-events: auto;
    user-select: none;
    z-index: 2;
    line-height: 0;
    --badge-tier-color: var(--gold);
}
.adv-diff-badge svg,
.adv-diff-badge img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Teaser : ecaille grisee, bordure pointillee au tier */
.adv-diff-badge.is-teaser {
    background: rgba(10, 10, 24, 0.72);
    border: 1px dashed var(--badge-tier-color);
    cursor: default;
}
.adv-diff-badge.is-teaser img {
    filter: grayscale(1) brightness(0.55) contrast(0.9);
    opacity: 0.75;
}
.adv-diff[data-locked="1"] .adv-diff-badge.is-teaser { opacity: 0.5; }

/* Reward : ecaille pleine couleur, halo pulsant au tier, cliquable */
.adv-diff-badge.is-reward {
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,0.18), rgba(10,10,24,0.85));
    border: 2px solid var(--badge-tier-color);
    cursor: pointer;
    box-shadow: 0 0 10px var(--badge-tier-color), inset 0 0 6px rgba(var(--black-rgb), 0.4);
    animation: adv-badge-pulse 1.6s ease-in-out infinite;
}
/* Halos expanding (option B) : 2 anneaux dorés qui pulsent vers l'exterieur,
   decales pour effet "wave continue". Attire l'oeil meme en vision peripherique
   sans flooder l'ecran (vs option C avec sparkles). */
.adv-diff-badge.is-reward::before,
.adv-diff-badge.is-reward::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--badge-tier-color);
    pointer-events: none;
    opacity: 0;
    animation: adv-badge-halo 2s ease-out infinite;
}
.adv-diff-badge.is-reward::after {
    animation-delay: 1s;
}
@keyframes adv-badge-halo {
    0%   { transform: scale(0.85); opacity: 0.85; }
    100% { transform: scale(2.4);  opacity: 0;    }
}
.adv-diff-badge.is-reward img {
    filter: drop-shadow(0 0 3px var(--badge-tier-color));
    /* Au-dessus des pseudos pour rester nette quand les halos s'etendent. */
    position: relative;
    z-index: 1;
}
.adv-diff-badge.is-reward:hover {
    transform: scale(1.15);
}
.adv-diff-badge.is-reward:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}
@keyframes adv-badge-pulse {
    0%, 100% { box-shadow: 0 0 8px var(--badge-tier-color),  inset 0 0 6px rgba(var(--black-rgb), 0.4); transform: scale(1);    }
    50%      { box-shadow: 0 0 18px var(--badge-tier-color), inset 0 0 6px rgba(var(--black-rgb), 0.4); transform: scale(1.08); }
}

/* Done : check vert */
.adv-diff-badge.is-done {
    background: rgba(var(--success-rgb), 0.22);
    border: 1px solid rgba(var(--success-rgb), 0.75);
    color: var(--success-light);
    cursor: default;
    padding: 4px;
}

/* Reveal modal */
.adv-reward-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.adv-reward-overlay.is-visible { opacity: 1; }
.adv-reward-card {
    position: relative;
    min-width: 320px;
    max-width: 420px;
    padding: 32px 32px 24px;
    background: linear-gradient(180deg, rgba(30, 22, 10, 0.98), rgba(12, 10, 20, 0.98));
    border: 1px solid rgba(var(--gold-rgb), 0.4);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(var(--gold-rgb), 0.15);
    text-align: center;
    transform: scale(0.85) translateY(20px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1.4, 0.55, 1), opacity 0.3s ease;
}
.adv-reward-overlay.is-visible .adv-reward-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.adv-reward-title {
    font-family: 'Cinzel', serif;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 18px;
}
.adv-reward-icon-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle at center, var(--rev-glow, rgba(var(--gold-rgb), 0.45)) 0%, transparent 70%);
}
.adv-reward-icon-wrap::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--rev-border, var(--gold));
    opacity: 0.5;
    animation: adv-reward-ring 2s ease-in-out infinite;
}
@keyframes adv-reward-ring {
    0%, 100% { transform: scale(1);    opacity: 0.5; }
    50%      { transform: scale(1.08); opacity: 0.2; }
}
.adv-reward-icon {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 12px var(--rev-glow, rgba(var(--gold-rgb), 0.8)));
    animation: adv-reward-float 3s ease-in-out infinite;
}
@keyframes adv-reward-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
.adv-reward-name {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    color: var(--gold-light);
    margin: 0 0 6px;
}
.adv-reward-tier {
    font-family: 'Oswald', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--rev-border, var(--gold));
    margin-bottom: 14px;
}
.adv-reward-bonus {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    color: var(--success-light);
    margin-bottom: 20px;
    text-shadow: 0 0 12px rgba(var(--success-rgb), 0.4);
}
.adv-reward-bonus .adv-reward-bonus-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary-blue);
    margin-bottom: 4px;
    text-shadow: none;
}
.adv-reward-close {
    font-family: 'Cinzel', serif;
    padding: 10px 28px;
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.2), rgba(var(--gold-rgb), 0.08));
    border: 1px solid rgba(var(--gold-rgb), 0.5);
    color: var(--gold-light);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: all 0.2s;
}
.adv-reward-close:hover {
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.35), rgba(var(--gold-rgb), 0.15));
    border-color: var(--gold);
}

/* Actions */
.adventure-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

/* Toggle "Mode infini" */
.adv-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--gold);
    border-radius: 4px;
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.10), rgba(var(--gold-rgb), 0.04));
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    user-select: none;
    transition: filter 0.2s, opacity 0.2s, border-color 0.2s;
}
.adv-mode-toggle:hover:not(.is-locked) {
    filter: brightness(1.25);
}
.adv-mode-toggle input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid var(--gold);
    border-radius: 3px;
    background: rgba(var(--black-rgb), 0.4);
    position: relative;
    margin: 0;
}
.adv-mode-toggle input[type="checkbox"]:checked {
    background: var(--gold);
}
.adv-mode-toggle input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 0px;
    width: 5px;
    height: 10px;
    border: solid var(--black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Etat locked : cadenas visible, stroke dore attenue, curseur DA conserve
   (jamais le "not-allowed" systeme - le cadenas + tooltip portent le sens) */
.adv-mode-toggle.is-locked {
    opacity: 0.55;
    border-color: var(--gold-border);
    filter: grayscale(0.5);
}
.adv-mode-toggle.is-locked .adv-mode-toggle-label {
    color: var(--text-secondary);
}
.adv-mode-toggle.is-locked input[type="checkbox"] {
    border-color: var(--gold-border);
    background: rgba(var(--black-rgb), 0.25);
    /* Laisse passer le hover au label (Chrome bloque mouseenter sur inputs disabled) */
    pointer-events: none;
}
/* Force l'heritage du curseur custom (sinon le navigateur ajoute son
   not-allowed natif sur les inputs disabled) */
.adv-mode-toggle,
.adv-mode-toggle input,
.adv-mode-toggle input:disabled,
.adv-mode-toggle .adv-mode-toggle-label,
.adv-mode-toggle .adv-mode-lock {
    cursor: inherit;
}
.adv-mode-toggle:not(.is-locked),
.adv-mode-toggle:not(.is-locked) input,
.adv-mode-toggle:not(.is-locked) .adv-mode-toggle-label {
    cursor: pointer;
}
/* Cadenas : visible uniquement quand locked */
.adv-mode-lock {
    display: none;
    fill: var(--gold);
    flex-shrink: 0;
    margin-left: 2px;
}
.adv-mode-toggle.is-locked .adv-mode-lock {
    display: inline-block;
}
.btn-adventure-main .btn-adventure-label {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    color: var(--white);
    text-shadow: -1px -1px 0 var(--black), 1px -1px 0 var(--black), -1px 1px 0 var(--black), 1px 1px 0 var(--black), 0 0 4px rgba(var(--black-rgb),0.9);
}
.btn-adventure-main {
    background: linear-gradient(180deg, var(--gold-border), var(--hover-bg));
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 14px 48px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
    min-width: 320px;
}
.btn-adventure-main:hover:not(:disabled) {
    filter: brightness(1.25);
    transform: translateY(-1px);
}
.btn-adventure-main:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(30, 30, 40, 0.5);
    color: var(--text-disabled);
    border-color: rgba(60, 60, 70, 0.4);
    box-shadow: none;
}
.btn-adventure-abandon {
    background: transparent;
    color: var(--adv-disabled-text);
    border: 1px solid var(--delete-bg);
    padding: 8px 20px;
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-adventure-abandon:hover {
    background: var(--delete-bg-dark);
    color: var(--adv-error-text);
    border-color: var(--adv-error-border);
}

/* --- Zone detail view --- */
.adv-back {
    align-self: flex-start;
    background: linear-gradient(180deg, var(--gold-border), var(--hover-bg));
    color: var(--white);
    border: 1px solid var(--gold);
    padding: 8px 14px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: filter 0.2s, transform 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: -1px -1px 0 var(--black), 1px -1px 0 var(--black), -1px 1px 0 var(--black), 1px 1px 0 var(--black), 0 0 4px rgba(var(--black-rgb),0.9);
}
.adv-back span { font-size: 1.1rem; line-height: 1; }
.adv-back:hover {
    filter: brightness(1.25);
    transform: translateY(-1px);
}

.adv-view {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
#adv-view-detail {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}
.adv-view-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 760px) {
    .adv-view-detail-grid { grid-template-columns: 1fr; }
}

.adv-detail-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 22px 28px 18px;
    border-radius: 14px;
    border: 1px solid var(--gold);
    overflow: hidden;
    background: rgba(20, 20, 40, 0.8);
}
.adv-detail-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
}
.adv-detail-header.elem-earth::before {
    background: radial-gradient(ellipse at top left, rgba(100, 200, 80, 0.3), transparent 55%);
}
.adv-detail-header.elem-earth { border-color: var(--elem-earth-border); }
.adv-detail-header.elem-fire::before {
    background: radial-gradient(ellipse at top left, rgba(220, 100, 40, 0.32), transparent 55%);
}
.adv-detail-header.elem-fire { border-color: var(--elem-fire-border); }
.adv-detail-header.elem-water::before {
    background: radial-gradient(ellipse at top left, rgba(80, 160, 220, 0.3), transparent 55%);
}
.adv-detail-header.elem-water { border-color: var(--blue-border); }
.adv-detail-header.elem-wind::before {
    background: radial-gradient(ellipse at top left, rgba(180, 230, 200, 0.28), transparent 55%);
}
.adv-detail-header.elem-wind { border-color: var(--elem-wind-border); }
.adv-detail-header.elem-lightning::before {
    background: radial-gradient(ellipse at top left, rgba(230, 200, 80, 0.3), transparent 55%);
}
.adv-detail-header.elem-lightning { border-color: var(--elem-lightning-border); }

.adv-detail-icon-wrap {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(var(--black-rgb), 0.5);
    border: 2px solid rgba(var(--gold-rgb), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 0 30px rgba(var(--gold-rgb), 0.15), 0 4px 20px rgba(var(--black-rgb), 0.5);
}
.adv-detail-icon {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 2px 8px rgba(var(--black-rgb), 0.7));
}
.adv-detail-title-wrap {
    position: relative;
    z-index: 1;
}
.adv-detail-elem {
    font-size: 0.78rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--adv-cleared);
    font-weight: 600;
    margin-bottom: 6px;
    font-family: 'Oswald', sans-serif;
}
.adv-detail-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold-light);
    margin: 0 0 10px;
    text-shadow: 0 2px 10px rgba(var(--black-rgb), 0.6);
}
.adv-detail-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
    max-width: 480px;
}

/* Drops grid */
.adv-drops {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}
.adv-drop {
    background: rgba(10, 10, 24, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s;
    flex: 1 1 0;
    min-width: 160px;
}
.adv-drop:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(var(--black-rgb), 0.3);
}
.adv-drop.adv-drop-pur {
    border-color: rgba(var(--rarity-primordial_pur-rgb), 0.6);
    box-shadow: 0 0 8px rgba(var(--rarity-primordial_pur-rgb), 0.25) inset;
}
.adv-drop.adv-drop-pur .adv-drop-name {
    color: var(--rarity-primordial_pur);
}
.adv-drop.adv-drop-pur:hover {
    border-color: var(--rarity-primordial_pur);
    box-shadow: 0 4px 16px rgba(var(--rarity-primordial_pur-rgb), 0.35);
}
.adv-drop-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(var(--black-rgb), 0.45);
    border: 1px solid var(--border-light);
}
.adv-drop-icon img {
    width: 32px;
    height: 32px;
}
.adv-drop-info { min-width: 0; flex: 1; }
.adv-drop-name {
    font-family: 'Cinzel', serif;
    font-size: 0.82rem;
    color: var(--gold-light);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.adv-drop-rate {
    font-size: 0.68rem;
    color: var(--text-secondary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
.adv-drop-source {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 6px;
    background: rgba(var(--orange-rgb), 0.14);
    border: 1px solid rgba(var(--orange-rgb), 0.5);
    border-radius: 2px;
    font-family: 'Cinzel', serif;
    font-size: 0.58rem;
    color: var(--orange-light);
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
    vertical-align: middle;
}


@media (max-width: 760px) {
    .xpd-carousel-stage { gap: 8px; height: 340px; }
    .adv-zone-card { flex: 0 0 80px; width: 80px; height: 300px; }
    .adv-zone-card.adv-active { flex: 0 0 170px; width: 170px; }
    .adv-card-name { font-size: 0.82rem; }
    .adv-zone-card.adv-active .adv-card-name { font-size: 0.95rem; }
    .xpd-carousel-arrow { width: 32px; height: 32px; font-size: 1.2rem; }
    .adv-difficulties { flex-wrap: wrap; }
    .adv-diff { min-width: 80px; }
    .adventure-title { font-size: 1.5rem; }
    .btn-adventure-main { min-width: 0; padding: 12px 28px; font-size: 0.95rem; }
    .adv-detail-header { padding: 20px; }
    .adv-detail-icon-wrap { width: 80px; height: 80px; }
    .adv-detail-title { font-size: 1.3rem; }
    .adv-drops { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
    .xpd-carousel-stage { gap: 6px; padding: 12px 0; height: 280px; }
    .adv-zone-card { flex: 0 0 60px; width: 60px; height: 240px; }
    .adv-zone-card.adv-active { flex: 0 0 130px; width: 130px; }
    .adv-card-name { font-size: 0.72rem; }
    .adv-zone-card.adv-active .adv-card-name { font-size: 0.85rem; }
    .adv-zone-card.adv-active .adv-card-lore { max-height: 0; opacity: 0; }
    .xpd-carousel-arrow { width: 28px; height: 28px; font-size: 1rem; }
    .adv-difficulties { flex-wrap: wrap; }
    .adv-drops { flex-direction: column; }
}
.btn-gold {
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.04));
    color: var(--gold);
    border: 1px solid rgba(var(--gold-rgb), 0.4);
    padding: 0.6rem 1.5rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(var(--gold-rgb), 0.06);
}
.btn-gold:hover {
    background: linear-gradient(180deg, rgba(var(--gold-rgb), 0.2), rgba(var(--gold-rgb), 0.08));
    border-color: rgba(var(--gold-rgb), 0.7);
    color: var(--gold-title);
    box-shadow: 0 0 18px rgba(var(--gold-rgb), 0.12);
}
.btn-gold:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(30, 30, 40, 0.5);
    color: var(--text-disabled);
    border-color: rgba(60, 60, 70, 0.4);
    box-shadow: none;
}
.btn-danger {
    background: rgba(200, 50, 50, 0.3);
    color: var(--error);
    border: 1px solid var(--error);
}
.btn-danger:hover {
    background: rgba(200, 50, 50, 0.5);
}
.adventure-progress {
    max-width: 500px;
    margin: 1rem auto;
    background: linear-gradient(135deg, var(--bg-input), var(--bg-card));
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
}
.adventure-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}
.adventure-fight-label {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1rem;
    font-weight: 600;
}
.adventure-hp {
    color: var(--text-main);
    font-size: 0.9rem;
}
.adventure-progress-bar-container {
    background: var(--bg-card);
    border-radius: 4px;
    height: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 0.8rem;
}
.adventure-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--adv-success-end));
    border-radius: 3px;
    transition: width 0.3s;
}
.adventure-monster {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: center;
}
.adventure-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
}

