main {
    display: flex;
    column-gap: 10px;
    background-image: url(../images/bg.png);
    border: 1px solid #d3d1c7;
    margin-bottom: 15px;
    padding: 5px;
    position: relative;
}

.man-lef {
    width: 83%;
}

.lef-top {
    display: flex;
    column-gap: 10px;
    margin-bottom: 10px;
}

.rand-game {
    flex: 1;
}

.rand-game a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rand-game .img-box {
    width: 59%;
    border-bottom: 8px solid rgb(239, 88, 46);
    border-right: 8px solid rgb(239, 88, 46);
}

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

main h3 {
    font-size: 27px;
    text-align: center;
    color: #333;
    margin-bottom: 15px;
}

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

.game-box .img-box {
    background-color: #fff;
    border: 1px solid #E1E1E1;
    padding: 4px;
}

.game-box .img-box img {
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.text-box {
    width: 96%;
    margin: 0 auto;
    font-weight: 700;
    color: #2c445e;
}

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

.man-rig {
    width: calc((100% - 83%) - 10px);
    position: sticky;
    top: 10px;
    left: 0;
    margin-bottom: auto;
}

.man-rig h4 {
    background: #003773;
    color: #FFF;
    font-size: 13px;
    padding: 5px 10px;
}

.man-rig ul {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;
    border: 1px solid #CCC;
    padding: 4px 0 8px;
}

.man-rig ul li {
    width: 100%;
    font-weight: 700;
    padding-left: 12px;
    font-size: 12px;
    color: #2c445e;
    position: relative;
}

.man-rig ul li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #000;
    display: block;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.man-rig ul li a {
    width: 100%;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width:800px) {
    .game-box {
        width: calc((100% - 45px)/4);
        margin-right: 15px;
    }

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

@media (max-width:799px) {
    main {
        flex-direction: column;
    }

    .man-lef,
    .man-rig {
        width: 100%;
    }

    .lef-top {
        flex-direction: column;
        row-gap: 20px;
    }

    .rand-game a {
        width: 50%;
        margin: 0 auto;
    }

    .rand-game .img-box {
        border-width: 6px;
    }

    main .big-box {
        row-gap: 10px;
    }

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

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

    .man-rig {
        position: static;
    }

    .man-rig ul li {
        font-size: 17px;
    }
}