.home-site-header {
    --ink: var(--a-text);
    --muted: var(--a-muted);
    --line: var(--a-line);
    --orange: #f97316;
    --blue: #123c7c;
    --shadow: 0 18px 50px rgba(22, 32, 54, 0.14);
    --ui-font: var(--a-font);
    color-scheme: normal;
    color: var(--ink);
    font: initial;
    letter-spacing: normal;
    text-shadow: none;
    font-synthesis: auto;
}
.home-site-header, .home-site-header * { box-sizing: border-box; }
.home-site-header button { all: revert; box-sizing: border-box; font-family: var(--ui-font); }
.home-site-header a { color: inherit; text-decoration: none; }
.home-site-header.home-site-header :where(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid rgba(56, 189, 248, .72); outline-offset: 2px; }

.home-site-header .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.home-site-header {
    position: sticky;
    top: 0;
    z-index: 9990;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(16px, 4vw, 48px);
    background: rgba(10, 32, 56, 0.78);
    border-bottom: 1px solid rgba(116, 231, 255, 0.24);
    box-shadow: 0 10px 30px rgba(6, 20, 39, 0);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    font-family: var(--a-font);
    transition: padding 180ms ease, background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-site-header.is-scrolled {
    padding-top: 8px;
    padding-bottom: 8px;
    background: rgba(10, 32, 56, 0.82);
    border-bottom-color: rgba(99, 230, 255, 0.28);
    box-shadow: 0 14px 42px rgba(6, 20, 39, 0.18);
}

.home-site-header .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.home-site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
    font-weight: 900;
    color: var(--blue);
    letter-spacing: 0.4px;
    font-size: var(--a-fs-lg);
    line-height: 1;
    transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-site-header .brand code {
    color: var(--orange);
    font-family: Consolas, "Courier New", monospace;
    font-size: var(--a-fs-base);
    letter-spacing: 0;
    text-shadow: 0 0 16px rgba(249, 115, 22, 0.16);
}

.home-site-header .brand,
.home-site-header .brand:visited {
    color: #dbeafe;
}

.home-site-header .brand:hover,
.home-site-header .brand:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(18, 60, 124, 0.08), 0 0 24px rgba(99, 230, 255, 0.14);
    transform: translateY(-1px);
}

.home-site-header .nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.home-site-header .menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    color: var(--blue);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 32, 54, 0.08);
    backdrop-filter: blur(10px);
}

.home-site-header .menu-toggle span {
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
}

.home-site-header .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.home-site-header .menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.home-site-header .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.home-site-header .nav a,
.home-site-header .nav button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 8px;
    color: #dbeafe;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--a-font);
    font-weight: 900;
    font-size: var(--a-fs-md);
    line-height: 1;
    transition: color 160ms ease, text-shadow 160ms ease, transform 160ms ease;
}

.home-site-header .nav a::after,
.home-site-header .nav button::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(99, 230, 255, 0), rgba(99, 230, 255, 0.95), rgba(249, 115, 22, 0.55));
    opacity: 0;
    transform: scaleX(0.45);
    transform-origin: center;
    transition: opacity 160ms ease, transform 160ms ease;
}

.home-site-header .nav a:hover,
.home-site-header .nav a:focus-visible,
.home-site-header .nav a.active,
.home-site-header .nav button:hover,
.home-site-header .nav button:focus-visible {
    color: #fff;
    text-shadow: 0 0 18px rgba(99, 230, 255, 0.28);
    transform: translateY(-1px);
}

.home-site-header .nav a.active {
    transform: none;
}

.home-site-header .nav a:hover::after,
.home-site-header .nav a:focus-visible::after,
.home-site-header .nav a.active::after,
.home-site-header .nav button:hover::before,
.home-site-header .nav button:focus-visible::before {
    opacity: 1;
    transform: scaleX(1);
}

.home-site-header .nav-dropdown {
    position: relative;
    z-index: 9995;
}

.home-site-header .nav-drop-trigger::after {
    content: "\25BE";
    margin-left: 6px;
    font-size: var(--a-fs-2xs);
}

.home-site-header .nav-drop-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10000;
    display: none;
    min-width: 170px;
    padding: 10px 8px 8px;
    border: 1px solid rgba(116, 231, 255, 0.24);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(6, 20, 39, 0.96), rgba(6, 20, 39, 0.9));
    box-shadow: var(--shadow);
}

.home-site-header .nav-drop-menu.open,
.home-site-header .nav-dropdown:hover .nav-drop-menu {
    display: grid;
    gap: 4px;
}

