.fd-site-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid #2a2a2e;
    background-color: #111318;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
}

.fd-site-hero--home {
    min-height: var(--fd-home-hero-height, 700px);
}

.fd-site-hero--compact {
    min-height: var(--fd-inner-hero-height, 270px);
}

.fd-site-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, var(--fd-hero-overlay-top, .216)), rgba(0, 0, 0, var(--fd-hero-overlay-mid, .084)) 47%, rgba(0, 0, 0, .72) 100%),
        linear-gradient(90deg, rgba(7, 8, 11, .34), transparent 36%, transparent 64%, rgba(7, 8, 11, .28));
}

.fd-site-hero--home .fd-site-hero__shade {
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, var(--fd-hero-overlay-home-top, .204)), rgba(0, 0, 0, var(--fd-hero-overlay-home-mid, .042)) 48%, rgba(0, 0, 0, .78) 100%),
        radial-gradient(circle at 50% 42%, transparent 0 28%, rgba(0, 0, 0, .24) 74%, rgba(0, 0, 0, .45) 100%);
}

.fd-site-hero__logo-link {
    position: absolute;
    left: var(--fd-logo-left, 50%);
    top: var(--fd-logo-top, 42%);
    z-index: 1;
    display: block;
    transform: translate(var(--fd-logo-translate-x, -50%), var(--fd-logo-translate-y, -50%));
}

.fd-site-hero__logo {
    display: block;
    width: min(var(--fd-home-logo-width, 660px), 78vw);
    max-height: 52vh;
    object-fit: contain;
    filter: drop-shadow(0 16px 34px rgba(0, 0, 0, .76));
}

.fd-site-hero--compact .fd-site-hero__logo {
    width: min(var(--fd-inner-logo-width, 285px), 34vw);
    max-height: 42%;
}

.fd-site-hero__page-copy {
    position: absolute;
    top: 36px;
    left: max(24px, calc((100vw - 1180px) / 2));
    z-index: 2;
    max-width: 600px;
    padding-left: 18px;
    border-left: 5px solid #ff5b47;
    text-shadow: 0 3px 14px rgba(0, 0, 0, .92);
}

.fd-site-hero__page-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: .96;
    letter-spacing: -.025em;
}

.fd-site-hero__page-copy p {
    margin: 8px 0 0;
    color: #f1f1f4;
    font-size: 1rem;
    font-weight: 700;
}

.fd-site-hero__menu-wrap {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    z-index: 5;
    padding: 0 20px;
}

.fd-site-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(1180px, 100%);
    min-height: 76px;
    margin: 0 auto;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-bottom-color: rgba(255, 91, 71, .7);
    background:
        linear-gradient(180deg, rgba(24, 24, 27, .80), rgba(10, 10, 12, .92)),
        rgba(14, 14, 16, .88);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(14px);
}

.fd-site-menu__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 0 6px;
    color: #fff;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
}

.fd-site-menu__brand-mark {
    width: 7px;
    height: 32px;
    background: #ff5b47;
    box-shadow: 5px 0 0 rgba(255, 91, 71, .27);
    transform: skewY(-16deg);
}

.fd-site-menu__profile,
.fd-site-menu__selected {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.fd-site-menu__profile {
    padding-left: 3px;
}

.fd-site-menu__profile img,
.fd-site-menu__selected img,
.fd-site-menu__selected-placeholder {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255, 255, 255, .18);
    object-fit: cover;
    background: #0e0e10;
}

.fd-site-menu__profile img {
    border-radius: 50%;
}

.fd-site-menu__selected img,
.fd-site-menu__selected-placeholder {
    border-radius: 4px;
    object-fit: contain;
}

.fd-site-menu__selected-placeholder {
    display: grid;
    place-items: center;
    color: #adadb8;
    font-size: 1.15rem;
}

.fd-site-menu__profile-copy,
.fd-site-menu__selected > span:last-child,
.fd-site-menu__guest-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    line-height: 1.15;
}

.fd-site-menu small {
    color: #adadb8;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.fd-site-menu strong {
    overflow: hidden;
    color: #fff;
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-site-menu__selected {
    max-width: 205px;
    padding: 5px 9px 5px 5px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(4, 5, 7, .42);
    color: #fff;
    text-decoration: none;
}

.fd-site-menu__selected:hover {
    border-color: rgba(255, 91, 71, .72);
    background: rgba(22, 22, 25, .88);
}

.fd-site-menu__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.fd-site-menu__actions form {
    margin: 0;
}

.fd-site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #fff;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.fd-site-button--dark {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(8, 9, 12, .72);
}

