:root {
    --neon-purple: #bc13fe;
    --neon-blue: #0ff0fc;
    --bg-color: #050011;
    --text-color: #fff;
    --scanline-color: rgba(18, 16, 16, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Press Start 2P', cursive;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
}

h1 {
    color: var(--neon-purple);
    text-shadow: 
        0 0 5px var(--neon-purple),
        0 0 10px var(--neon-purple),
        0 0 20px var(--neon-purple),
        0 0 40px var(--neon-purple);
    font-size: 2rem;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--neon-blue);
    font-size: 1rem;
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--neon-blue);
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.game-container {
    position: relative;
    border: 4px solid var(--neon-purple);
    box-shadow: 
        0 0 10px var(--neon-purple),
        inset 0 0 20px var(--neon-purple);
    margin: 0 auto;
    width: 800px;
    height: 600px;
    background-color: #000;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

#ui-layer {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    font-size: 12px;
    color: var(--neon-blue);
    text-shadow: 0 0 3px var(--neon-blue);
}

.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;
    gap: 20px;
}

.hidden {
    display: none;
}

button {
    background: transparent;
    color: var(--neon-purple);
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    padding: 15px 30px;
    border: 2px solid var(--neon-purple);
    cursor: pointer;
    text-shadow: 0 0 5px var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
    transition: all 0.3s;
}

button:hover {
    background: var(--neon-purple);
    color: #fff;
    box-shadow: 0 0 20px var(--neon-purple);
}

/* Scanline effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.2)
    );
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    animation: scroll 10s linear infinite;
}

@keyframes scroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

footer {
    margin-top: 20px;
    font-size: 0.7rem;
    color: #555;
}
