
        :root {
            --primary: #6c5ce7;
            --primary-light: #a29bfe;
            --secondary: #fd79a8;
            --dark: #1e1f29;
            --dark-light: #636e72;
            --light: #f5f6fa;
            --success: #00b894;
            --warning: #fdcb6e;
            --danger: #d63031;
            --glass: rgba(255, 255, 255, 0.15);
            --glass-border: rgba(255, 255, 255, 0.2);
            --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            --blur: blur(10px);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            color: var(--dark);
            min-height: 100vh;
            overflow-x: hidden;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* Header Styles */
        header {
            background: var(--glass);
            backdrop-filter: var(--blur);
            -webkit-backdrop-filter: var(--blur);
            border-bottom: 1px solid var(--glass-border);
            position: sticky;
            top: 0;
            z-index: 1000;
            animation: fadeIn 0.5s ease-out;
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 0;
        }
        
        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--dark);
            font-weight: 700;
            font-size: 24px;
        }
        
        .logo-icon {
            background: var(--primary);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
        }
        
        /* Search Bar */
        .search-container {
            flex: 1;
            max-width: 500px;
            margin: 0 30px;
            position: relative;
        }
        
        .search-bar {
            width: 100%;
            padding: 12px 20px;
            padding-right: 45px;
            border: none;
            border-radius: 50px;
            background: rgba(255, 255, 255, 0.8);
            font-size: 16px;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
        }
        
        .search-bar:focus {
            outline: none;
            background: white;
            box-shadow: 0 5px 15px rgba(108, 92, 231, 0.2);
        }
        
        .search-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--dark-light);
        }
        
        .close-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--dark-light);
            cursor: pointer;
            transition: all 0.3s ease;
            display: none;
        }
        
        .close-icon:hover {
            color: var(--danger);
        }

        /* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 24px;
    cursor: pointer;
    margin-left: 15px;
}
        
        /* User Navigation */
        .user-nav {
            display: flex;
            align-items: center;
        }
        
        .nav-link {
            display: flex;
            align-items: center;
            text-decoration: none;
            color: var(--dark);
            margin-left: 20px;
            font-weight: 500;
            position: relative;
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.3s ease;
        }
        
        .nav-link:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        
        .nav-link i {
            margin-right: 8px;
        }
        
        .favorites-count {
            position: absolute;
            top: -5px;
            right: -5px;
            background: var(--secondary);
            color: white;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        /* Main Content */
        .main-content {
            padding: 40px 0;
        }
        
        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
        }
        
        .section-title {
            font-size: 28px;
            font-weight: 700;
            color: var(--dark);
            position: relative;
            display: inline-block;
        }
        
        section.all-games {
            margin-top: 50px;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 50px;
            height: 4px;
            background: var(--primary);
            border-radius: 2px;
        }
        
        .view-all {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
        }
        
        .view-all i {
            margin-left: 5px;
            transition: transform 0.3s;
        }
        
        .view-all:hover i {
            transform: translateX(3px);
        }
        
        /* Categories */
        .categories {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 10px;
            margin-bottom: 30px;
            padding-bottom: 10px;
        }
        
        .categories::-webkit-scrollbar {
            height: 5px;
        }
        
        .categories::-webkit-scrollbar-thumb {
            background: var(--primary-light);
            border-radius: 10px;
        }
        
        .category {
            padding: 8px 20px;
            background: white;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }
        
        .category:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(108, 92, 231, 0.1);
        }
        
        .category.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        /* Games Grid */
        .games-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 25px;
        }
        
        .game-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            position: relative;
            animation: fadeIn 0.5s ease-out;
            animation-fill-mode: backwards;
        }
        
        .game-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(108, 92, 231, 0.2);
        }
        
        .game-thumbnail {
            position: relative;
            overflow: hidden;
        }
        
        .game-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .game-card:hover .game-thumbnail img {
            transform: scale(1.05);
        }
        
        .game-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--primary);
            color: white;
            padding: 4px 10px;
            border-radius: 50px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .play-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .play-button {
            width: 60px;
            height: 60px;
            background: var(--primary);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            cursor: pointer;
            transform: scale(0.8);
            transition: all 0.3s ease;
        }
        
        .game-card:hover .play-overlay {
            opacity: 1;
        }
        
        .game-card:hover .play-button {
            transform: scale(1);
        }
        
        .game-info {
            padding: 16px;
        }
        
        .game-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        
        .game-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--dark-light);
        }
        
        .game-rating {
            display: flex;
            align-items: center;
            color: var(--warning);
        }
        
        .game-rating i {
            margin-right: 3px;
        }
        
        .game-actions {
            display: flex;
            justify-content: space-between;
            margin-top: 12px;
        }
        
        .btn {
            border: none;
            border-radius: 8px;
            padding: 8px 16px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-play {
            background: var(--primary);
            color: white;
            flex: 1;
            margin-right: 8px;
        }
        
        .btn-play:hover {
            background: var(--primary-light);
        }
        
        .btn-favorite {
            width: 36px;
            height: 36px;
            background: var(--light);
            color: var(--dark-light);
            border-radius: 8px;
        }
        
        .btn-favorite.favorited {
            color: var(--secondary);
        }
        
        /* Game Viewer */
        .game-viewer {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 2000;
            display: none;
            flex-direction: column;
            backdrop-filter: blur(5px);
        }
        
        .game-viewer.active {
            display: flex;
        }
        
        .game-viewer-header {
            padding: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0, 0, 0, 0.7);
        }
        
        .game-viewer-title {
            color: white;
            font-size: 20px;
            font-weight: 600;
        }
        
        .game-viewer-close {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }
        
        .game-viewer-close:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .game-viewer-content {
            flex: 1;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .game-iframe {
            width: 100%;
            max-width: 900px;
            height: 70vh;
            border: none;
            border-radius: 12px;
            background: black;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }
        
        .game-viewer-actions {
            padding: 20px;
            display: flex;
            justify-content: center;
        }
        
        .btn-fullscreen {
            background: var(--primary);
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 500;
            display: flex;
            align-items: center;
        }
        
        .btn-fullscreen i {
            margin-right: 8px;
        }
        
        /* Footer */
        footer {
            background: var(--dark);
            color: white;
            padding: 20px 0;
        }
        
        .footer-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .footer-copyright {
            font-size: 14px;
            color: #b2bec3;
        }
        
        .footer-links {
            display: flex;
            gap: 20px;
        }
        
        .footer-links a {
            color: #b2bec3;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: white;
        }
        
        /* Search results section */
        .search-results {
            display: none;
        }

        .search-results.active {
            display: block;
        }

        /* Hide sections when searching */
        .searching .recent-games,
        .searching .all-games,
        .searching .category-games,
        .searching .favorites-games,
        .searching .featured-games {
            display: none;
        }
        
        /* Category games section */
        .category-games {
            display: none;
        }
        
        .category-games.active {
            display: block;
        }
        
        /* Hide sections when category is selected */
        .category-selected .recent-games,
        .category-selected .all-games,
        .category-selected .favorites-games,
        .category-selected .featured-games {
            display: none;
        }
        
        /* Favorites games section */
        .favorites-games {
            display: none;
        }

        .favorites-games.active {
            display: block;
        }

        /* Hide sections when favorites is selected */
        .favorites-selected .recent-games,
        .favorites-selected .all-games,
        .favorites-selected .category-games,
        .favorites-selected .search-results,
        .favorites-selected .featured-games {
            display: none;
        }
        
        /* Featured games section */
        .featured-games {
            display: none;
        }

        .featured-games.active {
            display: block;
        }

        /* Hide sections when featured is selected */
        .featured-selected .recent-games,
        .featured-selected .all-games,
        .featured-selected .category-games,
        .featured-selected .search-results,
        .featured-selected .favorites-games {
            display: none;
        }
        
        /* Modal/Popup Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            display: none;
            justify-content: center;
            align-items: center;
            backdrop-filter: blur(5px);
        }
        
        .modal-overlay.active {
            display: flex;
        }
        
        .modal {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 600px;
            max-height: 80vh;
            overflow-y: auto;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            animation: fadeIn 0.3s ease-out;
            position: relative;
        }
        
        .modal-header {
            padding: 20px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .modal-title {
            font-size: 22px;
            font-weight: 600;
            color: var(--dark);
            margin: 0;
        }
        
        .modal-close {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--dark-light);
            transition: color 0.3s;
        }
        
        .modal-close:hover {
            color: var(--danger);
        }
        
        .modal-content {
            padding: 20px;
        }
        
        .modal-content h2 {
            color: var(--primary);
            margin-top: 20px;
            margin-bottom: 10px;
        }
        
        .modal-content p {
            margin-bottom: 15px;
            line-height: 1.6;
        }
        
        .modal-content ul {
            margin-bottom: 15px;
            padding-left: 20px;
        }
        
        .modal-content li {
            margin-bottom: 8px;
        }

/* Mobile Styles */
@media (max-width: 768px) {
    .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

    .menu-toggle {
        display: block;
    }
    
    .user-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--glass);
        backdrop-filter: var(--blur);
        -webkit-backdrop-filter: var(--blur);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        padding: 15px 20px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .user-nav.active {
        transform: translateY(0);
        background: white;
    }
    
    .user-nav .nav-link {
        margin: 10px 0;
        padding: 10px;
    }
    
    .header-container {
        padding: 15px 0;
    }
    
    .search-container {
        margin: 0 15px;
    }
}
    
