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

body {
    font-family: 'Press Start 2P', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0f0f23 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: #fff;
}

.game-container {
    width: 100%;
    max-width: 800px;
    animation: fadeIn 1s ease-in;
}

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

header h1 {
    font-size: 2.5rem;
    color: #ff6b6b;
    text-shadow: 
        0 0 10px #ff6b6b,
        0 0 20px #ff6b6b,
        0 0 40px #ff6b6b;
    animation: glow 2s ease-in-out infinite alternate;
}

.score-board {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 15px;
    font-size: 1rem;
}

.score-board span {
    color: #4ecdc4;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.game-wrapper {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 0 30px rgba(78, 205, 196, 0.3),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

#gameCanvas {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #000011 0%, #000033 50%, #000011 100%);
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 20, 0.95);
    gap: 20px;
    z-index: 10;
}

.screen.hidden {
    display: none;
}

.screen h2 {
    font-size: 2rem;
    color: #fff;
    text-shadow:
        0 0 10px #fff,
        0 0 20px #ff6b6b,
        0 0 40px #ff6b6b;
    animation: pulse 2s ease-in-out infinite;
}

.screen p {
    font-size: 0.7rem;
    color: #4ecdc4;
    margin: 5px 0;
}

.screen button {
    padding: 15px 40px;
    font-family: inherit;
    font-size: 1rem;
    background: linear-gradient(180deg, #ff6b6b, #c23616);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(255, 107, 107, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.screen button:hover {
    transform: scale(1.05);
    box-shadow:
        0 6px 25px rgba(255, 107, 107, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.screen button:active {
    transform: scale(0.98);
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.7rem;
    color: #666;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow:
            0 0 10px #ff6b6b,
            0 0 20px #ff6b6b,
            0 0 30px #ff6b6b;
    }
    to {
        text-shadow:
            0 0 20px #ff6b6b,
            0 0 40px #ff6b6b,
            0 0 60px #ff6b6b;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.9;
    }
}

@media (max-width: 600px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .score-board {
        gap: 20px;
        font-size: 0.7rem;
    }
}
