:root {
    /* Game specific */
    --neon-blue: #00f3ff;
    --neon-pink: #ff00ff;
    --neon-green: #00ff00;
}

* {
    box-sizing: border-box;
    user-select: none;
}

body {
    /* Background and color handled by shared.css */
    font-family: 'Press Start 2P', cursive;
    overflow: hidden;
}

/* Scanlines removed for 4k clean look */

.container {
    /* Inherits flex column and 100vh from shared.css */
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.game-container {
    position: relative;
    border: 4px solid var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue), inset 0 0 20px var(--neon-blue);
    background-color: rgba(0, 0, 20, 0.9);
    width: 600px;
    height: 800px;
    max-width: 95vw;
    max-height: 80vh;
}

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

.ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    font-size: 16px;
    text-shadow: 2px 2px 0 #000;
}

.score-board {
    color: var(--neon-green);
    text-shadow: 0 0 5px var(--neon-green);
}

.lives-board {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

.overlay {
    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;
    text-align: center;
    transition: opacity 0.3s;
}

.overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

h1 {
    font-size: 40px;
    color: var(--neon-pink);
    text-shadow:
        2px 2px 0px var(--neon-blue),
        -2px -2px 0px var(--neon-green),
        0 0 20px var(--neon-pink);
    margin-bottom: 40px;
    line-height: 1.5;
}

p {
    font-size: 14px;
    color: #fff;
    margin-bottom: 10px;
    opacity: 0.8;
}

button {
    margin-top: 40px;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-family: 'Press Start 2P', cursive;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    text-shadow: 0 0 5px var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green), inset 0 0 10px var(--neon-green);
    transition: all 0.2s;
    animation: pulse 1.5s infinite;
}

button:hover {
    background: var(--neon-green);
    color: black;
    box-shadow: 0 0 20px var(--neon-green), inset 0 0 20px var(--neon-green);
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 650px) {
    .game-container {
        width: 100%;
        height: 70vh;
        border-width: 2px;
    }

    h1 {
        font-size: 24px;
    }

    button {
        font-size: 12px;
        padding: 10px 20px;
    }
}