.editorial{max-width:1000px;margin:30px auto;padding:24px;background:var(--light);color:var(--dark);border-radius:16px;line-height:1.75}.editorial h1{font-size:clamp(1.7rem,4vw,2.6rem);line-height:1.2;margin-bottom:16px}.editorial h2{margin:24px 0 10px}.editorial p,.editorial ul{margin:12px 0}.editorial ul{padding-left:24px}.editorial a{color:#4935be;text-decoration:underline}.editorial nav{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:20px}.game-stage{background:#1e1f29;border-radius:12px;overflow:hidden;margin:20px 0;padding:12px}.game-stage iframe{width:100%;height:65vh;min-height:320px;border:0;background:white}.load-game{padding:14px 24px;border:0;border-radius:8px;background:#6c5ce7;color:white;font-size:1rem;cursor:pointer}.cover{width:200px;max-width:100%;border-radius:12px}.intro{padding:24px 0;line-height:1.7}.intro h1{font-size:2rem}.intro a{color:inherit;text-decoration:underline}.game-title a{color:inherit}.btn-play{text-align:center;text-decoration:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ffad24;outline-offset:4px}@media(max-width:600px){.editorial{margin:14px;padding:18px}.game-stage iframe{height:60vh}}

button.category{font:inherit;border:0;}
