* {
            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;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .container {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            max-width: 1000px;
            width: 100%;
        }

        header {
            text-align: center;
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 3px solid #e9ecef;
        }

        h1 {
            color: #2c3e50;
            font-size: 2.5em;
            margin-bottom: 15px;
            background: linear-gradient(45deg, #e74c3c, #3498db);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .game-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 800px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .score {
            font-size: 1.4em;
            font-weight: bold;
            color: #2c3e50;
            background: #f8f9fa;
            padding: 10px 25px;
            border-radius: 25px;
            border: 2px solid #3498db;
        }

        .power-ups-display {
            background: #95a5a6;
            color: white;
            padding: 10px 20px;
            border-radius: 25px;
            font-size: 0.95em;
            border: 2px solid #7f8c8d;
            transition: all 0.3s ease;
        }

        .power-ups-display.active {
            background: #27ae60;
            border-color: #229954;
        }

        .game-area {
            display: flex;
            gap: 25px;
            align-items: flex-start;
        }

        .game-container {
            flex: 1;
            position: relative;
            background: linear-gradient(180deg, #1a2a6c, #2c3e50);
            border-radius: 15px;
            padding: 20px;
            box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
            border: 4px solid #34495e;
            min-height: 600px;
        }

        #gameCanvas {
            width: 100%;
            height: 500px;
            border: 2px solid #34495e;
            border-radius: 10px;
            background: linear-gradient(180deg, #0c2461, #1e3799);
            display: block;
        }

        .game-over {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(44, 62, 80, 0.95);
            color: white;
            padding: 40px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(10px);
            border: 3px solid #3498db;
            z-index: 100;
        }

        .game-over h2 {
            font-size: 2.5em;
            margin-bottom: 15px;
            color: #e74c3c;
        }

        .game-over p {
            font-size: 1.2em;
            color: #ecf0f1;
            margin-bottom: 10px;
        }

        #finalScore {
            font-weight: bold;
            color: #f39c12;
            font-size: 1.4em;
        }

        .hidden {
            display: none !important;
        }

        .controls-sidebar {
            width: 280px;
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .controls-panel, .power-ups-panel, .game-rules {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 15px;
            border: 2px solid #dee2e6;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .controls-panel h3, .power-ups-panel h3, .game-rules h3 {
            color: #2c3e50;
            margin-bottom: 20px;
            font-size: 1.3em;
            text-align: center;
            padding-bottom: 10px;
            border-bottom: 2px solid #e9ecef;
        }

        .control-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .control-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px;
            background: white;
            border-radius: 10px;
            border: 1px solid #dee2e6;
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .control-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .control-item kbd {
            background: #34495e;
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            font-weight: bold;
            min-width: 60px;
            text-align: center;
            font-size: 1.1em;
        }

        .control-item span {
            font-weight: 600;
            color: #2c3e50;
            flex: 1;
        }

        .power-up-list {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .power-up-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 15px;
            background: white;
            border-radius: 12px;
            border: 1px solid #dee2e6;
            transition: transform 0.2s;
        }

        .power-up-item:hover {
            transform: translateX(5px);
        }

        .power-up-color {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 2px solid rgba(0, 0, 0, 0.1);
        }

        .power-up-color.red { background: linear-gradient(45deg, #e74c3c, #c0392b); }
        .power-up-color.green { background: linear-gradient(45deg, #27ae60, #229954); }
        .power-up-color.blue { background: linear-gradient(45deg, #3498db, #2980b9); }

        .power-up-info {
            flex: 1;
        }

        .power-up-info strong {
            color: #2c3e50;
            font-size: 1em;
            display: block;
            margin-bottom: 4px;
        }

        .power-up-info small {
            color: #6c757d;
            font-size: 0.85em;
        }

        .game-rules ul {
            list-style: none;
            padding: 0;
        }

        .game-rules li {
            padding: 12px 0;
            border-bottom: 1px solid #e9ecef;
            color: #495057;
            position: relative;
            padding-left: 30px;
        }

        .game-rules li:before {
            content: "🎯";
            position: absolute;
            left: 0;
            font-size: 1.1em;
        }

        .game-rules li:last-child {
            border-bottom: none;
        }

        @keyframes powerUpGlow {
            0%, 100% { box-shadow: 0 0 10px currentColor; }
            50% { box-shadow: 0 0 20px currentColor; }
        }

        .power-ups-display.active {
            animation: powerUpGlow 2s ease-in-out infinite;
        }

        /* Responsive design */
        @media (max-width: 1024px) {
            .game-area {
                flex-direction: column;
            }
            
            .controls-sidebar {
                width: 100%;
                flex-direction: row;
                flex-wrap: wrap;
            }
            
            .controls-panel, .power-ups-panel, .game-rules {
                flex: 1;
                min-width: 250px;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }
            
            h1 {
                font-size: 2em;
            }
            
            .game-stats {
                flex-direction: column;
                gap: 15px;
            }
            
            .game-container {
                min-height: 500px;
                padding: 15px;
            }
            
            #gameCanvas {
                height: 400px;
            }
            
            .controls-sidebar {
                flex-direction: column;
            }
        }