/* HB Battle — Premium layer v1 (loaded LAST). Additive only.
   Perf rules: transform/opacity animations, one-shot, no blur, no looping. */
:root{--hp-v:#8a3dff;--hp-b:#3d6dff;--hp-c:#17c9ff;--hp-g:#ffc857;--hp-ok:#37e8b0;
  --hp-ease:cubic-bezier(.2,.8,.2,1)}

/* ---------- entrance motion (one-shot) ---------- */
@keyframes hpRise{from{opacity:0;transform:translate3d(0,16px,0)}to{opacity:1;transform:none}}
@keyframes hpPop{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
@keyframes hpSlideUp{from{opacity:0;transform:translate3d(0,24px,0)}to{opacity:1;transform:none}}
@keyframes hpDrop{from{opacity:0;transform:translate3d(0,-18px,0)}to{opacity:1;transform:none}}
@keyframes hpBar{from{transform:scaleX(0)}to{transform:scaleX(1)}}

html body .screen.active>*{animation:hpRise .46s var(--hp-ease) both}
html body .screen.active>*:nth-child(2){animation-delay:.04s}
html body .screen.active>*:nth-child(3){animation-delay:.08s}
html body .screen.active>*:nth-child(4){animation-delay:.12s}
html body .screen.active>*:nth-child(5){animation-delay:.16s}
html body .screen.active>*:nth-child(n+6){animation-delay:.2s}
html body #dashboardScreen.active .qa-card{animation:hpPop .45s var(--hp-ease) both}
html body #dashboardScreen.active .qa-card:nth-child(1){animation-delay:.12s}
html body #dashboardScreen.active .qa-card:nth-child(2){animation-delay:.17s}
html body #dashboardScreen.active .qa-card:nth-child(3){animation-delay:.22s}
html body #dashboardScreen.active .qa-card:nth-child(4){animation-delay:.27s}
html body #dashboardScreen.active .qa-card:nth-child(5){animation-delay:.32s}
html body #dashboardScreen.active .qa-card:nth-child(n+6){animation-delay:.36s}

/* ---------- press feedback ---------- */
html body .qa-card,html body .nav-item,html body .nav-fab,html body .home-wallet-card,html body .home-promo,
html body button,html body .btn{transition:transform .18s var(--hp-ease),box-shadow .25s ease}
html body .qa-card:active,html body .nav-item:active,html body .home-wallet-card:active,html body .home-promo:active,
html body button:active,html body .btn:active{transform:scale(.965)}
html body .nav-fab:active{transform:scale(.9)}

/* ---------- hairline surfaces ---------- */
html body .home-wallet-card,html body .home-card-float,html body .home-promo{
  border:1px solid transparent!important;
  background:
    radial-gradient(260px 160px at 100% 0,rgba(138,61,255,.38),transparent 70%) padding-box,
    linear-gradient(150deg,#1b1f63,#0b0d2b 75%) padding-box,
    linear-gradient(150deg,rgba(205,190,255,.75),rgba(255,255,255,.08) 42%,rgba(23,201,255,.5)) border-box!important;
  box-shadow:0 26px 44px -26px rgba(0,0,0,.95),0 0 0 1px rgba(0,0,0,.25)!important}
html body .home-card-float{background:
    linear-gradient(160deg,#151a52,#0a0c28 80%) padding-box,
    linear-gradient(150deg,rgba(205,190,255,.5),rgba(255,255,255,.06) 45%,rgba(23,201,255,.35)) border-box!important}
html body .home-promo{background:
    radial-gradient(240px 140px at 0 100%,rgba(255,79,200,.26),transparent 70%) padding-box,
    radial-gradient(260px 160px at 100% 0,rgba(61,109,255,.4),transparent 70%) padding-box,
    linear-gradient(150deg,#171c58,#0a0c28 80%) padding-box,
    linear-gradient(150deg,rgba(205,190,255,.7),rgba(255,255,255,.08) 42%,rgba(255,79,200,.45)) border-box!important}
html body .home-wallet-amt{background:linear-gradient(180deg,#fff,#c9d4ff);-webkit-background-clip:text;background-clip:text;color:transparent!important;
  font-variant-numeric:tabular-nums}
html body .home-stat-val{font-variant-numeric:tabular-nums}
html body .qa-card{border:1px solid transparent!important;border-radius:20px!important;
  background:
    linear-gradient(135deg,rgba(255,255,255,.06),transparent 45%) padding-box,
    linear-gradient(160deg,#141844,#0a0c28 80%) padding-box,
    linear-gradient(150deg,rgba(190,172,255,.5),rgba(255,255,255,.06) 45%,rgba(23,201,255,.28)) border-box!important;
  box-shadow:0 18px 30px -22px rgba(0,0,0,.95)!important}
html body .qa-card-icon{border-radius:14px!important;box-shadow:0 10px 20px -8px var(--qa-glow,rgba(138,61,255,.6))!important}
html body .sec-title{position:relative;padding-left:14px;letter-spacing:.02em}
html body .sec-title::before{content:"";position:absolute;left:0;top:50%;width:4px;height:18px;margin-top:-9px;border-radius:4px;
  background:linear-gradient(180deg,var(--hp-v),var(--hp-c))}
html body .sec-title a{color:var(--hp-c)!important}
html body .home-wallet-add,html body .home-promo-btn{background:linear-gradient(135deg,#8a3dff,#3d6dff)!important;color:#fff!important;
  border:0!important;box-shadow:0 10px 22px -8px rgba(110,70,255,.9)!important}

/* ---------- bottom nav ---------- */
html body .bottom-nav{border:1px solid transparent!important;border-radius:26px!important;
  background:
    linear-gradient(180deg,#12164a,#080a24) padding-box,
    linear-gradient(150deg,rgba(205,190,255,.6),rgba(255,255,255,.06) 45%,rgba(23,201,255,.4)) border-box!important;
  box-shadow:0 22px 40px -14px rgba(0,0,0,.95)!important}
html body .bottom-nav .nav-item{position:relative}
html body .bottom-nav .nav-item::after{content:"";position:absolute;left:50%;top:2px;width:20px;height:3px;margin-left:-10px;border-radius:3px;
  background:linear-gradient(90deg,var(--hp-v),var(--hp-c));transform:scaleX(0);transition:transform .3s var(--hp-ease)}
html body .bottom-nav .nav-item.active::after{transform:scaleX(1)}
html body .nav-fab{background:linear-gradient(135deg,#ffd57a,#ff9f43)!important;box-shadow:0 14px 26px -8px rgba(255,159,67,.8),0 0 0 4px rgba(10,12,40,.9)!important}

/* ---------- light theme variants ---------- */
html[data-theme="light"] body .home-wallet-card,html[data-theme="light"] body .home-promo,html[data-theme="light"] body .home-card-float{
  background:
    radial-gradient(260px 160px at 100% 0,rgba(138,61,255,.14),transparent 70%) padding-box,
    linear-gradient(150deg,#ffffff,#f3f0ff 80%) padding-box,
    linear-gradient(150deg,rgba(138,61,255,.55),rgba(0,0,0,.05) 45%,rgba(23,150,255,.45)) border-box!important;
  box-shadow:0 22px 36px -24px rgba(60,40,140,.45)!important}
html[data-theme="light"] body .home-wallet-amt{background:linear-gradient(180deg,#1b1e4a,#4b2fb8);-webkit-background-clip:text;background-clip:text}
html[data-theme="light"] body .qa-card{background:
    linear-gradient(160deg,#fff,#f6f3ff) padding-box,
    linear-gradient(150deg,rgba(138,61,255,.45),rgba(0,0,0,.05) 45%,rgba(23,150,255,.35)) border-box!important;
  box-shadow:0 16px 26px -20px rgba(60,40,140,.5)!important}
html[data-theme="light"] body .bottom-nav{background:
    linear-gradient(180deg,#fff,#f1eeff) padding-box,
    linear-gradient(150deg,rgba(138,61,255,.5),rgba(0,0,0,.05) 45%,rgba(23,150,255,.4)) border-box!important;
  box-shadow:0 20px 34px -14px rgba(60,40,140,.45)!important}
html[data-theme="light"] body .sec-title a{color:#5a2bd6!important}

/* ---------- NEW: daily streak card ---------- */
.hp-streak{margin:14px 16px 0;padding:14px 16px;border-radius:20px;border:1px solid transparent;
  background:
    radial-gradient(220px 120px at 0 0,rgba(255,200,87,.2),transparent 70%) padding-box,
    linear-gradient(160deg,#17194f,#0a0c28 80%) padding-box,
    linear-gradient(150deg,rgba(255,214,130,.65),rgba(255,255,255,.06) 45%,rgba(138,61,255,.5)) border-box;
  color:#fff}
.hp-streak-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.hp-streak-title{font-weight:800;font-size:15px;letter-spacing:.01em}
.hp-streak-sub{font-size:12px;color:#aab5e0;margin-top:2px}
.hp-streak-count{display:flex;align-items:baseline;gap:4px;padding:6px 12px;border-radius:999px;background:rgba(255,200,87,.14);border:1px solid rgba(255,200,87,.45);color:#ffd77a;font-weight:800}
.hp-streak-count b{font-size:20px;font-variant-numeric:tabular-nums}
.hp-streak-count span{font-size:11px;letter-spacing:.08em;text-transform:uppercase}
.hp-week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-top:12px}
.hp-day{display:grid;justify-items:center;gap:5px;font-size:10px;font-weight:700;color:#8e9acb;letter-spacing:.06em}
.hp-day i{width:100%;max-width:34px;aspect-ratio:1;border-radius:11px;display:grid;place-items:center;font-style:normal;font-size:13px;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);color:transparent}
.hp-day.on i{background:linear-gradient(135deg,#8a3dff,#3d6dff);border-color:transparent;color:#fff;box-shadow:0 8px 16px -6px rgba(110,70,255,.9);animation:hpPop .4s var(--hp-ease) both}
.hp-day.today i{border-color:#ffd77a}
.hp-day.today{color:#ffd77a}
html[data-theme="light"] .hp-streak{color:#1b1e4a;background:
    linear-gradient(160deg,#fff,#fff7e6 80%) padding-box,
    linear-gradient(150deg,rgba(255,170,40,.7),rgba(0,0,0,.05) 45%,rgba(138,61,255,.4)) border-box}
html[data-theme="light"] .hp-streak-sub,html[data-theme="light"] .hp-day{color:#5d6489}
html[data-theme="light"] .hp-streak-count{color:#8a5200;background:rgba(255,170,40,.16)}
html[data-theme="light"] .hp-day i{background:#f1eefc;border-color:#ddd6f5}

/* ---------- NEW: install banner + offline pill ---------- */
.hp-install{position:fixed;left:12px;right:12px;bottom:calc(96px + env(safe-area-inset-bottom,0px));z-index:600;display:flex;align-items:center;gap:12px;padding:12px;border-radius:20px;
  color:#fff;border:1px solid transparent;animation:hpSlideUp .5s var(--hp-ease) both;
  background:linear-gradient(160deg,#1a1f66,#0a0c2c) padding-box,linear-gradient(150deg,rgba(205,190,255,.8),rgba(255,255,255,.1) 45%,rgba(23,201,255,.6)) border-box;
  box-shadow:0 26px 50px -14px rgba(0,0,0,.95)}
.hp-install img{width:44px;height:44px;border-radius:12px;flex:none}
.hp-install div{min-width:0;flex:1;font-size:12px;color:#aab5e0;line-height:1.3}
.hp-install b{display:block;font-size:14px;color:#fff}
.hp-install button{border:0;border-radius:999px;padding:10px 16px;font-weight:800;font-size:13px;color:#fff;background:linear-gradient(135deg,#8a3dff,#3d6dff);cursor:pointer}
.hp-install .hp-x{background:transparent;color:#aab5e0;padding:8px 6px;font-size:18px;line-height:1}
.hp-net{position:fixed;left:50%;top:calc(10px + env(safe-area-inset-top,0px));z-index:9999;transform:translateX(-50%);padding:9px 16px;border-radius:999px;font-size:12.5px;font-weight:700;color:#fff;white-space:nowrap;
  background:linear-gradient(135deg,#ff4f6d,#d92d4f);box-shadow:0 14px 28px -10px rgba(0,0,0,.9);animation:hpDrop .4s var(--hp-ease) both}
.hp-net.ok{background:linear-gradient(135deg,#12b886,#37e8b0);color:#032a1f}
.hp-net[hidden]{display:none}

@media(prefers-reduced-motion:reduce){
  html body .screen.active>*,html body #dashboardScreen.active .qa-card,.hp-day.on i,.hp-install,.hp-net{animation:none!important}
}

/* ---------- calm: loop once, never forever: decorative animations run a single time (mobile smoothness) ---------- */
#dashboardScreen .home-promo::after,
#dashboardScreen .wallet-icon-badge,
#dashboardScreen .wallet-icon-badge::before,
#profileScreen .avatar-ring::after,
#splashScreen .splash-glow,
#tournamentScreen .empty i,
#walletScreen .wallet-ambient,
#walletScreen .wallet-visual,
#walletScreen [onclick="showScreen('bonusWalletScreen')"]::before,
.ai-assistant-premium:after,
.auth-bg,
.auth-bg2,
.auth-float-icon,
.badge-live,
.btn-glow::after,
.btn-red,
.btn.btn-glow::after,
.btn:not(.alt),
.header::after,
.home-hero::after,
.home-promo,
.home-promo::before,
.home-wallet-add::after,
.home-wallet-card,
.home-wallet-card::before,
.leader-podium::after,
.nav-fab::before,
.profile-hero::after,
.qa-badge,
.splash-icon,
.tour-card-banner::after,
.tour-join-btn,
.v14-shimmer,
.wallet-ambient.ambient-one,
.wallet-ambient.ambient-two,
.wallet-flag-cloth,
.wallet-flag-shade,
.wallet-flag-shine,
.wallet-float-img,
.wallet-hero::after,
.wallet-icon-badge,
:root:not([data-theme]) #walletScreen .wallet-visual::before,
:root:not([data-theme]) #walletScreen::before,
[data-theme="light"] .home-wallet-card::after,
[data-theme="light"] .home-wallet-card::before,
[data-theme="light"] .wallet-visual,
html body #leaderboardScreen#leaderboardScreen .podium-item.first .podium-avatar,
html[data-theme="dark"] #walletScreen .wallet-visual::before,
html[data-theme="green"] #walletScreen .wallet-visual::before,
html[data-theme="light"] #walletScreen .wallet-visual::before,
html[data-theme="light"] #walletScreen::before,
html[data-theme="light"] .home-wallet-card > div:last-child > div:first-child::before,
html[data-theme="light"] .home-wallet-card img,
html[data-theme="light"] .home-wallet-card::after,
html[data-theme="light"] .leader-podium:before,
html[data-theme="light"] .podium-item:first-child .podium-avatar,
html[data-theme="light"] .profile-hero-premium .avatar-ring,
html[data-theme="light"] .wallet-ambient.ambient-one,
html[data-theme="light"] .wallet-ambient.ambient-two,
html[data-theme="light"] .wallet-float-img,
html[data-theme="light"] .wallet-hero::after,
html[data-theme="light"] .wallet-hero::before,
html[data-theme="light"] .wallet-hero:before,
html[data-theme="light"] .wallet-visual,
html[data-theme="light"] .wallet-visual::after,
html[data-theme="light"] .wallet-visual::before{animation-iteration-count:1!important}
html[data-theme="light"] .hp-day.on i{background:linear-gradient(135deg,#8a3dff,#3d6dff);border-color:transparent;color:#fff}

/* ---------- fixes: side-back tab covering content; consistent centre button ---------- */
html body #hbSideBack.hb-side-back{width:22px!important;min-width:0!important;padding:0!important;opacity:.55;border-radius:0 12px 12px 0!important}
html body #hbSideBack.hb-side-back:active{opacity:1}
html body #sharedBottomNav .nav-fab{background:linear-gradient(135deg,#ffd57a,#ff9f43)!important;color:#3a1f00!important}

/* ---------- no bottom nav / side-back on login, signup, reset, lock, splash ---------- */
html body:has(#splashScreen.active) #sharedBottomNav.bottom-nav,
html body:has(#loginScreen.active) #sharedBottomNav.bottom-nav,
html body:has(#signupScreen.active) #sharedBottomNav.bottom-nav,
html body:has(#resetPasswordScreen.active) #sharedBottomNav.bottom-nav,
html body:has(#appLockScreen.active) #sharedBottomNav.bottom-nav,
html body.hb-public[id] #sharedBottomNav.bottom-nav[id],
html body.hb-public #hbSideBack,
html body.hb-public .hp-install{display:none!important}
html body.hb-public{padding-bottom:0!important}

/* ---------- v13 fixes from phone screenshots ---------- */
/* streak badge never wraps; card keeps distance from the banner below */
.hp-streak{margin-bottom:18px;position:relative;z-index:1}
.hp-streak-count{white-space:nowrap;flex:none}
.hp-streak-top>div:first-child{min-width:0}

/* Add Money → payment details box: readable in dark theme */
html[data-theme="dark"] .overlay .modal #bankDetailsBox,html[data-theme="green"] .overlay .modal #bankDetailsBox{
  background:linear-gradient(160deg,#1a2140,#0f1428)!important;border:1px solid rgba(255,200,87,.35)!important;border-left:3px solid #ffc857!important;color:#eef5f1!important}
html[data-theme="dark"] .overlay .modal #bankDetailsBox>div:first-child{color:#ffc857!important}
#bankDetailsText{display:flex;flex-direction:column;gap:6px;line-height:1.5!important}
#bankDetailsText br{display:none}
#bankDetailsText>b,#bankDetailsText b{font-weight:700;opacity:.85}
#depositAccCopyBtn{display:inline-flex!important;align-items:center;gap:5px;margin:4px 0 0!important;padding:6px 12px!important;border-radius:999px!important;font-size:12px!important;
  background:rgba(255,200,87,.16)!important;color:#ffc857!important;border:1px solid rgba(255,200,87,.5)!important;width:max-content}
html[data-theme="light"] #depositAccCopyBtn{color:#9a5b00!important;background:#fff3d6!important}
#bankDetailsBox>button{display:flex!important;align-items:center;justify-content:center;gap:6px;width:100%;margin-top:10px!important;padding:10px 12px!important;border-radius:12px!important;font-size:13px!important}

/* onboarding sits above the bottom nav */
.onboard-overlay{z-index:5000!important}
html body:has(.onboard-overlay.active) #sharedBottomNav.bottom-nav,
html body:has(.onboard-overlay.active) #hbSideBack,
html body:has(.onboard-overlay.active) .hp-install{display:none!important}

/* side back tab: slim, translucent, never covers text */
html body #hbSideBack.hb-side-back{width:20px!important;height:52px!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.18)!important;border-left:0!important;color:#fff!important;box-shadow:none!important;opacity:.7}
html[data-theme="light"] body #hbSideBack.hb-side-back{background:rgba(20,20,40,.1)!important;border-color:rgba(20,20,40,.15)!important}
html[data-theme] body #bankDetailsBox>div:first-child,html[data-theme] body #bankDetailsBox>div:first-child *{color:#ffc857!important;-webkit-text-fill-color:#ffc857!important}
html[data-theme="light"] body #bankDetailsBox>div:first-child,html[data-theme="light"] body #bankDetailsBox>div:first-child *{color:#9a5b00!important;-webkit-text-fill-color:#9a5b00!important}
html[data-theme] body #sharedBottomNav.bottom-nav #nav-fab.nav-fab{background:linear-gradient(135deg,#ffd57a,#ff9f43)!important;color:#3a1f00!important}

/* =====================================================================
   v14 — HIGH-CLASS PASS 2: auth, headers, tournament cards, lists, modals.
   Static gradients only; nothing loops; transform/opacity entrances.
   ===================================================================== */

/* ---------- auth screens ---------- */
html[data-theme="dark"] body #loginScreen,html[data-theme="dark"] body #signupScreen,html[data-theme="dark"] body #resetPasswordScreen{
  background:radial-gradient(520px 380px at 50% -6%,rgba(138,61,255,.34),transparent 70%),radial-gradient(380px 300px at 100% 100%,rgba(23,201,255,.16),transparent 70%),#070918!important}
html body .auth-card,html body #loginScreen>div,html body #signupScreen>div{border-radius:28px}
html body #loginScreen img[src*="logo"],html body #signupScreen img[src*="logo"],html body #loginScreen .auth-logo,html body #signupScreen .auth-logo{
  border-radius:26px;box-shadow:0 18px 40px -12px rgba(138,61,255,.75),0 0 0 1px rgba(255,255,255,.14)}
html[data-theme="dark"] body #loginScreen input,html[data-theme="dark"] body #signupScreen input,html[data-theme="dark"] body #resetPasswordScreen input{
  border:1px solid transparent!important;border-radius:16px!important;
  background:linear-gradient(160deg,#10143a,#0a0d28) padding-box,linear-gradient(150deg,rgba(190,172,255,.38),rgba(255,255,255,.06) 50%,rgba(23,201,255,.22)) border-box!important;
  transition:box-shadow .2s ease!important}
html[data-theme="dark"] body #loginScreen input:focus,html[data-theme="dark"] body #signupScreen input:focus,html[data-theme="dark"] body #resetPasswordScreen input:focus{
  outline:none!important;
  background:linear-gradient(160deg,#10143a,#0a0d28) padding-box,linear-gradient(135deg,#8a3dff,#17c9ff) border-box!important;
  box-shadow:0 0 0 4px rgba(138,61,255,.22)!important}
html body #loginScreen .btn,html body #signupScreen .btn,html body #resetPasswordScreen .btn{position:relative;overflow:hidden;border-radius:16px!important;font-weight:800;letter-spacing:.06em}
html body #loginScreen .btn::after,html body #signupScreen .btn::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.28),rgba(255,255,255,0) 52%)}

html[data-theme="light"] body #loginScreen input,html[data-theme="light"] body #signupScreen input,html[data-theme="light"] body #resetPasswordScreen input{
  border:1px solid transparent!important;border-radius:16px!important;
  background:linear-gradient(160deg,#fff,#f6f3ff) padding-box,linear-gradient(150deg,rgba(138,61,255,.4),rgba(0,0,0,.06) 50%,rgba(23,150,255,.3)) border-box!important}
html[data-theme="light"] body #loginScreen input:focus,html[data-theme="light"] body #signupScreen input:focus{
  outline:none!important;background:linear-gradient(160deg,#fff,#f6f3ff) padding-box,linear-gradient(135deg,#8a3dff,#17c9ff) border-box!important;box-shadow:0 0 0 4px rgba(138,61,255,.16)!important}
/* ---------- headers ---------- */
html body .header{border-bottom:0!important;position:relative;
  background:linear-gradient(180deg,rgba(26,31,92,.9),rgba(9,11,34,.96))!important}
html body .header::before{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(190,172,255,.75),rgba(23,201,255,.6),transparent)}
html body .header-title,html body .header h1,html body .header .title{
  background:linear-gradient(180deg,#fff,#c9d4ff);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent;letter-spacing:.06em}
html body .header .header-back,html body .header-back{
  border-radius:14px!important;border:1px solid rgba(255,255,255,.14)!important;
  background:linear-gradient(160deg,rgba(255,255,255,.12),rgba(255,255,255,.03))!important}
html[data-theme="light"] body .header{background:linear-gradient(180deg,#fff,#f3f0ff)!important}
html[data-theme="light"] body .header::before{background:linear-gradient(90deg,transparent,rgba(138,61,255,.5),rgba(23,150,255,.45),transparent)}
html[data-theme="light"] body .header-title,html[data-theme="light"] body .header h1{background:linear-gradient(180deg,#1b1e4a,#4b2fb8);-webkit-background-clip:text;background-clip:text}

/* ---------- tournament cards ---------- */
html body .tour-card{border:1px solid transparent!important;border-radius:22px!important;overflow:hidden;
  background:
    linear-gradient(135deg,rgba(255,255,255,.05),transparent 40%) padding-box,
    linear-gradient(165deg,#141945,#0a0c28 78%) padding-box,
    linear-gradient(150deg,rgba(190,172,255,.55),rgba(255,255,255,.06) 42%,rgba(23,201,255,.3)) border-box!important;
  box-shadow:0 24px 40px -26px rgba(0,0,0,.95)!important}
html body .tour-card[data-tour-status="live"]{
  background:
    linear-gradient(135deg,rgba(255,77,94,.1),transparent 45%) padding-box,
    linear-gradient(165deg,#1a1440,#0a0c28 78%) padding-box,
    linear-gradient(150deg,rgba(255,110,125,.75),rgba(255,255,255,.06) 42%,rgba(255,159,67,.4)) border-box!important}
html body .tour-card-banner{background:linear-gradient(100deg,rgba(138,61,255,.28),rgba(61,109,255,.08) 60%,transparent)!important;border:0!important}
html body .tour-game-icon{border-radius:14px!important;box-shadow:0 10px 20px -8px rgba(138,61,255,.8),0 0 0 1px rgba(255,255,255,.18)}
html body .tour-name{letter-spacing:.01em}
html body .tour-game-tag{border-radius:999px!important;border:1px solid rgba(255,255,255,.2)!important;background:rgba(255,255,255,.07)!important}
html body .tour-stats{border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);padding:10px 0}
html body .tour-stat-val{font-variant-numeric:tabular-nums}
html body .tour-stat-val.prize{background:linear-gradient(180deg,#ffe29a,#ffb43a);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}
html body .tour-slots-track{height:8px!important;border-radius:8px!important;background:rgba(255,255,255,.08)!important;overflow:hidden}
html body .tour-slots-fill{border-radius:8px!important;background:linear-gradient(90deg,#8a3dff,#17c9ff)!important;box-shadow:0 0 14px rgba(23,201,255,.5)}
html body .tour-join-btn{border-radius:14px!important;border:0!important;position:relative;overflow:hidden;font-weight:800!important;letter-spacing:.08em;
  background:linear-gradient(135deg,#8a3dff,#3d6dff)!important;color:#fff!important;box-shadow:0 14px 26px -10px rgba(110,70,255,.95)!important}
html body .tour-join-btn::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(255,255,255,.3),transparent 55%)}
html body .tour-join-btn:disabled{background:linear-gradient(135deg,#2a2f55,#1b1f40)!important;box-shadow:none!important;color:#8d97c4!important}
html[data-theme="light"] body .tour-card{background:
    linear-gradient(165deg,#ffffff,#f5f2ff 78%) padding-box,
    linear-gradient(150deg,rgba(138,61,255,.5),rgba(0,0,0,.05) 42%,rgba(23,150,255,.35)) border-box!important;
  box-shadow:0 20px 32px -22px rgba(60,40,140,.45)!important}
html[data-theme="light"] body .tour-card-banner{background:linear-gradient(100deg,rgba(138,61,255,.14),transparent 70%)!important}
html[data-theme="light"] body .tour-stats{background:rgba(138,61,255,.05);border-color:rgba(138,61,255,.12)}

/* ---------- filter chips + tabs ---------- */
html body .chip.active,html body .filter-chip.active,html body .tab.active{
  background:linear-gradient(135deg,#8a3dff,#3d6dff)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 10px 20px -8px rgba(110,70,255,.9)!important}

/* ---------- list rows (settings, account info) ---------- */
html body #settingsScreen .settings-row i,html body #settingsScreen .menu-item i,html body .info-icon,html body .acc-icon,html body .info-row-icon{
  border-radius:12px!important;background:linear-gradient(135deg,rgba(138,61,255,.35),rgba(61,109,255,.2))!important}

/* ---------- leaderboard podium ---------- */
html body .leader-podium{background:radial-gradient(260px 180px at 50% 0,rgba(255,200,87,.22),transparent 72%),linear-gradient(180deg,#141945,#0a0c28)!important;
  border:1px solid rgba(190,172,255,.28)!important;border-radius:24px!important}
html body .podium-avatar{box-shadow:0 14px 26px -10px rgba(0,0,0,.9)}

/* ---------- profile hero ---------- */
html body .profile-hero-premium{border:1px solid transparent!important;
  background:radial-gradient(300px 200px at 50% 0,rgba(138,61,255,.5),transparent 72%) padding-box,linear-gradient(165deg,#1a1f66,#090b26) padding-box,
    linear-gradient(150deg,rgba(205,190,255,.7),rgba(255,255,255,.06) 45%,rgba(23,201,255,.45)) border-box!important}
html body .profile-actions-grid .profile-action-btn{border:1px solid transparent!important;
  background:linear-gradient(160deg,#141844,#0a0c28) padding-box,linear-gradient(150deg,rgba(190,172,255,.45),rgba(255,255,255,.05) 50%,rgba(23,201,255,.25)) border-box!important}
html[data-theme="light"] body .profile-actions-grid .profile-action-btn{background:linear-gradient(160deg,#fff,#f6f3ff) padding-box,linear-gradient(150deg,rgba(138,61,255,.4),rgba(0,0,0,.05) 50%,rgba(23,150,255,.3)) border-box!important}

/* ---------- modals / bottom sheets ---------- */
html body .overlay .modal{border:1px solid transparent!important;
  background:linear-gradient(180deg,#141945,#0a0c28 40%) padding-box,linear-gradient(160deg,rgba(205,190,255,.6),rgba(255,255,255,.05) 40%,rgba(23,201,255,.3)) border-box!important}
html[data-theme="light"] body .overlay .modal{background:linear-gradient(180deg,#fff,#f7f4ff) padding-box,linear-gradient(160deg,rgba(138,61,255,.45),rgba(0,0,0,.05) 40%,rgba(23,150,255,.3)) border-box!important}

/* ---------- toast ---------- */
html body #toast.show{border-radius:16px!important;border:1px solid rgba(190,172,255,.4)!important;
  background:linear-gradient(160deg,#1c2268,#0b0e2c)!important;color:#fff!important;box-shadow:0 20px 40px -12px rgba(0,0,0,.95)!important}
html body #toast.show.success{border-color:rgba(55,232,176,.7)!important}
html body #toast.show.error{border-color:rgba(255,110,125,.8)!important}

html[data-theme="light"] body .tour-stat-val.prize{background:linear-gradient(180deg,#d97706,#b45309);-webkit-background-clip:text;background-clip:text}
html[data-theme="light"] body .tour-game-tag{color:#9a3412!important;border-color:rgba(154,52,18,.3)!important;background:rgba(255,120,60,.08)!important}
