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

a {
    text-decoration: none;
    /* 去掉下划线 */
    color: inherit;
    /* 使用父元素的颜色 */
}

/* 全局链接悬停由 Wislume 主题统一定义，见文件末尾 */

@font-face {
    font-family: 'Recky';
    src: url('../RECKYREGULAR-BWVXL.TTF');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.bg_green {
    background: linear-gradient(to right, #45af18, #27441f);
}

.bc_blue {
    background: linear-gradient(to right, #6088fe, #182e72);
}

.bc_purple {
    background: linear-gradient(to right, #e101fb, #642559);
}

.bc_red {
    background: linear-gradient(to right, #ff460d, #590005);
}

.bc_orange {
    background: linear-gradient(to right, #ffbd6b, #912c00);
}

.bc_pink {
    background: linear-gradient(to right, #ffaeae, #e70067);

}

html {
    font-size: 37.5px;
    /* 37.5px for rem calculations */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.2;
    /* background: #f5f5f5; */
}

.app {
    background: linear-gradient(to bottom, #bcf897, #09c17a);
    background-attachment: fixed;
    color: var(--denim-blue);
    min-width: 314px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.f-c-mm {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.f-r-mm {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
}

.grid-container {
    display: grid;
    width: 90%;
    grid-template-columns: repeat(16, 1fr);
    /* 定义17列，列宽为相同的fr单位 */
    grid-auto-rows: 1fr;
    /* 行高和列宽保持一致 */
    gap: 10px;
    /* 网格之间的间距 */
    grid-auto-flow: row dense;
}

.grid-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    aspect-ratio: 1 / 1;
    /* 保证每个格子都是正方形 */
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5%;
}

/* 定义不同网格的大小 */
.grid-item-1 {
    grid-column: span 1;
    /* 占据2列 */
    grid-row: span 1;
    /* 占据2行 */
}

.grid-item-2 {
    grid-column: span 2;
    /* 占据1列 */
    grid-row: span 2;
    /* 占据1行 */
}

.grid-item-3 {
    grid-column: span 3;
    /* 占据3列 */
    grid-row: span 3;
    /* 占据3行 */
}

.main {
    flex: 1;
    margin: 20px 0px;
}

.game-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 使图片填充整个容器，可能会裁剪图片以适应容器 */
    object-position: center;
    /* 图片在容器中的位置，可以调整为其他值如 top left 等 */
    border-radius: 5%;
}





.category img {
    width: .3rem;
    height: .3rem;
}

.logo img {
    /* width: 100%; */
    height: 0.65rem;
}

.search img {
    display: none;
    width: .36rem;
    height: .36rem;
}

.search input {
    padding: 0.2rem 0.4rem;
    border: none;
    border-radius: 0.2rem;
    font-size: 0.4rem;
    /* 15px */
}

.banner-ad {
    /* margin: .2rem 0; */
    width: 100vw;
    min-height: 200px;
    text-align: center;
    color: #b9b9b9;
    /* background-color: #cccccc; */
    font-size: 0.2rem;
}

.banner-ad-pc {
    margin: .2rem 0;
    width: 100vw;
    text-align: center;
    color: #b9b9b9;
    min-height: 3rem;
    /* background-color: #cccccc; */
    font-size: 0.2rem;
}

.detail-banner-ad {
    color: #b9b9b9;
    text-align: center;
    font-size: 0.2rem;
}

.game_title {
    width: 100%;
    height: .45rem;
    font-size: .26rem;
    font-family: Recky;
    font-weight: 400;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgb(255, 66, 52, 0.7), rgb(255, 66, 52, 0));
}

.game_title img {
    width: .24rem;
    height: .26rem;
    margin-left: 0.1rem;
}

.game_title_item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game_title_item img {
    width: .78rem;
    height: .16rem;
    margin-right: .1rem;
}

.pink {
    background: linear-gradient(to right, rgb(241, 75, 180, 0.7), rgb(241, 75, 180, 0));
}

.purple {
    background: linear-gradient(to right, rgb(137, 16, 191, 0.7), rgb(137, 16, 191, 0));
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.section-title {
    font-size: 0.8rem;
    /* 30px */
}

.all-link {
    font-size: 0.4rem;
    /* 15px */
    color: #007bff;
    text-decoration: none;
}

.game-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 10%;
}





.game-item h3 {
    font-size: 0.24rem;
    white-space: nowrap;
    overflow: hidden;
    /* font-family: Recky; */
    /* 18px */
}


.hot_game {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 75%;
}

.hot_game_item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    width: 45%;
    margin: .1rem 0;
    padding: .2rem;
    border-radius: 0.15rem;

}

.game-description {
    flex: 1;
    font-size: .2rem;
    height: 1rem;
    overflow: hidden;
    padding: 0 0.1rem;
    text-align: left;
    color: #FFFFFF;
    font-weight: bold;
}

.enter-button {
    padding: .15rem .2rem;
    font-size: .24rem;
    background: #ffa500;
    border: none;
    border-radius: 0.1rem;
    cursor: pointer;
    color: #FFFFFF;
    font-weight: bold;
}

.footer {
    /* background: #333; */
    background: #006f42;
    color: #fff;
    text-align: center;
    padding: 0.2rem;
    font-size: 0.24rem;
}

.footer_content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.foot_pd {
    padding: .1rem .4rem;
    text-decoration: underline;
}

.game-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game-header {
    display: flex;
    align-items: flex-start;
    padding: .2rem;
    /* margin-bottom: 2rem; */
}

.home-game-icon {
    width: 2rem;
    height: 2rem;
    margin-right: .2rem;
    border-radius: 0.15rem;
}

.game-icon {
    width: 2rem;
    height: 2rem;
    margin-right: .2rem;
    border-radius: 0.15rem;
}

.game-info {
    flex: 1;
}

.detail-title {
    font-size: .42rem;
    margin: 0;
    margin-bottom: 0.1rem;
    color: #696969;
}

.detail-description {
    color: #A5A5A5;
    font-size: .18rem;
    margin-bottom: .2rem;
    min-height: .8rem;
    height: .8rem;
    overflow: hidden;
}

.game-tags {
    display: flex;
    flex-wrap: wrap;
    height: .52rem;
    overflow: hidden;
}

.tag {
    padding: 0.05rem .1rem;
    margin-right: 0.2rem;
    font-size: .2rem;
    margin-bottom: 0.5rem;
    border: 2px dashed #C5C5C5;
    color: #828080;
}

.detail-img {
    width: 100%;
    padding: .1rem;
}


.game-image img {
    width: 100%;
    display: block;
    /* max-height: 4.8rem; */
}

.game-stats {
    /* margin: 0 0.1rem; */
    background: #EBEBEB;
    display: flex;
    justify-content: start;
    font-size: .25rem;
    height: .6rem;
    align-items: center;
    color: #696969;
}

.like-percentage {
    margin: 0 .2rem;
}

.votes {
    margin-left: 1.2rem;
}

.play_btn {
    width: 100%;
    display: flex;
    justify-content: center;
}

.play-button {
    display: block;
    width: 97%;
    padding: .18rem .31rem;
    font-size: .38rem;
    margin: 0.1rem .1rem .1rem .1rem;
    background: #FF8076;
    color: #FFFFFF;
    border: none;
    /* border-radius: 0.5rem; */
    cursor: pointer;
    text-align: center;
}

.pcPlay {
    padding: 0;
    margin: 0 auto;
    background-color: #000;
    text-align: center;
    position: relative;
    background: #000;
    height: 12rem;
    width: 100%;
}

.play_game {
    width: 100%;
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    background-color: #cccccc;
}

.left_back {
    width: 1.3rem;
    height: .94rem;
    background-color: rgba(255, 255, 255, 0.3);
    position: fixed;
    border-radius: 0 30% 30% 0;
    top: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
}

.left_back_image {
    width: .9rem;
    height: .9rem;
    margin-right: -10%;
    border-radius: 50%;
}

.overflow {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -999;
    width: 100%;
    height: 100%;
    opacity: 0;
    background-color: rgba(0, 0, 0, .7);
}

.ads-close {
    display: flex;
    justify-content: right;
    padding-right: 3.06122vw;
    color: #dbdbdb;
    font-size: .8rem;
    width: 8%;
    float: right;
}

.dialog {
    z-index: 2000;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 127.55102vw !important;
    overflow: hidden;
    font-size: 4.08163vw;
    background-color: #fff;
    color: #ccc;
    border-radius: 2vw;
    transform: translate3d(-50%, -50%, 0);
    backface-visibility: hidden;
    transition: .3s;
    transition-property: transform, opacity;
}


/* Responsive Styles – legacy game detail rules moved to end of file */
@media screen and (min-width: 1260px) {
    .game_title {
        width: 75%;
    }

    .play_game {
        display: none;
    }

    .detail-banner-ad-pc {
        width: 50%;
        margin: .1rem 0;
        font-size: .4rem;
        text-align: center;
    }

    .detail-banner-ad {
        display: none;
    }

    .dialog {
        z-index: 2000;
        position: fixed;
        top: 50%;
        left: 50%;
        width: 40%;
        height: 30vw !important;
        overflow: hidden;
        font-size: 4.08163vw;
        background-color: #fff;
        border-radius: 2vw;
        transform: translate3d(-50%, -50%, 0);
        backface-visibility: hidden;
        transition: .3s;
        transition-property: transform, opacity;
    }

    .ads-close {
        padding-right: 1.5vw;
        font-size: .8rem;
    }
}

.friend_link {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 15px;
    /* 设置链接之间的间距 */
    /* justify-content: space-between; */
    margin-bottom: 10px;
}

.friend_link a {
    flex: 0 0 29%;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
}

@media screen and (max-width: 1260px) {
    .home-page .grid-container {
        width: 92%;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }

    .home-page .grid-item-1:nth-child(6n+1),
    .home-page .grid-item-1:nth-child(6n+4) {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* 600px */
    .game-list {
        padding: 0 1%;
    }

    .hot_game {
        width: 100%;
        flex-direction: column;
        align-items: center;
    }

    .hot_game_item {
        width: 95%;
        flex-direction: row;
        align-items: center;
    }

    .game-icon {
        margin-left: 0.1rem;
    }

    .game-description {
        margin-right: 0;
    }

    .pcPlay {
        display: none;
    }

    .game-header-ad {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .banner-ad-pc {
        display: none;
    }

    .detail-banner-ad-pc {
        display: none;
    }
}

/* ===== Wislume Games – site theme ===== */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
    --wis-primary: #009cff;
    --wis-primary-dark: #007acc;
    --wis-accent: #ff8c2a;
    --wis-accent-dark: #e67300;
    --wis-bg: #e4f3ff;
    --wis-surface: #ffffff;
    --wis-text: #0a2540;
    --wis-text-muted: #5a7a94;
    --wis-footer-bg: #0a2540;
    --wis-radius: 16px;
    --wis-radius-sm: 10px;
    --wis-shadow: 0 4px 16px rgba(10, 37, 64, 0.08);
    --wis-shadow-hover: 0 12px 32px rgba(10, 37, 64, 0.16);
    --site-max-width: 1240px;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.home-page.app,
#app.home-page {
    background: linear-gradient(165deg, #c5e8ff 0%, #eef6ff 45%, #f8fbff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(10, 37, 64, 0.06);
    box-shadow: 0 1px 8px rgba(10, 37, 64, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    height: 38px;
    width: auto;
    display: block;
}

.site-logo:hover img {
    opacity: 0.88;
}

.site-logo-text {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--wis-accent) 0%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-logo-text:hover {
    opacity: 0.85;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    color: var(--wis-text-muted);
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.site-nav a:hover {
    background: #e8f4ff;
    color: var(--wis-primary);
}

/* Site cover banner with logo background */
.site-cover {
    background:
        linear-gradient(180deg, rgba(10, 37, 64, 0.45) 0%, rgba(10, 37, 64, 0.78) 100%),
        url('/assets/img/logo.png') center center / cover no-repeat;
    margin-bottom: 4px;
}

.site-cover--compact {
    margin-bottom: 0;
    padding-bottom: 8px;
}

.site-cover .site-header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
    position: relative;
}

.site-cover .site-logo-text {
    background: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.site-cover .site-logo-text:hover {
    opacity: 0.9;
}

.site-cover .site-nav a {
    color: rgba(255, 255, 255, 0.9);
}

.site-cover .site-nav a:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.site-cover .site-hero {
    max-width: none;
    padding: 36px 20px 40px;
}

.site-cover .site-hero h1 {
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.site-cover .site-hero p {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.site-cover .site-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.site-hero {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 28px 20px 12px;
    text-align: center;
}

.site-hero h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--wis-text);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.site-hero p {
    font-size: 15px;
    color: var(--wis-text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

.site-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.site-tags span {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--wis-primary);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 156, 255, 0.15);
    border-radius: 999px;
}

.games-section-head {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 8px 20px 16px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.games-section-head h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--wis-text);
}

.games-count {
    font-size: 13px;
    font-weight: 700;
    color: var(--wis-text-muted);
    background: rgba(255, 255, 255, 0.7);
    padding: 4px 12px;
    border-radius: 999px;
}

.home-page .main {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 0 36px;
}

.home-page .grid-container {
    width: calc(100% - 40px);
    margin: 0 auto;
}

.home-page .grid-item {
    background: var(--wis-surface);
    border-radius: var(--wis-radius);
    box-shadow: var(--wis-shadow);
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    border: 2px solid transparent;
}

.home-page .grid-item:hover {
    transform: translateY(-5px) scale(1.04);
    box-shadow: var(--wis-shadow-hover);
    border-color: rgba(0, 156, 255, 0.2);
}

.home-page .game-item img {
    border-radius: calc(var(--wis-radius) - 2px);
}

.site-about {
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 20px 48px;
}

.site-about-inner {
    background: var(--wis-surface);
    border-radius: 20px;
    box-shadow: var(--wis-shadow);
    padding: 32px 28px;
    border: 1px solid rgba(10, 37, 64, 0.05);
}

.site-about h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--wis-text);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f4ff;
}

.site-about h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--wis-text);
    margin: 22px 0 8px;
}

.site-about p {
    font-size: 14px;
    line-height: 1.75;
    color: var(--wis-text-muted);
    margin-bottom: 8px;
}

.site-about p:last-child {
    margin-bottom: 0;
}

.site-about-lead {
    font-size: 15px !important;
    color: var(--wis-text) !important;
    line-height: 1.7 !important;
}

.site-about a {
    color: var(--wis-primary);
    font-weight: 700;
}

.site-about a:hover {
    color: var(--wis-primary-dark);
    text-decoration: underline;
}

.footer {
    background: var(--wis-footer-bg);
    color: rgba(255, 255, 255, 0.9);
    padding: 32px 20px 28px;
    margin-top: auto;
    font-size: 14px;
}

.footer-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
}

.footer_content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.footer-divider,
.footer_content > div:not(a) {
    color: rgba(255, 255, 255, 0.25);
    padding: 0 6px;
    user-select: none;
}

.footer_content a:hover {
    color: var(--wis-accent);
}

.foot_pd {
    text-decoration: none;
    font-weight: 700;
    padding: 4px 8px;
    display: inline-block;
}

.footer-company {
    margin: 20px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.footer-company p {
    font-size: 12px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.5);
    max-width: 720px;
    margin: 0 auto;
}

.content,
.page-content {
    flex: 1;
    width: calc(100% - 40px);
    max-width: 840px;
    margin: 16px auto 32px;
    padding: 28px 24px;
    background: var(--wis-surface);
    border-radius: 20px;
    box-shadow: var(--wis-shadow);
    border: 1px solid rgba(10, 37, 64, 0.05);
}

.app:not(.home-page),
#app:not(.home-page) {
    background: linear-gradient(165deg, #c5e8ff 0%, #eef6ff 45%, #f8fbff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app:not(.home-page) > .site-cover,
#app:not(.home-page) > .site-cover {
    width: 100%;
    align-self: stretch;
}

.app:not(.home-page) > .footer,
#app:not(.home-page) > .footer {
    width: 100%;
    align-self: stretch;
}

.app:not(.home-page) .content,
#app:not(.home-page) .content {
    align-self: center;
}

/* About / Privacy / Contact page typography */
.app:not(.home-page) .content > div:first-child {
    font-size: 24px !important;
    font-weight: 800;
    color: var(--wis-text) !important;
    padding: 0 0 16px !important;
    border-bottom: 2px solid #e8f4ff;
    margin-bottom: 16px !important;
    line-height: 1.3 !important;
}

.app:not(.home-page) .content > div:not(:first-child) {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: var(--wis-text-muted) !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.app:not(.home-page) .content p,
.app:not(.home-page) .content li {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 12px;
    color: var(--wis-text-muted);
}

.app:not(.home-page) .content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--wis-text);
    margin: 24px 0 12px;
}

.app:not(.home-page) .content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--wis-text);
    margin: 20px 0 10px;
}