.fd-site-button--dark:hover {
    border-color: rgba(255, 255, 255, .34);
    background: rgba(34, 34, 38, .94);
}

.fd-site-button--game { border-color: rgba(255,255,255,.16); background: rgba(8,9,12,.72); }

.fd-site-button--game:hover { border-color: rgba(255,255,255,.34); background: rgba(34,34,38,.94); }

.fd-site-button--twitch {
    background: #9147ff;
}

.fd-site-button--twitch:hover {
    background: #a970ff;
}

.fd-site-button--admin {
    border-color: #2f8d65;
    background: #238636;
}

.fd-site-button--admin:hover {
    background: #2ea043;
}

@media (max-width: 1100px) {
    .fd-site-menu__brand {
        display: none;
    }

    .fd-site-menu__selected {
        display: none;
    }
}

@media (max-width: 820px) {
    .fd-site-hero--home {
        min-height: max(620px, min(var(--fd-home-hero-height, 700px), 84vh));
    }

    .fd-site-hero--compact {
        min-height: max(360px, var(--fd-inner-hero-height, 270px));
    }

    .fd-site-hero--home .fd-site-hero__logo-link {
        top: 31%;
    }

    .fd-site-hero--compact .fd-site-hero__logo-link {
        top: 25%;
    }

    .fd-site-hero__logo {
        width: min(var(--fd-home-logo-width, 660px), 88vw);
    }

    .fd-site-hero--compact .fd-site-hero__logo {
        width: min(var(--fd-inner-logo-width, 285px), 54vw);
    }

    .fd-site-hero__page-copy {
        top: 22px;
        right: 18px;
        left: 18px;
    }

    .fd-site-hero__menu-wrap {
        bottom: 14px;
        padding: 0 12px;
    }

    .fd-site-menu {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
        padding: 11px;
    }

    .fd-site-menu__profile,
    .fd-site-menu__guest-copy {
        min-height: 42px;
    }

    .fd-site-menu__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        margin-left: 0;
    }

    .fd-site-menu__actions form,
    .fd-site-menu__actions form .fd-site-button,
    .fd-site-menu__actions > .fd-site-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .fd-site-menu__actions {
        grid-template-columns: 1fr;
    }

    .fd-site-hero__page-copy h1 {
        font-size: 2rem;
    }
}

.fd-site-button--download { border-color: rgba(255,255,255,.16); background: rgba(8,9,12,.72); }

.fd-site-button--download:hover,
.fd-site-button--download:focus-visible { border-color: rgba(255,255,255,.34); background: rgba(34,34,38,.94); }

body.fd-download-modal-open {
    overflow: hidden;
}

.fd-download-modal-backdrop[hidden] {
    display: none;
}

.fd-download-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(5px);
}

.fd-download-modal {
    width: min(520px, 100%);
    overflow: hidden;
    border: 1px solid #34343a;
    border-top: 4px solid #ff5b47;
    border-radius: 8px;
    background: #18181b;
    color: #f7f7fb;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .68);
}

.fd-download-modal__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #2a2a2e;
}

.fd-download-modal__header h2 {
    margin: 0;
    font-size: 1.28rem;
}

.fd-download-modal__close {
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    margin-left: auto;
    padding: 0;
    border: 1px solid #3a3a40;
    border-radius: 6px;
    background: #242428;
    color: #fff;
    cursor: pointer;
    font-size: 23px;
    line-height: 1;
}

.fd-download-modal__body {
    padding: 20px;
}

.fd-download-modal__body p {
    margin: 0 0 18px;
    color: #c8c8d0;
    line-height: 1.6;
}

.fd-download-modal__body label {
    display: block;
    color: #f7f7fb;
    font-weight: 700;
}

.fd-download-modal__body input {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 0 12px;
    border: 1px solid #34343a;
    border-radius: 6px;
    background: #0e0e10;
    color: #fff;
    font: inherit;
}

.fd-download-modal__error {
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid #a84754;
    border-radius: 6px;
    background: #4a2026;
    color: #fff;
}

.fd-download-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 560px) {
    .fd-download-modal__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .fd-download-modal__actions .fd-site-button {
        width: 100%;
    }
}
