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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0f051d 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

.game-container {
    width: 100%;
    max-width: 900px;
    padding: 20px;
}

.game-header {
    text-align: center;
    margin-bottom: 20px;
}

.game-header h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(90deg, #00f5ff, #ff00ff, #00f5ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: glow 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
    margin-bottom: 15px;
}

@keyframes glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 245, 255, 0.3);
    backdrop-filter: blur(5px);
}

.score-item .label {
    font-size: 0.75rem;
    color: #00f5ff;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.score-item .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.game-main {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.game-wrapper {
    position: relative;
    box-shadow: 0 0 50px rgba(0, 245, 255, 0.3);
}

canvas {
    display: block;
    background: #000;
    border: 2px solid #00f5ff;
    border-radius: 5px;
    max-width: 100%;
    height: auto;
}

.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;
    z-index: 10;
    backdrop-filter: blur(5px);
}

.overlay.hidden {
    display: none;
}

.overlay-content {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 2px solid #ff00ff;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.5);
}

.overlay-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ff00ff;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.overlay-content p {
    font-size: 1.2rem;
    color: #00f5ff;
    margin-bottom: 25px;
}

.btn {
    background: linear-gradient(135deg, #ff00ff, #00f5ff);
    border: none;
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 0, 255, 0.4);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 255, 0.6);
}

.btn:active {
    transform: translateY(-1px);
}

.game-footer {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.controls, .instructions {
    margin-bottom: 15px;
}

.controls h3, .instructions h3 {
    color: #00f5ff;
    margin-bottom: 8px;
    font-size: 1rem;
    letter-spacing: 2px;
}

.controls p, .instructions p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.controls p strong {
    color: #ff00ff;
}

@media (max-width: 768px) {
    .game-header h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    
    .score-board {
        gap: 15px;
    }
    
    .score-item {
        padding: 8px 15px;
    }
    
    .score-item .value {
        font-size: 1.2rem;
    }
    
    canvas {
        width: 100%;
        height: auto;
    }
    
    .overlay-content h2 {
        font-size: 2rem;
    }
    
    .overlay-content p {
        font-size: 1rem;
    }
    
    .game-footer {
        font-size: 0.85rem;
    }
}