/* assets/css/style.css - FINAL WORKING VERSION */
@tailwind base;
@tailwind components;
@tailwind utilities;
/* Only custom styles below - DO NOT include @import for Tailwind again! */
  :root {
            --game-gap: 40px;
            --rewards-gap: 32px;
            --partner-gap: 40px;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-20px); }
        }
        .animate-float { animation: float 6s ease-in-out infinite; }
        .orbitron { font-family: 'Orbitron', sans-serif; }
        .glass { backdrop-filter: blur(16px); }
        .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
        .scrollbar-hide::-webkit-scrollbar { display: none; }
        .glow { box-shadow: 0 0 40px rgba(251, 191, 36, 0.5); }
        .dot { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
        #toast-container {
            z-index: 100;
            pointer-events: none;
        }
        #toast-container > div {
            max-width: 100%;
            width: 300px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
            pointer-events: auto;
        }
        @media (max-width: 640px) {
            #toast-container {
                top: 1rem;
                right: 1rem;
                left: 1rem;
                width: calc(100% - 2rem);
            }
            #toast-container > div {
                width: 100%;
                font-size: 0.875rem;
            }
        }
        .game-card {
            flex: 0 0 auto;
            width: 280px;
            height: 200px;
            border-radius: 1.5rem;
            background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
            border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(12px);
            box-shadow: 0 0 30px rgba(255, 200, 0, 0.15);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.4s ease;
        }
        .game-card:hover {
            transform: scale(1.08) rotateX(8deg) rotateY(10deg);
            box-shadow: 0 20px 50px rgba(255, 200, 0, 0.3);
        }
        @media (min-width: 768px) {
        .game-card {
            width: 360px;
            height: 240px;
        }
        .game-card img {
            width: 96px;
            height: 96px;
        }
    }
			.flip-card {
        perspective: 1200px;
        width: 360px;
        height: 320px; /* Increased from 280px for desktop */
        flex-shrink: 0;
        transform-style: preserve-3d;
        transition: transform 0.5s ease, box-shadow 0.5s ease;
    }
    .flip-card:hover {
        transform: rotateY(10deg) rotateX(8deg) scale(1.05);
        box-shadow: 0 20px 50px rgba(255, 200, 0, 0.2);
    }
    .flip-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1);
        transform-style: preserve-3d;
    }
    .flip-card:hover .flip-inner,
    .flip-card.tapped .flip-inner {
        transform: rotateY(180deg);
    }
    .flip-front, .flip-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 1.5rem;
        overflow-y: auto; /* Enable scrolling for long content */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* Align content from top */
        padding-top: 1rem; /* Add top padding for better spacing */
    }
    .flip-front {
        background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    }
    .flip-back {
        background: linear-gradient(135deg, #1a0033, #33004d);
        transform: rotateY(180deg);
        text-align: center;
    }
    .flip-front::-webkit-scrollbar,
    .flip-back::-webkit-scrollbar {
        width: 6px;
    }
    .flip-front::-webkit-scrollbar-thumb,
    .flip-back::-webkit-scrollbar-thumb {
        background: rgba(251, 191, 36, 0.5);
        border-radius: 3px;
    }
    .flip-front::-webkit-scrollbar-track,
    .flip-back::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
    }
    @media (max-width: 768px) {
        .flip-card {
            width: 280px;
            height: 280px; /* Increased from 240px for mobile */
        }
        .flip-front {
            padding: 1rem;
        }
        .flip-back {
            padding: 0.75rem;
        }
        .flip-front img {
            max-height: 80px; /* Reduced for mobile */
        }
        .flip-front p,
        .flip-back p {
            hyphens: auto;
            word-break: break-all; /* Handle very long words */
        }
    }
        .reward-card {
            flex: 0 0 auto;
            width: 280px;
            height: 220px;
            border-radius: 1.5rem;
            background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
            border: 1px solid rgba(255,255,255,0.1);
            backdrop-filter: blur(12px);
            box-shadow: 0 0 30px rgba(255, 200, 0, 0.15);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: all 0.4s ease;
        }
        .reward-card:hover {
            transform: scale(1.08) rotateX(8deg) rotateY(10deg);
            box-shadow: 0 20px 50px rgba(255, 200, 0, 0.3);
        }
        @media (min-width: 768px) {
            .reward-card {
                width: 360px;
                height: 280px;
            }
        }
        @media (max-width: 640px) {
            section:first-of-type .h-64 {
                height: auto;
            }
            h1 {
                font-size: 1.5rem;
            }
            .reward-card p:first-child {
                font-size: 1.5rem;
            }
            .game-card {
                width: 240px;
                height: 180px;
            }
            .reward-card {
                width: 240px;
                height: 200px;
            }
            .flip-card {
                width: 240px;
                height: 200px;
            }
        }
        @media (max-width: 767px) {
            #nav-links.active {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: rgba(0, 0, 0, 0.9);
                padding: 1rem;
                z-index: 50;
            }
        }
        #game-carousel { gap: var(--game-gap); }
        #carousel { gap: var(--partner-gap); }
        #rewards-carousel { gap: var(--rewards-gap); }
        #rewards-carousel::after {
            content: "";
            flex: 0 0 calc(100vw - 280px - var(--rewards-gap));
            height: 1px;
        }
        @media (min-width: 768px) {
            #rewards-carousel::after {
                flex: 0 0 calc(100vw - 360px - var(--rewards-gap));
            }
        }
		.glassmorphic {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(12px);
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        }
        .gradient-bg {
            background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        }
        .glow-effect {
            box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
        }
        .pulse-slow {
            animation: pulse 3s ease-in-out infinite;
        }
        .text-gradient {
            background: linear-gradient(90deg, #f59e0b, #facc15);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .text-shadow-glow {
            text-shadow: 0 0 10px rgba(251, 191, 36, 0.8), 0 0 20px rgba(251, 191, 36, 0.4);
        }