/* GOTTZENTRALE STATE ENGINE V1 */
:root {
    --void-bg: #030005;
    --neon-blue: #00f3ff;
    --neon-red: #ff0055;
    --neon-gold: #ffd700;
}

/* --- 1. GLOBAL LOADER (THE VOID) --- */
#god-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--void-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

#god-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-sigil {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    animation: pulse-ring 2s infinite;
}

.loader-sigil::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 2px solid var(--neon-blue);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px var(--neon-blue);
}

.loader-text {
    margin-top: 2rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.5em;
    color: var(--neon-blue);
    text-transform: uppercase;
    animation: pulse 1.5s infinite alternate;
}

/* --- 2. ERROR PROPHECY MODAL --- */
#prophecy-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(3, 0, 5, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#prophecy-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.prophecy-content {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid var(--neon-red);
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.2);
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border-radius: 10px;
}

#prophecy-modal.active .prophecy-content {
    transform: scale(1);
}

.prophecy-title {
    color: var(--neon-red);
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    margin-bottom: 1rem;
    letter-spacing: 0.2em;
}

.prophecy-message {
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    white-space: pre-wrap;
}

.prophecy-btn {
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    padding: 0.5rem 2rem;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.prophecy-btn:hover {
    background: var(--neon-red);
    color: #000;
    box-shadow: 0 0 20px var(--neon-red);
}

/* --- 3. OFFLINE BANNER (SHADOW MODE) --- */
#offline-banner {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, #000, #2a0000, #000);
    border-top: 1px solid var(--neon-red);
    color: var(--neon-red);
    text-align: center;
    padding: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    z-index: 9998;
    transition: bottom 0.5s ease;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.8);
}

#offline-banner.active {
    bottom: 0;
}

/* --- 4. PAGE TRANSITIONS --- */
body {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

body.fade-out {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.98);
}

/* --- ANIMATIONS --- */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

@keyframes pulse {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}