/* =========================================
   GOTTZENTRALE: CINEMATIC ENGINE V2
   ========================================= */

/* --- CORE VARIABLES --- */
:root {
    --void-bg: #030305;
    --divine-gold: #FFD700;
    --neon-cyan: #00E5FF;
    --deep-space: #050508;
    --text-glow: 0 0 20px rgba(255, 255, 255, 0.5);
    --portal-color: rgba(0, 229, 255, 0.8);
}

body.intro-active {
    overflow: hidden;
    height: 100vh;
}

/* --- LAYERS --- */
#intro-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--deep-space);
    z-index: 9000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

#world-layer {
    position: relative;
    opacity: 0;
    /* Hidden initially */
    z-index: 10;
    transition: opacity 2s ease-in-out;
}

/* --- THE SIGIL (CSS MANDALA) --- */
.sigil-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sigil-ring {
    position: absolute;
    border: 1px solid rgba(0, 229, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
}

.sigil-ring.outer {
    width: 100%;
    height: 100%;
    border-left-color: var(--neon-cyan);
    border-right-color: var(--neon-cyan);
    animation: spin 20s linear infinite;
}

.sigil-ring.middle {
    width: 70%;
    height: 70%;
    border: 1px dashed rgba(255, 215, 0, 0.4);
    animation: spinReverse 15s linear infinite;
}

.sigil-ring.inner {
    width: 40%;
    height: 40%;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    animation: pulseScale 3s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.sigil-core {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 40px 10px rgba(0, 229, 255, 0.8);
    animation: corePulse 1s ease-in-out infinite alternate;
}

/* --- INTRO TEXT & BUTTON --- */
.intro-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.5rem;
    color: white;
    text-shadow: 0 0 20px var(--neon-cyan);
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0;
    /* JS Reveal */
    transform: translateY(20px);
}

.start-btn-container {
    position: relative;
    opacity: 0;
    /* JS Reveal */
}

.start-btn {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    padding: 1rem 3rem;
    letter-spacing: 0.3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    appearance: none;
    -webkit-appearance: none;
}

.start-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), transparent);
    transition: left 0.5s;
}

.start-btn:hover {
    background: var(--neon-cyan);
    color: black;
    box-shadow: 0 0 50px rgba(0, 229, 255, 0.6);
    transform: scale(1.05);
}

.start-btn:hover::before {
    left: 100%;
}

/* --- THE PORTAL (HERO) --- */
.hero-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 20;
    padding: 20px;
    background: radial-gradient(circle at center, rgba(10, 10, 30, 0.5) 0%, transparent 70%);
}

/* Prophecy Section */
.prophecy-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin-top: 3rem;
}

.prophecy-halo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: haloBreathe 5s infinite alternate;
}

.oracle-input {
    width: 100%;
    padding: 2rem;
    font-size: 1.8rem;
    font-family: 'Rajdhani', sans-serif;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(to right, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 100%;
}

.oracle-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 60px rgba(0, 229, 255, 0.2), inset 0 0 30px rgba(0, 229, 255, 0.1);
    background-color: rgba(0, 10, 20, 0.8);
}

/* Runes */
.rune {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    font-family: monospace;
    font-size: 1.5rem;
    pointer-events: none;
    user-select: none;
    animation: floatRune 10s infinite linear;
}

@keyframes floatRune {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    80% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* --- PARTICLES & BACKGROUND --- */
#starfield {
    opacity: 0.6;
}

.fog-layer {
    opacity: 0.2;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, transparent 60%);
    mix-blend-mode: screen;
}

/* --- ANIMATIONS --- */
@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes spinReverse {
    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulseScale {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes corePulse {
    from {
        box-shadow: 0 0 20px 5px rgba(0, 229, 255, 0.5);
    }

    to {
        box-shadow: 0 0 50px 15px rgba(0, 229, 255, 0.9);
    }
}

@keyframes haloBreathe {
    from {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .intro-title {
        font-size: 1.5rem;
        letter-spacing: 0.2rem;
    }

    .sigil-container {
        width: 200px;
        height: 200px;
    }

    .oracle-input {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}