
/* Top Games v13.0.0 - Mobile First Shell */
:root{--tg130-radius:16px;--tg130-glass:#07111ee8;--tg130-line:#254a70;--tg130-gold:#f1cc71}
html{background:#02070d}
body{overscroll-behavior-y:none}
/* Compact platform chrome */
.platform-header{min-height:62px;grid-template-columns:minmax(170px,.7fr) minmax(360px,1.6fr) minmax(210px,.7fr);padding:8px clamp(12px,1.7vw,28px);gap:10px;background:#030913f5;border-bottom-color:#173b5c}
.platform-brand{gap:8px}.platform-brand-mark{width:38px;height:38px;border-radius:12px;font-size:22px}.platform-brand b{font-size:17px}.platform-brand small{display:none}
.platform-nav{gap:4px;padding:3px;border-radius:13px;background:#061426;border-color:#173b5c}.platform-nav a{padding:6px 8px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px}.platform-nav a span:first-child{font-size:15px}
.platform-header-actions{gap:6px}.platform-lang,.platform-login{padding:8px 10px;border-radius:10px}.platform-account{min-width:158px;padding:5px 7px;border-radius:12px}.platform-account .avatar{width:34px;height:34px}.platform-account small{display:none}
.platform-page{padding:clamp(12px,1.5vw,24px);gap:14px;max-width:1700px;margin-inline:auto}
.panel{border-radius:18px;box-shadow:0 16px 46px #0006}
/* Big banners are intentionally removed/flattened */
.platform-hero{display:none!important}
.mobile-home-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 18px;border:1px solid var(--tg130-line);border-radius:18px;background:linear-gradient(120deg,#07192ce8,#09152ae8);box-shadow:0 14px 38px #0005}
.mobile-home-strip .copy{min-width:0}.mobile-home-strip h1{font-size:clamp(21px,2.3vw,32px);margin:0;color:#f6f8fb}.mobile-home-strip h1 strong{color:var(--tg130-gold)}.mobile-home-strip p{margin:4px 0 0;color:#8ea5bf;font-size:13px}.mobile-home-strip .actions{display:flex;gap:8px;flex:0 0 auto}.mobile-home-strip .actions .btn{padding:9px 13px;border-radius:11px}
.page-heading{padding:16px 18px!important;background:#07182be8!important;border-radius:18px!important;min-height:0!important}.page-heading .eyebrow{font-size:11px}.page-heading h1{font-size:clamp(24px,2.3vw,34px)!important;margin:3px 0 5px!important}.page-heading p{font-size:13px!important;line-height:1.55!important;margin:0!important}
.stat-grid{gap:9px}.stat-card{padding:12px 14px}.stat-card>span{width:42px;height:42px;border-radius:13px;font-size:21px}.stat-card b{font-size:24px}.stat-card small{font-size:11px}
.game-grid{gap:10px}.game-card{min-height:208px;padding:14px;border-radius:16px}.game-icon{width:48px;height:48px;border-radius:14px;font-size:28px}.game-card h3{font-size:18px}.game-card p{font-size:12px;line-height:1.5}.chip{font-size:10px;padding:4px 7px}.section-head p{font-size:12px;color:#849ab3}.content-two{gap:12px}.info-card,.activity-card,.friend-card{padding:16px}
.platform-footer{padding:12px 22px;font-size:10px}
/* Shared mobile drawer */
.tg-mobile-menu-btn{display:none;border:1px solid #315d86;background:#08192a;color:#fff;width:40px;height:40px;border-radius:12px;font-size:21px;cursor:pointer;align-items:center;justify-content:center;flex:0 0 auto}
.tg-mobile-drawer-backdrop{position:fixed;inset:0;z-index:998;background:#0009;backdrop-filter:blur(5px);opacity:0;pointer-events:none;transition:.18s}
.tg-mobile-drawer{position:fixed;z-index:999;top:0;bottom:0;inset-inline-end:0;width:min(330px,88vw);padding:max(14px,env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom));background:#05101cf8;border-inline-start:1px solid #274d70;transform:translateX(calc((100% + 12px) * var(--tg-drawer-dir,1)));transition:.22s ease;box-shadow:0 0 60px #000b;overflow:auto}
html[dir=rtl] .tg-mobile-drawer{--tg-drawer-dir:-1}.tg-mobile-drawer.open{transform:none}.tg-mobile-drawer-backdrop.open{opacity:1;pointer-events:auto}.tg-mobile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:4px 4px 12px;border-bottom:1px solid #173751}.tg-mobile-drawer-head b{font-size:17px;color:#f1cc71}.tg-mobile-drawer-close{border:0;background:#102236;color:#fff;width:36px;height:36px;border-radius:10px;font-size:21px}.tg-mobile-drawer-nav{display:grid;gap:7px;padding-top:12px}.tg-mobile-drawer-nav a,.tg-mobile-drawer-nav button{min-height:48px;border:1px solid #1d4568;background:#081a2c;color:#e9f1f8;border-radius:13px;padding:9px 12px;text-decoration:none;display:flex;align-items:center;gap:10px;font:inherit;font-weight:700;cursor:pointer}.tg-mobile-drawer-nav .primary{border-color:#8a692b;background:linear-gradient(135deg,#2a2517,#141b20);color:#f4d781}.tg-mobile-drawer-nav .danger{border-color:#70404a;background:#2a1016;color:#ffc0c7}.tg-mobile-drawer-section{color:#6f8ba6;font-size:10px;font-weight:800;padding:12px 6px 2px;text-transform:uppercase;letter-spacing:.7px}
/* Game hubs become one clean column on phone */
@media(max-width:900px){
  .platform-header{position:sticky;top:0;grid-template-columns:auto 1fr auto;padding:8px 9px;min-height:56px}.platform-brand{min-width:0}.platform-brand-mark{width:36px;height:36px}.platform-brand b{font-size:16px}.platform-nav{display:none!important}.platform-header-actions{justify-self:end}.platform-header-actions .platform-lang{display:none}.platform-login{font-size:11px;padding:7px 8px}.platform-account{min-width:42px;width:42px;height:42px;padding:3px;border:0;background:transparent}.platform-account span:nth-child(2),.platform-account .level{display:none!important}.platform-account .avatar{width:36px;height:36px}.tg-mobile-menu-btn{display:flex}
  .platform-page{padding:9px 9px calc(18px + env(safe-area-inset-bottom));gap:9px}.mobile-home-strip{padding:12px 13px;border-radius:15px}.mobile-home-strip h1{font-size:20px}.mobile-home-strip p{display:none}.mobile-home-strip .actions{gap:5px}.mobile-home-strip .actions .btn{font-size:11px;padding:8px 9px}.mobile-home-strip .actions .btn:not(.gold){display:none}
  .page-heading{padding:12px 13px!important}.page-heading .eyebrow,.page-heading p{display:none!important}.page-heading h1{font-size:22px!important;margin:0!important}
  .stat-grid{display:flex;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.stat-grid::-webkit-scrollbar{display:none}.stat-card{min-width:142px;box-shadow:none}.stat-card>span{display:none}.stat-card b{font-size:21px}
  .content-two{display:block}.side-stack{display:none!important}.section-head{align-items:center}.section-head p{display:none}.section-head .btn{font-size:10px;padding:7px 9px}.game-grid,.catalog{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px}.game-card{min-height:148px;padding:10px;gap:6px;grid-template-rows:auto auto 1fr}.game-card p{display:none}.game-icon{width:42px;height:42px;font-size:25px}.game-card h3{font-size:15px}.game-meta{gap:4px}.chip{font-size:8.5px;padding:3px 5px}.game-card .btn{font-size:10px;padding:7px 8px;border-radius:9px}.platform-footer{display:none!important}
  .toolbar{gap:6px}.toolbar input,.toolbar select{min-height:40px;font-size:12px}.filters{width:100%;flex-wrap:nowrap;overflow:auto}.filter{white-space:nowrap;padding:7px 10px;font-size:10px}.stats-layout{gap:8px}.metric-grid{grid-template-columns:repeat(2,1fr)!important;padding:9px;gap:6px}.metric{padding:10px}.metric b{font-size:20px}.account-card{padding:13px;gap:12px}.big-avatar{width:70px;height:70px;border-radius:20px}
  /* Cross legacy platform chrome */
  .tg-topbar,.tg-top{position:sticky!important;top:0!important;z-index:80!important;min-height:54px!important;height:54px!important;padding:7px 9px!important;display:flex!important;align-items:center!important;gap:7px!important;background:#040c16f5!important}.tg-brand,.brand{min-width:0!important}.tg-brand small,.brand small,.tg-search,.coin,.tg-mainnav{display:none!important}.tg-tools,.top-actions{margin-inline-start:auto!important;display:flex!important;align-items:center!important;gap:5px!important}.account-chip{min-width:40px!important;width:40px!important;height:40px!important;padding:3px!important;border-radius:12px!important}.account-chip>span:not(.avatar):not(.av){display:none!important}.lang-btn,#poolLang,#tarneebLang,#chessLang,#crossLang{display:none!important}.game-rail,.social-rail{display:none!important}.platform-game-layout{display:block!important}.cross-page-main{width:100%!important;max-width:none!important;padding:8px!important}.cross-hero,.panel.hero{min-height:0!important;padding:12px!important;display:block!important;border-radius:15px!important}.cross-hero .cross-logo-tile,.cross-hero .hero-metrics,.cross-hero .hero-tags,.cross-hero p,.panel.hero .hero-art,.panel.hero p,.panel.hero .eyebrow{display:none!important}.cross-hero h1,.panel.hero h1{font-size:22px!important;margin:0 0 8px!important}.hero-actions,.actions{display:flex!important;overflow:auto!important;gap:6px!important;margin-top:7px!important}.hero-actions .btn,.actions .btn{min-width:max-content!important;font-size:10px!important;padding:8px 9px!important}.cross-subnav,.subnav{display:flex!important;overflow-x:auto!important;gap:5px!important;padding:5px!important;white-space:nowrap!important;scrollbar-width:none!important}.cross-subnav::-webkit-scrollbar,.subnav::-webkit-scrollbar{display:none}.cross-subnav a,.subnav a{min-width:max-content!important;padding:8px 10px!important;font-size:10px!important}.hub-grid,.grid2{grid-template-columns:1fr!important;gap:8px!important}.start-actions{grid-template-columns:repeat(2,1fr)!important;gap:7px!important}.play-card{min-height:92px!important;padding:9px!important}.play-card small{display:none!important}.rooms-panel.wide{grid-column:auto!important}.room-table-wrap{overflow:auto!important}.chat-preview{display:none!important}
}
@media(max-width:390px){.game-grid,.catalog{grid-template-columns:1fr!important}.mobile-home-strip .actions .btn{padding:7px 8px}.platform-login{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