.home-site-header .nav-drop-menu a {
    display: block;
    white-space: nowrap;
    color: #dbeafe;
}

.home-site-header .nav-drop-menu a:hover,
.home-site-header .nav-drop-menu a:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.home-site-header .account-menu {
    position: relative;
    z-index: 9995;
}

.home-site-header .account-trigger {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(22, 32, 54, 0.08);
    overflow: hidden;
    padding: 0;
}

.home-site-header .account-trigger img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.home-site-header .password-warning-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 2;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #f59e0b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.home-site-header .account-dropdown {
    position: absolute;
    z-index: 10000;
    top: 100%;
    right: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    display: none;
}

.home-site-header .account-dropdown.open,
.home-site-header .account-menu:hover .account-dropdown {
    display: grid;
    gap: 4px;
}

.home-site-header .account-dropdown strong {
    padding: 9px 10px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.home-site-header .account-dropdown a {
    padding: 10px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
}

.home-site-header .account-dropdown button {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.home-site-header .account-dropdown .password-warning-link {
    color: #b45309;
    background: #fffbeb;
}

.home-site-header .account-dropdown a:hover,
.home-site-header .account-dropdown button:hover {
    color: var(--blue);
    background: #f4f7fb;
}

@media (max-width: 640px) {
.home-site-header {
        align-items: center;
        gap: 10px;
        padding: 10px 12px;
    }

.home-site-header .header-actions {
        flex: 1;
        min-width: 0;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

.home-site-header .nav {
        flex: 1;
        min-width: 0;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 2px;
        overflow: visible;
    }

.home-site-header .nav a,
.home-site-header .nav button {
        min-height: 38px;
        padding: 7px 6px;
        border-radius: 7px;
        font-size: var(--a-fs-sm);
        line-height: 1.15;
        white-space: nowrap;
    }

.home-site-header .nav-drop-trigger::after {
        margin-left: 3px;
        font-size: var(--a-fs-2xs);
    }

.home-site-header .account-trigger {
        width: 40px;
        height: 40px;
    }

}

@media (max-width: 430px) {
.home-site-header {
        position: sticky;
    }

.home-site-header .header-actions {
        flex: 0 0 auto;
        min-width: auto;
        justify-content: flex-end;
        gap: 8px;
        margin-left: auto;
    }

.home-site-header .brand {
        font-size: var(--a-fs-md);
    }

.home-site-header .menu-toggle {
        display: inline-flex;
    }

.home-site-header .nav {
        position: absolute;
        top: calc(100% + 8px);
        left: 12px;
        right: 12px;
        z-index: 40;
        display: none;
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: var(--shadow);
    }

.home-site-header .nav.open {
        display: grid;
    }

.home-site-header .nav a,
.home-site-header .nav button {
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        text-align: left;
    }

.home-site-header .nav > a,
.home-site-header .nav-dropdown > button {
        color: var(--blue);
        text-shadow: none;
    }

.home-site-header .nav > a:hover,
.home-site-header .nav > a:focus-visible,
.home-site-header .nav-dropdown > button:hover,
.home-site-header .nav-dropdown > button:focus-visible {
        color: #082f69;
        background: #eef6ff;
    }

.home-site-header .nav-dropdown {
        width: 100%;
    }

.home-site-header .nav-drop-menu {
        position: static;
        min-width: 0;
        margin-top: 4px;
        box-shadow: none;
    }

}

.home-site-header html {
    -webkit-text-size-adjust: 100%;
}

.home-site-header img,
.home-site-header video,
.home-site-header canvas,
.home-site-header svg {
    max-width: 100%;
}

.home-site-header input,
.home-site-header select,
.home-site-header textarea,
.home-site-header button {
    max-width: 100%;
}

@media (max-width: 768px) {
.home-site-header,
.home-site-header nav > div,
.home-site-header header > div {
        max-width: 100%;
    }

}

@media (max-width: 480px) {
.home-site-header a,
.home-site-header button,
.home-site-header input,
.home-site-header select,
.home-site-header textarea {
        min-height: 42px;
    }

}

:root.arcade-fullscreen .home-site-header { display: none !important; }

/* Narrow phones: trim the logo box so the header buttons never spill past the edge. */
@media (max-width: 430px) {
    .home-site-header .brand {
        min-width: 0;
        padding: 8px 4px;
    }
}

@media (max-width: 350px) {
    .home-site-header .brand code {
        display: none;
    }
}
