.footer {
    margin-top: 220px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    background: #10110f;
}

.footer-inner {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
    padding: 70px 0 65px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 60px;
}

.footer-logo {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 11px;
}

.footer-logo img {
    width: 43px;
    height: 43px;
    object-fit: contain;
}

.footer-logo span {
    color: #f5f5f5;
    font-size: 21px;
    font-weight: 800;
}

.footer-brand p {
    max-width: 270px;
    margin-top: 17px;
    color: #71716d;
    font-size: 12px;
    line-height: 1.7;
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-socials a {
    width: 35px;
    height: 35px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: #797975;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.footer-socials a:hover {
    color: var(--green);
    border-color: rgba(0, 237, 79, .20);
    background: rgba(0, 237, 79, .04);
    transform: translateY(-2px);
}

.footer-socials a i {
    font-size: 15px;
}

.footer-topgg,
.footer-crowdin {
    overflow: hidden;
}

.topgg-icon {
    width: 30px;
    height: 30px;
    display: block;
    background: currentColor;
    -webkit-mask: url("/img/topgg.png") center / contain no-repeat;
    mask: url("/img/topgg.png") center / contain no-repeat;
    transition: transform .2s ease;
}

.crowdin-icon {
    width: 30px;
    height: 30px;
    display: block;
    background: currentColor;
    -webkit-mask: url("/img/crowdin.png") center / contain no-repeat;
    mask: url("/img/crowdin.png") center / contain no-repeat;
    transition: transform .2s ease;
}

.footer-topgg:hover .topgg-icon,
.footer-crowdin:hover .crowdin-icon {
    transform: scale(1.08);
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-column h4 {
    margin-bottom: 6px;
    color: #eeeeec;
    font-size: 13px;
}

.footer-column a {
    color: #72726e;
    font-size: 12px;
    transition: color .2s ease;
}

.footer-column a:hover {
    color: var(--green);
}

.footer-bottom {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
    padding: 25px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: #555551;
    font-size: 10px;
}

.footer-made {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-made i {
    color: var(--green);
    font-size: 9px;
}

.back-to-top {
    width: 48px;
    height: 48px;
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 237, 79, .18);
    border-radius: 12px;
    background: rgba(28, 28, 26, .92);
    color: var(--green);
    font-size: 14px;
    cursor: pointer;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease,  background .2s ease, border-color .2s ease, color .2s ease;
}

.back-to-top i {
    transition: transform .2s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--green);
    border-color: var(--green);
    color: #07130a;
    transform: translateY(-3px);
}

.back-to-top:hover i {
    transform: translateY(-2px);
}

html[data-theme="light"] .footer {
    background: #ebebe8;
    border-top-color: rgba(0, 0, 0, .08);
}

html[data-theme="light"] .footer-logo span,
html[data-theme="light"] .footer-column h4 {
    color: #242422;
}

html[data-theme="light"] .footer-brand p {
    color: #74746f;
}

html[data-theme="light"] .footer-column a {
    color: #74746f;
}

html[data-theme="light"] .footer-column a:hover {
    color: var(--green);
}

html[data-theme="light"] .footer-socials a {
    color: #656560;
    border-color: rgba(0, 0, 0, .09);
    background: rgba(0, 0, 0, .025);
}

html[data-theme="light"] .footer-socials a:hover {
    color: var(--green);
    border-color: rgba(0, 190, 65, .20);
    background: rgba(0, 190, 65, .05);
}

html[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, .08);
    color: #777772;
}

html[data-theme="light"] .back-to-top {
    background: rgba(255, 255, 255, .92);
    border-color: rgba(0, 190, 65, .22);
    color: var(--green);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .10);
}

html[data-theme="light"] .back-to-top:hover {
    background: var(--green);
    border-color: var(--green);
    color: #07130a;
}

@media (max-width: 900px) {
    .footer {
        margin-top: 160px;
    }

    .footer-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
}

@media (max-width: 600px) {
    .footer {
        margin-top: 120px;
    }

    .footer-inner {
        width: calc(100% - 40px);
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 50px;
    }

    .footer-bottom {
        width: calc(100% - 40px);
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        right: 15px;
        bottom: 15px;
        border-radius: 11px;
        font-size: 13px;
    }
}