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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a0a1a 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.game-header {
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.game-header h1 {
    font-size: 3em;
    letter-spacing: 8px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 5px #00ffff); }
    to { filter: drop-shadow(0 0 20px #ff00ff); }
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #00ffff;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.label {
    font-size: 0.7em;
    color: #00ffff;
    letter-spacing: 2px;
}

.value {
    font-size: 1.5em;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px #fff;
}

.canvas-wrapper {
    position: relative;
    border: 3px solid #00ffff;
    border-radius: 5px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), inset 0 0 30px rgba(0, 255, 255, 0.1);
    background: #000;
}

#gameCanvas {
    display: block;
    background: radial-gradient(ellipse at center, #0d0d1a 0%, #000000 100%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 40px;
    background: rgba(0, 20, 40, 0.9);
    border: 2px solid #00ffff;
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.overlay-content h2 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.overlay-content p {
    font-size: 1em;
    margin-bottom: 25px;
    color: #aaa;
    line-height: 1.6;
}

.btn {
    padding: 15px 40px;
    font-size: 1.2em;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #000;
    background: linear-gradient(45deg, #00ffff, #00aaff);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    background: linear-gradient(45deg, #00aaff, #00ffff);
}

.btn:active {
    transform: scale(0.98);
}

.controls-info {
    font-size: 0.9em;
    color: #666;
    letter-spacing: 1px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    border: 1px solid #333;
}

@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2em;
        letter-spacing: 4px;
    }
    
    .score-board {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .overlay-content {
        padding: 20px;
        margin: 10px;
    }
    
    .overlay-content h2 {
        font-size: 1.8em;
    }
    
    .btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}