/* ====================== DESKTOP ONLY ====================== */
@media (min-width:1024px){
  .desktop-promo-btn,.desktop-search-btn,.desktop-auth{display:inline-flex}
  .site-nav-primary{display:flex;min-width:0;justify-content:center}
  .site-nav-primary .sn-link{font-size:12px;padding:9px 10px}
  .topbar-inner{height:84px;grid-template-columns:auto minmax(0,1fr) auto;padding:0 22px;align-items:center;column-gap:10px}
  .topbar .icon-btn{display:none}
  .topbar .logo{justify-self:start;gap:18px}
  .topbar .logo .desktop-search-btn,.topbar .logo .desktop-promo-btn{display:inline-flex}
  .top-right-block{display:flex;align-items:center;gap:12px}
  .cat-tabs{display:block}
  .topbar{top:60px}
  .cat-tabs{position:sticky;top:144px;z-index:88}
  .app{grid-template-columns:240px minmax(0,1fr) 320px;padding:18px 22px 28px}
  .desktop-side{display:block;top:212px}
  .right-sidebar{display:block;position:sticky;top:212px;align-self:start}
  .game-grid{grid-template-columns:repeat(5,1fr)}
  .online-grid{grid-template-columns:repeat(6,1fr)}
  .auth-modal.has-side .modal-card{display:grid;grid-template-columns:1fr 1fr;gap:0}
  .auth-modal.has-side .auth-side{display:block;position:relative;background:linear-gradient(135deg,#1f1530,#3b1d6e);overflow:hidden;min-height:560px;border-radius:18px 0 0 18px}
  .auth-modal.has-side .auth-side .auth-illustration{position:absolute;inset:0;background:url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 400 600%22><defs><linearGradient id=%22g%22 x1=%220%22 y1=%220%22 x2=%22400%22 y2=%22600%22 gradientUnits=%22userSpaceOnUse%22><stop offset=%220%22 stop-color=%22%23ff3070%22/><stop offset=%221%22 stop-color=%22%237b1cb0%22/></linearGradient></defs><rect fill=%22url(%23g)%22 width=%22400%22 height=%22600%22 opacity=%22.4%22/></svg>') center/cover no-repeat,linear-gradient(135deg,#3b1d6e,#1f0d40);display:flex;flex-direction:column;justify-content:center;align-items:center;padding:30px;color:#fff;text-align:center;gap:14px}
  .auth-modal.has-side .auth-side h3{font-size:24px;font-weight:1000;color:#ffe88a;margin:0;text-shadow:0 0 8px rgba(255,200,80,.3)}
  .auth-modal.has-side .modal-head{display:none}
  .auth-modal.has-side .auth-tabs{border-radius:0 18px 0 0}
  .auth-modal.has-side .auth-tab:first-child{border-radius:0}
  .auth-modal.has-side .auth-tab:last-child{border-radius:0 18px 0 0}
  .auth-modal.has-side .modal-card-inner{display:flex;flex-direction:column;min-height:560px}
  .auth-feat{display:flex;align-items:center;gap:10px;background:rgba(0,0,0,.4);padding:8px 14px;border-radius:12px;width:100%;max-width:300px;border:1px solid rgba(255,255,255,.18)}
  .auth-feat i{width:34px;height:34px;border-radius:50%;background:linear-gradient(180deg,#10edff,#0084d6);display:grid;place-items:center;font-size:14px;flex:0 0 auto}
  .auth-feat b{display:block;font-size:14px;color:#fff}
  .auth-feat span{display:block;font-size:11px;color:#bcd6ff}
  .auth-feat-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
  .auth-content{padding:30px 30px 30px}
  .auth-modal.has-side .close-btn{position:absolute;right:12px;top:12px;background:rgba(255,255,255,.1);z-index:5}
  .auth-content h2{font-size:24px;margin-bottom:22px}
  .hero-slider{aspect-ratio:auto;height:300px}
  .hero-fallback h1{font-size:46px}
  .hero-fallback p{font-size:18px}
  .footer-grid{grid-template-columns:1.4fr 1fr 1fr 1fr 1fr}
}

@media (min-width:1280px){
  .app{grid-template-columns:260px minmax(0,1fr) 340px}
  .hero-slider{height:340px}
}

/* ====================== TABLET / MOBILE LAYOUTS ====================== */
@media (max-width:1023px){
  .right-sidebar{display:none}
  .app{grid-template-columns:var(--side-w) minmax(0,1fr);padding:10px 10px calc(var(--bottom) + 18px)}
  .desktop-side{top:140px}
  .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .provider-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .online-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .live-list{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr;gap:18px}
  .deposit-wrap{grid-template-columns:1fr}
  .deposit-methods{grid-template-columns:repeat(3,1fr)}
  .deposit-method{flex-direction:column;text-align:center;padding:8px 6px;font-size:12px;min-height:64px}
  .deposit-method small{display:none}
  .deposit-account-list{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .bank-list{grid-template-columns:1fr 1fr}
  .promo-layout{grid-template-columns:1fr;padding:6px 14px 16px}
  .promo-list{display:none}
  .promo-mobile-carousel{display:block;margin-bottom:12px}
  .promo-preview{display:none}
  .promo-mobile-action{display:block}
}
@media (max-width:767px){
  .topbar-inner{height:62px;padding:0 12px}
  .topbar{top:60px}
  .topbar .logo .brand-logo{height:38px;min-width:104px;font-size:18px}
  .icon-btn{width:42px;height:42px;font-size:18px}
  .flag-btn{width:36px;height:36px}
  .app{grid-template-columns:74px minmax(0,1fr);gap:8px;padding:8px 8px calc(var(--bottom) + 18px)}
  .rail-link{height:62px;font-size:10px;padding:4px 2px;border-radius:11px}
  .rail-link .ricon{width:28px;height:28px;font-size:14px;border-radius:8px}
  .desktop-side{top:130px}
  .hero-slider{aspect-ratio:21/12;min-height:170px;border-radius:12px}
  .hero-fallback{padding:20px 16px}
  .hero-fallback h1{font-size:24px}
  .hero-fallback p{font-size:13px;margin:10px 0 14px}
  .auth-row{gap:10px;margin:10px 0 8px}
  .auth-row button{height:50px;font-size:16px;border-radius:11px}
  .tab-pill{min-width:118px;height:46px;font-size:14px;border-radius:10px}
  .bar-title{height:38px;font-size:15px;padding:0 12px}
  .bar-title i{font-size:16px}
  .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .game-info{padding:7px}
  .game-info b{font-size:12px}
  .game-info span{font-size:10px}
  .game-info button{height:30px;font-size:11px;border-radius:7px}
  .provider-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .provider-card{min-height:124px;padding:10px 6px;border-radius:12px}
  .provider-logo{height:54px;margin-top:14px}
  .provider-logo img{max-width:74px;max-height:48px}
  .provider-meta b{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .provider-meta span{font-size:9.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .online-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .online-img{aspect-ratio:1/1}
  .live-card{padding:10px}
  .live-card .lc-team .lc-logo{width:40px;height:40px}
  .live-card .lc-team b{font-size:12px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:14px}
  .modal{padding:14px}
  .modal-card{width:96vw;max-height:92vh;border-radius:14px}
  .auth-modal .modal-card{border-radius:14px}
  .auth-content{padding:18px 16px 22px}
  .auth-content h2{font-size:18px;margin-bottom:14px}
  .auth-tab{font-size:14px;height:48px}
  .promo-modal .modal-card{width:96vw}
  .promo-preview h2{font-size:18px}
  .promo-preview p{font-size:13px}
  .promo-preview-img{width:min(280px,100%)}
  .bottom-nav{display:block}
  .drawer-open .bottom-nav{display:none}
  .footer-grid{grid-template-columns:1fr 1fr}
  .shortcut-card{grid-template-columns:1fr;text-align:center}
  .shortcut-right{display:none}
  .partners{gap:6px}
  .partner-pill{height:30px;min-width:78px;font-size:10px;padding:0 10px}
  .cs-float{width:54px;height:54px;font-size:22px;right:12px;bottom:calc(var(--bottom) + 12px)}
}
@media (max-width:420px){
  .game-grid{gap:7px}
  .game-card{border-radius:10px}
  .provider-grid{gap:6px}
  .provider-card{min-height:108px;padding:8px 4px}
  .provider-logo{height:46px;margin-top:10px}
  .provider-logo img{max-width:64px;max-height:42px}
  .provider-meta b{font-size:10.5px}
  .provider-meta span{font-size:9px}
  .online-grid{gap:7px}
  .rail-link{height:58px;font-size:9.5px}
  .rail-link .ricon{width:26px;height:26px;font-size:13px}
}

/* ====================== PRODUCTION UI PATCH v16 ====================== */
.game-card{position:relative;touch-action:manipulation;cursor:pointer}
.game-card.launching{pointer-events:none;opacity:.72;filter:saturate(.7)}
.game-card.launching::after{content:'กำลังเข้าเกม...';position:absolute;inset:auto 8px 8px;min-height:30px;border-radius:10px;background:rgba(0,0,0,.72);border:1px solid rgba(19,234,255,.45);display:grid;place-items:center;color:#fff;font-size:12px;font-weight:900;backdrop-filter:blur(8px)}
.toolbar{align-items:center}
.toolbar .input{min-width:0}
.provider-card,.game-card{min-width:0}
.provider-logo img,.game-thumb img{user-select:none;-webkit-user-drag:none}

@media (min-width:1024px){
  .provider-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .game-card{transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}
  .game-card:hover,.provider-card:hover{transform:translateY(-2px);border-color:rgba(19,234,255,.65)}
}
@media (min-width:1360px){
  .provider-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .game-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (max-width:767px){
  html,body{max-width:100%;overflow-x:hidden}
  .toolbar{display:grid;grid-template-columns:1fr;gap:8px}
  .toolbar .input,.toolbar .btn-main{width:100%;height:46px}
  .section-head{gap:8px;align-items:center}
  .section-head h2{font-size:18px;line-height:1.25}
  .section-head .btn-dark{height:38px;padding:0 12px;font-size:12px}
  .panel{padding:10px;border-radius:14px}
  .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .game-thumb{aspect-ratio:1/1.18}
  .game-badge{font-size:8.5px;padding:3px 5px;right:5px;top:5px;border-radius:6px}
  .game-info{min-height:44px;padding:6px 5px}
  .game-info b{font-size:10.5px;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .game-info span{font-size:9px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .provider-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .provider-card{min-height:106px;padding:8px 4px}
  .provider-badge{font-size:8.5px;left:5px;top:5px;padding:3px 5px}
  .provider-logo{height:44px;margin-top:12px;margin-bottom:4px}
  .provider-logo img{max-width:58px;max-height:38px}
  .provider-meta b{font-size:10px;line-height:1.15;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .provider-meta span{font-size:8.5px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .games-back{height:36px;padding:0 12px;font-size:12px;border-radius:9px}
}
@media (max-width:360px){
  .app{grid-template-columns:66px minmax(0,1fr);gap:6px;padding-left:6px;padding-right:6px}
  .game-grid,.provider-grid{gap:6px}
  .game-info b{font-size:10px}
  .provider-meta b{font-size:9.5px}
}

/* ====================== PROFESSIONAL UI PATCH v17 ====================== */
:root{--glass:rgba(7,24,54,.72);--glass2:rgba(13,41,82,.86);--goldGlow:0 10px 28px rgba(244,215,135,.22);--cyanGlow:0 12px 28px rgba(9,216,255,.18)}
.topbar{backdrop-filter:blur(14px);box-shadow:0 10px 28px rgba(0,0,0,.24)}
.topbar-inner{max-width:1440px}.app{max-width:1440px}.cat-tabs-inner{max-width:1440px}
.desktop-auth.is-user{gap:8px;align-items:center}.desktop-auth.is-user .top-user-card,.desktop-auth.is-user .top-balance-card{height:48px;border:1px solid rgba(74,142,225,.45);background:linear-gradient(180deg,rgba(14,49,100,.96),rgba(5,18,40,.96));border-radius:15px;display:flex;align-items:center;box-shadow:0 8px 22px rgba(0,0,0,.22);cursor:pointer;min-width:0}.top-user-card{gap:10px;padding:0 12px;max-width:220px}.top-avatar{width:34px;height:34px;border-radius:12px;background:linear-gradient(180deg,#ffe28b,#b57a1b);color:#201100;display:grid;place-items:center;flex:0 0 auto;box-shadow:var(--goldGlow)}.top-user-meta{display:block;min-width:0;line-height:1.1}.top-user-meta b{display:block;font-size:13px;font-weight:1000;max-width:132px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-user-meta small{display:block;color:#9fb3d6;font-size:10px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-balance-card{flex-direction:column;justify-content:center;align-items:flex-start;padding:0 14px;min-width:132px}.top-balance-card small{font-size:10px;color:#9fb3d6}.top-balance-card b{font-size:14px;color:#ffe08a;font-weight:1000;line-height:1.1}.top-action{height:48px;border:0;border-radius:14px;padding:0 16px;font-weight:1000;display:inline-flex;align-items:center;gap:7px;box-shadow:0 8px 22px rgba(0,0,0,.22)}.top-action.deposit{background:linear-gradient(180deg,#13eaff,#008bd8);color:#fff}.top-action.withdraw{background:linear-gradient(180deg,#ffe28b,#b97c1c);color:#201100}.top-logout{width:46px;height:46px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(3,11,26,.72);color:#b8c9e7;display:grid;place-items:center}.top-logout:hover{color:#fff;background:rgba(255,65,65,.18);border-color:rgba(255,65,65,.5)}
.rail-account{border:1px solid rgba(74,142,225,.42);background:radial-gradient(circle at 18% 0,rgba(19,234,255,.16),transparent 34%),linear-gradient(180deg,#0d2d5c,#06142c);border-radius:18px;padding:14px;margin-bottom:12px;box-shadow:0 12px 30px rgba(0,0,0,.28);overflow:hidden}.rail-account-top{display:flex;align-items:center;gap:10px;min-width:0}.rail-avatar{width:42px;height:42px;border-radius:14px;background:linear-gradient(180deg,#ffe28b,#b57919);color:#1e1200;display:grid;place-items:center;box-shadow:var(--goldGlow);flex:0 0 auto}.rail-account b{display:block;font-size:14px;font-weight:1000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rail-account small{display:block;color:#a9bde1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rail-balance{margin-top:12px;border-radius:14px;padding:10px 12px;background:rgba(0,0,0,.24);border:1px solid rgba(255,255,255,.08)}.rail-balance span{display:block;color:#9fb3d6;font-size:11px}.rail-balance b{color:#ffe08a;font-size:16px}.rail-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.rail-quick button,.rail-account.guest button{height:38px;border:0;border-radius:11px;font-weight:1000;background:linear-gradient(180deg,#13eaff,#008bd8);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:6px}.rail-quick button:nth-child(2){background:linear-gradient(180deg,#ffe28b,#b97c1c);color:#1f1100}.rail-account.guest{text-align:center;background:radial-gradient(circle at 50% 0,rgba(244,215,135,.18),transparent 38%),linear-gradient(180deg,#102d5a,#06142c)}.rail-account.guest b{font-size:15px}.rail-account.guest small{margin:4px 0 10px;white-space:normal}.side-rail{gap:9px}.rail-link{position:relative;overflow:hidden}.rail-link:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.07),transparent);transform:translateX(-110%);transition:.28s}.rail-link:hover:after{transform:translateX(110%)}
.panel,.jackpot-card,.lb-card,.minigame-card,.shortcut-card,.notice,.bar-title{box-shadow:0 14px 34px rgba(0,0,0,.24)}.panel{background:linear-gradient(180deg,rgba(11,37,79,.92),rgba(4,13,32,.92));border-color:rgba(74,142,225,.38)}.section-head{margin-bottom:12px}.section-head h2{letter-spacing:-.2px}.toolbar{display:grid;grid-template-columns:minmax(180px,1fr) 200px auto;gap:10px}.input{height:52px;border-radius:14px;background:rgba(1,9,23,.78);border-color:rgba(143,180,232,.35)}.input:focus{border-color:#13eaff;box-shadow:0 0 0 3px rgba(19,234,255,.12)}.btn-main,.btn-dark{height:48px;border-radius:14px}.provider-card{min-height:146px;border-radius:18px;background:radial-gradient(circle at 80% 0,rgba(19,234,255,.12),transparent 34%),linear-gradient(180deg,#12376f,#061327)}.provider-logo{height:70px}.provider-meta b{font-size:14px}.game-card{border-radius:16px;background:linear-gradient(180deg,#0c2a58,#051225);border:1px solid rgba(74,142,225,.35);box-shadow:0 10px 26px rgba(0,0,0,.22)}.game-thumb{background:linear-gradient(135deg,#123367,#07152e)}.game-info{background:linear-gradient(180deg,rgba(8,30,63,.98),rgba(3,12,30,.98))}.auth-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.auth-row button{box-shadow:0 12px 26px rgba(0,0,0,.25)}
@media (min-width:1024px){.topbar-inner{height:80px}.cat-tabs{top:140px}.desktop-side,.right-sidebar{top:206px}.app{grid-template-columns:230px minmax(0,1fr) 300px;gap:16px;padding:18px 22px 30px}.right-sidebar{max-width:300px}.hero-slider{height:315px}.game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.provider-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.desktop-auth .btn-login,.desktop-auth .btn-register{height:48px;padding:0 22px;display:inline-flex;align-items:center;gap:8px}.cat-tab{min-width:106px}.footer{padding-bottom:36px}}
@media (min-width:1280px){.app{grid-template-columns:240px minmax(0,1fr) 315px}.game-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.provider-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.hero-slider{height:335px}}
@media (min-width:1440px){.game-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.provider-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.app{grid-template-columns:250px minmax(0,1fr) 320px}}
@media (max-width:1180px) and (min-width:1024px){.top-user-card{display:none}.top-balance-card{min-width:118px}.top-action{padding:0 12px}.desktop-auth .btn-login,.desktop-auth .btn-register{padding:0 18px}.app{grid-template-columns:210px minmax(0,1fr) 280px}.rail-account{padding:12px}.rail-balance b{font-size:14px}}
@media (max-width:1023px){.rail-account{display:none}.side-rail{margin-top:0}.toolbar{grid-template-columns:1fr 168px auto}.desktop-auth{display:none!important}.app-install{height:54px}.topbar{top:54px}.desktop-side{top:126px}}
@media (max-width:767px){.app-install{height:48px;padding:5px 8px}.install-btn{height:32px;padding:0 10px;font-size:11px}.install-text b{font-size:12px}.topbar{top:48px}.topbar-inner{height:58px}.app{grid-template-columns:68px minmax(0,1fr);gap:7px}.desktop-side{top:114px}.rail-link{height:56px;border-radius:12px}.rail-text{font-size:9.5px}.toolbar{grid-template-columns:1fr;gap:8px}.input{height:46px;border-radius:12px}.btn-main,.btn-dark{height:44px;border-radius:12px}.auth-row{gap:8px;margin:8px 0}.auth-row button{height:46px;font-size:14px}.provider-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.provider-card{min-height:104px;border-radius:13px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.game-card{border-radius:12px}.footer{padding-bottom:calc(var(--bottom) + 16px)}.footer-grid{grid-template-columns:1fr}.payments-section{margin-top:10px}.bank-logo{width:38px;height:38px}.bottom-nav-inner{height:64px}.nav-item{font-size:10px}.nav-icon{width:30px;height:30px}}
@media (max-width:380px){.app{grid-template-columns:62px minmax(0,1fr);padding-left:6px;padding-right:6px}.rail-link{height:54px}.rail-link .ricon{width:25px;height:25px}.game-grid,.provider-grid{gap:6px}.provider-card{min-height:98px}.topbar .logo .brand-logo{min-width:96px;font-size:17px}.flag-btn{width:32px;height:32px}}

/* ======================================================================
   GAMEHUB UI PRO v19 — full-image cards + desktop/mobile polish
   ====================================================================== */
:root{
  --max:1480px;
  --side-w:82px;
  --pro-bg-1:#000713;
  --pro-bg-2:#001a3a;
  --pro-card:#061832;
  --pro-card-2:#0d2a58;
  --pro-line:rgba(87,154,246,.36);
  --pro-line-strong:rgba(19,234,255,.62);
  --pro-gold:#f7d978;
  --pro-cyan:#13eaff;
  --pro-shadow:0 18px 46px rgba(0,0,0,.36);
}
html,body{overflow-x:hidden;background:#020814}
body:before{background:linear-gradient(180deg,#000713 0%,#001a38 30%,#020814 74%,#00122d 100%)}
body:after{opacity:.9;background:
  radial-gradient(circle at 12% 16%,rgba(19,234,255,.17),transparent 22%),
  radial-gradient(circle at 88% 6%,rgba(247,217,120,.13),transparent 26%),
  radial-gradient(circle at 72% 92%,rgba(0,116,255,.14),transparent 28%),
  linear-gradient(90deg,rgba(19,234,255,.035) 1px,transparent 1px),
  linear-gradient(rgba(19,234,255,.026) 1px,transparent 1px);
  background-size:auto,auto,auto,48px 48px,48px 48px;
}
.app-install{background:linear-gradient(180deg,#171d2d,#0b101b);border-bottom:1px solid rgba(255,255,255,.08)}
.topbar{background:linear-gradient(180deg,rgba(0,25,56,.94),rgba(0,13,31,.94));backdrop-filter:blur(18px);box-shadow:0 10px 32px rgba(0,0,0,.28)}
.topbar-inner{height:78px;gap:16px}
.brand-logo{filter:drop-shadow(0 0 10px rgba(247,217,120,.2))}
.cat-tabs{background:linear-gradient(180deg,rgba(0,14,32,.96),rgba(0,8,21,.96));backdrop-filter:blur(16px)}
.cat-tabs-inner{padding:7px 18px;gap:10px}
.cat-tab{height:52px;border-radius:16px;padding:0 15px;transition:.2s ease;color:#d4e3ff}
.cat-tab:hover{background:rgba(255,255,255,.055);color:#fff}
.cat-tab.active{background:linear-gradient(180deg,rgba(19,234,255,.14),rgba(0,93,171,.06));box-shadow:inset 0 -2px 0 var(--pro-cyan);border-bottom-color:transparent}
.app{max-width:1480px;grid-template-columns:230px minmax(0,1fr) 310px;gap:18px;padding:18px 22px 34px}
.desktop-side,.right-sidebar{top:202px}
.notice,.panel,.bar-title,.jackpot-card,.lb-card,.minigame-card,.shortcut-card,.rail-account,.rail-link{border-color:var(--pro-line);box-shadow:var(--pro-shadow)}
.panel{padding:16px;border-radius:20px;background:linear-gradient(180deg,rgba(8,32,70,.94),rgba(3,13,32,.96));}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:14px}
.section-head h2{font-size:clamp(22px,2.3vw,32px);line-height:1.05;margin:0;font-weight:1000;letter-spacing:-.5px}
.section-head p{margin:5px 0 0;color:#9fb3d6}
.toolbar{grid-template-columns:minmax(220px,1fr) 210px 150px;gap:12px;margin-bottom:14px}
.input{height:54px;border-radius:18px;background:rgba(0,9,24,.78);border:1px solid rgba(133,178,240,.34);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.btn-main,.btn-dark,.games-back{border-radius:16px;box-shadow:0 12px 26px rgba(0,0,0,.25)}

/* Portrait game cards — 2 col mobile, game name below image */
.game-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:start}
.game-card{border-radius:20px;background:linear-gradient(180deg,rgba(17,55,111,.96),rgba(4,15,35,.98));border:1px solid var(--pro-line);box-shadow:0 16px 38px rgba(0,0,0,.32);overflow:hidden;isolation:isolate;transform:translateZ(0);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.game-card:hover{transform:translateY(-4px);border-color:var(--pro-line-strong);box-shadow:0 20px 46px rgba(0,0,0,.42),0 0 0 1px rgba(19,234,255,.08)}
.game-thumb{aspect-ratio:3/4;min-height:0;background:#061327;display:block;position:relative;overflow:hidden}
.game-thumb:before{display:none}
.game-thumb .blur-bg{display:none!important}
.game-thumb img{width:100%;height:100%;display:block;object-fit:cover}
.game-card:hover .game-thumb img{filter:saturate(1.08) contrast(1.03)}
.game-thumb i{position:absolute;inset:0;display:grid;place-items:center;font-size:42px;color:var(--pro-gold);background:linear-gradient(135deg,#11386f,#061327)}
.game-info{min-height:74px;padding:13px 13px 14px;background:linear-gradient(180deg,rgba(8,30,63,.98),rgba(2,11,27,.98));}
.game-info b{font-size:15px;line-height:1.15;margin-bottom:4px;color:#fff;letter-spacing:-.15px}
.game-info span{font-size:12px;color:#aabadd}
.game-badge{top:9px;right:9px;border-radius:999px;padding:5px 10px;font-size:10px;box-shadow:0 8px 18px rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.18)}
.game-card.launching::after{inset:10px;border-radius:16px;min-height:0;background:rgba(0,9,24,.72);font-size:13px;backdrop-filter:blur(10px)}

/* Providers */
.provider-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.provider-card{min-height:154px;border-radius:22px;padding:16px;background:
  radial-gradient(circle at 82% 0,rgba(19,234,255,.16),transparent 34%),
  linear-gradient(180deg,rgba(18,55,111,.96),rgba(4,16,37,.98));
  border-color:var(--pro-line);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.provider-card:hover{transform:translateY(-4px);border-color:var(--pro-line-strong);box-shadow:0 20px 46px rgba(0,0,0,.38)}
.provider-card:after{background:rgba(19,234,255,.11);filter:blur(.2px)}
.provider-logo{height:72px;margin-top:11px}
.provider-logo img{max-height:66px;max-width:150px;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(0,0,0,.32))}
.provider-meta b{font-size:15px;letter-spacing:-.1px}
.provider-meta span{font-size:12px;color:#aebedf}
.provider-badge{border-radius:999px;border:1px solid rgba(255,255,255,.17)}

/* Side/top account */
.rail-link{height:70px;border-radius:18px;background:linear-gradient(180deg,rgba(15,48,96,.95),rgba(5,18,42,.98));transition:transform .16s ease,border-color .16s ease}
.rail-link:hover{transform:translateY(-2px);border-color:var(--pro-line-strong)}
.rail-link.active{background:linear-gradient(180deg,#fff,#dfeaff);box-shadow:0 16px 38px rgba(18,105,208,.25)}
.rail-link .ricon{border-radius:13px}
.rail-account{border-radius:22px;background:radial-gradient(circle at 16% 0,rgba(19,234,255,.18),transparent 36%),linear-gradient(180deg,#0e3267,#05152f)}
.desktop-auth.is-user .top-user-card,.desktop-auth.is-user .top-balance-card,.top-action,.top-logout{border-radius:16px}
.right-sidebar .jackpot-card,.right-sidebar .lb-card,.right-sidebar .minigame-card{border-radius:20px;background:linear-gradient(180deg,rgba(14,45,93,.95),rgba(3,14,35,.98))}
.hero-slider{border-radius:22px;border-color:var(--pro-line);box-shadow:0 22px 55px rgba(0,0,0,.38)}
.footer{background:linear-gradient(180deg,rgba(0,9,23,.2),#010611)}

@media (min-width:1280px){
  .game-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .provider-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (min-width:1540px){
  .game-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
  .provider-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}
@media (max-width:1180px) and (min-width:1024px){
  .app{grid-template-columns:210px minmax(0,1fr) 280px;gap:14px}
  .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
  .provider-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
}
@media (max-width:1023px){
  .app{grid-template-columns:72px minmax(0,1fr);gap:10px;padding:12px 10px calc(var(--bottom) + 18px)}
  .desktop-side{top:126px}.right-sidebar{display:none!important}
  .panel{border-radius:18px;padding:12px}
  .toolbar{grid-template-columns:1fr;gap:9px}
  .provider-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .game-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
  .game-thumb{aspect-ratio:3/4}
  .game-info{min-height:58px;padding:9px 8px 10px}
  .game-info b{font-size:12px;line-height:1.12;white-space:nowrap}
  .game-info span{font-size:10px}
  .game-badge{top:6px;right:6px;padding:3px 7px;font-size:8.5px}
  .provider-card{min-height:116px;border-radius:15px;padding:9px 6px}
  .provider-logo{height:50px;margin-top:12px}
  .provider-logo img{max-width:74px;max-height:48px}
  .provider-meta{margin-top:5px}.provider-meta b{font-size:11px}.provider-meta span{font-size:8.5px}
  .provider-badge{top:6px;right:6px;padding:3px 7px;font-size:8.5px}
  .rail-link{height:58px;border-radius:14px}.rail-link .ricon{width:31px;height:31px}.rail-text{font-size:9.5px}
  .section-head h2{font-size:22px}.section-head p{font-size:12px}
}
@media (max-width:767px){
  .topbar-inner{height:58px;padding:0 10px}.topbar .logo{gap:8px}.topbar .logo .brand-logo{height:40px;min-width:112px;font-size:19px}.icon-btn{width:42px;height:42px;border-radius:13px}
  .app{grid-template-columns:66px minmax(0,1fr);gap:8px;padding-left:7px;padding-right:7px}
  .cat-tabs{display:none!important}
  .notice{height:38px;border-radius:12px;margin-bottom:8px;font-size:12px}
  .hero-slider{border-radius:16px;min-height:150px;aspect-ratio:16/8.8}
  .panel{padding:10px;border-radius:16px}
  .bar-title{height:40px;border-radius:13px;font-size:14px;margin:10px 0 9px;padding:0 10px}
  .game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.provider-grid{gap:8px}
  .game-card{border-radius:14px}.game-thumb{aspect-ratio:3/4}.game-info{min-height:55px;padding:8px 7px 9px}.game-info b{font-size:11px}.game-info span{font-size:9.5px}
  .provider-card{min-height:108px;border-radius:14px}.provider-logo img{max-width:66px;max-height:44px}
  .bottom-nav{backdrop-filter:blur(14px)}.bottom-nav-inner{height:66px;border-top:1px solid rgba(87,154,246,.28)}
}
@media (max-width:390px){
  .app{grid-template-columns:60px minmax(0,1fr);gap:6px;padding-left:5px;padding-right:5px}
  .game-grid,.provider-grid{gap:6px}.game-card{border-radius:12px}.game-thumb{aspect-ratio:3/4}.game-info{padding:7px 6px;min-height:52px}.game-info b{font-size:10px}.game-info span{font-size:8.8px}
  .provider-card{min-height:98px;padding:7px 4px}.provider-logo{height:43px}.provider-logo img{max-width:58px;max-height:38px}.provider-meta b{font-size:9.5px}.provider-meta span{font-size:8px}
  .rail-link{height:54px}.rail-text{font-size:8.8px}.rail-link .ricon{width:28px;height:28px}
}
