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

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

main h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

main .big-box {
    display: flex;
    flex-wrap: wrap;
    row-gap: 15px;
}

.game-box {
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 4px rgba(16, 20, 30, .05), 0 2px 2px rgba(16, 20, 30, .1), 0 0 2px rgba(16, 20, 30, .05);
}

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

.game-box .game-text {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
    color: #40434b;
    font-size: 16px;
}

.game-text span {
    width: 100%;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    min-height: 40px;
}

.game-text i,
.all-game i {
    color: #ff18f6;
    font-weight: 700;
}

.all-game {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    column-gap: 16px;
    box-shadow: 0 1px 4px rgba(16, 20, 30, .05), 0 2px 2px rgba(16, 20, 30, .1), 0 0 2px rgba(16, 20, 30, .05);
}

.all-game .img-box {
    width: 28%;
    max-width: 104px;
    border-radius: 10px;
    overflow: hidden;
    transition: .2s;
    filter: drop-shadow(6px 0px 12px rgba(16, 20, 30, 0.05)) drop-shadow(8px 0px 8px rgba(16, 20, 30, 0.1)) drop-shadow(0px 0px 8px rgba(16, 20, 30, 0.05));
}

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

.all-game:hover .img-box {
    border: 2px solid #ff18f6;
    transform: scale(.88);
    box-shadow: 0 2px 6px 0 #10141e0d;
}

.all-game .all-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    color: #40434b;
    font-size: 16px;
}

.all-game .all-text span {
    font-size: 18px;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media screen and (min-width:770px) {
    .game-box {
        width: calc((100% - 80px)/5);
        margin-right: 20px;
    }

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

    .all-game {
        width: calc((100% - 40px)/3);
        margin-right: 20px;
    }

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

@media screen and (max-width:769px) {
    .game-box {
        width: calc((100% - 8px)/2);
        margin-right: 8px;
    }

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

    .game-box:nth-child(5) {
        display: none;
    }

    .all-game {
        width: 100%;
    }
}