@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=League+Script&family=Mea+Culpa&display=swap');

body {
    overflow: hidden;
    background: #3A4151;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100vh;
    margin: 0;
    pointer-events: none;
}

video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.video-bg iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 100vh;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}


#introloop {
    display: none;
}

#load {
    display: none;
    position: fixed;
    z-index: 2;

    width: 100%;
    flex-direction: column;
    align-items: center;
}

.loading-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.loading-bar {
    width: 420px;
    height: 24px;
    position: relative;
}

.bar-svg {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    animation: fadeIn 0.3s ease forwards 0.1s;
}

.loading-diamond {
    width: 14px;
    height: 14px;
    background: #AEB4C4;
    transform: rotate(45deg);
    border: 2px solid white;
    box-shadow: 0 0 6px rgba(255,255,255,0.3);
    opacity: 0;
    animation: fadeIn 0.3s ease forwards 0.1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.loading-text {
    font-family: "IM Fell English", serif;
    font-style: normal;
    font-size: 32px;
    color: #E6E8F0;

    text-shadow:
        0 0 6px rgba(255,255,255,0.4),
        0 0 12px rgba(174,180,196,0.35);

    margin-bottom: 10px;
    letter-spacing: 1px;
    opacity: 0;

    animation: 
        fadeInText 0.4s ease forwards 0.5s,
        neonPulse 3s ease-in-out infinite 1.2s;
}

@keyframes fadeInText {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes neonPulse {
    0% {
        text-shadow:
            0 0 6px rgba(255,255,255,0.4),
            0 0 12px rgba(174,180,196,0.35);
    }
    50% {
        text-shadow:
            0 0 10px rgba(255,255,255,0.55),
            0 0 18px rgba(174,180,196,0.45),
            0 0 24px rgba(174,180,196,0.35);
    }
    100% {
        text-shadow:
            0 0 6px rgba(255,255,255,0.4),
            0 0 12px rgba(174,180,196,0.35);
    }
}
