/* ==========================================================================
   freegame7 — layout (header / home / sidebar / footer / detail)
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding-top: var(--safe-top);
}

.header-pc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    gap: 24px;
}

.header-mobile {
    display: none;
    position: relative;
}

.choice-card__top {
    display: none;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #000;
    text-decoration: none;
    flex-shrink: 0;
    min-width: 0;
}

.logo-container:hover {
    color: #000;
}

.logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    flex-shrink: 0;
    line-height: 1;
}

.logo-text {
    font-size: 22px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.logo-badge {
    display: none;
}

.site-nav {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    height: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    height: 100%;
    gap: clamp(32px, 6vw, 120px);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 34px;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-primary);
    font-weight: 700;
}

.nav-link.is-active {
    border-bottom-color: var(--color-primary);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    height: 46px;
    width: 400px;
    max-width: 32vw;
    padding: 3px 3px 3px 0;
    margin-left: clamp(24px, 5vw, 100px);
    flex-shrink: 0;
}

.header-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: none;
    background: transparent;
    color: #000;
    font-size: 16px;
    outline: none;
}

.header-search input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.header-search button,
.search-icon-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #000;
    flex-shrink: 0;
}

.header-search button svg,
.search-icon-btn svg,
.menu-toggle svg {
    width: 22px;
    height: 22px;
}

.menu-toggle,
.search-toggle {
    display: none;
}

.page-body {
    padding: var(--page-offset) 0 50px;
}

.home-layout {
    display: flex;
    gap: 60px;
    align-items: start;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    width: 100%;
    min-width: 0;
}

.home-main {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.hero-block {
    margin-top: 0;
}

.hero-slider {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 30px;
    background: #fff;
    width: 100%;
}

.hero-slider:hover .hero-nav {
    opacity: 1;
}

.hero-slides {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.hero-slide {
    display: none;
}

.hero-slide.is-active {
    display: block;
}

.hero-slide a {
    display: block;
    color: inherit;
}

.hero-slide img {
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    border-radius: 16px;
    background: #eee;
}

.hero-slide__copy {
    display: none;
}

.hero-nav {
    position: absolute;
    top: 50%;
    width: 54px;
    height: 54px;
    opacity: 0;
    z-index: 2;
    color: #000;
    transition: opacity 0.3s;
    display: grid;
    place-items: center;
}

.hero-nav svg {
    width: 54px;
    height: 54px;
}

.hero-nav--prev {
    left: 0;
    transform: translate(-50%, -50%);
}

.hero-nav--next {
    right: 0;
    transform: translate(50%, -50%);
}

.hero-dots {
    display: none;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
}

.hero-dots button {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #eee;
}

.hero-dots button.is-active {
    background: var(--color-primary);
}

.section-block {
    margin-top: 60px;
    scroll-margin-top: calc(var(--page-offset) + 8px);
}

.section-header,
.sub-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    color: #000;
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
}

.section-header h2,
.sub-title h2 {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

.section-more,
.sub-title .more {
    color: #000;
    font-size: 20px;
    font-weight: 400;
    line-height: 36px;
    white-space: nowrap;
}

.section-more:hover,
.sub-title .more:hover {
    color: var(--color-primary);
}

.article-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 40px;
}

.mobile-cat-strip-wrap {
    display: none;
}

.article-chip {
    overflow: hidden;
    width: 100%;
    color: #000;
    transition: transform 0.3s;
}

.article-chip:hover {
    transform: translateY(-10px);
    color: #000;
}

.article-chip .img,
.article-card__img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    object-fit: cover;
    background: #ddd;
}

.article-chip .name,
.article-card__name {
    color: #000;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    margin: 20px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.choice-games {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.choice-card {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 100%;
    padding: 20px 30px 30px;
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background: transparent;
    color: #000;
    transition: transform 0.3s, border-color 0.3s;
}

.choice-card:hover {
    transform: translateY(-10px);
    color: #000;
}

.choice-card__info {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.choice-card__type,
.choice-card .card-tag {
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    background: none;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
}

.choice-card__name,
.choice-card h3 {
    color: #000;
    font-size: 20px;
    font-weight: 500;
    line-height: 34px;
    margin-top: 29px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.choice-card__desc,
.choice-card p {
    display: -webkit-box;
    font-family: "PingFang SC", Roboto, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 19px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin-top: 30px;
    overflow: hidden;
    color: #000;
}

.choice-card img,
.choice-card__img {
    width: 140px;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    margin: 10px 0 0 42px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.side-card {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 52px;
}

.side-card h3,
.side-title {
    color: #000;
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    margin-bottom: 30px;
    padding: 0 30px;
}

.side-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border-soft);
    border-radius: 12px;
    height: 56px;
    margin-bottom: 46px;
    padding: 0 16px 0 30px;
}

.side-search input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #000;
    font-size: 20px;
    outline: none;
    height: 100%;
}

.side-search input::placeholder {
    color: #999;
}

.side-search svg {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.cat-list {
    display: flex;
    flex-direction: column;
}

.cat-chip,
.side-cat {
    display: flex;
    align-items: center;
    padding: 0 30px;
    color: #000;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    background: none;
    border-radius: 0;
    text-transform: none;
}

.cat-chip + .cat-chip,
.side-cat + .side-cat {
    margin-top: 40px;
}

.cat-chip:hover,
.side-cat:hover {
    color: var(--color-primary);
    background: none;
}

.side-cat__icon {
    width: 24px;
    height: 24px;
    margin-right: 20px;
    flex-shrink: 0;
    color: #000;
}

.side-cat.is-hidden {
    display: none;
}

.side-articles .item,
.side-article {
    display: flex;
    align-items: center;
    color: #000;
    transition: transform 0.3s;
}

.side-article + .side-article,
.side-articles .item + .item {
    margin-top: 30px;
}

.side-article:hover {
    transform: translateY(-10px);
    color: #000;
}

.side-article img,
.side-article__img {
    width: 118px;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    margin-right: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd;
}

.side-article .name,
.side-article__name {
    display: -webkit-box;
    flex: 1;
    min-width: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #000;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    overflow: hidden;
}

.qr-box {
    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    background: transparent;
    padding: 10px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.qr-box .qr-left {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    margin-right: 20px;
    min-width: 0;
}

.qr-phone {
    width: 82px;
    height: 82px;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f3f3f3 100%);
    border: 1px solid #eee;
    display: grid;
    place-items: center;
    color: var(--color-primary);
}

.qr-phone svg {
    width: 42px;
    height: 42px;
}

.qr-box .text,
.qr-box p {
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    margin-top: 4px;
    text-align: center;
}

.qr-fake {
    width: 88px;
    height: 88px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    flex-shrink: 0;
}

.qr-fake-inner {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background:
        repeating-linear-gradient(90deg, #111 0 4px, #fff 4px 8px),
        repeating-linear-gradient(#111 0 4px, #fff 4px 8px);
    background-blend-mode: multiply;
}

.site-footer {
    background: #f7f7f7;
    text-align: center;
    margin-top: 0;
    padding: 0;
}

.site-footer .content-box,
.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: var(--container);
    margin: 0 auto;
    padding: 34px 20px 30px;
    color: rgba(0, 0, 0, 0.7);
    font-size: 16px;
    line-height: 19px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: inherit;
    white-space: nowrap;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-links .hr {
    width: 1px;
    height: 14px;
    margin: 0 30px;
    background: rgba(0, 0, 0, 0.2);
}

.footer-copy {
    color: inherit;
    font-size: inherit;
    border: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.site-footer h3,
.site-footer h4,
.site-footer ul,
.site-footer p:not(.footer-copy) {
    display: none;
}

.game-detail-container {
    display: flex;
    gap: 60px;
    align-items: start;
}

.game-detail-container .main-content {
    flex: 1;
    min-width: 0;
}

.game-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.game-header img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 16px;
}

.game-detail-title {
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
}

.game-player-frame {
    width: 100%;
    height: 520px;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.article-content {
    margin-top: 40px;
}

.article-content h2 {
    font-size: 30px;
    font-weight: 500;
    line-height: 36px;
    margin: 40px 0 16px;
    color: #000;
    border: none;
    padding: 0;
}

.article-content p,
.article-content li {
    color: var(--color-text-muted);
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.6;
}

.page-narrow {
    max-width: 840px;
    padding: 40px 20px 60px;
}

.page-narrow h1 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 20px;
}

.page-narrow p {
    color: var(--color-text-muted);
    margin-bottom: 14px;
    font-size: 16px;
}

.poster-1 { background: url("../images/articles/poster1.png") center/cover no-repeat; }
.poster-2 { background: url("../images/articles/poster2.png") center/cover no-repeat; }
.poster-3 { background: url("../images/articles/poster3.png") center/cover no-repeat; }
.poster-4 { background: url("../images/articles/poster4.png") center/cover no-repeat; }
.poster-5 { background: url("../images/articles/poster5.png") center/cover no-repeat; }
.poster-6 { background: url("../images/articles/poster6.png") center/cover no-repeat; }
.poster-7 { background: url("../images/articles/poster7.png") center/cover no-repeat; }
.poster-8 { background: url("../images/articles/poster8.png") center/cover no-repeat; }
.poster-9 { background: url("../images/articles/poster9.png") center/cover no-repeat; }

@media (max-width: 1334px) {
    .header-pc {
        display: none;
    }

    .header-mobile {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        min-height: var(--header-h);
        height: var(--header-h);
        padding: 0 16px;
        gap: 8px;
        position: relative;
        width: 100%;
        min-width: 0;
    }

    .header-mobile .mobile-drawer {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        height: 0;
        overflow: visible;
    }

    .header-mobile .logo-container {
        justify-content: center;
        max-width: 100%;
        min-width: 0;
        flex-shrink: 1;
        overflow: hidden;
    }

    .header-mobile .logo-mark {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .header-mobile .logo-text {
        font-size: 15px;
        max-width: 100%;
        min-width: 0;
    }

    .menu-toggle,
    .search-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        color: #000;
        flex-shrink: 0;
    }

    .site-nav.mobile-drawer .nav-menu {
        display: none;
        position: fixed;
        top: calc(var(--header-h) + var(--safe-top));
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        padding: 8px 0 16px;
        z-index: 199;
        height: auto;
        max-height: calc(100dvh - var(--header-h) - var(--safe-top));
        overflow-y: auto;
    }

    .site-nav.mobile-drawer.active .nav-menu {
        display: flex;
    }

    .site-nav.mobile-drawer .nav-link {
        height: 48px;
        padding: 0 24px;
        border-bottom: none;
        font-size: 16px;
    }

    .site-nav.mobile-drawer .nav-link.is-active {
        color: var(--color-primary);
        font-weight: 700;
        background: var(--color-primary-soft);
    }

    .header-search.mobile-search {
        display: none;
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        margin: 0;
        z-index: 201;
        background: #fff;
        height: 46px;
    }

    .header-search.mobile-search.is-open {
        display: flex;
    }

    body.nav-open,
    body.search-open {
        overflow: hidden;
    }

    body.nav-open::after,
    body.search-open::after {
        content: "";
        position: fixed;
        inset: 0;
        top: calc(var(--header-h) + var(--safe-top));
        background: rgba(0, 0, 0, 0.22);
        z-index: 180;
    }

    .page-body {
        padding: var(--page-offset) 0 40px;
        width: 100%;
        overflow-x: hidden;
    }

    .home-layout {
        flex-direction: column;
        gap: 24px;
        padding: 0 var(--page-gutter);
        width: 100%;
        max-width: 100%;
    }

    .home-main {
        width: 100%;
        max-width: 100%;
    }

    .home-layout .sidebar {
        display: none;
    }

    .hero-block,
    .hero-slider,
    .hero-slides,
    .section-block,
    .article-row,
    .choice-games,
    .game-row {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .hero-slider {
        border: none;
        padding: 0;
        background: transparent;
        border-radius: 0;
        overflow: hidden;
    }

    .hero-slides {
        aspect-ratio: 16 / 9;
        background: #eee;
        border-radius: 12px;
    }

    .hero-nav {
        display: none;
    }

    .hero-dots {
        display: flex;
    }

    .hero-slide img {
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .section-block {
        margin-top: 28px;
    }

    .section-header,
    .sub-title,
    .side-card h3,
    .side-title {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 12px;
        padding: 0;
    }

    .section-more,
    .sub-title .more {
        font-size: 16px;
        line-height: 26px;
    }

    .article-row,
    .choice-games {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article-chip {
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
        max-width: 100%;
    }

    .article-chip:hover,
    .side-article:hover {
        transform: none;
    }

    .article-chip .img,
    .article-card__img {
        border-radius: 0;
        width: 100%;
    }

    .article-chip .name,
    .article-card__name {
        font-size: 16px;
        font-weight: 400;
        line-height: 22px;
        margin: 7px 0;
        padding: 0 16px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .choice-card {
        background: #fff;
        border: none;
        border-radius: 16px;
        padding: 10px 15px 6px;
        align-items: flex-start;
        max-width: 100%;
    }

    .choice-card:hover {
        transform: none;
    }

    .choice-card__type,
    .pc-only-name {
        display: none;
    }

    .choice-card__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
    }

    .choice-card__name,
    .choice-card h3 {
        margin-top: 0;
        font-size: 15px;
        line-height: 21px;
        flex: 1;
        min-width: 0;
    }

    .choice-card .card-tag {
        font-size: 13px;
        margin-left: 8px;
        flex-shrink: 0;
    }

    .choice-card__desc,
    .choice-card p {
        margin-top: 12px;
        font-size: 12px;
        line-height: 16px;
        -webkit-line-clamp: 3;
    }

    .choice-card img,
    .choice-card__img {
        width: 70px;
        margin: 0 0 0 12px;
        border-radius: 8px;
    }

    .game-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 15px;
    }

    .mobile-cat-strip-wrap {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .mobile-cat-strip {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-cat-strip::-webkit-scrollbar {
        display: none;
    }

    .mobile-cat-pill {
        flex-shrink: 0;
        padding: 0 20px;
        height: 36px;
        line-height: 36px;
        border-radius: 36px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        font-size: 16px;
        color: #000;
        white-space: nowrap;
    }

    .game-header img {
        width: 64px;
        height: 64px;
    }

    .game-detail-title {
        font-size: 24px;
        line-height: 30px;
    }

    .game-player-frame {
        height: auto;
        aspect-ratio: 16 / 9;
        min-height: 220px;
    }
}

@media (max-width: 1024px) {
    .game-detail-container {
        flex-direction: column;
        gap: 32px;
    }

    .game-detail-container .sidebar {
        width: 100%;
        order: 2;
    }

    .page-narrow {
        padding: var(--page-offset) var(--page-gutter) 48px;
    }
}

@media (max-width: 768px) {
    .page-body {
        padding: var(--page-offset) 0 40px;
    }

    .home-layout,
    .game-detail-container {
        flex-direction: column;
        gap: 24px;
    }

    .section-block {
        margin-top: 30px;
    }

    .section-header,
    .sub-title,
    .side-card h3,
    .side-title {
        font-size: 20px;
        line-height: 26px;
        margin-bottom: 12px;
        padding: 0;
    }

    .section-more,
    .sub-title .more {
        font-size: 16px;
        line-height: 26px;
    }

    .hero-slider {
        border: none;
        padding: 0;
        background: transparent;
        border-radius: 0;
    }

    .hero-nav {
        display: none;
    }

    .hero-dots {
        display: flex;
    }

    .hero-slide img {
        aspect-ratio: 16 / 9;
        border-radius: 12px;
    }

    .article-row,
    .choice-games {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .article-chip {
        background: #fff;
        border-radius: 14px;
        overflow: hidden;
    }

    .article-chip:hover,
    .side-article:hover {
        transform: none;
    }

    .article-chip .img,
    .article-card__img {
        border-radius: 0;
    }

    .article-chip .name,
    .article-card__name {
        font-size: 16px;
        font-weight: 400;
        line-height: 22px;
        margin: 7px 0;
        padding: 0 16px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .choice-card {
        background: #fff;
        border: none;
        border-radius: 16px;
        padding: 10px 15px 6px;
        align-items: flex-start;
    }

    .choice-card:hover {
        transform: none;
    }

    .choice-card__type,
    .pc-only-name {
        display: none;
    }

    .choice-card__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-width: 0;
    }

    .choice-card__name,
    .choice-card h3 {
        margin-top: 0;
        font-size: 15px;
        line-height: 21px;
        flex: 1;
        min-width: 0;
    }

    .choice-card .card-tag {
        font-size: 13px;
        margin-left: 8px;
        flex-shrink: 0;
    }

    .choice-card__desc,
    .choice-card p {
        margin-top: 12px;
        font-size: 12px;
        line-height: 16px;
        -webkit-line-clamp: 3;
    }

    .choice-card img,
    .choice-card__img {
        width: 70px;
        margin: 0 0 0 12px;
        border-radius: 8px;
    }

    .game-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 15px;
    }

    .side-search {
        height: 48px;
        margin-bottom: 24px;
        padding: 0 12px 0 16px;
    }

    .side-search input {
        font-size: 16px;
    }

    .cat-chip,
    .side-cat {
        padding: 0;
        font-size: 16px;
    }

    .cat-chip + .cat-chip,
    .side-cat + .side-cat {
        margin-top: 20px;
    }

    .game-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .game-header img {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .game-detail-title {
        font-size: 20px;
        line-height: 26px;
    }

    .article-content {
        margin-top: 24px;
    }

    .article-content h2 {
        font-size: 20px;
        line-height: 26px;
        margin: 24px 0 12px;
    }

    .article-content p,
    .article-content li {
        font-size: 15px;
    }

    .home-layout .sidebar {
        display: none;
    }

    .mobile-cat-strip-wrap {
        display: block;
    }

    .mobile-cat-strip {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mobile-cat-strip::-webkit-scrollbar {
        display: none;
    }

    .mobile-cat-pill {
        flex-shrink: 0;
        padding: 0 20px;
        height: 36px;
        line-height: 36px;
        border-radius: 36px;
        background: #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        font-size: 16px;
        color: #000;
        white-space: nowrap;
    }

    .game-detail-container .sidebar {
        display: block;
        width: 100%;
    }

    .site-footer .content-box,
    .site-footer .container {
        font-size: 14px;
        gap: 12px;
        padding: 16px var(--page-gutter) 24px;
    }

    .footer-links {
        row-gap: 8px;
        max-width: 100%;
    }

    .footer-links .hr {
        margin: 0 12px;
    }

    .footer-copy {
        padding: 0 8px;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .header-mobile {
        padding: 0 10px;
        gap: 4px;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
    }

    .menu-toggle,
    .search-toggle {
        width: 40px;
        height: 40px;
    }

    .choice-card img,
    .choice-card__img {
        width: 56px;
        margin-left: 8px;
    }

    .footer-links .hr {
        margin: 0 8px;
        height: 12px;
    }
}
