 :root {
        --sun: #ffcc00; 
        --blue: #00f2ff; 
        --green: #39ff14;
        --gold: #ffcc00; 
        --red: #ff3131; 
        --purple: #bc13fe; 
        --bg: #00050a;
        --glass: rgba(10, 25, 47, 0.85);
        --border: rgba(0, 242, 255, 0.2);
    }

    
    * { 
        box-sizing: border-box; 
        margin: 0; padding: 0;
        scrollbar-width: thin;
        scrollbar-color: var(--blue) transparent;
    }

    body { 
        background: var(--bg); 
        font-family: 'Exo 2', sans-serif; 
        color: #e0e6ed; 
        overflow: hidden; 
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

 
    h1, h2, h3, .planet-label, #timer, button, .system-font { 
        font-family: 'Orbitron', sans-serif !important; 
        text-transform: uppercase; 
        letter-spacing: 2px; 
    }

   
    .space-bg { 
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
        z-index: -2; background: radial-gradient(circle at center, #0a192f 0%, #000 100%); 
    }
    
    .nebula {
        position: absolute; width: 100%; height: 100%;
        background: 
            radial-gradient(circle at 70% 20%, rgba(0, 242, 255, 0.1) 0%, transparent 40%),
            radial-gradient(circle at 20% 80%, rgba(188, 19, 254, 0.08) 0%, transparent 40%);
        filter: blur(60px);
        will-change: transform;
    }

    
    .viewport { 
        position: relative; flex-grow: 1; perspective: 1500px;
        display: flex; justify-content: center; align-items: center;
        padding: 20px;
    }

    .orbit-system { 
        position: relative; 
        width: min(850px, 95vw); 
        height: min(450px, 50vh); 
        transform: rotateX(50deg); 
        transform-style: preserve-3d; 
    }

    .orbit-path { 
        position: absolute; width: 100%; height: 100%; 
        border: 1px solid var(--border); border-radius: 50%; 
        pointer-events: none;
    }

    
    .sun-exam {
        position: absolute; top: 50%; left: 50%; 
        width: 160px; height: 160px;
        background: radial-gradient(circle, #fff, var(--sun), #ff6600);
        border-radius: 50%; transform: translate(-50%, -50%) rotateX(-50deg);
        box-shadow: 0 0 50px var(--sun); 
        border: 4px solid rgba(255,255,255,0.3);
        z-index: 10; cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .sun-exam:hover { box-shadow: 0 0 80px var(--sun); scale: 1.05; }

    .planet {
        position: absolute; width: 100px; height: 100px; border-radius: 50%;
        background: var(--glass); border: 1px solid var(--border);
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transform: translate(-50%, -50%) rotateX(-50deg);
        transition: 0.3s; backdrop-filter: blur(5px);
    }
    .planet:hover { 
        border-color: var(--blue); 
        box-shadow: 0 0 30px var(--blue);
        transform: translate(-50%, -60%) rotateX(-50deg) scale(1.1);
    }

    .planet-label { 
        font-size: 8px; text-align: center; color: #fff; 
        padding: 5px; line-height: 1.4; 
    }

    
    .terminal {
        position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
        width: 90%; max-width: 900px; max-height: 85vh; 
        background: var(--glass); 
        border: 1px solid var(--border); 
        border-radius: 20px; padding: 30px;
        z-index: 1000; backdrop-filter: blur(25px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.6), inset 0 0 20px rgba(0, 242, 255, 0.05);
        overflow-y: auto;
    }

   
    .ans-node {
        width: 100%; padding: 15px 20px; margin: 8px 0;
        background: rgba(255,255,255,0.03);
        border: 1px solid var(--border); border-radius: 10px;
        color: #fff; cursor: pointer; text-align: left;
        transition: 0.2s; font-size: 14px;
    }
    .ans-node:hover { background: rgba(0, 242, 255, 0.1); border-color: var(--blue); }

    
    .scanner-line {
        position: absolute; left: 0; width: 100%; height: 2px;
        background: var(--blue); box-shadow: 0 0 15px var(--blue);
        z-index: 10; opacity: 0; pointer-events: none;
    }
   .scan-active { 
    animation: scanAnim 54s linear infinite; 
}

@keyframes scanAnim { 
    0% { top: 0%; opacity: 0; } 
    5% { opacity: 1; } 
    95% { opacity: 1; } 
    100% { top: 100%; opacity: 0; } 
}

    .neon { color: var(--blue); text-shadow: 0 0 10px var(--blue); }
    .hidden { display: none !important; }

    
    @media (max-width: 768px) {
    
    .orbit-system { transform: rotateX(40deg) scale(0.65); }
    .sun-exam { width: 110px; height: 110px; font-size: 11px; }
    .planet { width: 75px; height: 75px; }
    
    
    .option-btn { 
        padding: 15px;      
        margin: 10px 0;     
        font-size: 16px;    
        width: 100%;        
    }

    .terminal { 
        padding: 15px; 
        width: 92%; 
        top: 50%;          
        left: 50%;
        transform: translate(-50%, -50%); 
        max-height: 85vh;   
        overflow-y: auto;   
    }


    .footer-info { font-size: 10px; }
}


.ans-node.correct {
    background: rgba(57, 255, 20, 0.2) !important;
    border-color: #39ff14 !important;
    color: #39ff14 !important;
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.3) !important;
}

.ans-node.wrong {
    background: rgba(255, 49, 49, 0.2) !important;
    border-color: #ff3131 !important;
    color: #ff3131 !important;
    box-shadow: 0 0 15px rgba(255, 49, 49, 0.3) !important;
}

#timer { 
    font-family: 'Orbitron', sans-serif !important;
    font-size: 46px !important; 
    color: #ff3131 !important; 
    text-shadow: 0 0 20px #ff3131, 0 0 40px rgba(255, 49, 49, 0.6);
    font-weight: 900;
    text-align: center;
    position: relative;
    z-index: 100;
    margin: 15px 0;
    letter-spacing: 5px;
  
    animation: timerPulse 1s infinite ease-in-out;
    transition: all 0.3s ease;
}

#timer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 10px;
}

#demo-label {
    font-size: 12px;
    color: #ff3131;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    margin-bottom: -10px;
    opacity: 0.8;
}


@keyframes timerPulse {
    0% { transform: scale(1); text-shadow: 0 0 20px #ff3131; }
    50% { transform: scale(1.08); text-shadow: 0 0 35px #ff3131, 0 0 60px #ff3131; }
    100% { transform: scale(1); text-shadow: 0 0 20px #ff3131; }
}


#timer.critical {
    animation: timerPanic 0.3s infinite steps(2);
    color: #fff !important;
    background: #ff0000;
    padding: 5px 15px;
    border-radius: 10px;
}

@keyframes timerPanic {
    0% { background: #ff0000; color: #fff; }
    100% { background: transparent; color: #ff0000; }
}
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -20px;
    z-index: 10001; 
    pointer-events: none;
   
    animation: fall 3s linear forwards;
}

@keyframes fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}