:root {
            --primary: #6c5ce7;
            --primary-light: #8579e8;
            --secondary: #a29bfe;
            --accent: #fd79a8;
            --accent-light: #fe8db6;
            --dark: #2d3436;
            --darker: #1e272e;
            --light: #f5f6fa;
            --light-gray: #dfe6e9;
            --success: #00b894;
            --danger: #d63031;
            --warning: #fdcb6e;
            --info: #0984e3;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: var(--darker);
            color: var(--light);
            overflow-x: hidden;
            min-height: 100vh;
            position: relative;
        }
        
        /* Particle Background */
        .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -2;
            pointer-events: none;
        }
        
        /* Animated Gradient Background */
        .gradient-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -3;
            background: linear-gradient(-45deg, #1e272e, #2d3436, #6c5ce7, #fd79a8);
            background-size: 400% 400%;
            animation: gradientBG 15s ease infinite;
        }
        
        @keyframes gradientBG {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        /* Floating Elements */
        .floating-elements {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            overflow: hidden;
            pointer-events: none;
        }
        
        .floating-element {
            position: absolute;
            border-radius: 50%;
            background: rgba(108, 92, 231, 0.1);
            animation: float 15s infinite linear;
            filter: blur(1px);
        }
        
        .floating-element:nth-child(1) {
            width: 80vh;
            height: 80vh;
            top: -20vh;
            left: -20vh;
            animation-delay: 0s;
            background: radial-gradient(circle, rgba(108, 92, 231, 0.2) 0%, rgba(108, 92, 231, 0) 70%);
        }
        
        .floating-element:nth-child(2) {
            width: 60vh;
            height: 60vh;
            bottom: -15vh;
            right: -15vh;
            animation-delay: 2s;
            background: radial-gradient(circle, rgba(253, 121, 168, 0.2) 0%, rgba(253, 121, 168, 0) 70%);
        }
        
        .floating-element:nth-child(3) {
            width: 40vh;
            height: 40vh;
            top: 30vh;
            right: -10vh;
            animation-delay: 4s;
            background: radial-gradient(circle, rgba(162, 155, 254, 0.2) 0%, rgba(162, 155, 254, 0) 70%);
        }
        
        .floating-element:nth-child(4) {
            width: 50vh;
            height: 50vh;
            bottom: 10vh;
            left: -15vh;
            animation-delay: 6s;
            background: radial-gradient(circle, rgba(0, 184, 148, 0.2) 0%, rgba(0, 184, 148, 0) 70%);
        }
        
        @keyframes float {
            0% {
                transform: translate(0, 0) rotate(0deg);
            }
            50% {
                transform: translate(20px, 20px) rotate(180deg);
            }
            100% {
                transform: translate(0, 0) rotate(360deg);
            }
        }
        
        /* Main Container */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 2rem;
            position: relative;
        }
        
        /* Header */
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
            padding-top: 2rem;
        }

        .header-content {
            flex-grow: 1;
        }
        
        .logo {
            font-size: 4rem;
            font-weight: 800;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 1rem;
            letter-spacing: 2px;
            text-shadow: 0 0 20px rgba(108, 92, 231, 0.3);
            position: relative;
            display: inline-block;
        }
        
        .logo::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
            animation: pulseUnderline 2s infinite ease-in-out;
        }
        
        @keyframes pulseUnderline {
            0% { width: 100px; opacity: 0.8; }
            50% { width: 150px; opacity: 1; }
            100% { width: 100px; opacity: 0.8; }
        }
        
        .tagline {
            font-size: 1.3rem;
            color: var(--secondary);
            margin-bottom: 2rem;
            font-weight: 300;
            max-width: 700px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
        }

        /* Login/Profile Button */
        .auth-button {
            background: var(--primary);
            color: white !important;
            border: none;
            padding: 0.8rem 1.8rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 0.95rem;
            text-decoration: none;
        }

        .auth-button:hover {
            background: var(--primary-light);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
        }
        
        /* Search Bar */
        .search-container {
            max-width: 700px;
            margin: 0 auto 3rem;
            position: relative;
            transition: all 0.3s ease;
        }
        
        .search-container.focused {
            transform: scale(1.02);
        }
        
        .search-bar {
            width: 100%;
            padding: 1.2rem 2rem;
            border-radius: 50px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: var(--light);
            font-size: 1.1rem;
            outline: none;
            transition: all 0.3s ease;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        
        .search-bar::placeholder {
            color: var(--secondary);
            opacity: 0.7;
        }
        
        .search-bar:focus {
            background: rgba(255, 255, 255, 0.15);
            box-shadow: 0 5px 30px rgba(108, 92, 231, 0.4);
            border-color: rgba(108, 92, 231, 0.3);
        }
        
        .search-icon {
            position: absolute;
            right: 2rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--secondary);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .search-bar:focus + .search-icon {
            color: var(--accent);
            transform: translateY(-50%) scale(1.1);
        }
        
        /* Categories */
        .categories {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 3rem;
        }
        
        .category-btn {
            background: rgba(255, 255, 255, 0.1);
            color: var(--light);
            border: none;
            padding: 0.8rem 1.8rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 0.95rem;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }
        
        .category-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 50px;
        }
        
        .category-btn:hover, .category-btn.active {
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(108, 92, 231, 0.3);
        }
        
        .category-btn:hover::before, .category-btn.active::before {
            opacity: 1;
        }
        
        .category-btn:active {
            transform: translateY(0);
        }
        
        /* Game Grid */
        .game-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }
        
        .game-card {
            background: rgba(45, 52, 54, 0.7);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            position: relative;
            cursor: pointer;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        
        .game-card:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px rgba(108, 92, 231, 0.4);
            border-color: var(--primary);
            z-index: 10;
        }
        
        .game-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(253, 121, 168, 0.2));
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .game-card:hover::before {
            opacity: 1;
        }
        
        .game-image-container {
            width: 100%;
            height: 250px;
            overflow: hidden;
            position: relative;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .game-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s ease;
        }
        
        .game-card:hover .game-image {
            transform: scale(1.1);
        }
        
        .game-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--accent);
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 10px rgba(253, 121, 168, 0.3);
            z-index: 2;
        }

        /* New Badge Styles */
        .popular-badge, .new-badge {
            position: absolute;
            top: 15px;
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            z-index: 2;
        }

        .popular-badge {
            left: 15px;
            background: var(--info);
            color: white;
            box-shadow: 0 4px 10px rgba(9, 132, 227, 0.3);
        }

        .new-badge {
            left: 15px;
            background: var(--success);
            color: white;
            box-shadow: 0 4px 10px rgba(0, 184, 148, 0.3);
        }
        
        .coming-soon-badge {
            position: absolute;
            top: 15px;
            right: 15px;
            background: var(--warning);
            color: var(--darker);
            padding: 0.3rem 0.8rem;
            border-radius: 50px;
            font-size: 0.7rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 10px rgba(253, 203, 110, 0.3);
            z-index: 2;
        }
        
        .game-info {
            padding: 1.5rem;
            position: relative;
        }
        
        .game-title {
            font-size: 1.4rem;
            margin-bottom: 0.7rem;
            color: var(--light);
            transition: color 0.3s ease;
            font-weight: 600;
        }
        
        .game-card:hover .game-title {
            color: var(--accent);
            text-shadow: 0 0 10px rgba(253, 121, 168, 0.3);
        }
        
        .game-description {
            font-size: 0.95rem;
            color: var(--light-gray);
            margin-bottom: 1.5rem;
            line-height: 1.6;
            font-weight: 300;
        }
        
        .game-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .game-category {
            background: var(--primary);
            color: white;
            padding: 0.4rem 1rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
        }
        
        .game-play-btn {
            background: transparent;
            color: var(--accent);
            border: 1px solid var(--accent);
            padding: 0.6rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
            font-size: 0.9rem;
        }
        
        .coming-soon-btn {
            background: transparent;
            color: var(--warning);
            border: 1px solid var(--warning);
            padding: 0.6rem 1.5rem;
            border-radius: 50px;
            font-weight: 600;
            cursor: not-allowed;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            position: relative;
            overflow: hidden;
            font-size: 0.9rem;
        }
        
        .game-play-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            z-index: -1;
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 50px;
        }
        
        .game-play-btn:hover {
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(253, 121, 168, 0.3);
        }
        
        .game-play-btn:hover::before {
            opacity: 1;
        }
        
        .game-play-btn:active {
            transform: translateY(0);
        }
        
        /* Featured Section */
        .featured {
            margin-bottom: 4rem;
            position: relative;
        }
        
        .section-title {
            font-size: 2rem;
            margin-bottom: 2rem;
            position: relative;
            display: inline-block;
            font-weight: 700;
            text-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 0;
            width: 60px;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 2px;
            animation: underlinePulse 3s infinite ease-in-out;
        }
        
        @keyframes underlinePulse {
            0% { width: 60px; left: 0; }
            50% { width: 100px; left: 0; }
            100% { width: 60px; left: 0; }
        }
        
        /* Trending Games Carousel */
        .trending-carousel {
            margin-bottom: 4rem;
            position: relative;
        }
        
        .carousel-container {
            display: flex;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            gap: 2rem;
            padding: 1rem 0;
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* IE and Edge */
        }
        
        .carousel-container::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Opera */
        }
        
        .carousel-item {
            min-width: 300px;
            scroll-snap-align: start;
            background: rgba(45, 52, 54, 0.7);
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        
        .carousel-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(108, 92, 231, 0.3);
            border-color: var(--primary);
        }
        
        .carousel-item img {
            width: 100%;
            height: 180px;
            object-fit: cover;
        }
        
        .carousel-item-info {
            padding: 1.5rem;
        }
        
        .carousel-item-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            color: var(--light);
        }
        
        .carousel-item-description {
            font-size: 0.9rem;
            color: var(--secondary);
            margin-bottom: 1rem;
        }
        
        .carousel-nav {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .carousel-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .carousel-dot.active {
            background: var(--primary);
            transform: scale(1.2);
        }
        
        /* Stats Section */
        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            margin-bottom: 4rem;
        }
        
        .stat-card {
            background: rgba(45, 52, 54, 0.7);
            border-radius: 15px;
            padding: 2rem;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(108, 92, 231, 0.2);
            border-color: var(--primary);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--accent);
            margin-bottom: 0.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .stat-icon {
            margin-right: 0.5rem;
            font-size: 1.8rem;
        }
        
        .stat-label {
            font-size: 1rem;
            color: var(--light-gray);
            font-weight: 300;
        }

        /* Leaderboard Section */
        .leaderboard {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .leaderboard-card {
            background: rgba(45, 52, 54, 0.7);
            border-radius: 15px;
            padding: 2rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }

        .leaderboard-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: var(--accent);
            text-align: center;
        }

        .leaderboard-list {
            list-style: none;
            padding: 0;
        }

        .leaderboard-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.8rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .leaderboard-item:last-child {
            border-bottom: none;
        }
        
        .leaderboard-rank {
            font-size: 1.2rem;
            margin-right: 1rem;
        }

        .leaderboard-name {
            font-weight: 500;
            flex-grow: 1;
        }

        .leaderboard-score {
            font-weight: 700;
            color: var(--warning);
        }
        
        /* Footer */
        footer {
            text-align: center;
            padding: 3rem 0;
            margin-top: 3rem;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            background: rgba(30, 39, 46, 0.7);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
        }
        
        .footer-logo {
            font-size: 2.5rem;
            font-weight: 800;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            margin-bottom: 1.5rem;
            display: inline-block;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 2rem;
            margin-bottom: 2rem;
        }
        
        .footer-link {
            color: var(--light-gray);
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 300;
        }
        
        .footer-link:hover {
            color: var(--accent);
            transform: translateY(-2px);
        }
        
        .social-links {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .social-link {
            color: var(--secondary);
            font-size: 1.5rem;
            transition: all 0.3s ease;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: rgba(255, 255, 255, 0.05);
        }
        
        .social-link:hover {
            color: var(--accent);
            transform: translateY(-3px) scale(1.2);
            background: rgba(253, 121, 168, 0.1);
            box-shadow: 0 5px 15px rgba(253, 121, 168, 0.2);
        }
        
        .copyright {
            color: var(--light-gray);
            font-size: 0.9rem;
            opacity: 0.7;
        }
        
        /* Scroll to Top Button */
        .scroll-top {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            opacity: 0;
            visibility: hidden;
            box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4);
            z-index: 100;
        }
        
        .scroll-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .scroll-top:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5);
        }
        
        /* Loading Animation */
        .loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--darker);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease, visibility 0.5s ease;
        }
        
        .loader.hidden {
            opacity: 0;
            visibility: hidden;
        }
        
        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            border-top-color: var(--primary);
            animation: spin 1s linear infinite;
            margin-bottom: 1.5rem;
        }
        
        .loader-text {
            color: var(--light);
            font-size: 1.2rem;
            font-weight: 300;
            text-align: center;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        /* Confetti Effect */
        .confetti {
            position: fixed;
            width: 10px;
            height: 10px;
            background-color: var(--primary);
            opacity: 0;
            z-index: 999;
            animation: confettiFall 5s linear forwards;
        }
        
        @keyframes confettiFall {
            0% {
                transform: translateY(-100vh) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) rotate(360deg);
                opacity: 0;
            }
        }
        
        /* Game Launch Animation */
        .game-launch-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(30, 39, 46, 0.95);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.5s ease;
        }
        
        .game-launch-overlay.active {
            opacity: 1;
            visibility: visible;
        }
        
        .game-launch-title {
            font-size: 3rem;
            color: var(--light);
            margin-bottom: 1rem;
            text-align: center;
            background: linear-gradient(45deg, var(--primary), var(--accent));
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            font-weight: 800;
        }
        
        .game-launch-countdown {
            font-size: 2rem;
            color: var(--accent);
            margin-bottom: 2rem;
            font-weight: 700;
        }
        
        .game-launch-progress {
            width: 300px;
            height: 10px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 2rem;
        }
        
        .game-launch-progress-bar {
            height: 100%;
            width: 0;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            transition: width 0.3s ease;
            border-radius: 5px;
        }
        
        .game-launch-cancel {
            background: transparent;
            color: var(--light-gray);
            border: 1px solid var(--light-gray);
            padding: 0.5rem 1.5rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .game-launch-cancel:hover {
            color: var(--accent);
            border-color: var(--accent);
            transform: translateY(-2px);
        }
        
        /* No results message */
        .no-results {
            text-align: center;
            grid-column: 1 / -1;
            padding: 3rem;
            color: var(--secondary);
            font-size: 1.2rem;
            animation: fadeIn 0.5s ease;
            background: rgba(45, 52, 54, 0.5);
            border-radius: 15px;
            border: 1px dashed var(--primary);
        }

        /* Modal Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            animation: fadeIn 0.3s ease;
        }

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

        .modal-content {
            background: rgba(45, 52, 54, 0.9);
            padding: 2.5rem;
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
            width: 90%;
            max-width: 450px;
            text-align: center;
            position: relative;
            transform: translateY(-20px);
            animation: fadeIn 0.4s ease forwards;
        }

        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            color: var(--light-gray);
            font-size: 1.8rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-close:hover {
            color: var(--accent);
            transform: rotate(90deg);
        }

        .modal-title {
            font-size: 1.8rem;
            color: var(--primary);
            margin-bottom: 1rem;
        }

        .modal-input {
            width: 100%;
            padding: 1rem;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(0, 0, 0, 0.2);
            color: var(--light);
            font-size: 1rem;
            margin-bottom: 1.5rem;
            outline: none;
            transition: all 0.3s ease;
        }

        .modal-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
        }

        .modal-button {
            width: 100%;
            padding: 1rem;
            border: none;
            border-radius: 10px;
            background: var(--primary);
            color: white;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-button:hover {
            background: var(--primary-light);
            transform: translateY(-3px);
        }
        
        /* Auth Modal Specifics */
        .auth-form {
            display: none;
        }
        .auth-form.active {
            display: block;
        }
        .form-switcher {
            margin-top: 1.5rem;
            color: var(--secondary);
            font-size: 0.9rem;
        }
        .form-switcher-link {
            color: var(--accent);
            cursor: pointer;
            font-weight: 600;
            text-decoration: none;
        }
        .form-switcher-link:hover {
            text-decoration: underline;
        }
        .modal-error {
            color: var(--danger);
            margin-bottom: 1rem;
            font-size: 0.9rem;
            display: none; /* Hidden by default */
        }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .container {
                padding: 1.5rem;
            }
            
            .logo {
                font-size: 3.5rem;
            }
            
            .game-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                gap: 1.5rem;
            }

            .leaderboard {
                grid-template-columns: 1fr;
            }

            .logo {
                font-size: 2.8rem;
            }
            
            .tagline {
                font-size: 1.1rem;
            }
            
            .search-bar {
                padding: 1rem 1.5rem;
            }
            
            .stats {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 1rem;
            }
            
            .logo {
                font-size: 2.2rem;
            }
            
            .game-grid {
                grid-template-columns: 1fr;
            }
            
            .category-btn {
                padding: 0.6rem 1.2rem;
                font-size: 0.85rem;
            }
            
            .section-title {
                font-size: 1.6rem;
            }
            
            .footer-links {
                gap: 1rem;
                flex-direction: column;
            }
            .modal-content {
                padding: 2rem 1.5rem;
            }
        }
        
        /* Animation for cards */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .game-card {
            animation: fadeIn 0.5s ease forwards;
            opacity: 0;
        }
        
        /* Staggered animations for game cards */
        .game-card:nth-child(1) { animation-delay: 0.1s; }
        .game-card:nth-child(2) { animation-delay: 0.2s; }
        .game-card:nth-child(3) { animation-delay: 0.3s; }
        .game-card:nth-child(4) { animation-delay: 0.4s; }
        .game-card:nth-child(5) { animation-delay: 0.5s; }
        .game-card:nth-child(6) { animation-delay: 0.6s; }
        .game-card:nth-child(7) { animation-delay: 0.7s; }
        .game-card:nth-child(8) { animation-delay: 0.8s; }
        .game-card:nth-child(9) { animation-delay: 0.9s; }
        .game-card:nth-child(10) { animation-delay: 1.0s; }
        .game-card:nth-child(11) { animation-delay: 1.1s; }
        .game-card:nth-child(12) { animation-delay: 1.2s; }
        .game-card:nth-child(13) { animation-delay: 1.3s; }
        .game-card:nth-child(14) { animation-delay: 1.4s; }
        .game-card:nth-child(15) { animation-delay: 1.5s; }
        .game-card:nth-child(16) { animation-delay: 1.6s; }
        .game-card:nth-child(17) { animation-delay: 1.7s; }
        .game-card:nth-child(18) { animation-delay: 1.8s; }
        .game-card:nth-child(19) { animation-delay: 1.9s; }
        
        /* Floating animation for featured section */
        @keyframes floatSection {
            0% { transform: translateY(0px); }
            50% { transform: translateY(-15px); }
            100% { transform: translateY(0px); }
        }
        
        .featured {
            animation: floatSection 8s ease-in-out infinite;
        }
        
        /* Button press animation */
        @keyframes buttonPress {
            0% { transform: scale(1); }
            50% { transform: scale(0.95); }
            100% { transform: scale(1); }
        }
        
        .game-play-btn:active, 
        .category-btn:active {
            animation: buttonPress 0.3s ease;
        }
        
        /* Shake animation */
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }