/* Games Vault portrait avatars */

.gv-avatar-face {
    padding: 0 !important;
    overflow: hidden;
    background: #152038;
    border: 2px solid #c9a227;
    color: transparent !important;
}

.gv-avatar-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}

.user-avatar.gv-avatar-face {
    width: 40px;
    height: 40px;
}

.user-display--compact .user-avatar.gv-avatar-face {
    width: 36px;
    height: 36px;
}

.profile-avatar-large.gv-avatar-face {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
}

.friend-avatar.gv-avatar-face {
    width: 50px;
    height: 50px;
    background: #152038;
}

.gv-avatar-field {
    margin-bottom: 1.25rem;
}

.gv-avatar-field > label {
    display: block;
    margin-bottom: 0.45rem;
    font-weight: 600;
    color: var(--auth-text, #1D1D1B);
}

.gv-avatar-field-hint {
    display: block;
    margin: 0 0 0.75rem;
    color: #666;
    font-size: 0.85rem;
}

.gv-avatar-picker {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.55rem;
    max-height: 420px;
    overflow-y: auto;
    padding: 0.35rem 0.15rem 0.5rem;
}

.gv-avatar-pick {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #c9a227;
    background: #152038 !important;
    color: #1D1D1B !important;
    box-shadow: none;
    appearance: none;
}

.gv-avatar-pick img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    pointer-events: none;
}

.gv-avatar-pick:hover,
.gv-avatar-pick:focus-visible {
    border-color: #C90C0F;
    outline: 2px solid #C90C0F;
    outline-offset: 2px;
    color: #1D1D1B;
    background: #152038;
}

.gv-avatar-pick.is-selected {
    border-color: #C90C0F;
    box-shadow: 0 0 0 3px rgba(201, 12, 15, 0.28);
    color: #1D1D1B;
    background: #152038;
}

.gv-avatar-pick.is-selected::after {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #C90C0F;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.profile-modal-content--edit {
    max-width: 560px;
}

.gv-result-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin: 0.35rem 1.25rem 0.15rem;
    text-align: center;
}

.gv-result-hero__face {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.gv-result-hero__name {
    margin: 0;
    font-weight: 700;
    font-size: 1rem;
    color: inherit;
}

.gv-topbar-profile {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.15rem 0.35rem 0.15rem 0.15rem;
    margin: 0;
    border: none;
    background: transparent !important;
    color: #f8fafc !important;
    cursor: pointer;
    max-width: 14rem;
}

.gv-topbar-profile:hover,
.gv-topbar-profile:focus-visible {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.gv-topbar-profile .user-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.dl-player {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dl-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 520px) {
    .gv-avatar-picker {
        grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
        max-height: 340px;
    }

    .gv-result-hero__face {
        width: 72px;
        height: 72px;
    }
}
