/* ===== HI-FI UI — India Tournament (loaded last, overrides older styles) ===== */
:root{
  --hf-bg:#060914; --hf-bg2:#0b1024; --hf-card:rgba(20,26,56,.72); --hf-card2:rgba(255,255,255,.045);
  --hf-line:rgba(150,140,255,.20); --hf-text:#f4f5ff; --hf-mute:#98a0cf;
  --hf-a:#7c4dff; --hf-b:#ff3d9a; --hf-c:#27d3ff; --hf-gold:#ffc83d; --hf-green:#2ee6a6;
  --hf-grad:linear-gradient(135deg,#ff3d9a 0%,#9b4dff 55%,#5b5cff 100%);
  --hf-font:"Inter","SF Pro Display","Segoe UI",system-ui,-apple-system,Roboto,"Noto Sans Bengali",Arial,sans-serif;
}
html[data-theme="light"]{
  --hf-bg:#f3f4fd; --hf-bg2:#e9ebfb; --hf-card:rgba(255,255,255,.88); --hf-card2:rgba(91,92,255,.06);
  --hf-line:rgba(91,92,255,.18); --hf-text:#161a3a; --hf-mute:#6a719f;
}
html body{
  font-family:var(--hf-font)!important; font-style:normal!important; color:var(--hf-text)!important;
  background:
    radial-gradient(900px 500px at 85% -10%,rgba(124,77,255,.28),transparent 60%),
    radial-gradient(700px 420px at -10% 20%,rgba(255,61,154,.16),transparent 60%),
    radial-gradient(800px 500px at 50% 110%,rgba(39,211,255,.12),transparent 60%),
    var(--hf-bg)!important;
  background-attachment:fixed!important; letter-spacing:.1px;
}
html body *{font-style:normal!important;font-family:var(--hf-font)}
html body h1,html body h2,html body h3{font-family:var(--hf-font)!important;letter-spacing:-.4px;color:var(--hf-text)}
html body .muted,html body small{color:var(--hf-mute)!important}
.eyebrow{font-size:11px!important;letter-spacing:2.4px!important;font-weight:800!important;background:var(--hf-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent!important}

/* ---- Top bar ---- */
html body .app-topbar{background:rgba(8,11,28,.72)!important;backdrop-filter:blur(18px) saturate(1.4)!important;-webkit-backdrop-filter:blur(18px) saturate(1.4)!important;border-bottom:1px solid var(--hf-line)!important;box-shadow:none!important}
html[data-theme="light"] body .app-topbar{background:rgba(255,255,255,.8)!important}
html body .app-menu{background:var(--hf-card2)!important;border:1px solid var(--hf-line)!important;border-radius:13px!important;color:var(--hf-text)!important;display:grid;place-items:center}
html body .app-brand b{font-size:15px!important;font-weight:800!important;letter-spacing:-.2px;color:var(--hf-text)!important}
html body .app-brand small{display:block;font-size:9.5px!important;letter-spacing:2px;color:var(--hf-mute)!important;font-weight:700!important}
html body .app-wallet-pill{background:var(--hf-grad)!important;border:0!important;border-radius:999px!important;padding:8px 14px!important;box-shadow:0 8px 22px rgba(155,77,255,.42)!important;display:inline-flex;align-items:center;gap:6px;color:#fff!important}
html body .app-wallet-pill svg{width:17px;height:17px}

/* ---- Home: stats strip + quick actions ---- */
.hf-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:6px 0 14px}
.hf-chip{position:relative;display:grid;grid-template-columns:auto 1fr;grid-template-areas:"i b" "i s";column-gap:10px;align-items:center;padding:12px;border-radius:18px;background:var(--hf-card);border:1px solid var(--hf-line);color:var(--hf-text)!important;text-decoration:none;overflow:hidden}
.hf-chip:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(124,77,255,.16),transparent 60%);pointer-events:none}
.hf-chip i{grid-area:i;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--hf-grad);color:#fff;box-shadow:0 6px 16px rgba(155,77,255,.4)}
.hf-chip i svg{width:19px;height:19px}
.hf-chip b{grid-area:b;font-size:19px;font-weight:800;line-height:1.1}
.hf-chip span{grid-area:s;font-size:11px;color:var(--hf-mute);font-weight:600}
.hf-actions{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 20px}
.hf-actions a{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 4px;border-radius:18px;background:var(--hf-card);border:1px solid var(--hf-line);color:var(--hf-text)!important;text-decoration:none;font-size:11.5px;font-weight:700;transition:transform .2s}
.hf-actions a:active{transform:scale(.95)}
.hf-actions i{width:44px;height:44px;border-radius:15px;display:grid;place-items:center;background:var(--hf-card2);border:1px solid var(--hf-line);color:var(--hf-c)}
.hf-actions a:nth-child(2) i{color:var(--hf-b)}.hf-actions a:nth-child(3) i{color:var(--hf-gold)}.hf-actions a:nth-child(4) i{color:var(--hf-green)}
.hf-guest{display:flex;align-items:center;gap:8px;padding:14px;margin:6px 0 18px;border-radius:20px;background:var(--hf-card);border:1px solid var(--hf-line)}
.hf-guest div{flex:1}.hf-guest b{display:block;font-size:16px}.hf-guest small{font-size:12px}
.hf-guest a{padding:10px 16px;border-radius:999px;background:var(--hf-grad);color:#fff!important;font-weight:800;font-size:13px;text-decoration:none}
.hf-guest a.alt{background:var(--hf-card2);border:1px solid var(--hf-line);color:var(--hf-text)!important}

/* ---- Slider ---- */
html body .home-slider-track{border-radius:24px!important;border:1px solid var(--hf-line)!important;box-shadow:0 18px 40px rgba(0,0,0,.35),0 0 0 1px rgba(255,255,255,.03) inset!important;overflow:hidden}
.slider-dots button{background:rgba(255,255,255,.35)!important;border-radius:99px!important}
.slider-dots button.on{background:var(--hf-grad)!important;width:22px!important}

/* ---- Section heads ---- */
html body .section-head{align-items:flex-end;margin:6px 0 14px!important}
html body .section-head h1,html body .section-head h2{font-size:25px!important;font-weight:800!important;margin:2px 0 0!important}
html body .section-head a{font-size:12.5px;font-weight:700;color:var(--hf-c)!important;text-decoration:none;padding:7px 12px;border-radius:99px;background:var(--hf-card2);border:1px solid var(--hf-line)}

/* ---- Tournament cards ---- */
html body .t-grid{gap:16px!important}
html body .t-card{position:relative;border:1px solid var(--hf-line)!important;border-radius:26px!important;background:linear-gradient(160deg,var(--hf-card),rgba(10,14,34,.55))!important;box-shadow:0 16px 36px rgba(0,0,0,.30)!important;overflow:hidden;padding:0!important;transition:transform .25s,box-shadow .25s!important}
html body .t-card:hover{transform:translateY(-4px)!important;box-shadow:0 22px 44px rgba(124,77,255,.28)!important}
html body .t-thumb{border-radius:0!important;aspect-ratio:16/9;background-size:cover!important;background-position:center!important;position:relative;margin:0!important;width:100%!important;height:auto!important;min-height:0!important}
.t-thumb:after{content:"";position:absolute;inset:auto 0 0;height:55%;background:linear-gradient(transparent,rgba(6,9,20,.85));pointer-events:none}
html body .t-tag{position:absolute;z-index:2;top:12px;left:12px;font-size:10px!important;font-weight:800!important;letter-spacing:1.2px;padding:5px 11px;border-radius:99px;background:rgba(8,11,28,.7);backdrop-filter:blur(8px);color:#fff;border:1px solid rgba(255,255,255,.2)}
html body .t-tag.live{background:linear-gradient(135deg,#ff3d5a,#ff7a3d);border:0}
html body .t-tag.upcoming{color:var(--hf-c)}
html body .t-body{padding:16px 16px 18px!important;display:flex;flex-direction:column;gap:11px}
html body .t-card h3{font-size:17px!important;font-weight:800!important;line-height:1.3!important;margin:0!important;color:var(--hf-text)!important;white-space:normal!important}
html body .t-mine{align-self:flex-start;font-size:11.5px;font-weight:800;padding:5px 11px;border-radius:99px;color:var(--hf-green);background:rgba(46,230,166,.12);border:1px solid rgba(46,230,166,.35)}
html body .t-time{font-size:12.5px;color:var(--hf-mute);font-weight:600}
html body .t-prize{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-radius:16px;background:linear-gradient(120deg,rgba(255,200,61,.14),rgba(255,61,154,.08));border:1px solid rgba(255,200,61,.28)}
html body .t-prize span{font-size:12.5px;font-weight:700;color:var(--hf-mute)}
html body .t-prize b{font-size:21px!important;font-weight:900!important;color:var(--hf-gold)!important;text-shadow:0 0 18px rgba(255,200,61,.35)}
html body .t-meta{display:flex;flex-wrap:wrap;gap:8px}
html body .t-meta span{flex:1 1 auto;font-size:12px;padding:9px 12px;border-radius:13px;background:var(--hf-card2);border:1px solid var(--hf-line);color:var(--hf-mute);font-weight:600;white-space:nowrap}
html body .t-meta b{color:var(--hf-text)}
html body .t-bar{height:7px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}
html body .t-bar span{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--hf-c),var(--hf-a),var(--hf-b));min-width:5px;box-shadow:0 0 12px rgba(124,77,255,.6)}
html body .t-btn{display:flex;align-items:center;justify-content:center;height:50px;border-radius:16px!important;background:var(--hf-grad)!important;color:#fff!important;font-size:15px!important;font-weight:800!important;text-decoration:none;box-shadow:0 10px 24px rgba(155,77,255,.42)!important;margin-top:2px}
html body .t-btn.disabled{background:var(--hf-card2)!important;color:var(--hf-mute)!important;box-shadow:none!important;border:1px solid var(--hf-line)}

/* ---- My Matches tabs ---- */
html body .tab-grid{gap:10px!important;margin:6px 0 20px!important}
html body .tab-card{min-height:104px!important;border-radius:20px!important;background:var(--hf-card)!important;border:1px solid var(--hf-line)!important;box-shadow:none!important;padding:14px!important}
html body .tab-card .tc-ico{width:34px;height:34px;border-radius:11px;display:grid!important;place-items:center;background:var(--hf-card2);color:var(--tab);font-size:17px!important;margin-bottom:8px!important}
html body .tab-card b{font-size:15px!important}
html body .tab-card.on{background:linear-gradient(140deg,var(--tab),#6d4dff)!important;border:0!important;box-shadow:0 14px 30px rgba(109,77,255,.4)!important}
html body .tab-card.on .tc-ico{background:rgba(255,255,255,.22);color:#fff}

/* ---- Leaderboard ---- */
html body .podium{gap:10px!important;padding:26px 10px 0!important;border-radius:30px;background:radial-gradient(420px 220px at 50% 0,rgba(255,200,61,.14),transparent 70%),var(--hf-card);border:1px solid var(--hf-line)}
html body .pod{background:var(--hf-card2)!important;border:1px solid var(--hf-line)!important;border-radius:22px 22px 0 0!important;box-shadow:none!important}
html body .pod.p1{background:linear-gradient(180deg,rgba(255,200,61,.22),rgba(255,200,61,.04))!important;border:1px solid rgba(255,200,61,.55)!important;box-shadow:0 0 40px rgba(255,200,61,.18)!important}
html body .pod.p1:before{content:"👑";position:absolute;top:-22px;left:50%;transform:translateX(-50%);font-size:26px}
html body .pod.p2{border-top:3px solid #c7d0e0!important}html body .pod.p3{border-top:3px solid #e29a55!important}
html body .pod .rank-avatar{border:3px solid var(--hf-gold)!important;box-shadow:0 0 22px rgba(255,200,61,.35)!important;display:grid!important;place-items:center;font-weight:800;font-size:24px;background:var(--hf-bg2)}
html body .pod-money{color:var(--hf-gold)!important;font-weight:900!important}
html body .lb-list{margin-top:16px}
html body .lb-row{background:var(--hf-card)!important;border:1px solid var(--hf-line)!important;border-radius:18px!important;box-shadow:none!important;align-items:center}
html body .lb-row.me{border-color:var(--hf-a)!important;box-shadow:0 0 0 1px var(--hf-a),0 10px 26px rgba(124,77,255,.3)!important}
html body .lb-avatar{display:grid;place-items:center;background:var(--hf-grad);color:#fff;font-weight:800}
html body .lb-name{flex:1;font-weight:700}html body .lb-name em{color:var(--hf-b);font-size:12px}
html body .lb-earn{font-weight:900;color:var(--hf-green)}

/* ---- Wallet ---- */
html body .wallet-hero{border-radius:28px!important;background:radial-gradient(300px 200px at 90% 0,rgba(255,255,255,.28),transparent 60%),linear-gradient(135deg,#6a3dff,#a63dff 55%,#ff3d9a)!important;box-shadow:0 24px 50px rgba(124,77,255,.45)!important;min-height:200px!important}
html body .wallet-hero strong{font-size:46px!important;font-weight:900!important;letter-spacing:-1px}
html body .coin{border-radius:22px!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
html body .wallet-action{background:var(--hf-card)!important;border:1px solid var(--hf-line)!important;border-radius:22px!important;box-shadow:none!important;color:var(--hf-text)!important}
html body .wallet-action.primary{background:var(--hf-grad)!important;border:0!important;box-shadow:0 14px 30px rgba(155,77,255,.4)!important;color:#fff!important}
html body .wallet-action strong{font-size:17px!important}
html body .panel,html body .wallet-form,html body .info-row{background:var(--hf-card)!important;border:1px solid var(--hf-line)!important;border-radius:24px!important;box-shadow:none!important;color:var(--hf-text)!important}
html body .history{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid var(--hf-line)!important}
html body .history:last-child{border:0!important}
html body .history b{font-size:14px;color:var(--hf-text)}
html body .history span{font-weight:800;font-size:13px;padding:6px 10px;border-radius:99px;background:rgba(46,230,166,.12);color:var(--hf-green)!important;white-space:nowrap}
html body .history span.pending{background:rgba(255,200,61,.12);color:var(--hf-gold)!important}
html body .history span.failed{background:rgba(255,61,90,.12);color:#ff5c7a!important}

/* ---- Forms / auth ---- */
html body input,html body select,html body textarea{background:var(--hf-card2)!important;border:1px solid var(--hf-line)!important;color:var(--hf-text)!important;border-radius:15px!important}
html body input:focus,html body select:focus,html body textarea:focus{outline:0;border-color:var(--hf-a)!important;box-shadow:0 0 0 3px rgba(124,77,255,.28)!important}
html body .primary,html body .btnlike.primary{background:var(--hf-grad)!important;color:#fff!important;border:0!important;border-radius:16px!important;box-shadow:0 12px 26px rgba(155,77,255,.4)!important;font-weight:800!important}
html body .auth-card{background:var(--hf-card)!important;border:1px solid var(--hf-line)!important;border-radius:28px!important;box-shadow:0 30px 70px rgba(0,0,0,.45)!important;backdrop-filter:blur(16px);color:var(--hf-text)!important}
html body .alert{background:rgba(255,61,90,.12)!important;border:1px solid rgba(255,61,90,.4)!important;color:#ff8da1!important;border-radius:14px!important}
html body .success{background:rgba(46,230,166,.12)!important;border:1px solid rgba(46,230,166,.4)!important;color:var(--hf-green)!important;border-radius:14px!important}

/* ---- Bottom nav: floating glass dock ---- */
html body .app-bottom{left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:min(460px,calc(100% - 20px))!important;bottom:calc(10px + env(safe-area-inset-bottom))!important;height:70px!important;padding:7px!important;gap:2px!important;border-radius:26px!important;border:1px solid var(--hf-line)!important;background:rgba(10,14,34,.78)!important;backdrop-filter:blur(22px) saturate(1.5)!important;-webkit-backdrop-filter:blur(22px) saturate(1.5)!important;box-shadow:0 18px 40px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.04) inset!important}
html[data-theme="light"] body .app-bottom{background:rgba(255,255,255,.85)!important}
html body .app-bottom:before{display:none!important}
html body .app-bottom a{color:var(--hf-mute)!important;font-size:10.5px!important;font-weight:700!important;border-radius:19px!important;gap:3px!important;background:transparent!important;box-shadow:none!important;transition:all .25s}
html body .app-bottom a.active{color:#fff!important;background:var(--hf-grad)!important;box-shadow:0 8px 22px rgba(155,77,255,.55)!important}
html body .app-nav-icon{display:grid!important;place-items:center;width:26px!important;height:26px!important;font-size:0!important;background:transparent!important}
html body .app-nav-icon svg{width:22px;height:22px}
html body .container{padding-bottom:110px!important}
@media(min-width:900px){html body .app-bottom{bottom:14px!important}}
@media(max-width:380px){.hf-chip b{font-size:16px}.hf-chip i{width:32px;height:32px}}
