game-site-header {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    color: #f7f7ff;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

game-site-header:not(:defined) {
    min-height: calc(70px + env(safe-area-inset-top));
}

.game-header {
    position: relative;
    z-index: 20;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(9, 11, 26, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.game-header__inner {
    display: grid;
    width: min(1180px, calc(100% - 40px));
    min-height: calc(70px + env(safe-area-inset-top));
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-inline: auto;
    padding-top: env(safe-area-inset-top);
    box-sizing: border-box;
}

.game-header__brand {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    justify-self: start;
    border: 1px solid rgba(255, 157, 69, 0.35);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 157, 69, 0.25), rgba(139, 124, 255, 0.18));
    color: #ff9d45;
    font-size: 27px;
    line-height: 1;
    text-decoration: none;
}

.game-header__title {
    overflow: hidden;
    color: #f7f7ff;
    font-size: 15px;
    font-weight: 750;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-header__account {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-self: end;
    justify-content: flex-end;
}

.game-header__account[aria-busy="true"] {
    opacity: 0.65;
}

.game-header__sign-in {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding-inline: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.game-header__profile {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(139, 124, 255, 0.42);
    border-radius: 50%;
    background: rgba(139, 124, 255, 0.18);
    color: #cec8ff;
    cursor: pointer;
}

.game-header__profile svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.game-header__sign-in:hover,
.game-header__profile:hover:not(:disabled) {
    border-color: rgba(255, 157, 69, 0.5);
    background: rgba(255, 157, 69, 0.12);
}

.game-header__profile:disabled {
    cursor: wait;
    opacity: 0.65;
}

.game-header a:focus-visible,
.game-header button:focus-visible {
    outline: 3px solid rgba(255, 157, 69, 0.7);
    outline-offset: 2px;
}

.game-header__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 620px) {
    .game-header__inner {
        width: calc(100% - 24px);
        gap: 10px;
    }

    .game-header__title {
        max-width: 45vw;
        font-size: 14px;
    }
}
