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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a0b2e 0%, #05020a 100%);
    font-family: 'Orbitron', sans-serif;
    touch-action: none;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.score-container {
    color: #0ff;
    text-shadow: 0 0 10px #00ffff;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.score-container span {
    color: #fff;
    margin-left: 10px;
    text-shadow: 0 0 10px #fff;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 2, 10, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

#game-over-screen h1 {
    font-size: 4.5rem;
    color: #ff0055;
    text-shadow: 0 0 20px #ff0055, 0 0 40px #ff0055;
    margin-bottom: 20px;
    letter-spacing: 8px;
    text-align: center;
}

#game-over-screen p {
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 10px #fff;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

#game-over-screen .blink {
    font-size: 1.2rem;
    color: #0ff;
    text-shadow: 0 0 10px #0ff;
    animation: blinker 1.2s ease-in-out infinite;
    margin-top: 40px;
    cursor: pointer;
    pointer-events: auto;
}

@keyframes blinker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    #ui-layer {
        padding: 15px 20px;
    }
    .score-container {
        font-size: 1.2rem;
    }
    #game-over-screen h1 {
        font-size: 3rem;
    }
    #game-over-screen p {
        font-size: 1.5rem;
    }
    #game-over-screen .blink {
        font-size: 1rem;
    }
}
