/* --- [LOADER 10] THE ETHEREAL PORTAL --- */
.loader-content-portal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 10;
    /* Translucent background to show site behind */
    background: rgba(8, 8, 8, 0.85);
    backdrop-filter: blur(20px);
    overflow: hidden;
    color: #fff;
}

.portal-scene {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
}

.portal-core {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 40px #fff, 0 0 100px #D4AF37, 0 0 150px rgba(212, 175, 55, 0.4);
    z-index: 10;
    animation: portal-core-pulse 2s ease-in-out infinite alternate;
}

.portal-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.p-outer {
    width: 100%;
    height: 100%;
    animation: portal-rotate 15s linear infinite;
}

.p-inner {
    width: 70%;
    height: 70%;
    border: 1px dashed rgba(212, 175, 55, 0.3);
    animation: portal-rotate-rev 10s linear infinite;
}

.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #D4AF37;
    border-radius: 50%;
    box-shadow: 0 0 15px #D4AF37;
    pointer-events: none;
}

.s1 {
    top: 10%;
    left: 10%;
    animation: spark-drift 3s linear infinite;
}

.s2 {
    top: 80%;
    left: 20%;
    animation: spark-drift 4s linear infinite 1s;
}

.s3 {
    top: 30%;
    right: 15%;
    animation: spark-drift 2.5s linear infinite 0.5s;
}

.s4 {
    bottom: 15%;
    right: 10%;
    animation: spark-drift 5s linear infinite 2s;
}

.s5 {
    top: 50%;
    left: -10%;
    animation: spark-drift 3.5s linear infinite 1.5s;
}

.portal-info {
    text-align: center;
    width: 400px;
}

.portal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    color: #fff;
    letter-spacing: 15px;
    margin-bottom: 25px;
    opacity: 0.8;
}

.portal-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.portal-fill {
    width: 0%;
    height: 100%;
    background: #D4AF37;
    box-shadow: 0 0 20px #D4AF37;
    transition: width 0.3s ease-out;
}

.portal-btn-label {
    letter-spacing: 8px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
    color: #D4AF37;
}

@keyframes portal-core-pulse {
    from {
        transform: scale(1);
        filter: brightness(1);
    }

    to {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
}

@keyframes portal-rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes portal-rotate-rev {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes spark-drift {
    0% {
        transform: translate(0, 0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(150px, 150px) scale(0);
        opacity: 0;
    }
}

#unlock-container {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    margin-top: 50px;
}

#unlock-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#unlock-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 20px 80px;
    color: #D4AF37;
    cursor: pointer;
    transition: all 0.4s ease;
}

#unlock-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: #D4AF37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}