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

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

#game-container {
    position: relative;
    width: 800px;
    height: 600px;
    border: 3px solid #00ffff;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5),
                inset 0 0 50px rgba(0, 255, 255, 0.1);
    overflow: hidden;
}

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

#ui-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    border: 2px solid rgba(0, 255, 255, 0.5);
    z-index: 10;
}

#ui-overlay .label {
    color: #00ffff;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 10px #00ffff;
}

#ui-overlay span {
    color: #ffffff;
    font-size: 18px;
    margin-left: 5px;
}

#start-screen, #game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: opacity 0.5s ease;
}

#start-screen h1, #game-over-screen h1 {
    font-size: 48px;
    color: #00ffff;
    text-shadow: 0 0 20px #00ffff,
                 0 0 40px #00ffff,
                 0 0 60px #00ffff;
    margin-bottom: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

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

#start-screen p, #game-over-screen p {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#start-screen button, #game-over-screen button {
    padding: 15px 40px;
    font-size: 20px;
    background: linear-gradient(135deg, #00ffff 0%, #0080ff 100%);
    color: #000;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transition: all 0.3s ease;
}

#start-screen button:hover, #game-over-screen button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
}

.instructions {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.instructions p {
    color: #00ffff;
    font-size: 14px;
    margin: 5px 0;
    text-shadow: 0 0 5px #00ffff;
}

.hidden {
    display: none !important;
}

#final-score {
    color: #ffff00;
    font-weight: bold;
    text-shadow: 0 0 10px #ffff00;
}