main {
    width: var(--all-width);
    margin: 0 auto;
}

main h3 {
    font-size: 24px;
    padding-bottom: 6px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
}

main .big-box {
    display: flex;
    flex-wrap: wrap;
}

main .list {
    margin-bottom: 20px;
}

main img {
    height: 100%;
    position: absolute;
    top: 0;
}

.game-box .img-box::before {
    padding-top: 70%;
}

.game-box .game-text {
    background-color: #fff;
    padding: 18px 10px;
    display: flex;
    flex-direction: column;
    row-gap: 20px;
}

.game-box .game-text>span {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    min-height: 41px;
}

.game-box .type {
    position: absolute;
    left: 0;
    bottom: 0;
    background-color: #c0bbb4;
    color: #000;
    padding: 0 10px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.game-box a span {
    color: #000;
    background-color: #46ccc5;
    transition: .4s;
    padding: 0 20px 0 40px;
    border-radius: 20px;
    font-weight: 700;
    position: relative;
}

.game-box a span:hover {
    background-color: #41b7ae;
}

.game-box a span:hover::before {
    animation: .3s ease yaotou;
}

.game-box a span::before {
    content: '';
    position: absolute;
    transition: .4s;
    background-image: url(../images/game-handle.png);
    width: 20px;
    height: 20px;
    left: 12%;
    top: 10%;
    background-repeat: no-repeat;
    background-size: 100%;
}

.big-box[data-type=hot],
.big-box[data-type=all] {
    row-gap: 20px;
}

@media (min-width:800px) {
    .game-box {
        width: calc((100% - 8%)/5);
        margin-right: 2%;
    }

    .game-box:nth-of-type(5n) {
        margin-right: 0;
    }
}

@media (max-width:799px) {

    .big-box {
        row-gap: 20px;
    }

    .game-box {
        width: calc((100% - 2%)/2);
        margin-right: 2%;
    }

    .game-box:nth-of-type(2n) {
        margin-right: 0;
    }

    .game-box .game-text>span {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}

@keyframes yaotou {
    0% {
        transform: rotate(0);
    }

    20% {
        transform: rotate(10deg);
    }

    40% {
        transform: rotate(-10deg);
    }

    60% {
        transform: rotate(10deg);
    }

    80% {
        transform: rotate(-10deg);
    }

    100% {
        transform: rotate(0);
    }
}