/* --- Global Styles & Variables (Blue Mix) --- */
:root {
    --bg-color: #050a14;
    --text-color: #00ffff;
    --prompt-color: #00ffff;
    --secondary-color: #88ddff;
    --accent-color: #ffffff;
    --link-color: #61dafb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Consolas', 'Lucida Console', 'Courier New', monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    overflow: hidden; 
}

/* --- Splash Screen Styles --- */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s 1s ease-out;
}
#splash-screen h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    animation: fadeIn 1.5s ease-in;
    transition: opacity 0.3s ease-out;
    /* Add this to prevent wrapping on slightly smaller screens */
    white-space: nowrap; 
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* --- TV Off Animation Styles --- */
#tv-off-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 5px #fff, 0 0 20px 10px #fff;
    opacity: 0;
}
#splash-screen.fading h1 {
    opacity: 0;
}
#splash-screen.tv-off #tv-off-effect {
    animation: tvOffAnim 1s forwards;
}
@keyframes tvOffAnim {
    0% { width: 0; height: 2px; opacity: 1; }
    30% { width: 100vw; height: 2px; opacity: 1; }
    60% { width: 100vw; height: 2px; opacity: 1; }
    80% { width: 0; height: 2px; opacity: 1; }
    100% { width: 0; height: 0; opacity: 0; }
}
/* --- End TV Off --- */


/* --- Particle Canvas Style --- */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
}

/* --- Terminal Container --- */
#terminal {
    padding: 1rem;
    height: 100vh;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow-y: auto; 
    -ms-overflow-style: none;
    scrollbar-width: none;
}
#terminal::-webkit-scrollbar {
    display: none;
}

#output {
    white-space: pre-wrap;
}

/* --- Line Styles (Unchanged) --- */
.line { margin-bottom: 5px; min-height: 1.6rem; }
.line.command-history { color: var(--prompt-color); }
.line.title { color: var(--accent-color); font-weight: bold; text-decoration: underline; }
.line.info { color: var(--text-color); }
.line.secondary { color: var(--secondary-color); }
.line.link { color: var(--link-color); text-decoration: underline; }
.line.error { color: #ff4d4d; }
.ls-output { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.ls-output span { min-width: 250px; color: var(--secondary-color); }
.prompt-line { display: flex; align-items: center; }
.prompt { color: var(--prompt-color); font-weight: bold; margin-right: 8px; user-select: none; }


/* --- NEW: Mobile Responsive --- */
@media (max-width: 768px) {
    #splash-screen h1 {
        /* Use 'vw' (viewport width) units to make the font size
          relative to the screen width. 6vw = 6% of the screen width.
          This will auto-size it to fit on one line.
        */
        font-size: 6vw;
    }

    /* Also reduce terminal font size for better readability on mobile */
    body {
        font-size: 1rem;
    }
    .line {
        min-height: 1.5rem;
    }
}