* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    width: 100%;
    height: 100%
}

img {
    display: block
}

body {
    width: 100%;
    min-height: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    background: linear-gradient(180deg, #80DDD8 0%, #1EC9BD 100%);
    background-size: 100% 100vh;
    background-position: center;
    background-attachment: fixed;
    counter-reset: num;
    position: relative;
    padding-bottom: 50px;
    font-family: -apple-system, BlinkMacSystemFont, segoe ui, Roboto, helvetica neue, Arial, noto sans, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol, noto color emoji
}

a {
    text-decoration: none
}

ul,
ol {
    list-style: none
}

@font-face {
    font-family: iconfont;
    src: url("../iconfont/iconfont-1.woff") format("woff"), url("../iconfont/iconfont-1.ttf") format("truetype")
}

.iconfont {
    font-family: iconfont !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: .2px;
    -moz-osx-font-smoothing: grayscale
}

header {
    height: 50px;
    background: linear-gradient(180deg, #182A3D 0%, #37485E 100%);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .3);
    display: flex;
    align-items: center;
    justify-content: center
}

header a img {
    display: block;
    height: 42px
}

.desc {
    width: calc(100% - 30px);
    margin: 10px auto 20px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, .2);
    border-radius: 20px;
    border: 3px solid #fff;
    padding: 15px
}

.desc .tag {
    border-bottom: 1px solid rgba(22, 42, 63, .2);
    padding-bottom: 10px
}

.desc .tag h2 {
    font-size: 16px;
    font-weight: 600;
    color: #172a3e;
    margin-bottom: 10px;
    text-transform: uppercase
}

.desc .tag nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: calc(100% + 9px)
}

.desc .tag nav span {
    margin-right: 9px;
    margin-bottom: 10px;
    height: 24px;
    border: 1px solid #a7cbd3;
    border-radius: 13px;
    line-height: 22px;
    padding: 0 10px;
    font-size: 12px;
    color: #5f7a99
}

.desc .desc_box {
    padding-top: 20px
}

.desc .desc_box h2 {
    font-size: 16px;
    font-weight: 600;
    color: #172a3e;
    margin-bottom: 10px;
    text-transform: uppercase
}

.desc .desc_box #des {
    max-height: 15em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.desc .desc_box #des.active {
    max-height: initial
}

.desc .desc_box #des p {
    font-size: 16px !important;
    color: #607a98 !important;
    line-height: 1.5em !important;
    margin: 0 !important;
    padding: 0 !important
}

.desc .desc_box a {
    width: 200px;
    height: 40px;
    background: transparent;
    border-radius: 20px;
    border: 1px solid #a7cbd3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #5f7a99;
    font-weight: 600;
    margin: 10px auto 0
}

.desc .desc_box a::before {
    content: "SHOW MORE"
}

.desc .desc_box a.active::before {
    content: "SHOW LESS"
}

.game_base {
    width: calc(100% - 30px);
    margin: 10px auto 0;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, .2);
    border-radius: 20px;
    border: 3px solid #fff;
    padding: 10px;
    display: flex;
    align-items: center
}

.game_base .thum {
    width: 68px;
    height: 68px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 20px
}

.game_base .thum img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

.game_base h1 {
    font-size: 18px;
    font-weight: 600;
    color: #30455d
}

.play {
    display: block;
    width: calc(100% - 30px);
    height: 40px;
    background: #fff;
    border-radius: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    font-size: 18px;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, .2);
}

.category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 15px;
}

.category li {
    width: calc(50% - 5px)
}

.category li:nth-child(n+3) {
    margin-top: 16px
}

.category li a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, .2);
    border-radius: 21px;
    padding-left: 16px;
    font-size: 16px;
    color: #fff;
    font-weight: 600
}

.category li a .thum {
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 6px;
    margin-right: 8px
}

.category li a .thum img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover
}

.category details {
    display: none;
}

.category_desc {
    margin: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
}

.ad {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 10px 0
}

.ad::before {
    content: "Advertisement";
    font-size: 12px;
    color: #fff;
    line-height: 20px
}

#app {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px)
}

#app iframe {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 1px;
    min-width: 100%;
    height: 1px;
    min-height: 100%;
    border: 0;
    z-index: 1;
    overflow: hidden
}

#app .more {
    position: absolute;
    width: 44px;
    height: 44px;
    background: linear-gradient(180deg, #FF9C6A 0%, #FF5D00 100%);
    box-shadow: 0 6px 2px 0 rgba(0, 0, 0, .2);
    border-radius: 22px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    left: 10px;
    bottom: 30px
}

#app .more .iconfont {
    color: #fff;
    font-size: 24px
}

#mask_box {
    position: fixed;
    width: 100%;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 19999;
    background-color: rgba(0, 0, 0, .5);
    overflow: hidden;
    display: none
}

#mask_box.active {
    display: block
}

#mask_box .mask_main {
    width: 130px;
    height: 100%;
    background: #fff linear-gradient(180deg, #80DDD8 0%, #1EC9BD 100%);
    border: 1px solid #979797;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: 15px
}

#mask_box .mask_main>a {
    width: 100px;
    height: 70px;
    background: linear-gradient(180deg, #FF9C6A 0%, #FF5D00 100%);
    box-shadow: 0 3px 2px 0 rgba(0, 0, 0, .2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px
}

#mask_box .mask_main>a .iconfont {
    font-weight: 400;
    font-size: 26px;
    margin-bottom: 4px
}

#mask_box .mask_main .mask_games {
    height: calc(100% - 80px);
    width: 100%;
    overflow-y: scroll
}

