
/* Tournament app layout corrections - Nov 2026 */
html body .container{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
html body .app-bottom{
  position:fixed!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;
  width:min(520px,calc(100% - 20px))!important;height:76px!important;
  display:flex!important;align-items:stretch!important;justify-content:space-around!important;
  padding:7px!important;gap:4px!important;z-index:100!important;
  border-radius:24px!important;border:1px solid rgba(155,125,255,.45)!important;
  background:rgba(10,14,34,.94)!important;backdrop-filter:blur(20px)!important;
  box-shadow:0 12px 36px rgba(0,0,0,.38)!important
}
html[data-theme="light"] body .app-bottom{background:rgba(255,255,255,.96)!important}
html body .app-bottom a{flex:1!important;min-width:0!important;max-width:none!important;
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;gap:3px!important;border:0!important;border-radius:17px!important;
  font-size:11px!important;line-height:1.1!important;white-space:nowrap!important}
html body .app-bottom a.active{border:0!important}
html body .app-bottom .app-nav-icon{width:28px!important;height:27px!important}
html body .app-bottom .app-nav-icon svg{width:23px!important;height:23px!important}
html body .t-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;align-items:stretch!important}
html body .t-card{min-width:0!important;border-radius:20px!important;overflow:hidden!important}
html body .t-thumb{width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:16/9!important;background-size:cover!important;background-position:center!important}
html body .t-body{padding:11px!important;gap:8px!important;min-width:0!important}
html body .t-body h3{font-size:clamp(12px,3.4vw,16px)!important;line-height:1.3!important;min-height:2.6em!important;overflow-wrap:anywhere!important}
html body .t-time{font-size:10.5px!important;line-height:1.35!important}
html body .t-prize{padding:9px!important;gap:4px!important}
html body .t-prize span{font-size:10px!important}
html body .t-prize b{font-size:clamp(13px,3.8vw,18px)!important}
html body .t-meta{grid-template-columns:1fr!important;gap:6px!important}
html body .t-meta span{font-size:10px!important;padding:7px!important;line-height:1.3!important}
html body .t-btn{font-size:12px!important;padding:10px 6px!important;margin-top:8px!important}
html body .tab-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important}
html body .tab-card{min-width:0!important;min-height:100px!important;padding:10px 5px!important}
html body .tab-card b{font-size:clamp(11px,3vw,14px)!important}
html body .tab-card small{font-size:9px!important;line-height:1.2!important}
html body .podium{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.22fr) minmax(0,1fr)!important;gap:8px!important;padding:30px 8px 12px!important;align-items:end!important;overflow:hidden!important}
html body .pod{min-width:0!important;width:100%!important;padding:16px 5px 12px!important;overflow:hidden!important;display:flex!important;align-items:center!important;text-align:center!important;gap:8px!important}
html body .pod.p1{transform:translateY(-8px)!important}
html body .pod .rank-avatar{width:clamp(48px,13vw,76px)!important;height:clamp(48px,13vw,76px)!important;max-width:100%!important}
html body .pod.p1 .rank-avatar{width:clamp(60px,16vw,94px)!important;height:clamp(60px,16vw,94px)!important}
html body .pod-name{display:block!important;width:100%!important;max-width:100%!important;font-size:clamp(10px,2.8vw,14px)!important;line-height:1.25!important;overflow-wrap:anywhere!important;word-break:break-word!important}
html body .pod.p1 .pod-name{font-size:clamp(11px,3.1vw,16px)!important}
html body .pod-money{font-size:clamp(10px,2.8vw,14px)!important;overflow-wrap:anywhere!important}
html body .pod-sub{font-size:10px!important;line-height:1.2!important}
html body .lb-row{min-width:0!important}
@media(max-width:420px){
 html body .t-grid{gap:9px!important}
 html body .t-body{padding:9px!important}
 html body .t-prize{flex-wrap:wrap!important}
 html body .podium{gap:5px!important;padding-left:5px!important;padding-right:5px!important}
}
@media(min-width:760px){html body .t-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

html body .rank-position{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:26px;padding:0 8px;border-radius:99px;background:rgba(255,255,255,.12);color:var(--hf-text);font-size:11px;font-weight:900}
html body .pod.p1 .rank-position{background:linear-gradient(135deg,#f7c948,#e89a20);color:#241900}
html body .pod.p2 .rank-position{background:linear-gradient(135deg,#dce4f0,#929eaf);color:#172033}
html body .pod.p3 .rank-position{background:linear-gradient(135deg,#efb27a,#bd7138);color:#321600}
html body .lb-rank{flex:0 0 38px;min-width:38px;text-align:center;font-size:12px;font-weight:900}


/* Final home / tournament / leaderboard refinements */
html body .container{padding-top:14px!important}
html body .hf-strip{margin-top:14px!important}
html body .hf-actions{margin-top:10px!important;margin-bottom:24px!important}
html body .section-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:nowrap!important;margin:18px 0 16px!important}
html body .section-head h1,html body .section-head h2{line-height:1.15!important;overflow-wrap:anywhere!important}
html body .t-grid{grid-auto-rows:1fr!important;align-items:stretch!important}
html body .t-card{height:100%!important;display:flex!important;flex-direction:column!important}
html body .t-thumb{flex:0 0 auto!important;aspect-ratio:16/9!important}
html body .t-body{flex:1 1 auto!important;display:flex!important;flex-direction:column!important;min-height:0!important}
html body .t-body h3{height:2.6em!important;min-height:2.6em!important;max-height:2.6em!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
html body .t-mine{min-height:27px!important;display:inline-flex!important;align-items:center!important}
html body .t-time{min-height:30px!important;display:flex!important;align-items:center!important}
html body .t-prize{min-height:62px!important;flex-wrap:nowrap!important}
html body .t-meta{display:grid!important;grid-template-columns:1fr!important}
html body .t-meta span{min-height:39px!important;display:flex!important;align-items:center!important;white-space:normal!important;overflow-wrap:anywhere!important}
html body .t-bar{margin-top:2px!important}
html body .t-btn{margin-top:auto!important;min-height:52px!important}
html body .podium{min-height:310px!important;overflow:visible!important;align-items:end!important;margin-top:28px!important;margin-bottom:18px!important}
html body .pod{min-height:230px!important;justify-content:flex-start!important}
html body .pod.p1{min-height:270px!important;transform:translateY(-8px)!important}
html body .pod.p2,html body .pod.p3{padding-top:24px!important}
html body .pod-name{min-height:2.5em!important;display:flex!important;align-items:center!important;justify-content:center!important}
html body .pod-money,html body .pod-sub{min-height:20px!important}
html body .lb-list{display:grid!important;gap:10px!important;margin-top:18px!important}
html body .lb-row{min-height:72px!important;display:flex!important;gap:12px!important;padding:12px 14px!important}
html body .lb-rank{flex:0 0 42px!important;text-align:center!important}
html body .lb-name{min-width:0!important;overflow-wrap:anywhere!important}
html body .lb-earn{white-space:nowrap!important;font-size:13px!important}
html body .app-bottom{z-index:999!important;bottom:calc(7px + env(safe-area-inset-bottom))!important}
html body .container{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
@media(max-width:420px){
 html body .t-grid{gap:10px!important}
 html body .t-body{padding:10px!important}
 html body .t-prize{min-height:58px!important;padding:8px!important}
 html body .t-prize span{font-size:9px!important}
 html body .t-prize b{font-size:clamp(12px,3.5vw,16px)!important}
 html body .t-meta span{font-size:9.5px!important}
 html body .t-btn{min-height:46px!important;font-size:11px!important}
 html body .podium{min-height:270px!important}
 html body .pod{min-height:210px!important}
 html body .pod.p1{min-height:245px!important}
}

/* V2 tournament cards: equal-height, structured WinZO-inspired layout */
html body .t-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important;grid-auto-rows:1fr!important}
html body .t-card.tournament-v2{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;border:1px solid rgba(151,135,255,.30)!important;border-radius:22px!important;background:linear-gradient(160deg,#171d3a 0%,#0b1025 82%)!important;box-shadow:0 12px 28px rgba(0,0,0,.28)!important}
html body .t-card.tournament-v2 .t-thumb{position:relative!important;aspect-ratio:16/9!important;height:auto!important;min-height:0!important;flex:0 0 auto!important;background-size:cover!important;background-position:center!important;border-radius:0!important;overflow:hidden!important}
html body .t-card.tournament-v2 .t-thumb:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(5,8,23,.72));pointer-events:none}
html body .t-card.tournament-v2 .t-tag{z-index:2!important;left:10px!important;top:10px!important;border-radius:30px!important;padding:6px 10px!important;font-size:9px!important;letter-spacing:1px!important}
html body .t-card.tournament-v2 .tour-mode-pill{position:absolute;z-index:2;right:9px;bottom:9px;padding:5px 8px;border-radius:20px;background:rgba(8,12,30,.78);border:1px solid rgba(255,255,255,.2);font-size:9px;font-weight:800;color:#fff}
html body .t-card.tournament-v2 .t-body{padding:11px!important;display:flex!important;flex:1 1 auto!important;flex-direction:column!important;gap:10px!important;min-width:0!important}
html body .t-card.tournament-v2 h3{font-size:clamp(12px,3.1vw,16px)!important;line-height:1.3!important;height:2.6em!important;min-height:2.6em!important;max-height:2.6em!important;margin:0!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}
html body .tour-stats3{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;background:rgba(255,255,255,.055)!important;border:1px solid rgba(163,155,255,.16)!important;border-radius:14px!important;padding:9px 4px!important;gap:2px!important}
html body .tour-stats3>div{min-width:0!important;text-align:center!important;display:flex!important;flex-direction:column!important;gap:3px!important;border-right:1px solid rgba(255,255,255,.10)!important}
html body .tour-stats3>div:last-child{border:0!important}
html body .tour-stats3 b{font-size:clamp(11px,3.3vw,17px)!important;line-height:1.2!important;color:#ffd15b!important;white-space:nowrap!important}
html body .tour-stats3 small{font-size:8px!important;letter-spacing:.7px!important;color:#aab4d2!important;font-weight:800!important}
html body .tour-time-row{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:4px!important;font-size:10px!important;color:#c5cbe0!important;white-space:nowrap!important}
html body .tour-time-row b{color:#fff!important;font-size:10px!important}
html body .tour-progress{height:7px!important;border-radius:20px!important;background:#303958!important;overflow:hidden!important}
html body .tour-progress span{display:block!important;height:100%!important;border-radius:20px!important;background:linear-gradient(90deg,#ec35b8,#7654ff)!important}
html body .tour-spots-row{display:flex!important;justify-content:space-between!important;color:#9da8c8!important;font-size:9px!important;margin-top:-7px!important}
html body .t-card.tournament-v2 .t-mine{align-self:flex-start!important;padding:6px 9px!important;border-radius:20px!important;background:rgba(30,203,153,.12)!important;border:1px solid rgba(30,203,153,.38)!important;color:#42ddb1!important;font-size:10px!important}
html body .t-card.tournament-v2 .tour-join-btn{margin-top:auto!important;min-height:42px!important;padding:10px 8px!important;border-radius:14px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;font-size:12px!important;background:linear-gradient(100deg,#e934b5,#7650ff)!important;box-shadow:0 8px 18px rgba(123,75,255,.22)!important}
html body .tour-join-btn span{font-size:17px!important;line-height:1!important}
/* Leaderboard podium and ranked list */
html body .podium{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr) minmax(0,1fr)!important;gap:8px!important;padding:34px 10px 18px!important;min-height:0!important;border-radius:26px!important;background:radial-gradient(ellipse at 50% 0,rgba(247,190,62,.18),transparent 58%),linear-gradient(145deg,#151c37,#0b1023)!important;border:1px solid rgba(147,130,255,.28)!important;align-items:end!important}
html body .pod{position:relative!important;min-height:190px!important;padding:16px 5px 14px!important;border-radius:20px 20px 8px 8px!important;border:1px solid rgba(255,255,255,.12)!important;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.015))!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;text-align:center!important;overflow:visible!important}
html body .pod.p1{min-height:230px!important;transform:translateY(-8px)!important;border-color:rgba(255,203,72,.65)!important;background:linear-gradient(180deg,rgba(255,197,55,.17),rgba(255,255,255,.025))!important;box-shadow:0 0 28px rgba(255,190,55,.12)!important}
html body .pod.p2{border-top:3px solid #cbd5e1!important}html body .pod.p3{border-top:3px solid #d88a4b!important}
html body .pod .rank-position{font-size:11px!important;font-weight:900!important}
html body .pod .rank-avatar{width:clamp(48px,13vw,70px)!important;height:clamp(48px,13vw,70px)!important;border:3px solid #f4c94c!important;box-shadow:0 0 0 4px rgba(244,201,76,.12)!important}
html body .pod.p1 .rank-avatar{width:clamp(64px,17vw,92px)!important;height:clamp(64px,17vw,92px)!important}
html body .pod-name{font-size:clamp(10px,2.8vw,14px)!important;line-height:1.25!important;min-height:2.4em!important;overflow-wrap:anywhere!important;display:flex!important;align-items:center!important;justify-content:center!important}
html body .pod-money{font-size:clamp(10px,2.8vw,14px)!important;color:#ffd45f!important}
html body .pod-sub{font-size:10px!important;color:#aeb8d2!important}
html body .lb-list{margin-top:20px!important;display:grid!important;gap:10px!important}
html body .lb-row{display:grid!important;grid-template-columns:36px 44px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;min-height:76px!important;padding:11px 13px!important;border:1px solid rgba(147,130,255,.20)!important;border-radius:17px!important;background:linear-gradient(110deg,#151c37,#0d132a)!important}
html body .lb-rank{font-size:15px!important;color:#aeb9d8!important;font-weight:900!important}
html body .lb-avatar{width:42px!important;height:42px!important;border:2px solid rgba(150,130,255,.55)!important;background:#272b68!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important}
html body .lb-name{font-size:13px!important;font-weight:800!important;color:#f5f6ff!important;min-width:0!important}
html body .lb-name small{display:block!important;margin-top:3px!important;font-size:10px!important;color:#98a4c4!important;font-weight:500!important}
html body .lb-earn{font-size:12px!important;color:#ffd45f!important;font-weight:900!important}
@media(max-width:380px){html body .t-grid{gap:8px!important}html body .t-card.tournament-v2 .t-body{padding:8px!important}html body .tour-stats3{padding:7px 2px!important}html body .tour-stats3 small{font-size:7px!important}html body .tour-time-row{font-size:9px!important}}

/* Tournament countdown cards */
.tour-countdown{margin:12px 0 8px;padding:11px 10px;border-radius:14px;text-align:center;background:linear-gradient(110deg,#191d49,#4434a5);color:#fff;box-shadow:0 6px 15px #392c8a22}
.tour-countdown>small{display:block;color:#d6d2ff;font-size:9px;font-weight:900;letter-spacing:1.5px}
.tour-countdown>div{display:flex;justify-content:center;align-items:center;gap:7px;margin:5px 0}
.tour-countdown b{display:inline-flex;justify-content:center;min-width:36px;padding:5px 4px;border-radius:8px;background:#ffffff20;color:#fff;font-size:21px;font-weight:900;font-variant-numeric:tabular-nums}
.tour-countdown i{font-style:normal;color:#ffd36e;font-size:19px;font-weight:900}
.tour-countdown em{font-size:8px;font-style:normal;color:#d7d4ff;letter-spacing:.5px;font-weight:800}
.tour-countdown.ended{background:linear-gradient(110deg,#374151,#64748b)}


/* Compact tournament cards: digits only countdown */
html body .t-card.tournament-v2 .t-body{gap:6px!important;padding:9px!important}
html body .t-card.tournament-v2 h3{margin-bottom:0!important}
html body .tour-countdown{margin:2px 0 3px!important;padding:5px 8px!important;border-radius:10px!important;box-shadow:none!important;min-height:0!important}
html body .tour-countdown>div{display:flex!important;justify-content:center!important;align-items:center!important;gap:5px!important;margin:0!important}
html body .tour-countdown b{min-width:29px!important;padding:2px 3px!important;border-radius:6px!important;font-size:17px!important;line-height:1.25!important}
html body .tour-countdown i{font-size:16px!important;line-height:1!important}
html body .tour-countdown>small,html body .tour-countdown>em{display:none!important}
html body .tour-progress{margin-top:0!important}
@media(max-width:380px){
 html body .t-card.tournament-v2 .t-body{gap:5px!important;padding:7px!important}
 html body .tour-countdown{padding:4px 6px!important}
 html body .tour-countdown b{min-width:26px!important;font-size:15px!important}
}


/* Inline tournament timer replaces the player-count cell. */
html body .tour-countdown-inline{margin:0!important;padding:0!important;min-width:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important}
html body .tour-countdown-inline>div{display:flex!important;align-items:center!important;justify-content:center!important;gap:1px!important;margin:0!important;white-space:nowrap!important}
html body .tour-countdown-inline b{display:inline!important;min-width:0!important;padding:0!important;background:transparent!important;border-radius:0!important;font-size:clamp(10px,2.7vw,14px)!important;line-height:1.2!important;color:#ffd15b!important;font-weight:900!important}
html body .tour-countdown-inline i{font-size:clamp(9px,2.4vw,12px)!important;font-style:normal!important;color:#ffd36e!important;font-weight:900!important}
html body .tour-countdown-inline.ended b{color:#aab4d2!important}


/* November 20 final polish: live stream, clear timer and focused money actions */
html body .tour-stats3 .tour-countdown-inline{min-height:44px!important;overflow:visible!important}
html body .tour-countdown-inline>div{gap:1px!important}
html body .tour-countdown-inline b{font-variant-numeric:tabular-nums!important;letter-spacing:-.35px!important}
html body .tour-live-inline{gap:5px!important;color:#ff557d!important;font-size:12px!important;font-weight:1000!important;white-space:nowrap!important}
html body .tour-live-dot,.home-live-dot{width:8px;height:8px;display:inline-block;border-radius:50%;background:#ff315d;box-shadow:0 0 0 4px rgba(255,49,93,.14),0 0 12px #ff315d;animation:livePulse 1.25s infinite}
@keyframes livePulse{50%{opacity:.45;transform:scale(.82)}}
html body .home-live-stream{margin:16px 0 22px;border:1px solid rgba(255,80,120,.42);border-radius:22px;overflow:hidden;background:linear-gradient(135deg,#17152e,#0c1227);box-shadow:0 12px 34px rgba(0,0,0,.3)}
html body .home-live-head{display:flex;align-items:center;gap:10px;padding:12px 15px;color:#fff;font-size:13px}
html body .home-live-head>b{color:#ff6686;letter-spacing:1.2px;font-size:11px}
html body .home-live-head>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700}
html body .home-live-frame{position:relative;width:100%;aspect-ratio:16/9;background:#000}
html body .home-live-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
html body .deposit-screen{display:block!important}
html body .deposit-screen[hidden]{display:block!important}
html body .wallet-form.deposit-screen{max-width:700px;margin:14px auto;padding:20px!important}
html body .deposit-screen .deposit-submit{width:100%;min-height:52px}
