/* Portal logo */

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.portal-logo {
    position: relative;
}

.portal-mark {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 999px;
    border: 1.5px solid rgba(45, 252, 255, 0.9);
    box-shadow:
        0 0 10px rgba(45, 252, 255, 0.35),
        0 0 18px rgba(255, 43, 214, 0.18),
        inset 0 0 10px rgba(45, 252, 255, 0.12);
    animation: portalPulse 3.8s ease-in-out infinite;
}

.portal-mark::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    box-shadow:
        0 0 10px rgba(45, 252, 255, 0.45),
        0 0 14px rgba(255, 43, 214, 0.35);
}

.logoCopy {
    position: relative;
    min-width: 340px;
    height: 28px;
    display: flex;
    align-items: center;
}

.logoLine {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;

    color: var(--text);
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.08),
        0 0 12px rgba(45, 252, 255, 0.16),
        0 0 18px rgba(255, 43, 214, 0.10);

    filter: blur(6px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        filter 0.7s ease;
}

.logoLine.active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(-50%) translateX(0);
}

.logoLine:not(.active) {
    transform: translateY(-50%) translateX(8px);
}

@keyframes portalPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 10px rgba(45, 252, 255, 0.35),
            0 0 18px rgba(255, 43, 214, 0.18),
            inset 0 0 10px rgba(45, 252, 255, 0.12);
    }

    50% {
        transform: scale(1.06);
        box-shadow:
            0 0 14px rgba(45, 252, 255, 0.45),
            0 0 24px rgba(255, 43, 214, 0.24),
            inset 0 0 14px rgba(45, 252, 255, 0.18);
    }
}

.logo:hover .portal-mark {
    transform: scale(1.05);
    transition: transform 180ms ease;
}

@media (max-width: 900px) {
    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .logoCopy {
        min-width: 0;
        width: 100%;
        height: 34px;
    }

    .logoLine {
        max-width: 100%;
        white-space: normal;
        font-size: 13px;
        letter-spacing: 0.06em;
        line-height: 1.2;
    }
}

@media (max-width: 520px) {
    .portal-mark {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .portal-mark::before {
        inset: 3px;
    }

    .portal-core {
        width: 7px;
        height: 7px;
    }

    .logoCopy {
        height: 38px;
    }

    .logoLine {
        font-size: 12px;
        letter-spacing: 0.04em;
    }
}