.app:not(.home-page) .content ol,
.app:not(.home-page) .content ul {
    padding-left: 24px;
    margin-bottom: 16px;
}

.page-content .page-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--wis-text);
    margin-bottom: 16px;
}

.page-content .page-body {
    font-size: 15px;
    line-height: 1.8;
    color: #474747;
}

.game-detail {
    flex: 1;
    width: 100%;
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 16px 20px 32px;
}

.game-header {
    background: var(--wis-surface);
    border-radius: var(--wis-radius);
    box-shadow: var(--wis-shadow);
    margin-bottom: 12px;
    border: 1px solid rgba(10, 37, 64, 0.05);
}

.detail-img {
    background: var(--wis-surface);
    border-radius: var(--wis-radius);
    box-shadow: var(--wis-shadow);
    overflow: hidden;
    border: 1px solid rgba(10, 37, 64, 0.05);
}

.play-button {
    background: linear-gradient(135deg, var(--wis-accent) 0%, #ffb347 100%);
    border-radius: var(--wis-radius-sm);
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(255, 140, 42, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 42, 0.45);
}

.detail-title {
    color: var(--wis-text);
    font-weight: 800;
}

.tag {
    border-color: rgba(0, 156, 255, 0.25);
    border-radius: 999px;
    color: var(--wis-primary);
    font-weight: 600;
}

#app .grid-container .grid-item {
    background: var(--wis-surface);
    border-radius: var(--wis-radius-sm);
    box-shadow: var(--wis-shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#app .grid-container .grid-item:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--wis-shadow-hover);
}

@media screen and (min-width: 1261px) {
    .app:not(.home-page) .content > div:first-child,
    .content > div:first-child {
        font-size: 28px !important;
    }

    .app:not(.home-page) .content,
    .content {
        max-width: 880px;
        padding: 36px 40px;
        margin: 24px auto 40px;
    }

    .app:not(.home-page) .content h3 {
        font-size: 20px;
    }

    .home-page .grid-container {
        width: 100%;
        grid-template-columns: repeat(8, 1fr);
        gap: 16px;
    }

    .home-page .grid-item-1:nth-child(10n+1),
    .home-page .grid-item-1:nth-child(10n+6) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .site-hero {
        padding: 36px 20px 16px;
    }

    .site-cover .site-hero {
        padding: 48px 20px 56px;
    }

    .site-hero h1 {
        font-size: 36px;
    }

    .site-hero p {
        font-size: 17px;
    }

    .games-section-head h2 {
        font-size: 22px;
    }

    .site-about-inner {
        padding: 44px 52px;
    }

    .site-about h2 {
        font-size: 28px;
    }

    .site-about h3 {
        font-size: 18px;
    }

    .site-about p {
        font-size: 15px;
    }

    .site-about-lead {
        font-size: 17px !important;
    }

    .site-logo img {
        height: 44px;
    }

    .site-logo-text {
        font-size: 24px;
    }

    .footer-company p {
        font-size: 13px;
    }

    .game-detail {
        padding: 24px 20px 40px;
    }
}

/* ===== Game detail page layout ===== */
#app .game-detail {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#app .game-header-ad,
#app .detail-img,
#app .play_btn {
    width: 100%;
}

