/**
 * /assets/css/live-event-modal.css
 *
 * Purpose:  Live GM Event Modal – Glassmorphism Modal + abgestufte Monster-Animationen
 *           Normal: Sanftes Einblenden
 *           Boss/Rare: Dramatischer Eintritt mit Shake + rotem Glow
 *           Legendary: Epischer Fullscreen-Flash + goldener Glow + schwerer Shake
 * Deps:     app.css (variables: --accent, --danger, --gold)
 * Load:     index.php
 * Version:  5.4.0 – NPC-Quests-Tab: Quest-Cards, Annehmen/Abgeben Buttons
 */

/* ============================================================================
 * FULLSCREEN OVERLAY (Flash-Effekte)
 * ============================================================================ */

.le-overlay {
    position: fixed;
    inset: 0;
    z-index: 1059;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.le-overlay--active {
    opacity: 1;
}

.le-overlay--boss {
    background: radial-gradient(ellipse at center, rgba(255, 50, 50, 0.25) 0%, transparent 70%);
    animation: le-flash-boss 1.2s ease-out forwards;
}

.le-overlay--legendary {
    background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.4) 0%, rgba(255, 100, 0, 0.15) 40%, transparent 70%);
    animation: le-flash-legendary 2s ease-out forwards;
}

@keyframes le-flash-boss {
    0% { opacity: 1; }
    30% { opacity: 0.8; }
    100% { opacity: 0; }
}

@keyframes le-flash-legendary {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 0.6; }
    35% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 0; }
}

/* ============================================================================
 * SCREEN SHAKE
 * ============================================================================ */

.le-shake--light {
    animation: le-shake-light 0.5s ease-out;
}

.le-shake--heavy {
    animation: le-shake-heavy 0.8s ease-out;
}

@keyframes le-shake-light {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-4px); }
    20% { transform: translateX(4px); }
    30% { transform: translateX(-3px); }
    40% { transform: translateX(3px); }
    50% { transform: translateX(-2px); }
    60% { transform: translateX(2px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

@keyframes le-shake-heavy {
    0%, 100% { transform: translate(0, 0); }
    5% { transform: translate(-8px, 2px); }
    10% { transform: translate(6px, -4px); }
    15% { transform: translate(-6px, 4px); }
    20% { transform: translate(8px, -2px); }
    25% { transform: translate(-4px, 3px); }
    30% { transform: translate(5px, -3px); }
    40% { transform: translate(-3px, 2px); }
    50% { transform: translate(3px, -1px); }
    60% { transform: translate(-2px, 1px); }
    70% { transform: translate(1px, -1px); }
    80% { transform: translate(-1px, 0); }
}

/* ============================================================================
 * MODAL BASE (Glassmorphism)
 * ============================================================================ */

.le-modal-dialog {
    max-width: 600px;
}

.le-modal-content {
    background: rgba(15, 15, 25, 0.85);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    animation: le-modal-enter 0.4s ease-out;
}

/* Boss tier modal */
.le-modal--boss {
    border-color: rgba(255, 80, 80, 0.35);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 80, 80, 0.15),
        inset 0 0 30px rgba(255, 80, 80, 0.05);
    animation: le-modal-enter-boss 0.6s ease-out;
}

/* Legendary tier modal */
.le-modal--legendary {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.2),
        0 0 120px rgba(255, 215, 0, 0.08),
        inset 0 0 40px rgba(255, 215, 0, 0.05);
    animation: le-modal-enter-legendary 0.8s ease-out;
}

@keyframes le-modal-enter {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes le-modal-enter-boss {
    0% { opacity: 0; transform: scale(0.85) translateY(30px); }
    40% { opacity: 1; transform: scale(1.03); }
    60% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

@keyframes le-modal-enter-legendary {
    0% { opacity: 0; transform: scale(0.7) translateY(40px); }
    20% { opacity: 0.6; transform: scale(1.08); }
    35% { opacity: 1; transform: scale(0.95); }
    50% { transform: scale(1.04); }
    65% { transform: scale(0.99); }
    80% { transform: scale(1.01); }
    100% { transform: scale(1); }
}

/* ============================================================================
 * MODAL HEADER
 * ============================================================================ */

.le-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--le-color, #ffd36b) 8%, transparent) 0%,
        transparent 60%
    );
}

.le-event-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: color-mix(in srgb, var(--le-color, #ffd36b) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--le-color, #ffd36b) 35%, transparent);
    color: var(--le-color, #ffd36b);
    white-space: nowrap;
}

.le-event-badge i {
    font-size: 0.65rem;
}

.le-event-title {
    flex: 1;
    font-weight: 600;
    font-size: 1rem;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.le-close {
    flex-shrink: 0;
    opacity: 0.5;
}

.le-close:hover {
    opacity: 0.8;
}

/* ============================================================================
 * MODAL BODY
 * ============================================================================ */

.le-modal-body {
    padding: 16px 18px;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

/* ============================================================================
 * MONSTER CARDS
 * ============================================================================ */

.le-monsters {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.le-monster {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    animation: le-monster-appear 0.5s ease-out both;
}

/* Normal Monster */
.le-monster--normal {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-left: 3px solid rgba(255, 107, 107, 0.5);
}

/* Boss Monster */
.le-monster--boss {
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.12) 0%, rgba(255, 50, 0, 0.06) 100%);
    border: 1px solid rgba(255, 80, 80, 0.35);
    border-left: 3px solid rgba(255, 80, 80, 0.7);
    box-shadow: 0 0 20px rgba(255, 80, 80, 0.08);
    animation: le-monster-appear-boss 0.6s ease-out both;
}

/* Legendary Monster */
.le-monster--legendary {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 140, 0, 0.06) 50%, rgba(255, 50, 0, 0.04) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-left: 3px solid rgba(255, 215, 0, 0.7);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.1),
        inset 0 0 20px rgba(255, 215, 0, 0.03);
    animation: le-monster-appear-legendary 0.8s ease-out both;
}

.le-monster-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.le-monster--normal .le-monster-icon {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.le-monster--boss .le-monster-icon {
    background: rgba(255, 80, 80, 0.2);
    color: #ff4444;
    animation: le-icon-pulse-boss 2s ease-in-out infinite;
}

.le-monster--legendary .le-monster-icon {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.25) 0%, rgba(255, 140, 0, 0.15) 100%);
    color: #ffd700;
    animation: le-icon-pulse-legendary 1.5s ease-in-out infinite;
}

/* ---- Monster Portrait (with image) ---- */

.le-monster-portrait {
    position: relative;
    width: 80px;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.le-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.le-portrait-vignette {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    pointer-events: none;
}

/* Normal portrait — subtle red vignette, simple reveal */
.le-portrait--normal {
    border: 2px solid rgba(255, 107, 107, 0.35);
    animation: le-portrait-reveal 0.6s ease-out both;
}

.le-portrait--normal .le-portrait-vignette {
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.le-portrait--normal .le-portrait-img {
    animation: le-portrait-img-normal 0.6s ease-out both;
}

/* Boss portrait — red glow border, dramatic zoom-in */
.le-portrait--boss {
    border: 2px solid rgba(255, 80, 80, 0.6);
    box-shadow:
        0 0 15px rgba(255, 80, 80, 0.2),
        0 0 30px rgba(255, 50, 0, 0.1);
    animation: le-portrait-reveal-boss 0.7s ease-out both;
}

.le-portrait--boss .le-portrait-vignette {
    box-shadow:
        inset 0 0 25px rgba(0, 0, 0, 0.5),
        inset 0 0 40px rgba(255, 50, 0, 0.1);
}

.le-portrait--boss .le-portrait-img {
    animation: le-portrait-img-boss 0.8s ease-out both;
}

.le-portrait--boss::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, rgba(255, 80, 80, 0.4), transparent, rgba(255, 50, 0, 0.3)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: le-portrait-border-rotate 3s linear infinite;
}

/* Legendary portrait — golden frame, epic entrance, particle glow */
.le-portrait--legendary {
    border: 2px solid rgba(255, 215, 0, 0.7);
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.25),
        0 0 40px rgba(255, 140, 0, 0.15),
        0 0 60px rgba(255, 215, 0, 0.05);
    animation: le-portrait-reveal-legendary 1s ease-out both;
}

