/* --- GLOBAL VARIABLES --- */
:root {
    --neon-pink: #ff3366;
    --cyber-blue: #00f3ff;
    --blood-red: #8a0303;
    --terminal-red: #ff3333;
    --black: #050505;
}

body {
    background-color: var(--black);
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    user-select: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- UTILITIES --- */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.5) 3px
    );
    pointer-events: none;
    z-index: 900;
}

/* --- MAIN CONTAINER --- */
.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    height: 100vh;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.left-col, .right-col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* --- CUSTOM MODAL (Replaces Chrome Popup) --- */
#custom-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: #000;
    border: 2px solid var(--terminal-red);
    padding: 30px;
    text-align: center;
    box-shadow: 0 0 20px var(--terminal-red);
    max-width: 400px;
    width: 90%;
}

.modal-title { color: var(--terminal-red); font-size: 1.2rem; margin-bottom: 15px; border-bottom: 1px solid var(--terminal-red); padding-bottom: 10px; }
.modal-msg { font-size: 0.8rem; margin-bottom: 25px; line-height: 1.5; }

/* THE BUTTON STYLES - THIS WAS THE ISSUE */
.modal-btn {
    background: var(--terminal-red); 
    color: #000; 
    border: none; 
    padding: 15px 30px;
    font-family: 'Courier New', monospace; 
    font-weight: bold; 
    font-size: 1rem;
    cursor: pointer; 
    margin: 10px;
    text-transform: uppercase;
    transition: 0.2s;
}
.modal-btn:hover { background: #fff; box-shadow: 0 0 10px #fff; }
.cancel-btn { background: #333; color: #fff; }
.cancel-btn:hover { background: #555; }

/* --- LAYERS --- */
#start-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 1000;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer;
}
.blink { animation: blink 1s infinite; color: var(--cyber-blue); }

#loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 999;
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
}

.battery-container { width: 300px; height: 40px; border: 4px solid #fff; padding: 5px; position: relative; margin-bottom: 20px; }
.battery-fill { height: 100%; width: 0%; background: #0f0; transition: width 0.1s linear; }
.error-mode .battery-container { border-color: var(--neon-pink); animation: shake 0.5s infinite; }
.error-mode .battery-fill { background: var(--neon-pink); }

#blood-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 0%;
    background-color: var(--blood-red); z-index: 998;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    overflow: hidden;
    transition: height 0.5s steps(10); /* Pixelated drop */
}

/* --- TERMINAL --- */
#security-terminal {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 320px; background: #000; border: 2px solid var(--terminal-red);
    padding: 20px; z-index: 2000; display: none;
}
.term-input { width: 100%; background: #111; border: 1px solid #333; color: var(--terminal-red); padding: 10px; margin: 10px 0; outline: none; }

/* --- ASSETS --- */
.robot-img { width: 400px; max-width: 90vw; image-rendering: pixelated; }
.text-logo-img { width: 350px; max-width: 90%; image-rendering: pixelated; margin-bottom: 20px; }
.btn { 
    color: var(--neon-pink); 
    border: 2px solid var(--neon-pink); 
    padding: 10px 20px; 
    text-decoration: none; 
    transition: 0.3s; 
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
}
.btn:hover { background: var(--neon-pink); color: #000; box-shadow: 0 0 15px var(--neon-pink); }

.secret-link { text-decoration: underline; cursor: pointer; color: #000; }
.secret-link:hover { color: #fff; background: #000; }

/* ANIMATIONS */
@keyframes blink { 50% { opacity: 0; } }
@keyframes shake { 0% { transform: translate(1px, 1px); } 100% { transform: translate(-1px, -1px); } }

@media (max-width: 900px) {
    .container { flex-direction: column; }
    .right-col { margin-top: 30px; }
    .robot-img { width: 250px; }
    .text-logo-img { width: 250px; }
}
