.UserPicture {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.UserPicture_guaranted,
.UserPicture_verified {
    display: none;
    position: absolute;
    bottom: -5px;
    color: var(--color-gold);
    left: 0;
    right: 0;
    margin: 0 auto;
    transform: translateY(50%);
    font-size: 20px;
    text-shadow: -1px -1px 0 var(--color-bg-light), 1px -1px 0 var(--color-bg-light), -1px 1px 0 var(--color-bg-light), 1px 1px 0 var(--color-bg-light);
}


.UserPicture_certification,
.UserPicture_ambassador,
.UserPicture_identity_verified {
    display: none !important;
    position: absolute;
    z-index: 2;
    bottom: 0;
    right: 0;
    --width: 12px;
    width: 12px;
}

.UserPicture_badge {
    display: none;
    width: 16px;
    height: 16px;
    line-height: 1;
    background-color: var(--color-gold);
    border-radius: 50%;
    color: var(--color-ft-light);
    font-size: 7px;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 2;
    bottom: 0;
    right: 0;
}

.UserPicture_badge {
    display: flex;
}

.UserPicture_guaranted {
    font-size: 15px;
    bottom: -4px;
    color: var(--color-b-weak);
}

.UserPicture_score {
    position: absolute;
    top: -6px;
    width: calc(100% + 12px);
    left: -6px;
    height: calc(100% + 12px);
    stroke-width: 2px;
    fill: transparent;
    stroke: var(--color-b);
    stroke-dasharray: 151px;
    stroke-dashoffset: calc(calc(1 - var(--score, 0)) * 151px);
    stroke-linecap: round;
    transform: scale(-1) rotate(90deg);
    transition: all 1500ms cubic-bezier(0.96, 0, 0.4, 1);
}

.UserPicture_edit {
    @include absolute-fill;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    color: var(--color-ft-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    display: none;
    opacity: 0;
    transition: opacity 150ms ease;

    &:hover {
        opacity: 1;
    }
}

/* MODIFIERS */

.UserPicture--s {
    width: 25px;
    height: 25px;

    .UserPicture_badge {
        width: 14px;
        height: 14px;
        font-size: 6px;
        margin: 0 -3px -1px 0;
    }

    .UserPicture_certification, .UserPicture_identity_verified {
        --width: 7px;
        width: 7px;
    }

    .UserPicture_ambassador {
        bottom: -2px;
        --width: 8px;
        width: 8px;
    }
}

.UserPicture--m {
    width: 35px;
    height: 35px;

    .UserPicture_score {
        top: -5px;
        width: calc(100% + 10px);
        left: -5px;
        height: calc(100% + 10px);
    }

    .UserPicture_badge {
        width: 12px;
        height: 12px;
        font-size: 6px;
        margin: 0 -1px -1px 0;
    }

    .UserPicture_certification, .UserPicture_identity_verified {
        --width: 10px;
        width: 10px;
    }

    .UserPicture_ambassador {
        bottom: -2px;
        --width: 10px;
        width: 10px;
    }
}

.UserPicture--l {
    width: 75px;
    height: 75px;

    .UserPicture_score {
        top: -8px;
        width: calc(100% + 16px);
        left: -8px;
        height: calc(100% + 16px);
        stroke-width: 1px;
        stroke-dasharray: 144px;
        stroke-dashoffset: calc(calc(1 - var(--score, 0)) * 151px);
    }

    .UserPicture_certification, .UserPicture_identity_verified {
        --width: 16px;
        width: 16px;
    }

    .UserPicture_ambassador {
        bottom: 0;
        --width: 16px;
        width: 16px;
    }
}

.UserPicture--certified {

    .UserPicture_certification {
        display: block !important;
    }
}

.UserPicture--ambassador {

    .UserPicture_ambassador {
        display: block !important;
    }
}

.UserPicture--identity_verified {
    .UserPicture_identity_verified {
        display: block !important;
        color: var(--color-g);
    }
}

.UserPicture--verified {
    border: 2px solid var(--color-bg-weaker);
    box-shadow: 0 0 0 2px var(--color-g);
    text-align: center;
    box-sizing: content-box;

    .UserPicture_verified {
        display: block;
        font-size: 18px;
        color: var(--color-g);
        bottom: -3px;
    }
}


.UserPicture--guaranted {
    border: 2px solid var(--color-bg-weaker);
    box-shadow: 0 0 0 2px var(--color-b-weak);
    text-align: center;

    .UserPicture_guaranted {
        display: block;
    }
}

.UserPicture--stroke-r .UserPicture_score {
    stroke: var(--color-r);
}

.UserPicture--stroke-g .UserPicture_score {
    stroke: var(--color-g);
}

.UserPicture--stroke-gold .UserPicture_score {
    stroke: var(--color-gold);
}

.UserPicture--edit {
    cursor: pointer;
    
    .UserPicture_edit {
        display: flex;
    }
}