/* v3.8.0 — compact shelf-style homepage inspired by modern sports portals. */
.shelf-home{background:#f1f2f4;color:#1e2430}
.shelf-home .page-bg{background:#f1f2f4}
.shelf-home .wc-corner{display:none}
.shelf-home .site-header{background:#202124;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 8px 24px rgba(0,0,0,.16);backdrop-filter:none}
.shelf-home .header-inner{height:74px;gap:24px}
.shelf-home .brand{width:190px}
.shelf-home .brand-logo{display:block;width:100%;height:auto}
.shelf-home .site-header .brand-logo,.shelf-home .mobile-drawer-head img{filter:brightness(1.35) saturate(1.18) drop-shadow(0 4px 12px rgba(75,111,255,.24))}
.shelf-home .main-nav{gap:20px}
.shelf-home .main-nav a{color:rgba(255,255,255,.72);font-size:13px}
.shelf-home .main-nav a:hover,.shelf-home .main-nav a.active{color:#fff}
.shelf-home .main-nav a.active::after{bottom:7px;height:2px;background:#6e8dff}
.shelf-home .header-actions .ghost-button{border-color:rgba(255,255,255,.26);color:#fff;background:rgba(255,255,255,.05)}
.shelf-home .header-actions .primary-button{background:linear-gradient(135deg,#6f91ff,#5269df);box-shadow:0 8px 22px rgba(64,91,213,.34)}
.shelf-home .member-chip{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.14);color:#fff}
.shelf-home .member-chip small{color:rgba(255,255,255,.62)}
.shelf-home .mega-menu{background:#292a2e;border-color:rgba(255,255,255,.08);color:#fff}
.shelf-home .mega-copy p,.shelf-home .mega-card small{color:rgba(255,255,255,.58)}
.shelf-home .mega-card{background:#34353a;border-color:rgba(255,255,255,.08)}

.shelf-home .hero{padding-top:16px}
.shelf-home .hero-slider{height:auto;overflow:visible;border-radius:0;background:transparent;box-shadow:none}
.shelf-home .hero-slides{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.shelf-home .hero-slide{position:relative;inset:auto;height:170px;border-radius:15px;opacity:1;visibility:visible;overflow:hidden;box-shadow:0 8px 22px rgba(26,31,46,.14);isolation:isolate}
.shelf-home .hero-slide.worldcup{background:#142a55}
.shelf-home .hero-slide.app{background:linear-gradient(125deg,#18244b 0%,#3c4da1 100%)}
.shelf-home .hero-slide.venues{background:linear-gradient(125deg,#281b4f 0%,#6356c9 100%)}
.shelf-home .hero-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.shelf-home .hero-overlay{background:linear-gradient(90deg,rgba(9,17,38,.82),rgba(10,20,48,.26))}
.shelf-home .hero-content,.shelf-home .hero-content.light{position:relative;z-index:3;width:67%;height:100%;padding:20px 18px;justify-content:center;color:#fff}
.shelf-home .hero-brand-logo{display:none}
.shelf-home .hero-kicker{font-size:8px;letter-spacing:.18em;color:#9db1ff}
.shelf-home .hero-content h1{margin:7px 0 12px;font-size:22px;line-height:1.12;letter-spacing:-.02em}
.shelf-home .hero-content p{display:none}
.shelf-home .hero-buttons{gap:7px}
.shelf-home .hero-buttons .large{min-height:34px;padding:0 14px;font-size:11px}
.shelf-home .hero-buttons>*:nth-child(2){display:none}
.shelf-home .hero-device,.shelf-home .hero-device.venues{right:-5%;bottom:-13%;width:58%;height:118%;object-position:right bottom;opacity:.88}
.shelf-home .hero-slide.app .hero-device{right:-8%;width:62%}
.shelf-home .hero-arrow,.shelf-home .hero-dots{display:none}

.category-rail{margin-top:14px}
.category-track{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));min-height:76px;padding:0 8px;border-radius:15px;background:#202124;box-shadow:0 8px 22px rgba(0,0,0,.14);overflow:hidden}
.category-track a,.category-track button{position:relative;min-width:0;background:transparent;color:rgba(255,255,255,.68);display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 6px;border-right:1px solid rgba(255,255,255,.07);font-size:12px;white-space:nowrap}
.category-track>*:last-child{border-right:0}
.category-track a:hover,.category-track button:hover,.category-track .active{color:#fff;background:rgba(255,255,255,.07)}
.category-track .active::before{content:"";position:absolute;left:22%;right:22%;top:0;height:3px;border-radius:0 0 4px 4px;background:#6e8dff}
.category-icon{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:rgba(255,255,255,.08);font-size:16px}
.category-track b{font-size:12px}

.shelf-home .notice-strip{height:46px;margin-top:12px;border-radius:12px;background:#fff;border-color:#e5e7eb;box-shadow:0 4px 12px rgba(20,25,40,.05)}
.shelf-home .quick-actions{margin-top:12px;gap:10px}
.shelf-home .quick-action{min-height:70px;padding:10px 14px;grid-template-columns:42px 1fr;column-gap:10px;border-radius:12px;background:#fff;border-color:#e5e7eb;box-shadow:0 4px 12px rgba(20,25,40,.05)}
.shelf-home .quick-action-icon{width:40px;height:40px;border-radius:11px}
.shelf-home .quick-action-icon img{width:25px;height:25px}
.shelf-home .quick-action b{font-size:13px}
.shelf-home .quick-action small{font-size:10px}

.shelf-home .content-section{padding-top:42px;contain-intrinsic-size:620px}
.shelf-home .section-heading{max-width:none;margin:0 0 16px;text-align:left}
.shelf-home .section-heading .section-kicker{font-size:9px;color:#7185db;letter-spacing:.17em}
.shelf-home .section-heading h2{margin:4px 0 3px;font-size:27px;letter-spacing:-.025em}
.shelf-home .section-heading p{font-size:12px}
.shelf-home .live-layout{display:block}
.shelf-home .live-tabs{display:flex;flex-direction:row;gap:8px;margin-bottom:12px;overflow:auto;scrollbar-width:none}
.shelf-home .live-tabs::-webkit-scrollbar,.shelf-home .match-grid::-webkit-scrollbar,.shelf-home .promotion-track::-webkit-scrollbar,.category-track::-webkit-scrollbar{display:none}
.shelf-home .live-tabs button{flex:0 0 104px;min-height:48px;padding:6px 12px;border-radius:11px;flex-direction:row;background:#fff;border-color:#e2e5ea;box-shadow:none}
.shelf-home .live-tabs button.active{background:#202124;box-shadow:none}
.shelf-home .live-tab-icon{width:28px;height:28px}
.shelf-home .match-panel{min-height:0;padding:0;border:0;background:transparent;box-shadow:none}
.shelf-home .match-panel-head{margin:0 0 10px}
.shelf-home .match-grid{display:flex;gap:14px;overflow-x:auto;padding:2px 2px 10px;scroll-snap-type:x proximity;scrollbar-width:none}
.shelf-home .match-card,.shelf-home .match-skeleton{flex:0 0 calc((100% - 42px)/4);min-width:250px;min-height:174px;padding:15px;border-radius:13px;border:1px solid #e2e5ea;background:#fff;box-shadow:0 7px 18px rgba(22,27,43,.07);scroll-snap-align:start}
.shelf-home .match-meta{padding-bottom:10px;border-bottom:1px solid #eceef2}
.shelf-home .team-row{margin-top:14px}
.shelf-home .team img{width:44px;height:44px}
.shelf-home .promo-card{display:none}
.shelf-home .promotion-carousel{height:auto;aspect-ratio:auto;margin-top:13px;border-radius:0;overflow:visible;background:transparent;box-shadow:none}
.shelf-home .promotion-track{position:static;display:flex;gap:14px;overflow-x:auto;padding:2px 2px 8px;scroll-snap-type:x proximity;scrollbar-width:none}
.shelf-home .promotion-slide{position:relative;inset:auto;flex:0 0 calc((100% - 28px)/3);height:116px;border-radius:13px;opacity:1;visibility:visible;overflow:hidden;box-shadow:0 7px 18px rgba(22,27,43,.08);scroll-snap-align:start}
.shelf-home .promotion-slide img{object-fit:cover}
.shelf-home .promotion-arrow,.shelf-home .promotion-dots{display:none}

.shelf-home .venue-toolbar{margin-bottom:10px}
.shelf-home .venue-scope-filters{padding:3px;border-radius:11px;background:#e7e9ee}
.shelf-home .venue-scope-filters button{min-height:36px;border-radius:8px}
.shelf-home .game-type-filters{justify-content:flex-start;gap:8px;margin-bottom:10px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
.shelf-home .game-type-filters button{flex:0 0 104px;min-height:56px;border-radius:11px;background:#fff;border-color:#e2e5ea;box-shadow:none}
.shelf-home .game-type-filters button.active{background:#202124;box-shadow:none}
.shelf-home .game-type-filter-copy,.shelf-home .game-type-filter-copy b,.shelf-home .game-type-filter-copy small{display:block;min-width:0;white-space:nowrap}
.shelf-home .game-tabs{display:flex;grid-template-columns:none;justify-content:flex-start;gap:10px;margin-bottom:12px;overflow-x:auto;scrollbar-width:none}
.shelf-home .game-tabs button{flex:0 0 190px;height:74px;padding:0 13px;border-radius:12px;background:#fff;border-color:#e2e5ea;box-shadow:0 5px 14px rgba(22,27,43,.06)}
.shelf-home .game-tabs button.active{background:linear-gradient(135deg,#536bdc,#728fff);box-shadow:0 9px 20px rgba(70,92,205,.2)}
.shelf-home .game-showcase{min-height:390px;border-radius:16px;grid-template-columns:42% 58%;border-color:#e2e5ea;background:#fff;box-shadow:0 8px 22px rgba(22,27,43,.08)}
.shelf-home .game-copy{padding:38px 20px 34px 38px}
.shelf-home .game-copy h2{font-size:32px}
.shelf-home .game-copy p{font-size:13px}
.shelf-home .game-visual{min-height:360px;padding:12px 20px 0}
.shelf-home .game-visual img{max-height:370px}
.shelf-home .visual-ring{width:350px;height:350px}

.shelf-home .download-card{min-height:470px;border-radius:16px;border-color:#e2e5ea;background:#fff;box-shadow:0 8px 22px rgba(22,27,43,.08)}
.shelf-home .download-visual{min-height:430px}
.shelf-home .download-copy{padding:48px 50px 38px 28px}
.shelf-home .download-copy h2{font-size:34px}
.shelf-home .service-grid{gap:12px}
.shelf-home .service-grid article{min-height:250px;border-radius:14px;background:#fff;border-color:#e2e5ea;box-shadow:0 6px 18px rgba(22,27,43,.07)}
.shelf-home .site-footer{margin-top:58px;background:#202124}

@media(max-width:1100px){
  .shelf-home .main-nav{gap:13px}.shelf-home .main-nav a{font-size:12px}.shelf-home .brand{width:168px}
  .category-track{overflow-x:auto;display:flex;scrollbar-width:none}.category-track a,.category-track button{flex:0 0 104px}
  .shelf-home .match-card,.shelf-home .match-skeleton{flex-basis:calc((100% - 28px)/3)}
}

/* v3.9.0 — proportions refined from the dedicated MK desktop and mobile layouts. */
.shelf-home main{display:flex;flex-direction:column}
.shelf-home main>.hero{order:1}
.shelf-home main>.category-rail{order:2}
.shelf-home main>#live{order:3}
.shelf-home main>.game-section{order:4}
.shelf-home main>.notice-strip{order:5}
.shelf-home main>.mobile-account-strip{order:6}
.shelf-home main>.quick-actions{order:7}
.shelf-home main>.download-section{order:8}
.shelf-home main>.service-section{order:9}
.shelf-home .hero-slide{height:104px}
.shelf-home .hero-content,.shelf-home .hero-content.light{padding:13px 16px}
.shelf-home .hero-kicker{font-size:7px}
.shelf-home .hero-content h1{margin:4px 0 8px;font-size:18px}
.shelf-home .hero-buttons .large{min-height:28px;padding:0 11px;font-size:9px}
.shelf-home .hero-device,.shelf-home .hero-device.venues{bottom:-20%;height:132%}
.category-track{min-height:54px}
.category-track a,.category-track button{padding-block:5px}
.category-icon{width:26px;height:26px;font-size:14px}
.category-track b{font-size:11px}
.shelf-home .content-section{padding-top:24px}
.shelf-home .section-heading{margin-bottom:12px}
.shelf-home .section-heading h2{font-size:24px}
.shelf-home .section-heading p{font-size:11px}
.shelf-home .game-tabs button{position:relative;isolation:isolate;flex-basis:224px;height:116px;overflow:hidden;background:#fff}
.shelf-home .venue-card-cover{position:absolute;z-index:-1;inset:0;width:100%;height:100%;object-fit:cover;opacity:.2;filter:saturate(.85);transition:opacity var(--transition),transform var(--transition)}
.shelf-home .game-tabs button::before{content:"";position:absolute;z-index:0;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.98) 25%,rgba(255,255,255,.78) 62%,rgba(255,255,255,.28));pointer-events:none}
.shelf-home .game-tabs button>*:not(.venue-card-cover){position:relative;z-index:1}
.shelf-home .game-tabs button:hover .venue-card-cover{opacity:.32;transform:scale(1.04)}
.shelf-home .game-tabs button.active::before{background:linear-gradient(90deg,rgba(55,70,150,.95),rgba(76,95,204,.72),rgba(76,95,204,.25))}
.shelf-home .game-tabs button.active .venue-card-cover{opacity:.46}
.shelf-home .game-tabs .game-tab-icon:not(.venue-card-cover){width:46px;height:46px;flex:0 0 46px}
.shelf-home .notice-strip{margin-top:40px}

@media(max-width:680px){
  .shelf-home{padding-bottom:calc(50px + env(safe-area-inset-bottom))}
  .shelf-home .mobile-app-banner{display:none!important}
  .shelf-home .site-header{top:0}
  .shelf-home .header-inner{height:44px;min-height:44px;gap:6px}
  .shelf-home .mobile-menu-button{display:none!important}
  .shelf-home .brand{width:104px;margin-right:auto}
  .shelf-home .header-actions{gap:6px;margin-left:auto}
  .shelf-home .header-actions .ghost-button.auth-guest{display:flex!important;min-width:48px!important;min-height:30px!important;height:30px;padding:0 10px;border-radius:999px;font-size:11px}
  .shelf-home .header-actions .primary-button.auth-guest{min-width:54px!important;min-height:30px!important;height:30px;padding:0 11px;border-radius:999px;font-size:11px}
  .shelf-home .hero{width:100%;padding:8px 0 0 14px}
  .shelf-home .hero-slides{gap:14px;padding:0 14px 0 0}
  .shelf-home .hero-slide{flex:0 0 calc(100vw - 28px);height:64px;border-radius:9px}
  .shelf-home .hero-content,.shelf-home .hero-content.light{width:64%;padding:8px 12px}
  .shelf-home .hero-kicker,.shelf-home .hero-buttons{display:none}
  .shelf-home .hero-content h1{margin:0;font-size:14px;line-height:1.12;text-shadow:0 1px 5px rgba(0,0,0,.32)}
  .shelf-home .hero-device,.shelf-home .hero-device.venues{right:-2%;bottom:-32%;width:52%;height:150%}
  .shelf-home .hero-slide.app .hero-device{right:-2%;width:52%}
  .shelf-home .category-rail{position:sticky;z-index:95;top:44px;margin-top:8px}
  .shelf-home .category-track{min-height:56px}
  .shelf-home .category-track a,.shelf-home .category-track button{flex:0 0 62px;min-height:56px;padding:4px 3px;gap:1px}
  .shelf-home .category-track .active{color:#202124;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -4px 14px rgba(255,255,255,.12)}
  .shelf-home .category-track .active::before{display:none}
  .shelf-home .category-icon{width:24px;height:24px;background:rgba(255,255,255,.07);font-size:13px}
  .shelf-home .category-track .active .category-icon{background:#fff1e8;box-shadow:0 5px 12px rgba(0,0,0,.1)}
  .shelf-home .category-track b{font-size:9px}
  .shelf-home main>.notice-strip,.shelf-home main>.mobile-account-strip,.shelf-home main>.quick-actions{display:none}
  .shelf-home .content-section{padding-top:13px}
  .shelf-home .section-heading{position:relative;margin-bottom:9px;padding-right:42px}
  .shelf-home .section-heading .section-kicker,.shelf-home .section-heading p{display:none}
  .shelf-home .section-heading h2{margin:0;font-size:18px;line-height:28px}
  .shelf-home .section-heading::after{content:"更多 ›";position:absolute;right:0;top:4px;color:#4e5563;font-size:10px}
  .shelf-home .live-tabs,.shelf-home .match-panel-head{display:none}
  .shelf-home .match-grid{gap:8px;padding:0 0 14px}
  .shelf-home .match-card,.shelf-home .match-skeleton{flex:0 0 calc((100vw - 42px)/2);min-width:0;min-height:138px;padding:10px;border-radius:10px}
  .shelf-home .match-meta{display:block;min-height:32px;padding-bottom:7px;font-size:9px}
  .shelf-home .match-meta span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .shelf-home .match-meta span+span{margin-top:2px}
  .shelf-home .team-row{margin-top:8px}
  .shelf-home .team img{width:31px;height:31px}
  .shelf-home .team b{font-size:9px}
  .shelf-home .score{font-size:12px}
  .shelf-home .promotion-carousel{display:none}
  .shelf-home .game-section{padding-top:10px}
  .shelf-home .game-section .section-heading{margin-bottom:8px}
  .shelf-home .venue-toolbar,.shelf-home .game-type-filters{display:none}
  .shelf-home .game-tabs{gap:8px;margin:0;padding:0 0 14px}
  .shelf-home .game-tabs button{flex:0 0 calc((100vw - 42px)/2);width:auto;min-width:0;height:132px;padding:10px;border-radius:10px;align-items:flex-end}
  .shelf-home .game-tabs .venue-card-cover{z-index:-1;opacity:.72;filter:saturate(.9)}
  .shelf-home .game-tabs button::before{background:linear-gradient(180deg,rgba(16,18,24,.04),rgba(16,18,24,.84))}
  .shelf-home .game-tabs button.active::before{background:linear-gradient(180deg,rgba(42,53,116,.05),rgba(42,53,116,.92))}
  .shelf-home .game-tabs .game-tab-icon:not(.venue-card-cover){position:absolute;left:9px;top:9px;width:34px;height:34px;flex-basis:34px;padding:3px;border-radius:9px;background:rgba(255,255,255,.88)}
  .shelf-home .game-tabs .venue-tab-copy{color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.55)}
  .shelf-home .game-tabs .venue-tab-copy b{max-width:112px;color:#fff;font-size:12px}
  .shelf-home .game-tabs .venue-tab-copy small{color:rgba(255,255,255,.72);font-size:8px}
  .shelf-home .game-showcase{display:none}
  .shelf-home .download-section{padding-top:24px}
  .shelf-home .mobile-bottom-nav{height:calc(50px + env(safe-area-inset-bottom));border-radius:0}
  .shelf-home .mobile-bottom-nav a,.shelf-home .mobile-bottom-nav button{font-size:9px}
  .shelf-home .mobile-bottom-nav button>img,.shelf-home .mobile-bottom-nav a>img{width:20px;height:20px}
}

/* Final mobile detail overrides must remain after the legacy composition block. */
@media(max-width:680px){
  .shelf-home .site-header{box-shadow:0 5px 16px rgba(0,0,0,.18)}
  .shelf-home .hero-slides,.shelf-home .category-track,.shelf-home .match-grid,.shelf-home .game-tabs{-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
  .shelf-home .section-heading::after{content:"左右滑动";top:5px;color:#747b89;font-size:9px;letter-spacing:.02em}
  .shelf-home .match-grid,.shelf-home .game-tabs{scroll-snap-type:x mandatory;scroll-padding-inline:11px}
  .shelf-home .match-card,.shelf-home .game-tabs button{scroll-snap-align:start}
  .shelf-home .match-card{box-shadow:0 5px 14px rgba(26,31,46,.075)}
  .shelf-home .team b{font-size:10px}
  .shelf-home .mobile-bottom-nav{box-shadow:0 -7px 22px rgba(23,29,45,.08)}
  .shelf-home .mobile-bottom-nav a,.shelf-home .mobile-bottom-nav button{font-size:10px;transition:color .18s ease,transform .18s ease}
  .shelf-home .mobile-bottom-nav a:first-child{color:#536bdc;font-weight:700}
  .shelf-home .mobile-bottom-nav a:active,.shelf-home .mobile-bottom-nav button:active{transform:scale(.94)}
}

/* v3.9.1 hotfix: responsive.css exposes the drawer trigger through 980px. */
@media(max-width:980px){
  .shelf-home .mobile-menu-button{display:none!important}
}

/* v3.9.2 — interaction and visual-detail refinement. */
.shelf-home .hero-slide{border:1px solid rgba(255,255,255,.12)}
.shelf-home .hero-content h1{text-shadow:0 2px 10px rgba(5,12,32,.28)}
.shelf-home .category-track a,.shelf-home .category-track button{transition:color .18s ease,background .18s ease,transform .18s ease}
.shelf-home .category-track a:active,.shelf-home .category-track button:active{transform:scale(.96)}
.shelf-home .match-card{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.shelf-home .match-card:hover{transform:translateY(-2px);border-color:#d7dcf0;box-shadow:0 10px 24px rgba(22,27,43,.1)}
.shelf-home .game-tabs{scroll-snap-type:x proximity;overscroll-behavior-inline:contain}
.shelf-home .game-tabs button{scroll-snap-align:start}
.shelf-home .floating-tools{right:max(2px,calc((100vw - var(--container))/2 - 78px))}

@media(max-width:1360px){
  .shelf-home .floating-tools{display:none}
}

@media(min-width:681px) and (max-width:980px){
  .shelf-home .header-inner{height:58px;min-height:58px;gap:12px}
  .shelf-home .brand{width:148px;margin-right:auto}
  .shelf-home .header-actions{gap:8px;margin-left:auto}
  .shelf-home .header-actions .ghost-button.auth-guest{display:flex!important;min-height:36px;padding-inline:16px}
  .shelf-home .header-actions .primary-button.auth-guest{min-height:36px;padding-inline:17px}
  .shelf-home .hero{width:100%;padding:10px 0 0 14px}
  .shelf-home .hero-slider{overflow:hidden}
  .shelf-home .hero-slides{display:flex;gap:12px;overflow-x:auto;padding:0 14px 2px 0;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain}
  .shelf-home .hero-slide{flex:0 0 min(72vw,520px);height:88px;scroll-snap-align:start}
  .shelf-home .hero-content,.shelf-home .hero-content.light{padding:11px 15px}
  .shelf-home .hero-content h1{font-size:17px}
  .shelf-home .hero-buttons .large{min-height:27px}
}

@media(max-width:680px){
  .shelf-home .site-header{box-shadow:0 5px 16px rgba(0,0,0,.18)}
  .shelf-home .hero-slides,.shelf-home .category-track,.shelf-home .match-grid,.shelf-home .game-tabs{-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain}
  .shelf-home .section-heading::after{content:"左右滑动";top:5px;color:#747b89;font-size:9px;letter-spacing:.02em}
  .shelf-home .match-grid,.shelf-home .game-tabs{scroll-snap-type:x mandatory;scroll-padding-inline:11px}
  .shelf-home .match-card,.shelf-home .game-tabs button{scroll-snap-align:start}
  .shelf-home .match-card{box-shadow:0 5px 14px rgba(26,31,46,.075)}
  .shelf-home .team b{font-size:10px}
  .shelf-home .mobile-bottom-nav{box-shadow:0 -7px 22px rgba(23,29,45,.08)}
  .shelf-home .mobile-bottom-nav a,.shelf-home .mobile-bottom-nav button{font-size:10px;transition:color .18s ease,transform .18s ease}
  .shelf-home .mobile-bottom-nav a:first-child{color:#536bdc;font-weight:700}
  .shelf-home .mobile-bottom-nav a:active,.shelf-home .mobile-bottom-nav button:active{transform:scale(.94)}
}

@media(prefers-reduced-motion:reduce){
  .shelf-home .category-track a,.shelf-home .category-track button,.shelf-home .match-card,.shelf-home .mobile-bottom-nav a,.shelf-home .mobile-bottom-nav button{transition:none}
}

@media(max-width:680px){
  .shelf-home{padding-bottom:72px}
  .shelf-home main{display:block}
  .shelf-home .site-header{position:sticky}
  .shelf-home .header-inner{height:60px}
  .shelf-home .mobile-menu-button span{background:#fff}
  .shelf-home .brand{width:138px}
  .shelf-home .hero{width:100%;padding:10px 0 0 11px}
  .shelf-home .hero-slider{overflow:hidden}
  .shelf-home .hero-slides{display:flex;gap:10px;overflow-x:auto;padding:0 11px 8px 0;scroll-snap-type:x mandatory;scrollbar-width:none}
  .shelf-home .hero-slides::-webkit-scrollbar{display:none}
  .shelf-home .hero-slide{flex:0 0 84vw;height:152px;border-radius:13px;scroll-snap-align:start}
  .shelf-home .hero-content,.shelf-home .hero-content.light{width:68%;padding:17px 16px;justify-content:center}
  .shelf-home .hero-content h1{font-size:20px}
  .shelf-home .hero-buttons .large{min-height:32px;padding:0 12px}
  .category-rail{width:100%;margin-top:2px}
  .category-track{border-radius:0;min-height:68px;padding:0;overflow-x:auto}
  .category-track a,.category-track button{flex:0 0 78px;min-height:68px;flex-direction:column;gap:3px;padding:5px;border-right-color:rgba(255,255,255,.06)}
  .category-icon{width:27px;height:27px;font-size:14px}.category-track b{font-size:10px}
  .shelf-home .notice-strip{margin-top:9px}
  .shelf-home .quick-actions{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
  .shelf-home .quick-action{flex:0 0 146px;min-height:64px}
  .shelf-home .content-section{padding-top:32px}
  .shelf-home .section-heading{margin-bottom:13px}
  .shelf-home .section-heading h2{font-size:24px}
  .shelf-home .section-heading p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .shelf-home .live-tabs button{flex-basis:92px;min-width:92px;min-height:46px}
  .shelf-home .match-grid{display:flex;grid-template-columns:none}
  .shelf-home .match-card,.shelf-home .match-skeleton{flex:0 0 82vw;min-width:0;min-height:162px}
  .shelf-home .promotion-slide{flex:0 0 82vw;height:112px}
  .shelf-home .game-section{display:block;padding-top:32px}
  .shelf-home .game-section .section-heading{display:block;width:auto;margin-bottom:13px}
  .shelf-home .game-type-filters{position:static;display:flex;max-height:none;margin:0 0 9px;padding:0 0 4px;flex-direction:row;overflow-x:auto;overflow-y:hidden;border:0;border-radius:0;background:transparent;box-shadow:none}
  .shelf-home .game-type-filters button{width:auto;height:54px;flex:0 0 94px;min-height:54px;padding:5px 8px;flex-direction:row;border:1px solid #e2e5ea;border-radius:11px;background:#fff}
  .shelf-home .game-tabs{display:flex;grid-template-columns:none;margin:0 0 10px;padding:0 0 5px;overflow-x:auto}
  .shelf-home .game-tabs button{flex:0 0 168px;width:auto;min-width:168px;height:70px;padding:8px 10px}
  .shelf-home .game-showcase{min-height:570px;grid-template-columns:1fr;border-radius:14px}
  .shelf-home .game-copy{padding:28px 20px 0}.shelf-home .game-copy h2{font-size:28px}
  .shelf-home .game-visual{min-height:310px}.shelf-home .game-visual img{max-height:310px}
  .shelf-home .download-card{border-radius:14px}.shelf-home .download-visual{min-height:330px}
  .shelf-home .download-copy{padding:24px 18px 30px}.shelf-home .download-copy h2{font-size:28px}
  .shelf-home .service-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
  .shelf-home .service-grid article{flex:0 0 82vw;min-height:240px;scroll-snap-align:start}
  .shelf-home .mobile-drawer{background:#242529;color:#fff}
  .shelf-home .mobile-drawer-head{border-color:rgba(255,255,255,.1)}
  .shelf-home .mobile-drawer nav a{background:rgba(255,255,255,.07);color:#fff}
  .shelf-home .mobile-drawer-head button{background:rgba(255,255,255,.1);color:#fff}
}

/* Keep the dedicated v3.9 mobile composition authoritative over legacy v3.8 breakpoints. */
@media(max-width:680px){
  .shelf-home{padding-bottom:calc(50px + env(safe-area-inset-bottom))}
  .shelf-home main{display:flex;flex-direction:column}
  .shelf-home .mobile-app-banner{display:none!important}
  .shelf-home .site-header{position:sticky;top:0}
  .shelf-home .header-inner{height:44px;min-height:44px;gap:6px}
  .shelf-home .mobile-menu-button{display:none!important}
  .shelf-home .brand{width:104px;margin-right:auto}
  .shelf-home .header-actions{gap:6px;margin-left:auto}
  .shelf-home .header-actions .ghost-button.auth-guest{display:flex!important;min-width:48px!important;min-height:30px!important;height:30px;padding:0 10px;border-radius:999px;font-size:11px}
  .shelf-home .header-actions .primary-button.auth-guest{display:flex!important;min-width:54px!important;min-height:30px!important;height:30px;padding:0 11px;border-radius:999px;font-size:11px}
  .shelf-home .hero{width:100%;padding:8px 0 0 14px}
  .shelf-home .hero-slider{overflow:hidden}
  .shelf-home .hero-slides{display:flex;gap:14px;overflow-x:auto;padding:0 14px 0 0;scroll-snap-type:x mandatory;scrollbar-width:none}
  .shelf-home .hero-slide{flex:0 0 calc(100vw - 28px);height:64px;border-radius:9px;scroll-snap-align:start}
  .shelf-home .hero-content,.shelf-home .hero-content.light{width:64%;padding:8px 12px}
  .shelf-home .hero-kicker,.shelf-home .hero-buttons{display:none}
  .shelf-home .hero-content h1{margin:0;font-size:14px;line-height:1.12;text-shadow:0 1px 5px rgba(0,0,0,.32)}
  .shelf-home .hero-device,.shelf-home .hero-device.venues{right:-2%;bottom:-32%;width:52%;height:150%}
  .shelf-home .hero-slide.app .hero-device{right:-2%;width:52%}
  .shelf-home .category-rail{position:sticky;z-index:95;top:44px;width:100%;margin-top:8px}
  .shelf-home .category-track{min-height:56px;padding:0;border-radius:0}
  .shelf-home .category-track a,.shelf-home .category-track button{flex:0 0 62px;min-height:56px;padding:4px 3px;gap:1px;flex-direction:column}
  .shelf-home .category-track .active{color:#202124;background:#fff;border-radius:18px 18px 0 0;box-shadow:0 -4px 14px rgba(255,255,255,.12)}
  .shelf-home .category-track .active::before{display:none}
  .shelf-home .category-icon{width:24px;height:24px;background:rgba(255,255,255,.07);font-size:13px}
  .shelf-home .category-track .active .category-icon{background:#fff1e8;box-shadow:0 5px 12px rgba(0,0,0,.1)}
  .shelf-home .category-track b{font-size:9px}
  .shelf-home main>.notice-strip,.shelf-home main>.mobile-account-strip,.shelf-home main>.quick-actions{display:none}
  .shelf-home .content-section{padding-top:13px}
  .shelf-home .section-heading{position:relative;margin-bottom:9px;padding-right:42px}
  .shelf-home .section-heading .section-kicker,.shelf-home .section-heading p{display:none}
  .shelf-home .section-heading h2{margin:0;font-size:18px;line-height:28px}
  .shelf-home .section-heading::after{content:"左右滑动";position:absolute;right:0;top:5px;color:#747b89;font-size:9px;letter-spacing:.02em}
  .shelf-home .live-tabs,.shelf-home .match-panel-head{display:none}
  .shelf-home .match-grid{display:flex;gap:8px;padding:0 0 14px;scroll-snap-type:x mandatory;scroll-padding-inline:11px;overscroll-behavior-inline:contain}
  .shelf-home .match-card,.shelf-home .match-skeleton{flex:0 0 calc((100vw - 42px)/2);min-width:0;min-height:138px;padding:10px;border-radius:10px}
  .shelf-home .match-meta{display:block;min-height:32px;padding-bottom:7px;font-size:9px}
  .shelf-home .match-meta span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .shelf-home .match-meta span+span{margin-top:2px}
  .shelf-home .team-row{margin-top:8px}
  .shelf-home .team img{width:31px;height:31px}
  .shelf-home .team b{font-size:10px}
  .shelf-home .score{font-size:12px}
  .shelf-home .promotion-carousel{display:none}
  .shelf-home .game-section{display:block;padding-top:10px}
  .shelf-home .game-section .section-heading{display:block;width:auto;margin-bottom:8px}
  .shelf-home .venue-toolbar,.shelf-home .game-type-filters{display:none}
  .shelf-home .game-tabs{display:flex;gap:8px;margin:0;padding:0 0 14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:11px;overscroll-behavior-inline:contain}
  .shelf-home .game-tabs button{flex:0 0 calc((100vw - 42px)/2);width:auto;min-width:0;height:132px;padding:10px;border-radius:10px;align-items:flex-end;scroll-snap-align:start}
  .shelf-home .game-tabs .venue-card-cover{z-index:-1;opacity:.72;filter:saturate(.9)}
  .shelf-home .game-tabs button::before{background:linear-gradient(180deg,rgba(16,18,24,.04),rgba(16,18,24,.84))}
  .shelf-home .game-tabs button.active::before{background:linear-gradient(180deg,rgba(42,53,116,.05),rgba(42,53,116,.92))}
  .shelf-home .game-tabs .game-tab-icon:not(.venue-card-cover){position:absolute;left:9px;top:9px;width:34px;height:34px;flex-basis:34px;padding:3px;border-radius:9px;background:rgba(255,255,255,.88)}
  .shelf-home .game-tabs .venue-tab-copy{color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.55)}
  .shelf-home .game-tabs .venue-tab-copy b{max-width:112px;color:#fff;font-size:12px}
  .shelf-home .game-tabs .venue-tab-copy small{color:rgba(255,255,255,.72);font-size:8px}
  .shelf-home .game-showcase{display:none}
  .shelf-home .download-section{padding-top:24px}
  .shelf-home .mobile-bottom-nav{height:calc(50px + env(safe-area-inset-bottom));border-radius:0;box-shadow:0 -7px 22px rgba(23,29,45,.08)}
  .shelf-home .mobile-bottom-nav a,.shelf-home .mobile-bottom-nav button{font-size:10px;transition:color .18s ease,transform .18s ease}
  .shelf-home .mobile-bottom-nav a:first-child{color:#536bdc;font-weight:700}
  .shelf-home .mobile-bottom-nav a:active,.shelf-home .mobile-bottom-nav button:active{transform:scale(.94)}
  .shelf-home .mobile-bottom-nav button>img,.shelf-home .mobile-bottom-nav a>img{width:20px;height:20px}
}

/* v4.0.0 — stronger hero hierarchy, verified-first venues and refined mobile rhythm. */
.shelf-home .hero-slides{display:grid;grid-template-columns:minmax(0,1.72fr) minmax(300px,.8fr);grid-template-rows:repeat(2,94px);gap:12px}
.shelf-home .hero-slide{height:auto;min-height:0}
.shelf-home .hero-slide.hero-primary{grid-row:1 / span 2}
.shelf-home .hero-slide.hero-primary .hero-content,.shelf-home .hero-slide.hero-primary .hero-content.light{width:61%;padding:22px 26px}
.shelf-home .hero-slide.hero-primary .hero-heading{margin:5px 0 12px;font-size:28px;line-height:1.08;letter-spacing:-.025em}
.shelf-home .hero-slide.hero-primary .hero-buttons .large{min-height:34px;padding:0 15px;font-size:11px}
.shelf-home .hero-slide.hero-secondary .hero-content,.shelf-home .hero-slide.hero-secondary .hero-content.light{width:66%;padding:11px 14px}
.shelf-home .hero-slide.hero-secondary .hero-kicker{font-size:6px}
.shelf-home .hero-slide.hero-secondary .hero-heading{margin:3px 0 7px;font-size:16px;line-height:1.08;color:#fff}
.shelf-home .hero-slide.app .hero-device{right:-4%;bottom:-34%;width:48%;height:166%;border-radius:14px}
.shelf-home .hero-slide.venues .hero-device{right:-4%;bottom:-34%;width:52%;height:160%}
.shelf-home .venue-toolbar{display:flex;align-items:center;gap:10px}
.shelf-home .venue-result-count{margin-left:auto}
.shelf-home .venue-scroll-controls{display:flex;gap:6px}
.shelf-home .venue-scroll-controls button{width:36px;height:36px;border:1px solid #dfe3eb;border-radius:10px;background:#fff;color:#4f63c8;font-size:24px;line-height:1;box-shadow:0 4px 12px rgba(25,31,48,.06);transition:transform .18s ease,border-color .18s ease}
.shelf-home .venue-scroll-controls button:hover{transform:translateY(-1px);border-color:#aeb9ea}
.shelf-home .game-tabs{scroll-behavior:smooth;padding-right:4px}
.shelf-home .game-type-filter-copy small{color:#47805e;font-weight:700}
.shelf-home .download-visual{padding:18px}
.shelf-home .download-visual img{max-height:430px;border-radius:18px}
.shelf-home .device-glow{width:390px;height:390px;background:radial-gradient(circle,rgba(91,105,224,.14),transparent 70%)}

@media(max-width:980px){
  .shelf-home .hero-slides{display:flex;grid-template-columns:none;grid-template-rows:none;gap:12px;overflow-x:auto;padding:0 14px 4px 0;scroll-snap-type:x mandatory;scrollbar-width:none}
  .shelf-home .hero-slide,.shelf-home .hero-slide.hero-primary{grid-row:auto;flex:0 0 min(76vw,640px);height:128px;scroll-snap-align:start}
  .shelf-home .hero-slide.hero-primary .hero-content,.shelf-home .hero-slide.hero-primary .hero-content.light{width:64%;padding:15px 18px}
  .shelf-home .hero-slide.hero-primary .hero-heading{font-size:21px;margin:4px 0 9px}
  .shelf-home .hero-slide.hero-secondary .hero-heading{font-size:18px}
}

@media(max-width:680px){
  .shelf-home{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
  .shelf-home .header-inner{height:52px;min-height:52px}
  .shelf-home .brand{width:112px}
  .shelf-home .header-actions .ghost-button.auth-guest,.shelf-home .header-actions .primary-button.auth-guest{min-height:38px!important;height:38px!important;padding-inline:12px!important;font-size:12px}
  .shelf-home .hero{padding:10px 0 0 11px}
  .shelf-home .hero-slides{gap:10px;padding:0 11px 5px 0}
  .shelf-home .hero-slide,.shelf-home .hero-slide.hero-primary{flex:0 0 calc(100vw - 32px);height:118px;border-radius:12px}
  .shelf-home .hero-slide.hero-primary .hero-content,.shelf-home .hero-slide.hero-primary .hero-content.light,.shelf-home .hero-slide.hero-secondary .hero-content,.shelf-home .hero-slide.hero-secondary .hero-content.light{width:62%;padding:12px 14px}
  .shelf-home .hero-slide .hero-kicker{display:block;font-size:6px}
  .shelf-home .hero-slide.hero-primary .hero-heading,.shelf-home .hero-slide.hero-secondary .hero-heading{margin:3px 0 8px;font-size:18px;line-height:1.08}
  .shelf-home .hero-slide .hero-buttons{display:flex}
  .shelf-home .hero-slide .hero-buttons .large{min-height:28px;padding:0 11px;font-size:9px}
  .shelf-home .hero-slide.app .hero-device{right:-4%;bottom:-28%;width:48%;height:150%;border-radius:10px}
  .shelf-home .hero-slide.venues .hero-device{right:-5%;bottom:-29%;width:52%;height:150%}
  .shelf-home .category-rail{top:52px;margin-top:5px}
  .shelf-home .section-heading::after{content:none}
  .shelf-home .game-section .section-heading::after,.shelf-home .service-section .section-heading::after{content:"左右滑动"}
  .shelf-home .venue-scroll-controls{display:none}
  .shelf-home .game-tabs button{flex-basis:calc((100vw - 42px)/2);height:136px}
  .shelf-home .download-visual{min-height:300px;padding:12px 14px 0}
  .shelf-home .download-visual img{width:100%;height:auto;max-height:286px;object-fit:contain;object-position:center;border-radius:14px}
  .shelf-home .device-glow{width:260px;height:260px}
  .shelf-home .download-copy{padding-top:20px}
  .shelf-home .mobile-bottom-nav{height:calc(56px + env(safe-area-inset-bottom))}
}

@media(prefers-reduced-motion:reduce){
  .shelf-home .venue-scroll-controls button{transition:none}
  .shelf-home .game-tabs{scroll-behavior:auto}
}

/* v4.2.0 — venue browser hierarchy, shelf feedback and touch refinements. */
.shelf-home .game-section{position:relative}
.shelf-home .venue-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:14px;padding:0 2px}
.shelf-home .venue-heading-copy{min-width:0}
.shelf-home .venue-heading h2{margin:4px 0 4px;font-size:26px}
.shelf-home .venue-heading p{max-width:720px;line-height:1.55}
.shelf-home .venue-health{display:flex;flex:0 0 auto;align-items:center;gap:8px}
.shelf-home .venue-health span{min-width:88px;padding:8px 12px;border:1px solid #e2e6f0;border-radius:12px;background:rgba(255,255,255,.72);text-align:left}
.shelf-home .venue-health b,.shelf-home .venue-health small{display:block}
.shelf-home .venue-health b{color:#4058ca;font-size:17px;line-height:1}
.shelf-home .venue-health small{margin-top:5px;color:#858da0;font-size:9px}
.shelf-home .venue-browser{position:relative;padding:14px 14px 8px;border:1px solid #e1e5ee;border-radius:18px;background:rgba(255,255,255,.66);box-shadow:0 8px 24px rgba(30,39,70,.055)}
.shelf-home .venue-toolbar{min-height:38px;margin-bottom:10px}
.shelf-home .venue-scope-filters{gap:2px;padding:3px;border:1px solid #e1e4eb;border-radius:11px;background:#eef0f4}
.shelf-home .venue-scope-filters button{min-height:34px;padding:0 14px;border-radius:8px;color:#737b8e;font-size:11px;transition:background .18s ease,color .18s ease,box-shadow .18s ease}
.shelf-home .venue-scope-filters button:hover{color:#4058ca}
.shelf-home .venue-scope-filters button.active{background:#fff;color:#4058ca;box-shadow:0 4px 12px rgba(39,49,86,.09)}
.shelf-home .venue-result-count{display:inline-flex;align-items:center;margin-left:auto;color:#7c8496;font-size:10px;white-space:nowrap}
.shelf-home .venue-result-count::before{content:"";width:6px;height:6px;margin-right:6px;border-radius:50%;background:#25b575;box-shadow:0 0 0 4px rgba(37,181,117,.1)}
.shelf-home .venue-scroll-controls{display:flex;gap:6px}
.shelf-home .venue-scroll-controls button{width:36px;height:36px;border:1px solid #dfe3eb;border-radius:10px;background:#fff;color:#4058ca;font-size:23px;line-height:1;box-shadow:0 4px 12px rgba(25,31,48,.06);transition:transform .18s ease,border-color .18s ease,opacity .18s ease}
.shelf-home .venue-scroll-controls button:hover:not(:disabled){transform:translateY(-1px);border-color:#aeb9ea}
.shelf-home .venue-scroll-controls button:disabled{cursor:default;opacity:.32;box-shadow:none}
.shelf-home .game-type-filters{display:flex;justify-content:flex-start;gap:7px;margin:0 0 11px;padding:0 0 2px;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
.shelf-home .game-type-filters::-webkit-scrollbar{display:none}
.shelf-home .game-type-filters button{flex:0 0 112px;min-width:112px;height:50px;min-height:50px;padding:0 10px;border:1px solid #e2e5ec;border-radius:11px;background:#fff;color:#646d80;box-shadow:none}
.shelf-home .game-type-filters button:hover{border-color:#cbd2e8;background:#fafbff}
.shelf-home .game-type-filters button.active{border-color:#24262b;background:#24262b;color:#fff;box-shadow:0 7px 16px rgba(26,29,37,.14)}
.shelf-home .game-type-filter-icon{width:28px;height:28px;flex:0 0 28px}
.shelf-home .game-type-filter-copy b{font-size:12px}
.shelf-home .game-type-filter-copy small{margin-top:2px;color:#3f8b62;font-size:9px;font-weight:750}
.shelf-home .game-type-filters button.active .game-type-filter-copy small{color:#9ee3b9}
.shelf-home .venue-shelf-shell{position:relative;min-width:0;overflow:hidden}
.shelf-home .venue-shelf-shell::before,.shelf-home .venue-shelf-shell::after{content:"";position:absolute;z-index:6;top:0;bottom:9px;width:34px;pointer-events:none;transition:opacity .18s ease}
.shelf-home .venue-shelf-shell::before{left:0;background:linear-gradient(90deg,rgba(247,248,251,.98),rgba(247,248,251,0))}
.shelf-home .venue-shelf-shell::after{right:0;background:linear-gradient(270deg,rgba(247,248,251,.98),rgba(247,248,251,0))}
.shelf-home .venue-shelf-shell.is-at-start::before,.shelf-home .venue-shelf-shell.is-at-end::after{opacity:0}
.shelf-home .game-tabs{display:flex;justify-content:flex-start;gap:10px;margin:0;padding:2px 38px 12px 2px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x proximity;scroll-padding-inline:2px;scrollbar-width:none}
.shelf-home .game-tabs::-webkit-scrollbar{display:none}
.shelf-home .game-tabs button{position:relative;isolation:isolate;flex:0 0 232px;width:232px;min-width:232px;height:108px;padding:14px;align-items:flex-end;justify-content:flex-start;gap:10px;overflow:hidden;border:1px solid #e0e4ec;border-radius:14px;background:#fff;box-shadow:0 5px 14px rgba(24,30,48,.055);scroll-snap-align:start;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}
.shelf-home .game-tabs button:hover{transform:translateY(-2px);border-color:#bac5ed;box-shadow:0 10px 22px rgba(24,35,79,.11)}
.shelf-home .game-tabs button::before{content:"";position:absolute;z-index:0;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.08) 2%,rgba(255,255,255,.84) 59%,rgba(255,255,255,.98) 100%);pointer-events:none}
.shelf-home .game-tabs button.active{border-color:#5269db;background:#fff;box-shadow:0 0 0 2px rgba(82,105,219,.13),0 10px 23px rgba(58,77,166,.14)}
.shelf-home .game-tabs button.active::before{background:linear-gradient(180deg,rgba(41,56,132,.08),rgba(48,64,146,.79) 62%,rgba(42,56,132,.98) 100%)}
.shelf-home .game-tabs button:focus-visible,.shelf-home .game-type-filters button:focus-visible,.shelf-home .venue-scope-filters button:focus-visible,.shelf-home .venue-scroll-controls button:focus-visible{outline:3px solid rgba(83,107,220,.28);outline-offset:2px}
.shelf-home .venue-card-cover{position:absolute;z-index:-1;inset:0;width:100%;height:100%;object-fit:cover;opacity:.34;filter:saturate(.92) contrast(.96);transition:opacity .2s ease,transform .28s ease}
.shelf-home .game-tabs button:hover .venue-card-cover{opacity:.46;transform:scale(1.035)}
.shelf-home .game-tabs button.active .venue-card-cover{opacity:.58}
.shelf-home .game-tabs button>*:not(.venue-card-cover){position:relative;z-index:1}
.shelf-home .game-tabs .game-tab-icon:not(.venue-card-cover){width:42px;height:42px;flex:0 0 42px;padding:4px;border:1px solid rgba(117,128,165,.16);border-radius:11px;background:rgba(255,255,255,.91);object-fit:contain;box-shadow:0 5px 12px rgba(25,31,48,.08)}
.shelf-home .game-tabs .venue-monogram{padding:0;background:linear-gradient(145deg,hsl(var(--venue-hue) 72% 96%),hsl(var(--venue-hue) 66% 88%))}
.shelf-home .venue-tab-copy{min-width:0;padding-bottom:1px;text-shadow:none}
.shelf-home .venue-tab-copy b{max-width:122px;color:#202635;font-size:14px}
.shelf-home .venue-tab-copy small{position:relative;margin-top:5px;padding-left:9px;color:#727b8c;font-size:9px}
.shelf-home .venue-tab-copy small::before{content:"";position:absolute;left:0;top:50%;width:5px;height:5px;border-radius:50%;background:#28b778;transform:translateY(-50%)}
.shelf-home .game-tabs button.unavailable .venue-tab-copy small::before{background:#a9afba}
.shelf-home .game-tabs button.active .venue-tab-copy b{color:#fff}
.shelf-home .game-tabs button.active .venue-tab-copy small{color:rgba(255,255,255,.76)}
.shelf-home .venue-enter{position:absolute!important;z-index:3!important;top:10px;right:10px;margin:0;padding:5px 8px;border:1px solid rgba(82,105,219,.13);border-radius:999px;background:rgba(255,255,255,.86);color:#4058ca;font-size:9px;line-height:1;box-shadow:0 3px 9px rgba(31,39,67,.06);backdrop-filter:blur(8px)}
.shelf-home .game-tabs button.active .venue-enter{border-color:rgba(255,255,255,.22);background:rgba(255,255,255,.92);color:#4058ca}
.shelf-home .venue-shelf-progress{height:3px;margin:0 2px;border-radius:999px;background:#e4e7ee;overflow:hidden}
.shelf-home .venue-shelf-progress span{display:block;width:22%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#536bdc,#7f91ec);transition:width .16s ease}
.shelf-home .venue-empty-state{flex:1 0 100%;min-height:108px;border-radius:13px;background:rgba(255,255,255,.78)}

@media(max-width:980px){
  .shelf-home .venue-heading{align-items:center}
  .shelf-home .venue-health span{min-width:76px;padding:7px 10px}
  .shelf-home .game-tabs button{flex-basis:210px;width:210px;min-width:210px}
}

@media(max-width:680px){
  .shelf-home .game-section{padding-top:12px}
  .shelf-home .game-section .venue-heading{display:flex;width:auto;margin-bottom:8px;padding:0 1px 0 0;align-items:center}
  .shelf-home .game-section .venue-heading::after{content:none}
  .shelf-home .venue-heading-copy .section-kicker,.shelf-home .venue-heading-copy p{display:none}
  .shelf-home .venue-heading h2{margin:0;font-size:18px;line-height:24px}
  .shelf-home .venue-health{gap:4px}
  .shelf-home .venue-health span{min-width:56px;padding:5px 7px;border-radius:9px;background:#fff}
  .shelf-home .venue-health b{font-size:13px}
  .shelf-home .venue-health small{margin-top:3px;font-size:7px}
  .shelf-home .venue-browser{padding:9px 9px 7px;border-radius:14px;box-shadow:0 5px 15px rgba(30,39,70,.045)}
  .shelf-home .venue-toolbar{display:flex;min-height:32px;margin-bottom:8px;gap:7px}
  .shelf-home .venue-scope-filters{display:flex;flex:1;min-width:0;padding:2px}
  .shelf-home .venue-scope-filters button{min-width:0;min-height:30px;padding:0 7px;font-size:9px}
  .shelf-home .venue-result-count{display:inline-flex;margin-left:0;font-size:8px}
  .shelf-home .venue-result-count::before{width:5px;height:5px;margin-right:4px;box-shadow:0 0 0 3px rgba(37,181,117,.09)}
  .shelf-home .venue-scroll-controls{display:none}
  .shelf-home .game-type-filters{position:static;display:flex;max-height:none;margin:0 0 8px;padding:0 0 2px;flex-direction:row;overflow-x:auto;overflow-y:hidden;border:0;border-radius:0;background:transparent;box-shadow:none}
  .shelf-home .game-type-filters button{width:auto;height:42px;min-height:42px;flex:0 0 82px;min-width:82px;padding:0 8px;flex-direction:row;gap:5px;border:1px solid #e2e5ec;border-radius:10px;background:#fff}
  .shelf-home .game-type-filter-icon{width:22px;height:22px;flex-basis:22px}
  .shelf-home .game-type-filter-copy b{font-size:10px}
  .shelf-home .game-type-filter-copy small{font-size:7px}
  .shelf-home .venue-shelf-shell::before,.shelf-home .venue-shelf-shell::after{width:20px;bottom:7px}
  .shelf-home .game-tabs{display:flex;gap:8px;margin:0;padding:1px 20px 9px 1px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:1px}
  .shelf-home .game-tabs button{flex:0 0 calc((100vw - 58px)/2);width:auto;min-width:0;height:118px;padding:10px;border-radius:11px;align-items:flex-end;gap:7px;scroll-snap-align:start}
  .shelf-home .game-tabs button:hover{transform:none}
  .shelf-home .game-tabs .venue-card-cover{z-index:-1;opacity:.68;filter:saturate(.92)}
  .shelf-home .game-tabs button::before{background:linear-gradient(180deg,rgba(15,18,26,.02),rgba(15,18,26,.86))}
  .shelf-home .game-tabs button.active::before{background:linear-gradient(180deg,rgba(42,53,116,.03),rgba(42,53,116,.94))}
  .shelf-home .game-tabs .game-tab-icon:not(.venue-card-cover){position:absolute;left:9px;top:9px;width:34px;height:34px;flex:0 0 34px;padding:3px;border-radius:9px}
  .shelf-home .game-tabs .venue-tab-copy{padding:0;color:#fff;text-shadow:0 1px 4px rgba(0,0,0,.55)}
  .shelf-home .game-tabs .venue-tab-copy b{max-width:108px;color:#fff;font-size:12px}
  .shelf-home .game-tabs .venue-tab-copy small{margin-top:4px;color:rgba(255,255,255,.76);font-size:8px}
  .shelf-home .venue-enter{display:block;top:9px;right:9px;padding:5px 7px;font-size:8px}
  .shelf-home .venue-shelf-progress{height:2px;margin-inline:1px}
  .shelf-home .game-showcase{display:none}
}

@media(max-width:390px){
  .shelf-home .venue-result-count{display:none}
  .shelf-home .venue-scope-filters button{font-size:9px}
  .shelf-home .game-tabs button{flex-basis:calc((100vw - 54px)/2)}
}

@media(prefers-reduced-motion:reduce){
  .shelf-home .game-tabs button,.shelf-home .venue-card-cover,.shelf-home .venue-shelf-progress span{transition:none}
}

/* v4.3.0 — desktop shelf alignment and compact mobile interaction pass. */
.shelf-home #game-center,
.shelf-home #offers,
.shelf-home #download,
.shelf-home #service {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

@media(min-width:1181px){
  .shelf-home .game-tabs button {
    flex-basis: calc((100% - 2px) / 5);
    width: calc((100% - 2px) / 5);
    min-width: calc((100% - 2px) / 5);
  }
}

@media(min-width:681px) and (max-width:1180px){
  .shelf-home .game-tabs button {
    flex-basis: calc(100% / 4);
    width: calc(100% / 4);
    min-width: calc(100% / 4);
  }
}

@media(max-width:680px){
  .shelf-home #game-center,
  .shelf-home #offers,
  .shelf-home #download,
  .shelf-home #service {
    scroll-margin-top: 116px;
  }

  .shelf-home .category-rail {
    overflow: hidden;
  }

  .shelf-home .category-rail::after {
    content: "";
    position: absolute;
    z-index: 3;
    top: 0;
    right: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(90deg, rgba(32,33,36,0), #202124 88%);
    pointer-events: none;
  }

  .shelf-home .download-section {
    padding-top: 18px;
  }

  .shelf-home .download-card {
    min-height: 0;
  }

  .shelf-home .download-visual {
    min-height: 220px;
    height: 220px;
    padding: 8px 12px 0;
    overflow: hidden;
  }

  .shelf-home .download-visual img {
    width: 100%;
    height: 100%;
    max-height: 218px;
    object-fit: contain;
    object-position: center bottom;
  }

  .shelf-home .download-copy {
    padding: 18px 16px 22px;
  }

  .shelf-home .download-copy h2 {
    margin: 5px 0 9px;
    font-size: 25px;
    line-height: 1.16;
  }

  .shelf-home .download-copy > p {
    margin-bottom: 15px;
    font-size: 12px;
    line-height: 1.55;
  }

  .shelf-home .download-platforms {
    gap: 8px;
  }

  .shelf-home .download-platform {
    height: 58px;
  }

  .shelf-home .download-tips {
    margin-top: 14px;
  }

  .shelf-home .version-line {
    margin-top: 13px;
    padding-top: 11px;
  }

  .shelf-home .member-center-mask {
    overflow: hidden;
  }

  .shelf-home .member-center {
    display: flex;
    max-height: 92dvh;
    flex-direction: column;
  }

  .shelf-home .member-center-head {
    flex: 0 0 auto;
    padding: 15px 16px 13px;
  }

  .shelf-home .member-center-head h2 {
    margin-top: 2px;
    font-size: 21px;
  }

  .shelf-home .member-center-layout {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
  }

  .shelf-home .member-center-tabs {
    flex: 0 0 auto;
    gap: 3px;
    padding: 7px 8px;
    overflow: hidden;
    scrollbar-width: none;
  }

  .shelf-home .member-center-tabs::-webkit-scrollbar {
    display: none;
  }

  .shelf-home .member-center-tabs button {
    min-width: 0;
    min-height: 36px;
    flex: 1 1 0;
    padding: 0 4px;
    border-radius: 10px;
    font-size: 10px;
    text-align: center;
  }

  .shelf-home .member-center-content {
    min-height: 0;
    padding: 12px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .shelf-home .member-page-head {
    margin-bottom: 12px;
    flex-direction: row;
    align-items: center;
  }

  .shelf-home .member-page-head h3 {
    margin-bottom: 3px;
    font-size: 18px;
  }

  .shelf-home .member-page-head p {
    max-width: 220px;
    font-size: 10px;
    line-height: 1.45;
  }

  .shelf-home .member-page-actions {
    flex: 0 0 auto;
  }

  .shelf-home .member-page-actions .member-secondary {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 10px;
  }

  .shelf-home .member-card-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }

  .shelf-home .member-card-grid .member-stat-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .shelf-home .member-stat-card {
    min-height: 112px;
    padding: 13px;
  }

  .shelf-home .member-stat-card b {
    margin: 8px 0 4px;
    font-size: 20px;
  }

  .shelf-home .member-panel {
    margin-top: 10px;
    padding: 12px;
  }

  .shelf-home .member-form-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .shelf-home .member-form-actions > *:only-child,
  .shelf-home .member-form-actions [data-transfer-all] {
    grid-column: 1 / -1;
  }
}

@supports not (height:100dvh){
  @media(max-width:680px){
    .shelf-home .member-center {max-height:92vh}
  }
}

/* v4.3.1 — keep authenticated mobile headers free of guest actions. */
body.shelf-home .header-actions button.auth-guest[hidden],
body.shelf-home .drawer-actions button.auth-guest[hidden] {
  display: none !important;
}

/* v4.4.0 — denser mobile home flow and a complete five-item action dock. */
@media(min-width:681px){
  .shelf-home .game-section {
    padding-top: 20px;
  }
}

@media(max-width:680px){
  .shelf-home {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .shelf-home .hero {
    padding-top: 7px;
  }

  .shelf-home .hero-slides {
    padding-bottom: 3px;
  }

  .shelf-home .hero-slide,
  .shelf-home .hero-slide.hero-primary {
    height: 96px;
  }

  .shelf-home .hero-slide.hero-primary .hero-content,
  .shelf-home .hero-slide.hero-primary .hero-content.light,
  .shelf-home .hero-slide.hero-secondary .hero-content,
  .shelf-home .hero-slide.hero-secondary .hero-content.light {
    padding: 9px 13px;
  }

  .shelf-home .hero-slide.hero-primary .hero-heading,
  .shelf-home .hero-slide.hero-secondary .hero-heading {
    margin-bottom: 6px;
    font-size: 16px;
  }

  .shelf-home .hero-slide .hero-buttons .large {
    min-height: 25px;
    padding-inline: 10px;
    font-size: 8px;
  }

  .shelf-home .hero-slide.app .hero-device,
  .shelf-home .hero-slide.venues .hero-device {
    bottom: -31%;
    height: 154%;
  }

  .shelf-home .category-rail {
    margin-top: 4px;
  }

  .shelf-home .game-section {
    padding-top: 9px;
  }

  .shelf-home .mobile-bottom-nav {
    height: calc(60px + env(safe-area-inset-bottom));
    padding-inline: max(4px, env(safe-area-inset-left)) max(4px, env(safe-area-inset-right));
    grid-template-columns: repeat(5,minmax(0,1fr));
    background: rgba(255,255,255,.97);
  }

  .shelf-home .mobile-bottom-nav a,
  .shelf-home .mobile-bottom-nav button {
    min-width: 0;
    color: #687083;
  }

  .shelf-home .mobile-bottom-nav a[aria-current="page"] {
    color: #4058ca;
    font-weight: 750;
  }

  .shelf-home .mobile-bottom-nav .mobile-finance-action {
    color: #4058ca;
    font-weight: 800;
  }

  .shelf-home .mobile-bottom-nav .mobile-finance-action > span {
    width: 34px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(82,105,219,.14);
    border-radius: 11px;
    background: linear-gradient(145deg,#f2f5ff,#e4eaff);
    box-shadow: 0 5px 12px rgba(64,88,202,.12);
  }

  .shelf-home .mobile-bottom-nav .mobile-finance-action > span img {
    width: 21px;
    height: 21px;
  }

  .shelf-home .mobile-bottom-nav .mobile-finance-action > em,
  .shelf-home .mobile-bottom-nav #mobileMemberAction > em {
    font-style: normal;
  }
}
