body > .lizerium-portal-footer {
    box-sizing: border-box;
    position: fixed;
    inset: auto 0 0;
    z-index: 150;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 8px 12px;
    align-items: center;
    padding-block: 7px;
    border-top: 1px solid #7595ae38;
    background: linear-gradient(180deg, #090f1af0, #080e18f7);
}

.lizerium-portal-footer .footer-brand {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 1px 10px;
    min-width: 0;
    font-size: 13px;
    text-align: left;
}

.lizerium-portal-footer .footer-brand small {
    order: 1;
    flex-basis: 100%;
}

.lizerium-portal-footer .footer-brand a {
    padding: 1px 7px;
    border: 1px solid #64829953;
    border-radius: 4px;
    background: #101b29;
    box-shadow: inset 0 1px 3px #040812b3;
    color: #b7d9e8;
    font-size: 12px;
    text-decoration: none;
}

.lizerium-portal-footer .footer-brand a:is(:hover, :focus-visible) {
    border-color: #8ab9cf;
    color: #ecf9ff;
}

.lizerium-portal-footer .footer-socials,
.lizerium-portal-footer .server-version-badge {
    position: static;
    transform: none;
}

.lizerium-portal-footer .server-version-badge {
    justify-self: end;
    white-space: nowrap;
}

/* The news bundle also styles the article reader's footer. Scope the override to the portal footer. */
body:has(.launcher-news-page) > .lizerium-portal-footer {
    position: fixed !important;
    inset: auto 0 0 !important;
    min-height: 0;
    z-index: 150;
}

@media (min-width: 769px) and (max-width: 1050px) {
    body > .lizerium-portal-footer {
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding-inline-end: 16px;
    }

    .lizerium-portal-footer .footer-socials { gap: 6px; }
    .lizerium-portal-footer .footer-social { width: 28px; height: 28px; }
}

@media (max-width: 768px) {
    body > .lizerium-portal-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
        padding: 12px 10px 18px;
        backdrop-filter: none;
    }

    body > .lizerium-portal-footer,
    body:has(.launcher-news-page) > .lizerium-portal-footer {
        position: static !important;
    }

    .lizerium-portal-footer .footer-brand {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .lizerium-portal-footer .footer-brand a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .lizerium-portal-footer .footer-socials { gap: 6px; }
    .lizerium-portal-footer .footer-social { width: 44px; height: 44px; }
}
