.charlist {
    width: 102%;
    height: auto;
    position: relative;
    z-index: 4;
    margin-top: 50px;
    margin-left: -1%;
}

.charlist * {
    box-sizing: border-box;
}

.charlist::before {
    content: '';
    width: 96%;
    background: url(https://forumstatic.ru/files/001c/70/90/25916.png) no-repeat center / 100%;
    height: 50px;
    position: absolute;
    display: block;
    border-radius: 25px 25px 0 0;
    top: -45px;
    left: 50%;
    transform: translatex(-50%);
    filter: contrast(0.65);
    z-index: -1;
}

.charlist::after {
    content: 'ÑÏÈÑÎÊ ÏÅÐÑÎÍÀÆÅÉ';
    top: -45px;
    left: 50%;
    transform: translatex(-50%);
    height: 50px;
    position: absolute;
    display: block;
    font-size: 40px;
    color: rgb(212 212 212);
    text-shadow: none;
    width: 96%;
    text-align: center;
    font-family: 'NARZISS';
}

.charcontent {
    background: rgb(196 205 196);
    padding: 20px;
    border-radius: 5px 5px 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}


.charcontent {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.charcontent input {
    height: 20px;
    border-radius: 4px;
    background: rgb(var(--accent), .3);
    position: relative;
    width: -webkit-fill-available;
}

.charcontent charcont {
    background: rgb(222 229 222);
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    font-size: 11px;
    color: rgb(var(--text-primary), 0.8);
    text-align: center;
    font-weight: 700;
    box-shadow: 0 4px 10px -6px #3e49459c;
    max-height: 420px;
    transition: transform 0.3s;
}

.charcontent charcont:hover {
    transform: translateY(-4px);
}

chocc {
    text-align: left;
    font-weight: 400;
    /* max-height: 140px; */
    overflow-y: auto;
}

chocc p {
    padding-bottom: 1em;
    text-indent: 1.5em;
}

.charcontent>button:hover {
    color: rgb(0, 0, 0, .6);
    background: rgb(var(--accent), .4);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);

}

.charcontent chname {
    width: 100%;
    text-align: center;
    /* height: 24px; */
    /* padding-bottom: 5px; */
    font-family: 'NARZISS';
    font-size: 18px;
}

.profile-card {
    margin: 0 auto !important;
    float: none !important;
}

.profile-card div.user-avatar {
    margin: auto !important;
    float: none !important;
    border-radius: 5px !important;
    opacity: 0.8;
    transition: opacity 0.3s;
}

charcont:hover div.user-avatar {
    opacity: 1;
}

#loyaltyFilter,
#statusFilter,
#countryFilter {
    height: 20px;
    border-radius: 4px;
    background: rgb(var(--accent), .3);
    position: relative;
    font-size: 12px !important;
    line-height: 1;
    padding: 0px 0px 1px;
    color: #757575;
    outline: none;
}

.char-filter {
    grid-column: span 5;
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px 15px;
    background: rgb(222 229 222);
    border-radius: 8px;
    padding: 10px;
    position: relative;
    margin-top: 15px;
}

charcont>img {
    width: 130px;
    height: 100px;
    border-radius: 5px;
    object-fit: cover;
    align-self: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

charcont:hover >img {
    opacity: 1;
}

.char-filter>span {
    display: block;
    grid-column: span 4;
    text-align: center;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    color: rgb(var(--text-primary), .6);
    position: absolute;
    background: rgb(var(--accent), .5);
    width: fit-content;
    padding: 1px 35px;
    border-radius: 15px 15px 0 0;
    justify-self: center;
    top: -20px;
}

.char-filter>#resetBtn {
    grid-column: span 5;
    text-align: center;
    font-size: 11px;
    height: 20px;
    border: none;
    cursor: pointer;
    padding: 3px 25px;
    width: fit-content;
    justify-self: center;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    box-shadow: 0 0 0px rgba(0, 0, 0, 0);
    transition: .3s ease-in-out;
}

.char-filter>label {
    text-align: center;
    background: rgb(var(--accent), 0.7);
    border-radius: 15px 15px 0 0px;
    font-size: 12px;
    margin-bottom: -10px;
    padding: 0px 15px 0px 15px;
    color: rgb(0, 0, 0, 0.4);
    width: fit-content;
    text-transform: lowercase;
    font-weight: 600;
    justify-self: center;
}

.specOffer,
.wanted {
    padding: 5px;
    border-radius: 15px;
    color: #fff !important;
    font-family: 'Playfair';
    text-transform: uppercase;
    font-size: 14px;
    width: 120px !important;
    margin: auto;
    margin-bottom: 3px;
}

.specOffer {
background: #974337cc;
}

.wanted {
    background: #768f70cc;
}

.char-list {
display: grid;
grid-template-columns: repeat(var(--gc, 4), 1fr);
gap: 20px;
grid-auto-rows: auto;
margin-bottom: 20px;
}

.char-list grouptitle {
    grid-column: span var(--gc, 4);
    display: flex;
    height: 32px;
    width: 80%;
    background: rgb(var(--accent), 0.7);
    display: block;
    border-radius: 20px;
    font-size: 25px;
    color: rgb(255 255 255);
    text-shadow: none;
    text-align: center;
    font-family: 'NARZISS';
    margin: auto;
}

chloyalty {
    font-family: georgia;
    font-style: italic;
    opacity: 0.68;
}

.post .charlist chocc ul {
    list-style: disc;
    padding-left: 1.5em !important;
}

chrace {
    font-family: Georgia;
    font-style: italic;
    /* margin: -8px 0px; */
    margin-top: -6px;
}

.charlist .strana {
    /* background: url(https://forumstatic.ru/files/001c/70/90/25916.png) no-repeat center / 100%; */
    background: url(https://i.imgur.com/DjAQOzO.png) no-repeat center / 100%;
    position: relative;
    border-radius: 5px;
    margin: 10px 0;
    top: 0px;
    display: flex;
    filter: contrast(0.90);
    padding: 5px 0 9px;
    z-index: 0;
    left: 50%;
    transform: translatex(-50%);
    height: 40px;
    font-size: 37px;
    color: rgb(255 255 255);
    text-shadow: none;
    width: 100%;
    text-align: center;
    font-family: 'NARZISS';
    justify-content: center;
    align-items: center;
    background-size: inherit;
}