#mask_box .mask_main .mask_games::-webkit-scrollbar {
    margin-right: 10px;
    width: 0;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: 0 0
}

#mask_box .mask_main .mask_games::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: 0 0
}

#mask_box .mask_main .mask_games ul {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-bottom: 20px
}

#mask_box .mask_main .mask_games ul li {
    width: 100px;
    height: 100px
}

#mask_box .mask_main .mask_games ul li+li {
    margin-top: 10px
}

#mask_box .mask_main .mask_games ul li a {
    display: block;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 10px 0 #167c79;
    border-radius: 24px;
    border: 2px solid #fff;
    overflow: hidden
}

#mask_box .mask_main .mask_games ul li a img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover
}

.games {
    display: grid;
    gap: 12px 12px;
    padding: 5px 15px 30px;
    grid-template-columns: repeat(auto-fill, calc((100% - 24px)/3));
    grid-auto-flow: row dense
}

.games details {
    display: none;
}

.games li {
    height: 0;
    padding-bottom: 100%;
    position: relative
}

.games li:nth-child(12n-8),
.games li:nth-child(12n-1) {
    grid-column-start: span 2;
    grid-row-start: span 2
}

.games li a {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
    border: 2px solid #fff;
    box-shadow: 0 4px 10px 0 #167c79
}

.games li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.games li a img:hover {
    transform: scale(1.1);
}

.games.history_games {
    padding-top: 15px
}

.games.history_games li:nth-child(12n-8),
.games.history_games li:nth-child(12n-1) {
    grid-column-start: initial;
    grid-row-start: initial
}

#no_history {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 50px
}

#no_history img {
    width: 150px;
    margin-bottom: 30px
}

#no_history p {
    font-size: 16px;
    color: #fff
}

.category_games {
    width: calc(100% - 30px);
    margin: 10px auto 20px;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, .2);
    border-radius: 20px;
    border: 3px solid #fff
}
.category_games details {
    display: none;
}

.category_games h1 {
    width: calc(100% - 40px);
    background: linear-gradient(180deg, #FF9C6A 0%, #FF5D00 100%);
    box-shadow: 0 6px 2px 0 rgba(0, 0, 0, .2);
    border-radius: 0 0 28px 28px;
    border: 3px solid #fff;
    height: 58px;
    font-size: 24px;
    color: #fff;
    font-weight: 600;
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding-bottom: 5px
}

.category_games>ul {
    display: grid;
    gap: 10px 10px;
    padding: 0 15px 20px;
    grid-template-columns: repeat(auto-fill, calc((100% - 20px)/3));
    grid-auto-flow: row dense
}

.category_games>ul li {
    height: 0;
    padding-bottom: 100%;
    position: relative
}

.category_games>ul li a {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 10px 0 #64b4b2
}

.category_games>ul li a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center
}

footer {
    background: #fff linear-gradient(180deg, #182A3D 0%, #37485E 100%);
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 999
}

footer nav {
    width: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch
}

footer nav a {
    width: 50%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 12px;
    color: #fff
}

footer nav a.active {
    background: #fff linear-gradient(180deg, #FF9C6A 0%, #FF5D00 100%)
}

footer nav a .iconfont {
    font-size: 20px
}

.privacy {
    width: calc(100% - 30px);
    margin: 15px auto;
    background: rgba(255, 255, 255, .6);
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, .2);
    border-radius: 20px;
    border: 3px solid #fff;
    padding: 20px 15px
}

.privacy h1 {
    font-size: 20px;
    color: #172a3e;
    font-weight: 500;
    margin-bottom: 10px
}

.privacy h3 {
    margin: 24px 0 12px 0;
}

.privacy .privacy_box p {
    font-size: 16px !important;
    color: #607a98 !important;
    line-height: 1.5em !important
}

.privacy .privacy_box p+p {
    margin-top: 15px !important
}

.about_nav {
    padding: 20px 15px
}

.about_nav a {
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, .1);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px
}

.about_nav a+a {
    margin-top: 16px
}

.about_nav a .l {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600
}

.about_nav a .l .iconfont {
    font-weight: 400;
    margin-right: 8px;
    font-size: 24px
}

.about_nav a .layui-icon {
    color: #fff;
    font-size: 16px
}

.bottom-nav-bar {
    display: flex;
    gap: 10px 24px;
    justify-items: center;
    justify-content: center;
    padding: 8px 0 24px;
    color: #fff;
    flex-wrap: wrap;
}

.bottom-nav-bar .copyright {
    width: 100%;
    flex-shrink: 1;
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.bottom-nav-bar a {
    color: #fff;
}

.rate {
    position: absolute;
    bottom: 8px;
    left: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #2a2a2f78;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    padding: 4px 11px;
    font-size: 12px;
    color: #fff;
    font-weight: bolder;
}
.games li a .rate img {
    height: 13px !important;
    width: auto !important;
}
.type-title {
    font-size: 22px;
    font-weight: 600;
    color: #fff;
    padding: 0 24px;
    border-left: 4px solid #fff;
    margin: 0 12px 12px 12px
}

.back-icon {
    text-decoration: none;
    border-radius: 50%;
    position: fixed;
    top: 50px;
    z-index: 999999;
    background-color: aqua;
    width: 47px;
    height: 47px;
    text-align: center;
    line-height: 38px;
}

.logo-a {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.site-name {
    font-size: 24px;
    font-weight: bold;
    color: white;
    margin-left: 14px;
    text-transform: uppercase;
}