/* --- UNIVERSAL RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* --- VARS --- */
:root {
    --bg-color: #050510;
    --neon-green: #00ff00;
    --neon-pink: #ff00de;
    --vector-white: #ffffff; /* The glowing line color */
    --text-color: #e0e0e0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'VT323', monospace;
    height: 100vh;
    display: flex;
    flex-direction: column; 
    align-items: center;
    overflow: hidden; 
}

/* --- NAV BAR --- */
.lab-nav {
    width: 100%;
    background-color: #000;
    border-bottom: 2px solid var(--neon-green);
    padding: 15px 40px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.15);
    z-index: 100;
}

.nav-brand {
    font-family: 'Press Start 2P', cursive;
    color: var(--neon-green);
    text-decoration: none;
    font-size: 0.9rem;
    text-shadow: 2px 2px 0 #000;
}

.nav-links a {
    color: #888;
    text-decoration: none;
    margin-left: 20px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 5px var(--neon-pink);
}

/* --- VECTOR MONITOR CONTAINER --- */
#game-container {
    margin-top: 20px;
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 4/3;
    background-color: #000;
    border: 4px solid #333; 
    border-radius: 4px;     
    box-shadow: 0 0 40px rgba(0,0,0,0.6);
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    /* No pixelated rendering here - we want smooth vector lines */
}

.cabinet-info {
    text-align: center;
    margin-top: 15px;
    color: #aaa;
    font-size: 1.2rem;
    width: 100%;
    padding: 0 20px;
}

.legal-text {
    font-size: 0.8rem;
    color: #555;
    margin-top: 5px;
}

/* --- MOBILE CONTROLS (Hidden on Desktop) --- */
.mobile-controls { display: none; }
.mobile-msg { display: none; }
#btn-pause { display: none; }

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
    .lab-nav { padding: 10px 15px; }
    .nav-links { display: none; }
    .desktop-msg { display: none; }
    .mobile-msg { display: block; }

    /* Button Container */
    .mobile-controls {
        display: flex;
        justify-content: space-between; /* Push groups to edges */
        width: 100%;
        max-width: 800px;
        padding: 10px 20px;
        margin-top: 10px;
        gap: 20px;
    }

    .control-group {
        display: flex;
        gap: 10px;
        flex: 1;
    }
    
    /* Right group align right */
    .control-group:last-child {
        justify-content: flex-end;
    }

    /* Shared Button Styles */
    .mobile-btn {
        background: transparent;
        border: 2px solid var(--text-color);
        color: var(--text-color);
        font-family: 'Press Start 2P', cursive;
        font-size: 1.5rem;
        width: 60px;
        height: 60px;
        border-radius: 10px;
        touch-action: none; /* No zooming */
        user-select: none;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.1s;
    }

    .mobile-btn:active {
        background-color: rgba(255, 255, 255, 0.2);
        transform: scale(0.95);
    }
    
    /* Fire button style */
    .fire-btn {
        border-color: #ff4444;
        color: #ff4444;
    }

    /* Pause Button */
    #btn-pause {
        display: flex;
        position: absolute;
        /* FIX: Move down to avoid covering score */
        top: 60px; 
        right: 10px;
        background: rgba(0,0,0,0.5);
        border: 2px solid #fff;
        color: #fff;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        cursor: pointer;
        z-index: 10;
        padding: 0;
    }

    #btn-pause svg {
        width: 16px;
        height: 16px;
        pointer-events: none;
    }
}