/* Additions scoped to the new left column; existing sidebar and navigation remain intact. */
.site-header .header-tools { display:flex; flex-direction:column; align-items:stretch; gap:5px; width:300px; margin-left:auto; min-width:0; }
.site-header .search-mini { width:100%; min-width:0; height:42px; min-height:42px; border-radius:23px; }
.site-header .search-mini input { height:42px; padding-block:0; }
.site-header .search-mini button { width:56px; height:42px; border-left:1px solid #d8eafb; border-radius:0 23px 23px 0; }
.site-header .header-hot-games { display:flex; align-items:center; justify-content:flex-end; gap:14px; min-width:0; padding-inline:8px; color:#d9efff; font-size:14px; line-height:1.4; white-space:nowrap; overflow:hidden; }
.site-header .header-hot-games>span { color:#e9f6ff; flex:none; }
.site-header .header-hot-games a { min-width:0; overflow:hidden; text-overflow:ellipsis; color:#d9efff; }
.site-header .header-hot-games a:hover { color:#fff; text-decoration:underline; text-underline-offset:3px; }
.site-header .mobile-game-box-button { display:none; }
.site-header .brand-image { max-width:260px; }
.site-header .brand-image img { display:block; width:auto; height:58px; max-width:260px; object-fit:contain; }
.auto-home-main .auto-home-topic { margin-bottom:26px; }
.auto-home-main .auto-home-topic .section-head h2 { font-size:20px; }
.auto-home-main .auto-home-topic .game-grid { padding:0 12px; }
.auto-home-main .auto-home-topic .game-card-link { gap:10px; min-height:96px; }
.auto-home-main .auto-home-topic .game-card img,.auto-home-main .auto-home-topic .image-placeholder { width:58px; height:58px; border-radius:12px; }
.auto-home-main .auto-home-topic .game-card h3 { font-size:15px; }
.auto-home-main .auto-home-topic .game-card p { font-size:13px; }
.auto-home-main .auto-home-topic .card-cta { display:none; }
.home-board-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.home-board { min-width:0; background:#fff; border:1px solid #e8ebed; border-radius:6px; padding:14px 12px; }
.home-board-heading { display:flex; align-items:center; justify-content:space-between; gap:6px; padding-bottom:10px; border-bottom:1px solid #eee; }
.home-board-heading h3 { margin:0; font-size:18px; line-height:1.4; }
.home-board-heading .more-link { font-size:13px; gap:2px; color:#8b929b; }
.home-board-heading .icon { width:13px; height:13px; }
.home-board ol { list-style:none; padding:0; margin:6px 0 0; }
.home-board-row { display:flex; align-items:center; gap:7px; min-height:35px; padding:7px 0; }
.home-board-row>div { flex:1; min-width:0; }
.home-board-row strong { display:block; font-size:14px; font-weight:400; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.home-board-row:hover strong { color:#008eff; }
.home-board-row img { width:48px; height:48px; object-fit:cover; border-radius:9px; flex:none; }
.home-board-row small { display:block; font-size:12px; color:#8b929b; margin-top:3px; }
.home-board-no { display:grid; place-items:center; flex:none; width:17px; height:19px; background:#f2f4f7; color:#7b8491; font-size:13px; }
.home-board li:nth-child(-n+3) .home-board-no { background:#008eff; color:#fff; }
.home-board li:nth-child(2) .home-board-no { background:#5bb5ff; }
.home-board li:nth-child(3) .home-board-no { background:#93ceff; }
.home-board li:first-child .home-board-row { min-height:70px; }
.auto-home-main .banner-caption { padding-right:110px; }
@media(max-width:767px) {
 .site-header .brand-image { max-width:calc(100% - 55px); }
 .site-header .brand-image img { height:45px; max-width:min(220px,100%); }
 .auto-home-main .auto-home-topic .section-head h2 { font-size:18px; }
 .auto-home-main .auto-home-topic .game-grid { padding:0; }
 .auto-home-main .auto-home-topic .game-card-link { min-height:82px; gap:8px; }
 .auto-home-main .auto-home-topic .game-card img,.auto-home-main .auto-home-topic .image-placeholder { width:48px; height:48px; border-radius:10px; }
 .auto-home-main .auto-home-topic .game-card h3 { font-size:14px; }
 .auto-home-main .auto-home-topic .game-card p { font-size:12px; }
 .home-board-grid { grid-template-columns:minmax(0,1fr); gap:12px; }
 .home-board { padding:16px; }
 .home-board-row { min-height:39px; }
 .home-board-row strong { font-size:15px; }
 .auto-home-main .banner-caption { padding-right:100px; }
}

@media(max-width:700px) {
 .site-header .header-tools { display:none; }
 .site-header .header-inner { min-height:78px; padding-block:10px; gap:6px; }
 .site-header .brand-image { max-width:calc(100% - 124px); }
 .site-header .brand-image img { height:42px; max-width:150px; }
 .site-header .mobile-game-box-button { display:inline-flex; align-items:center; justify-content:center; gap:4px; height:30px; flex:none; margin-left:auto; padding:0 9px; border-radius:16px; background:#fff; color:#008eff; font-size:13px; font-weight:700; white-space:nowrap; }
 .site-header .mobile-game-box-button .icon { width:15px; height:15px; }
 .site-header .mobile-game-box-button:hover { background:#e8f4ff; }
 .site-header .menu-toggle { margin-left:0; width:36px; height:36px; color:#fff; }
 .site-header .menu-toggle:hover { background:#ffffff20; }
 .site-menu { position:fixed; inset:0 0 0 auto; width:min(360px,calc(100% - 44px)); max-width:none; height:100dvh; max-height:none; margin:0; padding:0 0 24px; border-radius:0; box-shadow:-14px 0 50px #071b2b55; transform:translateX(100%); visibility:hidden; transition:transform .22s ease,visibility 0s linear .22s; overflow-y:auto; }
 .site-menu[open] { transform:translateX(0); visibility:visible; transition-delay:0s; }
 .site-menu::backdrop { background:#081b2d88; }
 .site-menu .menu-heading { min-height:64px; margin:0; padding:12px 18px; background:#008eff; color:#fff; }
 .site-menu .menu-heading h2 { font-size:21px; }
 .site-menu .menu-heading .icon-button { color:#fff; }
 .mobile-menu-search { display:flex; align-items:center; gap:8px; margin:18px; padding:4px; background:#f4f7fa; border:1px solid #e1e8ee; border-radius:10px; }
 .mobile-menu-search input { min-width:0; flex:1; height:40px; padding:0 10px; border:0; outline:0; background:transparent; color:#20252b; font-size:16px; }
 .mobile-menu-search button { display:grid; place-items:center; width:46px; height:40px; border:0; border-radius:8px; background:#12c9be; color:#fff; }
 .mobile-menu-search button .icon { width:20px; height:20px; }
 .site-menu nav>a { min-height:54px; padding:14px 20px; font-size:17px; }
 .site-menu nav>a .icon { width:16px; height:16px; color:#a8b3be; }
}

/* Final detail-page typography overrides. These follow the legacy selectors above. */
.game-detail-layout .game-detail-body .detail-hero-rich .detail-title-row h1 { font-size:24px; }
.game-detail-layout .game-detail-body h2,
.game-detail-layout .detail-aside h2 { font-size:20px; }
.game-detail-layout .detail-aside .game-box-card h2 { font-size:24px; }
.game-detail-layout .detail-welfare-card { border:0; background:#f5f6f8; }
@media(max-width:700px) {
 .game-detail-layout .game-detail-body .detail-hero-rich .detail-title-row h1 { font-size:22px; }
 .game-detail-layout .game-detail-body h2,
 .game-detail-layout .detail-aside h2 { font-size:18px; }
 .game-detail-layout .detail-aside .game-box-card h2 { font-size:23px; }
}

/* User supplied mobile game-box button: transparent blue-header treatment. */
@media(max-width:700px) {
 .site-header .mobile-game-box-button { background:transparent; color:#fff; font-size:13px; }
 .site-header .mobile-game-box-button:hover { background:#ffffff20; color:#fff; }
}

/* Informational pages and footer legal links. */
.static-page { max-width:900px; margin:0 auto; padding:28px 32px 34px; background:#fff; border-radius:8px; }
.static-page h1 { margin:0 0 12px; font-size:30px; line-height:1.4; }
.static-page-intro { margin:0 0 24px; color:#697482; font-size:16px; }
.static-page-block { padding:20px 0; border-top:1px solid #e8ebed; }
.static-page-block h2 { margin:0 0 8px; font-size:21px; line-height:1.5; }
.static-page-block p { margin:0; color:#4b5560; font-size:16px; line-height:1.95; }
.static-sitemap-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.static-sitemap-link { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:15px 16px; border:1px solid #e1edf5; border-radius:7px; color:#008eff; font-size:16px; }
.static-sitemap-link:hover { background:#e8f4ff; }
.static-sitemap-link .icon { width:16px; height:16px; }
.footer-legal-nav { margin-left:0; }
.footer-copyright { width:100%; }
.card-offline-tag { display:inline-block; margin:0 0 4px; padding:1px 7px; border-radius:4px; color:#7b8491; background:#eef0f2; font-size:13px; line-height:1.5; }
.detail-hero-rich { align-items:stretch; gap:24px; background:linear-gradient(135deg,#f7fbff 0%,#fff 62%); border:1px solid #e4eef6; }
.detail-hero-main { display:flex; align-items:center; gap:20px; flex:1; min-width:0; }
.detail-eyebrow { display:block; margin-bottom:5px; color:#008eff; font-size:14px; }
.detail-lede { margin:8px 0 10px; color:#56616b; font-size:15px; line-height:1.7; }
.detail-hero-rich .detail-main { min-width:0; }
.detail-hero-rich .download-box { align-content:center; min-width:250px; }
.game-quick-stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px; margin:0 0 24px; overflow:hidden; border:1px solid #e5edf3; border-radius:8px; background:#e5edf3; }
.game-quick-stats>div { display:flex; flex-direction:column; gap:3px; min-width:0; padding:14px 16px; background:#fff; }
.game-quick-stats strong { overflow:hidden; color:#20252b; font-size:17px; white-space:nowrap; text-overflow:ellipsis; }
.game-quick-stats span { color:#7b8491; font-size:13px; }
.detail-banner-rich { border-radius:8px; box-shadow:0 8px 24px #0b365d12; }
.detail-banner-rich img { max-height:340px; }
.detail-content-section { padding-top:4px; }
.detail-welfare-card { padding:16px; border:1px solid #f1e3bd; border-radius:8px; background:#fffaf0; color:#56616b; }
.detail-welfare-card p { margin:0 0 8px; }
.detail-welfare-card p:last-child { margin-bottom:0; }
.gift-row .gift-claim-button { flex:none; padding:5px 16px; border-radius:18px; background:#008eff; color:#fff; font-size:14px; line-height:1.4; }
.gift-row:hover .gift-claim-button { background:#0078d7; }
.detail-feature-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.detail-feature-card { padding:18px; border:1px solid #e1edf5; border-radius:8px; background:#f9fcff; }
.detail-feature-card h3 { margin:0 0 10px; color:#008eff; font-size:18px; }
.detail-feature-card ul { margin:0; padding-left:20px; color:#56616b; font-size:15px; line-height:1.9; }
.detail-gallery .screenshots { padding-bottom:12px; }
.detail-gallery .screenshots a { scroll-snap-align:start; }
.detail-gallery .screenshots img { height:300px; border-radius:10px; box-shadow:0 3px 12px #0b365d18; }
.detail-gift-list { overflow:hidden; border:1px solid #e1edf5; border-radius:8px; }
.detail-gift-card { display:flex; align-items:center; gap:13px; min-width:0; padding:15px 17px; border-bottom:1px solid #e8ebed; background:#fff; }
.detail-gift-card:last-child { border-bottom:0; }
.detail-gift-card>.icon { flex:none; width:25px; height:25px; color:#008eff; }
.detail-gift-card>span:nth-child(2) { display:flex; flex:1; min-width:0; flex-direction:column; gap:3px; }
.detail-gift-card strong { overflow:hidden; color:#20252b; font-size:16px; white-space:nowrap; text-overflow:ellipsis; }
.detail-gift-card small { color:#7b8491; font-size:13px; }
.detail-gift-card .text-link { flex:none; font-size:14px; }
.detail-gift-card .gift-claim-button { flex:none; padding:6px 18px; border-radius:18px; background:#008eff; color:#fff; font-size:14px; line-height:1.4; }
.detail-gift-card:hover .gift-claim-button { background:#0078d7; }
@media(max-width:700px) {
 .game-detail-layout .detail-aside .aside-panel { order:1; }
 .game-detail-layout .detail-aside .game-box-card { order:3; }
 .static-page { padding:20px 18px 24px; }
 .static-page h1 { font-size:27px; }
 .static-page-intro { font-size:16px; }
 .static-page-block { padding:18px 0; }
 .static-page-block h2 { font-size:20px; }
 .static-page-block p { font-size:16px; }
 .static-sitemap-grid { grid-template-columns:minmax(0,1fr); }
 .static-sitemap-link { font-size:16px; }
 .footer-legal-nav { margin-left:0; }
 .detail-hero-rich { display:block; padding:16px; }
 .detail-hero-main { align-items:flex-start; gap:12px; }
 .detail-hero-rich .detail-logo img,.detail-hero-rich .detail-logo .image-placeholder { width:76px; height:76px; border-radius:14px; }
 .detail-eyebrow { font-size:13px; }
 .detail-lede { margin-top:6px; font-size:14px; }
 .detail-hero-rich .download-box { min-width:0; margin-top:16px; }
 .game-quick-stats { grid-template-columns:repeat(2,minmax(0,1fr)); margin-bottom:18px; }
 .game-quick-stats>div { padding:12px; }
 .game-quick-stats strong { font-size:15px; }
 .game-quick-stats span { font-size:12px; }
 .detail-banner-rich img { max-height:210px; }
 .detail-feature-grid { grid-template-columns:minmax(0,1fr); }
 .detail-feature-card { padding:15px; }
 .detail-feature-card h3 { font-size:17px; }
 .detail-feature-card ul { font-size:15px; }
 .detail-gallery .screenshots img { height:230px; }
 .detail-gift-card { padding:13px 12px; gap:9px; }
 .detail-gift-card strong { font-size:15px; }
 .detail-gift-card small { font-size:12px; }
 .detail-gift-card .text-link { font-size:13px; }
 .detail-gift-card .gift-claim-button { padding:5px 15px; font-size:13px; }
 .gift-row .gift-claim-button { padding:4px 13px; font-size:13px; }
}

/* Reference detail-page treatment: white information stream with a compact app-info block. */
.game-detail-layout { align-items:start; }
.game-detail-body { padding:18px 20px 26px; background:#fff; border-radius:8px; }
.game-detail-layout h1 { font-size:24px; }
.game-detail-layout h2 { font-size:20px; }
.game-detail-layout .game-box-card h2 { font-size:24px; }
.game-detail-body .detail-hero-rich { margin:-18px -20px 20px; padding:20px; border:0; border-bottom:1px solid #e8ebed; border-radius:8px 8px 0 0; background:#fff; }
.game-detail-body .detail-hero-rich .detail-hero-main { gap:18px; }
.game-detail-body .detail-hero-rich .detail-eyebrow { display:none; }
.detail-title-row { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px 10px; }
.game-detail-body .detail-hero-rich .detail-title-row h1 { margin:0; font-size:24px; line-height:1.35; }
.game-detail-body .detail-hero-rich .detail-title-row .detail-version { margin:0; color:#ff9800; font-size:16px; line-height:1.5; }
.detail-meta-row { display:flex; flex-wrap:wrap; gap:6px 18px; margin-top:9px; color:#697482; font-size:14px; line-height:1.6; }
.detail-category-row { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.detail-category-row a { padding:2px 8px; border-radius:4px; color:#5e8bad; background:#eef5fc; font-size:14px; }
.detail-category-row a:hover { color:#008eff; background:#e4f2ff; }
.game-detail-body .detail-lede { display:none; }
.game-detail-body .detail-hero-rich .download-box { min-width:230px; }
.game-detail-body .game-quick-stats { margin-bottom:20px; }
.game-detail-body .detail-banner-rich { margin-bottom:18px; border-radius:5px; box-shadow:none; }
.game-detail-body .detail-banner-rich img { max-height:300px; }
.game-detail-body .detail-video { overflow:hidden; background:#081b2d; }
.game-detail-body .detail-video video { display:block; width:100%; max-height:420px; object-fit:contain; background:#081b2d; }
.app-info-section { margin:0 0 24px; padding:18px; border:0; border-radius:10px; background:#f5f6f8; }
.app-info-section .section-heading { margin-bottom:12px; font-size:19px; }
.app-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; margin:0; }
.app-info-grid>div { display:flex; gap:8px; min-width:0; padding:8px 12px 8px 0; }
.app-info-grid dt { flex:none; color:#8b949e; font-size:14px; }
.app-info-grid dd { min-width:0; margin:0; overflow:hidden; color:#4b5560; font-size:14px; white-space:nowrap; text-overflow:ellipsis; }
.app-info-tags { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin-top:10px; color:#8b949e; font-size:14px; }
.app-info-tags a { padding:2px 8px; border-radius:4px; color:#5e8bad; background:#eef5fc; }
.detail-update-section { margin-bottom:22px; padding:16px 0; border-top:1px solid #e8ebed; border-bottom:1px solid #e8ebed; }
.detail-update-section .section-heading { display:inline-flex; margin:0 18px 0 0; font-size:19px; }
.detail-update-line { display:inline-flex; flex-wrap:wrap; gap:10px 20px; color:#697482; font-size:14px; }
.game-detail-layout .detail-aside { display:flex; min-width:0; flex-direction:column; gap:20px; }
.game-detail-layout .detail-aside .game-box-card { margin-bottom:0; }
.game-detail-layout .detail-aside .aside-panel { margin-bottom:0; }
@media(max-width:700px) {
 .game-detail-body { padding:14px 16px 22px; }
 .game-detail-layout h1 { font-size:22px; }
 .game-detail-layout h2 { font-size:18px; }
 .game-detail-layout .game-box-card h2 { font-size:23px; }
 .game-detail-body .detail-hero-rich { margin:-14px -16px 16px; padding:16px; }
 .game-detail-body .detail-hero-rich .detail-hero-main { gap:12px; }
 .game-detail-body .detail-hero-rich .download-box { min-width:0; }
 .game-detail-body .detail-banner-rich img { max-height:210px; }
 .game-detail-body .detail-video video { max-height:240px; }
 .detail-title-row { gap:5px 8px; }
 .game-detail-body .detail-hero-rich .detail-title-row h1 { font-size:24px; }
 .game-detail-body .detail-hero-rich .detail-title-row .detail-version { font-size:16px; }
 .detail-meta-row { gap:4px 14px; margin-top:7px; font-size:14px; }
 .detail-meta-updated { flex-basis:100%; }
 .detail-category-row { gap:6px; margin-top:7px; }
 .detail-category-row a { font-size:14px; }
 .app-info-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 12px; }
 .app-info-grid>div { padding:7px 0; }
 .app-info-grid>div:nth-child(5), .app-info-grid>div:nth-child(6) { grid-column:1 / -1; }
 .detail-update-section .section-heading { display:block; margin:0 0 8px; }
 .detail-update-line { display:flex; gap:6px 16px; font-size:13px; }
}

/* Right-column game-box download card. QR and button share the exact channel URL. */
.game-box-card { padding:18px; margin-bottom:20px; border-radius:8px; background:#fff; min-width:0; }
.game-box-top { display:grid; grid-template-columns:minmax(0,1fr) 128px; align-items:center; gap:12px; }
.game-box-info { min-width:0; }
.game-box-brand { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.game-box-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:9px; background:#008eff; color:#fff; flex:none; }
.game-box-mark .icon { width:26px; height:26px; }
.game-box-brand h2 { margin:0; font-size:24px; line-height:1.3; white-space:nowrap; }
.game-box-info p { color:#7b8491; font-size:14px; margin:12px 0 6px; }
.game-box-tip { color:#008eff; font-size:14px; }
.game-box-qr { display:block; width:128px; height:128px; background:#fff; }
.game-box-qr img { display:block; width:128px; height:128px; image-rendering:pixelated; }
.game-box-card .game-box-download { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; min-height:42px; margin-top:14px; border-radius:6px; font-size:16px; }
.game-box-download .icon { width:19px; height:19px; }
.game-box-mobile-tip { display:none; }
@media(max-width:767px) {
 .game-box-card { padding:18px; }
 .game-box-brand h2 { font-size:23px; }
 .game-box-mobile-tip { display:block; margin:10px 0 0; text-align:center; color:#7b8491; font-size:14px; }
}

/* Mobile homepage order: banner, four topics, hot games, hot categories, game box. */
@media(max-width:700px) {
 .portal-layout { display:flex; flex-direction:column; gap:0; }
 .portal-layout { align-items:stretch; }
 .portal-main,.portal-aside { display:contents; }
 .home-section-banners { order:1; }
 .auto-home-topic { order:2; }
 .portal-aside>.home-ranking { order:6; }
 .portal-aside>.aside-panel:not(.home-ranking) { order:7; }
 .portal-aside>.game-box-card { order:8; }
 .auto-home-rankings,.portal-aside>.home-section { display:none; }
 .auto-home-topic .game-card:nth-child(n+9) { display:none; }
 .portal-aside>.home-ranking,.portal-aside>.aside-panel:not(.home-ranking),.portal-aside>.game-box-card { width:100%; }
}

.gift-game-version { color:#ff9800; font-size:.86em; font-weight:500; }


.gift-reference { padding:0 4px; }
.gift-reference-head { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.gift-reference-logo { width:72px; height:72px; border-radius:16px; object-fit:cover; }
.gift-reference-title { min-width:0; }
.gift-reference-title h1 { margin:0 0 8px; font-size:24px; }
.gift-reference-sub { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#00bfae; font-size:14px; }
.gift-kind-badge { padding:3px 10px; border-radius:14px; background:#14c8b5; color:#fff; }
.gift-game-link a { color:#00bfae; }
.gift-reference-stats { display:grid; gap:12px; margin:0 0 22px; padding:16px 18px; border-radius:12px; background:#f5f8fb; }
.gift-reference-stats div { display:flex; justify-content:space-between; gap:12px; }
.gift-reference-stats dt { color:#7b8794; }
.gift-reference-stats dd { margin:0; color:#20252b; font-weight:600; }
.gift-reference-section { margin:0 0 22px; }
.gift-reference-section h2 { margin:0 0 12px; font-size:18px; }
.gift-reference-notice { margin:20px 0; padding:14px 16px; border:1px solid #ffd37a; border-radius:10px; background:#fff9e8; color:#7a5a16; }
.gift-reference-code { display:flex; align-items:center; gap:16px; margin:20px 0; padding:16px; border:1px solid #bfe4ff; border-radius:10px; background:#f0f8ff; }
.gift-reference-code span { color:#008eff; }
.gift-reference-code strong { flex:1; font-size:20px; letter-spacing:1px; }
.gift-reference-download { display:inline-flex; margin-bottom:20px; }
.gift-reference-content { border-top:1px solid #e8ebed; padding-top:20px; }
@media(max-width:700px){.gift-reference-title h1{font-size:22px}.gift-reference-logo{width:64px;height:64px}.gift-reference-code{flex-wrap:wrap}.gift-reference-code strong{flex-basis:100%}}


.gift-reference-game { color:#7b8491; }
.gift-reference-game a { color:#008eff; }
.gift-reference-game span { color:#008eff; }
.gift-warm-notice { margin:22px 0; padding:14px 16px; border:1px solid #ffd37a; border-radius:10px; background:#fff9e8; color:#7a5a16; line-height:1.7; }
.gift-download-section,.gift-claim-section { margin-top:24px; padding-top:20px; border-top:1px solid #e8ebed; }
.gift-download-section h2,.gift-claim-section h2 { margin:0 0 12px; font-size:18px; }
.gift-download-buttons { display:flex; flex-wrap:wrap; gap:10px; }
.gift-claim-usage { margin-bottom:14px; }
.gift-claim-button-large { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:13px 18px; border-radius:9px; background:#14c8b5; color:#fff; font-size:17px; font-weight:600; }
.gift-claim-button-large:hover { background:#0bb3a2; color:#fff; }
.gift-box-tip { margin:9px 0 0; text-align:center; color:#7b8491; font-size:13px; }
@media(max-width:700px){.gift-download-buttons .btn{flex:1;justify-content:center}.gift-reference-stats div{align-items:flex-start}.gift-reference-stats dd{text-align:right}}


.gift-warm-notice { border-color:#ffd4d0; background:#fff5f3; color:#7b4a45; font-size:14px; }
.gift-warm-notice strong { color:#f04438; }
.gift-offline-notice { padding:13px 16px; border-radius:8px; background:#f5f6f8; color:#7b8491; font-size:14px; }
.gift-claim-button-large { background:#0668b5; }
.gift-claim-button-large:hover { background:#055a9d; }


.gift-detail-final .rich-text { font-size:15px; }
.gift-detail-final .gift-reference-content,.gift-detail-final .gift-download-section,.gift-detail-final .gift-claim-section { border-top:0; }
.gift-detail-final .gift-download-section,.gift-detail-final .gift-claim-section { padding-top:8px; }
@media(max-width:700px){.game-detail-body { padding:14px 0 22px; }}


.gift-category-nav { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 22px; padding:0 0 12px; border-bottom:1px solid #e8ebed; }
.gift-category-nav a { padding:8px 16px; border-radius:6px; color:#5e6b78; background:#f3f7fb; font-size:15px; }
.gift-category-nav a:hover,.gift-category-nav a.is-active { color:#fff; background:#008eff; }


.gift-list-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
.gift-list-main { min-width:0; padding:0 18px 22px; border-radius:8px; background:#fff; }
.gift-reference-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.gift-reference-list-card { display:flex; min-width:0; flex-direction:column; justify-content:space-between; min-height:150px; padding:14px; border:1px solid #e3edf4; border-radius:8px; background:#fff; color:#20252b; }
.gift-reference-list-card:hover { border-color:#8bc9f5; box-shadow:0 5px 16px #0b365d12; }
.gift-reference-list-top { display:flex; gap:10px; min-width:0; }
.gift-reference-list-top img,.gift-reference-list-top>.icon { width:58px; height:58px; flex:none; border-radius:10px; object-fit:cover; color:#008eff; }
.gift-reference-list-top h2 { margin:0 0 8px; overflow:hidden; font-size:16px; line-height:1.45; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.gift-reference-list-top p { margin:0; color:#7b8491; font-size:13px; line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.gift-reference-list-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; padding-top:10px; border-top:1px solid #edf1f4; color:#8b949e; font-size:13px; }
.gift-list-claim { padding:6px 18px; border-radius:16px; background:#008eff; color:#fff; }
.gift-list-aside { display:flex; flex-direction:column; gap:20px; }
@media(max-width:900px){.gift-list-layout{grid-template-columns:minmax(0,1fr)}.gift-list-aside{display:block}.gift-list-aside .game-box-card{margin-top:20px}}
@media(max-width:700px){.gift-list-main{padding:0 10px 20px}.gift-reference-grid{grid-template-columns:minmax(0,1fr)}.gift-reference-list-card{min-height:132px}}


/* Reference tabs: white bar with blue underline. */
.gift-list-main .gift-category-nav { align-items:stretch; gap:0; margin:0 0 18px; padding:0 0; border:0; border-bottom:1px solid #e8ebed; background:#fff; }
.gift-list-main .gift-category-nav a { padding:14px 18px !important; border-radius:0; color:#697482; background:transparent; font-size:15px; }
.gift-list-main .gift-category-nav a:hover,.gift-list-main .gift-category-nav a.is-active { color:#008eff; background:transparent; }
.gift-list-main .gift-category-nav a.is-active { border-bottom:2px solid #008eff; }
@media(max-width:700px){.gift-list-aside .aside-panel{display:none}.gift-list-aside .game-box-card{display:block;margin-top:20px}}


.game-box-card { margin-bottom:0 !important; }
.gift-list-main .gift-category-nav a { padding:14px 10px !important; }
@media(max-width:900px){.gift-list-aside .game-box-card { margin-top:0 !important; }}
@media(max-width:700px){.gift-list-aside .game-box-card { margin-top:0 !important; }}


/* 2008you-game-library-stats */
.game-library-breadcrumb{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.game-library-breadcrumb .library-breadcrumb-main{display:inline-flex;align-items:center;gap:6px}.game-library-breadcrumb .library-stats{margin-left:auto;color:#7b8491;font-size:14px;white-space:nowrap}.game-library-breadcrumb .library-stats strong{color:#008eff;font-weight:400}@media(max-width:700px){.game-library-breadcrumb .library-stats{width:100%;margin-left:0;margin-top:6px}}

/* collections-feature-pill-button */
.collections-feature-card a{display:inline-flex;align-items:center;justify-content:center;min-width:72px;padding:7px 13px;border-radius:999px;background:#168fe5;color:#fff!important;font-size:13px;font-weight:600;text-decoration:none!important;box-shadow:0 2px 6px rgba(0,142,255,.2);transition:background .2s,transform .2s}.collections-feature-card a:hover{background:#0878c9;transform:translateY(-1px)}

/* mobile-game-filter-panel */
.game-filter-panel {
    position: relative;
}

.game-filter-toggle {
    display: none;
}

@media (max-width: 700px) {
    .game-filter-panel {
        margin: 12px 0 18px;
        padding: 10px 10px 36px;
        border: 1px solid #e5ebf2;
        border-radius: 9px;
        background: #fff;
    }

    .game-filter-panel .filter-links {
        display: flex;
        max-height: 108px;
        overflow: hidden;
        align-content: flex-start;
        gap: 4px 6px;
        padding-right: 2px;
    }

    .game-filter-panel.is-expanded .filter-links {
        max-height: 290px;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #a9cfee #f1f6fa;
    }

    .game-filter-panel.is-expanded .filter-links::-webkit-scrollbar {
        width: 5px;
    }

    .game-filter-panel.is-expanded .filter-links::-webkit-scrollbar-thumb {
        border-radius: 5px;
        background: #a9cfee;
    }

    .game-filter-panel .filter-links a {
        flex: 0 0 auto;
        padding: 7px 10px;
        border-radius: 16px;
        color: #6f7d8c;
        background: #f4f6f8;
        font-size: 13px;
        line-height: 1.2;
    }

    .game-filter-panel .filter-links a[aria-current="true"] {
        color: #008eff;
        background: #e8f5ff;
    }

    .game-filter-toggle {
        position: absolute;
        right: 10px;
        bottom: 7px;
        display: inline-flex;
        align-items: center;
        gap: 3px;
        padding: 4px 9px;
        border: 1px solid #e3a58f;
        border-radius: 14px;
        background: #fff;
        color: #b46e55;
        font-size: 12px;
        line-height: 1.3;
        cursor: pointer;
    }
}

@media (min-width: 701px) {
    .game-filter-panel .filter-links {
        display: flex;
    }
}

/* mobile-game-filter-final-adjust */
@media(max-width:700px){.game-library-breadcrumb{flex-wrap:nowrap!important;align-items:center}.game-library-breadcrumb .library-breadcrumb-main{flex:none;white-space:nowrap}.game-library-breadcrumb .library-stats{width:auto!important;margin-left:auto!important;margin-top:0!important;font-size:13px!important;white-space:nowrap}.game-filter-toggle{border-color:#008eff!important;background:#008eff!important;color:#fff!important}.game-filter-toggle:hover{background:#0878c9!important;border-color:#0878c9!important}}