.le-portrait--legendary .le-portrait-vignette {
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.4),
        inset 0 0 50px rgba(255, 215, 0, 0.08);
}

.le-portrait--legendary .le-portrait-img {
    animation: le-portrait-img-legendary 1s ease-out both;
}

.le-portrait--legendary::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 18px;
    border: 3px solid rgba(255, 215, 0, 0.5);
    animation: le-portrait-golden-pulse 2s ease-in-out infinite;
    pointer-events: none;
}

.le-portrait-particles {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    overflow: hidden;
    pointer-events: none;
}

.le-portrait-particles::before,
.le-portrait-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffd700;
    box-shadow:
        12px -8px 0 rgba(255, 215, 0, 0.8),
        -10px -15px 0 rgba(255, 180, 0, 0.6),
        20px 5px 0 rgba(255, 215, 0, 0.5),
        -5px 10px 0 rgba(255, 180, 0, 0.7),
        15px 15px 0 rgba(255, 215, 0, 0.4);
    animation: le-particles-float 2.5s ease-in-out infinite;
}

.le-portrait-particles::after {
    width: 3px;
    height: 3px;
    box-shadow:
        8px -12px 0 rgba(255, 215, 0, 0.6),
        -15px -5px 0 rgba(255, 180, 0, 0.5),
        18px 10px 0 rgba(255, 215, 0, 0.7),
        -8px 15px 0 rgba(255, 180, 0, 0.4);
    animation-delay: 1.2s;
}

/* With image: change monster card to column layout */
.le-monster--has-img {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 16px 14px;
    gap: 10px;
}

.le-monster--has-img .le-monster-tier-badge {
    margin-top: 2px;
}

/* ---- Portrait Animations ---- */

@keyframes le-portrait-reveal {
    0% {
        opacity: 0;
        transform: scale(0.7);
        clip-path: circle(0% at 50% 50%);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        clip-path: circle(100% at 50% 50%);
    }
}

@keyframes le-portrait-img-normal {
    0% {
        transform: scale(1.3);
        filter: blur(8px) brightness(0.5);
    }
    100% {
        transform: scale(1);
        filter: blur(0) brightness(1);
    }
}

@keyframes le-portrait-reveal-boss {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-5deg);
        clip-path: circle(0% at 50% 50%);
    }
    60% {
        opacity: 1;
        transform: scale(1.08) rotate(1deg);
        clip-path: circle(100% at 50% 50%);
        box-shadow: 0 0 30px rgba(255, 80, 80, 0.4);
    }
    80% {
        transform: scale(0.96) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 15px rgba(255, 80, 80, 0.2);
    }
}

@keyframes le-portrait-img-boss {
    0% {
        transform: scale(1.5);
        filter: blur(10px) brightness(0.3) saturate(0);
    }
    40% {
        filter: blur(2px) brightness(1.5) saturate(1.5);
    }
    100% {
        transform: scale(1);
        filter: blur(0) brightness(1) saturate(1);
    }
}

@keyframes le-portrait-reveal-legendary {
    0% {
        opacity: 0;
        transform: scale(0.3);
        clip-path: polygon(50% 0%, 50% 0%, 50% 100%, 50% 100%);
        filter: brightness(5) saturate(0);
    }
    25% {
        opacity: 1;
        clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
        filter: brightness(2.5) saturate(0.3);
    }
    50% {
        transform: scale(1.15);
        filter: brightness(1.5) saturate(0.8);
        box-shadow: 0 0 50px rgba(255, 215, 0, 0.5);
    }
    75% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
        filter: brightness(1) saturate(1);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.25);
    }
}

@keyframes le-portrait-img-legendary {
    0% {
        transform: scale(2);
        filter: blur(15px) brightness(0) saturate(0);
    }
    30% {
        transform: scale(1.2);
        filter: blur(5px) brightness(2) saturate(2);
    }
    60% {
        filter: blur(1px) brightness(1.2) saturate(1.2);
    }
    100% {
        transform: scale(1);
        filter: blur(0) brightness(1) saturate(1);
    }
}

@keyframes le-portrait-border-rotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(30deg); }
}

@keyframes le-portrait-golden-pulse {
    0%, 100% {
        border-color: rgba(255, 215, 0, 0.3);
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.1);
    }
    50% {
        border-color: rgba(255, 215, 0, 0.7);
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
}

