:root {
    --bg-color: #050508;
    --grid-color: rgba(0, 243, 255, 0.05);
    /* NEW PALETTE */
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff0055;
    --dim-gray: #1a1a20;
    --node-inactive: #2a2a35;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 50% 50%, #11111f 0%, var(--bg-color) 80%);
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    user-select: none;
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
}

#ui-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* --- HUD --- */
#hud {
    padding-top: 5vh;
    text-align: center;
    width: 100%;
    transition: opacity 0.5s;
}

.status-box {
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-block;
    padding: 8px 24px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #667;
    font-weight: 600;
}

.status-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: #ff3333; 
    font-weight: 700;
    letter-spacing: 2px;
    margin-top: 2px;
    text-shadow: 0 0 10px rgba(255, 50, 50, 0.3);
}

.status-text.online {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
}

.instruction {
    margin-top: 15px;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    background: rgba(0,0,0,0.5);
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
}

/* --- WIN SCREEN --- */
#win-screen {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    width: 100%;
}

.hero-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    color: #fff;
    margin: 0;
    letter-spacing: 5px;
    text-shadow: 0 0 20px var(--neon-magenta), 0 0 40px var(--neon-cyan);
}

.sub-text {
    color: var(--neon-cyan);
    font-size: 1rem;
    letter-spacing: 4px;
    margin-top: 15px;
    font-weight: 600;
}

/* --- FOOTER --- */
#footer {
    text-align: center;
    padding-bottom: 30px;
    opacity: 0.7;
}

.footer-line {
    font-size: 0.7rem;
    color: #667;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
}

.footer-link {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    pointer-events: auto;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}
.footer-link:hover {
    color: #fff;
    border-color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

/* --- CANVAS --- */
canvas {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100vmin; 
    height: 100vmin;
    object-fit: contain;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero-text { font-size: 2.2rem; }
    .sub-text { font-size: 0.8rem; }
}