/*
 * The project image is controlled by Platform Core and may be square, portrait,
 * or wide. Every surface therefore owns a fixed logo box instead of allowing
 * the image's natural dimensions to change the layout.
 */
.brand img,
.site-notice img,
.downloader-logo img,
footer img,
.payment-brand img,
.auth-card img,
.install-shell > img,
.empty-state img,
.orb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.brand {
    width: 210px;
    height: 54px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.brand img {
    width: 100%;
    height: 100%;
    object-position: left center;
}

.site-notice img,
.downloader-logo img {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
}

.site-notice img {
    margin-right: 2px;
}

.downloader-logo img {
    border: 1px solid var(--gold);
    background: var(--choc);
    padding: 3px;
}

footer img {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.account-button {
    min-height: 44px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--gold);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: #1a0d07;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(215, 169, 39, .16);
}

.account-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.main-nav .main-nav-account,
.main-nav .main-nav-account:hover {
    border: 1px solid var(--gold);
    background: linear-gradient(135deg, var(--gold2), var(--gold));
    color: #1a0d07;
    box-shadow: 0 8px 20px rgba(215, 169, 39, .13);
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    white-space: nowrap;
}

.footer-links a:last-child {
    padding: 9px 13px;
    border: 1px solid var(--gold);
    border-radius: 11px;
    background: var(--panel2);
}

.install-account-link {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--gold2);
    font-weight: 900;
}

.payment-brand img {
    width: 140px;
    height: 82px;
}

.auth-card img {
    width: min(280px, 82%);
    height: 104px;
}

.install-shell > img {
    width: min(300px, 82%);
    height: 104px;
}

.empty-state img {
    width: 88px;
    height: 88px;
}

.orb img {
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 180px;
    margin: auto;
}

img[src*="/brand/project-logo"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 900px) {
    .brand {
        width: 168px;
        height: 44px;
    }

    .payment-brand img {
        width: 120px;
        height: 72px;
    }

    .account-button {
        width: 44px;
        padding: 0;
    }

    .account-button span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

@media (max-width: 600px) {
    .brand {
        width: min(148px, 42vw);
        height: 40px;
    }

    .auth-card img,
    .install-shell > img {
        width: min(220px, 78%);
        height: 84px;
    }

    .payment-brand img {
        width: 108px;
        height: 66px;
    }

    .empty-state img {
        width: 72px;
        height: 72px;
    }

    footer img {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}
