/* Shared player header. Loaded after the site theme. */
.portal-header {
    border: 1px solid #235272;
    border-radius: 20px;
    background: radial-gradient(ellipse at 0 0, #174b6c 0, transparent 55%), #09243c;
    box-shadow: 0 12px 30px rgba(7, 35, 58, .16);
}
.portal-header .site-header-main {
    min-height: 90px;
    gap: 20px;
    padding: 10px 24px;
}
.portal-header .site-brand img {
    width: 128px;
    height: 72px;
    max-width: 128px;
    max-height: 72px;
}
.portal-header .site-navigation {
    display: flex;
    gap: 3px;
    align-self: stretch;
    padding: 0;
    border: 0;
}
.portal-header .site-navigation a {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 9px;
    border-radius: 10px;
    color: #c4d8e7 !important;
    font-size: 13px !important;
    transform: none;
}
.portal-header .site-navigation a:hover {
    background: #163f5c;
    color: #fff !important;
}
.portal-header .site-navigation a.is-active {
    background: #183f59;
    color: #a8efff !important;
}
.portal-header .site-navigation a.is-active::after {
    position: absolute;
    right: 13px;
    bottom: 2px;
    left: 13px;
    height: 2px;
    border-radius: 2px;
    background: #79e2ff;
    content: '';
}
.portal-header .account-login {
    min-height: 42px;
    padding: 9px 13px;
    border: 1px solid #8de6ff;
    border-radius: 10px;
    background: #a2ecff;
    color: #082b43 !important;
    font-size: 13px !important;
    white-space: nowrap;
    box-shadow: 0 3px 12px #0002;
}
.portal-header .account-login:hover { background: #d3f7ff; transform: none; }
.portal-header .account-menu > summary { min-height: 42px; max-width: 155px; border-radius: 10px; }
.portal-header .account-menu > summary span { max-width: 85px; }
.portal-header .header-toolbar {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 24px;
    border-top: 1px solid #ffffff12;
    border-radius: 0 0 19px 19px;
    background: #04172555;
}
.portal-header .header-download-button {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 18px;
    border: 1px solid #75defb;
    border-radius: 10px;
    background: linear-gradient(120deg, #c0f4ff, #78ddfa);
    color: #082b43;
    font-size: 13px !important;
    font-weight: 700;
    cursor: pointer;
    transition: box-shadow .2s ease, background .2s ease;
}
.portal-header .header-download-button:hover { background: #c9f6ff; box-shadow: 0 0 18px #69dcff26; }
.portal-header .header-community {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    color: #c7ddeb;
    font-size: 12px !important;
    white-space: nowrap;
}
.portal-header .header-community:hover { color: #96eaff; }
.portal-header .header-community-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 20px; margin-left: auto; max-width: 100%; }
.community-banner-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.portal-header .header-community .bi-arrow-up-right { font-size: 10px !important; }
.portal-header .header-menu-toggle { display: none; }
.portal-header a:focus-visible,
.portal-header button:focus-visible,
.portal-header summary:focus-visible { outline: 2px solid #9aebff; outline-offset: 4px; }
@media (max-width: 980px) {
    .portal-header .site-header-main { flex-wrap: wrap; gap: 12px; padding: 10px 20px; }
    .portal-header .site-account { margin-left: auto; }
    .portal-header.has-menu-toggle .header-menu-toggle:not([hidden]) {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 1px solid #87bfd34d;
        border-radius: 10px;
        background: #ffffff08;
        color: #d5f5ff;
        font-size: 22px;
        cursor: pointer;
    }
    .portal-header .site-navigation {
        display: grid;
        order: 5;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        flex-basis: 100%;
        gap: 6px;
        padding: 12px 0 4px;
        border-top: 1px solid #ffffff1a;
    }
    .portal-header.has-menu-toggle .site-navigation { display: none; }
    .portal-header.has-menu-toggle.is-menu-open .site-navigation { display: grid; }
}
@media (max-width: 640px) {
    .portal-header { border-radius: 16px; }
    .portal-header .site-header-main { min-height: 76px; gap: 8px; padding: 6px 12px; }
    .portal-header .site-brand img { width: 106px; height: 60px; max-width: 106px; max-height: 60px; }
    .portal-header .site-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portal-header .site-navigation a { justify-content: flex-start; padding: 11px 12px; }
    .portal-header .account-login { gap: 5px; padding: 8px 10px; font-size: 12px !important; }
    .portal-header .account-menu > summary { max-width: 132px; padding-right: 8px; }
    .portal-header .account-menu > summary span { max-width: 60px; }
    .portal-header .account-menu-panel { right: -50px; max-width: calc(100vw - 40px); }
    .portal-header .header-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-radius: 0 0 15px 15px; }
    .portal-header .header-download-button { padding: 8px 12px; }
    .portal-header .header-community { min-height: 40px; justify-content: center; }
    .portal-header .header-community-links { flex-basis: 100%; justify-content: space-between; gap: 8px; }
}
.download-dialog-open { overflow: hidden; }
.game-download-dialog {
    width: min(440px, calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    padding: 0;
    border: 1px solid #a5d9ed;
    border-radius: 24px;
    background: radial-gradient(ellipse at 50% 0, #def7ff, transparent 65%), #f7fcff;
    color: #12304e;
    box-shadow: 0 24px 90px #00182a55;
}
.game-download-dialog::backdrop { background: #031828b3; backdrop-filter: blur(7px); }
.game-download-content { position: relative; padding: 32px 26px 24px; text-align: center; }
.game-download-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid #cbdfeb;
    border-radius: 50%;
    background: #ffffffb3;
    color: #52768b;
    cursor: pointer;
}
.game-download-close:hover { background: #e1f3fc; }
.game-download-symbol { display: inline-grid; width: 56px; height: 56px; place-items: center; margin-bottom: 16px; border: 1px solid #bce6f6; border-radius: 18px; background: #e0f6ff; color: #0879bb; }
.game-download-symbol i { font-size: 25px; }
.game-download-dialog h2 { margin: 0 0 8px; font-size: 25px; line-height: 1.3; letter-spacing: -.6px; }
.game-download-dialog p { margin: 0 0 24px; color: #58738c; font-size: 13px !important; }
.game-download-options { display: grid; gap: 10px; text-align: left; }
.game-download-options a { display: flex; min-height: 78px; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #d1e3ee; border-radius: 14px; background: #fff; transition: border-color .2s ease, background .2s ease; }
.game-download-options a:hover { border-color: #65c9ec; background: #edfaff; }
.game-download-options a > i:first-child { width: 30px; color: #0879bb; font-size: 26px; text-align: center; }
.game-download-options a:first-child > i:first-child { color: #198664; }
.game-download-options a span { flex: 1; min-width: 0; }
.game-download-options strong { display: block; font-size: 15px !important; }
.game-download-options small { display: block; margin-top: 3px; color: #58738c; font-size: 12px !important; }
.game-download-options .bi-arrow-right { color: #7094a9; }
.game-download-note { display: block; margin-top: 20px; color: #58738c; font-size: 12px !important; }
@media (max-width: 360px) {
    .game-download-content { padding: 30px 18px 20px; }
    .game-download-options a { gap: 10px; padding: 12px; }
}
@media (max-width: 360px) {
    .portal-header .site-brand img { width: 90px; height: 56px; max-width: 90px; max-height: 56px; }
    .portal-header .account-menu > summary { max-width: 120px; }
    .portal-header .account-menu > summary span { max-width: 48px; }
}
