 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            text-align: center;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #333;
            position: relative;
        }
        
        /* Gaming background icons for desktop only */
        @media (min-width: 768px) {
            body::before {
                content: '🎮 🕹️ 🎯 🏆 ⚡ 🚀 🎵 🔥 💎 ⭐ 🎲 🏁 🎪 🎨 🌟 💥 🎊 🎈';
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                font-size: 24px;
                opacity: 0.1;
                z-index: -1;
                display: flex;
                flex-wrap: wrap;
                align-items: center;
                justify-content: space-around;
                padding: 20px;
                pointer-events: none;
                animation: floatIcons 20s linear infinite;
            }
            
            @keyframes floatIcons {
                0% { transform: translateY(0px); }
                50% { transform: translateY(-20px); }
                100% { transform: translateY(0px); }
            }
        }
        
        
  
    
        
    
        /* Mobile container */
        .mobile-container {
            /*max-width: 414px;*/
            max-width: 29rem;
            margin: 0 auto;
            background: #f8f9fa;
            min-height: 100vh;
            box-shadow: 0 0 20px rgba(0,0,0,0.1);
        }
        
        @media (max-width: 29rem) {
            .mobile-container {
                box-shadow: none;
            }
        }
        
        .page {
            display: none;
            padding: 16px;
            max-width: 100%;
            margin: 0 auto;
        }
        
        .page.active {
            display: block;
        }
        
        .header {
            text-align: center;
            margin-bottom: 24px;
            padding: 16px 0;
        }
        
        .logo-container {
            width: 336px;
            height: 280px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 20px;
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            position: relative;
            overflow: hidden;
        }
        
        .logo-placeholder {
            text-align: center;
            color: white;
            position: relative;
            z-index: 2;
        }
        
        .logo-bg {
            font-size: 60px;
            margin-bottom: 10px;
            animation: logoFloat 3s ease-in-out infinite;
        }
        
        .logo-text {
            font-size: 32px;
            font-weight: 700;
            display: block;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }
        
        .logo-container::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            animation: logoShimmer 4s linear infinite;
        }
        
        @keyframes logoFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }
        
        @keyframes logoShimmer {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .ad-box {
            background: linear-gradient(135deg, #ff6b6b, #ee5a24, #ff9ff3, #54a0ff);
            background-size: 400% 400%;
            color: white;
            padding: 20px;
            border-radius: 16px;
            text-align: center;
            margin: 30px 15px;
            box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            animation: gradientShift 3s ease-in-out infinite, pulse 2s ease-in-out infinite;
            transition: all 0.3s ease;
        }
        
        .animated-ad:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 12px 40px rgba(255, 107, 107, 0.6);
        }
        
        .play-icon {
            position: absolute;
            top: 50%;
            right: 20px;
            transform: translateY(-50%);
            font-size: 24px;
            animation: playIconBounce 1.5s ease-in-out infinite;
        }
        
        .shimmer {
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            animation: shimmerMove 2s linear infinite;
        }
        
        @keyframes gradientShift {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        
        @keyframes pulse {
            0%, 100% { box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4); }
            50% { box-shadow: 0 8px 32px rgba(255, 107, 107, 0.8); }
        }
        
        @keyframes playIconBounce {
            0%, 100% { transform: translateY(-50%) scale(1); }
            50% { transform: translateY(-50%) scale(1.2); }
        }
        
        @keyframes shimmerMove {
            0% { left: -100%; }
            100% { left: 100%; }
        }
        
        .ad-title {
            font-size: 18px;
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .ad-text {
            font-size: 14px;
            opacity: 0.9;
        }
        
        .add-home-btn {
            background: #10b981;
            color: white;
            border: none;
            padding: 14px 24px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            margin: 16px 0;
            width: 100%;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .add-home-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.5s;
        }
        
        .add-home-btn:hover::before {
            left: 100%;
        }
        
        .add-home-btn:hover {
            background: #059669;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
        }
        
        .add-home-btn:active {
            background: #047857;
            transform: translateY(0) scale(0.98);
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
        }
        
        .category-buttons {
            display: flex;
            gap: 12px;
            margin: 24px 20px;
        }
        
        .category-btn {
            flex: 1;
            color: white;
            border: none;
            padding: 16px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            position: relative;
            overflow: hidden;
        }
        
        .classic-btn {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }
        
        .popular-btn {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        }
        
        .category-btn::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(59, 130, 246, 0.1);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.4s ease, height 0.4s ease;
        }
        
        .classic-btn:hover {
            background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
        }
        
        .popular-btn:hover {
            background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
        }
        
        .category-btn:hover::after {
            width: 300px;
            height: 300px;
        }
        
        .category-btn:active {
            transform: translateY(-1px) scale(0.95);
        }
        
        .games-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
            margin: 24px 20px;
        }
        
        .game-card {
            background: white;
            border-radius: 16px;
            padding: 0;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            border: 1px solid #f1f5f9;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        
        .game-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
            border-color: #e2e8f0;
        }
        
        .game-card:hover .game-icon {
            transform: scale(1.1);
        }
        
        .game-card:hover .game-image {
            transform: scale(1.05);
        }
        
        .game-card:active {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        }
        
        .game-image-container {
            width: 100%;
            height: 120px;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            border-radius: 16px 16px 0 0;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
        }
        
        .game-icon {
            font-size: 48px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        }
        
        .game-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .game-content {
            padding: 16px;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .game-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 6px;
            color: #1f2937;
            position: relative;
            z-index: 2;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        .game-desc {
            font-size: 13px;
            color: #6b7280;
            line-height: 1.5;
            position: relative;
            z-index: 2;
            font-weight: 500;
        }
        
        .back-btn {
            background: #f3f4f6;
            color: #374151;
            border: none;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            margin-bottom: 16px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }
        
        .back-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(55, 65, 81, 0.1), transparent);
            transition: left 0.5s;
        }
        
        .back-btn:hover {
            background: #e5e7eb;
            transform: translateX(-3px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .back-btn:hover::before {
            left: 100%;
        }
        
        .back-btn:active {
            background: #d1d5db;
            transform: translateX(-1px) scale(0.98);
        }
        
        .selected-game {
            background: white;
            border-radius: 20px;
            padding: 32px 24px;
            text-align: center;
            margin: 24px 20px;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            border: 1px solid #f3f4f6;
        }
        
        .selected-game-icon {
            font-size: 80px;
            margin-bottom: 16px;
            display: block;
        }
        
        .selected-game-title {
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 8px;
            color: #111827;
        }
        
        .selected-game-desc {
            font-size: 16px;
            color: #6b7280;
            margin-bottom: 24px;
        }
        
        .play-btn {
            background: linear-gradient(135deg, #ef4444, #dc2626);
            color: white;
            border: none;
            padding: 18px 32px;
            border-radius: 20px;
            font-size: 20px;
            font-weight: 700;
            cursor: pointer;
            width: 100%;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
        }
        
        .play-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.6s;
        }
        
        .play-btn .play-icon-btn {
            font-size: 20px;
            transition: all 0.3s ease;
        }
        
        .play-btn {
            animation: playButtonPulse 2s ease-in-out infinite;
        }
        
        @keyframes playButtonPulse {
            0%, 100% { 
                transform: scale(1);
            }
            50% { 
                transform: scale(1.05);
            }
        }
        
        .play-btn:hover {
            background: linear-gradient(135deg, #dc2626, #b91c1c);
            transform: translateY(-4px) scale(1.1);
            box-shadow: 0 12px 35px rgba(239, 68, 68, 0.5);
            animation: playButtonZoom 0.6s ease-in-out infinite;
        }
        
        @keyframes playButtonZoom {
            0%, 100% { 
                transform: translateY(-4px) scale(1.1);
            }
            50% { 
                transform: translateY(-4px) scale(1.15);
            }
        }
        
        .play-btn:hover::before {
            left: 100%;
        }
        
        .play-btn:active {
            background: linear-gradient(135deg, #b91c1c, #991b1b);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
        }
        
        .page-title {
            font-size: 28px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 24px;
            color: #111827;
        }
        
        .section-title {
            font-size: 20px;
            font-weight: 600;
            margin: 24px 0 16px 0;
            color: #374151;
        }
        
        .game-details-section {
            margin: 24px 20px;
        }
        
        .details-card, .description-card, .features-card {
            background: white;
            border-radius: 16px;
            padding: 20px;
            margin-bottom: 16px;
            margin: 16px 15px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            border: 1px solid #f3f4f6;
        }
        
        .detail-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f3f4f6;
        }
        
        .detail-item:last-child {
            border-bottom: none;
        }
        
        .detail-label {
            font-weight: 600;
            color: #374151;
        }
        
        .detail-value {
            color: #6b7280;
            font-weight: 500;
        }
        
        .description-card p {
            color: #6b7280;
            line-height: 1.6;
            margin: 0;
        }
        
        .features-card ul {
            list-style: none;
            margin: 0;
            padding: 0;
        }
        
        .features-card li {
            padding: 8px 0;
            color: #374151;
            font-weight: 500;
        }
        
        .footer {
            background: white;
            border-top: 1px solid #e5e7eb;
            padding: 24px 16px;
            margin-top: 32px;
            text-align: center;
        }
        
        .footer-links {
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .footer-link {
            color: #6b7280;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            padding: 8px 12px;
            border-radius: 8px;
            transition: all 0.2s ease;
        }
        
        .footer-link:hover {
            color: #3b82f6;
            background: #f3f4f6;
        }
        
        .footer-separator {
            color: #d1d5db;
            font-size: 12px;
        }
        
        .footer-text {
            color: #9ca3af;
            font-size: 12px;
            margin-top: 8px;
        }
        
       