        :root {
            --primary: #ff5e00;
            --secondary: #ff2a00;
            --accent: #ff9600;
            --background: #fff7e6;
            --card-bg: #fff7e6;
            --text-light: #fff;
            --text-dark: #333;
            --success: #4CAF50;
            --error: #f44336;
            --upgrade1: #ff5e00;
            --upgrade2: #00a8ff;
            --upgrade3: #9c27b0;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Orbitron', sans-serif;
        }

        body {
            background: rgb(253, 253, 253);
            color: var(--text-dark);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            width: 100%;
            margin: 0;
            padding: 0;
            max-width: 100vw;
        }

        .announcement-bar {
            width: 100%;
            overflow: hidden;
            background: rgb(253, 199, 91);
            color: #fff;
            font-weight: bold;
            padding: 8px 0;
            position: relative;
            z-index: 200;
        }

        .announcement-text {
            display: inline-block;
            white-space: nowrap;
            animation: marquee 25s linear infinite;
            font-size: 1rem;
            min-width: 100%;
            will-change: transform;
            text-shadow: none;
            transform: translateZ(0);
            -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
            min-width: 200%;
        }
        .announcement-text:hover {
        animation-play-state: paused;
        cursor: pointer;
    }
        .monetization-banner {
            background: linear-gradient(135deg, #ff9600, #ff5e00);
            color: white;
            padding: 12px;
            border-radius: 8px;
            margin: 15px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            max-width: 800px;
        }

        .monetization-banner .coins {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: bold;
            font-size: 1.2rem;
        }

        
        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 10px;
            background: rgb(255, 235, 199);
            border-bottom: 1px solid var(--secondary);
            position: relative;
            z-index: 100;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            background: linear-gradient(135deg, var(--secondary), var(--primary));
            width: 42px;
            height: 42px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: var(--text-light);
            box-shadow: 0 0 15px rgba(255, 42, 0, 0.5);
        }

        .logo-text {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
        }
        .upgrade-active {
        border: 2px solid gold;
        box-shadow: 0 0 10px gold;
        }
                .game-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            max-width: 1000px;
            margin: 0 auto;
            width: 100%;
        }

        .game-title {
            text-align: center;
            margin: 25px 0;
        }

        .game-title h1 {
            font-size: 2.5rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .game-title p {
            color: #555;
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
        }

        .game-container {
            position: relative;
            width: 100%;
            max-width: 600px;
            height: 500px;
            background: var(--card-bg);
            border: 3px solid var(--primary);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(255, 94, 0, 0.3);
            margin: 20px 0;
           
            
        }
   

        #gameCanvas {
            width: 100%;
            height: 100%;
            display: block;
            background: linear-gradient(to bottom, #fff7e6, #ffe6cc);
        }

        .game-ui {
            display: flex;
            justify-content: space-between;
            width: 100%;
            max-width: 600px;
            margin: 15px 0;
        }

        .game-stat {
            background: #f2f2f2;
            padding: 12px 20px;
            border-radius: 10px;
            text-align: center;
            min-width: 120px;
            border: 1px solid #ddd;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .game-stat h3 {
            color: #888;
            font-size: 0.9rem;
            margin-bottom: 5px;
        }

        .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--primary);
            font-family: 'Courier New', monospace;
        }

        .game-controls {
            display: flex;
            gap: 15px;
            margin: 20px 0;
            flex-wrap: wrap;
            justify-content: center;
        }

        .btn {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            border: none;
            padding: 12px 25px;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }

        .btn:active {
            transform: translateY(1px);
        }

        .upgrades-section {
            background: var(--card-bg);
            border-radius: 12px;
            padding: 20px;
            margin: 20px 0;
            width: 100%;
            max-width: 600px;
            border: 1px solid var(--primary);
        }

        .upgrades-section h2 {
            color: var(--primary);
            margin-bottom: 15px;
            text-align: center;
        }

        .upgrades-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 20px;
            margin-top: 20px;
        }

        .upgrade-card {
            background: white;
            border-radius: 12px;
            padding: 15px;
            width: 160px;
            text-align: center;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }
        .upgrade-card.disabled {
            pointer-events: none;
            opacity: 0.5;
            filter: grayscale(100%);
            cursor: not-allowed;
            }

        .upgrade-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 16px rgba(0,0,0,0.15);
        }

        .upgrade-card.multi-ball {
            border-color: var(--upgrade1);
        }

        .upgrade-card.speed-boost {
            border-color: var(--upgrade2);
        }

        .upgrade-card.multi-paddle {
            border-color: var(--upgrade3);
        }

        .upgrade-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 24px;
            color: white;
        }

        .upgrade-icon.multi-ball {
            background: linear-gradient(135deg, var(--upgrade1), #ff8c00);
        }

        .upgrade-icon.speed-boost {
            background: linear-gradient(135deg, var(--upgrade2), #0077b6);
        }

        .upgrade-icon.multi-paddle {
            background: linear-gradient(135deg, var(--upgrade3), #6a0dad);
        }

        .upgrade-card h3 {
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        .upgrade-card p {
            font-size: 0.85rem;
            color: #555;
        }

        .game-over {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: white;
            z-index: 10;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .game-over.active {
            opacity: 1;
            pointer-events: all;
        }

        .game-over h2 {
            font-size: 3rem;
            color: var(--accent);
            margin-bottom: 20px;
            text-transform: uppercase;
        }

        .game-over .final-score {
            font-size: 2.5rem;
            font-weight: 700;
            margin: 20px 0;
            color: white;
        }

        .mobile-controls {
            display: none;
            width: 100%;
            max-width: 300px;
            justify-content: space-between;
            margin-top: 20px;
        }

        .mobile-btn {
            width: 70px;
            height: 70px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            box-shadow: 0 4px 8px rgba(0,0,0,0.3);
            user-select: none;
        }
        footer{
            text-align: center;
            padding: 15px 0;
            font-size: 0.9rem;
            background: #f8f8f8;
            color: #666;
            border-top: 1px solid #eee;
        }
        

            nav a {
                padding: 5px 10px;
                font-size: 0.8rem;
            }
            nav ul {
            display: flex;
            list-style: none;
            gap: 25px;
        }

        nav a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
            padding: 8px 15px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        nav a:hover {
            background: rgba(255, 42, 0, 0.1);
            color: var(--accent);
        }

        /* Animations */
        @keyframes marquee {
            0% { transform: translateX(100%); }
            100% { transform: translateX(-100%); }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        .upgrade-active {
            animation: pulse 1s infinite;
            box-shadow: 0 0 15px currentColor;
        }

        /* Responsive styles */
        @media (max-width: 768px) {
               header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px 3%;
    }

             nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

        nav a {
            padding: 6px 12px;
            font-size: 0.9rem;
        }

        .logo-text {
            font-size: 20px;
        }
                
            .game-container {
                height: 400px;
            }
            
            .game-title h1 {
                font-size: 2rem;
            }
            
            .game-ui {
                flex-direction: column;
                align-items: center;
                gap: 10px;
            }
            
            .game-stat {
                width: 100%;
                max-width: 300px;
            }
            
            .upgrades-container {
                flex-direction: column;
                align-items: center;
            }
            
            .upgrade-card {
                width: 100%;
                max-width: 250px;
            }
        }

        @media (max-width: 480px) {
            .game-container {
                height: 350px;
            }
            
            .game-title h1 {
                font-size: 1.8rem;
            }
            
            .logo-text {
                font-size: 20px;
            }
            
            .btn {
                padding: 10px 20px;
                font-size: 1rem;
            }
        }
