main {
    display: flex;
    column-gap: 40px;
    margin-bottom: 40px;
}

nav {
    position: sticky;
    top: 10px;
    flex: 1;
    margin-bottom: auto;
}

nav li {
    border-bottom: 1px solid #e1e1e1;
}

nav li a {
    padding: 10px;
    color: #333;
    display: block;
    transition: .2s;
}

nav li a:hover {
    background-color: #1993c6;
    color: #fff;
}

nav li:last-child {
    border-bottom: 0;
}

.man-rig {
    width: 735px;
}

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

main h3 {
    font-size: 25px;
    margin-bottom: 10px;
}

main .big-box {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 138px);
    gap: 10px;
}

.game-box {
    position: relative;
    font-size: 13px;
    overflow: hidden;
}

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

main .big-box[data-type=hot] .game-box:first-child,
main .big-box[data-type=new] .game-box:first-child {
    grid-column: 1/3;
    grid-row: 1/3;
    font-size: 17px;
}

.text-box {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 3px 15px;
    transition: .3s;
    bottom: 0;
    position: absolute;
    left: 0;
    transform: translateY(85%);
    text-align: center;
}

main .big-box[data-type=hot] .game-box:first-child .text-box,
main .big-box[data-type=new] .game-box:first-child .text-box {
    background-color: #f07e07;
    transform: translateY(90%);
}

.type {
    position: absolute;
    top: 0;
    left: 0;
    background: rgba(255, 200, 0, 0.9);
    color: #333;
    padding: 2px 15px;
    transition: .3s;
}

.game-box:hover .type {
    transform: translateY(-100%);
}

.game-box:hover .text-box {
    transform: translateY(0) !important;
    padding: 40% 15px 0;
}

.reverse .game-box:first-child {
    grid-column: 4/6 !important;
    grid-row: 1/3 !important;
}

main .big-box[data-type=all] {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 0;
}

@media (min-width:800px) {
    main .big-box[data-type=all] .game-box {
        width: calc((100% - 40px)/5);
        margin-right: 10px;
    }

    main .big-box[data-type=all] .game-box:nth-of-type(5n) {
        margin-right: 0;
    }
}

@media (max-width:799px) {
    main {
        flex-direction: column;
        row-gap: 15px;
        padding-bottom: 10px;
    }

    nav {
        position: relative;
        margin-bottom: 0;
        flex: 0;
    }

    nav ul {
        width: 100%;
        display: flex;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    nav li {
        border-bottom: 0;
    }

    .man-rig {
        width: 100%;
        padding: 0 5px;
    }

    main .big-box {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 120px);
    }

    main .big-box[data-type=hot] .game-box:last-child,
    main .big-box[data-type=new] .game-box:last-child {
        display: none;
    }

    .reverse .game-box:first-child {
        grid-column: 2/4 !important;
        grid-row: 2/4 !important;
    }

    main .big-box[data-type=all] .game-box {
        width: calc((100% - 20px)/3);
        margin-right: 10px;
    }

    main .big-box[data-type=all] .game-box:nth-of-type(3n) {
        margin-right: 0;
    }

    .text-box {
        transform: translateY(80%);
    }
}