* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #00d4ff;
    text-shadow: 0 0 20px #00d4ff;
}

.game-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.2em;
    font-weight: bold;
}

.score, .lives {
    background: rgba(0, 212, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    border: 2px solid #00d4ff;
}

#gameCanvas {
    border: 3px solid #00d4ff;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    display: block;
    margin: 0 auto;
}

.controls {
    margin-top: 20px;
}

.controls p {
    margin-bottom: 15px;
    color: #ccc;
    font-size: 1.1em;
}

button {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: white;
    border: none;
    padding: 12px 25px;
    margin: 0 10px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.5);
    background: linear-gradient(45deg, #0099cc, #00d4ff);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 40px;
    border-radius: 15px;
    border: 3px solid #ff4444;
    box-shadow: 0 0 50px rgba(255, 68, 68, 0.5);
}

.game-over h2 {
    color: #ff4444;
    font-size: 2em;
    margin-bottom: 20px;
    text-shadow: 0 0 20px #ff4444;
}

.hidden {
    display: none;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 1s infinite;
}
