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

body {
    background-color: #111;
    color: #eee;
    font-family: 'Courier New', Courier, monospace;
    overflow: hidden;
    touch-action: none; /* Prevent scroll/zoom on mobile */
    user-select: none;
    -webkit-user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #2a2a35 0%, #0a0a10 100%);
}

#game-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    pointer-events: none;
}

#score-display, #highscore-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f0f0f0;
    text-shadow: 2px 2px 0 #000;
    margin-bottom: 5px;
}

#score-display {
    color: #4CAF50;
}

#highscore-display {
    color: #FFC107;
    font-size: 1.2rem;
}

#game-over-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#game-over-screen.visible {
    opacity: 1;
    pointer-events: auto;
}

#game-over-screen h1 {
    font-size: 4rem;
    color: #F44336;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
    text-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
    text-align: center;
}

#game-over-screen p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.blink {
    animation: blinker 1.5s linear infinite;
    color: #aaa;
    font-size: 1.2rem !important;
}

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

@media (max-width: 600px) {
    #game-over-screen h1 {
        font-size: 3rem;
    }
    #game-over-screen p {
        font-size: 1.2rem;
    }
}
