:root {
    --mauve: #070705;
    --beige: #f5f3f0;
    --sage: #8a9a5b;
    --bone: #e3dac9;
    --emboss-dark: rgba(0, 0, 0, 0.8);
}

body, html {
    margin: 0; padding: 0; background: var(--mauve);
    color: var(--bone); font-family: 'Courier Prime', monospace;
    overflow: hidden; height: 100vh;
}

.hidden { display: none !important; }

/* TYPOGRAPHY */
.grace-text { font-family: 'Monsieur La Doulaise', cursive; color: var(--sage); font-size: 5rem; margin: 0; }
.grit-text { font-family:'Cinzel', serif; letter-spacing: 4px; text-transform: uppercase; color: var(--bone); }
.intel-text { color: var(--sage); letter-spacing: 2px; font-weight: bold; }
.sage-text { color: var(--sage); }

/* OVERLAYS */
.overlay {
    position: fixed; inset: 0;
    background: var(--mauve); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.8s ease;
}

.mission-brief, .recorder-box, .terminal-box {
    text-align: center; max-width: 700px; padding: 20px;
}

/* RIVALRY CONTAINER */
.rivalry-container {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; margin: 20px 0; padding: 20px;
    background: rgba(255, 255, 255, 0.03); border-radius: 15px;
    box-shadow: inset 4px 4px 10px var(--emboss-dark);
}
.sector-wing { flex: 1; text-align: center; }
.sector-wing h3 { font-size: 2.5rem; margin: 0; color: var(--bone); }
.sector-divider { font-family: 'Cinzel', serif; color: var(--sage); font-weight: bold; opacity: 0.6; }
.mission-footer { border-top: 1px solid rgba(138, 154, 91, 0.2); padding-top: 15px; line-height: 1.4; }

/* INPUTS & BUTTONS */
input {
    width: 80%; background: transparent; border: none;
    border-bottom: 1px solid var(--bone); color: white;
    padding: 12px 0; margin-bottom: 15px; text-align: center;
    font-family: 'Courier Prime';
}
button {
    width: 80%; background: var(--sage); color: var(--mauve);
    border: none; padding: 15px; font-weight: bold; cursor: pointer;
    font-family: 'Cinzel', serif; letter-spacing: 2px; border-radius: 5px;
}

/* VIDEO GRID */
.video-grid {
    display: grid; grid-template-columns: repeat(5, 1fr);
    width: 100vw; height: 100vh; opacity: 0; transition: 2s;
}
.mosaic-tile {
    border: 0.1px solid rgba(227, 218, 201, 0.05);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; aspect-ratio: 1;
}

/* GENIE BAR */
.genie-sidebar {
    position: fixed; left: -300px; top: 0; width: 300px; height: 100vh;
    background: rgba(7, 7, 5, 0.95); backdrop-filter: blur(10px);
    border-right: 1px solid var(--sage); transition: 0.7s; z-index: 500;
    padding: 20px; box-sizing: border-box;
    display: flex; flex-direction: column;
}
.genie-sidebar.active { left: 0; }
.genie-tab {
    position: absolute; right: -40px; top: 50%; width: 40px; height: 120px;
    background: var(--sage); color: var(--mauve); display: flex; 
    align-items: center; justify-content: center; writing-mode: vertical-rl;
    cursor: pointer; font-family: 'Cinzel'; border-radius: 0 5px 5px 0;
}

/* SCANNER ANIMATION */
#security-scanner { position: absolute; inset: 0; background: rgba(138, 154, 91, 0.1); }
.scanner-line { width: 100%; height: 2px; background: var(--sage); position: absolute; animation: scan 2s infinite; }
@keyframes scan { 0% { top: 0; } 100% { top: 100%; } }

/* ADMIN PI */
#admin-pi {
    position: fixed; bottom: 25px; left: 25px;
    font-family: serif; color: var(--bone); opacity: 0.15;
    cursor: pointer; font-size: 1.4rem; transition: all 0.4s ease-in-out;
    z-index: 9999; user-select: none;
}
#admin-pi:hover {
    opacity: 1; color: var(--sage); transform: scale(1.1);
    text-shadow: 0 0 15px var(--sage), 0 0 5px var(--bone);
}

/* CHAT ADJUSTMENTS */
.genie-content { display: flex; flex-direction: column; height: 100%; }
.chat-zone { flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }

#chat-box {
    overflow-y: auto; display: flex; flex-direction: column;
    gap: 8px; margin-bottom: 10px;
}

/* USER PULSE (Captured Image in Mosaic) */
#user-pulse img {
    animation: signal-pulse 2s infinite alternate;
    border: 2px solid var(--sage);
    width: 100%; height: 100%; object-fit: cover;
}

@keyframes signal-pulse {
    from { opacity: 0.8; filter: brightness(1) grayscale(50%); }
    to { opacity: 1; filter: brightness(1.3) grayscale(20%); }
}

/* SECTOR BADGES */
.sector-badge {
    text-align: center; font-family: 'Cinzel', serif;
    font-size: 1.4rem; color: var(--bone);
    text-shadow: 0 0 8px var(--sage);
    animation: flicker 3s infinite;
}

.neighbor-placeholder {
    font-size: 0.5rem; opacity: 0.1;
    color: var(--bone); letter-spacing: 2px;
}

@keyframes flicker {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}
input[type="password"]:focus, 
input[type="text"]:focus, 
input[type="email"]:focus {
    outline: none;
    border-bottom: 2px solid var(--sage);
    text-shadow: 0 0 10px var(--sage);
    transition: 0.3s ease;
}

/* Style the placeholder text to look like faint intel */
input::placeholder {
    color: var(--bone);
    opacity: 0.3;
    font-size: 0.8rem;
    letter-spacing: 1px;
}