@keyframes le-particles-float {
    0%, 100% {
        transform: translate(20px, 30px);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    70% {
        opacity: 0.6;
    }
    100% {
        transform: translate(40px, -10px);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .le-monster-portrait,
    .le-portrait-img,
    .le-portrait--boss::after,
    .le-portrait--legendary::after,
    .le-portrait-particles::before,
    .le-portrait-particles::after {
        animation: none !important;
        clip-path: none !important;
        filter: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

.le-monster-info {
    flex: 1;
    min-width: 0;
}

.le-monster-name {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
}

.le-monster--legendary .le-monster-name {
    background: linear-gradient(90deg, #ffd700, #ffaa00, #ffd700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: le-golden-shimmer 3s linear infinite;
}

.le-monster-stats {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

.le-monster-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.le-tier--boss {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
}

.le-tier--legendary {
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.35);
    color: #ffd700;
    animation: le-badge-glow 2s ease-in-out infinite;
}

/* Rarity tier badges (non-common monsters) */
.le-tier--uncommon {
    background: rgba(46, 204, 113, 0.15);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.le-tier--rare {
    background: rgba(52, 152, 219, 0.15);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.le-tier--epic {
    background: rgba(155, 89, 182, 0.15);
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}

.le-tier--mythic {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #e74c3c;
    animation: le-badge-glow-mythic 2s ease-in-out infinite;
}

@keyframes le-badge-glow-mythic {
    0%, 100% { box-shadow: 0 0 4px rgba(231, 76, 60, 0.1); }
    50% { box-shadow: 0 0 10px rgba(231, 76, 60, 0.25); }
}

/* ============================================================================
 * MONSTER ANIMATIONS
 * ============================================================================ */

/* Normal: Simple fade + slide */
@keyframes le-monster-appear {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Boss: Scale bounce + glow */
@keyframes le-monster-appear-boss {
    0% {
        opacity: 0;
        transform: scale(0.8) translateX(-30px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateX(0);
        box-shadow: 0 0 30px rgba(255, 80, 80, 0.2);
    }
    70% {
        transform: scale(0.97);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(255, 80, 80, 0.08);
    }
}

/* Legendary: Epic entrance */
@keyframes le-monster-appear-legendary {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(30px);
        filter: brightness(3) saturate(0);
    }
    30% {
        opacity: 1;
        transform: scale(1.12) translateY(-5px);
        filter: brightness(2) saturate(0.5);
    }
    50% {
        transform: scale(0.95) translateY(2px);
        filter: brightness(1.3) saturate(0.8);
    }
    70% {
        transform: scale(1.03) translateY(-1px);
        filter: brightness(1.1) saturate(1);
    }
    100% {
        transform: scale(1) translateY(0);
        filter: brightness(1) saturate(1);
    }
}

/* Boss icon pulse */
@keyframes le-icon-pulse-boss {
    0%, 100% { box-shadow: 0 0 0 rgba(255, 80, 80, 0); }
    50% { box-shadow: 0 0 12px rgba(255, 80, 80, 0.3); }
}

/* Legendary icon pulse */
@keyframes le-icon-pulse-legendary {
    0%, 100% {
        box-shadow: 0 0 0 rgba(255, 215, 0, 0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
        transform: scale(1.05);
    }
}

/* Golden shimmer text */
@keyframes le-golden-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Legendary badge glow */
@keyframes le-badge-glow {
    0%, 100% { box-shadow: 0 0 4px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.25); }
}

/* ============================================================================
 * OTHER ENTRIES (text, npc, quest, loot, etc.)
 * ============================================================================ */

.le-entries {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.le-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    border-left: 2px solid var(--le-entry-color, rgba(255, 255, 255, 0.2));
    animation: le-entry-appear 0.35s ease-out both;
}

.le-entry-icon {
    width: 24px;
    text-align: center;
    flex-shrink: 0;
    color: var(--le-entry-color, rgba(255, 255, 255, 0.5));
    font-size: 0.8rem;
}

.le-entry-text {
    flex: 1;
    font-size: 0.88rem;
    line-height: 1.4;
}

@keyframes le-entry-appear {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================================
 * MODAL FOOTER
 * ============================================================================ */

.le-modal-footer {
    padding: 10px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* ============================================================================
 * COMBAT INITIATIVE UI
 * ============================================================================ */

.le-combat-phase-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.le-combat-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.le-combat-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

/* ── Rolling Phase: Participant Row ── */

.le-combat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    gap: 8px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.le-combat-row--me {
    border-color: rgba(93, 214, 201, 0.3);
    background: rgba(93, 214, 201, 0.06);
}

.le-combat-row__name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.le-combat-row__mod {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 4px;
}

.le-combat-row__init {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.le-combat-row__init--rolled {
    color: var(--gold, #ffd36b);
}

.le-combat-row__init--waiting {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.75rem;
}

.le-combat-row__dice {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
}

.le-combat-row__total {
    min-width: 24px;
    text-align: center;
}

/* GM monster initiative input */

.le-combat-row__gm-roll {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.le-init-input {
    width: 48px;
    padding: 2px 6px;
    font-size: 0.8rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #fff;
    outline: none;
}

.le-init-input:focus {
    border-color: rgba(255, 107, 107, 0.4);
}

.le-init-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.le-roll-btn {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 4px 10px;
    animation: le-roll-pulse 1.2s ease-in-out infinite;
}

@keyframes le-roll-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 16px 4px rgba(255, 193, 7, 0.35), 0 0 6px 1px rgba(255, 193, 7, 0.2);
        transform: scale(1.06);
    }
}

/* Dice roll result flash */
.le-roll-result {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #ffd36b;
    background: rgba(255, 211, 107, 0.12);
    border: 1px solid rgba(255, 211, 107, 0.3);
    animation: le-roll-flash 0.6s ease-out both;
}

.le-roll-result i {
    animation: le-dice-spin 0.5s ease-out both;
}

@keyframes le-roll-flash {
    0% { opacity: 0; transform: scale(1.4); }
    40% { opacity: 1; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes le-dice-spin {
    0% { transform: rotate(0deg) scale(1.3); }
    100% { transform: rotate(360deg) scale(1); }
}

/* ── Active Phase: Turn Order ── */

.le-combat-turn-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.le-turn-row {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    gap: 8px;
    transition: all 0.3s ease;
}

.le-turn-row--active {
    background: rgba(255, 211, 107, 0.08);
    border-color: rgba(255, 211, 107, 0.25);
    box-shadow: 0 0 12px rgba(255, 211, 107, 0.1);
}

.le-turn-row--me {
    border-left: 3px solid rgba(93, 214, 201, 0.5);
}

.le-turn-marker {
    width: 14px;
    text-align: center;
    color: var(--gold, #ffd36b);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.le-turn-row--active .le-turn-marker {
    animation: le-marker-bounce 0.8s ease-in-out infinite alternate;
}

@keyframes le-marker-bounce {
    0% { transform: translateX(0); }
    100% { transform: translateX(3px); }
}

.le-turn-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.le-turn-icon--hero {
    background: rgba(93, 214, 201, 0.15);
    color: var(--accent, #5dd6c9);
}

.le-turn-icon--monster {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.le-turn-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.le-turn-init {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold, #ffd36b);
    background: rgba(255, 211, 107, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    min-width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.le-turn-hp {
    position: relative;
    width: 60px;
    height: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    overflow: hidden;
    flex-shrink: 0;
}

.le-turn-hp__bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 7px;
    transition: width 0.4s ease;
}

.le-turn-hp__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ── Done Phase ── */

.le-combat-done {
    text-align: center;
    padding: 24px 16px;
}

/* ============================================================================
 * AVATAR (Combat Rows + Turn List)
 * ============================================================================ */

.le-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.le-avatar--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.le-avatar--hero {
    background: rgba(93, 214, 201, 0.15);
    color: var(--accent, #5dd6c9);
    border-color: rgba(93, 214, 201, 0.3);
}

.le-avatar--monster {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.3);
}

/* Clickable monster rows */
.le-turn-row--clickable {
    cursor: pointer;
}

.le-turn-row--clickable:hover {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.2);
}

/* ============================================================================
 * INITIATIVE AVATAR BAR (Active Combat Phase)
 * ============================================================================ */

.le-init-bar {
    display: flex;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.le-init-bar::-webkit-scrollbar {
    height: 4px;
}

.le-init-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.le-init-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 44px;
    flex-shrink: 0;
    padding: 4px 2px;
    border-radius: 8px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.le-init-bar__item--active {
    background: rgba(93, 214, 201, 0.12);
    border: 1px solid rgba(93, 214, 201, 0.25);
    transform: scale(1.08);
}

.le-init-bar__item--dead {
    opacity: 0.35;
}

.le-init-bar__avatar {
    position: relative;
}

.le-init-bar__avatar .le-avatar {
    width: 34px;
    height: 34px;
    border-width: 2px;
}

.le-init-bar__item--active .le-init-bar__avatar .le-avatar {
    border-color: var(--accent, #5dd6c9);
    box-shadow: 0 0 8px rgba(93, 214, 201, 0.35);
}

.le-init-bar__indicator {
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent, #5dd6c9);
    font-size: 0.6rem;
    line-height: 1;
    animation: le-init-bar-pulse 1.5s ease-in-out infinite;
}

@keyframes le-init-bar-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.le-init-bar__name {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    white-space: nowrap;
    max-width: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
}

.le-init-bar__item--active .le-init-bar__name {
    color: var(--accent, #5dd6c9);
    font-weight: 600;
}

.le-init-bar__hp {
    width: 32px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.le-init-bar__hp-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Initiative bar slide animation on turn change */
.le-init-bar--slide .le-init-bar__item {
    animation: le-init-slide 0.45s ease-out both;
}

.le-init-bar--slide .le-init-bar__item:nth-child(1) {
    animation: le-init-active-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.le-init-bar--slide .le-init-bar__item:nth-child(2) { animation-delay: 0.04s; }
.le-init-bar--slide .le-init-bar__item:nth-child(3) { animation-delay: 0.08s; }
.le-init-bar--slide .le-init-bar__item:nth-child(4) { animation-delay: 0.12s; }
.le-init-bar--slide .le-init-bar__item:nth-child(5) { animation-delay: 0.16s; }
.le-init-bar--slide .le-init-bar__item:nth-child(6) { animation-delay: 0.2s; }

@keyframes le-init-slide {
    from {
        transform: translateX(50px);
        opacity: 0.5;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes le-init-active-in {
    from {
        transform: translateX(50px) scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .le-init-bar__item {
        transition: none;
    }
    .le-init-bar--slide .le-init-bar__item,
    .le-init-bar--slide .le-init-bar__item:nth-child(1) {
        animation: none !important;
    }
    @keyframes le-init-bar-pulse {
        0%, 100% { opacity: 1; }
    }
}

/* ============================================================================
 * PENDING ACTION PANEL (Player custom action → GM approval)
 * ============================================================================ */

.le-pending-action {
    margin-top: 14px;
    padding: 12px;
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.25);
    border-left: 3px solid rgba(167, 139, 250, 0.5);
    border-radius: 10px;
}

.le-pending-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.le-pending-icon {
    font-size: 1.3rem;
    color: #a78bfa;
    animation: le-pending-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
    margin-top: 2px;
}

@keyframes le-pending-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .le-pending-icon { animation: none; }
}

.le-pending-info {
    flex: 1;
    min-width: 0;
}

.le-pending-actor {
    font-weight: 700;
    font-size: 0.85rem;
    color: #e2e8f0;
}

.le-pending-name {
    font-size: 0.9rem;
    color: #a78bfa;
    font-weight: 600;
}

.le-pending-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* Roll section */
.le-pending-roll {
    padding: 8px 10px;
    background: rgba(255, 215, 0, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 8px;
    margin-bottom: 10px;
}

.le-pending-roll__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffd36b;
    margin-bottom: 6px;
}

.le-pending-roll__result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.le-pending-roll__dice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
}

.le-pending-roll__total {
    font-weight: 700;
    font-size: 0.9rem;
    color: #e2e8f0;
}

.le-pending-roll__verdict {
    font-weight: 700;
    font-size: 0.8rem;
    padding: 2px 10px;
    border-radius: 999px;
}

.le-pending-roll__result--pass .le-pending-roll__verdict {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.le-pending-roll__result--fail .le-pending-roll__verdict {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.le-pending-roll__gm-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* GM controls */
.le-pending-gm {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.le-pending-gm__row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.le-pending-gm__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    min-width: 110px;
    flex-shrink: 0;
}

.le-pending-gm__input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #e2e8f0;
    padding: 4px 8px;
    font-size: 0.8rem;
    width: 65px;
    text-align: center;
}

.le-pending-gm__input--wide {
    width: 100%;
    text-align: left;
}

.le-pending-gm__input:focus {
    outline: none;
    border-color: rgba(167, 139, 250, 0.5);
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.1);
}

.le-pending-gm__input-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.le-pending-gm__prefix {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

/* Target selection in pending panel */
.le-pending-gm__targets {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.le-pending-target {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.15s ease;
}

.le-pending-target:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.le-pending-target--selected {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.4);
    color: #a78bfa;
}

.le-pending-target .le-avatar {
    width: 20px;
    height: 20px;
    font-size: 0.5rem;
}

/* GM action buttons */
.le-pending-gm__actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

/* Player waiting state */
.le-pending-waiting {
    text-align: center;
    padding: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    font-style: italic;
}

/* ============================================================================
 * TURN ACTION PANEL
 * ============================================================================ */

.le-turn-action-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(255, 211, 107, 0.05);
    border: 1px solid rgba(255, 211, 107, 0.2);
    border-left: 3px solid rgba(255, 211, 107, 0.5);
}

.le-action-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold, #ffd36b);
    margin-bottom: 10px;
}

.le-action-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 0;
}

.le-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.le-action-btn i {
    font-size: 1.1rem;
}

.le-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.le-action-btn--active {
    transform: translateY(-2px);
}

.le-action-btn--attack.le-action-btn--active {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.le-action-btn--item.le-action-btn--active {
    background: rgba(93, 214, 201, 0.12);
    border-color: rgba(93, 214, 201, 0.4);
    color: var(--accent, #5dd6c9);
}

.le-action-btn--custom.le-action-btn--active {
    background: rgba(160, 140, 255, 0.12);
    border-color: rgba(160, 140, 255, 0.4);
    color: #a78bfa;
}

.le-action-btn--attack i { color: #ff6b6b; }
.le-action-btn--item i { color: var(--accent, #5dd6c9); }
.le-action-btn--custom i { color: #a78bfa; }

/* Action Detail */

.le-action-detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.le-action-sub-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.le-action-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

.le-action-option {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.le-action-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.le-action-pick--active {
    background: rgba(255, 211, 107, 0.1) !important;
    border-color: rgba(255, 211, 107, 0.4) !important;
    color: var(--gold, #ffd36b) !important;
}

.le-action-dmg {
    font-size: 0.6rem;
    color: rgba(255, 107, 107, 0.7);
}

.le-action-qty {
    font-size: 0.6rem;
    color: rgba(93, 214, 201, 0.7);
}

.le-action-custom-row {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.le-action-input {
    flex: 1;
    padding: 5px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 0.75rem;
}

.le-action-input--sm {
    max-width: 70px;
    flex: 0 0 auto;
}

.le-action-input:focus {
    border-color: rgba(255, 211, 107, 0.4);
    outline: none;
    box-shadow: 0 0 6px rgba(255, 211, 107, 0.1);
}

.le-action-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Action Targets */

.le-action-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.le-action-target {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.le-action-target .le-avatar {
    width: 22px;
    height: 22px;
    font-size: 0.55rem;
}

.le-action-target:hover {
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.25);
}

.le-action-target--active {
    background: rgba(255, 107, 107, 0.12) !important;
    border-color: rgba(255, 107, 107, 0.4) !important;
    color: #ff6b6b !important;
    box-shadow: 0 0 8px rgba(255, 107, 107, 0.15);
}

.le-action-submit {
    width: 100%;
    margin-top: 8px;
}

/* ============================================================================
 * MONSTER DETAIL OVERLAY
 * ============================================================================ */

.le-monster-detail {
    padding: 4px 0;
}

.le-detail-portrait {
    position: relative;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.le-detail-portrait--hero {
    border: 2px solid rgba(93, 214, 201, 0.4);
    animation: le-detail-glow-hero 2.5s ease-in-out infinite;
}

@keyframes le-detail-glow-hero {
    0%, 100% { box-shadow: 0 0 8px rgba(93, 214, 201, 0.15), 0 0 20px rgba(93, 214, 201, 0.05); }
    50%      { box-shadow: 0 0 15px rgba(93, 214, 201, 0.3), 0 0 35px rgba(93, 214, 201, 0.1); }
}

.le-detail-portrait .le-portrait--normal,
.le-detail-portrait .le-portrait--boss,
.le-detail-portrait .le-portrait--legendary {
    border: none;
    border-radius: 0;
    animation: none;
}

/* Monster portraits glow based on tier */
.le-detail-portrait.le-portrait--normal {
    border: 2px solid rgba(255, 107, 107, 0.4);
    animation: le-detail-glow-normal 2.5s ease-in-out infinite;
}

.le-detail-portrait.le-portrait--boss {
    border: 2px solid rgba(255, 80, 80, 0.6);
    animation: le-detail-glow-boss 2s ease-in-out infinite;
}

.le-detail-portrait.le-portrait--legendary {
    border: 3px solid rgba(255, 215, 0, 0.7);
    animation: le-detail-glow-legendary 1.8s ease-in-out infinite;
}

@keyframes le-detail-glow-normal {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 107, 107, 0.15), 0 0 20px rgba(255, 107, 107, 0.05); }
    50%      { box-shadow: 0 0 15px rgba(255, 107, 107, 0.3), 0 0 35px rgba(255, 107, 107, 0.1); }
}

@keyframes le-detail-glow-boss {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 80, 80, 0.2), 0 0 25px rgba(255, 50, 0, 0.1); }
    50%      { box-shadow: 0 0 20px rgba(255, 80, 80, 0.4), 0 0 45px rgba(255, 50, 0, 0.2); }
}

@keyframes le-detail-glow-legendary {
    0%, 100% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.25), 0 0 30px rgba(255, 140, 0, 0.1); }
    50%      { box-shadow: 0 0 25px rgba(255, 215, 0, 0.5), 0 0 50px rgba(255, 140, 0, 0.2), 0 0 70px rgba(255, 215, 0, 0.08); }
}

.le-detail-img {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.le-detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.le-detail-stat {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.le-detail-section {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    margin-top: 10px;
}

.le-detail-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.le-detail-list-item {
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.le-detail-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* Detail bar (HP, Mana, Init in detail views) */
.le-detail-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.le-detail-bar__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    min-width: 42px;
}

.le-detail-bar__track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.le-detail-bar__fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.le-detail-bar__text {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    min-width: 55px;
    text-align: right;
}

/* Mana bar in turn list */
.le-turn-mana {
    margin-top: 2px;
}

/* Hero clickable rows */
.le-turn-row--clickable[data-hero-id]:hover {
    background: rgba(93, 214, 201, 0.08);
    border-color: rgba(93, 214, 201, 0.2);
}

/* ============================================================================
 * COMBAT LOG (collapsed by default)
 * ============================================================================ */

.le-combat-log {
    margin-top: 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.le-combat-log__toggle {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
    transition: color 0.2s ease;
}

.le-combat-log__toggle:hover {
    color: rgba(255, 255, 255, 0.85);
}

.le-combat-log__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.65rem;
    margin-left: 6px;
}

.le-combat-log__chevron {
    margin-left: auto;
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.le-combat-log__toggle[aria-expanded="true"] .le-combat-log__chevron {
    transform: rotate(180deg);
}

.le-combat-log__list {
    padding: 6px 12px 10px;
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.le-combat-log__entry {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.le-combat-log__entry:last-child {
    border-bottom: none;
}

.le-combat-log__icon {
    flex-shrink: 0;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 2px;
}

/* ============================================================================
 * MERCHANT UI
 * ============================================================================ */

.le-merchant-header {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold, #ffd36b);
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 211, 107, 0.12);
}

.le-merchant-section-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

/* ── Stock Items ── */

.le-merchant-stock {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.le-merchant-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.le-merchant-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.le-merchant-item--sold {
    opacity: 0.45;
}

.le-merchant-item__icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.le-merchant-item__info {
    flex: 1;
    min-width: 0;
}

.le-merchant-item__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.le-merchant-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1px;
}

.le-merchant-item__price {
    font-weight: 700;
    color: var(--gold, #ffd36b);
}

.le-merchant-item__price i {
    font-size: 0.6rem;
}

.le-merchant-item__rarity {
    font-weight: 600;
    text-transform: capitalize;
}

.le-merchant-item__qty {
    color: rgba(255, 255, 255, 0.3);
}

.le-merchant-item__sold-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

/* ── Request Form ── */

.le-merchant-request-form {
    margin-bottom: 8px;
}

.le-merchant-request-input {
    flex: 1;
    padding: 4px 10px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #fff;
    outline: none;
}

.le-merchant-request-input:focus {
    border-color: rgba(77, 163, 255, 0.4);
}

.le-merchant-request-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* ── Requests List ── */

.le-merchant-requests {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.le-merchant-request {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.le-merchant-request--pending {
    border-color: rgba(255, 211, 107, 0.15);
    background: rgba(255, 211, 107, 0.04);
}

.le-merchant-request--approved {
    border-color: rgba(74, 222, 128, 0.15);
    background: rgba(74, 222, 128, 0.04);
}

.le-merchant-request--denied {
    border-color: rgba(255, 107, 107, 0.12);
    background: rgba(255, 107, 107, 0.03);
    opacity: 0.6;
}

.le-merchant-request__info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.le-merchant-request__char {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.le-merchant-request__item {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.le-merchant-request__price {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold, #ffd36b);
}

.le-merchant-request__price i {
    font-size: 0.6rem;
}

.le-merchant-request__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.le-merchant-price-input {
    width: 52px;
    padding: 2px 6px;
    font-size: 0.75rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    color: #fff;
    outline: none;
}

.le-merchant-price-input:focus {
    border-color: rgba(255, 211, 107, 0.4);
}

.le-merchant-price-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.le-merchant-request__status {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.le-merchant-request__status--pending {
    color: var(--gold, #ffd36b);
    background: rgba(255, 211, 107, 0.1);
}

.le-merchant-request__status--approved {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
}

.le-merchant-request__status--denied {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

/* ── Merchant Profile (NPC Portrait + Info) ── */

.le-merchant-profile {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 211, 107, 0.12);
}

.le-merchant-portrait {
    width: 60px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255, 211, 107, 0.25);
    box-shadow: 0 2px 12px rgba(255, 211, 107, 0.1);
}

.le-merchant-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.le-merchant-profile-info {
    flex: 1;
    min-width: 0;
}

.le-merchant-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--gold, #ffd36b);
    margin-bottom: 4px;
}

.le-merchant-dialogue {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
    line-height: 1.3;
}

.le-merchant-rep-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--rep-color, #94a3b8);
    margin-bottom: 2px;
}

.le-merchant-faction-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.le-merchant-rep-mod {
    opacity: 0.6;
    font-weight: 400;
}

.le-merchant-cha-badge {
    font-size: 0.68rem;
    color: rgba(93, 214, 201, 0.7);
    margin-top: 2px;
}

/* ── Gold Display ── */

.le-merchant-gold {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold, #ffd36b);
    padding: 6px 12px;
    margin-bottom: 10px;
    border-radius: 10px;
    background: rgba(255, 211, 107, 0.06);
    border: 1px solid rgba(255, 211, 107, 0.12);
}

.le-merchant-gold-value {
    font-size: 1.1rem;
}

/* ── Tabs (Buy / Sell) ── */

.le-merchant-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 3px;
}

.le-merchant-tab {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.le-merchant-tab:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.04);
}

.le-merchant-tab--active {
    color: var(--gold, #ffd36b);
    background: rgba(255, 211, 107, 0.1);
    border: 1px solid rgba(255, 211, 107, 0.15);
}

/* ── Type Filters ── */

.le-merchant-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.le-merchant-filter-btn {
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.le-merchant-filter-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

.le-merchant-filter-btn.--active {
    color: var(--gold, #ffd36b);
    border-color: rgba(255, 211, 107, 0.2);
    background: rgba(255, 211, 107, 0.06);
}

.le-merchant-filter-btn .badge {
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    margin-left: 2px;
}

/* ── Price Modifiers ── */

.le-merchant-item__price.--discount {
    color: #4ade80;
}

.le-merchant-item__price.--surcharge {
    color: #ff6b6b;
}

.le-merchant-item__price.--sell {
    color: #4ade80;
}

.le-merchant-item__no-gold {
    color: rgba(255, 107, 107, 0.5);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Secret Stock ── */

.le-merchant-item--secret {
    border-color: rgba(176, 140, 255, 0.15);
    background: rgba(176, 140, 255, 0.04);
}

.le-merchant-item__secret-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    font-size: 0.5rem;
    color: rgba(176, 140, 255, 0.7);
}

.le-merchant-item__icon {
    position: relative;
}

/* ── Haggle ── */

.le-merchant-haggle {
    text-align: center;
    margin: 10px 0;
}

.le-merchant-haggle-btn {
    font-size: 0.78rem;
}

.le-merchant-haggle-result {
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 8px;
    margin: 8px 0;
    text-align: center;
}

.le-merchant-haggle-result--success {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.12);
}

.le-merchant-haggle-result--fail {
    color: rgba(255, 107, 107, 0.7);
    background: rgba(255, 107, 107, 0.04);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

/* ── GM Add-Item Search Panel ── */

.le-merchant-add-panel {
    margin-top: 12px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 211, 107, 0.04);
    border: 1px solid rgba(255, 211, 107, 0.12);
}

.le-merchant-add-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold, #ffd36b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.le-merchant-add-panel__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.7rem;
}

.le-merchant-add-panel__close:hover {
    color: rgba(255, 255, 255, 0.7);
}

.le-merchant-add-panel__search {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    outline: none;
    margin-bottom: 8px;
}

.le-merchant-add-panel__search:focus {
    border-color: rgba(255, 211, 107, 0.3);
}

.le-merchant-add-panel__search::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.le-merchant-add-panel__grid {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 8px;
}

.le-merchant-add-panel__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.le-merchant-add-panel__item:hover {
    background: rgba(255, 211, 107, 0.06);
    border-color: rgba(255, 211, 107, 0.15);
}

.le-merchant-add-panel__item--added {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.2);
}

.le-merchant-add-panel__item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.le-merchant-add-panel__item-info {
    flex: 1;
    min-width: 0;
}

.le-merchant-add-panel__item-name {
    font-size: 0.8rem;
    font-weight: 600;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.le-merchant-add-panel__item-meta {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
}

.le-merchant-add-panel__custom {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.le-merchant-add-panel__custom-label {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.le-merchant-add-panel__input {
    flex: 1;
    padding: 4px 8px;
    font-size: 0.78rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #fff;
    outline: none;
}

.le-merchant-add-panel__input--small {
    max-width: 60px;
}

.le-merchant-add-panel__input:focus {
    border-color: rgba(255, 211, 107, 0.3);
}

.le-merchant-add-panel__input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.le-merchant-add-panel__rep {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.le-merchant-add-panel__rep-label {
    font-size: 0.65rem;
    color: rgba(176, 140, 255, 0.6);
    white-space: nowrap;
}

.le-merchant-add-panel__rep-select {
    padding: 2px 6px;
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(176, 140, 255, 0.15);
    border-radius: 6px;
    color: #fff;
    outline: none;
}

.le-merchant-add-panel__rep-select option {
    background: #1a1a2e;
}

/* ── Clickable Portrait ── */

.le-merchant-portrait--clickable {
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.le-merchant-portrait--clickable:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(77, 163, 255, 0.2);
    border-color: rgba(77, 163, 255, 0.4);
}

.le-merchant-portrait-hint {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.le-merchant-portrait--clickable:hover .le-merchant-portrait-hint {
    opacity: 1;
}

.le-merchant-name--clickable {
    cursor: pointer;
    transition: color 0.2s ease;
}

.le-merchant-name--clickable:hover {
    color: #4da3ff;
}

/* ============================================================================
 * NPC DETAIL OVERLAY (inside Live-Event Modal)
 * ============================================================================ */

.le-npc-detail-portrait {
    position: relative;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 2 / 3;
    margin: 0 auto 14px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid rgba(77, 163, 255, 0.2);
    box-shadow: 0 4px 24px rgba(77, 163, 255, 0.12);
}

.le-npc-detail-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.le-npc-detail-disposition {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.le-npc-detail-header {
    text-align: center;
    margin-bottom: 10px;
}

.le-npc-detail-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.le-npc-detail-title {
    font-size: 0.78rem;
    color: rgba(77, 163, 255, 0.7);
    font-weight: 500;
    margin-top: 1px;
}

.le-npc-detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
}

.le-npc-detail-sep {
    opacity: 0.3;
}

/* ── Factions ── */

.le-npc-detail-factions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.le-npc-detail-faction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--fac-color, #94a3b8);
}

.le-npc-detail-faction-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fac-color, #94a3b8);
    flex-shrink: 0;
}

/* ── Sections ── */

.le-npc-detail-section {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.le-npc-detail-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.le-npc-detail-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.45;
    white-space: pre-line;
}

/* ── Dialogue ── */

.le-npc-detail-dialogue {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
    line-height: 1.3;
}

.le-npc-detail-dialogue-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    margin-right: 4px;
    font-size: 0.68rem;
    text-transform: uppercase;
}

/* ── Stats Grid ── */

.le-npc-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 4px;
}

.le-npc-detail-stat {
    text-align: center;
    padding: 6px 4px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.le-npc-detail-stat-label {
    font-size: 0.58rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1px;
}

.le-npc-detail-stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
}

/* ── Services ── */

.le-npc-detail-services {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.le-npc-detail-service {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(93, 214, 201, 0.06);
    border: 1px solid rgba(93, 214, 201, 0.1);
    color: rgba(93, 214, 201, 0.8);
}

/* ── Inventory ── */

.le-npc-detail-inventory {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.le-npc-detail-inv-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.le-npc-detail-inv-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.75);
}

.le-npc-detail-inv-qty {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
}

.le-npc-detail-inv-price {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gold, #ffd36b);
}

/* ── Tags ── */

.le-npc-detail-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.le-npc-detail-tag {
    font-size: 0.62rem;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.3);
}

/* ── GM Notes ── */

.le-npc-detail-gm-notes {
    border-color: rgba(255, 211, 107, 0.12);
    background: rgba(255, 211, 107, 0.03);
}

/* ============================================================================
 * REDUCED MOTION
 * ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .le-modal-content,
    .le-modal--boss,
    .le-modal--legendary {
        animation: none;
    }

    .le-monster,
    .le-monster--boss,
    .le-monster--legendary {
        animation: none;
    }

    .le-monster--boss .le-monster-icon,
    .le-monster--legendary .le-monster-icon {
        animation: none;
    }

    .le-monster--legendary .le-monster-name {
        animation: none;
        -webkit-text-fill-color: #ffd700;
    }

    .le-tier--legendary {
        animation: none;
    }

    .le-entry {
        animation: none;
    }

    .le-overlay--boss,
    .le-overlay--legendary {
        animation: none;
    }

    .le-shake--light,
    .le-shake--heavy {
        animation: none;
    }

    .le-roll-btn {
        animation: none;
    }

    .le-roll-result,
    .le-roll-result i {
        animation: none;
    }

    .le-turn-row--active .le-turn-marker {
        animation: none;
    }
}

/* ============================================================================
 * FLOATING ACTIVE EVENT BUTTONS (above chat toggle)
 * ============================================================================ */

.le-active-events {
    position: fixed;
    bottom: 148px;
    right: 16px;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    z-index: 10009;
    pointer-events: none;
}

.le-active-btn {
    pointer-events: auto;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--le-btn-color, #ffd36b) 40%, transparent);
    background: rgba(14, 17, 22, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--le-btn-color, #ffd36b);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.4),
        0 0 12px color-mix(in srgb, var(--le-btn-color, #ffd36b) 15%, transparent);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: le-btn-appear 0.35s ease-out both;
}

.le-active-btn:hover {
    transform: translateY(-3px) scale(1.08);
    border-color: color-mix(in srgb, var(--le-btn-color, #ffd36b) 65%, transparent);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.5),
        0 0 20px color-mix(in srgb, var(--le-btn-color, #ffd36b) 25%, transparent);
}

.le-active-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.le-active-btn__count {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    background: var(--le-btn-color, #ffd36b);
    color: #0e1116;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

@keyframes le-btn-appear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Pulse animation for active events */
.le-active-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--le-btn-color, #ffd36b) 30%, transparent);
    animation: le-btn-pulse 2.5s ease-in-out infinite;
}

@keyframes le-btn-pulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

/* ============================================================================
 * RESPONSIVE
 * ============================================================================ */

@media (max-width: 576px) {
    .le-modal-dialog {
        max-width: calc(100% - 16px);
        margin: 8px;
    }

    .le-modal-body {
        padding: 12px 14px;
    }

    .le-monster {
        padding: 12px 14px;
        gap: 10px;
    }

    .le-monster-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .le-monster-name {
        font-size: 0.95rem;
    }

    .le-combat-row {
        padding: 6px 8px;
    }

    .le-combat-row__name {
        font-size: 0.8rem;
    }

    .le-turn-row {
        padding: 5px 8px;
        gap: 6px;
    }

    .le-turn-hp {
        width: 50px;
    }

    .le-active-events {
        right: 12px;
        bottom: 144px;
    }

    .le-active-btn {
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }

    .le-merchant-item {
        padding: 6px 8px;
        gap: 8px;
    }

    .le-merchant-item__icon {
        width: 26px;
        height: 26px;
        font-size: 0.75rem;
    }

    .le-merchant-item__name {
        font-size: 0.8rem;
    }

    .le-merchant-request__actions {
        gap: 3px;
    }

    .le-merchant-price-input {
        width: 44px;
    }

    .le-merchant-portrait {
        width: 48px;
        height: 64px;
    }

    .le-merchant-profile {
        gap: 8px;
    }

    .le-merchant-tabs {
        padding: 2px;
    }

    .le-merchant-tab {
        padding: 5px 8px;
        font-size: 0.72rem;
    }

    .le-npc-detail-portrait {
        max-width: 160px;
    }

    .le-npc-detail-name {
        font-size: 1rem;
    }

    .le-npc-detail-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .le-active-btn {
        animation: none;
    }

    .le-active-btn::after {
        animation: none;
    }
}

/* ============================================================================
 * MONSTER PICKER (inline in combat modal)
 * ============================================================================ */

.le-monster-picker {
    padding: 4px 0;
}

.le-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    max-height: 40vh;
    overflow-y: auto;
    padding-right: 4px;
}

.le-picker-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 8px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    color: #fff;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 0.82rem;
    text-align: center;
}

.le-picker-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--le-pick-color, #ff6b6b);
    box-shadow: 0 0 8px rgba(255,107,107,0.2);
    transform: translateY(-2px);
}

.le-picker-btn:disabled {
    opacity: 0.6;
    cursor: default;
    transform: none;
}

.le-picker-btn i {
    color: var(--le-pick-color, #ff6b6b);
    font-size: 1.1rem;
}

.le-picker-btn__name {
    font-weight: 600;
    line-height: 1.2;
}

.le-picker-btn__info {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
}

.le-picker-btn__img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid color-mix(in srgb, var(--le-pick-color, #ff6b6b) 40%, transparent);
}

.le-picker-btn__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Picker rarity/boss badges */
.le-picker-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

.le-picker-badge--boss {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ff6b6b;
}

.le-picker-badge--uncommon {
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.3);
    color: #2ecc71;
}

.le-picker-badge--rare {
    background: rgba(52, 152, 219, 0.12);
    border: 1px solid rgba(52, 152, 219, 0.3);
    color: #3498db;
}

.le-picker-badge--epic {
    background: rgba(155, 89, 182, 0.12);
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: #9b59b6;
}

.le-picker-badge--legendary {
    background: rgba(243, 156, 18, 0.12);
    border: 1px solid rgba(243, 156, 18, 0.35);
    color: #f39c12;
}

.le-picker-badge--mythic {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.35);
    color: #e74c3c;
}

/* ============================================================================
 * MONSTER REVEAL PHASE (stacked cards, swipe-away animation)
 * ============================================================================ */

.le-reveal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
}

.le-reveal__counter {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.le-reveal__stack {
    position: relative;
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
}

/* Behind-cards (stacked visual) */
.le-reveal__behind {
    position: absolute;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.le-reveal__behind:nth-child(1) {
    top: 8px;
    left: 6px;
    transform: rotate(2deg);
    opacity: 0.4;
}

.le-reveal__behind:nth-child(2) {
    top: 4px;
    left: 3px;
    transform: rotate(1deg);
    opacity: 0.6;
}

/* Front card */
.le-reveal__card {
    position: relative;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 107, 107, 0.35);
    animation: le-reveal-card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    z-index: 2;
}

.le-reveal__card--boss {
    border-color: rgba(255, 80, 80, 0.6);
    animation: le-reveal-card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               le-detail-glow-boss 2s ease-in-out infinite 0.5s;
}

.le-reveal__card--legendary {
    border-color: rgba(255, 215, 0, 0.7);
    animation: le-reveal-card-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both,
               le-detail-glow-legendary 1.8s ease-in-out infinite 0.5s;
}

.le-reveal__card-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.le-reveal__card-noimg {
    width: 100%;
    aspect-ratio: 2 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
}

.le-reveal__card-noimg i {
    font-size: 4.5rem;
    color: rgba(255, 107, 107, 0.4);
}

.le-reveal__card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 18px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.le-reveal__card-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

.le-reveal__card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.le-reveal__card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Rarity badge inside reveal card */
.le-reveal__rarity {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Swipe-away animation */
.le-reveal__card--exit {
    animation: le-reveal-card-exit 0.4s cubic-bezier(0.6, 0, 0.7, 0.2) forwards;
    pointer-events: none;
}

@keyframes le-reveal-card-in {
    0% {
        opacity: 0;
        transform: scale(0.7) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes le-reveal-card-exit {
    0% {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateX(120%) rotate(12deg);
    }
}

.le-reveal__actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.le-reveal__btn {
    padding: 10px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.le-reveal__btn:hover {
    transform: translateY(-2px);
}

.le-reveal__btn--next {
    background: rgba(255, 107, 107, 0.15);
    border-color: rgba(255, 107, 107, 0.4);
    color: #ff6b6b;
}

.le-reveal__btn--next:hover {
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.2);
}

.le-reveal__btn--fight {
    background: rgba(255, 211, 107, 0.15);
    border-color: rgba(255, 211, 107, 0.5);
    color: #ffd36b;
}

.le-reveal__btn--fight:hover {
    box-shadow: 0 0 12px rgba(255, 211, 107, 0.25);
}

/* ============================================================================
 * NPC CONVERSATIONS (Reden-Tab)
 * ============================================================================ */

/* Tab badge (pending count) */
.le-merchant-tab__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: rgba(255, 107, 107, 0.6);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}

/* Section labels */
.le-conv-section-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 8px;
    padding: 0 2px;
}

/* Predefined question buttons */
.le-conv-predefined {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.le-conv-predef-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(77, 163, 255, 0.3);
    background: rgba(77, 163, 255, 0.08);
    color: rgba(255, 255, 255, .85);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.le-conv-predef-btn:hover:not(:disabled) {
    background: rgba(77, 163, 255, 0.18);
    border-color: rgba(77, 163, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(77, 163, 255, 0.15);
}

.le-conv-predef-btn--asked,
.le-conv-predef-btn:disabled {
    opacity: .4;
    cursor: default;
    transform: none !important;
    box-shadow: none !important;
}

/* Custom question form */
.le-conv-ask-form {
    margin-bottom: 14px;
}

.le-conv-ask-input {
    flex: 1;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: .8rem;
    outline: none;
    transition: border-color 0.2s;
}

.le-conv-ask-input:focus {
    border-color: rgba(77, 163, 255, 0.4);
}

.le-conv-ask-input::placeholder {
    color: rgba(255, 255, 255, .3);
}

/* Conversation thread */
.le-conv-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

.le-conv-thread::-webkit-scrollbar {
    width: 4px;
}

.le-conv-thread::-webkit-scrollbar-track {
    background: transparent;
}

.le-conv-thread::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
}

.le-conv-entry {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.le-conv-entry--pending {
    /* Subtle indicator for unanswered questions */
}

/* Chat bubbles */
.le-conv-bubble {
    position: relative;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: .8rem;
    line-height: 1.4;
    max-width: 90%;
}

.le-conv-bubble--question {
    align-self: flex-start;
    background: rgba(77, 163, 255, 0.1);
    border: 1px solid rgba(77, 163, 255, 0.2);
    border-left: 3px solid rgba(77, 163, 255, 0.4);
}

.le-conv-bubble--answer {
    align-self: flex-end;
    background: rgba(93, 214, 201, 0.1);
    border: 1px solid rgba(93, 214, 201, 0.2);
    border-right: 3px solid rgba(93, 214, 201, 0.4);
}

.le-conv-bubble__who {
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
    opacity: .5;
}

.le-conv-bubble--question .le-conv-bubble__who {
    color: rgba(77, 163, 255, .8);
}

.le-conv-bubble--answer .le-conv-bubble__who {
    color: rgba(93, 214, 201, .8);
}

.le-conv-bubble__text {
    color: rgba(255, 255, 255, .9);
    word-break: break-word;
}

.le-conv-bubble__predef {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: .55rem;
    opacity: .3;
}

/* Pending answer indicator */
.le-conv-pending {
    align-self: flex-end;
    font-size: .75rem;
    color: rgba(255, 255, 255, .35);
    font-style: italic;
    padding: 6px 12px;
    animation: le-conv-pending-pulse 2s ease-in-out infinite;
}

@keyframes le-conv-pending-pulse {
    0%, 100% { opacity: .35; }
    50% { opacity: .6; }
}

/* GM answer form */
.le-conv-answer-form {
    align-self: flex-end;
    width: 90%;
}

.le-conv-answer-npc {
    font-size: .7rem;
    font-weight: 600;
    color: rgba(93, 214, 201, .6);
    white-space: nowrap;
}

.le-conv-answer-input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(93, 214, 201, .2);
    background: rgba(93, 214, 201, .06);
    color: #fff;
    font-size: .78rem;
    outline: none;
    transition: border-color 0.2s;
}

.le-conv-answer-input:focus {
    border-color: rgba(93, 214, 201, .45);
}

.le-conv-answer-input::placeholder {
    color: rgba(255, 255, 255, .25);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .le-conv-bubble {
        max-width: 95%;
    }

    .le-conv-answer-form {
        width: 95%;
    }

    .le-conv-predef-btn {
        padding: 6px 12px;
        font-size: .75rem;
    }

    .le-conv-thread {
        max-height: 280px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .le-conv-pending {
        animation: none !important;
    }
}

/* ============================================================================
 * NPC QUESTS TAB
 * ============================================================================ */

.le-merchant-tab__badge--quest {
    background: rgba(255, 211, 107, 0.6);
}

.le-quest-section-label {
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: rgba(255, 255, 255, .45);
    margin-bottom: 8px;
    padding: 0 2px;
}

.le-quest-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.le-quest-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    transition: all 0.2s ease;
}

.le-quest-card--active {
    border-left: 3px solid rgba(255, 211, 107, 0.5);
}

.le-quest-card--available {
    border-left: 3px solid rgba(93, 214, 201, 0.4);
}

.le-quest-card--completed {
    opacity: .5;
    border-left: 3px solid rgba(40, 167, 69, 0.3);
}

.le-quest-card:hover {
    background: rgba(255, 255, 255, .07);
}

.le-quest-card__icon {
    font-size: 1.3rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.le-quest-card__info {
    flex: 1;
    min-width: 0;
}

.le-quest-card__title {
    font-size: .85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.le-quest-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
    font-size: .7rem;
}

.le-quest-card__type {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.le-quest-card__reward {
    color: rgba(255, 255, 255, .5);
}

.le-quest-card__level {
    color: rgba(77, 163, 255, .6);
    font-weight: 500;
}

.le-quest-card__desc {
    font-size: .72rem;
    color: rgba(255, 255, 255, .4);
    margin-top: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.le-quest-card__objectives {
    font-size: .68rem;
    color: rgba(255, 211, 107, .5);
    margin-top: 3px;
}

.le-quest-card__locked {
    color: rgba(255, 255, 255, .2);
    font-size: 1rem;
    padding: 4px 8px;
}

.le-quest-card__done-badge {
    color: rgba(40, 167, 69, .5);
    font-size: .85rem;
    padding: 4px 8px;
}

.le-quest-start-btn,
.le-quest-complete-btn {
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.le-quest-start-btn:hover,
.le-quest-complete-btn:hover {
    transform: translateY(-2px);
}

.le-quest-complete-btn {
    box-shadow: 0 0 8px rgba(40, 167, 69, 0.15);
}

/* Mobile */
@media (max-width: 576px) {
    .le-quest-card {
        padding: 8px 10px;
    }

    .le-quest-card__title {
        font-size: .78rem;
    }

    .le-quest-card__desc {
        -webkit-line-clamp: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .le-reveal__card,
    .le-reveal__card--boss,
    .le-reveal__card--legendary,
    .le-reveal__card--exit,
    .le-detail-portrait--hero,
    .le-detail-portrait.le-portrait--normal,
    .le-detail-portrait.le-portrait--boss,
    .le-detail-portrait.le-portrait--legendary {
        animation: none !important;
    }
}