#app .game-header {
    padding: 16px;
}

#app .game-icon {
    width: 72px;
    height: 72px;
    margin-right: 16px;
    border-radius: 12px;
    flex-shrink: 0;
}

#app .detail-title {
    font-size: 22px;
    margin-bottom: 8px;
}

#app .detail-description {
    height: auto;
    min-height: 0;
    overflow: visible;
    line-height: 1.65;
    font-size: 14px;
    color: var(--wis-text-muted);
    margin-bottom: 12px;
}

#app .game-tags {
    height: auto;
    overflow: visible;
    gap: 8px;
}

#app .tag {
    font-size: 12px;
    padding: 4px 10px;
    margin-right: 8px;
    margin-bottom: 4px;
}

#app .play-button {
    width: 100%;
    max-width: 480px;
    margin: 8px auto;
    padding: 14px 24px;
    font-size: 17px;
}

#app .game-stats {
    font-size: 14px;
    height: auto;
    min-height: 44px;
    padding: 10px 14px;
}

#app .game-stats img {
    width: 16px !important;
    height: 16px !important;
}

#app .votes {
    margin-left: 24px;
}

#app .pcPlay {
    height: 280px;
    min-height: 240px;
}

#app .game-header-ad {
    width: 100%;
}

#app .game-detail > .grid-container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 28px;
    border-top: 2px solid rgba(10, 37, 64, 0.08);
    position: relative;
    grid-auto-flow: row dense;
}

