body {
    min-height: 100vh;
    display: flex;
    background-color: #dbd7d2;
    flex-direction: column;
}

main {
    flex: 1;
    margin: 0 auto;
    width: var(--all-width);
    background: #f0ece7;
    border-radius: 15px;
    padding: 10px;
    display: flex;
    column-gap: 20px;
}

main h2 {
    margin-bottom: 15px;
}

main .man-rig {
    flex: 1;
    display: flex;
    flex-direction: column;
    column-gap: 20px;
}

.man-lef {
    width: 70%;
    display: flex;
    flex-direction: column;
}

.game {
    flex: 1;
    position: relative;
    height: var(--game-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 20px;
}

.game .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.game .bg img {
    height: 100%;
    filter: blur(7px);
}

.game .img-box {
    width: var(--game-img);
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid #fff;
}

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

.game .img-box img {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}

.game a {
    font-size: 20px;
    color: #000;
    background-color: #fff;
    border: 1px solid #fff;
    z-index: 1;
    padding: 6px 25px;
}

.game a:hover {
    background-color: #000;
    color: #fff;
}

.recommend {
    display: flex;
    flex-wrap: wrap;
    row-gap: 6px;
}

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

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

.recom-box img {
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

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

.recom-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;
}

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

.text-box>span {
    font-weight: 700;
    font-size: 17px;
    line-height: 1.2;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

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

.text-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%;
}

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

    .game {
        flex: auto;
        height: var(--game-height);
    }

    .man-lef {
        width: 100%;
    }

    main h2 {
        font-size: 17px;
    }
}

@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);
    }
}