body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0a0a, #1a0a2e, #0f0f23);
    font-family: 'Courier New', monospace;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            rgba(0, 255, 255, 0.03) 0px,
            transparent 1px,
            transparent 2px,
            rgba(0, 255, 255, 0.03) 3px
        );
    pointer-events: none;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

.game-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

h1 {
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff;
    font-size: 40px;
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
}

.game-board {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    background: linear-gradient(145deg, #0a0a0a, #1a0a2e);
    padding: 20px;
    border: 2px solid #00ffff;
    border-radius: 5px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5), 0 0 100px rgba(255, 0, 255, 0.3);
}

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5), 0 0 100px rgba(255, 0, 255, 0.3);
    border: 2px solid #00ffff;
    border-radius: 5px;
    overflow: hidden;
    background: linear-gradient(145deg, #0a0a0a, #1a0a2e);
    z-index: 1;
    margin-right: 20px;
}

#game-canvas {
    background: 
        radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1), transparent 50%),
        linear-gradient(180deg, #000000, #0a0014);
    display: block;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}

#game-info {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #00ffff;
    font-size: 20px;
    z-index: 10;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border: 1px solid #00ffff;
    border-radius: 3px;
    font-weight: bold;
    letter-spacing: 2px;
}

#game-over {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 20;
    backdrop-filter: blur(5px);
}

#game-over h2 {
    margin: 10px 0;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff, 0 0 40px #ff00ff, 0 0 60px #ff00ff;
    font-size: 40px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

#game-over p {
    margin: 10px 0;
    font-size: 20px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    line-height: 1.6;
}

#final-score {
    color: #00ffff;
    font-weight: bold;
    text-shadow: 0 0 15px #00ffff;
}

#game-result {
    color: #ff00ff;
    font-weight: bold;
    text-shadow: 0 0 15px #ff00ff;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 200px;
}

.score-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border: 1px solid #00ffff;
    border-radius: 3px;
    color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.score-container h3 {
    margin: 5px 0;
    text-shadow: 0 0 15px #00ffff;
    letter-spacing: 2px;
}

button {
    padding: 15px 40px;
    margin: 5px 0;
    border: 2px solid #00ffff;
    background: transparent;
    border-radius: 3px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    width: 100%;
}

#startButton {
    color: #00ffff;
    border-color: #00ffff;
}

#pauseButton {
    color: #ffff00;
    border-color: #ffff00;
}

#restartButton {
    color: #ff00ff;
    border-color: #ff00ff;
}

#startButton:hover {
    transform: translateY(-3px);
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    text-shadow: 0 0 10px #00ffff;
}

#pauseButton:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 0, 0.2);
    box-shadow: 0 0 30px rgba(255, 255, 0, 0.8);
    text-shadow: 0 0 10px #ffff00;
}

#restartButton:hover {
    transform: translateY(-3px);
    background: rgba(255, 0, 255, 0.2);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
    text-shadow: 0 0 10px #ff00ff;
}

.instructions {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    text-align: center;
}

.instructions p {
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin: 10px 0;
    font-size: 16px;
    letter-spacing: 1px;
}

/* Responsive design */
@media (max-width: 768px) {
    .game-board {
        flex-direction: column;
        align-items: center;
    }
    
    #game-container {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .side-panel {
        width: 100%;
        max-width: 300px;
    }
}