#app .game-detail > .grid-container::before {
    content: 'More Games';
    position: absolute;
    top: 0;
    left: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--wis-text);
}

#app .game-detail > .grid-container .grid-item-1 {
    grid-column: span 1;
    grid-row: span 1;
}

@media screen and (min-width: 768px) and (max-width: 1260px) {
    #app .game-detail {
        max-width: 760px;
        padding: 20px 20px 36px;
    }

    #app .game-header {
        padding: 20px;
    }

    #app .game-icon {
        width: 88px;
        height: 88px;
        margin-right: 20px;
        border-radius: 14px;
    }

    #app .detail-title {
        font-size: 26px;
    }

    #app .detail-description {
        font-size: 14px;
        margin-bottom: 14px;
    }

    #app .tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    #app .pcPlay {
        height: 380px;
    }

    #app .game-image img {
        max-height: 380px;
        object-fit: cover;
    }

    #app .play-button {
        width: 100%;
        max-width: 420px;
        margin: 12px auto;
        padding: 14px 20px;
        font-size: 18px;
    }

    #app .game-stats {
        font-size: 14px;
        height: auto;
        padding: 10px 14px;
    }

    #app .game-stats img {
        width: 14px !important;
        height: 14px !important;
    }

    #app .game-detail > .grid-container {
        width: 100%;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-top: 24px;
        padding-top: 32px;
        border-top: 2px solid rgba(10, 37, 64, 0.08);
        position: relative;
    }

    #app .game-detail > .grid-container::before {
        content: 'More Games';
        position: absolute;
        top: 0;
        left: 0;
        font-size: 18px;
        font-weight: 800;
        color: var(--wis-text);
    }
}

