body {
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            font-family: 'Arial', sans-serif;
            overflow: hidden;
            touch-action: none;
        }

        .game-container {
            position: relative;
            width: 100%;
            max-width: 500px;
            margin: 20px;
        }

        #game-board {
            background-color: #111;
            border-radius: 10px;
            box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
            display: block;
            margin: 0 auto;
            width: 100%;
            aspect-ratio: 1/1;
        }

        .score-container {
            display: flex;
            justify-content: space-between;
            margin: 15px 0;
        }

        .score-display {
            color: white;
            font-size: 24px;
            text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
        }

        .high-score-display {
            color: gold;
            font-size: 24px;
            text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
        }

        .controls {
            display: flex;
            justify-content: center;
            margin-top: 20px;
            gap: 10px;
        }

        .control-btn {
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 15px;
            border-radius: 50%;
            font-size: 20px;
            cursor: pointer;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
            transition: all 0.2s;
        }

        .control-btn:active {
            transform: scale(0.95);
            background: rgba(255, 255, 255, 0.3);
        }

        .mobile-controls {
            display: none;
        }

        .start-screen {
            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;
            border-radius: 10px;
            z-index: 15;
        }

        .start-screen h2 {
            color: #4CAF50;
            font-size: 36px;
            margin-bottom: 20px;
            text-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
        }

        .start-btn {
            background: linear-gradient(to right, #4CAF50, #8BC34A);
            border: none;
            color: white;
            padding: 15px 30px;
            border-radius: 30px;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 0 20px rgba(139, 195, 74, 0.5);
            transition: all 0.3s;
        }

        .start-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(139, 195, 74, 0.7);
        }

        .game-over {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-radius: 10px;
            z-index: 10;
        }

        .game-over h2 {
            color: #ff4d4d;
            font-size: 36px;
            margin-bottom: 10px;
            text-shadow: 0 0 10px rgba(255, 77, 77, 0.7);
        }

        .final-score {
            color: white;
            font-size: 24px;
            margin-bottom: 20px;
        }

        .new-high-score {
            color: gold;
            font-size: 28px;
            margin-bottom: 20px;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
            display: none;
        }

        .restart-btn {
            background: linear-gradient(to right, #ff416c, #ff4b2b);
            border: none;
            color: white;
            padding: 15px 30px;
            border-radius: 30px;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 0 20px rgba(255, 75, 43, 0.5);
            transition: all 0.3s;
        }

        .restart-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(255, 75, 43, 0.7);
        }

        .pause-btn {
            position: absolute;
            top: 10px;
           
            left: 50%;
            transform: translate(-50%);

            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 14px;
            cursor: pointer;
            z-index: 5;
            display: none;
        }

        .pause-screen {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            border-radius: 10px;
            z-index: 10;
        }

        .pause-screen h2 {
            color: #2196F3;
            font-size: 36px;
            margin-bottom: 20px;
            text-shadow: 0 0 10px rgba(33, 150, 243, 0.7);
        }

        .resume-btn {
            background: linear-gradient(to right, #2196F3, #03A9F4);
            border: none;
            color: white;
            padding: 15px 30px;
            border-radius: 30px;
            font-size: 18px;
            cursor: pointer;
            box-shadow: 0 0 20px rgba(3, 169, 244, 0.5);
            transition: all 0.3s;
        }

        .resume-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 0 30px rgba(3, 169, 244, 0.7);
        }

        @media (max-width: 768px) {
            .desktop-controls {
                display: none;
            }

            .mobile-controls {
                display: flex;
                flex-direction: column;
                align-items: center;
                margin-top: 20px;
            }

            .mobile-row {
                display: flex;
                justify-content: center;
            }

            .control-btn {
                width: 70px;
                height: 70px;
                font-size: 24px;
            }

            .score-display, .high-score-display {
                font-size: 22px;
            }

            .pause-btn {
                top: 5px;
        
                padding: 4px 8px;
                font-size: 12px;
            }
        }
