/* Reset styles for elements outside the quest section */
body > *:not(#wl-quests-isolated),
.t396__elem:not(#wl-quests-isolated) {
    text-align: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    position: relative !important;
    left: auto !important;
    margin: 0 auto !important;
    transform: none !important;
}

/* Ensure proper containment */
#wl-quests-isolated {
    contain: layout style paint;
    isolation: isolate;
    position: relative !important;
    z-index: 1;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding-bottom: 0 !important;
    transform: none !important;
}

/* Prevent margin collapse */
#wl-quests-isolated::before,
#wl-quests-isolated::after {
    content: '';
    display: table;
    clear: both;
}

/* Force proper stacking context */
#wl-quests-isolated * {
    position: relative;
    z-index: auto;
}

/* Reset any inherited styles */
#wl-quests-isolated + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Scoped Styles */
#wl-quests-isolated {
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-duration: 0.3s;
    font-family: 'Inter', sans-serif;
    background-color: #1c1c1c;
    color: #e5e5e5;
    -webkit-tap-highlight-color: transparent;
    contain: content;
    position: relative;
    z-index: 1;
}

#wl-quests-isolated * {
    box-sizing: border-box;
}

/* Prevent margin collapse */
#wl-quests-isolated::before,
#wl-quests-isolated::after {
    content: '';
    display: table;
    clear: both;
}

/* Force proper stacking context */
#wl-quests-isolated * {
    position: relative;
    z-index: auto;
}

