/* ===== inline-style-1 ===== */
*{box-sizing:border-box}body{margin:0;background:#f3f5f4;color:#27312e;font-family:Arial,"Microsoft YaHei",sans-serif}button{font:inherit}
.promo{height:34px;background:#087f69;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:12px}.promo b{color:#ffe56a}
header{height:58px;background:#fff;display:flex;align-items:center;gap:12px;padding:0 12px;border-bottom:1px solid #e5eae8;position:sticky;top:0;z-index:20}.menu-label{font-size:25px;width:40px;height:40px;display:grid;place-items:center;cursor:pointer}.logo{font-weight:900;font-size:21px;color:#07856d}.login{margin-left:auto;background:#07856d;color:#fff;border:0;border-radius:20px;padding:9px 16px}
#drawer-toggle{position:absolute;opacity:0;pointer-events:none}.drawer{position:fixed;z-index:50;left:0;top:0;bottom:0;width:min(86vw,340px);background:#fff;transform:translateX(-110%);transition:.25s ease;padding:16px 12px;overflow:auto;box-shadow:14px 0 30px #153b3028}.shade{position:fixed;z-index:45;inset:0;background:#172c266e;opacity:0;visibility:hidden;transition:.2s}#drawer-toggle:checked~.drawer{transform:translateX(0)}#drawer-toggle:checked~.shade{opacity:1;visibility:visible}.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 15px;border-bottom:1px solid #e8ecea;color:#07856d;font-weight:900}.close{font-size:22px;cursor:pointer}.drawer h4{font-size:10px;color:#a2aca8;letter-spacing:1.5px;margin:18px 10px 6px}.drawer a{display:block;padding:12px;border-radius:10px;color:#52615c;text-decoration:none}.drawer a.active{background:#e6f5f0;color:#087b66;font-weight:700}
.notice{height:34px;background:#fff;border-bottom:1px solid #e9edeb;padding:0 12px;display:flex;align-items:center;color:#7d8884;font-size:11px}main{max-width:1450px;margin:auto;padding:10px 10px 80px}.cats{display:flex;overflow:auto;gap:6px;background:#fff;padding:8px;border-radius:10px;margin-bottom:9px}.cat{min-width:60px;text-align:center;color:#6d7975;font-size:11px}.cat i{display:grid;place-items:center;width:31px;height:31px;margin:auto auto 3px;border-radius:50%;background:#e7f5f0;color:#07856d;font-style:normal}
.hero{background:linear-gradient(120deg,#006b5b,#0b9d7b,#45caa6);color:#fff;border-radius:11px;padding:20px;min-height:160px}.hero h1{font-size:25px;margin:8px 0}.hero p{font-size:12px;max-width:500px}.hero button{border:0;border-radius:18px;background:#fff;color:#077761;padding:9px 18px;font-weight:800}
.rank{background:#fff;border-radius:11px;padding:12px;margin-top:9px}.rank h3{margin:0 0 8px;font-size:16px}.rank-head,.rank-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center}.rank-head{font-size:10px;color:#9aa5a1;padding:7px;border-bottom:1px solid #edf0ef}.rank-window{height:180px;overflow-y:auto;scrollbar-color:#0a9277 #edf3f1;scrollbar-width:thin}.rank-row{height:38px;border-bottom:1px solid #f0f2f1;padding:0 7px;font-size:12px}.rank-row b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e6f5f0;color:#07856d;margin-right:7px}.rank-row strong{color:#e88b25;font-size:11px;white-space:nowrap}
.title{display:flex;align-items:center;justify-content:space-between;margin:15px 2px 8px}.title h2{font-size:18px;margin:0}.title a{font-size:12px;color:#07856d}.games{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.game{background:#fff;border-radius:9px;overflow:hidden;min-width:0;box-shadow:0 2px 8px #183c3210}.cover{aspect-ratio:1.05;background:linear-gradient(145deg,var(--a),var(--b));position:relative;display:grid;place-items:center;color:#fff}.art{font-size:34px;text-align:center;filter:drop-shadow(0 4px 5px #0002)}.art small{display:block;font-size:9px;font-weight:800;margin-top:5px;background:#0003;border-radius:9px;padding:3px 6px}.rtp{position:absolute;top:5px;left:5px;background:#087e69;border-radius:8px;padding:2px 5px;font-size:8px}.heart{position:absolute;right:6px;bottom:4px;font-size:18px}.game-info{padding:7px}.game-info b{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-info small{font-size:9px;color:#9aa4a0}
.bottom{position:fixed;z-index:30;bottom:0;left:0;right:0;height:62px;background:#fff;border-top:1px solid #e1e7e4;display:grid;grid-template-columns:repeat(5,1fr)}.bottom div{display:grid;place-items:center;color:#77837f;font-size:10px;padding:7px 0}.bottom b{font-size:17px;display:block}.bottom .active{color:#07856d}
@media(min-width:700px){main{padding:18px 22px 40px}.hero-rank{display:grid;grid-template-columns:1.6fr .75fr;gap:14px}.rank{margin-top:0}.games{grid-template-columns:repeat(6,1fr)}.bottom{display:none}.hero{min-height:230px;padding:30px}.hero h1{font-size:36px}}

/* ===== integrated-auth-css ===== */
.auth-overlay{
  position:fixed; inset:0; z-index:200;
  display:none; overflow:auto;
  background:rgba(15,35,29,.62);
  backdrop-filter:blur(5px);
  padding:28px;
}
.auth-overlay:target{display:grid;place-items:center}
.auth-shell{
  width:min(1040px,100%);
  display:grid;grid-template-columns:1fr 440px;
  background:#fff;border-radius:22px;overflow:hidden;
  box-shadow:0 24px 70px rgba(8,38,29,.28);
}
.auth-visual{
  min-height:590px;padding:52px;
  background:linear-gradient(145deg,#006e5c,#0a9b79 55%,#5ad4b2);
  color:#fff;position:relative;overflow:hidden;
}
.auth-visual:after{
  content:"";position:absolute;width:420px;height:420px;
  border:60px solid rgba(255,255,255,.08);border-radius:50%;
  right:-190px;top:-130px
}
.auth-visual h2{font-size:42px;line-height:1.08;margin:90px 0 16px;max-width:460px}
.auth-visual p{color:#dcfff5;line-height:1.7;max-width:430px}
.auth-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:40px}
.auth-benefit{background:#ffffff16;border:1px solid #ffffff22;border-radius:13px;padding:14px;font-size:12px}
.auth-benefit b{display:block;font-size:19px;margin-bottom:6px}
.auth-panel{padding:32px;position:relative}
.auth-close{
  position:absolute;right:18px;top:16px;width:35px;height:35px;
  display:grid;place-items:center;text-decoration:none;color:#68766f;
  border:1px solid #e3e9e6;border-radius:50%;background:#fff
}
.auth-mode{position:absolute;opacity:0;pointer-events:none}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f0f4f2;padding:4px;border-radius:12px;margin:28px 0 26px}
.auth-tabs label{text-align:center;padding:11px;border-radius:9px;cursor:pointer;font-weight:700;color:#7c8984}
#auth-login:checked ~ .auth-panel-inner .auth-tabs label[for=auth-login],
#auth-register:checked ~ .auth-panel-inner .auth-tabs label[for=auth-register]{
  background:#fff;color:#07856d;box-shadow:0 2px 9px rgba(23,61,50,.08)
}
.auth-form{display:none}
#auth-login:checked ~ .auth-panel-inner .login-form,
#auth-register:checked ~ .auth-panel-inner .register-form{display:block}
.auth-panel h3{font-size:27px;margin:0 0 7px}
.auth-sub{color:#8c9994;font-size:13px;margin:0 0 24px}
.auth-field{margin-bottom:14px}
.auth-field label{font-size:12px;font-weight:700;display:block;margin-bottom:7px}
.auth-input{
  height:48px;border:1px solid #dfe7e3;border-radius:10px;
  display:flex;align-items:center;padding:0 13px;gap:10px;background:#fbfcfc
}
.auth-input span{color:#07856d}
.auth-input input{width:100%;border:0;outline:0;background:none;color:#26342f}
.auth-row{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#71807b;margin:2px 0 20px}
.auth-row a,.auth-terms a{color:#07856d;text-decoration:none}
.auth-primary{
  width:100%;height:49px;border:0;border-radius:11px;
  background:#07856d;color:#fff;font-weight:800
}
.auth-switch{text-align:center;font-size:12px;color:#7f8c87;margin-top:18px}
.auth-switch label{color:#07856d;font-weight:700;cursor:pointer}
.auth-terms{font-size:11px;color:#909b97;line-height:1.5;margin-top:16px}
@media(max-width:850px){
  .auth-overlay{padding:16px}
  .auth-shell{grid-template-columns:1fr;max-width:600px}
  .auth-visual{min-height:205px;padding:28px}
  .auth-visual h2{font-size:31px;margin:30px 0 10px}
  .auth-benefits{display:none}
}
@media(max-width:520px){
  .auth-overlay{padding:0;background:#f2f5f3;display:none}
  .auth-overlay:target{display:block}
  .auth-shell{min-height:100vh;border-radius:0;display:block}
  .auth-visual{min-height:165px;border-radius:0;padding:22px 18px}
  .auth-visual h2{font-size:26px;margin:20px 0 7px}
  .auth-visual p{font-size:11px;max-width:88%}
  .auth-panel{padding:18px 16px 30px}
  .auth-close{top:12px;right:12px}
  .auth-tabs{margin-top:34px}
}

/* ===== support-v1-1-css ===== */
/* ===== TOP WIN Online Support v1.1 ===== */
.support-launcher{
  position:fixed;right:22px;bottom:22px;z-index:170;
  width:58px;height:58px;border:0;border-radius:50%;
  background:#07856d;color:#fff;text-decoration:none;
  display:grid;place-items:center;font-size:25px;
  box-shadow:0 10px 26px rgba(5,91,71,.28);
}
.support-launcher::after{
  content:"1";position:absolute;right:-2px;top:-2px;
  width:20px;height:20px;border-radius:50%;
  background:#ef5b54;color:#fff;font-size:11px;font-weight:800;
  display:grid;place-items:center;border:2px solid #fff;
}
.support-shell{
  position:fixed;z-index:180;right:22px;bottom:92px;
  width:min(390px,calc(100vw - 44px));height:560px;
  background:#fff;border-radius:18px;overflow:hidden;
  box-shadow:0 24px 70px rgba(15,45,36,.24);
  border:1px solid #e1e8e5;
  display:none;
}
#support:target{display:flex;flex-direction:column}
.support-head{
  background:linear-gradient(135deg,#087d68,#0ca884);
  color:#fff;padding:16px 16px 13px;
}
.support-topline{display:flex;align-items:center;gap:10px}
.support-agent{
  width:42px;height:42px;border-radius:50%;
  display:grid;place-items:center;background:#fff;color:#07856d;
  font-weight:900;border:2px solid rgba(255,255,255,.7)
}
.support-title{min-width:0;flex:1}
.support-title b{display:block;font-size:15px}
.support-title small{font-size:11px;color:#d9fff4}
.support-close{
  width:34px;height:34px;border-radius:50%;
  display:grid;place-items:center;text-decoration:none;
  color:#fff;background:rgba(255,255,255,.14)
}
.support-status{
  margin-top:12px;background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.12);
  padding:9px 10px;border-radius:10px;font-size:11px;
}
.support-body{
  flex:1;overflow-y:auto;background:#f5f7f6;padding:14px;
}
.support-day{text-align:center;color:#9aa5a1;font-size:10px;margin:2px 0 14px}
.msg{display:flex;margin-bottom:11px}
.msg.agent{justify-content:flex-start}.msg.user{justify-content:flex-end}
.bubble{
  max-width:78%;padding:10px 12px;border-radius:14px;
  font-size:13px;line-height:1.48;box-shadow:0 1px 4px rgba(25,50,42,.05)
}
.agent .bubble{
  background:#fff;color:#30413b;border-top-left-radius:5px;
  border:1px solid #e7ecea;
}
.user .bubble{
  background:#07856d;color:#fff;border-top-right-radius:5px;
}
.support-card{
  background:#fff;border:1px solid #e3e9e6;border-radius:12px;
  padding:12px;margin:12px 0;
}
.support-card h4{margin:0 0 8px;font-size:13px}
.support-card p{margin:0;color:#7f8b87;font-size:11px;line-height:1.5}
.quick-wrap{display:flex;gap:7px;overflow-x:auto;padding:2px 0 10px}
.quick{
  flex:0 0 auto;border:1px solid #bcded3;background:#fff;color:#077760;
  border-radius:18px;padding:8px 11px;font-size:11px
}
.typing{font-size:10px;color:#96a19d;margin:4px 0 0 7px}
.support-foot{
  border-top:1px solid #e6ece9;background:#fff;padding:10px;
}
.support-tools{display:flex;gap:6px;margin-bottom:7px}
.support-tools button{border:0;background:#f0f4f2;color:#697671;border-radius:8px;padding:6px 9px;font-size:11px}
.support-compose{display:flex;gap:8px;align-items:center}
.support-compose input{
  flex:1;height:40px;border:1px solid #dfe6e3;border-radius:20px;
  padding:0 14px;outline:0;background:#fbfcfc
}
.support-send{
  width:40px;height:40px;border:2px solid #fff;border-radius:50%;background:linear-gradient(180deg,#12a889 0%,#07856d 100%);color:#fff;box-shadow:0 8px 18px rgba(7,133,109,.18),0 0 0 1px rgba(7,133,109,.14)
}
.support-send .tw-ui-img{filter:brightness(0) invert(1);opacity:1}

/* tablet keeps floating panel, a little wider */
@media(min-width:651px) and (max-width:1024px){
  .support-shell{width:420px;height:610px;right:18px;bottom:86px}
  .support-launcher{right:18px;bottom:18px}
}

/* mobile: Grab-style full support screen */
@media(max-width:650px){
  .support-launcher{
    right:14px;bottom:76px;width:52px;height:52px;font-size:22px
  }
  .support-shell{
    inset:0;width:100vw;height:100dvh;max-height:none;
    border:0;border-radius:0;box-shadow:none;
    background:#f5f7f6;
  }
  #support:target{display:flex}
  .support-head{
    padding:calc(12px + env(safe-area-inset-top)) 14px 12px;
    border-radius:0;
  }
  .support-agent{width:38px;height:38px}
  .support-title b{font-size:16px}
  .support-status{margin-top:10px}
  .support-body{padding:14px 12px 110px}
  .bubble{max-width:84%;font-size:14px}
  .support-foot{
    position:fixed;left:0;right:0;bottom:0;
    padding:9px 10px calc(9px + env(safe-area-inset-bottom));
    box-shadow:0 -5px 20px rgba(20,45,37,.06)
  }
  .support-tools{overflow-x:auto}
  .support-tools button{white-space:nowrap}
}

/* ===== account-v1-1-css ===== */
/* ===== TOP WIN Account Center v1.1 ===== */
.account-page{
  position:fixed;inset:0;z-index:190;display:none;overflow:auto;
  background:#f5f5f5;color:#25312e;
}
#account:target{display:block}
.account-wrap{width:min(980px,100%);min-height:100%;margin:0 auto;padding:18px 18px 88px}
.account-mobile-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.account-avatar{width:58px;height:58px;border-radius:50%;border:3px solid #008b79;background:linear-gradient(145deg,#d9fff5,#91dfca);display:grid;place-items:center;font-weight:900;color:#007563;box-shadow:inset 0 0 0 3px #fff}
.account-name{min-width:0;flex:1}.account-name a{display:block;color:#27312e;font-weight:800;text-decoration:none;font-size:18px}.account-domain{display:inline-block;margin-top:4px;background:#fff;border-radius:16px;padding:4px 9px;color:#53605c;font-size:11px;box-shadow:0 1px 3px #0000000b}
.account-head-actions{display:flex;gap:10px}.account-head-actions a{width:34px;height:34px;display:grid;place-items:center;color:#32433d;text-decoration:none;font-size:20px}
.vip-banner{background:linear-gradient(135deg,#008a76,#057866);color:#fff;border-radius:13px;padding:12px 16px;text-align:center;position:relative;overflow:hidden}
.vip-banner:after{content:"";position:absolute;right:-50px;bottom:-55px;width:170px;height:100px;border-radius:50%;background:#0eb59655}
.vip-title{font-weight:800;font-size:15px}.vip-perks{margin-top:9px;display:flex;justify-content:center;gap:15px;flex-wrap:wrap;font-size:11px}
.asset-card,.shortcut-card,.account-list{background:#fff;border-radius:13px;margin-top:12px}
.asset-card{padding:16px 14px}.asset-title{font-weight:800}.asset-muted{font-size:11px;color:#b0b7b4;margin-top:3px}
.asset-row{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center}.asset-actions{display:grid;grid-template-columns:repeat(3,70px);gap:4px}.asset-actions a{text-decoration:none;color:#2b3733;text-align:center;font-size:12px}.asset-icon{width:38px;height:30px;border-radius:5px;margin:0 auto 5px;background:linear-gradient(135deg,#00a990,#007e70);color:#fff;display:grid;place-items:center;font-size:17px;box-shadow:inset 0 -5px 0 #006a5e22}
.promo-strip{margin-top:12px;background:#fff;border-radius:13px 13px 0 0;height:44px;display:flex;align-items:center;overflow:hidden}.promo-strip strong{padding-left:15px;font-size:16px;flex:1}.promo-strip strong:before{content:"";margin-right:10px}.promo-strip a{background:#008878;color:#fff;height:100%;padding:0 18px;display:grid;place-items:center;text-decoration:none;font-weight:700;font-size:12px;border-radius:22px 0 0 22px}
.shortcut-card{border-radius:0 0 13px 13px;padding:13px 8px 16px;margin-top:0}.shortcut-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px 6px}.shortcut-grid a{text-decoration:none;color:#39443f;text-align:center;font-size:12px}.shortcut-grid i{width:34px;height:34px;border-radius:50%;background:#008778;color:#fff;margin:0 auto 7px;display:grid;place-items:center;font-style:normal;font-size:16px}
.account-list{padding:4px 14px}.account-list a{height:45px;border-bottom:1px solid #edf0ef;display:flex;align-items:center;text-decoration:none;color:#37423e;font-size:13px}.account-list a:last-child{border-bottom:0}.account-list .leftico{width:24px;height:24px;border-radius:6px;display:grid;place-items:center;color:#fff;margin-right:10px;font-size:12px}.account-list .arrow{margin-left:auto;color:#008b79;font-size:20px}
.c1{background:#2c63df}.c2{background:#1fc998}.c3{background:#8f6ee8}.c4{background:#2bc0cf}.c5{background:#008b79}
.account-bottom{position:fixed;z-index:195;left:50%;transform:translateX(-50%);bottom:0;width:min(980px,100%);height:65px;background:#fff;border-top:1px solid #e2e6e4;display:grid;grid-template-columns:repeat(5,1fr);box-shadow:0 -5px 20px #263d350c}
.account-bottom a{text-decoration:none;color:#909996;display:grid;place-items:center;font-size:10px;padding:7px 0}.account-bottom a b{display:block;font-size:18px;margin-bottom:2px}.account-bottom .active{color:#008b79;font-weight:800}
.account-bottom .profile-dot{width:34px;height:34px;border-radius:50%;background:linear-gradient(145deg,#d8fff4,#008b79);display:grid;place-items:center;color:#fff;margin-top:-13px;border:3px solid #fff;box-shadow:0 0 0 1px #d7e3df}

/* functional panels */
.acct-panel{position:fixed;inset:0;z-index:220;display:none;background:#0007;padding:28px;overflow:auto}
.acct-panel:target{display:grid;place-items:center}
.acct-sheet{width:min(520px,100%);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 20px 60px #102b2340}
.acct-sheet-head{display:flex;align-items:center;padding:16px 18px;border-bottom:1px solid #edf0ef}.acct-sheet-head h3{font-size:17px;margin:0;flex:1}.acct-sheet-head a{text-decoration:none;color:#78827e;font-size:22px}
.acct-sheet-body{padding:18px}.acct-note{background:#eef9f5;color:#40645a;border-radius:10px;padding:11px 12px;font-size:12px;line-height:1.5;margin-bottom:14px}
.acct-field{margin-bottom:13px}.acct-field label{display:block;font-size:11px;font-weight:700;margin-bottom:6px}.acct-input,.acct-select{width:100%;height:44px;border:1px solid #dde6e2;border-radius:9px;background:#fafcfb;padding:0 12px;outline:0}.acct-action{width:100%;height:45px;border:0;border-radius:10px;background:#008879;color:#fff;font-weight:800}
.acct-list-row{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid #eef1ef;font-size:12px}.acct-list-row:last-child{border-bottom:0}.acct-list-row b{margin-left:auto;color:#008879}
.acct-big-icon{width:52px;height:52px;border-radius:14px;background:#e8f7f2;color:#008879;display:grid;place-items:center;font-size:25px;margin-bottom:12px}
.acct-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.acct-mini{border:1px solid #e4eae7;border-radius:10px;padding:12px}.acct-mini b{display:block;font-size:13px}.acct-mini small{color:#929c98;font-size:10px}
.acct-code{padding:20px;text-align:center;border:1px dashed #b9d9d0;border-radius:12px;background:#f7fcfa;font-weight:900;font-size:24px;letter-spacing:3px;color:#007968}
.acct-toggles label{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #eef1ef;font-size:12px}
.acct-toggles input{accent-color:#008879}
@media(min-width:700px){
 .account-wrap{padding-top:34px}.account-mobile-head,.vip-banner,.asset-card,.promo-strip,.shortcut-card,.account-list{box-shadow:0 6px 20px #17382f0b}
 .shortcut-grid{grid-template-columns:repeat(8,1fr)}
}
@media(max-width:650px){
 .account-wrap{padding:10px 8px 82px}.account-mobile-head{margin-bottom:10px}.account-avatar{width:50px;height:50px}.account-name a{font-size:16px}.account-head-actions{gap:4px}
 .vip-banner{border-radius:12px}.asset-card,.account-list{border-radius:11px}.asset-actions{grid-template-columns:repeat(3,52px)}.shortcut-grid{gap:17px 3px}
 .acct-panel{padding:0;background:#f5f5f5}.acct-panel:target{display:block}.acct-sheet{width:100%;min-height:100dvh;border-radius:0;box-shadow:none}.acct-sheet-head{padding-top:calc(15px + env(safe-area-inset-top))}.acct-sheet-body{padding-bottom:calc(22px + env(safe-area-inset-bottom))}
}

/* ===== topwin-separated-account-page-fix-v6 ===== */
/* account.html is now a real standalone TOP-WIN page.
   Keep its account surface rendered even when there is no URL hash, so
   opening a child modal never exposes an empty document underneath. */
.account-page{display:block !important;}
/* Support used to sit below #account because it was designed for the old
   single-document layout. In the separated account page it must overlay it. */
.support-shell{z-index:230 !important;}

/* ===== support-mobile-v1-2-fix ===== */
@media(max-width:650px){
  .support-shell{
    top:0!important;right:0!important;bottom:0!important;left:0!important;
    width:100%!important;
    height:100svh!important;
    min-height:100svh!important;
    max-height:100svh!important;
    display:none;
    overflow:hidden!important;
    border-radius:0!important;
    background:#f5f7f6!important;
  }
  #support:target{
    display:flex!important;
    flex-direction:column!important;
  }
  .support-head{
    position:relative!important;
    flex:0 0 auto!important;
    min-height:118px;
    padding:
      max(20px, env(safe-area-inset-top))
      14px
      12px!important;
    z-index:2;
  }
  .support-topline{min-height:42px}
  .support-status{margin-bottom:0}
  .support-body{
    position:relative!important;
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
    padding:14px 12px 16px!important;
  }
  .support-foot{
    position:relative!important;
    left:auto!important;right:auto!important;bottom:auto!important;
    flex:0 0 auto!important;
    z-index:3!important;
    padding:9px 10px max(10px, env(safe-area-inset-bottom))!important;
    background:#fff!important;
    box-shadow:0 -5px 20px rgba(20,45,37,.06)!important;
  }
  .support-close{flex:0 0 34px}
  .support-title{overflow:hidden}
  .support-title b,.support-title small{
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis
  }
}

/* Extra-short phone/browser preview windows */
@media(max-width:650px) and (max-height:700px){
  .support-head{
    min-height:100px;
    padding-top:max(14px, env(safe-area-inset-top))!important;
  }
  .support-status{margin-top:7px;padding:7px 9px}
  .support-tools{margin-bottom:5px}
}

/* ===== mobile-bottom-nav-v1-2 ===== */
@media(max-width:699px){
  .tw-mobile-nav{
    position:fixed;
    z-index:36;
    left:0; right:0; bottom:0;
    height:66px;
    display:grid !important;
    grid-template-columns:repeat(5,1fr);
    align-items:stretch;
    background:#fff;
    border-top:1px solid #e3e8e6;
    box-shadow:0 -5px 18px rgba(18,48,39,.06);
    padding-bottom:max(0px, env(safe-area-inset-bottom));
  }
  .tw-mobile-nav a{
    text-decoration:none;
    color:#8a9490;
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    padding:7px 0 8px;
  }
  .tw-mobile-nav span{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    width:100%;
    line-height:1;
    text-align:center;
  }
  .tw-mobile-nav b{
    width:24px;
    height:24px;
    display:grid;
    place-items:center;
    font-size:20px;
    line-height:1;
    font-weight:500;
    font-style:normal;
    font-family:Arial,"Segoe UI Symbol","Apple Color Emoji","Microsoft YaHei",sans-serif;
    color:inherit;
  }
  .tw-mobile-nav em{
    display:block;
    font-style:normal;
    font-size:11px;
    line-height:1.15;
    font-weight:600;
    letter-spacing:0;
    color:inherit;
    white-space:nowrap;
  }
  .tw-mobile-nav a.active{
    color:#07856d;
  }
  .tw-mobile-nav a.active em{
    color:#07856d;
  }

  /* Keep the account page bottom nav visually aligned too. */
  .account-bottom{
    height:66px !important;
    padding-bottom:max(0px, env(safe-area-inset-bottom));
    align-items:stretch;
  }
  .account-bottom a{
    font-size:11px !important;
    color:#8a9490 !important;
    text-decoration:none;
    display:flex !important;
    align-items:center;
    justify-content:center;
    padding:7px 0 8px !important;
  }
  .account-bottom a span{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:4px;
    line-height:1;
  }
  .account-bottom a b{
    font-size:20px !important;
    line-height:1 !important;
    font-weight:500 !important;
    margin-bottom:0 !important;
  }
  .account-bottom a.active{
    color:#07856d !important;
  }
}

/* ===== category-icons-B-v1-0 ===== */
.tw-cats-b{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(78px,1fr));
  gap:10px!important;
  padding:12px!important;
  border-radius:18px!important;
  background:linear-gradient(180deg,#053e38 0%,#062f2d 100%)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(0,0,0,.18),
    0 10px 28px rgba(1,55,48,.12)!important;
  overflow-x:auto!important;
  scrollbar-width:none;
}
.tw-cats-b::-webkit-scrollbar{display:none}
.tw-cat-b{
  appearance:none;
  border:0!important;
  background:transparent!important;
  color:#f4fffb!important;
  min-width:78px;
  padding:2px 2px 5px!important;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  cursor:pointer;
  position:relative;
  transition:transform .16s ease,filter .16s ease;
  -webkit-tap-highlight-color:transparent;
}
.tw-cat-b em{
  font-style:normal;
  font-size:12px;
  line-height:1;
  font-weight:700;
  letter-spacing:.02em;
  color:#effcf8;
  text-shadow:0 1px 1px rgba(0,0,0,.22);
}
.tw-icon-box{
  width:62px;
  height:50px;
  border-radius:19px;
  position:relative;
  display:grid;
  place-items:center;
  isolation:isolate;
  overflow:hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -8px 18px rgba(0,0,0,.18),
    0 0 0 1px rgba(255,255,255,.24),
    0 8px 16px rgba(0,0,0,.22);
  transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s ease,filter .16s ease;
}
.tw-icon-box:before{
  content:"";
  position:absolute;
  inset:3px 7px 20px;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.42),rgba(255,255,255,0));
  filter:blur(.2px);
  z-index:-1;
}
.tw-icon-box:after{
  content:"";
  position:absolute;
  width:36px;height:12px;
  left:13px;bottom:-3px;
  background:rgba(255,255,255,.45);
  filter:blur(8px);
  border-radius:50%;
}
.tw-icon-main{
  font-size:24px;
  line-height:1;
  font-weight:900;
  color:#fff;
  text-shadow:0 2px 5px rgba(0,0,0,.28),0 0 8px rgba(255,255,255,.2);
  transform:translateY(-1px);
}
.tw-icon-box i{
  position:absolute;
  right:6px;top:5px;
  font-style:normal;
  font-size:10px;
  color:#ffe66b;
  text-shadow:0 1px 3px rgba(0,0,0,.28);
}
.tw-teal{background:linear-gradient(145deg,#00d7b5,#007e71);box-shadow:0 0 18px rgba(0,255,215,.45),inset 0 1px 0 #ffffff66,inset 0 -8px 18px #004c443d}
.tw-red{background:linear-gradient(145deg,#ff536c,#9f1239);box-shadow:0 0 18px rgba(255,58,91,.45),inset 0 1px 0 #ffffff66,inset 0 -8px 18px #5f001f42}
.tw-purple{background:linear-gradient(145deg,#b455ff,#5c23b9);box-shadow:0 0 18px rgba(174,75,255,.45),inset 0 1px 0 #ffffff66,inset 0 -8px 18px #2f12623d}
.tw-cyan{background:linear-gradient(145deg,#00dff0,#027ba1);box-shadow:0 0 18px rgba(0,221,242,.45),inset 0 1px 0 #ffffff66,inset 0 -8px 18px #00475b42}
.tw-blue{background:linear-gradient(145deg,#39a8ff,#0853b4);box-shadow:0 0 18px rgba(31,142,255,.45),inset 0 1px 0 #ffffff66,inset 0 -8px 18px #002b6942}
.tw-green{background:linear-gradient(145deg,#20df7a,#048a52);box-shadow:0 0 18px rgba(30,220,117,.45),inset 0 1px 0 #ffffff66,inset 0 -8px 18px #00462b42}
.tw-gold{background:linear-gradient(145deg,#ffc83d,#d47600);box-shadow:0 0 18px rgba(255,185,26,.5),inset 0 1px 0 #ffffff77,inset 0 -8px 18px #7f3b003f}

.tw-cat-b:hover .tw-icon-box{
  transform:translateY(-2px) scale(1.035);
  filter:saturate(1.12) brightness(1.05);
}
.tw-cat-b:active .tw-icon-box{
  transform:scale(.93);
  filter:brightness(1.12) saturate(1.18);
}
.tw-cat-b:active{transform:translateY(1px)}
.tw-cat-b.active .tw-icon-box,
.tw-cat-b[aria-pressed="true"] .tw-icon-box{
  box-shadow:
    0 0 0 2px rgba(255,255,255,.9),
    0 0 0 5px rgba(0,243,203,.24),
    0 0 22px rgba(0,255,215,.62),
    inset 0 1px 0 rgba(255,255,255,.72),
    inset 0 -8px 18px rgba(0,0,0,.16);
}
.tw-cat-b.active em,
.tw-cat-b[aria-pressed="true"] em{color:#8fffe8}

@keyframes twCatPulse{
  0%{transform:scale(1)}
  45%{transform:scale(.91)}
  72%{transform:scale(1.04)}
  100%{transform:scale(1)}
}
.tw-cat-b.tw-clicked .tw-icon-box{animation:twCatPulse .28s ease-out}

@media(max-width:650px){
  .tw-cats-b{
    grid-template-columns:repeat(7,72px)!important;
    gap:7px!important;
    margin-bottom:10px!important;
    padding:10px 8px!important;
    border-radius:14px!important;
  }
  .tw-cat-b{min-width:72px!important;gap:6px!important}
  .tw-icon-box{width:56px;height:46px;border-radius:17px}
  .tw-icon-main{font-size:21px}
  .tw-cat-b em{font-size:11px}
}

/* ===== category-icons-B-detailed-v1-1 ===== */
.tw-icon-777{
  display:flex;
  gap:1px;
  transform:translateY(-1px) skewX(-8deg);
}
.tw-icon-777 u{
  text-decoration:none;
  font-size:21px;
  line-height:1;
  font-weight:1000;
  color:#fff;
  text-shadow:0 2px 4px rgba(0,0,0,.22),0 0 10px rgba(255,255,255,.22);
}
.tw-icon-fire{
  position:relative;
  width:24px;height:28px;
}
.tw-icon-fire:before{
  content:"";
  position:absolute;left:3px;top:1px;
  width:18px;height:24px;
  background:linear-gradient(180deg,#fff19d 0%,#ffb33f 32%,#ff6731 70%,#c5152c 100%);
  border-radius:55% 55% 60% 60% / 40% 40% 78% 78%;
  transform:rotate(8deg);
  clip-path:path("M12 0 C17 4,20 10,18 15 C17 21,12 24,12 28 C11 24,6 21,5 15 C4 10,8 6,12 0 Z");
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.22));
}
.tw-icon-fire s{
  position:absolute;left:8px;top:8px;
  width:8px;height:11px;display:block;
  background:linear-gradient(180deg,#fff7cd,#ffd85d 70%,#ff9d22 100%);
  border-radius:60% 60% 55% 55% / 45% 45% 75% 75%;
  transform:rotate(-10deg);
}
.tw-icon-casino{
  position:relative;width:28px;height:24px;
}
.tw-icon-casino b{
  position:absolute;
  font-style:normal;
  font-size:18px;line-height:1;
  text-shadow:0 2px 4px rgba(0,0,0,.25);
}
.tw-icon-casino .spade{left:2px;top:3px;color:#f6f8ff}
.tw-icon-casino .heart{right:0;bottom:0;color:#ff8cb4}
.tw-icon-tile{
  display:flex;gap:2px;align-items:center;
  background:rgba(255,255,255,.2);
  border-radius:8px;padding:4px 5px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.26);
}
.tw-icon-tile u{
  text-decoration:none;
  width:13px;height:16px;border-radius:4px;
  background:rgba(255,255,255,.92);
  color:#0c7396;
  display:grid;place-items:center;
  font-size:10px;font-weight:900;line-height:1;
  box-shadow:0 1px 2px rgba(0,0,0,.14);
}
.tw-icon-fish{
  position:relative;width:28px;height:20px;
}
.tw-icon-fish .body{
  position:absolute;left:2px;top:3px;width:18px;height:14px;
  background:linear-gradient(145deg,#d8fdff,#65d8ff 55%,#0286d8);
  border-radius:58% 48% 54% 50%;
  transform:skewX(-8deg);
  box-shadow:0 2px 4px rgba(0,0,0,.18);
}
.tw-icon-fish .tail{
  position:absolute;right:1px;top:5px;width:10px;height:10px;
  background:linear-gradient(145deg,#c9f7ff,#42beff 55%,#0468c7);
  clip-path:polygon(0 50%,100% 0,100% 100%);
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.16));
}
.tw-icon-fish .eye{
  position:absolute;left:8px;top:8px;width:3px;height:3px;background:#0d5d9d;border-radius:50%;
}
.tw-icon-fish .fin{
  position:absolute;left:9px;top:2px;width:8px;height:6px;
  background:linear-gradient(180deg,#c5f8ff,#35aefe);
  clip-path:polygon(0 100%,50% 0,100% 100%);
}
.tw-icon-ball{
  width:24px;height:24px;border-radius:50%;
  background:
    radial-gradient(circle at 35% 28%, #ffffff 0 18%, transparent 19%),
    radial-gradient(circle at 42% 36%, #f7f7f7 0 44%, #131313 45% 54%, #ffffff 55% 62%, #131313 63% 70%, #f7f7f7 71% 100%);
  box-shadow:0 2px 4px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.45);
}
.tw-icon-eight{
  width:24px;height:24px;border-radius:50%;
  display:grid;place-items:center;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,.85) 0 14%, transparent 15%),
    linear-gradient(145deg,#fff8bb,#ffd14f 38%,#ff9500 100%);
  color:#8d4600;
  font-size:19px;
  line-height:1;
  font-weight:1000;
  box-shadow:0 2px 4px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.5);
}
.tw-icon-box > i{
  position:absolute;
  right:6px;top:5px;
  font-style:normal;
  font-size:10px;
  color:#ffe66b;
  text-shadow:0 1px 3px rgba(0,0,0,.28);
}

/* ===== topwin-design-system-v1-1 ===== */
:root{
  --tw-green-900:#043d35;
  --tw-green-800:#075e50;
  --tw-green-700:#07856d;
  --tw-green-500:#12b893;
  --tw-mint-100:#e8f7f2;
  --tw-bg:#f4f6f5;
  --tw-surface:#ffffff;
  --tw-text:#22312c;
  --tw-muted:#7c8984;
  --tw-line:#e2e9e6;
  --tw-orange:#ef9a31;
  --tw-danger:#ef5b54;
  --tw-radius-sm:10px;
  --tw-radius-md:14px;
  --tw-radius-lg:18px;
  --tw-shadow-1:0 3px 12px rgba(19,58,47,.06);
  --tw-shadow-2:0 10px 28px rgba(12,56,44,.12);
  --tw-ease:cubic-bezier(.2,.8,.2,1);
}
body{
  color:var(--tw-text);
  background:var(--tw-bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,a,input,select{font-family:inherit}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{
  outline:3px solid rgba(18,184,147,.28);
  outline-offset:2px;
}
.hero{
  box-shadow:var(--tw-shadow-1);
}
.rank{
  box-shadow:var(--tw-shadow-1);
}
.title{
  margin-top:20px!important;
}
.title h2{
  font-weight:850;
  letter-spacing:-.02em;
}
.tw-cats-b{
  scroll-snap-type:x proximity;
}
.tw-cat-b{
  scroll-snap-align:center;
}
.tw-cat-b em{
  font-weight:750!important;
  letter-spacing:.01em!important;
}

/* Game card system */
.tw-games{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px!important;
}
.tw-game-card{
  border:0!important;
  border-radius:var(--tw-radius-md)!important;
  background:var(--tw-surface)!important;
  overflow:hidden!important;
  box-shadow:var(--tw-shadow-1)!important;
  transition:transform .18s var(--tw-ease),box-shadow .18s var(--tw-ease)!important;
  min-width:0;
}
.tw-game-card:hover,
.tw-game-card:focus-within{
  transform:translateY(-3px);
  box-shadow:var(--tw-shadow-2)!important;
}
.tw-game-cover{
  aspect-ratio:1.14!important;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(circle at 70% 20%,rgba(255,255,255,.35),transparent 30%),
    linear-gradient(145deg,var(--a),var(--b))!important;
}
.tw-game-cover:before{
  content:"";
  position:absolute;inset:0;
  background:
    linear-gradient(180deg,rgba(255,255,255,.12),transparent 30%,rgba(0,0,0,.12) 100%),
    radial-gradient(circle at 50% 125%,rgba(255,255,255,.35),transparent 45%);
  z-index:0;
}
.tw-game-badge{
  position:absolute;left:8px;top:8px;z-index:3;
  padding:4px 7px;border-radius:999px;
  background:rgba(7,61,53,.72);
  color:#fff;font-size:9px;font-weight:850;letter-spacing:.05em;
  backdrop-filter:blur(8px);
}
.tw-game-cover .rtp{
  position:absolute!important;top:8px!important;right:38px!important;left:auto!important;
  z-index:3;background:rgba(255,255,255,.92)!important;color:#0b6958!important;
  padding:4px 7px!important;border-radius:999px!important;
  font-size:9px!important;font-weight:800!important;
  box-shadow:0 1px 4px rgba(0,0,0,.08);
}
.tw-fav{
  position:absolute;top:7px;right:7px;z-index:4;
  width:28px;height:28px;border:0;border-radius:50%;
  display:grid;place-items:center;
  background:rgba(255,255,255,.92);color:#64716c;
  font-size:17px;line-height:1;
  box-shadow:0 2px 8px rgba(0,0,0,.1);
  transition:transform .15s ease,color .15s ease,background .15s ease;
}
.tw-fav:active{transform:scale(.88)}
.tw-fav.is-fav{background:#fff0f1;color:#e8495e}
.tw-game-visual{
  position:absolute;inset:0;
  display:grid;place-items:center;
  z-index:1;
}
.tw-game-orb{
  width:70px;height:70px;border-radius:24px;
  display:grid;place-items:center;
  font-size:38px;
  background:linear-gradient(145deg,rgba(255,255,255,.34),rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.35);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 12px 25px rgba(0,0,0,.18);
  backdrop-filter:blur(6px);
  transform:rotate(-4deg);
  transition:transform .2s var(--tw-ease);
}
.tw-game-card:hover .tw-game-orb{transform:rotate(0deg) scale(1.05)}
.tw-game-spark{
  position:absolute;color:#fff9c8;text-shadow:0 0 10px #fff6a8;
  opacity:.85
}
.tw-game-spark.one{left:20%;top:28%;font-size:14px}
.tw-game-spark.two{right:18%;bottom:24%;font-size:22px}
.tw-play{
  position:absolute;left:50%;bottom:10px;z-index:4;
  transform:translate(-50%,8px);
  opacity:0;
  min-width:76px;height:30px;border:0;border-radius:999px;
  background:#fff;color:#08765f;font-size:11px;font-weight:850;
  box-shadow:0 5px 14px rgba(0,0,0,.14);
  transition:opacity .17s ease,transform .17s var(--tw-ease);
}
.tw-game-card:hover .tw-play,
.tw-game-card:focus-within .tw-play{
  opacity:1;
  transform:translate(-50%,0);
}
.tw-game-info{
  padding:10px 10px 11px!important;
  background:#fff!important;
}
.tw-game-title-row{
  display:flex;align-items:center;gap:7px;min-width:0;
}
.tw-game-title-row b{
  min-width:0;flex:1;
  font-size:13px!important;font-weight:800!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.tw-provider{
  flex:0 0 auto;
  padding:3px 6px;border-radius:999px;
  background:var(--tw-mint-100);
  color:var(--tw-green-700);
  font-size:9px;font-weight:850;
}
.tw-game-info small{
  display:block;margin-top:5px;
  color:#9aa5a1!important;font-size:9px!important;
}

/* Better micro-interactions */
.login,.auth,.primary,.acct-action,.support-send{
  transition:transform .14s ease,filter .14s ease,box-shadow .14s ease;
}
.login:active,.auth:active,.primary:active,.acct-action:active,.support-send:active{
  transform:scale(.97);
}
.tw-mobile-nav a{
  transition:color .16s ease,transform .16s ease;
}
.tw-mobile-nav a:active{
  transform:translateY(1px) scale(.97);
}
.tw-mobile-nav a.active b{
  transform:translateY(-1px);
}
@media(max-width:1050px){
  .tw-games{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:650px){
  .tw-games{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  .tw-game-card{border-radius:11px!important}
  .tw-game-cover{aspect-ratio:1.02!important}
  .tw-game-orb{width:52px;height:52px;border-radius:18px;font-size:29px}
  .tw-game-badge{left:5px;top:5px;font-size:8px;padding:3px 5px}
  .tw-game-cover .rtp{top:5px!important;right:31px!important;font-size:8px!important;padding:3px 5px!important}
  .tw-fav{width:24px;height:24px;top:4px;right:4px;font-size:15px}
  .tw-play{display:none}
  .tw-game-info{padding:7px!important}
  .tw-game-title-row b{font-size:11px!important}
  .tw-provider{font-size:8px;padding:2px 5px}
  .tw-game-info small{font-size:8px!important;margin-top:3px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
    scroll-behavior:auto!important;
  }
}

/* ===== mobile-favorite-fix-v1 ===== */
.tw-fav.is-fav,
.tw-fav[aria-pressed="true"]{
  background:#fff0f3!important;
  color:#e83f5b!important;
  box-shadow:0 2px 10px rgba(232,63,91,.22)!important;
}
.tw-fav.is-fav::after,
.tw-fav[aria-pressed="true"]::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:50%;
  border:1px solid rgba(232,63,91,.18);
  pointer-events:none;
}
@media(max-width:650px){
  .tw-fav{
    color:#64716c!important;
    background:rgba(255,255,255,.94)!important;
  }
  .tw-fav.is-fav,
  .tw-fav[aria-pressed="true"]{
    color:#e83f5b!important;
    background:#fff0f3!important;
  }
}

/* ===== favorite-css-toggle-v1 ===== */
.tw-fav-toggle{
  position:absolute!important;
  opacity:0!important;
  pointer-events:none!important;
  width:1px!important;
  height:1px!important;
}
.tw-fav-css{
  position:absolute;
  top:7px;
  right:7px;
  z-index:6;
  width:28px;
  height:28px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.94);
  color:#64716c;
  font-size:17px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;
  transition:transform .14s ease,background .14s ease,color .14s ease,box-shadow .14s ease;
}
.tw-fav-css .on{display:none}
.tw-fav-css .off{display:block}
.tw-fav-toggle:checked + .tw-fav-css{
  color:#e63f58!important;
  background:#fff0f3!important;
  box-shadow:0 2px 10px rgba(230,63,88,.24)!important;
}
.tw-fav-toggle:checked + .tw-fav-css .off{display:none!important}
.tw-fav-toggle:checked + .tw-fav-css .on{
  display:block!important;
  color:#e63f58!important;
}
.tw-fav-toggle:checked + .tw-fav-css::after{
  content:"";
  position:absolute;
  inset:-3px;
  border-radius:50%;
  border:1px solid rgba(230,63,88,.2);
  pointer-events:none;
}
.tw-fav-css:active{transform:scale(.88)}
.tw-fav-toggle:focus-visible + .tw-fav-css{
  outline:3px solid rgba(18,184,147,.28);
  outline-offset:2px;
}
@media(max-width:650px){
  .tw-fav-css{
    top:4px;
    right:4px;
    width:24px;
    height:24px;
    font-size:15px;
  }
}

/* ===== icon-redesign-v1-0 ===== */
/* --- Account shortcut icon redesign --- */
.shortcut-grid i.tw-shortcut-ico{
  position:relative;
  overflow:hidden;
  font-size:0!important;
  background:linear-gradient(145deg,#0aa58b,#077562)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.25),
    0 4px 10px rgba(7,119,98,.18);
}
.shortcut-grid i.tw-shortcut-ico::after{
  content:"";
  position:absolute;
  inset:4px 7px 18px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,0));
}
.tw-ico-bets .ticket{
  position:absolute;
  left:8px; top:9px;
  width:18px; height:14px;
  background:#fff;
  border-radius:4px;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  clip-path:polygon(0 0,100% 0,100% 32%,92% 40%,100% 50%,100% 100%,0 100%,0 68%,8% 60%,0 50%,0 0);
}
.tw-ico-bets .dot{
  position:absolute;left:12px;top:12px;width:3px;height:3px;border-radius:50%;background:#0a8f77;
}
.tw-ico-bets .line{
  position:absolute;left:16px;height:2px;border-radius:999px;background:#0a8f77;
}
.tw-ico-bets .l1{top:12px;width:7px}
.tw-ico-bets .l2{top:16px;width:5px}

.tw-ico-trans .card{
  position:absolute;
  left:8px; top:9px;
  width:18px; height:14px;
  background:#fff;
  border-radius:4px;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
}
.tw-ico-trans .card::before{
  content:"";
  position:absolute;left:0;right:0;top:3px;height:3px;background:#0b8d76;border-radius:4px 4px 0 0;
}
.tw-ico-trans .line{
  position:absolute;height:2px;border-radius:999px;background:#7dc8b8;
}
.tw-ico-trans .t1{left:11px;top:17px;width:9px}
.tw-ico-trans .t2{left:11px;top:20px;width:6px}
.tw-ico-trans .coin{
  position:absolute;right:6px;bottom:7px;width:7px;height:7px;border-radius:50%;
  background:#f4c250;border:1px solid rgba(255,255,255,.45);
  box-shadow:0 1px 2px rgba(0,0,0,.12);
}

/* --- Bottom navigation home icon redesign --- */
.tw-mobile-nav b.tw-nav-home,
.account-bottom b.tw-nav-home{
  position:relative;
  width:22px;
  height:22px;
  display:block!important;
  font-size:0!important;
  margin:0 auto;
}
.tw-nav-home .roof{
  position:absolute;
  left:2px; top:1px;
  width:18px; height:18px;
  border-left:2px solid currentColor;
  border-top:2px solid currentColor;
  transform:rotate(45deg);
  border-radius:2px 0 0 0;
}
.tw-nav-home .house{
  position:absolute;
  left:5px; bottom:2px;
  width:12px; height:10px;
  border:2px solid currentColor;
  border-top:none;
  border-radius:2px 2px 3px 3px;
  background:transparent;
}
.tw-nav-home .door{
  position:absolute;
  left:9px; bottom:2px;
  width:4px; height:6px;
  background:currentColor;
  border-radius:2px 2px 0 0;
}

/* slightly improve icon consistency in account bottom */
.account-bottom a b{
  width:22px;
  height:22px;
  display:block;
  margin:0 auto;
}
.tw-mobile-nav a b{
  width:22px;
  height:22px;
  display:block;
  margin:0 auto;
}

/* ===== account-bottom-align-fix-v1 ===== */
/* Align the last "我的" item with the rest of the bottom navigation */
.account-bottom a > span{
  min-height:44px;
}
.account-bottom .profile-dot{
  width:22px !important;
  height:22px !important;
  margin-top:0 !important;
  display:grid !important;
  place-items:center !important;
  border-radius:50% !important;
  border:2px solid #fff !important;
  box-shadow:0 0 0 1px #d7e3df !important;
  font-size:10px !important;
  font-weight:800 !important;
  line-height:1 !important;
}
.account-bottom a.active > span{
  gap:4px !important;
  align-items:center !important;
  justify-content:center !important;
}
.account-bottom a.active{
  padding-top:7px !important;
}

/* ===== favorites-sync-v1 ===== */
.tw-favorites-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.tw-favorite-item{
  display:none;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:10px;
  border:1px solid #e4ebe8;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 10px rgba(18,58,47,.05);
}
.tw-favorite-art{
  width:44px;height:44px;flex:0 0 44px;
  display:grid;place-items:center;
  border-radius:12px;
  background:linear-gradient(145deg,#e9f8f3,#d8f0e8);
  font-size:24px;
}
.tw-favorite-meta{
  min-width:0;flex:1;
}
.tw-favorite-meta b{
  display:block;
  font-size:12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tw-favorite-meta small{
  display:block;
  margin-top:3px;
  font-size:9px;
  color:#8b9792;
}
.tw-favorite-remove{
  width:28px;height:28px;
  display:grid;place-items:center;
  flex:0 0 28px;
  border-radius:50%;
  background:#fff0f3;
  color:#e63f58;
  cursor:pointer;
  box-shadow:0 2px 8px rgba(230,63,88,.15);
  -webkit-tap-highlight-color:transparent;
}
.tw-favorite-remove:active{transform:scale(.9)}
.tw-favorites-empty{
  display:flex;
  min-height:150px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#7e8b86;
}
.tw-favorites-empty b{font-size:13px;color:#4a5752}
.tw-favorites-empty small{font-size:10px;margin-top:5px}
.tw-empty-heart{
  width:48px;height:48px;
  display:grid;place-items:center;
  border-radius:50%;
  margin-bottom:8px;
  background:#f1f6f4;
  color:#9aa6a1;
  font-size:25px;
}
body:has(#fav-1:checked,#fav-2:checked,#fav-3:checked,#fav-4:checked,#fav-5:checked,#fav-6:checked,#fav-7:checked,#fav-8:checked,#fav-9:checked,#fav-10:checked,#fav-11:checked,#fav-12:checked) .tw-favorites-empty{display:none!important;}
body:has(#fav-1:checked,#fav-2:checked,#fav-3:checked,#fav-4:checked,#fav-5:checked,#fav-6:checked,#fav-7:checked,#fav-8:checked,#fav-9:checked,#fav-10:checked,#fav-11:checked,#fav-12:checked) .tw-fav-dot{display:block!important;}
body:has(#fav-1:checked) .tw-favorite-item-1{display:flex!important;}body:has(#fav-2:checked) .tw-favorite-item-2{display:flex!important;}body:has(#fav-3:checked) .tw-favorite-item-3{display:flex!important;}body:has(#fav-4:checked) .tw-favorite-item-4{display:flex!important;}body:has(#fav-5:checked) .tw-favorite-item-5{display:flex!important;}body:has(#fav-6:checked) .tw-favorite-item-6{display:flex!important;}body:has(#fav-7:checked) .tw-favorite-item-7{display:flex!important;}body:has(#fav-8:checked) .tw-favorite-item-8{display:flex!important;}body:has(#fav-9:checked) .tw-favorite-item-9{display:flex!important;}body:has(#fav-10:checked) .tw-favorite-item-10{display:flex!important;}body:has(#fav-11:checked) .tw-favorite-item-11{display:flex!important;}body:has(#fav-12:checked) .tw-favorite-item-12{display:flex!important;}

.tw-favorites-shortcut{position:relative}
.tw-fav-dot{
  display:none;
  position:absolute;
  top:7px;
  right:24%;
  width:7px;
  height:7px;
  border-radius:50%;
  background:#e63f58;
  box-shadow:0 0 0 2px #fff;
}

@media(max-width:650px){
  .tw-favorites-list{grid-template-columns:1fr}
  .tw-favorite-item{padding:9px}
  .tw-favorite-art{width:40px;height:40px;flex-basis:40px;font-size:22px}
}

/* ===== tw-weekly-prize-v1 ===== */
.tw-weekly-prize{
  margin:14px 0 22px;
  padding:0;
}
.tw-weekly-headline{
  margin-bottom:10px;
}
.tw-weekly-headline .tw-weekly-tag{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#fff4de;
  color:#a85c00;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.tw-weekly-headline h2{
  margin:10px 0 4px;
  font-size:34px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.03em;
  color:#142a25;
}
.tw-weekly-headline p{
  margin:0;
  color:#7c8a85;
  font-size:13px;
  font-weight:600;
}
.tw-weekly-shell{
  position:relative;
  overflow:hidden;
  border-radius:26px;
  padding:18px 18px 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,223,133,.18), transparent 24%),
    radial-gradient(circle at 80% 18%, rgba(255,191,96,.15), transparent 23%),
    linear-gradient(180deg,#44230d 0%,#0f0906 48%,#26140b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 18px 40px rgba(31,14,5,.24);
}
.tw-weekly-shell::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(circle, rgba(255,214,134,.9) 0 2px, transparent 3px) 0 0/130px 130px,
    radial-gradient(circle, rgba(255,229,167,.65) 0 3px, transparent 4px) 65px 55px/180px 180px;
  opacity:.35;
  animation:twSparkle 8s linear infinite;
  pointer-events:none;
}
@keyframes twSparkle{
  from{transform:translateY(0)}
  50%{transform:translateY(-8px)}
  to{transform:translateY(0)}
}
.tw-weekly-topbar{
  position:relative;
  z-index:2;
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
  padding:10px 14px;
  border-radius:14px;
  background:linear-gradient(90deg,rgba(198,130,35,.65),rgba(183,44,24,.72));
  color:#fff8ef;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.15);
}
.tw-deadline,.tw-reset-note{
  font-size:13px;
  font-weight:800;
}
.tw-deadline b{color:#fff}
.tw-grand-total-wrap{
  position:relative;
  z-index:2;
  width:max-content;
  max-width:100%;
  margin:0 auto 18px;
  text-align:center;
}
.tw-grand-label{
  display:inline-flex;
  margin-bottom:8px;
  padding:7px 16px;
  border-radius:999px 999px 12px 12px;
  background:linear-gradient(180deg,#ff4cb0,#b21f72);
  color:#fff6cb;
  font-size:17px;
  font-weight:900;
  text-shadow:0 2px 8px rgba(0,0,0,.35);
  box-shadow:0 8px 18px rgba(223,51,135,.26), inset 0 1px 0 rgba(255,255,255,.28);
}
.tw-grand-total{
  position:relative;
  display:flex;
  gap:4px;
  justify-content:center;
  flex-wrap:nowrap;
  padding:8px 12px;
  border-radius:18px;
  background:linear-gradient(180deg,#5c1110,#731917 46%,#4b100b);
  box-shadow:0 8px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.12);
  color:#c91917;
  font-weight:900;
  font-size:42px;
  letter-spacing:.08em;
  text-shadow:0 1px 0 #fff;
}
.tw-grand-total .digit{
  display:grid;
  place-items:center;
  min-width:34px;
  height:54px;
  padding:0 2px;
  border-radius:8px;
  background:linear-gradient(180deg,#fff9ef,#f6ead9 46%,#f0ddc5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92), inset 0 -1px 0 rgba(124,65,20,.18);
}
.tw-grand-total .comma{
  color:#fff6cb;
  text-shadow:0 1px 0 rgba(0,0,0,.25);
  min-width:14px;
}
.tw-light{
  position:absolute;
  top:56px;
  width:70px; height:70px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,239,149,.9) 0%, rgba(255,239,149,.2) 35%, transparent 70%);
  filter:blur(1px);
  opacity:.85;
}
.tw-light-l{left:-36px; animation:twPulse 1.8s ease-in-out infinite}
.tw-light-r{right:-36px; animation:twPulse 1.8s ease-in-out infinite .5s}
@keyframes twPulse{
  0%,100%{transform:scale(.9);opacity:.6}
  50%{transform:scale(1.15);opacity:1}
}
.tw-stage{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:1fr 1.2fr 1fr;
  align-items:end;
  gap:22px;
  min-height:350px;
  padding:10px 8px 8px;
}
.tw-spot{
  position:relative;
  z-index:3;
  text-align:center;
}
.tw-spot-center{transform:translateY(-4px)}
.tw-podium{
  position:absolute;
  bottom:0;
  border-radius:16px 16px 6px 6px;
  background:linear-gradient(180deg,#56606a 0%,#282d33 22%,#161a1f 100%);
  box-shadow:0 12px 24px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.18);
}
.tw-podium::before{
  content:"";
  position:absolute;
  left:8%;
  right:8%;
  top:10px;
  height:12px;
  border-radius:12px;
  background:radial-gradient(ellipse at center, rgba(255,255,255,.34), rgba(255,255,255,0) 70%);
}
.tw-podium-left{left:8%; width:22%; height:76px}
.tw-podium-center{left:34%; width:32%; height:110px}
.tw-podium-right{right:8%; width:22%; height:70px}
.tw-crown{
  position:absolute;
  top:-14px;
  left:50%;
  transform:translateX(-50%);
  font-size:32px;
  filter:drop-shadow(0 8px 14px rgba(255,193,7,.32));
  animation:twFloat 2.2s ease-in-out infinite;
}
@keyframes twFloat{
  0%,100%{transform:translateX(-50%) translateY(0)}
  50%{transform:translateX(-50%) translateY(-8px)}
}
.tw-winner-card{
  position:relative;
  width:100%;
}
.tw-winner-card .tw-cover{
  width:100%;
  margin:0 auto;
  border-radius:18px;
  background:
    radial-gradient(circle at 68% 18%, rgba(255,255,255,.28), transparent 26%),
    linear-gradient(145deg,var(--a),var(--b));
  box-shadow:0 16px 28px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.26);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  color:#fff;
}
.tw-winner-card.mini .tw-cover{max-width:190px;height:210px}
.tw-winner-card.champion .tw-cover{max-width:220px;height:246px;border:2px solid rgba(255,241,194,.88)}
.tw-winner-card .tw-game-emoji{
  font-size:58px;
  line-height:1;
  filter:drop-shadow(0 10px 15px rgba(0,0,0,.15));
}
.tw-cover-name{
  margin-top:12px;
  font-size:18px;
  font-weight:900;
}
.tw-cover-provider{
  margin-top:6px;
  font-size:13px;
  font-weight:700;
  opacity:.95;
}
.tw-win-amount{
  margin-top:14px;
  color:#ffe9ab;
  font-size:20px;
  font-weight:900;
  text-shadow:0 2px 9px rgba(0,0,0,.28);
}
.tw-winner-card.champion .tw-win-amount{font-size:24px}
.tw-win-player{
  margin-top:6px;
  color:#f6d69c;
  font-size:17px;
  font-weight:700;
}
.tw-marquee-wrap{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  margin-top:14px;
  padding:12px;
  border-radius:18px;
  background:rgba(20,16,16,.55);
  border:1px solid rgba(255,245,226,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.tw-marquee-title{
  padding:9px 12px;
  border-radius:14px;
  background:linear-gradient(145deg,#3f2417,#261511);
  color:#ffd795;
  font-size:13px;
  font-weight:900;
  white-space:nowrap;
}
.tw-marquee-track{
  display:flex;
  gap:10px;
  overflow-x:auto;
  scrollbar-width:none;
}
.tw-marquee-track::-webkit-scrollbar{display:none}
.tw-marquee-item{
  min-width:220px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(255,255,255,.04);
  color:#fff4da;
  text-align:left;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
  cursor:pointer;
}
.tw-marquee-item.active,
.tw-marquee-item:hover{
  transform:translateY(-2px);
  background:rgba(255,219,157,.12);
  box-shadow:0 10px 18px rgba(0,0,0,.18);
}
.tw-marquee-item span{
  display:block;
  font-size:14px;
  font-weight:800;
}
.tw-marquee-item b{
  display:block;
  margin-top:4px;
  font-size:20px;
  color:#ffe29c;
}
.tw-marquee-item small{
  display:block;
  margin-top:3px;
  color:#f2c67f;
  font-size:12px;
}
.tw-enter-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:112px;
  height:44px;
  padding:0 18px;
  border-radius:14px;
  text-decoration:none;
  background:linear-gradient(180deg,#ffe2a4,#e6b95f);
  color:#5c3310;
  font-size:15px;
  font-weight:900;
  box-shadow:0 10px 18px rgba(230,185,95,.18), inset 0 1px 0 rgba(255,255,255,.6);
}
.tw-enter-btn:active{transform:scale(.98)}
@media(max-width:900px){
  .tw-weekly-headline h2{font-size:28px}
  .tw-stage{gap:14px}
  .tw-winner-card.mini .tw-cover{max-width:160px;height:184px}
  .tw-winner-card.champion .tw-cover{max-width:190px;height:220px}
  .tw-grand-total{font-size:34px}
  .tw-grand-total .digit{min-width:28px;height:46px}
}
@media(max-width:650px){
  .tw-weekly-prize{margin-top:12px}
  .tw-weekly-headline h2{font-size:24px}
  .tw-weekly-headline p{font-size:12px}
  .tw-weekly-shell{
    padding:14px 10px 12px;
    border-radius:20px;
  }
  .tw-weekly-topbar{
    padding:9px 10px;
    flex-direction:column;
    align-items:flex-start;
    gap:5px;
  }
  .tw-deadline,.tw-reset-note{font-size:12px}
  .tw-grand-label{font-size:14px;padding:6px 12px}
  .tw-grand-total{
    font-size:24px;
    padding:7px 8px;
    gap:2px;
  }
  .tw-grand-total .digit{
    min-width:20px;height:36px;border-radius:6px;font-size:24px;
  }
  .tw-grand-total .comma{min-width:8px}
  .tw-light{top:43px;width:42px;height:42px}
  .tw-stage{
    display:flex;
    justify-content:center;
    align-items:flex-end;
    gap:8px;
    min-height:270px;
    padding:4px 0 0;
  }
  .tw-podium-left{left:5%;width:27%;height:56px}
  .tw-podium-center{left:35%;width:30%;height:86px}
  .tw-podium-right{right:5%;width:27%;height:46px}
  .tw-winner-card.mini .tw-cover{max-width:108px;height:140px;border-radius:14px}
  .tw-winner-card.champion .tw-cover{max-width:126px;height:164px;border-radius:16px}
  .tw-winner-card .tw-game-emoji{font-size:34px}
  .tw-cover-name{font-size:12px;margin-top:8px}
  .tw-cover-provider{font-size:10px;margin-top:4px}
  .tw-win-amount{font-size:14px;margin-top:8px}
  .tw-winner-card.champion .tw-win-amount{font-size:16px}
  .tw-win-player{font-size:11px}
  .tw-crown{font-size:24px;top:-8px}
  .tw-marquee-wrap{
    grid-template-columns:1fr;
    gap:10px;
    padding:10px;
  }
  .tw-marquee-title{justify-self:start}
  .tw-marquee-item{min-width:170px}
  .tw-enter-btn{
    width:100%;
    min-width:0;
    height:40px;
  }
}

/* ===== tw-weekly-prize-enhance-v1 ===== */
/* stronger hero leaderboard polish */
.tw-grand-total,
.tw-win-amount{
  position:relative;
  overflow:hidden;
}
.tw-grand-total::after,
.tw-winner-card .tw-cover::after{
  content:"";
  position:absolute;
  top:-20%;
  left:-40%;
  width:35%;
  height:140%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent);
  transform:rotate(18deg);
  animation:twSweep 3.8s linear infinite;
  pointer-events:none;
}
.tw-winner-card.champion .tw-cover::after{animation-duration:2.8s}
@keyframes twSweep{
  from{left:-40%}
  to{left:125%}
}

.tw-grand-total .digit.jump,
.tw-win-amount .digit.jump{
  animation:twDigitJump .28s ease;
}
@keyframes twDigitJump{
  0%{transform:translateY(12px) scale(.94);opacity:.35}
  55%{transform:translateY(-6px) scale(1.08);opacity:1}
  100%{transform:translateY(0) scale(1)}
}

.tw-rank-badge{
  position:absolute;
  left:10px;
  top:10px;
  z-index:4;
  min-width:68px;
  padding:6px 8px;
  border-radius:16px;
  color:#fff;
  display:flex;
  align-items:center;
  gap:6px;
  font-size:11px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.28);
}
.tw-rank-badge.gold{background:linear-gradient(180deg,#ffd876,#cb7a00)}
.tw-rank-badge.silver{background:linear-gradient(180deg,#f7f8ff,#98a1b6); color:#314155}
.tw-rank-badge.bronze{background:linear-gradient(180deg,#f1b48b,#a55726)}
.tw-rank-trophy{font-size:15px;line-height:1}

.tw-winner-card{
  cursor:pointer;
  transition:transform .18s ease, filter .18s ease;
}
.tw-winner-card:hover{
  transform:translateY(-4px) scale(1.012);
  filter:saturate(1.06);
}
.tw-winner-card .tw-cover{
  position:relative;
  overflow:hidden;
}
.tw-enter-overlay{
  position:absolute;
  inset:auto 12px 12px;
  height:38px;
  border-radius:999px;
  background:rgba(8,17,15,.62);
  color:#fff8df;
  display:flex;
  align-items:center;
  justify-content:center;
  backdrop-filter:blur(8px);
  box-shadow:0 8px 18px rgba(0,0,0,.18);
  transform:translateY(18px);
  opacity:0;
  transition:transform .2s ease, opacity .2s ease, background .2s ease;
  font-size:12px;
  font-weight:900;
  letter-spacing:.04em;
}
.tw-enter-overlay span::before{
  content:"";
  display:inline-block;
  margin-right:8px;
  font-size:11px;
}
.tw-winner-card:hover .tw-enter-overlay,
.tw-winner-card.entered .tw-enter-overlay{
  opacity:1;
  transform:translateY(0);
}
.tw-winner-card.entered .tw-enter-overlay{
  animation:twOverlayPulse .42s ease;
}
@keyframes twOverlayPulse{
  0%{transform:translateY(16px) scale(.95);opacity:.2}
  60%{transform:translateY(-2px) scale(1.03);opacity:1}
  100%{transform:translateY(0) scale(1)}
}

.tw-marquee-item.flash{
  animation:twListFlash .4s ease;
}
@keyframes twListFlash{
  0%{transform:scale(.97)}
  50%{transform:scale(1.04); background:rgba(255,226,156,.18)}
  100%{transform:scale(1)}
}

@media(max-width:650px){
  .tw-rank-badge{
    left:6px; top:6px;
    min-width:56px;
    padding:4px 6px;
    border-radius:12px;
    font-size:9px;
    gap:4px;
  }
  .tw-rank-trophy{font-size:12px}
  .tw-enter-overlay{
    inset:auto 8px 8px;
    height:30px;
    font-size:10px;
  }
}

/* ===== tw-weekly-prize-extreme-v1 ===== */
/* Stronger champion pulse / impact */
.tw-weekly-shell{
  overflow:visible;
}
.tw-weekly-shell::after{
  content:"";
  position:absolute;
  inset:10px;
  border-radius:24px;
  border:1px solid rgba(255,207,107,.18);
  pointer-events:none;
}
.tw-stage{
  overflow:visible;
}
.tw-spot-center{
  filter:drop-shadow(0 12px 28px rgba(255,182,58,.24));
}
.tw-winner-card.champion{
  animation:twChampionBreath 2.2s ease-in-out infinite;
}
@keyframes twChampionBreath{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-3px) scale(1.018)}
}
.tw-winner-card.champion::before{
  content:"";
  position:absolute;
  left:50%;
  top:28%;
  width:120%;
  height:120%;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle, rgba(255,214,102,.34) 0%, rgba(255,183,0,.14) 34%, rgba(255,183,0,0) 68%);
  z-index:-1;
  animation:twHaloPulse 1.9s ease-in-out infinite;
}
@keyframes twHaloPulse{
  0%,100%{opacity:.5; transform:translate(-50%,-50%) scale(.94)}
  50%{opacity:1; transform:translate(-50%,-50%) scale(1.08)}
}
.tw-winner-card.champion .tw-cover{
  box-shadow:
    0 18px 32px rgba(0,0,0,.28),
    0 0 0 2px rgba(255,232,165,.78),
    0 0 24px rgba(255,203,88,.42),
    inset 0 1px 0 rgba(255,255,255,.32);
}
.tw-winner-card.champion .tw-win-amount{
  color:#fff2b5;
  text-shadow:0 0 10px rgba(255,219,108,.38), 0 2px 9px rgba(0,0,0,.28);
}
.tw-winner-card.champion .tw-win-amount.flash{
  animation:twAmountFlash .38s ease;
}
@keyframes twAmountFlash{
  0%{transform:scale(.96); filter:brightness(1)}
  45%{transform:scale(1.08); filter:brightness(1.3)}
  100%{transform:scale(1); filter:brightness(1)}
}

/* Grand total board stronger pulse */
.tw-grand-total{
  box-shadow:
    0 8px 22px rgba(0,0,0,.28),
    0 0 0 2px rgba(255,223,147,.2),
    0 0 28px rgba(255,175,66,.24),
    inset 0 1px 0 rgba(255,255,255,.12);
}
.tw-grand-total.flash{
  animation:twBoardFlash .42s ease;
}
@keyframes twBoardFlash{
  0%{transform:scale(.985); box-shadow:0 8px 22px rgba(0,0,0,.28),0 0 0 2px rgba(255,223,147,.2),0 0 28px rgba(255,175,66,.24),inset 0 1px 0 rgba(255,255,255,.12)}
  50%{transform:scale(1.015); box-shadow:0 10px 30px rgba(0,0,0,.34),0 0 0 2px rgba(255,236,188,.3),0 0 42px rgba(255,204,87,.42),inset 0 1px 0 rgba(255,255,255,.22)}
  100%{transform:scale(1)}
}

/* LED marquee stronger look */
.tw-marquee-wrap{
  background:
    linear-gradient(180deg, rgba(56,13,13,.94), rgba(22,5,5,.95)),
    radial-gradient(circle at 15% 50%, rgba(255,87,34,.16), transparent 18%);
  border:1px solid rgba(255,210,145,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 12px 24px rgba(0,0,0,.18);
}
.tw-marquee-wrap::before{
  content:"";
  position:absolute;
  inset:8px 10px auto 10px;
  height:8px;
  background:
    radial-gradient(circle, rgba(255,197,91,.85) 0 2px, transparent 3px) 0 0/18px 8px repeat-x;
  opacity:.75;
  pointer-events:none;
}
.tw-marquee-title{
  background:linear-gradient(180deg,#6d1612,#390d0c);
  color:#ffd68c;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(255,201,127,.08);
}
.tw-marquee-track{
  position:relative;
  padding-top:2px;
}
.tw-marquee-track::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  left:-30%;
  width:25%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  transform:skewX(-18deg);
  animation:twTickerSweep 4.4s linear infinite;
  pointer-events:none;
}
@keyframes twTickerSweep{
  from{left:-30%}
  to{left:120%}
}
.tw-marquee-item{
  position:relative;
  background:
    linear-gradient(180deg, rgba(255,145,77,.1), rgba(255,114,54,.06)),
    rgba(255,255,255,.03);
  border:1px solid rgba(255,201,127,.1);
}
.tw-marquee-item span{
  color:#fff2cf;
}
.tw-marquee-item b{
  color:#ffd15f;
  text-shadow:0 0 10px rgba(255,193,81,.18);
}
.tw-marquee-item small{
  color:#ffbe7f;
}
.tw-marquee-item.active,
.tw-marquee-item:hover{
  background:
    linear-gradient(180deg, rgba(255,178,90,.18), rgba(255,98,40,.12)),
    rgba(255,255,255,.05);
  box-shadow:0 12px 18px rgba(0,0,0,.18), 0 0 18px rgba(255,158,74,.12);
}
.tw-marquee-item.active::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  animation:twItemSweep 1.2s linear infinite;
}
@keyframes twItemSweep{
  from{transform:translateX(-130%)}
  to{transform:translateX(130%)}
}

/* stronger enter overlay */
.tw-enter-overlay{
  background:linear-gradient(180deg, rgba(14,18,17,.74), rgba(8,12,11,.84));
  border:1px solid rgba(255,230,164,.22);
}
.tw-winner-card.entered .tw-cover{
  animation:twEnterShock .42s ease;
}
@keyframes twEnterShock{
  0%{transform:scale(.97)}
  45%{transform:scale(1.04)}
  100%{transform:scale(1)}
}

/* floating spark particles around podium */
.tw-stage::before,
.tw-stage::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle, rgba(255,227,144,.95) 0 2px, transparent 3px) 12% 20%/120px 120px repeat,
    radial-gradient(circle, rgba(255,244,195,.84) 0 1.5px, transparent 3px) 70% 12%/90px 90px repeat,
    radial-gradient(circle, rgba(255,170,65,.7) 0 2px, transparent 3px) 45% 76%/150px 140px repeat;
  opacity:.35;
}
.tw-stage::before{animation:twParticlesA 8s linear infinite}
.tw-stage::after{animation:twParticlesB 10s linear infinite reverse; opacity:.22}
@keyframes twParticlesA{
  from{transform:translateY(0)}
  50%{transform:translateY(-8px)}
  to{transform:translateY(0)}
}
@keyframes twParticlesB{
  from{transform:translateY(0) translateX(0)}
  50%{transform:translateY(10px) translateX(-6px)}
  to{transform:translateY(0) translateX(0)}
}

@media(max-width:650px){
  .tw-winner-card.champion::before{
    width:125%; height:110%; top:32%;
  }
  .tw-marquee-wrap::before{
    height:6px; background-size:14px 6px;
  }
}

/* ===== support-header-desktop-fix-v1 ===== */
/* Fix desktop support header clipping / incomplete display */
.support-shell{
  width:min(440px, calc(100vw - 44px)) !important;
}
.support-head{
  padding:14px 14px 12px !important;
}
.support-topline{
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) 34px !important;
  align-items:center !important;
  column-gap:10px !important;
}
.support-agent{
  width:44px !important;
  height:44px !important;
  flex:0 0 44px !important;
}
.support-title{
  min-width:0 !important;
  overflow:hidden !important;
}
.support-title b{
  display:block !important;
  font-size:18px !important;
  line-height:1.18 !important;
  white-space:normal !important;
  word-break:break-word !important;
}
.support-title small{
  display:block !important;
  margin-top:4px !important;
  font-size:12px !important;
  line-height:1.35 !important;
  color:#dffcf4 !important;
  white-space:normal !important;
  word-break:break-word !important;
}
.support-close{
  width:34px !important;
  height:34px !important;
  flex:0 0 34px !important;
  justify-self:end !important;
}
.support-status{
  display:block !important;
  margin-top:10px !important;
  padding:10px 12px !important;
  border-radius:12px !important;
  font-size:12px !important;
  line-height:1.42 !important;
  white-space:normal !important;
  word-break:break-word !important;
}

@media (max-width: 680px){
  .support-shell{
    width:100vw !important;
  }
  .support-topline{
    grid-template-columns:38px minmax(0,1fr) 32px !important;
  }
  .support-agent{
    width:38px !important;
    height:38px !important;
  }
  .support-title b{
    font-size:16px !important;
  }
  .support-title small{
    font-size:11px !important;
  }
  .support-status{
    font-size:11px !important;
  }
}

/* ===== support-header-root-collision-fix-v1 ===== */
/*
  Root cause fix:
  the global `header{height:58px; position:sticky; ...}` rule was also styling
  <header class="support-head">, forcing the support header into 58px and clipping
  its title/status content. Explicitly neutralize every global header property here.
*/
.support-shell > .support-head{
  height:auto !important;
  min-height:0 !important;
  position:relative !important;
  top:auto !important;
  left:auto !important;
  right:auto !important;
  bottom:auto !important;
  z-index:2 !important;
  display:block !important;
  flex:0 0 auto !important;
  align-items:initial !important;
  gap:0 !important;
  padding:14px 14px 12px !important;
  margin:0 !important;
  border:0 !important;
  border-bottom:0 !important;
  overflow:visible !important;
  background:linear-gradient(135deg,#087d68,#0ca884) !important;
  color:#fff !important;
  box-sizing:border-box !important;
}

.support-shell > .support-head .support-topline{
  min-height:48px !important;
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) 34px !important;
  align-items:center !important;
  column-gap:10px !important;
}

.support-shell > .support-head .support-title{
  min-width:0 !important;
  overflow:visible !important;
}

.support-shell > .support-head .support-title b{
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  font-size:17px !important;
  line-height:1.25 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

.support-shell > .support-head .support-title small{
  display:block !important;
  margin:3px 0 0 !important;
  padding:0 !important;
  font-size:11px !important;
  line-height:1.35 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}

.support-shell > .support-head .support-status{
  margin:10px 0 0 !important;
  padding:9px 10px !important;
  min-height:0 !important;
  height:auto !important;
  line-height:1.4 !important;
  white-space:normal !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}

@media(max-width:650px){
  .support-shell > .support-head{
    height:auto !important;
    min-height:0 !important;
    position:relative !important;
    top:auto !important;
    padding:calc(12px + env(safe-area-inset-top)) 14px 12px !important;
  }
  .support-shell > .support-head .support-topline{
    grid-template-columns:38px minmax(0,1fr) 32px !important;
    min-height:42px !important;
  }
  .support-shell > .support-head .support-title b{
    font-size:16px !important;
  }
}

/* ===== support-header-structural-fix-v1 ===== */
/* Structural fix: support header is now a DIV, so the site's global `header{...}` can never affect it. */
.support-head-panel{
  position:relative !important;
  display:block !important;
  height:auto !important;
  min-height:0 !important;
  overflow:visible !important;
  padding:14px 14px 12px !important;
  margin:0 !important;
  border:0 !important;
  background:linear-gradient(135deg,#087d68,#0ca884) !important;
  color:#fff !important;
  box-sizing:border-box !important;
}
.support-head-panel .support-topline{
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) 34px !important;
  align-items:center !important;
  gap:10px !important;
  min-height:48px !important;
}
.support-head-panel .support-title{
  min-width:0 !important;
  overflow:visible !important;
}
.support-head-panel .support-title b{
  display:block !important;
  margin:0 !important;
  font-size:17px !important;
  line-height:1.25 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.support-head-panel .support-title small{
  display:block !important;
  margin-top:3px !important;
  font-size:11px !important;
  line-height:1.35 !important;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
  color:#dffcf4 !important;
}
.support-head-panel .support-status{
  display:block !important;
  width:100% !important;
  height:auto !important;
  margin:10px 0 0 !important;
  padding:9px 10px !important;
  border-radius:10px !important;
  font-size:11px !important;
  line-height:1.4 !important;
  white-space:normal !important;
  overflow:visible !important;
  box-sizing:border-box !important;
}
@media(max-width:650px){
  .support-head-panel{
    padding:calc(12px + env(safe-area-inset-top)) 14px 12px !important;
  }
  .support-head-panel .support-topline{
    grid-template-columns:38px minmax(0,1fr) 32px !important;
    min-height:42px !important;
  }
  .support-head-panel .support-title b{
    font-size:16px !important;
  }
}

/* ===== mobile-ranking-sync-v1 ===== */
/* Desktop remains exactly on Main UI v1.9 behavior. */
.tw-mobile-count,
.tw-grand-total-mobile{display:none}

/* Mobile gets a CSS-only fallback because some preview environments do not run timers reliably. */
@media(max-width:650px){
  .tw-desktop-count,
  .tw-grand-total-desktop{display:none!important}

  .tw-mobile-count{
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
    color:#fff;
    font-weight:900;
    font-size:12px;
    line-height:1.2;
    font-variant-numeric:tabular-nums;
  }
  .tw-count-wheel{
    display:inline-block;
    position:relative;
    width:2.15ch;
    height:1.2em;
    overflow:hidden;
    vertical-align:middle;
  }
  .tw-count-strip{
    position:absolute;
    left:0;top:0;
    width:100%;
    display:flex;
    flex-direction:column;
    will-change:transform;
  }
  .tw-count-strip i{
    display:block;
    width:100%;
    height:1.2em;
    line-height:1.2em;
    text-align:center;
    font-style:normal;
  }
  .tw-count-sec .tw-count-strip{
    animation:twMobSec 60s steps(59,end) infinite;
  }
  .tw-count-min .tw-count-strip{
    animation:twMobMin 3600s steps(59,end) infinite;
  }
  @keyframes twMobSec{
    from{transform:translateY(0)}
    to{transform:translateY(calc(-59 * 1.2em))}
  }
  @keyframes twMobMin{
    from{transform:translateY(0)}
    to{transform:translateY(calc(-59 * 1.2em))}
  }

  .tw-grand-total-mobile{
    position:relative;
    display:flex!important;
    align-items:center;
    justify-content:center;
    flex-wrap:nowrap;
    gap:2px;
    padding:7px 8px;
    border-radius:18px;
    background:linear-gradient(180deg,#5c1110,#731917 46%,#4b100b);
    box-shadow:
      0 8px 22px rgba(0,0,0,.28),
      0 0 0 2px rgba(255,223,147,.20),
      0 0 28px rgba(255,175,66,.24),
      inset 0 1px 0 rgba(255,255,255,.12);
    overflow:hidden;
    white-space:nowrap;
    animation:twMobBoardPulse 1.2s ease-in-out infinite;
    font-variant-numeric:tabular-nums;
  }
  .tw-mobile-main{
    display:flex;
    align-items:center;
    gap:2px;
    flex:0 0 auto;
  }
  .tw-mob-digit,
  .tw-mob-roll{
    width:18px;
    height:30px;
    border-radius:6px;
    background:linear-gradient(180deg,#fff9ef,#f6ead9 46%,#f0ddc5);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.92),
      inset 0 -1px 0 rgba(124,65,20,.18);
    color:#c91917;
    font-size:20px;
    line-height:30px;
    font-weight:900;
    text-align:center;
    text-shadow:0 1px 0 #fff;
    flex:0 0 18px;
  }
  .tw-mob-sep{
    display:inline-grid;
    place-items:center;
    width:6px;
    flex:0 0 6px;
    color:#fff2c4;
    font-size:18px;
    font-weight:900;
  }
  .tw-mob-sep.dot{margin:0 -1px 0 0}
  .tw-mob-roll{
    position:relative;
    overflow:hidden;
  }
  .tw-mob-roll > span{
    position:absolute;
    left:0;top:0;
    width:100%;
    display:flex;
    flex-direction:column;
    will-change:transform;
  }
  .tw-mob-roll i{
    display:block;
    height:30px;
    line-height:30px;
    font-style:normal;
  }

  /* Fast tail without changing the v1.9 board composition. */
  .tw-mob-roll.r1 > span{animation:twMobRoll 10s steps(9,end) infinite}
  .tw-mob-roll.r2 > span{animation:twMobRoll 3.6s steps(9,end) infinite}
  .tw-mob-roll.r3 > span{animation:twMobRoll 1.2s steps(9,end) infinite}
  .tw-mob-roll.r4 > span{animation:twMobRoll .36s steps(9,end) infinite}
  @keyframes twMobRoll{
    from{transform:translateY(0)}
    to{transform:translateY(-270px)}
  }
  @keyframes twMobBoardPulse{
    0%,100%{filter:brightness(1);transform:scale(1)}
    50%{filter:brightness(1.06);transform:scale(1.006)}
  }

  /* Preserve the old v1.9 proportions; only tighten the number board enough to fit phones. */
  .tw-grand-total-wrap{
    max-width:100%;
  }
}

@media(max-width:410px){
  .tw-mob-digit,
  .tw-mob-roll{
    width:16px;
    flex-basis:16px;
    height:28px;
    line-height:28px;
    font-size:18px;
  }
  .tw-mob-roll i{
    height:28px;
    line-height:28px;
  }
  .tw-mob-roll.r1 > span,
  .tw-mob-roll.r2 > span,
  .tw-mob-roll.r3 > span,
  .tw-mob-roll.r4 > span{
    --tw-mobile-step:28px;
  }
  @keyframes twMobRoll{
    from{transform:translateY(0)}
    to{transform:translateY(-252px)}
  }
}

/* ===== topwin-account-desktop-shell-v1 ===== */
/* Desktop account page becomes a true page with persistent sidebar.
   Mobile remains unchanged and keeps the existing bottom navigation. */
@media (min-width:1100px){
  :root{--tw-side-w:286px}

  body{
    background:#f4f5f5 !important;
  }

  /* The account page is no longer a full-screen overlay on desktop. */
  .account-page,
  #account{
    position:relative !important;
    inset:auto !important;
    display:block !important;
    width:100% !important;
    min-height:100vh !important;
    overflow:visible !important;
    background:#f4f5f5 !important;
    padding-left:var(--tw-side-w) !important;
    box-sizing:border-box !important;
  }

  .account-wrap{
    width:min(1120px, calc(100% - 56px)) !important;
    min-height:100vh !important;
    margin:0 auto !important;
    padding:28px 0 48px !important;
  }

  /* Desktop navigation is the left sidebar, so the mobile bottom bar is redundant. */
  .account-bottom{
    display:none !important;
  }

  /* Give the account header more desktop breathing room. */
  .account-mobile-head{
    margin-bottom:16px !important;
  }
}

/* Wide desktop gets the same sidebar width as the index page. */
@media (min-width:1500px){
  :root{--tw-side-w:300px}
}

/* ===== topwin-account-sidebar-visibility-fix-v2 ===== */
@media (min-width:1100px){
  /* The old account page was a full-screen overlay with z-index:190.
     That overlay sat above the new sidebar, so the sidebar existed but was hidden behind it. */
  .account-page,
  #account{
    z-index:1 !important;
  }

  /* Account page has no desktop top header, so the sidebar should start at the top. */
  .tw-side-nav{
    top:0 !important;
    z-index:210 !important;
    height:100vh !important;
  }

  /* Make sure the account canvas starts to the right of the visible sidebar. */
  #account{
    padding-left:var(--tw-side-w) !important;
  }

  /* Keep overlays above the sidebar only when intentionally opened. */
  .auth-overlay{z-index:230 !important;}
  .support-shell{z-index:240 !important;}
}

/* ===== topwin-account-logout-v1 ===== */
.tw-logout-btn{
  display:none;
  align-items:center;
  gap:7px;
  height:34px;
  padding:0 11px;
  border:1px solid #f0c7c7;
  border-radius:10px;
  background:#fff8f8;
  color:#b93d3d;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 2px 7px rgba(72,35,35,.05);
  transition:transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
  -webkit-tap-highlight-color:transparent;
}
.tw-logout-btn.is-visible{display:inline-flex}
.tw-logout-btn:hover{
  background:#fff1f1;
  border-color:#e9aaaa;
  box-shadow:0 5px 12px rgba(185,61,61,.09);
}
.tw-logout-btn:active{transform:scale(.97)}
.tw-logout-icon{
  width:17px;height:17px;
  display:grid;place-items:center;
}
.tw-logout-icon svg{
  width:17px;height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.tw-logout-text{white-space:nowrap}

@media(max-width:650px){
  .account-head-actions{
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .tw-logout-btn{
    order:10;
    height:32px;
    padding:0 9px;
    border-radius:9px;
    font-size:11px;
  }
}

/* ===== topwin-account-desktop-layout-unify-v3 ===== */
@media (min-width:1100px){
  :root{
    --tw-side-w:272px;
    --tw-page-gap:24px;
    --tw-page-max:1180px;
  }

  html,body{
    min-height:100%;
    background:#f4f5f5 !important;
  }

  /* Keep the desktop sidebar visually attached to the page, not as a separate scrolling column. */
  .tw-side-nav{
    width:var(--tw-side-w) !important;
    top:0 !important;
    bottom:0 !important;
    height:100vh !important;
    overflow-y:auto !important;
    overscroll-behavior:contain;
    scrollbar-width:none !important;
    -ms-overflow-style:none !important;
    border-right:1px solid #e5ebe8 !important;
    box-shadow:6px 0 22px rgba(19,47,40,.035) !important;
  }
  .tw-side-nav::-webkit-scrollbar{
    width:0 !important;
    height:0 !important;
    display:none !important;
  }

  /* Main account canvas begins immediately after the rail. */
  .account-page,
  #account{
    width:100% !important;
    min-height:100vh !important;
    padding-left:calc(var(--tw-side-w) + var(--tw-page-gap)) !important;
    padding-right:24px !important;
    box-sizing:border-box !important;
    background:#f4f5f5 !important;
  }

  /* Stop centering the content in the remaining viewport — that caused the huge dead zone. */
  .account-wrap{
    width:min(var(--tw-page-max), calc(100vw - var(--tw-side-w) - var(--tw-page-gap) - 48px)) !important;
    max-width:var(--tw-page-max) !important;
    min-height:100vh !important;
    margin:0 !important;
    padding:26px 0 52px !important;
  }

  /* Keep top content visually anchored as a single desktop composition. */
  .account-mobile-head,
  .vip-banner,
  .asset-card,
  .promo-strip,
  .shortcut-card,
  .account-list{
    width:100% !important;
    box-sizing:border-box !important;
  }

  .account-mobile-head{
    margin-bottom:14px !important;
  }

  /* The sidebar owns desktop navigation; no second fixed navigation layer. */
  .account-bottom{
    display:none !important;
  }
}

/* Larger monitors: grow content, not the empty gutter. */
@media (min-width:1500px){
  :root{
    --tw-side-w:280px;
    --tw-page-gap:28px;
    --tw-page-max:1260px;
  }
}

/* ===== topwin-money-actions-art-v2 ===== */
.asset-actions{
  grid-template-columns:repeat(3,76px) !important;
  gap:10px !important;
}
.tw-money-action{
  display:flex !important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:72px;
  padding:7px 6px !important;
  border-radius:16px;
  text-decoration:none !important;
  color:#2b3733 !important;
  transition:transform .16s cubic-bezier(.2,.8,.2,1), background .16s ease, box-shadow .16s ease;
}
.tw-money-action:hover{
  transform:translateY(-2px);
  background:#f8fbfa;
}
.tw-money-action:active{
  transform:scale(.97);
}
.tw-money-icon{
  width:48px !important;
  height:48px !important;
  margin:0 !important;
  border-radius:16px !important;
  display:grid !important;
  place-items:center !important;
  position:relative;
  overflow:visible;
  background:#fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    0 8px 18px rgba(22,55,47,.10),
    0 0 0 1px rgba(31,74,62,.06) !important;
}
.tw-money-icon::before{
  content:"";
  position:absolute;
  inset:-5px;
  border-radius:20px;
  z-index:-1;
  filter:blur(8px);
  opacity:.36;
}
.tw-money-action.deposit .tw-money-icon::before{background:rgba(24,220,172,.55)}
.tw-money-action.transfer .tw-money-icon::before{background:rgba(89,104,255,.50)}
.tw-money-action.withdraw .tw-money-icon::before{background:rgba(255,105,91,.48)}
.tw-money-icon svg{
  width:43px;
  height:43px;
  display:block;
  overflow:visible;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.08));
}
.tw-money-label{
  display:block;
  font-size:12px;
  line-height:1;
  font-weight:800;
  letter-spacing:.01em;
}
.tw-money-action.deposit .tw-money-label{color:#087e69}
.tw-money-action.transfer .tw-money-label{color:#4e5fd0}
.tw-money-action.withdraw .tw-money-label{color:#c65358}

@media(max-width:650px){
  .asset-actions{
    grid-template-columns:repeat(3,70px) !important;
    gap:4px !important;
  }
  .tw-money-action{
    min-height:70px;
    padding:5px 3px !important;
    gap:5px;
  }
  .tw-money-icon{
    width:42px !important;
    height:42px !important;
    border-radius:14px !important;
  }
  .tw-money-icon svg{
    width:38px;
    height:38px;
  }
  .tw-money-label{
    font-size:11px;
  }
}

/* ===== topwin-asset-hero-v1 ===== */
.asset-card{
  position:relative;
  overflow:hidden;
  padding:18px 18px !important;
  border:1px solid #e4ebe8;
  box-shadow:0 10px 24px rgba(17,48,40,.055);
}
.asset-card::before{
  content:"";
  position:absolute;
  left:-70px;
  top:-88px;
  width:210px;
  height:210px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(18,184,147,.16),rgba(18,184,147,0) 68%);
  pointer-events:none;
}
.tw-balance-block{
  position:relative;
  z-index:1;
  min-width:260px;
  padding:6px 2px;
}
.tw-balance-eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  color:#47615a;
  font-size:12px;
  font-weight:850;
}
.tw-balance-eyebrow small{
  font-size:9px;
  letter-spacing:.13em;
  color:#98a6a1;
  font-weight:800;
}
.tw-balance-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:linear-gradient(145deg,#26dfb6,#07866d);
  box-shadow:0 0 0 4px rgba(18,184,147,.09),0 0 12px rgba(18,184,147,.34);
}
.asset-muted.tw-balance-value{
  margin-top:8px !important;
  color:#0b6f5d !important;
  font-size:30px !important;
  line-height:1.05 !important;
  font-weight:900 !important;
  letter-spacing:-.035em;
  font-variant-numeric:tabular-nums;
  text-shadow:0 1px 0 #fff;
}
.tw-balance-caption{
  margin-top:7px;
  font-size:10px;
  color:#9aa6a1;
  font-weight:650;
}
.asset-row{
  grid-template-columns:minmax(280px,1fr) auto !important;
}
@media(max-width:650px){
  .asset-card{
    padding:15px 12px !important;
  }
  .asset-row{
    grid-template-columns:1fr auto !important;
    gap:8px !important;
  }
  .tw-balance-block{
    min-width:0;
    padding:3px 0;
  }
  .tw-balance-eyebrow{
    gap:6px;
    font-size:11px;
  }
  .tw-balance-eyebrow small{
    display:none;
  }
  .asset-muted.tw-balance-value{
    font-size:22px !important;
    margin-top:6px !important;
  }
  .tw-balance-caption{
    font-size:9px;
    margin-top:5px;
  }
}

/* ===== topwin-header-actions-v2 ===== */
.tw-header-actions-v2{
  display:flex;
  align-items:center;
  gap:8px !important;
}
.tw-header-actions-v2 .tw-header-action{
  --accent:#0a9b7f;
  --accent2:#0fc6a0;
  --glow:rgba(15,198,160,.28);

  position:relative;
  width:40px !important;
  height:40px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:13px !important;
  text-decoration:none !important;
  color:var(--accent) !important;
  background:
    radial-gradient(circle at 28% 16%,rgba(255,255,255,.95),rgba(255,255,255,0) 34%),
    linear-gradient(145deg,#ffffff,#f3f8f6) !important;
  border:1px solid rgba(32,77,65,.09) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 5px 14px rgba(20,55,45,.08),
    0 0 0 0 var(--glow) !important;
  transition:
    transform .16s cubic-bezier(.2,.8,.2,1),
    box-shadow .16s ease,
    background .16s ease,
    color .16s ease !important;
  -webkit-tap-highlight-color:transparent;
}
.tw-header-actions-v2 .tw-header-action.home{
  --accent:#078b72; --accent2:#16c5a1; --glow:rgba(22,197,161,.28);
}
.tw-header-actions-v2 .tw-header-action.support{
  --accent:#168dc6; --accent2:#3dc8ff; --glow:rgba(61,200,255,.28);
}
.tw-header-actions-v2 .tw-header-action.tools{
  --accent:#d4881c; --accent2:#ffbd45; --glow:rgba(255,189,69,.30);
}
.tw-header-actions-v2 .tw-header-action.menu{
  --accent:#536a63; --accent2:#7c928b; --glow:rgba(83,106,99,.18);
}

.tw-header-actions-v2 .tw-header-icon{
  width:23px;
  height:23px;
  display:grid;
  place-items:center;
  position:relative;
  z-index:1;
}
.tw-header-actions-v2 svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.65));
}
.tw-header-actions-v2 .tw-header-action::before{
  content:"";
  position:absolute;
  inset:5px;
  border-radius:10px;
  background:radial-gradient(circle at 35% 25%,rgba(255,255,255,.78),transparent 40%);
  opacity:.65;
  pointer-events:none;
}
.tw-header-actions-v2 .tw-header-action:hover{
  color:#fff !important;
  background:linear-gradient(145deg,var(--accent2),var(--accent)) !important;
  transform:translateY(-2px) scale(1.035);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.38),
    0 9px 18px rgba(20,55,45,.12),
    0 0 0 4px var(--glow) !important;
}
.tw-header-actions-v2 .tw-header-action:active{
  transform:translateY(0) scale(.96);
}
.tw-header-actions-v2 .tw-header-action::after{
  content:attr(data-tip);
  position:absolute;
  right:0;
  top:calc(100% + 9px);
  padding:7px 9px;
  border-radius:8px;
  background:#17342d;
  color:#fff;
  font-size:10px;
  font-weight:800;
  white-space:nowrap;
  opacity:0;
  transform:translateY(-3px);
  pointer-events:none;
  transition:opacity .14s ease,transform .14s ease;
  box-shadow:0 7px 18px rgba(17,48,40,.16);
  z-index:20;
}
.tw-header-actions-v2 .tw-header-action:hover::after{
  opacity:1;
  transform:translateY(0);
}

@media(max-width:650px){
  .tw-header-actions-v2{
    gap:5px !important;
  }
  .tw-header-actions-v2 .tw-header-action{
    width:36px !important;
    height:36px !important;
    border-radius:11px !important;
  }
  .tw-header-actions-v2 .tw-header-icon,
  .tw-header-actions-v2 svg{
    width:21px;
    height:21px;
  }
  .tw-header-actions-v2 .tw-header-action::after{
    display:none;
  }
}

/* ===== topwin-header-tooltip-layer-fix-v1 ===== */
/* Fix: header tooltips were being covered by the VIP banner below. */
.account-mobile-head{
  position:relative !important;
  z-index:80 !important;
  overflow:visible !important;
}
.tw-header-actions-v2{
  position:relative !important;
  z-index:90 !important;
  overflow:visible !important;
}
.tw-header-actions-v2 .tw-header-action{
  position:relative !important;
  z-index:1 !important;
  overflow:visible !important;
}
.tw-header-actions-v2 .tw-header-action:hover{
  z-index:120 !important;
}
.tw-header-actions-v2 .tw-header-action::after{
  z-index:999 !important;
}
.vip-banner{
  z-index:1 !important;
}

/* ===== topwin-global-header-v1 ===== */
:root{
  --tw-global-side:var(--tw-side-w,var(--side,280px));
  --tw-global-header-h:70px;
}
.tw-global-header{
  position:sticky;
  top:0;
  z-index:120;
  margin-left:var(--tw-global-side);
  min-height:var(--tw-global-header-h);
  display:flex;
  align-items:center;
  gap:18px;
  padding:10px 20px;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #e7eeeb;
  box-shadow:0 6px 22px rgba(16,52,43,.055);
  backdrop-filter:blur(14px);
}
.tw-global-mobile-logo{display:none}
.tw-global-nav{
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  flex:1;
}
.tw-global-nav a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:38px;
  padding:0 12px;
  border-radius:11px;
  text-decoration:none;
  color:#426159;
  font-size:12px;
  font-weight:850;
  white-space:nowrap;
  transition:background .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.tw-global-nav a:hover,
.tw-global-nav a.active{
  background:#eef9f5;
  color:#07856d;
  transform:translateY(-1px);
  box-shadow:0 5px 12px rgba(8,133,109,.08);
}
.tw-global-nav i{
  width:22px;height:22px;border-radius:8px;
  display:grid;place-items:center;
  font-style:normal;
  background:linear-gradient(145deg,#e6f7f1,#d9f3ea);
  color:#07856d;
  font-size:12px;
}
.tw-global-actions{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:8px;
}
.tw-gh-btn,.tw-gh-wallet,.tw-gh-deposit,.tw-gh-user{
  height:38px;
  border:1px solid #e1eae6;
  background:#fff;
  border-radius:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#41605a;
  box-shadow:0 4px 12px rgba(17,48,40,.045);
}
.tw-gh-btn{
  width:38px;
  font-size:17px;
  transition:.15s ease;
}
.tw-gh-btn:hover{transform:translateY(-1px);color:#07856d;background:#f4faf8}
.tw-gh-wallet{
  gap:7px;
  padding:0 12px;
  font-size:12px;
  font-weight:900;
  color:#0a6f5d;
}
.tw-gh-wallet::before{content:"";font-size:15px}
.tw-gh-deposit{
  padding:0 15px;
  background:linear-gradient(135deg,#078d73,#11b28e);
  border-color:#078d73;
  color:#fff;
  font-size:12px;
  font-weight:900;
  box-shadow:0 7px 15px rgba(8,141,115,.18);
}
.tw-gh-user{
  min-width:38px;
  padding:0 11px;
  border-radius:999px;
  background:#eaf8f3;
  color:#07856d;
  font-weight:900;
  font-size:11px;
}
.tw-gh-vip{
  width:38px;height:38px;
  border-radius:11px;
  display:grid;place-items:center;
  text-decoration:none;
  background:linear-gradient(145deg,#fff4bd,#ffd65a);
  color:#8b5b00;
  border:1px solid #f4d66b;
  box-shadow:0 5px 12px rgba(218,164,25,.12);
  font-size:17px;
}
@media(max-width:1180px){
  .tw-global-header{gap:10px;padding:9px 12px}
  .tw-global-nav a{padding:0 8px;font-size:11px}
  .tw-global-nav i{display:none}
  .tw-gh-wallet{display:none}
}
@media(max-width:1099px){
  :root{--tw-global-header-h:58px}
  .tw-global-header{
    margin-left:0;
    min-height:58px;
    padding:8px 12px;
  }
  .tw-global-mobile-logo{
    display:inline-flex;
    align-items:center;
    text-decoration:none;
    color:#07856d;
    font-weight:950;
    letter-spacing:.04em;
  }
  .tw-global-nav{display:none}
  .tw-gh-wallet{display:flex}
  .tw-gh-vip{display:none}
}
@media(max-width:620px){
  .tw-global-header{gap:6px}
  .tw-global-actions{gap:5px}
  .tw-gh-btn{width:34px;height:34px;border-radius:10px}
  .tw-gh-wallet{height:34px;padding:0 9px;font-size:10px}
  .tw-gh-deposit{height:34px;padding:0 10px;font-size:10px}
  .tw-gh-user{height:34px;min-width:34px;padding:0 9px}
}

/* ===== topwin-global-header-v2 ===== */
.tw-global-nav .gh-ico{
  width:22px;height:22px;border-radius:8px;
  display:grid;place-items:center;
  position:relative;
  background:linear-gradient(145deg,#eaf8f3,#dff4ec);
  box-shadow:inset 0 0 0 1px rgba(8,133,109,.06);
}
.tw-global-nav .gh-ico::before,
.tw-global-nav .gh-ico::after{content:"";position:absolute}
.tw-global-nav .gh-slot::before{width:11px;height:8px;border:1.7px solid #07856d;border-radius:2px;box-shadow:inset 3px 0 0 transparent}
.tw-global-nav .gh-slot::after{width:2px;height:2px;border-radius:50%;background:#07856d;box-shadow:-3px 0 #07856d,3px 0 #07856d}
.tw-global-nav .gh-live::before{width:11px;height:9px;border:1.7px solid #07856d;border-top-left-radius:8px;border-top-right-radius:8px;border-bottom:0}
.tw-global-nav .gh-live::after{width:2px;height:5px;background:#07856d;bottom:3px;box-shadow:-6px 0 #07856d,6px 0 #07856d}
.tw-global-nav .gh-sports::before{width:10px;height:10px;border-radius:50%;border:1.7px solid #07856d}
.tw-global-nav .gh-sports::after{width:3px;height:3px;border-radius:50%;background:#07856d}
.tw-global-nav .gh-fishing::before{width:12px;height:7px;border-radius:50% 60% 60% 50%;border:1.7px solid #07856d}
.tw-global-nav .gh-fishing::after{right:3px;width:5px;height:5px;border-left:1.7px solid #07856d;border-top:1.7px solid #07856d;transform:rotate(-45deg)}
.tw-global-nav .gh-lottery::before{content:"";font-size:11px;font-weight:950;color:#07856d;inset:0;display:grid;place-items:center}
.tw-global-nav .gh-promo::before{width:11px;height:9px;border:1.7px solid #07856d;border-radius:2px;bottom:4px}
.tw-global-nav .gh-promo::after{width:2px;height:13px;background:#07856d;top:4px;box-shadow:-4px -2px 0 -1px #07856d,4px -2px 0 -1px #07856d}

/* ===== topwin-desktop-sidebar-v2 ===== */
/* Desktop-only permanent navigation. Mobile keeps the original drawer interaction. */
@media (min-width:1100px){
  :root{--tw-side-w:286px}

  /* Remove the large empty band: sidebar begins immediately below the main header. */
  .tw-side-nav{
    position:fixed!important;
    left:0!important;
    top:58px!important;
    bottom:0!important;
    width:var(--tw-side-w)!important;
    height:auto!important;
    transform:none!important;
    visibility:visible!important;
    opacity:1!important;
    overflow-y:auto!important;
    padding:18px 16px 28px!important;
    background:
      linear-gradient(180deg,#ffffff 0%,#fbfdfc 100%)!important;
    border-right:1px solid #e3ebe7!important;
    box-shadow:10px 0 34px rgba(20,55,45,.055)!important;
    z-index:18!important;
  }

  .tw-side-nav .drawer-head{display:none!important}
  .menu-label,.shade,#drawer-toggle{display:none!important}

  /* The promo strip/notice remain content-wide; only actual page content shifts. */
  main{
    margin-left:var(--tw-side-w)!important;
    width:auto!important;
    max-width:none!important;
    padding:18px 26px 42px!important;
  }
  .notice{
    margin-left:var(--tw-side-w)!important;
  }

  header{
    padding:0 22px!important;
  }

  .tw-side-profile{
    display:flex;
    align-items:center;
    gap:11px;
    padding:10px 10px 16px;
    margin-bottom:4px;
    border-bottom:1px solid #edf2f0;
  }
  .tw-side-avatar{
    width:38px;height:38px;border-radius:12px;
    display:grid;place-items:center;
    background:linear-gradient(145deg,#0db092,#067964);
    color:#fff;font-size:13px;font-weight:900;
    box-shadow:0 7px 16px rgba(9,139,113,.18), inset 0 1px 0 rgba(255,255,255,.28);
  }
  .tw-side-profile-copy{min-width:0}
  .tw-side-profile-copy b{
    display:block;
    font-size:13px;line-height:1.15;color:#173d34;
    letter-spacing:.03em;
  }
  .tw-side-profile-copy span{
    display:block;margin-top:3px;
    font-size:9px;font-weight:800;letter-spacing:.16em;
    color:#9aa7a2;
  }

  .tw-side-group{margin-top:16px}
  .tw-side-group h4{
    margin:0 10px 8px!important;
    font-size:9px!important;
    line-height:1!important;
    font-weight:900!important;
    letter-spacing:.18em!important;
    color:#a0ada8!important;
  }
  .tw-side-group a{
    display:grid!important;
    grid-template-columns:34px minmax(0,1fr);
    align-items:center;
    gap:10px;
    min-height:50px;
    margin:3px 0;
    padding:7px 10px!important;
    border-radius:13px!important;
    text-decoration:none!important;
    color:#4e5f59!important;
    background:transparent!important;
    transition:background .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease!important;
  }
  .tw-side-group a:hover{
    background:#f1f8f5!important;
    color:#087b66!important;
    transform:translateX(2px);
  }
  .tw-side-group a.active{
    background:linear-gradient(90deg,#e3f5ef,#f2faf7)!important;
    color:#087b66!important;
    box-shadow:inset 3px 0 0 #0b9a7c!important;
  }

  .tw-side-label{min-width:0}
  .tw-side-label b{
    display:block;
    font-size:13px;
    line-height:1.15;
    font-weight:800;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .tw-side-label small{
    display:block;
    margin-top:3px;
    font-size:9px;
    line-height:1.1;
    color:#a0aaa6;
    font-weight:600;
  }

  .tw-side-icon{
    width:32px;height:32px;border-radius:10px;
    display:grid;place-items:center;
    position:relative;
    color:#087b66;
    background:#eef8f5;
    font-size:13px;font-weight:900;
    box-shadow:inset 0 0 0 1px #d9eee7;
  }
  .tw-side-group a.active .tw-side-icon{
    background:#0b9a7c;color:#fff;
    box-shadow:0 5px 12px rgba(11,154,124,.18);
  }

  .tw-side-icon.home i:before{
    content:"";position:absolute;left:9px;top:10px;
    width:12px;height:10px;border:2px solid currentColor;border-top:0;border-radius:2px 2px 3px 3px;
  }
  .tw-side-icon.home i:after{
    content:"";position:absolute;left:10px;top:6px;
    width:9px;height:9px;border-left:2px solid currentColor;border-top:2px solid currentColor;
    transform:rotate(45deg);border-radius:1px 0 0;
  }
  .tw-side-icon.account i:before{
    content:"";position:absolute;left:11px;top:7px;width:9px;height:9px;border:2px solid currentColor;border-radius:50%;
  }
  .tw-side-icon.account i:after{
    content:"";position:absolute;left:8px;bottom:6px;width:16px;height:8px;border:2px solid currentColor;border-radius:9px 9px 5px 5px;
  }
  .tw-side-icon.search i:before{
    content:"";position:absolute;left:8px;top:7px;width:10px;height:10px;border:2px solid currentColor;border-radius:50%;
  }
  .tw-side-icon.search i:after{
    content:"";position:absolute;left:19px;top:18px;width:7px;height:2px;background:currentColor;transform:rotate(45deg);border-radius:2px;
  }
  .tw-side-icon.support i:before{
    content:"";position:absolute;left:8px;top:7px;width:14px;height:12px;border:2px solid currentColor;border-bottom:0;border-radius:10px 10px 0 0;
  }
  .tw-side-icon.support i:after{
    content:"";position:absolute;right:6px;bottom:6px;width:7px;height:2px;background:currentColor;border-radius:2px;
  }
  .tw-side-icon.app i:before{
    content:"";position:absolute;left:10px;top:5px;width:12px;height:20px;border:2px solid currentColor;border-radius:4px;
  }
  .tw-side-icon.app i:after{
    content:"";position:absolute;left:14px;bottom:8px;width:4px;height:2px;background:currentColor;border-radius:2px;
  }

  main > *{max-width:1450px;margin-left:auto;margin-right:auto}
  main > .title{margin-top:15px!important;margin-bottom:8px!important}
}
@media (min-width:1500px){
  :root{--tw-side-w:300px}
}

/* ===== topwin-desktop-sidebar-aesthetic-v3 ===== */
@media (min-width:1100px){
  /* Make all navigation rows feel like one coherent system. */
  .tw-side-group a{
    position:relative !important;
    min-height:48px !important;
    margin:2px 0 !important;
    padding:7px 10px !important;
    border:0 !important;
    border-radius:11px !important;
    background:transparent !important;
    box-shadow:none !important;
  }

  /* Inactive rows stay clean and quiet. */
  .tw-side-group a:not(.active){
    color:#50605a !important;
  }
  .tw-side-group a:not(.active) .tw-side-icon{
    background:#f5f8f7 !important;
    color:#71817b !important;
    box-shadow:inset 0 0 0 1px #e7ecea !important;
  }

  /* Active state: no large mint box. Use a precise rail + icon emphasis instead. */
  .tw-side-group a.active{
    color:#087b66 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
.tw-side-group a.active .tw-side-icon{
    background:linear-gradient(145deg,#10ad90,#087e69) !important;
    color:#fff !important;
    box-shadow:
      0 5px 12px rgba(8,126,105,.18),
      inset 0 1px 0 rgba(255,255,255,.26) !important;
  }
  .tw-side-group a.active .tw-side-label b{
    color:#087b66 !important;
  }
  .tw-side-group a.active .tw-side-label small{
    color:#6e9c90 !important;
  }

  /* Hover is deliberately lighter than the selected state. */
  .tw-side-group a:hover{
    background:#f5f9f7 !important;
    color:#087b66 !important;
    transform:translateX(1px) !important;
  }
  .tw-side-group a.active:hover{
    background:#f8fbfa !important;
  }

  /* Slightly stronger grouping rhythm. */
  .tw-side-group{
    margin-top:18px !important;
  }
  .tw-side-group h4{
    margin-bottom:9px !important;
  }

  /* Icon tiles use the same geometry across every item. */
  .tw-side-icon{
    width:32px !important;
    height:32px !important;
    border-radius:9px !important;
  }
}

/* ===== topwin-desktop-sidebar-active-clean-v4 ===== */
@media (min-width:1100px){
  .tw-side-group a.active::before,
  .tw-side-group a.active::after{
    content:none !important;
    display:none !important;
  }
  .tw-side-group a.active{
    background:transparent !important;
    box-shadow:none !important;
  }
  .tw-side-group a.active .tw-side-icon{
    background:linear-gradient(145deg,#10ad90,#087e69) !important;
    color:#fff !important;
    box-shadow:0 5px 12px rgba(8,126,105,.18), inset 0 1px 0 rgba(255,255,255,.26) !important;
  }
  .tw-side-group a.active .tw-side-label b{
    color:#087b66 !important;
    font-weight:850 !important;
  }
}

/* ===== topwin-sidebar-neon-a-v1 ===== */
/* ===== TOP WIN Sidebar / Direction A =====
   Desktop only: vivid neon badge icons on the existing light website background.
   No dark page background is introduced.
*/
@media (min-width:1100px){

  /* Keep the rail itself light and premium. */
  .tw-side-nav{
    background:
      linear-gradient(180deg,#ffffff 0%,#fbfdfc 46%,#f8fbfa 100%) !important;
  }

  .tw-side-group a{
    grid-template-columns:42px minmax(0,1fr) !important;
    gap:12px !important;
    min-height:58px !important;
    padding:7px 10px !important;
    border-radius:14px !important;
    overflow:visible !important;
  }

  /* Core badge */
  .tw-side-icon{
    --c1:#22c9a8;
    --c2:#087e69;
    --glow:rgba(34,201,168,.42);

    position:relative !important;
    isolation:isolate;
    overflow:visible !important;
    width:40px !important;
    height:40px !important;
    border-radius:50% !important;
    display:grid !important;
    place-items:center !important;
    color:#fff !important;

    background:
      radial-gradient(circle at 30% 20%,rgba(255,255,255,.78) 0 7%,rgba(255,255,255,.28) 8% 20%,transparent 34%),
      linear-gradient(145deg,var(--c1) 0%,var(--c2) 78%) !important;

    border:1px solid rgba(255,255,255,.9) !important;

    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.72),
      inset 0 -7px 15px rgba(0,0,0,.10),
      0 0 0 2px color-mix(in srgb, var(--c1) 20%, transparent),
      0 0 13px var(--glow),
      0 7px 15px rgba(28,57,49,.12) !important;

    transition:
      transform .18s cubic-bezier(.2,.8,.2,1),
      box-shadow .18s ease,
      filter .18s ease !important;
  }

  /* Outer neon halo */
  .tw-side-icon::before{
    content:"";
    position:absolute;
    inset:-4px;
    border-radius:50%;
    z-index:-2;
    background:radial-gradient(circle, var(--glow) 0%, transparent 68%);
    filter:blur(4px);
    opacity:.72;
    transition:opacity .18s ease, transform .18s ease;
  }

  /* Glass highlight */
  .tw-side-icon::after{
    content:"";
    position:absolute;
    left:7px;
    right:7px;
    top:4px;
    height:12px;
    border-radius:50%;
    background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,0));
    opacity:.72;
    pointer-events:none;
  }

  .tw-side-icon svg{
    width:22px !important;
    height:22px !important;
    display:block;
    fill:none;
    stroke:currentColor;
    stroke-width:1.85;
    stroke-linecap:round;
    stroke-linejoin:round;
    filter:
      drop-shadow(0 1px 0 rgba(0,0,0,.12))
      drop-shadow(0 0 4px rgba(255,255,255,.20));
    z-index:1;
  }

  /* Individual high-saturation identities */
  .tw-side-icon.home{
    --c1:#19ddb6; --c2:#008875; --glow:rgba(25,221,182,.46);
  }
  .tw-side-icon.account{
    --c1:#45d7ff; --c2:#1479d3; --glow:rgba(43,177,255,.44);
  }
  .tw-side-icon.fav{
    --c1:#ff6fa8; --c2:#d5276f; --glow:rgba(255,78,143,.46);
  }
  .tw-side-icon.search{
    --c1:#7f8cff; --c2:#5154c9; --glow:rgba(111,118,255,.40);
  }

  .tw-side-icon.slot{
    --c1:#c452ff; --c2:#6d22d5; --glow:rgba(181,62,255,.50);
  }
  .tw-side-icon.sports{
    --c1:#2cf0aa; --c2:#07985f; --glow:rgba(32,228,153,.48);
  }
  .tw-side-icon.live{
    --c1:#ff4da1; --c2:#c01867; --glow:rgba(255,54,145,.48);
  }
  .tw-side-icon.card{
    --c1:#20d9ff; --c2:#0778ad; --glow:rgba(28,201,255,.46);
  }
  .tw-side-icon.fish{
    --c1:#3aafff; --c2:#1b58d7; --glow:rgba(47,147,255,.48);
  }
  .tw-side-icon.esport{
    --c1:#ff8f42; --c2:#e8491b; --glow:rgba(255,111,51,.46);
  }
  .tw-side-icon.lottery{
    --c1:#ffd84c; --c2:#f09100; --glow:rgba(255,185,31,.54);
  }

  .tw-side-icon.promo{
    --c1:#ff5b62; --c2:#cf1835; --glow:rgba(255,66,83,.48);
  }
  .tw-side-icon.support{
    --c1:#20e1d5; --c2:#078f9d; --glow:rgba(31,216,208,.48);
  }
  .tw-side-icon.app{
    --c1:#48d7ff; --c2:#2466df; --glow:rgba(56,156,255,.46);
  }

  /* More tactile row interaction */
  .tw-side-group a:hover{
    background:
      linear-gradient(90deg,rgba(240,249,246,.92),rgba(255,255,255,.22)) !important;
    transform:translateX(2px) !important;
  }

  .tw-side-group a:hover .tw-side-icon{
    transform:translateY(-2px) scale(1.075) !important;
    filter:saturate(1.12) brightness(1.05);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.78),
      inset 0 -7px 15px rgba(0,0,0,.08),
      0 0 0 2px color-mix(in srgb, var(--c1) 28%, transparent),
      0 0 20px var(--glow),
      0 10px 20px rgba(28,57,49,.15) !important;
  }

  .tw-side-group a:hover .tw-side-icon::before{
    opacity:1;
    transform:scale(1.12);
  }

  /* Active = bright, but still clean. No giant mint box / no vertical rail. */
  .tw-side-group a.active{
    background:transparent !important;
    box-shadow:none !important;
  }
  .tw-side-group a.active .tw-side-icon{
    transform:scale(1.06);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.82),
      inset 0 -7px 15px rgba(0,0,0,.08),
      0 0 0 2px rgba(255,255,255,.95),
      0 0 0 4px color-mix(in srgb, var(--c1) 22%, transparent),
      0 0 23px var(--glow),
      0 9px 19px rgba(28,57,49,.14) !important;
  }
  .tw-side-group a.active .tw-side-label b{
    color:#087b66 !important;
    font-weight:850 !important;
  }

  /* Refine typography to support the vivid icon style */
  .tw-side-label b{
    font-size:13.5px !important;
    letter-spacing:.005em !important;
  }
  .tw-side-label small{
    font-size:9.5px !important;
    margin-top:4px !important;
    color:#98a6a1 !important;
  }

  /* Small decorative accent line under section labels */
  .tw-side-group h4{
    position:relative;
    padding-left:12px;
  }
  .tw-side-group h4::before{
    content:"";
    position:absolute;
    left:0;
    top:50%;
    width:6px;
    height:2px;
    transform:translateY(-50%);
    border-radius:999px;
    background:linear-gradient(90deg,#13b995,#3bcdb1);
    box-shadow:0 0 7px rgba(19,185,149,.28);
  }
}

/* Mobile intentionally untouched. */

/* ===== topwin-sidebar-unified-nav-v1 ===== */
@media (min-width:1100px){
  .tw-side-nav{
    overflow-y:auto !important;
    scrollbar-width:none !important;
    -ms-overflow-style:none !important;
  }
  .tw-side-nav::-webkit-scrollbar{
    width:0 !important;
    height:0 !important;
    display:none !important;
  }

  .tw-side-brand{
    display:flex !important;
    align-items:center;
    gap:11px;
    min-height:56px;
    padding:8px 10px 16px;
    margin-bottom:4px;
    border-bottom:1px solid #edf2f0;
    text-decoration:none;
    color:#173d34;
    transition:transform .15s ease, opacity .15s ease;
  }
  .tw-side-brand:hover{
    transform:translateX(1px);
    opacity:.92;
  }
  .tw-side-brand-name{
    font-size:14px;
    line-height:1;
    font-weight:900;
    letter-spacing:.045em;
    color:#173d34;
  }

  /* Remove obsolete profile-copy presentation from older pages. */
  .tw-side-profile,
  .tw-side-profile-copy{
    display:none !important;
  }

  /* Keep all first ACCOUNT rows aligned identically across pages. */
  .tw-side-group a{
    box-sizing:border-box !important;
  }
  .tw-side-group a.active{
    transform:none !important;
  }
}

/* ===== topwin-header-category-icons-v4 ===== */
@media(min-width:1100px){
  .tw-global-header{
    position:sticky!important; top:0!important; z-index:140!important;
    margin-left:var(--tw-global-side,280px)!important;
    min-height:72px!important;
    padding:7px 14px!important;
    display:flex!important; align-items:center!important; gap:12px!important;
    background:rgba(255,255,255,.97)!important;
    border-bottom:1px solid #e6eeea!important;
    box-shadow:0 7px 22px rgba(16,52,43,.05)!important;
    backdrop-filter:blur(14px);
    overflow:visible!important;
  }
  .tw-global-mobile-logo{display:none!important}
  .tw-header-cat-nav{
    flex:1 1 auto!important;
    min-width:0!important;
    display:grid!important;
    grid-template-columns:repeat(7,minmax(56px,70px))!important;
    justify-content:start!important;
    align-items:center!important;
    gap:8px!important;
    overflow:visible!important;
  }
  .tw-header-cat-nav .tw-cat-b{
    min-width:0!important; width:auto!important;
    padding:0!important; gap:3px!important;
    display:flex!important; flex-direction:column!important;
    align-items:center!important; justify-content:center!important;
    text-decoration:none!important;
  }
  .tw-header-cat-nav .tw-icon-box{
    width:46px!important;height:36px!important;border-radius:13px!important;
    transform:none!important;
  }
  .tw-header-cat-nav .tw-cat-b em{
    font-size:9px!important;line-height:1!important;
    color:#506861!important;text-shadow:none!important;font-weight:900!important;
  }
  .tw-header-cat-nav .tw-cat-b.active em{color:#07856d!important}
  .tw-header-cat-nav .tw-cat-b:hover .tw-icon-box{transform:translateY(-2px) scale(1.04)!important}
  .tw-global-actions{flex:0 0 auto!important;display:flex!important;align-items:center!important;gap:7px!important}
}
@media(min-width:1100px) and (max-width:1320px){
  .tw-global-header{padding-left:10px!important;padding-right:10px!important;gap:8px!important}
  .tw-header-cat-nav{grid-template-columns:repeat(7,54px)!important;gap:4px!important}
  .tw-header-cat-nav .tw-icon-box{width:42px!important;height:34px!important}
  .tw-global-actions .tw-gh-wallet{display:none!important}
}
@media(max-width:1099px){
  .tw-global-header{margin-left:0!important}
  .tw-header-cat-nav{display:none!important}
}

/* ===== topwin-v7-layout-final ===== */
:root{--tw-side-w:252px}

@media(min-width:1100px){
  .tw-side-nav{
    position:fixed!important;left:0!important;top:0!important;bottom:0!important;
    width:var(--tw-side-w)!important;height:100vh!important;
    padding:14px 13px 22px!important;overflow-y:auto!important;scrollbar-width:none!important;
    background:linear-gradient(180deg,#fff,#fbfdfc)!important;border-right:1px solid #e4ece8!important;
    box-shadow:7px 0 24px rgba(20,55,45,.04)!important;z-index:160!important;
  }
  .tw-side-nav::-webkit-scrollbar{display:none!important}
  .tw-side-nav .drawer-head{display:none!important}
  .tw-side-brand{
    display:flex!important;align-items:center!important;gap:10px!important;
    min-height:54px!important;padding:7px 8px 14px!important;margin:0 0 8px!important;
    border-bottom:1px solid #edf2f0!important;text-decoration:none!important;color:#173d34!important;
  }
  .tw-side-avatar{
    width:36px!important;height:36px!important;border-radius:11px!important;display:grid!important;place-items:center!important;
    background:linear-gradient(145deg,#13b394,#067963)!important;color:#fff!important;
    font-size:12px!important;font-weight:950!important;box-shadow:0 7px 15px rgba(8,133,109,.18)!important;
  }
  .tw-side-brand-name{font-size:13px!important;font-weight:950!important;letter-spacing:.04em!important}
  .tw-side-group{margin-top:14px!important}
  .tw-side-group h4{margin:0 9px 7px!important;font-size:8px!important;letter-spacing:.17em!important;color:#9aa8a3!important}
  .tw-side-group a{
    display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;
    min-height:48px!important;margin:2px 0!important;padding:6px 8px!important;border-radius:12px!important;
    background:transparent!important;box-shadow:none!important;text-decoration:none!important;color:#52625d!important;transform:none!important;
  }
  .tw-side-group a:hover{background:#f4f9f7!important;color:#087b66!important}
  .tw-side-group a.active{
    background:linear-gradient(90deg,#e5f8f2,#f7fcfa)!important;color:#087b66!important;
    box-shadow:inset 3px 0 0 #0aa080!important;
  }
  .tw-side-label b{display:block!important;font-size:12px!important;line-height:1.1!important;font-weight:850!important}
  .tw-side-label small{display:block!important;margin-top:3px!important;font-size:8px!important;color:#9ba8a3!important}
  .tw-side-icon{width:34px!important;height:34px!important;border-radius:11px!important;color:#fff!important;overflow:hidden!important;box-shadow:0 5px 12px rgba(20,55,45,.12)!important}
  .tw-side-icon svg{width:19px!important;height:19px!important}
  .tw-side-icon.home{background:linear-gradient(145deg,#21d5ad,#07866d)!important}
  .tw-side-icon.account{background:linear-gradient(145deg,#43cfff,#1a7ed5)!important}
  .tw-side-icon.fav{background:linear-gradient(145deg,#ff78ad,#d42a70)!important}
  .tw-side-icon.search{background:linear-gradient(145deg,#8992ff,#5356cf)!important}
  .tw-side-icon.slot{background:linear-gradient(145deg,#c454ff,#7227d8)!important}
  .tw-side-icon.sports{background:linear-gradient(145deg,#32e2a5,#07975f)!important}
  .tw-side-icon.live{background:linear-gradient(145deg,#ff5ba8,#c21b68)!important}
  .tw-side-icon.card{background:linear-gradient(145deg,#2bdcff,#087dad)!important}
  .tw-side-icon.fish{background:linear-gradient(145deg,#46b6ff,#235bd7)!important}
  .tw-side-icon.esport{background:linear-gradient(145deg,#ff9a4c,#e64c1d)!important}
  .tw-side-icon.lottery{background:linear-gradient(145deg,#ffdb55,#f19b07)!important}
  .tw-side-icon.promo{background:linear-gradient(145deg,#ff6c72,#cf1c38)!important}
  .tw-side-icon.support{background:linear-gradient(145deg,#25dfd2,#078e9a)!important}
  .tw-side-icon.app{background:linear-gradient(145deg,#51d7ff,#2a66df)!important}

  .tw-global-header{
    position:sticky!important;top:0!important;
    margin-left:var(--tw-side-w)!important;width:calc(100% - var(--tw-side-w))!important;
    min-height:68px!important;height:68px!important;padding:6px 14px!important;
    display:flex!important;align-items:center!important;gap:12px!important;box-sizing:border-box!important;
    background:rgba(255,255,255,.97)!important;border-bottom:1px solid #e5ede9!important;
    box-shadow:0 6px 20px rgba(16,52,43,.045)!important;z-index:140!important;overflow:visible!important;
  }
  .tw-global-mobile-logo{display:none!important}
  .tw-header-cat-nav{
    flex:1 1 auto!important;min-width:0!important;display:grid!important;
    grid-template-columns:repeat(7,minmax(58px,1fr))!important;gap:4px!important;
    align-items:center!important;justify-content:stretch!important;overflow:visible!important;
  }
  .tw-header-cat-nav .tw-cat-b{
    width:100%!important;height:56px!important;min-width:0!important;
    display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
    gap:2px!important;padding:2px 3px!important;text-decoration:none!important;border-radius:11px!important;
  }
  .tw-header-cat-nav .tw-icon-box{width:44px!important;height:34px!important;border-radius:12px!important;overflow:hidden!important}
  .tw-header-cat-nav .tw-icon-box > i{display:none!important}
  .tw-header-cat-nav .tw-cat-b em{
    width:100%!important;text-align:center!important;font-size:8px!important;line-height:1!important;
    font-weight:900!important;white-space:nowrap!important;color:#506861!important;text-shadow:none!important;
  }
  .tw-header-cat-nav .tw-cat-b.active em{color:#07856d!important}
  .tw-global-actions{flex:0 0 auto!important;margin-left:0!important;gap:6px!important}
  main,.cat-page{margin-left:var(--tw-side-w)!important}
}
@media(min-width:1100px) and (max-width:1280px){
  .tw-header-cat-nav{grid-template-columns:repeat(7,minmax(52px,1fr))!important;gap:2px!important}
  .tw-header-cat-nav .tw-icon-box{width:40px!important;height:32px!important}
  .tw-gh-wallet{display:none!important}
}

/* Flat, proportional, edge-to-edge banner */
.tw-vip-interactive{
  width:100%!important;max-width:none!important;height:auto!important;
  margin:10px 0 14px!important;border-radius:15px!important;overflow:hidden!important;
  background:transparent!important;box-shadow:0 10px 24px rgba(5,103,83,.12)!important;
}
.tw-vip-interactive > img{display:block!important;width:100%!important;height:auto!important;object-fit:contain!important}
.tw-vip-hotspots{left:2.5%!important;right:2.5%!important;bottom:2%!important;height:24%!important}

/* ===== topwin-account-favorite-v2 ===== */
.tw-local-favorites-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.tw-local-fav-item{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  padding:10px;
  border:1px solid #e4ebe8;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 10px rgba(18,58,47,.05);
}
.tw-local-fav-art{
  width:44px;height:44px;flex:0 0 44px;
  display:grid;place-items:center;border-radius:12px;
  background:linear-gradient(145deg,#e9f8f3,#d8f0e8);
  font-size:24px;
}
.tw-local-fav-copy{min-width:0;flex:1}
.tw-local-fav-copy b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tw-local-fav-copy small{display:block;margin-top:3px;font-size:9px;color:#8b9792}
.tw-local-fav-remove{
  width:30px;height:30px;flex:0 0 30px;border:0;border-radius:50%;
  background:#fff0f3;color:#e63f58;display:grid;place-items:center;
  cursor:pointer;font-size:15px;
}
.tw-local-favorites-empty{
  min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;color:#7e8b86;
}
.tw-local-favorites-empty[hidden]{display:none!important}
@media(max-width:650px){.tw-local-favorites-list{grid-template-columns:1fr}}

/* ===== topwin-reference-layout-v12 ===== */
@media (min-width:1100px){
 :root{--tw-side-w:190px!important;--tw-global-header-h:62px!important}
 body{background:#f7faf9!important}
 .promo{display:none!important}
 .tw-side-nav{top:62px!important;width:190px!important;padding:14px 10px 24px!important}
 .tw-side-brand{padding:6px 8px 14px!important}.tw-side-avatar{width:34px!important;height:34px!important}.tw-side-label b{font-size:12px!important}.tw-side-label small{font-size:8px!important}
 .tw-side-nav .tw-side-groups a{padding:8px 8px!important;min-height:44px!important}
 .tw-global-header{height:62px!important;min-height:62px!important;margin-left:190px!important;padding:0 18px!important;display:flex!important;align-items:center!important;background:#fff!important}
 main,.cat-page{margin-left:190px!important;width:auto!important;max-width:none!important;padding:12px 18px 40px!important}
 .notice{margin-left:190px!important}
 .tw-global-nav{flex:1!important;display:flex!important;justify-content:center!important;gap:24px!important}
 .tw-header-cat-nav>a{min-width:76px!important}
 .tw-header-cat-nav .tw-icon-box{display:none!important}
 .tw-header-cat-nav a:before{content:"";display:block;width:42px;height:36px;margin:0 auto 1px;background:center/contain no-repeat}
 .tw-header-cat-nav a[data-nav="electronic"]:before{background-image:url('../../images/home/desktop-menu/01_slot.png')}
 .tw-header-cat-nav a[data-nav="live"]:before{background-image:url('../../images/home/desktop-menu/02_live_casino.png')}
 .tw-header-cat-nav a[data-nav="sports"]:before{background-image:url('../../images/home/desktop-menu/03_sports.png')}
 .tw-header-cat-nav a[data-nav="fishing"]:before{background-image:url('../../images/home/desktop-menu/04_fishing.png')}
 .tw-header-cat-nav a[data-nav="lottery"]:before{background-image:url('../../images/home/desktop-menu/05_lottery.png')}
 .tw-header-cat-nav a[data-nav="promotion"]:before{background-image:url('../../images/home/desktop-menu/06_promotion.png')}
 .tw-header-cat-nav a em{font-size:11px!important;color:#16473d!important}
 .tw-global-actions{flex:none!important}
 .tw-global-mobile-logo{display:block!important;width:150px!important;height:48px!important;font-size:0!important;background:url('../../images/home/brand-logo.png') left center/contain no-repeat!important}
 .tw-home-hero{display:block!important;margin-bottom:8px}.tw-home-hero img{display:block;width:100%;height:auto;border-radius:14px}
 .tw-home-rank-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 265px;gap:10px;align-items:stretch}
 .tw-home-rank-grid .tw-weekly-prize{min-width:0;margin:0!important}.tw-home-right{display:grid!important;grid-template-rows:repeat(3,1fr);gap:8px}.tw-home-right a,.tw-home-right img{display:block;width:100%;height:100%;object-fit:cover;border-radius:11px}
 .tw-weekly-headline{display:none!important}.tw-weekly-shell{margin-top:0!important;background-image:url('../../images/home/jackpot-bg.png')!important;background-size:cover!important;background-position:center bottom!important}
 .tw-home-mobile-cats{display:none!important}
 .tw-home-catalog{margin-top:10px!important}
 .tw-provider-strip{background:#fff!important;border-radius:12px!important;padding:6px!important}
}
@media (max-width:1099px){
 .promo{display:none!important}.tw-global-header{height:70px!important;min-height:70px!important;padding:7px 10px!important}
 .tw-global-mobile-logo{display:block!important;flex:1!important;height:48px!important;font-size:0!important;background:url('../../images/home/brand-logo.png') left center/contain no-repeat!important}
 .tw-global-nav{display:none!important}.tw-global-actions{gap:6px!important}.tw-gh-user,.tw-global-actions>a:last-child{display:none!important}
 main{padding:8px 8px 76px!important}.tw-vip-interactive{display:none!important}
 .tw-home-hero{display:block!important;margin:4px 0 10px}.tw-home-hero img{width:100%;display:block;border-radius:13px}
 .tw-home-mobile-cats{display:grid!important;grid-template-columns:repeat(7,1fr);background:#fff;border-radius:13px;overflow:hidden;margin:0 0 10px;box-shadow:0 3px 14px #17382f12}
 .tw-home-mobile-cats a{min-width:0;padding:8px 2px;text-align:center;text-decoration:none;color:#29433d;border-right:1px solid #edf1ef;font-size:10px}.tw-home-mobile-cats a:last-child{border-right:0}.tw-home-mobile-cats img{width:34px;height:34px;object-fit:contain;display:block;margin:0 auto 3px}
 .tw-home-rank-grid{display:block!important}.tw-home-right{display:grid!important;grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0 10px}.tw-home-right a,.tw-home-right img{display:block;width:100%;border-radius:10px}
 .tw-weekly-headline{display:none!important}.tw-weekly-shell{margin-top:0!important;background-image:url('../../images/home/jackpot-bg.png')!important;background-size:cover!important;background-position:center bottom!important}
 .tw-provider-strip{margin-top:8px!important}.tw-provider-btn:first-child{display:none!important}
}

/* ===== topwin-header-reference-v13 ===== */
@media (min-width:1100px){
  :root{--tw-side-w:190px!important;--tw-global-header-h:62px!important}
  .tw-global-header{box-sizing:border-box!important;position:sticky!important;top:0!important;z-index:100!important;width:100%!important;height:62px!important;min-height:62px!important;margin-left:0!important;padding:0 18px 0 22px!important;display:flex!important;align-items:center!important;gap:20px!important;background:#fff!important;border-bottom:1px solid #e8efed!important;box-shadow:0 1px 8px rgba(20,80,67,.04)!important}
  .tw-global-mobile-logo{display:block!important;flex:0 0 168px!important;width:168px!important;height:50px!important;margin:0!important;font-size:0!important;background:url('../../images/home/brand-logo.png') left center/contain no-repeat!important}
  .tw-global-nav{flex:1 1 auto!important;display:flex!important;justify-content:flex-start!important;align-items:stretch!important;gap:7px!important;height:100%!important;min-width:0!important}
  .tw-header-cat-nav>a{box-sizing:border-box!important;position:relative!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-width:0!important;width:auto!important;height:100%!important;padding:0 10px!important;margin:0!important;border:0!important;border-radius:0!important;background:transparent!important;text-decoration:none!important;box-shadow:none!important}
  .tw-header-cat-nav>a:before{display:none!important;content:none!important}
  .tw-header-cat-nav .tw-icon-box{display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 23px!important;width:23px!important;height:23px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:visible!important}
  .tw-header-cat-nav .tw-icon-box img{display:block!important;width:23px!important;height:23px!important;object-fit:contain!important}
  .tw-header-cat-nav a em{display:block!important;margin:0!important;font-style:normal!important;font-size:11px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important;color:#174b42!important}
  .tw-header-cat-nav a.active:after,.tw-header-cat-nav a:hover:after{content:""!important;position:absolute!important;left:9px!important;right:9px!important;bottom:0!important;height:2px!important;border-radius:2px!important;background:#12b99a!important}
  .tw-global-actions{margin-left:auto!important;display:flex!important;align-items:center!important;gap:7px!important;flex:0 0 auto!important}
  .tw-side-nav{top:62px!important;height:calc(100vh - 62px)!important}
}

/* ===== topwin-header-reference-v14-final ===== */
@media (min-width:1100px){
  .tw-global-header[data-topwin-global-header]{position:sticky!important;top:0!important;z-index:200!important;box-sizing:border-box!important;width:100%!important;height:62px!important;min-height:62px!important;margin:0!important;padding:0 18px 0 28px!important;display:flex!important;flex-direction:row!important;align-items:center!important;gap:26px!important;overflow:visible!important;background:#fff!important;border-bottom:1px solid #e8efed!important;box-shadow:0 1px 8px rgba(20,80,67,.04)!important}
  .tw-global-header[data-topwin-global-header]>.tw-global-mobile-logo{display:block!important;flex:0 0 168px!important;width:168px!important;height:48px!important;margin:0!important;padding:0!important;font-size:0!important;background:url('../../images/home/x6bmwclub-logo.png') left center/contain no-repeat!important}
  .tw-global-header[data-topwin-global-header]>nav.tw-global-nav.tw-header-cat-nav{display:flex!important;flex:1 1 auto!important;grid-template-columns:none!important;flex-direction:row!important;align-items:stretch!important;justify-content:flex-start!important;gap:15px!important;height:62px!important;min-width:0!important;overflow:visible!important}
  .tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b{position:relative!important;box-sizing:border-box!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;width:auto!important;min-width:0!important;height:62px!important;margin:0!important;padding:0 8px!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;text-decoration:none!important;transform:none!important}
  .tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b>.tw-icon-box{display:flex!important;flex:0 0 22px!important;align-items:center!important;justify-content:center!important;width:22px!important;height:22px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;overflow:visible!important;transform:none!important}
  .tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b>.tw-icon-box:before,.tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b>.tw-icon-box:after,.tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b:before{display:none!important;content:none!important}
  .tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b>.tw-icon-box>img{display:block!important;width:22px!important;height:22px!important;object-fit:contain!important;margin:0!important}
  .tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b>em{display:block!important;margin:0!important;padding:0!important;font-style:normal!important;font-size:11px!important;font-weight:700!important;line-height:1!important;white-space:nowrap!important;color:#16473d!important;text-shadow:none!important}
  .tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b.active:after,.tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b:hover:after{content:""!important;position:absolute!important;left:7px!important;right:7px!important;bottom:0!important;height:2px!important;border-radius:2px!important;background:#12b99a!important}
  .tw-global-header[data-topwin-global-header]>.tw-global-actions{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;display:flex!important;flex:0 0 auto!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;height:62px!important;margin:0 0 0 auto!important;padding:0!important;transform:none!important}
  .tw-global-header[data-topwin-global-header]>.tw-global-actions>*{position:relative!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;margin:0!important;transform:none!important}
  .tw-global-header[data-topwin-global-header] .tw-gh-btn,.tw-global-header[data-topwin-global-header] .tw-gh-vip,.tw-global-header[data-topwin-global-header] .tw-gh-wallet,.tw-global-header[data-topwin-global-header] .tw-gh-deposit,.tw-global-header[data-topwin-global-header] .tw-gh-user{align-self:center!important}
  .tw-side-nav{top:62px!important;height:calc(100vh - 62px)!important}
}

/* ===== topwin-header-reference-v15-final ===== */
@media (min-width:1100px){
  .tw-global-header[data-topwin-global-header]{padding:0 18px 0 30px!important;gap:0!important;}
  .tw-global-header[data-topwin-global-header]>.tw-global-mobile-logo{flex:0 0 168px!important;width:168px!important;height:54px!important;background-image:url('../../images/home/topwin-logo-v15.png')!important;background-position:left center!important;background-size:contain!important;background-repeat:no-repeat!important;}
  .tw-global-header[data-topwin-global-header]>nav.tw-global-nav.tw-header-cat-nav{margin-left:56px!important;gap:13px!important;align-items:stretch!important;}
  .tw-global-header[data-topwin-global-header]>.tw-header-cat-nav>a.tw-cat-b{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:7px!important;padding:0 7px!important;}
  .tw-global-header[data-topwin-global-header]>.tw-global-actions{height:62px!important;align-items:center!important;gap:7px!important;margin-left:auto!important;position:static!important;}
  .tw-global-header[data-topwin-global-header]>.tw-global-actions>a{position:relative!important;inset:auto!important;float:none!important;vertical-align:middle!important;}
  .tw-global-header[data-topwin-global-header]>.tw-global-actions>a:last-child{display:flex!important;align-items:center!important;justify-content:center!important;width:38px!important;min-width:38px!important;height:38px!important;padding:0!important;margin:0!important;line-height:1!important;font-size:17px!important;border-radius:11px!important;transform:none!important;}
}

/* ===== topwin-mobile-drawer-artwork-v26 ===== */
@media(max-width:1099px){
 .tw-global-header[data-topwin-global-header]{display:flex!important;align-items:center!important;gap:5px!important;padding-left:8px!important}
 .tw-mobile-hamburger{display:flex!important;flex:0 0 34px!important;align-items:center;justify-content:center;width:34px!important;height:34px!important;margin:0!important;border:1px solid #e0ece7;border-radius:9px;background:#fff;color:#087f68;cursor:pointer;order:0!important}
 .tw-global-header[data-topwin-global-header]>.tw-global-mobile-logo{display:block!important;order:1!important;flex:0 0 88px!important;width:88px!important;min-width:88px!important;height:44px!important;margin:0!important;padding:0!important;background-image:url('../../images/home/topwin-logo-v15.png')!important;background-position:left center!important;background-size:contain!important;background-repeat:no-repeat!important;font-size:0!important}
 .tw-global-header[data-topwin-global-header]>.tw-global-actions{order:2!important;min-width:0;margin-left:auto!important}
 .tw-side-nav.drawer{display:block!important;position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:min(286px,88vw)!important;height:100dvh!important;max-height:100dvh!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important;transform:translateX(-110%)!important;visibility:visible!important;z-index:1002!important;transition:transform .24s ease!important;padding:18px 16px 28px!important;background:linear-gradient(180deg,#fff 0%,#fbfdfc 100%)!important;border-right:1px solid #e3ebe7!important;box-shadow:10px 0 34px rgba(20,55,45,.13)!important}
 #drawer-toggle:checked~.tw-side-nav.drawer{transform:translateX(0)!important}
 .tw-side-nav .drawer-head{display:none!important}
 .tw-side-nav .tw-side-brand{display:flex!important;align-items:center!important;gap:11px!important;min-height:0!important;margin:0 0 4px!important;padding:10px 10px 16px!important;border-radius:0!important;border-bottom:1px solid #edf2f0!important;background:transparent!important;color:#173d34!important}
 .tw-side-nav .tw-side-avatar{width:38px!important;height:38px!important;min-width:38px!important;border-radius:12px!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,#0db092,#067964)!important;color:#fff!important;font-size:13px!important;font-weight:900!important;box-shadow:0 7px 16px rgba(9,139,113,.18),inset 0 1px 0 rgba(255,255,255,.28)!important}
 .tw-side-nav .tw-side-brand-name{font-size:13px!important;line-height:1.15!important;font-weight:900!important;color:#173d34!important;letter-spacing:.03em!important}
 .tw-side-nav .tw-side-group{margin-top:16px!important}
 .tw-side-nav .tw-side-group h4{margin:0 10px 8px!important;font-size:9px!important;line-height:1!important;font-weight:900!important;letter-spacing:.18em!important;color:#a0ada8!important}
 .tw-side-nav .tw-side-group a{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:10px!important;min-height:50px!important;margin:3px 0!important;padding:7px 10px!important;border-radius:13px!important;text-decoration:none!important;color:#4e5f59!important;background:transparent!important;transform:none!important}
 .tw-side-nav .tw-side-group a.active{background:linear-gradient(90deg,#e3f5ef,#f2faf7)!important;color:#087b66!important;box-shadow:inset 3px 0 0 #0b9a7c!important}
 .tw-side-nav .tw-side-icon{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;border-radius:10px!important;display:grid!important;place-items:center!important;position:relative!important;color:#087b66!important;background:#eef8f5!important;font-size:13px!important;font-weight:900!important;box-shadow:inset 0 0 0 1px #d9eee7!important}
 .tw-side-nav .tw-side-icon svg{display:block!important;width:18px!important;height:18px!important;max-width:18px!important;max-height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
 .tw-side-nav .tw-side-group a.active .tw-side-icon{background:#0b9a7c!important;color:#fff!important;box-shadow:0 5px 12px rgba(11,154,124,.18)!important}
 .tw-side-nav .tw-side-label{display:block!important;min-width:0!important}
 .tw-side-nav .tw-side-label b{display:block!important;font-size:13px!important;line-height:1.15!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .tw-side-nav .tw-side-label small{display:block!important;margin-top:3px!important;font-size:9px!important;line-height:1.1!important;color:#a0aaa6!important;font-weight:600!important}
 #drawer-toggle:checked~.shade{display:block!important;opacity:1!important;visibility:visible!important;z-index:1001!important}
 .shade{display:block!important;opacity:0!important;visibility:hidden!important}
 .tw-weekly-shell{background-image:url('../../images/home/jackpot-bg.png')!important;background-size:100% auto!important;background-position:center bottom!important;background-repeat:no-repeat!important;background-color:#301407!important}
}
@media(min-width:1100px){.tw-mobile-hamburger{display:none!important}}

/* ===== topwin-mobile-drawer-scroll-lock-v27 ===== */
@media (max-width:1099px){
  .tw-side-nav.drawer{overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-y!important;}
  html.tw-drawer-open,body.tw-drawer-open{overflow:hidden!important;overscroll-behavior:none!important;}
  body.tw-drawer-open{position:fixed!important;width:100%!important;left:0!important;right:0!important;}
}

/* ===== topwin-mobile-horizontal-page-lock-v28 ===== */
/* Mobile page itself is vertical-only. Intentional provider/game rails keep their own horizontal scrolling. */
@media (max-width:1099px){
  html,body{max-width:100%!important;overflow-x:clip!important;}
  body>main,main,.tw-page,.tw-main,.tw-content,.tw-home-main{max-width:100%!important;min-width:0!important;overflow-x:clip!important;}
  .tw-global-header{max-width:100vw!important;box-sizing:border-box!important;}
  .tw-home-hero,.tw-home-rank-grid,.tw-home-catalog,.tw-weekly-prize,.tw-weekly-shell{max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
  .tw-provider-strip-desktop,.tw-provider-strip-mobile,.tw-game-shelf-row{max-width:100%!important;min-width:0!important;overscroll-behavior-x:contain!important;}
  .tw-side-nav.drawer{overflow-x:hidden!important;touch-action:pan-y!important;}
}

/* ===== topwin-mobile-viewport-horizontal-fix-v30 ===== */
@media (max-width:1099px){
  html{width:100%!important;max-width:100%!important;overflow-x:hidden!important;}
  body{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;margin-left:0!important;margin-right:0!important;}
  .tw-global-header,main,.tw-home-main,.tw-home-hero,.tw-home-rank-grid,.tw-weekly-prize,.tw-weekly-shell,.tw-home-catalog,.tw-game-shelf{
    box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  }
  main,.tw-home-main{width:100%!important;margin-left:0!important;margin-right:0!important;transform:none!important;}
  .tw-global-header{left:0!important;right:0!important;width:100%!important;max-width:100%!important;}
  /* Only these rails may move horizontally. The page itself never does. */
  .tw-provider-strip-desktop,.tw-provider-strip-mobile,.tw-game-shelf-row{
    width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;
    overscroll-behavior-x:contain!important;-webkit-overflow-scrolling:touch!important;touch-action:pan-x!important;
  }
  .tw-side-nav.drawer{overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;touch-action:pan-y!important;}
  .tw-home-right,.tw-home-right a,.tw-home-right img,.tw-home-hero a,.tw-home-hero picture,.tw-home-hero img{max-width:100%!important;box-sizing:border-box!important;}
}

/* ===== topwin-mobile-promos-bottomnav-v31 ===== */
@media (max-width:1099px){
  /* Mobile promotions: one full-width artwork per row, never squeeze 3 together. */
  .tw-home-right{display:flex!important;flex-direction:column!important;gap:8px!important;width:100%!important;margin:8px 0 10px!important;overflow:visible!important}
  .tw-home-right>a{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;flex:none!important}
  .tw-home-right>a img,.tw-home-right>img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;object-fit:contain!important;border-radius:10px!important}

  /* Keep current wording; replace only bottom navigation artwork. */
  .tw-mobile-nav a span>b{display:block!important;width:25px!important;height:25px!important;margin:0 auto 2px!important;font-size:0!important;background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important}
  .tw-mobile-nav a:nth-child(1) span>b{background-image:url('../../images/home/bottom-nav/01_home.png')!important}
  .tw-mobile-nav a:nth-child(2) span>b{background-image:url('../../images/home/bottom-nav/04_promotion.png')!important}
  .tw-mobile-nav a:nth-child(3) span>b{background-image:url('../../images/home/bottom-nav/03_deposit.png')!important}
  .tw-mobile-nav a:nth-child(4) span>b{background-image:url('../../images/home/bottom-nav/02_games.png')!important}
  .tw-mobile-nav a:nth-child(5) span>b{background-image:url('../../images/home/bottom-nav/05_profile.png')!important}
  .tw-mobile-nav .tw-nav-home>*{display:none!important}
}

/* ===== topwin-mobile-category-bottomnav-v32 ===== */
@media (max-width:1099px){
  /* Category artwork already carries its own visual label: show artwork only. */
  .tw-home-mobile-cats{align-items:center!important;}
  .tw-home-mobile-cats>a{display:flex!important;align-items:center!important;justify-content:center!important;padding:5px 2px!important;min-width:0!important;}
  .tw-home-mobile-cats>a>img{display:block!important;width:44px!important;height:44px!important;max-width:100%!important;object-fit:contain!important;margin:0 auto!important;}
  .tw-home-mobile-cats>a>span{display:none!important;}

  /* Bottom navigation: enlarge supplied artwork while keeping current wording. */
  .tw-mobile-nav{min-height:70px!important;height:70px!important;}
  .tw-mobile-nav a{height:70px!important;min-height:70px!important;padding:4px 2px 3px!important;display:flex!important;align-items:center!important;justify-content:center!important;}
  .tw-mobile-nav a>span{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;}
  .tw-mobile-nav a span>b{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;margin:0 auto!important;background-size:contain!important;background-position:center!important;background-repeat:no-repeat!important;}
  .tw-mobile-nav a em{display:block!important;margin:0!important;line-height:1.05!important;}
}


/* ===== topwin-account-menu-uploaded-icons-v42 ===== */
/* User-supplied transparent PNG icon set. Keep the artwork itself untouched. */
.shortcut-grid.tw-account-menu-grid a{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  min-width:0!important;
  color:#35433e!important;
  text-decoration:none!important;
  font-size:12px!important;
  line-height:1.18!important;
  font-weight:700!important;
}
.shortcut-grid.tw-account-menu-grid .tw-account-menu-icon{
  display:block!important;
  width:48px!important;
  height:48px!important;
  object-fit:contain!important;
  margin:0 auto 7px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  transform:none!important;
  transition:transform .16s ease,filter .16s ease!important;
}
.shortcut-grid.tw-account-menu-grid a:hover .tw-account-menu-icon{
  transform:translateY(-2px) scale(1.045)!important;
  filter:saturate(1.05) drop-shadow(0 7px 9px rgba(20,70,58,.10))!important;
}
.shortcut-grid.tw-account-menu-grid a:active .tw-account-menu-icon{
  transform:translateY(0) scale(.97)!important;
}
.shortcut-grid.tw-account-menu-grid i{
  display:none!important;
}
@media(max-width:650px){
  .shortcut-grid.tw-account-menu-grid .tw-account-menu-icon{
    width:44px!important;
    height:44px!important;
    margin-bottom:6px!important;
  }
  .shortcut-grid.tw-account-menu-grid a{
    font-size:11px!important;
  }
}

/* v43 favorite image rendering */
.tw-local-fav-art img{display:block;width:34px;height:34px;object-fit:contain}.tw-local-fav-remove img{width:15px;height:15px}.tw-account-menu-grid .tw-account-menu-icon{object-fit:contain}


/* ===== v51 Malaysia deposit verification flow ===== */
.acct-deposit-sheet{width:min(780px,100%)}
.acct-sheet-sub{display:block;margin-top:3px;color:#80918b;font-size:10px;font-weight:600}
.acct-deposit-body{max-height:min(78vh,760px);overflow:auto}
.deposit-overview{display:grid;grid-template-columns:1fr 1.4fr .8fr;gap:9px;margin-bottom:16px}
.deposit-account-chip{min-width:0;display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid #e0ebe7;border-radius:12px;background:#f8fbfa}
.deposit-account-chip .tw-ui-img{width:18px;height:18px}
.deposit-account-chip span{min-width:0;display:flex;flex-direction:column;gap:1px}
.deposit-account-chip small{font-size:9px;color:#8a9994}
.deposit-account-chip b{font-size:11px;color:#24483e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.deposit-account-chip.status{background:#effaf6;border-color:#d3eee5}
.deposit-account-chip.status b{color:#07856d}
.deposit-section{padding:14px 0;border-top:1px solid #edf2f0}
.deposit-section:first-of-type{border-top:0;padding-top:0}
.deposit-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.deposit-section-head b{font-size:12px;color:#263f38}
.deposit-section-head small{font-size:9px;color:#8b9a95;text-align:right}
.deposit-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.deposit-method{min-width:0;display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #dfe9e5;border-radius:12px;background:#fff;color:#314d44;text-align:left;cursor:pointer;transition:border-color .15s ease,background .15s ease,transform .15s ease}
.deposit-method:hover{border-color:#afd8cc;background:#f7fcfa;transform:translateY(-1px)}
.deposit-method.active{border-color:#0a9b81;background:#eefaf6;box-shadow:0 0 0 1px rgba(10,155,129,.08)}
.deposit-method .tw-ui-img{width:22px;height:22px;flex:none}
.deposit-method span{min-width:0;display:flex;flex-direction:column;gap:2px}
.deposit-method b{font-size:11px}
.deposit-method small{font-size:8.5px;color:#82938d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.deposit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.deposit-span-2{grid-column:1/-1}
.field-help{display:block;margin-top:5px;font-size:8.5px;line-height:1.45;color:#8a9994}
.deposit-upload{min-height:68px;display:flex;align-items:center;gap:11px;padding:12px;border:1px dashed #bcd8cf;border-radius:11px;background:#f8fcfa;cursor:pointer}
.deposit-upload:hover{border-color:#079579;background:#f1faf6}
.deposit-upload .tw-ui-img{width:24px;height:24px}
.deposit-upload span{display:flex;flex-direction:column;gap:3px}
.deposit-upload b{font-size:10px;color:#38564d}
.deposit-upload small{font-size:8.5px;color:#879791}
.deposit-file-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}
.deposit-confirm{display:flex;align-items:flex-start;gap:8px;margin-top:2px;padding:10px 11px;border-radius:10px;background:#f7f9f8;color:#5c716a;font-size:9px;line-height:1.5}
.deposit-confirm input{margin-top:2px;accent-color:#078b73}
.deposit-section.verification{padding-bottom:10px}
.deposit-verify-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.deposit-verify-grid>div{min-width:0;padding:9px 10px;border:1px solid #e5ece9;border-radius:10px;background:#fbfdfc}
.deposit-verify-grid span{display:block;font-size:8px;color:#8a9994;margin-bottom:2px}
.deposit-verify-grid b{display:block;font-size:10px;color:#2e4c43;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.deposit-security-note{display:flex;align-items:flex-start;gap:9px;margin-top:10px;padding:10px 11px;border-radius:10px;background:#fff8e8;border:1px solid #f4e0a9}
.deposit-security-note .tw-ui-img{width:19px;height:19px;flex:none}
.deposit-security-note span{display:flex;flex-direction:column;gap:2px}
.deposit-security-note b{font-size:9.5px;color:#7b5c12}
.deposit-security-note small{font-size:8.5px;line-height:1.45;color:#8c7440}
.deposit-error{margin:0 0 10px;padding:9px 10px;border-radius:9px;background:#fff0f2;border:1px solid #f5cbd2;color:#b43d50;font-size:9px;font-weight:700}
.deposit-submit{margin-top:2px}
@media(max-width:720px){
  .acct-deposit-body{max-height:none;overflow:visible}
  .deposit-overview{grid-template-columns:1fr}
  .deposit-methods{grid-template-columns:1fr}
  .deposit-grid{grid-template-columns:1fr}
  .deposit-span-2{grid-column:auto}
  .deposit-verify-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .deposit-section-head{align-items:flex-start;flex-direction:column;gap:3px}
  .deposit-section-head small{text-align:left}
}


/* ===== v52 dynamic referral QR ===== */
.acct-referral-sheet{width:min(760px,100%)}
.acct-referral-body{padding-top:16px}
.acct-referral-grid{display:grid;grid-template-columns:minmax(0,1.2fr) 240px;gap:18px;align-items:start}
.acct-referral-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.acct-referral-chip{padding:10px 12px;border:1px solid #deebe6;border-radius:12px;background:#f8fbfa}
.acct-referral-chip span{display:block;font-size:9px;color:#889792;margin-bottom:2px}
.acct-referral-chip b{display:block;font-size:12px;color:#1e5147;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acct-referral-link-field{margin-top:14px}
.acct-referral-actions{display:flex;gap:10px;margin-top:14px}
.acct-referral-copy{padding-inline:16px}
.acct-referral-help{display:block;margin-top:10px;font-size:9px;line-height:1.5;color:#83948e}
.acct-referral-qr-card{padding:14px;border:1px solid #deebe6;border-radius:16px;background:#f8fcfb}
.acct-referral-qr-head{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;color:#1f564c;margin-bottom:12px}
.acct-referral-qr-head .tw-ui-img{width:18px;height:18px}
.acct-referral-qr-frame{display:grid;place-items:center;padding:12px;border-radius:14px;background:#fff;border:1px dashed #b9d9d0;min-height:214px}
.acct-referral-qr-frame img{display:block;width:190px;height:190px;max-width:100%;object-fit:contain;background:#fff;border-radius:8px}
#acct-referral #referralQrCaption{display:block;margin-top:10px;font-size:9px;line-height:1.5;color:#7d8e88;text-align:center}
@media(max-width:720px){
  .acct-referral-grid{grid-template-columns:1fr}
  .acct-referral-qr-card{order:-1}
  .acct-referral-qr-frame{min-height:unset}
  .acct-referral-qr-frame img{width:200px;height:200px}
}


/* ===== v53 humanized modal header / close-control authority =====
   Close controls belong at the stable top-right edge of the modal header.
   The title/subtitle block owns all remaining horizontal space. */
.acct-sheet-head{
  position:relative !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  gap:12px !important;
}
.acct-sheet-head > div:first-child,
.acct-sheet-head > h3:first-child{
  flex:1 1 auto !important;
  min-width:0 !important;
}
.acct-sheet-head > a:last-child{
  flex:0 0 auto !important;
  margin-left:auto !important;
  align-self:flex-start !important;
  width:34px !important;
  height:34px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:10px !important;
  text-decoration:none !important;
  color:#557068 !important;
  background:#f7fbf9 !important;
  border:1px solid #e0ebe7 !important;
  transition:background .14s ease,border-color .14s ease,transform .14s ease !important;
}
.acct-sheet-head > a:last-child:hover{
  background:#eef8f4 !important;
  border-color:#b9dcd1 !important;
  transform:translateY(-1px);
}
.acct-sheet-head > a:last-child:active{
  transform:scale(.96);
}
.acct-sheet-head > a:last-child .tw-ui-img{
  width:15px !important;
  height:15px !important;
}
@media(max-width:720px){
  .acct-sheet-head > a:last-child{
    width:36px !important;
    height:36px !important;
  }
}


/* ===== v57 transfer + withdrawal verification UX ===== */
.acct-transfer-sheet,.acct-withdraw-sheet{width:min(760px,100%)}
.funds-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:14px}
.funds-overview-item{min-width:0;padding:10px 11px;border:1px solid #e1ebe7;border-radius:12px;background:#f8fbfa}
.funds-overview-item span{display:block;font-size:8.5px;color:#899892;margin-bottom:2px}
.funds-overview-item b{display:block;font-size:10.5px;color:#284b42;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.funds-step{padding:14px 0;border-top:1px solid #edf2f0}
.funds-step:first-of-type{border-top:0;padding-top:0}
.funds-step-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}
.funds-step-head b{font-size:12px;color:#28463e}
.funds-step-head small{font-size:8.5px;color:#899892}
.funds-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.quick-amounts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:4px}
.quick-amounts button,.funds-inline-field button{
  min-height:36px;border:1px solid #dbe7e2;border-radius:10px;background:#fff;color:#36574e;
  font:800 9px/1 inherit;cursor:pointer;transition:background .14s ease,border-color .14s ease,transform .14s ease
}
.quick-amounts button:hover,.funds-inline-field button:hover{background:#f1faf6;border-color:#a8d8ca;transform:translateY(-1px)}
.funds-confirm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.funds-confirm-grid>div{min-width:0;padding:9px 10px;border:1px solid #e4ece9;border-radius:10px;background:#fbfdfc}
.funds-confirm-grid span{display:block;font-size:8px;color:#8a9994;margin-bottom:2px}
.funds-confirm-grid b{display:block;font-size:9.5px;color:#2f4e45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.funds-inline-field{display:grid;grid-template-columns:minmax(0,1fr) 108px;gap:8px}
@media(max-width:720px){
  .funds-overview{grid-template-columns:1fr}
  .funds-grid{grid-template-columns:1fr}
  .quick-amounts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .funds-confirm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .funds-step-head{align-items:flex-start;flex-direction:column;gap:3px}
}


/* ===== v59 modal viewport safety =====
   Tall account sheets must never be vertically centered off-screen.
   Header/close stays visible while sheet body scrolls independently. */
@media(min-width:721px){
  .acct-panel{
    align-items:flex-start!important;
    justify-items:center!important;
    padding:28px!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
  .acct-panel:target{
    display:grid!important;
    place-items:start center!important;
  }
  .acct-panel .acct-sheet{
    width:min(760px,100%)!important;
    max-height:calc(100dvh - 56px)!important;
    min-height:0!important;
    margin:0 auto!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  .acct-panel .acct-sheet-head{
    position:sticky!important;
    top:0!important;
    z-index:4!important;
    flex:0 0 auto!important;
    background:#fff!important;
  }
  .acct-panel .acct-sheet-body{
    min-height:0!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
}
/* Small/medium sheets keep their intended narrower widths. */
@media(min-width:721px){
  #acct-referral .acct-sheet{width:min(760px,100%)!important}
  #acct-deposit .acct-sheet,
  #acct-transfer .acct-sheet,
  #acct-withdraw .acct-sheet{width:min(780px,100%)!important}
  #acct-vip .acct-sheet,
  #acct-transactions .acct-sheet,
  #acct-account .acct-sheet,
  #acct-favorites .acct-sheet,
  #acct-security .acct-sheet,
  #acct-messages .acct-sheet,
  #acct-events .acct-sheet,
  #acct-announcements .acct-sheet,
  #acct-rules .acct-sheet,
  #acct-tutorial .acct-sheet,
  #acct-app .acct-sheet,
  #acct-more .acct-sheet{width:min(520px,100%)!important}
}
@media(max-width:720px){
  .acct-panel:target{
    display:block!important;
    overflow-y:auto!important;
  }
  .acct-panel .acct-sheet{
    min-height:100dvh!important;
    max-height:none!important;
    overflow:visible!important;
  }
  .acct-panel .acct-sheet-head{
    position:sticky!important;
    top:0!important;
    z-index:8!important;
    background:#fff!important;
  }
  .acct-panel .acct-sheet-body{
    overflow:visible!important;
  }
}


/* ===== v60 modal layering + viewport authority =====
   Root cause of v59 regression:
   desktop global header z-index = 400, while account modals inherited z-index = 220.
   The fixed header therefore painted OVER the top of every modal and hid its title/close area.
   This final block owns Account modal stacking and viewport geometry. */

@media(min-width:1100px){
  .acct-panel{
    position:fixed!important;
    inset:0!important;
    z-index:1200!important;
    padding:24px!important;
    background:rgba(0,0,0,.44)!important;
    overflow:hidden!important;
  }
  .acct-panel:target{
    display:flex!important;
    align-items:flex-start!important;
    justify-content:center!important;
  }
  .acct-panel .acct-sheet{
    flex:0 1 auto!important;
    margin:0 auto!important;
    max-height:calc(100dvh - 48px)!important;
    min-height:0!important;
    border-radius:18px!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    background:#fff!important;
    box-shadow:0 22px 70px rgba(14,40,33,.30)!important;
  }
  .acct-panel .acct-sheet-head{
    position:relative!important;
    top:auto!important;
    z-index:6!important;
    flex:0 0 auto!important;
    min-height:64px!important;
    width:100%!important;
    background:#fff!important;
    border-bottom:1px solid #edf2f0!important;
  }
  .acct-panel .acct-sheet-body{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-gutter:stable!important;
  }
}

/* Tablet/mobile: keep shared header visible, place modal below it, but layer the
   modal content above the page body/sidebar and keep its own sheet header visible. */
@media(max-width:1099px){
  .acct-panel{
    z-index:500!important;
  }
  .acct-panel .acct-sheet-head{
    position:sticky!important;
    top:0!important;
    z-index:10!important;
    background:#fff!important;
  }
}

/* Very small mobile keeps the full sheet behavior while preserving the close row. */
@media(max-width:720px){
  .acct-panel .acct-sheet-head{
    min-height:58px!important;
  }
}


/* ===== v61 adaptive modal centering =====
   Small/medium sheets are visually centered.
   Tall sheets stay top-aligned so their header/close control remains safe. */
@media(min-width:1100px){
  .acct-panel:target{
    align-items:flex-start!important;
  }
  .acct-panel.is-compact-modal:target{
    align-items:center!important;
  }
  .acct-panel.is-compact-modal .acct-sheet{
    margin:auto!important;
  }
  .acct-panel.is-tall-modal .acct-sheet{
    margin:0 auto!important;
  }
}


/* ===== v79 account cleanup / language / about ===== */
.tw-hidden-account-block{display:none!important}
.tw-local-favorites-empty{min-height:220px!important;padding:34px 28px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important}
.tw-local-favorites-empty .tw-empty-heart{width:52px!important;height:52px!important;margin:0 0 14px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#f0faf7!important}
.tw-local-favorites-empty .tw-empty-copy{max-width:330px!important}
.tw-local-favorites-empty .tw-empty-copy b{display:block!important;margin:0 0 8px!important;font-size:17px!important;line-height:1.2!important;color:#24473e!important}
.tw-local-favorites-empty .tw-empty-copy small{display:block!important;font-size:11px!important;line-height:1.65!important;color:#85958f!important}
.tw-empty-action{margin-top:18px!important;min-height:38px!important;padding:0 16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:999px!important;background:#edf8f4!important;color:#087c68!important;font-size:10px!important;font-weight:850!important;text-decoration:none!important}
.deposit-methods-two{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.deposit-security-note-compact{margin-top:4px!important}
.acct-more-cards .acct-more-link{min-height:72px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;width:100%!important;box-sizing:border-box!important;text-decoration:none!important;color:#29473e!important;background:#fff!important;cursor:pointer!important;text-align:left!important;font-family:inherit!important}
.acct-more-cards button.acct-more-link{appearance:none!important}
.acct-more-cards .acct-more-link:hover{border-color:#a8daca!important;background:#f8fcfa!important}
.acct-language-sheet,.acct-about-sheet{width:min(600px,100%)!important}
.acct-language-intro{padding:4px 2px 16px!important}.acct-language-intro b{display:block;font-size:16px!important;color:#21453c!important;margin-bottom:6px!important}.acct-language-intro small{font-size:10.5px!important;line-height:1.55!important;color:#81918b!important}
.acct-language-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.acct-language-option{min-height:96px!important;padding:14px!important;border:1px solid #dfe9e5!important;border-radius:14px!important;background:#fff!important;display:grid!important;grid-template-columns:auto 1fr!important;grid-template-rows:auto auto!important;gap:3px 10px!important;text-align:left!important;cursor:pointer!important;color:#27473e!important;font-family:inherit!important}
.acct-language-option>span{grid-row:1/3;font-size:19px!important;font-weight:900!important;align-self:center!important;color:#078b73!important}.acct-language-option>small{font-size:10px!important;color:#87958f!important}.acct-language-option>b{font-size:11px!important}.acct-language-option.active{border-color:#079579!important;background:#f0faf7!important;box-shadow:0 0 0 2px rgba(7,149,121,.08)!important}
.acct-about-hero{min-height:94px!important;padding:16px!important;border-radius:16px!important;display:flex!important;align-items:center!important;gap:16px!important;background:linear-gradient(135deg,#ecfaf6,#f8fcfb)!important;border:1px solid #dcece6!important}
.acct-about-hero img{width:112px!important;height:auto!important;object-fit:contain!important}.acct-about-hero b{display:block;font-size:22px!important;line-height:1!important;color:#0b7e69!important}.acct-about-hero small{display:block;margin-top:6px!important;font-size:10.5px!important;line-height:1.45!important;color:#667b74!important}
.acct-about-lead{margin:16px 2px!important;font-size:12px!important;line-height:1.7!important;color:#425c54!important}
.acct-about-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.acct-about-grid>div{padding:13px!important;border:1px solid #e3ebe8!important;border-radius:12px!important;background:#fff!important}.acct-about-grid b{display:block!important;font-size:12px!important;color:#24473e!important;margin-bottom:5px!important}.acct-about-grid small{display:block!important;font-size:9.5px!important;line-height:1.55!important;color:#7e8f89!important}
.acct-about-note{margin-top:12px!important;padding:11px 12px!important;border-radius:11px!important;background:#f5f8f7!important;font-size:10px!important;line-height:1.55!important;color:#62766f!important}
@media(max-width:720px){.tw-local-favorites-empty{min-height:calc(100dvh - 190px)!important;padding:28px 20px!important}.tw-local-favorites-empty .tw-empty-copy b{font-size:18px!important}.tw-local-favorites-empty .tw-empty-copy small{font-size:12px!important;line-height:1.6!important}.acct-language-options{grid-template-columns:1fr!important}.acct-language-option{min-height:78px!important}.acct-about-hero{padding:14px!important;gap:12px!important}.acct-about-hero img{width:88px!important}.acct-about-grid{grid-template-columns:1fr!important}.acct-about-lead{font-size:12px!important}}


/* ===== v80 language panel polish ===== */
.acct-language-sheet{width:min(620px,100%)!important}
.acct-language-intro{margin:0 0 14px!important;padding:14px 16px!important;border:1px solid #e2ece8!important;border-radius:14px!important;background:linear-gradient(135deg,#f4fbf8,#ffffff)!important}
.acct-language-intro b{margin:0 0 5px!important;font-size:15px!important;line-height:1.2!important;color:#1b4339!important}
.acct-language-intro small{display:block!important;font-size:10.5px!important;line-height:1.55!important;color:#7c8e87!important}
.acct-language-options{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.acct-language-option{
  position:relative!important;min-height:88px!important;padding:14px 14px 14px 60px!important;border:1px solid #dfe9e5!important;border-radius:14px!important;
  background:#fff!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
  gap:4px!important;text-align:left!important;cursor:pointer!important;color:#27473e!important;font-family:inherit!important;
  transition:border-color .15s ease,background .15s ease,box-shadow .15s ease!important
}
.acct-language-option>span{
  position:absolute!important;left:14px!important;top:50%!important;transform:translateY(-50%)!important;width:34px!important;height:34px!important;
  border-radius:10px!important;display:grid!important;place-items:center!important;background:#edf9f5!important;color:#078b73!important;
  font-size:14px!important;line-height:1!important;font-weight:950!important
}
.acct-language-option>small{font-size:10px!important;line-height:1.2!important;color:#87958f!important}
.acct-language-option>b{font-size:12px!important;line-height:1.2!important;color:#28473f!important}
.acct-language-option.active{border-color:#079579!important;background:#f4fcf9!important;box-shadow:0 0 0 3px rgba(7,149,121,.08)!important}
.acct-language-option.active::after{content:"✓";position:absolute;right:13px;top:13px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#078f76;color:#fff;font-size:11px;font-weight:900}
@media(max-width:720px){.acct-language-intro{padding:12px 13px!important}.acct-language-options{grid-template-columns:1fr!important}.acct-language-option{min-height:72px!important}}


/* ===== v81 deposit supported-channel display ===== */
.deposit-supported-field{
  min-width:0!important;
}
.deposit-supported-channels{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  min-height:46px!important;
  padding:8px!important;
  border:1px solid #dfe9e5!important;
  border-radius:12px!important;
  background:#f9fcfb!important;
}
.deposit-supported-channels span{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:28px!important;
  padding:0 10px!important;
  border:1px solid #d8e9e3!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#3f6258!important;
  font-size:9px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.deposit-supported-note{
  display:block!important;
  margin-top:6px!important;
  color:#84948e!important;
  font-size:9px!important;
  line-height:1.45!important;
}

@media(max-width:720px){
  .deposit-supported-channels{
    flex-wrap:nowrap!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
    padding:7px!important;
  }
  .deposit-supported-channels::-webkit-scrollbar{
    display:none!important;
  }
  .deposit-supported-channels span{
    flex:0 0 auto!important;
    min-height:30px!important;
    padding:0 11px!important;
    font-size:9.5px!important;
  }
  .deposit-supported-note{
    font-size:9.5px!important;
  }
}


/* ===== v82 FPX simplified payment details ===== */
.deposit-panel-fields[data-method-panel="fpx"] .deposit-supported-field{
  grid-column:1/-1!important;
}


/* ===== v83 logged-out account actions =====
   Logout must not be shown when there is no authenticated member. */
#acct-more .acct-more-logout{
  display:none!important;
}
#acct-more .acct-more-logout.is-visible{
  display:flex!important;
}


/* ===== v84 auth close + balance login entry ===== */
.tw-balance-auth-link.is-auth-link,
.tw-balance-auth-link[href="#auth"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:max-content!important;
  min-height:38px!important;
  margin-top:4px!important;
  padding:0 15px!important;
  border:1px solid #bfe7da!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,#f2fbf8,#e8f8f2)!important;
  color:#078b73!important;
  font-size:15px!important;
  line-height:1!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 5px 14px rgba(7,139,115,.08)!important;
  cursor:pointer!important;
}
.tw-balance-auth-link.is-auth-link:hover,
.tw-balance-auth-link[href="#auth"]:hover{
  border-color:#77cdb6!important;
  background:#e7f8f2!important;
  transform:translateY(-1px)!important;
}
.tw-balance-auth-link:not([href]){
  display:block!important;
  width:auto!important;
  min-height:0!important;
  margin-top:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:none!important;
  box-shadow:none!important;
  cursor:default!important;
  text-decoration:none!important;
}

@media(max-width:720px){
  .tw-balance-auth-link.is-auth-link,
  .tw-balance-auth-link[href="#auth"]{
    min-height:34px!important;
    padding:0 13px!important;
    font-size:13px!important;
  }
}


/* ===== v85 robust auth close ===== */
.auth-overlay.tw-auth-force-closed{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}


/* v87 reliable support overlay close */
#support.tw-support-force-closed{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}


/* ===== v88 mobile panel header balance without X ===== */
@media(max-width:650px){
  .acct-panel .acct-sheet-head{
    min-height:52px!important;
    padding:0 16px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
  }
  .acct-panel .acct-sheet-head h3{
    margin:0!important;
  }
}


/* ===== v98 unified return-to-account navigation ===== */
.acct-sheet-head{
  gap:10px!important;
}
.acct-sheet-head>.tw-return-account{
  margin-left:auto!important;
}
.tw-return-account,
.support-return-account,
.tw-page-return-account{
  min-height:34px!important;
  padding:0 12px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  border:1px solid #d8e8e2!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f5faf8 100%)!important;
  color:#176b5b!important;
  text-decoration:none!important;
  font-size:10.5px!important;
  line-height:1!important;
  font-weight:800!important;
  white-space:nowrap!important;
  box-shadow:0 4px 11px rgba(22,70,58,.05)!important;
  transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease!important;
}
.tw-return-account .tw-ui-img,
.support-return-account .tw-ui-img,
.tw-page-return-account .tw-ui-img{
  width:12px!important;
  height:12px!important;
}
.tw-return-account:hover,
.support-return-account:hover,
.tw-page-return-account:hover{
  background:#edf8f4!important;
  border-color:#a7d8ca!important;
  color:#087a66!important;
  transform:translateY(-1px)!important;
  box-shadow:0 6px 14px rgba(8,122,102,.08)!important;
}

@media(max-width:650px){
  .acct-sheet-head{
    min-height:54px!important;
    padding:0 14px!important;
  }
  .acct-sheet-head>.tw-return-account{
    margin-left:auto!important;
  }
  .tw-return-account{
    min-height:32px!important;
    padding:0 10px!important;
    border-radius:10px!important;
    font-size:9.5px!important;
  }
  .tw-return-account .tw-ui-img{
    width:11px!important;
    height:11px!important;
  }
}


/* ===== v98 support return-to-account ===== */
.support-return-account{
  margin-left:auto!important;
}
@media(max-width:650px){
  #support .support-topline{
    grid-template-columns:38px minmax(0,1fr) auto!important;
    gap:8px!important;
  }
  #support .support-return-account{
    min-height:31px!important;
    padding:0 9px!important;
    border-radius:10px!important;
    font-size:9px!important;
    box-shadow:none!important;
  }
  #support .support-return-account .tw-ui-img{
    width:10px!important;
    height:10px!important;
  }
}


/* ===== v99 desktop support launcher redesign ===== */
@media (min-width:1100px){
  .support-launcher{
    right:24px!important;
    bottom:24px!important;
    z-index:170!important;
    width:auto!important;
    min-width:182px!important;
    height:72px!important;
    padding:12px 18px 12px 14px!important;
    border:1px solid rgba(255,255,255,.34)!important;
    border-radius:24px!important;
    background:
      radial-gradient(circle at 18% 20%, rgba(255,255,255,.2), transparent 32%),
      linear-gradient(135deg,#05846d 0%,#0aa784 56%,#0ec29d 100%)!important;
    color:#fff!important;
    text-decoration:none!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    box-shadow:0 18px 38px rgba(5,91,71,.34), 0 4px 10px rgba(3,63,50,.12)!important;
    overflow:visible!important;
    transition:transform .18s ease, box-shadow .18s ease, filter .18s ease!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important;
  }
  .support-launcher:hover{
    transform:translateY(-2px) scale(1.01)!important;
    box-shadow:0 24px 46px rgba(5,91,71,.4), 0 8px 14px rgba(3,63,50,.16)!important;
    filter:saturate(1.06)!important;
  }
  .support-launcher:active{
    transform:translateY(0) scale(.99)!important;
  }
  .support-launcher::before{
    content:"";
    position:absolute;
    inset:2px;
    border-radius:22px;
    border:1px solid rgba(255,255,255,.14);
    pointer-events:none;
  }
  .support-launcher::after{
    content:"1"!important;
    position:absolute!important;
    right:10px!important;
    top:8px!important;
    width:22px!important;
    height:22px!important;
    border-radius:999px!important;
    background:linear-gradient(135deg,#ff7a77,#e73f59)!important;
    color:#fff!important;
    font-size:11px!important;
    font-weight:800!important;
    display:grid!important;
    place-items:center!important;
    border:2px solid #fff!important;
    box-shadow:0 6px 14px rgba(231,63,89,.35)!important;
  }
  .support-launcher-icon{
    width:44px!important;
    height:44px!important;
    border-radius:16px!important;
    background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(239,255,251,.92))!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 44px!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.8), 0 8px 18px rgba(5,91,71,.18)!important;
  }
  .support-launcher-icon .tw-ui-img{
    width:22px!important;
    height:22px!important;
    filter:invert(36%) sepia(57%) saturate(977%) hue-rotate(126deg) brightness(87%) contrast(95%)!important;
  }
  .support-launcher-copy{
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:3px!important;
    line-height:1!important;
  }
  .support-launcher-copy b{
    display:block!important;
    color:#fff!important;
    font-size:16px!important;
    line-height:1.05!important;
    font-weight:900!important;
    letter-spacing:.02em!important;
    text-shadow:0 1px 2px rgba(0,0,0,.12)!important;
  }
  .support-launcher-copy small{
    display:block!important;
    color:rgba(235,255,250,.94)!important;
    font-size:11.5px!important;
    line-height:1.1!important;
    font-weight:700!important;
    white-space:nowrap!important;
  }
}


/* ===== v100 mobile return-to-account consistency ===== */
/* Desktop: do NOT add these new return controls. */
@media(min-width:1100px){
  .acct-sheet-head>a.tw-return-account,
  .support-return-account,
  .tw-page-return-account{
    display:none!important;
  }
}

/* Mobile: use the same visual language as Bet/Transaction History. */
@media(max-width:1099px){
  .acct-sheet-head>a.tw-return-account{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    min-width:104px!important;
    height:34px!important;
    min-height:34px!important;
    padding:0 11px!important;
    margin-left:auto!important;
    border:1px solid #d8e8e2!important;
    border-radius:11px!important;
    background:linear-gradient(180deg,#ffffff 0%,#f7fbf9 100%)!important;
    color:#176b5b!important;
    text-decoration:none!important;
    font-size:10.5px!important;
    line-height:1!important;
    font-weight:760!important;
    letter-spacing:.01em!important;
    white-space:nowrap!important;
    box-shadow:0 4px 12px rgba(22,70,58,.05)!important;
  }
  .acct-sheet-head>a.tw-return-account .tw-ui-img{
    width:12px!important;
    height:12px!important;
    opacity:.9!important;
  }
  .acct-sheet-head>a.tw-return-account span{
    display:inline!important;
    font-size:10.5px!important;
    line-height:1!important;
    font-weight:760!important;
  }

  #support .support-return-account,
  .tw-page-return-account{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    min-width:104px!important;
    height:34px!important;
    padding:0 11px!important;
    border:1px solid #d8e8e2!important;
    border-radius:11px!important;
    background:linear-gradient(180deg,#ffffff 0%,#f7fbf9 100%)!important;
    color:#176b5b!important;
    text-decoration:none!important;
    font-size:10.5px!important;
    line-height:1!important;
    font-weight:760!important;
    white-space:nowrap!important;
    box-shadow:0 4px 12px rgba(22,70,58,.05)!important;
  }
}


/* ===== v101 desktop support controls ===== */
@media(min-width:1100px){
  #support .support-return-account{display:none!important}
  #support .support-close{display:inline-flex!important}
}


/* ===== v102 reliable desktop support toggle ===== */
@media(min-width:1100px){
  #support.support-shell{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  #support.support-shell.tw-support-desktop-open{
    display:flex!important;
    flex-direction:column!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
  #support.support-shell.tw-support-force-closed{
    display:none!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
  .support-launcher[aria-expanded="true"]{
    box-shadow:0 24px 48px rgba(5,91,71,.42),0 0 0 3px rgba(25,197,157,.18)!important;
  }
}


/* ===== v104 all mobile Account return buttons align right ===== */
@media(max-width:1099px){
  .acct-sheet-head{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;
  }

  .acct-sheet-head h3{
    flex:1 1 auto!important;
    min-width:0!important;
  }

  .acct-sheet-head>a.tw-return-account{
    margin-left:auto!important;
    flex:0 0 auto!important;
    order:2!important;
  }
}


/* =========================================================
   v109 KYC Certification Center
   ========================================================= */
.tw-kyc-shortcut{position:relative!important}
.tw-kyc-shortcut-status{
  position:absolute;
  top:4px;
  right:7px;
  padding:2px 5px;
  border-radius:999px;
  background:#fff1df;
  color:#b86216;
  font-size:8px;
  font-weight:800;
  line-height:1.2;
}
.tw-kyc-shortcut-status.is-verified{
  background:#e5f8f1;
  color:#078366;
}

.acct-kyc-sheet{width:min(920px,calc(100vw - 40px))!important}
.acct-kyc-head-note{
  display:block;
  margin-top:3px;
  color:#7a8b85;
  font-size:10px;
  font-weight:600;
}
.acct-kyc-body{padding:18px 22px 24px!important}

.kyc-intro-card{
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  padding:15px;
  margin-bottom:16px;
  border:1px solid #dcebe5;
  border-radius:18px;
  background:linear-gradient(135deg,#f6fbf9 0%,#edf9f5 100%);
}
.kyc-intro-icon{
  width:46px;height:46px;border-radius:15px;
  display:grid;place-items:center;
  background:#dff7ef;
}
.kyc-intro-icon .tw-ui-img{width:23px;height:23px}
.kyc-intro-copy b{display:block;font-size:14px;color:#153b33}
.kyc-intro-copy p{margin:4px 0 0;color:#71817b;font-size:11px;line-height:1.55}
.kyc-status-chip{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:30px;padding:0 11px;border-radius:999px;
  background:#fff1df;color:#b86216;font-size:10px;font-weight:900;
}
.kyc-status-chip.is-verified{background:#dff7ef;color:#078366}

.kyc-progress{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:0;
  margin:0 8px 20px;
}
.kyc-progress-line{
  position:absolute;left:16.66%;right:16.66%;top:17px;height:3px;
  background:#e1ece8;border-radius:999px;overflow:hidden;
}
.kyc-progress-line i{
  display:block;width:0;height:100%;background:#0ca783;border-radius:999px;
  transition:width .25s ease;
}
.kyc-step-tab{
  position:relative;z-index:1;
  border:0;background:transparent;
  display:grid;justify-items:center;gap:6px;
  color:#87958f;font-size:10px;font-weight:800;
}
.kyc-step-tab span{
  width:36px;height:36px;border-radius:50%;display:grid;place-items:center;
  border:2px solid #dfeae6;background:#fff;color:#87958f;font-size:12px;font-weight:900;
}
.kyc-step-tab.is-active{color:#087c65}
.kyc-step-tab.is-active span,
.kyc-step-tab.is-done span{
  border-color:#0ca783;background:#0ca783;color:#fff;
  box-shadow:0 7px 16px rgba(12,167,131,.18);
}

.kyc-step{display:none}
.kyc-step.is-active{display:block}
.kyc-step-head{
  margin-bottom:16px;padding-bottom:13px;border-bottom:1px solid #e7efec;
}
.kyc-step-head>span{
  display:inline-block;color:#0a9879;font-size:9px;font-weight:900;letter-spacing:.12em;
}
.kyc-step-head h4{margin:5px 0 4px;font-size:20px;color:#173a32}
.kyc-step-head p{margin:0;color:#778781;font-size:11px;line-height:1.6}

.kyc-fields{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;
}
.kyc-fields-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.kyc-field{display:grid;gap:7px}
.kyc-field-wide{grid-column:1/-1}
.kyc-field>span{font-size:11px;font-weight:800;color:#304b44}
.kyc-field em{font-style:normal;color:#e25050}
.kyc-field input,.kyc-field textarea{
  width:100%;box-sizing:border-box;
  border:1px solid #d8e6e1;border-radius:12px;
  background:#fbfdfc;color:#173a32;
  padding:12px 13px;font:inherit;font-size:12px;outline:none;
}
.kyc-field textarea{resize:vertical;min-height:86px}
.kyc-field input:focus,.kyc-field textarea:focus{
  border-color:#13a984;box-shadow:0 0 0 3px rgba(19,169,132,.08);background:#fff;
}
.kyc-field small{color:#8b9994;font-size:9px;line-height:1.5}

.kyc-upload-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;
}
.kyc-upload-card{
  position:relative;min-height:158px;
  border:1px dashed #9fcfbe;border-radius:16px;
  background:#f7fbf9;display:flex;flex-direction:column;
  align-items:center;justify-content:center;text-align:center;gap:6px;
  padding:15px;overflow:hidden;cursor:pointer;
}
.kyc-upload-selfie{grid-column:1/-1;min-height:172px}
.kyc-upload-card input{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:3}
.kyc-upload-icon{
  width:44px;height:44px;border-radius:14px;background:#e1f7ef;
  display:grid;place-items:center;color:#078367;
}
.kyc-upload-icon .tw-ui-img{width:22px;height:22px}
.kyc-upload-card b{font-size:13px;color:#1b4037}
.kyc-upload-card small{font-size:9px;color:#87958f}
.kyc-upload-card.has-file{border-style:solid;border-color:#16a983;background:#eefaf5}
.kyc-preview{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2;
}
.kyc-upload-card.has-file::after{
  content:"已选择";position:absolute;right:8px;top:8px;z-index:4;
  padding:4px 7px;border-radius:999px;background:#0a9779;color:#fff;font-size:8px;font-weight:900;
}

.kyc-consent{
  margin-top:14px;padding:12px 13px;border-radius:13px;background:#f5f8f7;
  display:flex;align-items:flex-start;gap:9px;color:#5d6e68;font-size:10px;line-height:1.55;
}
.kyc-consent input{margin-top:2px}
.kyc-security-note{
  margin-top:10px;padding:11px 12px;border-radius:13px;
  display:flex;gap:9px;align-items:flex-start;
  background:#fff8e8;border:1px solid #f0dba6;color:#7d6737;font-size:9px;line-height:1.55;
}
.kyc-security-note .tw-ui-img{width:16px;height:16px;flex:0 0 16px}
.kyc-error{
  margin-top:10px;padding:10px 12px;border-radius:11px;
  border:1px solid #f2c6c6;background:#fff0f0;color:#a83b3b;font-size:10px;font-weight:700;
}
.kyc-step-actions{
  margin-top:18px;display:flex;align-items:center;justify-content:space-between;gap:10px;
}
.kyc-primary,.kyc-secondary{
  min-height:42px;padding:0 20px;border-radius:12px;
  display:inline-flex;align-items:center;justify-content:center;
  text-decoration:none;font-size:11px;font-weight:900;cursor:pointer;
}
.kyc-primary{border:0;background:#07977a;color:#fff;box-shadow:0 8px 18px rgba(7,151,122,.18)}
.kyc-secondary{border:1px solid #d5e5df;background:#fff;color:#35655a}
.kyc-submit{min-width:180px}

.kyc-verified-card{
  padding:34px 22px;text-align:center;border-radius:20px;
  border:1px solid #d8ebe4;background:linear-gradient(180deg,#f5fcf9,#eef9f5);
}
.kyc-verified-mark{
  margin:0 auto 12px;width:64px;height:64px;border-radius:22px;display:grid;place-items:center;
  background:#dff8ef;box-shadow:0 10px 24px rgba(9,140,108,.12);
}
.kyc-verified-mark .tw-ui-img{width:32px;height:32px}
.kyc-verified-card>span{font-size:9px;font-weight:900;letter-spacing:.14em;color:#0a9779}
.kyc-verified-card h4{margin:7px 0 7px;font-size:22px;color:#143c33}
.kyc-verified-card>p{max-width:560px;margin:0 auto;color:#73847e;font-size:11px;line-height:1.65}
.kyc-verified-points{margin:18px auto;max-width:560px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.kyc-verified-points div{padding:11px 8px;border-radius:12px;background:#fff;border:1px solid #dfece7;font-size:10px;color:#44665d}
.kyc-verified-points b{display:block;color:#0b9879;font-size:16px;margin-bottom:4px}
.kyc-withdraw-now{width:min(320px,100%);margin:0 auto}

@media(max-width:650px){
  .tw-kyc-shortcut span{display:block}
  .tw-kyc-shortcut-status{top:1px;right:2px;font-size:6.5px;padding:2px 4px}
  .acct-kyc-sheet{width:100%!important}
  .acct-kyc-body{padding:12px 12px 92px!important}
  .acct-kyc-head-note{font-size:8px}
  .kyc-intro-card{grid-template-columns:40px minmax(0,1fr);padding:12px;gap:10px}
  .kyc-intro-icon{width:40px;height:40px;border-radius:13px}
  .kyc-status-chip{grid-column:1/-1;justify-self:start;min-height:26px;font-size:8px}
  .kyc-intro-copy b{font-size:12px}.kyc-intro-copy p{font-size:9px}
  .kyc-progress{margin:0 0 16px}
  .kyc-step-tab b{font-size:8px}
  .kyc-step-tab span{width:31px;height:31px;font-size:10px}
  .kyc-progress-line{top:14px}
  .kyc-step-head h4{font-size:17px}
  .kyc-step-head p{font-size:9px}
  .kyc-fields,.kyc-fields-2{grid-template-columns:1fr}
  .kyc-field-wide{grid-column:auto}
  .kyc-upload-grid{grid-template-columns:1fr 1fr;gap:8px}
  .kyc-upload-card{min-height:128px;padding:10px}
  .kyc-upload-selfie{grid-column:1/-1;min-height:145px}
  .kyc-upload-icon{width:38px;height:38px}
  .kyc-step-actions{position:sticky;bottom:64px;background:rgba(255,255,255,.96);padding:10px 0 2px;z-index:5}
  .kyc-primary,.kyc-secondary{min-height:40px;padding:0 15px;font-size:10px}
  .kyc-submit{min-width:0;flex:1}
  .kyc-verified-card{padding:26px 16px}
  .kyc-verified-points{grid-template-columns:1fr;gap:7px}
}


/* ===== v110 mobile-kyc-step3-safearea-fix ===== */
@media(max-width:650px){
  /* Keep the last KYC step fully visible above the fixed bottom navigation. */
  .acct-kyc-body{padding-bottom:132px!important}
  .kyc-step[data-kyc-step="3"] .kyc-step-actions{
    position:static!important;
    padding:14px 0 calc(90px + env(safe-area-inset-bottom))!important;
    margin-top:14px!important;
    background:transparent!important;
  }
  .kyc-step[data-kyc-step="3"] .kyc-primary,
  .kyc-step[data-kyc-step="3"] .kyc-secondary{
    min-height:42px!important;
  }
}

/* ===== v111 three-language selector ===== */
.acct-language-options{grid-template-columns:repeat(3,minmax(0,1fr))!important}
@media(max-width:650px){
  .acct-language-options{grid-template-columns:1fr!important}
  .acct-language-option{min-height:72px!important}
}
