.game-box1 {
    width: calc(100% - 200px);
}

.game-box2 {
    width: 188px;
}

.game-box2 a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
}

.game-box2 a img {
    aspect-ratio: 1/0.7;
}

.game-box2 a .star {
    color: #CCA3A6;
    font-size: 14px;
    line-height: 18px;
}

.game-box2 a .star span {
    font-size: 14px;
    line-height: 18px;
    padding-left: 8px;
}

.g3 a {
    width: 33.33%;
}

.game-box1 .desc {
    border-radius: 24px;
    border: 4px solid #683338;
    background: #4D171C;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
    margin-left: 12px;
    margin-right: 12px;
}

.game-box1 .desc .catename {
    color: #FDFFC7;
    font-family: Nunito;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    width: 100%;
    /* 125% */
}

.game-box1 .desc .catename i {
    font-size: 14px;
    padding-left: 12px;
}

.game-box1 .desc h2 {
    color: #FFF;
    font-family: Nunito;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    /* 120% */
}

.game-box1 .desc .star i,
.h5-play .star i {
    color: #CCCCCC;
    font-size: 20px;
}

.game-box1 .desc .star i.full,
.h5-play .star i.full {
    color: #FDFFC7;
}

/* 最后一颗特殊处理 */
.game-box1 .desc .star i.partial,
.h5-play .star i.partial {
    background: linear-gradient(to right, #FDFFC7 var(--percent, 0%), #CCCCCC var(--percent, 0%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.game-box1 .desc .star span,
.h5-play .star span {
    color: #FDFFC7;
    font-size: 16px;
    line-height: 20px;
    padding-left: 12px;
}

.game-box1 .desc .head {
    color: #FFF;
    font-family: Nunito;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 20px;
    padding-bottom: 8px;
    /* 125% */
}

.game-box1 .desc .text-p {
    color: #FFF;
    font-family: Nunito;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    max-height: 72px;
    overflow: auto;
    padding-right: 12px;
    /* 150% */
}

.game-box1 .desc .text-p::-webkit-scrollbar {
    background-color: #683338;
    width: 6px;
}

.game-box1 .desc .text-p::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: #FDFFC7;
}

.play-game {
    aspect-ratio: 1/0.8;
    position: relative;
    border-radius: 24px;
    margin-bottom: 24px;
    margin-left: 12px;
    margin-right: 12px;
    background: #4D171C;
    box-shadow: 0 1.75px 3px 0 rgba(255, 0, 0, 0.70);
}

.play-game .top {
    height: calc(100% - 60px);
    border-radius: 24px 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}


.play-game .top .top__shading {
    width: auto;
    border-radius: 24px 24px 0 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
}

#gameIframe {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 50%;
    top: 0px;
    z-index: 9;
}

.playmain .dt-play {
    padding: 28px 12px 0;
    position: relative;
}


.play-game .top .bg {
    width: 172px;
    height: 142px;
    border-radius: 12px;
    background: #D9D9D9;
    margin: 0 auto 20px;
}

.play-game .top button {
    cursor: pointer;
    width: max-content;
    padding: 12px 96px;
    display: flex;
    gap: 12px;
    color: #FFF;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(0deg, #E57C2E 0%, #E54545 51.8%);
    box-shadow: 1px -1px 5px 0 rgba(255, 255, 255, 0.40) inset, -1px -1px 5px 0 rgba(255, 255, 255, 0.40) inset, -2px -2px 5px 0 rgba(255, 255, 255, 0.40) inset, 2px -2px 5px 0 rgba(255, 255, 255, 0.40) inset;
    /* 120% */
}

.play-game .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 32px;
    border-radius: 0 0 21px 21px;
    background: linear-gradient(83deg, #D76C5B 0.15%, #CC403D 99.85%);
}

.play-game .bottom p {
    font-size: 20px;
    font-style: normal;
    font-weight: 800;
    line-height: 24px;
    color: #FFF;
}