/* Reset any inherited styles that might cause shifting */
#wl-quests-isolated + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


    


    
    
    
    
    
    
    
    
    
    
    
    
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        dark: '#1c1c1c',
                        darker: '#0a0a0a',
                        primary: '#f59e0b',
                        danger: '#ef4444',
                    },
                    fontFamily: {
                        sans: ['Inter', 'sans-serif'],
                    },
                }
            }
        }
    

    
    
        /* Scope all styles to the isolated container */
        #wl-quests-isolated {
            --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
            --transition-duration: 0.3s;
            font-family: 'Inter', sans-serif;
            background-color: #1c1c1c;
            color: #e5e5e5;
            -webkit-tap-highlight-color: transparent;
            /* Add isolation */
            contain: content;
            position: relative;
            z-index: 1;
        }

        #wl-quests-isolated * {
            box-sizing: border-box;
        }

        /* Optimized Animations */
        @keyframes wlFadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes wlFloat {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-5px); }
        }

        @keyframes wlPulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.03); }
        }

        @keyframes wlGlow {
            0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
            70% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
            100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }

        /* Utility Classes */
        #wl-quests-isolated .animate-fade-in {
            animation: wlFadeIn 0.6s var(--animation-timing) forwards;
            will-change: transform, opacity;
        }

        #wl-quests-isolated .animate-float {
            animation: wlFloat 4s ease-in-out infinite;
            will-change: transform;
        }

        #wl-quests-isolated .animate-pulse {
            animation: wlPulse 2s ease-in-out infinite;
            will-change: transform;
        }

        #wl-quests-isolated .animate-glow {
            animation: wlGlow 1.5s infinite;
            will-change: box-shadow;
        }

        /* Quest Card Styles */
        #wl-quests-isolated .quest-card {
            transition: all var(--transition-duration) var(--animation-timing);
            border-radius: 12px;
            overflow: hidden;
            cursor: pointer;
            position: relative;
            z-index: 2;
            margin-bottom: -5px;
            background-color: #1a1a1a;
            opacity: 0;
            transform: translateZ(0);
            will-change: transform, height;
            contain: content;
            backface-visibility: hidden;
            perspective: 1000px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        #wl-quests-isolated .quest-card.visible {
            opacity: 1;
        }

        #wl-quests-isolated .quest-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
            opacity: 0;
            transition: opacity var(--transition-duration) ease;
            z-index: 1;
        }

        #wl-quests-isolated .quest-card:hover::before {
            opacity: 1;
        }

        #wl-quests-isolated .quest-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
            border-color: rgba(245, 158, 11, 0.3);
        }

        #wl-quests-isolated .quest-card:hover .quest-image {
            transform: scale(1.05);
        }

        #wl-quests-isolated .quest-card:hover .price-tag {
            transform: scale(1.1);
            background: rgba(239, 68, 68, 0.9);
        }

        #wl-quests-isolated .quest-card:hover .quest-badge {
            transform: translateY(0);
            opacity: 1;
        }

        #wl-quests-isolated .quest-card:active {
            transform: scale(0.98);
        }

        /* Quest Elements */
        #wl-quests-isolated .quest-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            padding: 4px 10px;
            border-radius: 16px;
            font-weight: 700;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 10;
            transform: translateY(15px);
            opacity: 0;
            transition: all var(--transition-duration) ease 0.1s;
            will-change: transform, opacity;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        #wl-quests-isolated .price-tag {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background: rgba(0, 0, 0, 0.8);
            padding: 5px 10px;
            border-radius: 16px;
            font-weight: bold;
            font-size: 16px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
            z-index: 10;
            color: white;
            transition: all var(--transition-duration) ease;
            will-change: transform, background;
        }

        /* Rating Styles */
        #wl-quests-isolated .rating-value {
            color: #f59e0b;
            font-weight: bold;
            font-size: 1rem;
        }

        #wl-quests-isolated .rating-count {
            color: #a1a1aa;
            font-size: 0.7rem;
            display: block;
            line-height: 1;
            margin-top: 2px;
        }

        /* Difficulty Meter */
        #wl-quests-isolated .difficulty-meter {
            height: 4px;
            border-radius: 2px;
            background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
            margin: 8px 0;
            position: relative;
        }

        #wl-quests-isolated .difficulty-indicator {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            position: absolute;
            top: -3px;
            transform: translateX(-50%);
            background-color: #f59e0b;
            border: 2px solid #1a1a1a;
        }

        /* Book Now Button */
        #wl-quests-isolated .book-now-btn {
            background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
            color: white !important;
            font-weight: 600;
            text-decoration: none !important;
            width: 100%;
            padding: 12px;
            text-align: center;
            margin-top: -5px;
            position: relative;
            z-index: 1;
            border-radius: 0 0 12px 12px;
            transition: all var(--transition-duration) ease;
            border: none;
            cursor: pointer;
            font-family: 'Inter', sans-serif;
            font-size: 16px;
            display: block;
        }

        #wl-quests-isolated .book-now-btn i {
            margin-right: 8px;
            font-size: 14px;
        }

        #wl-quests-isolated .book-now-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
        }

        #wl-quests-isolated .book-now-btn:active {
            transform: translateY(0);
            box-shadow: none;
        }

        /* Quest Details */
        #wl-quests-isolated .quest-details {
            max-height: 0;
            overflow: hidden;
            opacity: 0;
            transform: translateY(-10px);
            transition: 
                max-height 0.5s var(--animation-timing),
                opacity 0.3s ease,
                transform 0.3s ease;
            will-change: transform, opacity, max-height;
            padding: 0 8px;
            box-sizing: border-box;
        }

        #wl-quests-isolated .quest-card.active .quest-details {
            max-height: 1000px;
            opacity: 1;
            transform: translateY(0);
            transition: 
                max-height 0.5s var(--animation-timing),
                opacity 0.3s ease 0.1s,
                transform 0.3s ease 0.1s;
        }

        /* Filter Button Styles */
        #wl-quests-isolated .filter-btn {
            background-color: rgba(255, 255, 255, 0.1);
            color: #e5e5e5;
            transition: all var(--transition-duration) ease;
        }

        #wl-quests-isolated .filter-btn:hover {
            background-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        #wl-quests-isolated .filter-btn.active {
            background-color: #f59e0b;
            color: white;
        }

        /* Info Row Styles */
        #wl-quests-isolated .info-row {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
        }

        #wl-quests-isolated .info-icon {
            width: 16px;
            margin-right: 8px;
            color: #f59e0b;
        }

        #wl-quests-isolated .fear-level {
            display: inline-flex;
            gap: 2px;
        }

        #wl-quests-isolated .skull-icon {
            color: #ef4444;
            font-size: 12px;
        }

        /* Quest Container */
        #wl-quests-isolated .quest-container {
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        /* Custom Scrollbar */
        #wl-quests-isolated ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        #wl-quests-isolated ::-webkit-scrollbar-track {
            background: #1a1a1a;
        }

        #wl-quests-isolated ::-webkit-scrollbar-thumb {
            background: #f59e0b;
            border-radius: 4px;
        }

        #wl-quests-isolated ::-webkit-scrollbar-thumb:hover {
            background: #d97706;
        }

        /* Responsive Design */
        @media (max-width: 640px) {
            #wl-quests-isolated .quest-card {
                border-radius: 10px;
            }

            #wl-quests-isolated .quest-badge {
                font-size: 10px;
                padding: 3px 8px;
            }

            #wl-quests-isolated .price-tag {
                font-size: 14px;
                padding: 4px 8px;
            }
        }