/* TapHub Desktop v6.6.6 — independent opt-in layout; mobile geometry untouched. */
#app .th666-side,#app .th666-right,#app .th666-search,#app .th666-extra{display:none!important}
@media (min-width:900px){
html[data-taphub-layout="desktop"]{--desk-bg:#101112;--desk-side:#151618;--desk-panel:#1b1d1f;--desk-line:#2d3032;--desk-text:#f5f6f4;--desk-muted:#a4aaa5;--desk-accent:#d9fa66;background:var(--desk-bg)!important}
html[data-taphub-layout="desktop"][data-taphub-theme="light"]{--desk-bg:#f3f5f3;--desk-side:#fff;--desk-panel:#fff;--desk-line:#e2e6e1;--desk-text:#191c19;--desk-muted:#57615a}
html[data-taphub-layout="desktop"] body{background:var(--desk-bg)!important}
html[data-taphub-layout="desktop"] #app.phone-shell{width:100%!important;max-width:1600px!important;min-height:100dvh!important;background:var(--desk-bg)!important;display:grid!important;grid-template-columns:220px minmax(0,1fr);grid-template-rows:72px minmax(0,1fr);gap:0!important;padding:0!important;overflow:visible!important;align-items:start!important;color:var(--desk-text)!important}
html[data-taphub-layout="desktop"] #app.phone-shell:has(.th666-right){grid-template-columns:220px minmax(0,1fr) 278px}
html[data-taphub-layout="desktop"] #app>.app-header.th6-header{grid-column:2/-1;grid-row:1;position:sticky!important;top:0!important;height:72px!important;min-height:72px!important;max-height:72px!important;align-self:start;background:var(--desk-bg)!important;border-bottom:1px solid var(--desk-line)!important}
html[data-taphub-layout="desktop"] #app>.app-header.th6-header .header-inner{height:72px!important;min-height:72px!important;max-height:72px!important;padding:12px 28px!important;gap:16px!important;justify-content:space-between!important}
html[data-taphub-layout="desktop"] #app>.app-header .brand{display:none!important}
html[data-taphub-layout="desktop"] #app .th666-search{display:flex!important;align-items:center;gap:6px;max-width:420px;width:100%;min-width:0;margin:0!important}
html[data-taphub-layout="desktop"] #app .th666-search label{display:flex;align-items:center;gap:8px;flex:1;min-width:0;background:var(--desk-panel);border:1px solid var(--desk-line);border-radius:10px;padding:8px 11px;color:var(--desk-muted)}
html[data-taphub-layout="desktop"] #app .th666-search input{min-width:0;width:100%;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--desk-text)!important;padding:0!important;height:24px!important;font-size:14px!important}
html[data-taphub-layout="desktop"] #app .th666-search button{background:var(--desk-accent);color:#151613;border:0;border-radius:9px;padding:11px 14px;font-weight:700}
html[data-taphub-layout="desktop"] #app .th666-search svg{width:18px;height:18px;flex:none;stroke:currentColor}
html[data-taphub-layout="desktop"] #app .th6-header .header-icon,html[data-taphub-layout="desktop"] #app .th6-header .th6-avatar{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
html[data-taphub-layout="desktop"] #app .th6-avatar img{width:36px!important;height:36px!important}
html[data-taphub-layout="desktop"] #app>.bottom-nav{display:none!important}
html[data-taphub-layout="desktop"] #app>.th666-side{display:flex!important;grid-row:1/3;grid-column:1;position:sticky;top:0;height:100dvh;overflow:auto;align-self:start;flex-direction:column;gap:8px;padding:25px 14px 18px;background:var(--desk-side);border-right:1px solid var(--desk-line);color:var(--desk-text)}
html[data-taphub-layout="desktop"] #app .th666-logo{font:900 34px/1 Arial,sans-serif;letter-spacing:-2px;color:var(--desk-text);text-align:left;background:none;border:0;padding:0 10px;margin:0 0 29px;cursor:pointer}
html[data-taphub-layout="desktop"] #app .th666-logo span{color:#b6e732}
html[data-taphub-layout="desktop"] #app .th666-side-label{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:1.3px;color:var(--desk-muted);padding:0 12px}
html[data-taphub-layout="desktop"] #app .th666-side nav{display:flex;flex-direction:column;gap:3px}
html[data-taphub-layout="desktop"] #app .th666-nav,html[data-taphub-layout="desktop"] #app .th666-mobile-link{display:flex;align-items:center;gap:11px;text-align:left;width:100%;min-height:42px;padding:10px 12px;border:0;border-radius:10px;color:var(--desk-muted);background:transparent;font:600 14px/1.25 Arial,sans-serif;cursor:pointer}
html[data-taphub-layout="desktop"] #app .th666-nav svg,html[data-taphub-layout="desktop"] #app .th666-mobile-link svg{width:19px;height:19px;stroke:currentColor;flex:none}
html[data-taphub-layout="desktop"] #app .th666-nav.active{background:var(--desk-accent)!important;color:#151613!important}
html[data-taphub-layout="desktop"] #app .th666-nav:not(.active):hover,html[data-taphub-layout="desktop"] #app .th666-mobile-link:hover{background:var(--desk-panel);color:var(--desk-text)}
html[data-taphub-layout="desktop"] #app .th666-nav b{margin-left:auto;font-size:11px;color:inherit}
html[data-taphub-layout="desktop"] #app .th666-mobile-link{margin-top:auto;border-top:1px solid var(--desk-line);border-radius:0}
html[data-taphub-layout="desktop"] #app>main.page{grid-column:2;grid-row:2;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:24px 28px 40px!important;box-sizing:border-box!important;align-self:start!important;color:var(--desk-text)!important}
html[data-taphub-layout="desktop"] #app:not(:has(.th666-right))>main.page{grid-column:2/-1}
html[data-taphub-layout="desktop"] #app>.th666-right{display:flex!important;grid-column:3;grid-row:2;flex-direction:column;gap:16px;min-width:0;padding:24px 20px 30px 0;color:var(--desk-text)}
html[data-taphub-layout="desktop"] #app .th666-panel{background:var(--desk-panel);border:1px solid var(--desk-line);border-radius:14px;padding:15px;min-width:0;display:flex;flex-direction:column;gap:12px}
html[data-taphub-layout="desktop"] #app .th666-panel h2{font-size:16px!important;line-height:1.25;margin:0!important;color:var(--desk-text)!important}
html[data-taphub-layout="desktop"] #app .th666-account{display:flex;align-items:center;gap:10px;min-width:0}
html[data-taphub-layout="desktop"] #app .th666-account img{width:44px;height:44px;border-radius:50%;object-fit:cover;flex:none}
html[data-taphub-layout="desktop"] #app .th666-account strong,html[data-taphub-layout="desktop"] #app .th666-news strong{display:block;color:var(--desk-text);font-size:13px;overflow-wrap:anywhere}
html[data-taphub-layout="desktop"] #app .th666-account small,html[data-taphub-layout="desktop"] #app .th666-news small{display:block;margin-top:4px;color:var(--desk-muted);font-size:11px}
html[data-taphub-layout="desktop"] #app .th666-primary{border:0;background:var(--desk-accent);color:#151613;padding:10px;border-radius:9px;font-weight:700}
html[data-taphub-layout="desktop"] #app .th666-mini{display:flex;flex-direction:column;gap:4px}
html[data-taphub-layout="desktop"] #app .th666-mini button{display:flex;align-items:center;gap:8px;color:var(--desk-text);background:none;border:0;padding:8px 0;text-align:left;font-size:13px}
html[data-taphub-layout="desktop"] #app .th666-mini button b{margin-left:auto}
html[data-taphub-layout="desktop"] #app .th666-mini svg{width:18px;height:18px;stroke:currentColor;flex:none;color:var(--desk-muted)}
html[data-taphub-layout="desktop"] #app .th666-panel-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
html[data-taphub-layout="desktop"] #app .th666-panel-head button{color:var(--desk-muted);font-size:12px;white-space:nowrap;border:0;background:none}
html[data-taphub-layout="desktop"] #app .th666-news{display:flex;align-items:center;text-align:left;gap:9px;padding:9px 0;background:none;border:0;border-top:1px solid var(--desk-line);min-width:0}
html[data-taphub-layout="desktop"] #app .th666-news img{width:53px;height:44px;object-fit:cover;border-radius:7px;flex:none}
html[data-taphub-layout="desktop"] #app .th666-news span{min-width:0}
html[data-taphub-layout="desktop"] #app .th666-extra{display:flex!important}
html[data-taphub-layout="desktop"] #app .page-home .th6-home-title{font-size:30px!important;margin:0 0 15px!important;letter-spacing:-.6px!important}
html[data-taphub-layout="desktop"] #app .page-home .th6-pills{gap:8px!important;margin:0 0 17px!important;flex-wrap:wrap!important}
html[data-taphub-layout="desktop"] #app .page-home .th6-pill{font-size:13px!important;padding:8px 15px!important;min-height:34px!important}
html[data-taphub-layout="desktop"] #app .page-home :is(.th6-hero,.th26-hero){height:320px!important;min-height:320px!important;border-radius:16px!important;margin-bottom:20px!important}
html[data-taphub-layout="desktop"] #app .page-home .th26-hero-copy,html[data-taphub-layout="desktop"] #app .page-home .th6-hero-copy{left:24px!important;right:50px!important;bottom:26px!important}
html[data-taphub-layout="desktop"] #app .page-home :is(.th26-hero-copy h1,.th6-hero-copy h2){font-size:30px!important;line-height:1.15!important;color:#fff!important}
html[data-taphub-layout="desktop"] #app .page-home :is(.th26-hero-copy p,.th6-hero-copy p){font-size:15px!important;color:#fff!important;max-width:78%!important}
html[data-taphub-layout="desktop"] #app .page-home .th6-section{margin:22px 0!important}
html[data-taphub-layout="desktop"] #app .page-home .th6-heading h2,html[data-taphub-layout="desktop"] #app .page-home .th-story-strip h2{font-size:21px!important;line-height:1.25!important}
html[data-taphub-layout="desktop"] #app .page-home :is(.th6-popular,.th6-new-grid){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:13px!important}
html[data-taphub-layout="desktop"] #app .page-home .th6-popular-card strong{font-size:15px!important;min-height:0!important}
html[data-taphub-layout="desktop"] #app .page-home .th6-popular-card small{font-size:12px!important}
html[data-taphub-layout="desktop"] #app .page-home .th6-new-grid>button{aspect-ratio:1.55!important}
html[data-taphub-layout="desktop"] #app .page-home .th-story-circle{flex-basis:76px!important;min-width:76px!important;max-width:76px!important}
html[data-taphub-layout="desktop"] #app .page-home .th-story-ring,html[data-taphub-layout="desktop"] #app .page-home .th-v53-story-visual{width:60px!important;height:60px!important}
html[data-taphub-layout="desktop"] #app .page-home .th-story-label{font-size:11px!important}
html[data-taphub-layout="desktop"] #app .page :is(.catalog-grid,.game-grid){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important}
html[data-taphub-layout="desktop"] #app .page .catalog-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
html[data-taphub-layout="desktop"] #app .page .th-feature-game{aspect-ratio:2.25!important;max-height:300px!important}
html[data-taphub-layout="desktop"] #app .page .catalog-container{padding:0!important}
html[data-taphub-layout="desktop"] #app .page .catalog-control{margin:0 0 18px!important;padding:0!important}
html[data-taphub-layout="desktop"] #app .page .catalog-control .tabs{flex-wrap:wrap!important;overflow:visible!important}
html[data-taphub-layout="desktop"] #app .page .screen-heading h1{font-size:28px!important;line-height:1.2!important}
html[data-taphub-layout="desktop"] #app .page .game-card-title{font-size:15px!important}
html[data-taphub-layout="desktop"] #app .page .game-card-body{padding:10px!important}
html[data-taphub-layout="desktop"] #app .page .game-stat,html[data-taphub-layout="desktop"] #app .page .game-genre{font-size:13px!important}
html[data-taphub-layout="desktop"] #app .page .detail-hero{height:340px!important;max-height:340px!important;aspect-ratio:auto!important}
html[data-taphub-layout="desktop"] #app .page .detail-panel{max-width:1050px!important;margin-inline:auto!important}
html[data-taphub-layout="desktop"] #app .page :is(.page-pad,.profile-screen,.th31-page,.th650-page){max-width:1080px!important;margin-inline:auto!important;width:100%!important}
html[data-taphub-layout="desktop"] #app .page .profile-content{max-width:100%!important}
html[data-taphub-layout="desktop"] #app .page .th36-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html[data-taphub-layout="desktop"] #app .page .th646-game-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
html[data-taphub-layout="desktop"] #app .page .th651-page{max-width:860px!important}
html[data-taphub-layout="desktop"] #app .page .th660-list{max-width:100%!important}
html[data-taphub-layout="desktop"] #app .page :is(.th661-board,.th661-track,.th661-team){max-width:520px!important;margin-inline:auto!important}
html[data-taphub-layout="desktop"] #app .page .th661-board{width:100%!important}
html[data-taphub-layout="desktop"] #app .page .th660-hero img{object-fit:cover}
html[data-taphub-layout="desktop"] #app.phone-shell:has(.th62-loading){display:block!important;grid-template-columns:none;min-height:100dvh!important}
html[data-taphub-layout="desktop"] #app>main:has(.th62-loading){padding:0!important;margin:0!important;max-width:none!important;min-height:100dvh!important}
html[data-taphub-layout="desktop"] #app :is(.th666-nav,.th666-logo,.th666-mobile-link,.th666-primary,.th666-search button,.th666-mini button,.th666-news):focus-visible{outline:2px solid #87a82b!important;outline-offset:2px}
}
@media (min-width:900px) and (max-width:1179px){html[data-taphub-layout="desktop"] #app.phone-shell:has(.th666-right){grid-template-columns:190px minmax(0,1fr)}html[data-taphub-layout="desktop"] #app>.th666-right{display:none!important}html[data-taphub-layout="desktop"] #app.phone-shell{grid-template-columns:190px minmax(0,1fr)}html[data-taphub-layout="desktop"] #app>main.page{padding:20px!important}html[data-taphub-layout="desktop"] #app .page :is(.catalog-grid,.game-grid){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* Keep exact mobile card counts; legacy !important card rules have higher specificity. */
html:not([data-taphub-layout="desktop"]) #app .page-home .th6-new-grid>button.th666-extra,html:not([data-taphub-layout="desktop"]) #app .page-home .th6-popular-card.th666-extra{display:none!important}
@media (max-width:899px){html #app .page-home .th6-new-grid>button.th666-extra,html #app .page-home .th6-popular-card.th666-extra{display:none!important}}
