.usercard {
    width: 300px;
    max-height: 100px;
    transition: box-shadow .5s;
    z-index: 1;
    color: #fff;
    text-shadow: 0 1px 4px #111;
    box-shadow: 0 1px 2px #000;
    background-color: var(--accent-colour);

    &:hover {
        box-shadow: 0 1px 4px #000;
        z-index: 2;
    }

    &__background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--accent-colour) var(--background-pattern);
        background-blend-mode: multiply;
        mask-image: linear-gradient(0deg, transparent 0%, var(--background-colour) 90%);
        -webkit-mask-image: linear-gradient(0deg, transparent 0%, var(--background-colour) 90%);
    }

    &__container {
        height: 100%;
        width: 100%;
        pointer-events: none;
        display: flex;
        flex-direction: column;
    }

    &__details {
        margin: 5px;
        display: flex;
        justify-content: center;
        flex-direction: column;
    }

    &__avatar {
        width: 50px;
        height: 50px;
        flex: 0 0 auto;
        margin: 10px;
    }

    &__main {
        display: flex;
        height: 70px;
        background-image: linear-gradient(0deg, var(--background-colour-translucent), transparent);
    }

    &__actions {
        height: 30px;
        padding: 0 10px;
        background-color: var(--background-colour-translucent);
        display: flex;
        align-items: center;
    }

    &__action {
        border-radius: 2px;
        color: var(--accent-colour);
        background-color: #111;
        text-decoration: none;
        border: 1px solid var(--accent-colour);
        margin-right: 4px;
        padding: 2px 5px;
        cursor: pointer;
        pointer-events: initial;
        font-size: .9em;
        line-height: 1.5em;
        transition: color .2s, background-color .2s;

        &:hover {
            color: #111;
            background-color: var(--accent-colour);
            text-shadow: initial;
        }

        &--destroy {
            color: #c00;
            border-color: #c00;

            &:hover {
                background-color: #c00;
            }
        }
    }

    &__name {
        color: var(--user-colour);
        text-shadow: 0 0 5px var(--user-colour);
        font-size: 1.4em;
        line-height: 1.4em;
        text-overflow: ellipsis;
        max-width: 220px;
        overflow: hidden;
    }

    &__info {
        font-size: .9em;
        display: flex;
        align-items: baseline;
        vertical-align: middle;
    }

    &__item {
        margin-left: 2px;
        color: inherit;
        text-decoration: none;
        flex: 0 0 auto;
        text-overflow: ellipsis;
        max-width: 150px;
        overflow: hidden;
        white-space: nowrap;

        &--active {
            pointer-events: auto;
        }

        &--country {
            align-items: baseline;
            vertical-align: middle;
            margin-right: 4px;
        }

        &--donator {
            //background-image: url('/images/tenshi.png');
            width: 37px;
            height: 11px;
            font-size: 0;
        }
    }
}