body {
    background: #070a14;
    margin: 0;
    overflow: hidden;
    font-family: "Trebuchet MS", sans-serif;
}

/* BACKGROUND FLICKER */
.lab-flicker-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #0d1020, #070a14);
    animation: flicker 2s infinite;
    z-index: -1;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    30% { opacity: 0.6; }
    60% { opacity: 0.8; }
}

/* TUBES */
.tube-row {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.tube {
    width: 40px;
    height: 180px;
    background: linear-gradient(
        to top,
        rgba(93,253,255,0.9),
        rgba(255,255,255,0.6),
        rgba(93,253,255,0.3)
    );
    border: 4px solid #5dfdff;
    border-radius: 20px;
    box-shadow: 0 0 12px #5dfdff;
    animation: fillTube 3s ease-in-out infinite alternate;
}

@keyframes fillTube {
    0% { background-size: 0% 100%; }
    100% { background-size: 100% 100%; }
}

/* CONSOLE FRAME */
.console-frame {
    width: 80%;
    max-width: 700px;
    margin: auto;
    margin-top: 35vh;
    border: 4px solid #33e1ff;
    padding: 20px;
    background: #0a0e1a;
    border-radius: 10px;
    animation: popUp 1.3s ease forwards;
    opacity: 0;
}

@keyframes popUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.console-header {
    text-align: center;
    color: #ff6df9;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-shadow: 0 0 10px #ff6df9;
}

/* TERMINAL */
.console-terminal {
    background: #070a14;
    border: 2px solid #33e1ff;
    padding: 15px;
    height: 200px;
    overflow: hidden;
    color: #39ff14;
    font-family: monospace;
    font-size: 1rem;
    box-shadow: inset 0 0 15px #33e1ff55;
}

/* CIRCUITS */
.circuit-panel {
    margin-top: 15px;
    position: relative;
}

.node {
    width: 12px;
    height: 12px;
    background: #39ff14;
    border-radius: 50%;
    margin-bottom: 5px;
    animation: blink 1.2s infinite;
}

.node:nth-child(2) { animation-delay: 0.3s; }
.node:nth-child(3) { animation-delay: 0.7s; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: .3; }
}

.circuit-lines line {
    stroke: #33e1ff;
    stroke-width: 4;
    stroke-dasharray: 8;
    animation: dash 1.5s linear infinite;
}

@keyframes dash {
    to { stroke-dashoffset: -60; }
}
