/*
 * ---------------------------------------------
 * Steam
 * ---------------------------------------------
 */

.steam-login {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    position: fixed;
    top: 12px;
    right: 16px;
    left: auto;
    bottom: auto;
    z-index: 1200;
    /* Не растягивать на всю ширину viewport — иначе flex и узкие экраны дают смещение */
    width: max-content;
    max-width: min(420px, calc(100vw - 24px));
    box-sizing: border-box;
}

.nav-wallet-sep {
    margin: 0 8px;
    opacity: 0.7;
}

.nav-wallet {
    font-weight: 600;
}

.nav-wallet .nav-wallet-label {
    font-weight: 500;
    opacity: 0.9;
}

.steam-logout {
    transition: background 0.2s ease;
    border-radius: 0;
    border: 0;
    padding: 8px 14px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 18px;
    cursor: pointer;
    margin-top: 5px;
    background: rgb(150, 47, 32);
    color: rgb(199, 152, 151);
}

.user-menu-dropdown .steam-logout,
.user-menu-dropdown .user-menu-logout.steam-logout {
    padding: 5px 10px;
    font-size: 12px;
    margin-top: 4px;
    line-height: 1.25;
}

.steam-logout:hover {
    background: rgb(172, 56, 39);
}

.user-menu-btn {
    position: relative;
    display: block;
    width: max-content;
    max-width: 100%;
    overflow: visible;
}

.user-menu-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(28, 28, 26, 0.92);
    border: 1px solid rgb(43, 52, 43);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    user-select: none;
}

.user-menu-trigger::-webkit-details-marker {
    display: none;
}

.user-menu-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(166, 205, 99, 0.25);
}

.user-menu-name {
    color: rgb(204, 195, 190);
    font-weight: 700;
    max-width: 170px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 230px;
    background: rgba(28, 28, 26, 0.98);
    border: 1px solid rgb(43, 52, 43);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.user-menu-link {
    display: block;
    color: rgb(173, 168, 162);
    text-decoration: none;
    padding: 6px 0;
}

.user-menu-link:hover {
    color: rgb(166, 205, 99);
}

.user-menu-wallet {
    padding: 6px 0 8px;
    margin: 4px 0 6px;
    border-top: 1px solid rgba(43, 52, 43, 0.9);
    border-bottom: 1px solid rgba(43, 52, 43, 0.9);
}

.user-menu-recharge {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: 6px;
    color: rgb(28, 28, 26);
    background: rgb(85, 134, 0);
    border: 1px solid rgba(88, 108, 57, 0.85);
    cursor: pointer;
}

.user-menu-recharge:hover {
    color: rgb(20, 24, 20);
    background: rgb(144, 207, 33);
}

button.user-menu-recharge {
    -webkit-appearance: none;
    appearance: none;
}

.user-menu-logout-form {
    margin-top: 8px;
}

.user-menu-logout {
    width: 100%;
    margin-top: 0;
}

.user-menu-guest a, .user-menu-guest button {
    white-space: nowrap;
}

body.theme-bohpts2 .steam-login {
    top: 12px;
    right: calc(var(--top-ui-right, 16px) + var(--lang-switcher-space, 150px) + var(--top-ui-gap, 10px));
    justify-content: flex-end;
    max-width: min(380px, calc(100vw - var(--bohpts2-nav-w, 110px) - 20px));
}

body.theme-bohpts2 .user-menu-trigger {
    padding: 5px 8px;
    gap: 8px;
}

body.theme-bohpts2 .user-menu-avatar {
    width: 28px;
    height: 28px;
}

body.theme-bohpts2 .user-menu-name {
    max-width: 130px;
    font-size: 13px;
}

body.theme-bohpts2 .user-menu-dropdown {
    min-width: 220px;
}

@media (max-width: 991px) {
    body.theme-bohpts2 .steam-login {
        top: 10px;
        /* Не даём right «вытолкнуть» блок за левый край контента у боковой навигации */
        right: min(
            calc(var(--top-ui-right, 16px) + 138px + 8px),
            calc(100vw - var(--bohpts2-nav-w, 72px) - 12px - min(210px, 52vw))
        );
        max-width: min(340px, calc(100vw - var(--bohpts2-nav-w, 72px) - 16px));
    }
    body.theme-bohpts2 .user-menu-name {
        max-width: 95px;
    }
}

.steam-avatar {
    height: 150px;
    width: 150px;
}

/*
 * ---------------------------------------------
 * Profile
 * ---------------------------------------------
 */

.profile {
    color: rgb(220, 211, 202);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 38px;
    text-align: center;
    margin-bottom: 50px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.profile .profile-heading {
    color: rgb(220, 211, 202);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 38px;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.profile .profile-table {
    background-color: rgba(28, 28, 26, 0.5);
    border: 3px solid rgb(88, 108, 57);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    width: 800px;
    margin-bottom: 20px;
    margin-top: 20px;
}

.profile .profile-info {
    color: rgb(220, 211, 202);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 32px;
    text-align: left;
    margin-bottom: 50px;
    margin-top: 20px;
}

.profile .profile-data {
    color: rgb(220, 211, 202);
    text-transform: uppercase;
    font-weight: bold;
    font-size: 32px;
    text-align: right;
    margin-bottom: 50px;
    margin-top: 20px;
}

.profile-avatar {
    height: 140px;
    width: 140px;
    margin-right: 50px;
    margin-bottom: 20px;
    margin-top: 20px;
}