:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #00f2ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --font-mono: 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-mono);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

body.unlocked {
    overflow: auto;
    height: auto;
    display: block;
    background: #000; /* Reset for content */
}

/* Starfield / Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle, #1a1a1a 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.5;
}

.gate-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    position: relative;
    transition: opacity 0.5s ease;
}

.gate-container.fade-out {
    opacity: 0;
    pointer-events: none;
}



h1 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 1.5rem; letter-spacing: 1px; }

.progress-bar {
    background: rgba(255,255,255,0.1);
    height: 4px; border-radius: 2px;
    margin-bottom: 1.5rem; overflow: hidden;
}
.progress-fill {
    background: var(--accent);
    height: 100%; width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent);
}

.terminal-log {
    background: #000;
    color: #333;
    padding: 10px;
    height: 100px;
    overflow-y: auto;
    font-size: 12px;
    text-align: left;
    border: 1px solid #222;
}

.terminal-log p { margin: 2px 0; color: #555; }
.terminal-log p.success { color: var(--accent); }
.terminal-log p.error { color: #f00; }

#secure-content {
    display: none;
    opacity: 0;
    transition: opacity 1s;
}
#secure-content.visible {
    display: block;
    opacity: 1;
}