@media screen and (min-width: 1261px) {
    #app .game-detail {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 28px 24px 48px;
        align-items: stretch;
    }

    #app .game-header-ad {
        width: 100%;
    }

    #app .game-header {
        width: 100%;
        max-width: 100%;
        padding: 28px 32px;
        align-items: center;
        margin-bottom: 0;
    }

    #app .game-icon {
        width: 120px;
        height: 120px;
        margin-right: 28px;
        border-radius: 18px;
        flex-shrink: 0;
    }

    #app .detail-title {
        font-size: 34px;
        line-height: 1.15;
        margin-bottom: 12px;
    }

    #app .detail-description {
        font-size: 16px;
        color: var(--wis-text-muted);
        margin-bottom: 18px;
    }

    #app .tag {
        font-size: 13px;
        padding: 6px 14px;
        margin-bottom: 6px;
    }

    #app .detail-img {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
        order: 0;
    }

    #app .game-image img {
        width: 100%;
        max-height: none;
        aspect-ratio: 16 / 10;
        object-fit: cover;
    }

    #app .pcPlay {
        height: 520px;
        min-height: 440px;
        border-radius: calc(var(--wis-radius) - 2px);
    }

    #app .play_btn {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 4px;
    }

    #app .play-button {
        width: 100%;
        max-width: 480px;
        margin: 0;
        padding: 18px 28px;
        font-size: 20px;
    }

    #app .game-stats {
        font-size: 15px;
        height: auto;
        min-height: 48px;
        padding: 14px 18px;
        align-items: center;
    }

    #app .game-stats img {
        width: 18px !important;
        height: 18px !important;
    }

    #app .votes {
        margin-left: 32px;
    }

    #app .game-detail > .grid-container {
        width: 100%;
        margin-top: 8px;
        padding-top: 40px;
        border-top: 2px solid rgba(10, 37, 64, 0.08);
        position: relative;
        grid-template-columns: repeat(8, 1fr);
        gap: 14px;
    }

    #app .game-detail > .grid-container::before {
        content: 'More Games';
        position: absolute;
        top: 4px;
        left: 0;
        font-size: 22px;
        font-weight: 800;
        color: var(--wis-text);
    }

    #app .game-detail > .grid-container .grid-item-1:nth-child(8n+1),
    #app .game-detail > .grid-container .grid-item-1:nth-child(8n+5) {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@media screen and (max-width: 767px) {
    #app .game-detail {
        padding: 12px 16px 28px;
    }

    #app .game-header {
        padding: 16px;
    }

    #app .game-icon {
        width: 72px;
        height: 72px;
        border-radius: 12px;
    }

    #app .detail-title {
        font-size: 20px;
    }

    #app .detail-description {
        font-size: 13px;
    }

    #app .tag {
        font-size: 11px;
    }

    #app .play-button {
        font-size: 16px;
        padding: 14px 20px;
    }

    #app .game-stats {
        font-size: 13px;
    }

    #app .game-stats img {
        width: 14px !important;
        height: 14px !important;
    }
}

