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

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

.game-container {
    position: relative;
    width: 800px;
    height: 400px;
    border: 4px solid #0f3460;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.3),
                0 0 80px rgba(15, 52, 96, 0.5);
    animation: containerGlow 3s ease-in-out infinite alternate;
}

@keyframes containerGlow {
    0% {
        box-shadow: 0 0 40px rgba(233, 69, 96, 0.3),
                    0 0 80px rgba(15, 52, 96, 0.5);
    }
    100% {
        box-shadow: 0 0 50px rgba(233, 69, 96, 0.5),
                    0 0 100px rgba(15, 52, 96, 0.7);
    }
}

#gameCanvas {
    display: block;
    background: linear-gradient(180deg, #0f0f23 0%, #1a1a2e 100%);
}

.ui-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    color: #e94560;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.start-screen, .game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #e94560;
    z-index: 20;
}

.start-screen h1, .game-over-screen h1 {
    font-size: 48px;
    margin-bottom: 10px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 3px 3px 15px rgba(233, 69, 96, 0.8);
    }
}

.start-screen p, .game-over-screen p {
    font-size: 20px;
    margin: 10px 0;
    color: #a0a0a0;
}

button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 18px;
    background: #e94560;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.4);
}

button:hover {
    background: #ff6b6b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 69, 96, 0.6);
}

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