        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 10px;
            overflow: auto;
            touch-action: manipulation;
        }

        .game-container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            text-align: center;
            max-width: 500px;
            width: 100%;
        }

        h1 {
            color: #333;
            margin-bottom: 10px;
            font-size: 28px;
        }

        .score-board {
            display: flex;
            justify-content: space-around;
            margin-bottom: 20px;
            font-size: 18px;
            color: #666;
        }

        .score-board span {
            font-weight: bold;
            color: #667eea;
        }

        .canvas-wrapper {
            width: 100%;
            max-width: 400px;
            margin: 0 auto 20px;
        }

        #gameCanvas {
            border: 3px solid #667eea;
            border-radius: 8px;
            background: #f5f5f5;
            display: block;
            width: 100%;
            height: auto;
            touch-action: none;
        }

        .joystick-container {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 20px;
            padding: 20px;
        }

        .joystick-base {
            width: 150px;
            height: 150px;
            background: rgba(102, 126, 234, 0.2);
            border: 3px solid #667eea;
            border-radius: 50%;
            position: relative;
            touch-action: none;
            user-select: none;
        }

        .joystick-knob {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 50%;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
            transition: box-shadow 0.2s ease;
            cursor: pointer;
        }

        .joystick-knob.active {
            box-shadow: 0 6px 16px rgba(102, 126, 234, 0.7);
        }

        .buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            padding: 12px 24px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s ease;
            text-decoration: none;
            display: inline-block;
        }

        .btn:hover {
            transform: scale(1.05);
        }

        .btn.secondary {
            background: #888;
        }

        .game-over {
            display: none;
            margin-bottom: 20px;
            padding: 15px;
            background: #ff6b6b;
            color: white;
            border-radius: 8px;
            font-size: 18px;
            font-weight: bold;
        }

        .game-over.show {
            display: block;
        }

        .instructions {
            margin-top: 15px;
            color: #666;
            font-size: 14px;
            line-height: 1.5;
        }

        @media (max-width: 480px) {
            body {
                padding: 5px;
            }

            h1 {
                font-size: 22px;
                margin-bottom: 8px;
            }

            .score-board {
                font-size: 14px;
                margin-bottom: 15px;
            }

            .joystick-container {
                padding: 15px;
                margin-bottom: 15px;
            }

            .joystick-base {
                width: 130px;
                height: 130px;
            }

            .joystick-knob {
                width: 50px;
                height: 50px;
            }

            .game-container {
                padding: 12px;
            }

            .btn {
                padding: 10px 18px;
                font-size: 14px;
            }

            .instructions {
                font-size: 12px;
            }

            .game-over {
                font-size: 16px;
                padding: 12px;
            }
        }

        @media (max-width: 360px) {
            h1 {
                font-size: 20px;
            }

            .joystick-base {
                width: 110px;
                height: 110px;
            }

            .joystick-knob {
                width: 45px;
                height: 45px;
            }
        }

        @media (min-width: 768px) {
            .joystick-container {
                display: none;
            }
        }