@media screen and (min-width: 768px) and (max-width: 1260px) {
    .home-page .grid-container {
        width: calc(100% - 40px);
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .home-page .grid-item-1:nth-child(8n+1),
    .home-page .grid-item-1:nth-child(8n+5) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .site-hero h1 {
        font-size: 28px;
    }
}

@media screen and (max-width: 767px) {
    .site-header-inner {
        padding: 12px 16px;
    }

    .site-nav a {
        padding: 6px 12px;
        font-size: 13px;
    }

    .site-hero {
        padding: 20px 16px 8px;
    }

    .site-cover {
        background:
            linear-gradient(180deg, rgba(10, 37, 64, 0.5) 0%, rgba(10, 37, 64, 0.82) 100%),
            url('/assets/img/logo.png') center top / cover no-repeat;
    }

    .site-cover .site-hero {
        padding: 24px 16px 32px;
    }

    .site-hero h1 {
        font-size: 20px;
    }

    .site-tags span {
        font-size: 12px;
        padding: 5px 12px;
    }

    .games-section-head {
        padding: 4px 16px 12px;
    }

    .home-page .grid-container {
        width: calc(100% - 32px);
    }

    .content {
        width: calc(100% - 32px);
        margin: 12px auto 24px;
        padding: 20px 16px;
    }
}