:root {
    --button-card-bg: linear-gradient(0deg,rgba(54, 54, 54, 1) 0%, rgba(89, 89, 89, 1) 70%);
    --text-card-desc: #878787;
}

.card-main {
    position: relative;
    padding-block: 35px 30px;
    padding-inline: 2rem;
    height: 230px;
    background: var(--card);
    border-radius: var(--br-24);
    overflow: hidden;
}

.card-flex {
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.clan-info, 
.collections-info {
    z-index: 4;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.clan-text,
.collections-text {
    font-weight: bold;
    font-size: 23px;
}

.clan-descriptions, 
.collections-descriptions {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-card-desc);
}


.clan-tops {
    gap: 10px;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}

.clan-top {
    grid-template-columns: 1fr 1.3fr 4fr 1fr;
    padding: .3rem 1rem;
    border-radius: 25px 0 0 25px;
    height: 45px;
    display: grid;
    align-items: center;
}

.clan-top svg {
    width: 24px;
    height: 26px;
}

.clan-top-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.clan-top-img.top-1 {
    border: 2px solid #FFE27C;
}

.clan-top-img.top-2 {
    border: 2px solid #BFE0FF;
}

.clan-top-img.top-3 {
    border: 2px solid #F8A785;
}

.clan-top.top-1 {
    background: linear-gradient(90deg,rgba(255, 219, 92, 0.38) 0%, rgba(255, 219, 92, 0.44) 29%, rgba(255, 219, 92, 0) 100%);
    color: #FFE27C;
}

.clan-top.top-1 svg{
    fill: #FFE27C;
}

.clan-top.top-2 {
    background: linear-gradient(90deg,rgba(191, 224, 255, 0.38) 0%, rgba(191, 224, 255, 0.44) 29%, rgba(191, 224, 255, 0) 100%);
    color: #BFE0FF;
}

.clan-top.top-2 svg{
    fill: #BFE0FF;
}

.clan-top.top-3 {
    background: linear-gradient(90deg,rgba(248, 167, 133, 0.38) 0%, rgba(248, 167, 133, 0.44) 29%, rgba(248, 167, 133, 0) 100%);
    color: #F8A785;
}

.clan-top.top-3 svg{
    fill: #F8A785;
}

.clan-top-name {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 20px;
    font-weight: 500;
}

.clan-top-top {
    font-size: 18px;
    font-weight: 500;
}

.clan-link,
.collections-link {
    overflow: hidden;
    background: linear-gradient(to top,rgba(54, 54, 54, 0.7) 0%, rgba(88, 88, 88, 0.7) 100%);
    height: 50px;
    width: 200px;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-default);
    border: unset;
    border-radius: 50px;
}

.clan-tops-button {
    font-size: 15px;
    width: 110px;
    border-radius: 50px;
    display: flex;
    position: absolute;
    bottom: 1rem;
    right: 2rem;
    height: 45px;
    background: linear-gradient(-177deg, rgba(54, 54, 54, 0.3) 0%, rgba(89, 89, 89, 0.3) 100%);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.clan-link span,
.collections-link span {
    position: relative;
    transition: .4s;
}

.clan-link svg,
.collections-link svg {
    height: 25px;
    width: 25px;
    fill: var(--text-default);
    transition: .4s;
}

.clan-link:hover svg,
.collections-link:hover svg {
    transform: translateX(5rem);
}

.clan-link:hover span,
.collections-link:hover span {
    transform: translateX(15px);
}
.clan-text-block,
.collections-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 769px) {
    .card-main {
        height: 100%;
    }

    .card-flex {
        height: 350px;
        flex-direction: column;
    }
}