:root {
    --bg: #05060b;
    --neon-blue: #0ff;
    --neon-pink: #f0f;
    --neon-yellow: #ff0;
    --grid-line: rgba(0, 255, 255, 0.05);
}

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-ui {
    position: relative;
    width: 1000px;
    height: 780px;
    display: flex;
    flex-direction: column;
}

.title {
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: 900;
    font-size: 2.5rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue), 0 0 20px var(--neon-blue);
    letter-spacing: 5px;
}

.hud {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 50, 50, 0.3);
    border: 1px solid var(--neon-blue);
    padding: 15px 25px;
    border-radius: 8px 8px 0 0;
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.1);
}

.stat {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-label {
    color: #aaa;
    font-weight: 500;
}

.stat-val {
    color: var(--neon-pink);
    font-weight: 700;
    text-shadow: 0 0 8px var(--neon-pink);
}

.canvas-container {
    border: 1px solid var(--neon-blue);
    border-top: none;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.15);
    border-radius: 0 0 8px 8px;
    position: relative;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
}

#game-canvas {
    display: block;
    cursor: crosshair;
}

.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 6, 11, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.glow-text {
    font-size: 3rem;
    color: var(--neon-yellow);
    text-shadow: 0 0 15px var(--neon-yellow), 0 0 30px var(--neon-yellow);
    margin-bottom: 20px;
}

.pulse {
    animation: pulsate 2s infinite alternate;
}

@keyframes pulsate {
    100% { text-shadow: 0 0 5px var(--neon-yellow), 0 0 10px var(--neon-yellow); }
}

.overlay p {
    color: #ccc;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.cyber-btn {
    background: transparent;
    color: var(--neon-blue);
    border: 2px solid var(--neon-blue);
    padding: 15px 40px;
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2), inset 0 0 15px rgba(0, 255, 255, 0.2);
}

.cyber-btn:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6), inset 0 0 15px rgba(0, 255, 255, 0.2);
}
