@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&display=swap');

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

body {
    background-color: #050510;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

#game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4/3;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.3), inset 0 0 50px rgba(0, 0, 0, 0.8);
    background: #050510;
    border-radius: 12px;
    border: 3px solid #00ffcc;
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 28px;
    font-weight: 700;
    color: #00ffcc;
    text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc;
    z-index: 10;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    backdrop-filter: blur(6px);
    z-index: 20;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay h1 {
    font-size: 64px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 10px #00ffcc, 0 0 20px #00ffcc, 0 0 40px #00ffcc;
    letter-spacing: 4px;
    text-transform: uppercase;
}

#game-over-screen h1 {
    color: #ff0055;
    text-shadow: 0 0 10px #ff0055, 0 0 20px #ff0055, 0 0 40px #ff0055;
}

.overlay p {
    font-size: 22px;
    margin-bottom: 15px;
    color: #eee;
    max-width: 80%;
    line-height: 1.6;
}

.blink {
    animation: blinker 1.5s linear infinite;
    color: #ffea00 !important;
    text-shadow: 0 0 10px #ffea00, 0 0 20px #ffea00;
    margin-top: 40px;
    font-weight: 700;
    font-size: 26px !important;
}

@keyframes blinker {
    50% {
        opacity: 0.3;
    }
}