.play-game .bottom .botton-full {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.play-game .bottom .botton-full i {
    color: #fff;
    font-size: 24px;
}

.dt-play,
.dt-game {
    width: 100%;
}

.playmain .catename {
    top: 0;
}

.h5-play.desc {
    display: none;
}

@media (max-width:1200px) {
    .g3 a {
        width: 50%;
    }
}

@media (max-width:992px) {
    .game-box1 .desc {
        padding: 24px;
    }
}

@media (max-width:768px) {
    .game-box1 {
        padding: 0 6px;
        width: 100%;
    }

    .game-box2 {
        width: 100%;
        order: -1;
        display: flex;
        flex-wrap: wrap;
        padding: 0 6px 12px;
    }

    .game-box2 a {
        width: 25%;
    }

    .dt-play {
        display: none;
    }

    .game-box1 .desc {
        border: none;
        background: transparent;
        padding: 0;
        margin-left: 6px;
        margin-right: 6px;
    }

    .game-box1 .desc .catename,
    .game-box1 .desc h2,
    .game-box1 .desc .star {
        display: none;
    }

    .game-box1 .desc .head {
        font-size: 20px;
    }

    .h5-play.desc {
        display: flex;
        flex-direction: column;
        gap: 12px;
        order: -2;
        padding: 24px;
        border-radius: 24px;
        border: 4px solid #683338;
        background: #4D171C;
        margin: 0 6px;
    }

    .h5-play.desc .catename {
        display: block;
        color: #FDFFC7;
        text-align: right;
        text-transform: capitalize;
    }

    .h5-play.desc .catename i {
        font-size: 14px;
        padding-left: 12px
    }

    .h5-play.desc .cover {
        width: 172px;
        height: 142px;
        margin: auto;
    }

    .h5-play.desc .title {
        display: block;
        text-align: center;
        font-size: 20px;
        line-height: 24px;
    }

    .h5-play.desc .star {
        display: block;
        text-align: center;
    }

    .h5-play.desc .playbtn {
        font-size: 20px;
        font-weight: 700;
        line-height: 24px;
        width: max-content;
        margin: auto;
        padding: 12px 96px;
        border-radius: 12px;
        background: linear-gradient(0deg, #E57C2E 0%, #E54545 51.8%);
        box-shadow: 1px -1px 5px 0 rgba(255, 255, 255, 0.40) inset, -1px -1px 5px 0 rgba(255, 255, 255, 0.40) inset, -2px -2px 5px 0 rgba(255, 255, 255, 0.40) inset, 2px -2px 5px 0 rgba(255, 255, 255, 0.40) inset;
    }


    .game-box2 a {
        position: relative;
    }

    .game-box2 a:hover:after {
        content: '';
        position: absolute;
        width: calc(100% - 12px);
        height: calc(100% - 12px);
        top: 6px;
        left: 6px;
        background: #00000090;
        z-index: 99;
        border-radius: 12px;
    }

    .game-box2 a h2 {
        position: absolute;
        margin: 0 10px;
        top: 40%;
        left: 0;
        transform: translateY(-40%);
        opacity: 0;
        -webkit-line-clamp: 2;
    }

    .game-box2 a .star {
        position: absolute;
        top: 75%;
        transform: translateY(-75%);
        margin: 0 10px;
        color: #FDFFC7;
        opacity: 0;
       left: 0;
    }

    .game-box2 a:hover h2,
    .game-box2 a:hover .star {
        opacity: 1;
        z-index: 999;
    }
    .play-game{
        aspect-ratio: 1 / 1;
    }
}

@media (max-width:550px) {
    main {
        padding: 0px 0 6px;
    }

    .game-box2 {
        padding: 0 5px 0px;
    }

    .game-box2 a {
        padding: 5px;
    }

    .game-box2 a:hover:after {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        top: 5px;
        left: 5px;
        border-radius: 8px;
    }

    .game-box2 a h2 {
        font-size: 12px;
        line-height: 16px;
    }
.game-box2 a img {
    aspect-ratio: 1 / 0.8;
}
    .game-box2 a .star {
        top: 85%;
        transform: translateY(-85%);
        margin: 0 8px;
    }

    .game-box2 a .star i {
        font-size: 12px;
    }

    .game-box2 a .star span {
        font-size: 12px;
        line-height: 14px;
    }

    .h5-play.desc {
        padding: 16px;
        border-radius: 16px;
        border: 2px solid #683338;
        background: #4D171C;
        gap: 8px;
        margin: 5px 5px 10px;
    }

    .h5-play.desc .cover {
        width: 136px;
        height: 112px;
        border-radius: 12px;
    }

    .h5-play.desc .title {
        font-size: 16px;
        line-height: 20px;
    }

    .h5-play .star i {
        font-size: 14px !important;
    }

    .h5-play .star span {
        font-size: 14px !important;
        line-height: 16px !important;
    }

    .h5-play.desc .playbtn {
        padding: 8px 96px;
        border-radius: 12px;
        font-size: 16px;
        line-height: 20px;
    }
    .game-box1 .desc .text-p{
        font-size: 14px;
        line-height: 22px;
        max-height: 88px;
    }
    .game-box1 .desc .head{
        font-size: 16px;
        line-height: 20px;
    }
    .g3 .flex{
        padding: 0;
    }
    .game-box1 {
        padding: 0 5px;
    }

    .g3 .heading{
        padding-left: 5px;
        padding-bottom: 5px;
    }
    .game-box1 .desc{
        margin-bottom: 10px;
    }
    .game-box1 .desc {
        margin-left: 5px;
        margin-right: 5px;
    }
    .play-game {
        aspect-ratio: 1 / 1.5;
        margin-left: 5px;
        margin-right: 5px;
        margin-top: 10px;
        margin-bottom: 10px;
        border-radius: 12px;
    }
    #gameIframe{
        max-width: 100%;
    }
    .play-game .bottom{
        padding: 0 12px;
        border-radius: 0 0 12px 12px;
    }
    .play-game .bottom p {
        font-size: 16px;
        line-height: 20px;
    }



}