/* ============================================================
   BATTLE TEST — DIZAYN (blue / purple dark mode)
   Barcha klasslar .bt- prefiksi bilan (mavjud yashil dizaynni buzmaydi)
   ============================================================ */
/* O'zgaruvchilar :root da ham — chunki taklif popup va "+N" particle
   document.body ga qo'shiladi (.bt-scope tashqarisi). Busiz ular rangsiz qoladi. */
:root {
  --bt-bg:       #0a0a1f;
  --bt-bg2:      #11102b;
  --bt-card:     rgba(28, 26, 64, 0.55);
  --bt-card2:    rgba(40, 36, 90, 0.45);
  --bt-border:   rgba(124, 110, 255, 0.28);
  --bt-blue:     #3b82f6;
  --bt-blue2:    #60a5fa;
  --bt-violet:   #8b5cf6;
  --bt-violet2:  #a78bfa;
  --bt-cyan:     #22d3ee;
  --bt-pink:     #ec4899;
  --bt-gold:     #fbbf24;
  --bt-green:    #34d399;
  --bt-red:      #f87171;
  --bt-text:     #e8e9ff;
  --bt-muted:    #9aa0c8;
  --bt-glow:     0 0 28px rgba(124, 110, 255, 0.35);
  --bt-grad:     linear-gradient(135deg, #3b82f6, #8b5cf6);
  --bt-grad2:    linear-gradient(135deg, #8b5cf6, #ec4899);
}
.bt-scope {
  --bt-bg:       #0a0a1f;
  --bt-bg2:      #11102b;
  --bt-card:     rgba(28, 26, 64, 0.55);
  --bt-card2:    rgba(40, 36, 90, 0.45);
  --bt-border:   rgba(124, 110, 255, 0.28);
  --bt-blue:     #3b82f6;
  --bt-blue2:    #60a5fa;
  --bt-violet:   #8b5cf6;
  --bt-violet2:  #a78bfa;
  --bt-cyan:     #22d3ee;
  --bt-pink:     #ec4899;
  --bt-gold:     #fbbf24;
  --bt-green:    #34d399;
  --bt-red:      #f87171;
  --bt-text:     #e8e9ff;
  --bt-muted:    #9aa0c8;
  --bt-glow:     0 0 28px rgba(124, 110, 255, 0.35);
  --bt-grad:     linear-gradient(135deg, #3b82f6, #8b5cf6);
  --bt-grad2:    linear-gradient(135deg, #8b5cf6, #ec4899);
  color: var(--bt-text);
  font-family: 'DM Sans', 'Syne', sans-serif;
}

/* ---------- HUB / HERO ---------- */
.bt-hub-hero {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 34px 30px;
  background:
    radial-gradient(900px 280px at 12% -10%, rgba(59,130,246,0.30), transparent 60%),
    radial-gradient(700px 300px at 92% 0%, rgba(139,92,246,0.30), transparent 60%),
    linear-gradient(160deg, #12112e, #0a0a1f 70%);
  border: 1px solid var(--bt-border);
  box-shadow: var(--bt-glow);
}
.bt-hub-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124,110,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,110,255,0.06) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.bt-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 2px;
  text-transform: uppercase; color: var(--bt-violet2);
  background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.3);
  padding: 6px 14px; border-radius: 100px;
}
.bt-hub-title {
  font-family: 'Syne', sans-serif; font-weight: 800; line-height: 1.05;
  font-size: clamp(28px, 5vw, 46px); margin: 16px 0 6px; letter-spacing: -1px;
}
.bt-hub-title .g {
  background: var(--bt-grad2); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.bt-hub-sub { color: var(--bt-muted); font-size: 15.5px; max-width: 560px; }

/* ---------- O'QUVCHI PROFIL PASPORTI ---------- */
.bt-passport {
  position: relative; z-index: 1; margin-top: 24px;
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: var(--bt-card); border: 1px solid var(--bt-border);
  border-radius: 18px; padding: 18px 22px; backdrop-filter: blur(10px);
}
.bt-avatar {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 30px; background: var(--bt-grad); box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}
.bt-pass-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; }
.bt-pass-rank { color: var(--bt-violet2); font-size: 13px; display: flex; gap: 6px; align-items: center; }
.bt-level-bar { margin-top: 10px; }
.bt-level-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--bt-muted); margin-bottom: 5px; }
.bt-bar-track { height: 9px; border-radius: 100px; background: rgba(124,110,255,0.15); overflow: hidden; }
.bt-bar-fill {
  height: 100%; border-radius: 100px; background: var(--bt-grad2);
  box-shadow: 0 0 12px rgba(236,72,153,0.6); transition: width .8s cubic-bezier(.2,.9,.3,1);
}
.bt-pass-stats { display: flex; gap: 18px; }
.bt-pstat { text-align: center; }
.bt-pstat b { display: block; font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 800; }
.bt-pstat span { font-size: 11px; color: var(--bt-muted); }
.bt-balls-num { background: var(--bt-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---------- CARD GRID ---------- */
.bt-grid { display: grid; gap: 18px; margin-top: 22px; }
.bt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.bt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.bt-card {
  position: relative; overflow: hidden;
  background: var(--bt-card); border: 1px solid var(--bt-border);
  border-radius: 18px; padding: 22px; backdrop-filter: blur(8px);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bt-card-h { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.bt-card-p { color: var(--bt-muted); font-size: 13.5px; line-height: 1.5; }

.bt-action-card { cursor: pointer; }
.bt-action-card:hover { transform: translateY(-5px); border-color: var(--bt-violet); box-shadow: 0 16px 40px rgba(139,92,246,0.28); }
.bt-action-card .bt-ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 14px;
}
.bt-action-card .bt-go {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--bt-violet2);
}
.bt-action-card:hover .bt-go { color: var(--bt-pink); }

/* ---------- TUGMALAR ---------- */
.bt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 15px; padding: 13px 26px; border-radius: 14px; color: #fff;
  background: var(--bt-grad); box-shadow: 0 8px 24px rgba(59,130,246,0.35);
  transition: transform .15s, box-shadow .2s, opacity .2s;
}
.bt-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(139,92,246,0.5); }
.bt-btn:active { transform: translateY(0); }
.bt-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.bt-btn.ghost { background: transparent; border: 1px solid var(--bt-border); color: var(--bt-text); box-shadow: none; }
.bt-btn.ghost:hover { background: rgba(124,110,255,0.12); }
.bt-btn.pink { background: var(--bt-grad2); box-shadow: 0 8px 24px rgba(236,72,153,0.35); }
.bt-btn.sm { padding: 8px 16px; font-size: 13px; border-radius: 10px; }
.bt-btn.danger { background: linear-gradient(135deg,#ef4444,#b91c1c); }

/* ---------- TANLOV CHIPLARI ---------- */
.bt-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.bt-chip {
  padding: 9px 18px; border-radius: 100px; cursor: pointer; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--bt-border); background: rgba(124,110,255,0.06); color: var(--bt-muted);
  transition: all .18s;
}
.bt-chip:hover { color: var(--bt-text); border-color: var(--bt-violet); }
.bt-chip.active { background: var(--bt-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(59,130,246,0.4); }

/* ============================================================
   ARENA (battle ekrani)
   ============================================================ */
.bt-arena {
  background: var(--bt-card); border: 1px solid var(--bt-border);
  border-radius: 22px; padding: 26px; backdrop-filter: blur(10px);
}
.bt-arena-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bt-qcount { font-family: 'Space Mono', monospace; color: var(--bt-muted); font-size: 13px; }
.bt-qcount b { color: var(--bt-violet2); font-size: 18px; }

/* Taymer halqasi */
.bt-timer-ring { position: relative; width: 78px; height: 78px; }
.bt-timer-ring svg { transform: rotate(-90deg); }
.bt-timer-ring .bg { stroke: rgba(124,110,255,0.18); }
.bt-timer-ring .fg { stroke: url(#btGrad); stroke-linecap: round; transition: stroke-dashoffset .3s linear, stroke .3s; }
.bt-timer-ring .lbl {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 16px;
}
.bt-timer-ring.low .lbl { color: var(--bt-red); }
.bt-timer-ring.low { animation: btPulse .7s infinite; }
@keyframes btPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }

/* Progress bar (savollar) */
.bt-progress { margin: 20px 0; height: 8px; border-radius: 100px; background: rgba(124,110,255,0.15); overflow: hidden; }
.bt-progress > i { display: block; height: 100%; border-radius: 100px; background: var(--bt-grad); transition: width .4s; box-shadow: 0 0 12px rgba(59,130,246,0.6); }

/* Savol */
.bt-qbox { margin-top: 8px; }
.bt-qmeta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.bt-tag { font-size: 11px; padding: 3px 10px; border-radius: 100px; background: rgba(139,92,246,0.16); color: var(--bt-violet2); font-weight: 600; }
.bt-qtext { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(19px, 3vw, 24px); line-height: 1.35; margin-bottom: 22px; }

/* Variantlar */
.bt-opts { display: grid; gap: 12px; }
.bt-opt {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 16px 18px; border-radius: 14px; cursor: pointer;
  background: var(--bt-card2); border: 1.5px solid var(--bt-border); color: var(--bt-text);
  font-size: 15.5px; transition: all .15s; font-family: inherit;
}
.bt-opt:hover:not(.locked) { border-color: var(--bt-violet); transform: translateX(4px); background: rgba(139,92,246,0.12); }
.bt-opt .k {
  width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 14px;
  background: rgba(124,110,255,0.18); color: var(--bt-violet2);
}
.bt-opt.locked { cursor: default; }
.bt-opt.correct { border-color: var(--bt-green); background: rgba(52,211,153,0.16); }
.bt-opt.correct .k { background: var(--bt-green); color: #04210f; }
.bt-opt.wrong { border-color: var(--bt-red); background: rgba(248,113,113,0.14); }
.bt-opt.wrong .k { background: var(--bt-red); color: #2a0606; }

/* Combo / streak ko'rsatkichi */
.bt-combo {
  position: fixed; right: 26px; top: 120px; z-index: 50;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 17px;
  padding: 10px 18px; border-radius: 14px; color: #fff;
  background: var(--bt-grad2); box-shadow: 0 10px 30px rgba(236,72,153,0.5);
  opacity: 0; transform: translateY(-10px) scale(.9); transition: all .25s;
}
.bt-combo.show { opacity: 1; transform: translateY(0) scale(1); }

/* Ball uchadigan animatsiya */
.bt-float {
  position: fixed; z-index: 60; font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 26px; color: var(--bt-gold); pointer-events: none;
  text-shadow: 0 0 16px rgba(251,191,36,0.7);
  animation: btFloat 1s ease-out forwards;
}
@keyframes btFloat { 0%{opacity:0;transform:translateY(0) scale(.6)} 20%{opacity:1} 100%{opacity:0;transform:translateY(-70px) scale(1.2)} }

/* Anti-cheat ogohlantirish */
.bt-cheat-warn {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(10,5,20,0.86); backdrop-filter: blur(6px);
}
.bt-cheat-warn.show { display: grid; }
.bt-cheat-box {
  text-align: center; max-width: 420px; padding: 34px;
  background: linear-gradient(160deg,#2a1020,#1a0a14);
  border: 1px solid rgba(248,113,113,0.4); border-radius: 20px;
  box-shadow: 0 0 50px rgba(248,113,113,0.3); animation: btShake .4s;
}
@keyframes btShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-8px)} 75%{transform:translateX(8px)} }

/* ============================================================
   NATIJA EKRANI
   ============================================================ */
.bt-result { text-align: center; }
.bt-result-crown { font-size: 64px; animation: btPop .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes btPop { 0%{transform:scale(0) rotate(-30deg)} 100%{transform:scale(1) rotate(0)} }
.bt-result-score {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 64px; margin: 8px 0;
  background: var(--bt-grad2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.bt-result-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 22px 0; }
.bt-rstat { background: var(--bt-card2); border: 1px solid var(--bt-border); border-radius: 14px; padding: 16px 10px; }
.bt-rstat b { display: block; font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 800; }
.bt-rstat span { font-size: 11.5px; color: var(--bt-muted); }

/* Gift box */
.bt-gift { margin: 20px auto; width: 130px; cursor: pointer; }
.bt-gift .box { font-size: 80px; display: inline-block; transition: transform .2s; animation: btWobble 1.4s ease-in-out infinite; }
.bt-gift:hover .box { transform: scale(1.1); }
.bt-gift.opened .box { animation: btBurst .5s forwards; }
@keyframes btWobble { 0%,100%{transform:rotate(-6deg)} 50%{transform:rotate(6deg)} }
@keyframes btBurst { 0%{transform:scale(1)} 50%{transform:scale(1.4)} 100%{transform:scale(0);opacity:0} }
.bt-gift-label { color: var(--bt-muted); font-size: 13px; margin-top: 6px; }

/* Yangi badge */
.bt-newbadges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0; }
.bt-badge-pop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.4);
  border-radius: 14px; padding: 12px 16px; animation: btPop .5s;
}
.bt-badge-pop .ic { font-size: 30px; }
.bt-badge-pop b { font-size: 12.5px; }

/* Konfetti */
.bt-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.bt-confetti i {
  position: absolute; width: 9px; height: 14px; top: -20px; opacity: .9;
  animation: btFall linear forwards;
}
@keyframes btFall { to { transform: translateY(110vh) rotate(720deg); opacity: 0; } }

/* ============================================================
   LEADERBOARD / REYTING
   ============================================================ */
.bt-lb { display: grid; gap: 10px; }
.bt-lb-row {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  padding: 13px 16px; border-radius: 14px; background: var(--bt-card2);
  border: 1px solid var(--bt-border);
  animation: btSlideIn .5s both; transition: transform .2s;
}
.bt-lb-row:hover { transform: translateX(4px); }
@keyframes btSlideIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
.bt-lb-rank { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; text-align: center; color: var(--bt-muted); }
.bt-lb-name { font-weight: 600; }
.bt-lb-name small { display: block; color: var(--bt-muted); font-size: 11.5px; font-weight: 400; }
.bt-lb-balls { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 18px; }
.bt-lb-row.me { border-color: var(--bt-violet); background: rgba(139,92,246,0.14); box-shadow: 0 0 0 1px rgba(139,92,246,0.3); }
.bt-lb-row.top1 { background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(251,191,36,0.04)); border-color: rgba(251,191,36,0.4); }
.bt-lb-row.top2 { background: linear-gradient(135deg, rgba(192,192,192,0.16), rgba(192,192,192,0.03)); border-color: rgba(192,192,192,0.35); }
.bt-lb-row.top3 { background: linear-gradient(135deg, rgba(205,127,50,0.16), rgba(205,127,50,0.03)); border-color: rgba(205,127,50,0.35); }

/* Podium (TOP 3) */
.bt-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 20px; }
.bt-pod {
  text-align: center; border-radius: 16px 16px 0 0; padding: 18px 10px 16px;
  border: 1px solid var(--bt-border); border-bottom: none; animation: btRise .6s both;
}
@keyframes btRise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.bt-pod.p1 { background: linear-gradient(180deg, rgba(251,191,36,0.22), rgba(251,191,36,0.04)); padding-top: 30px; }
.bt-pod.p2 { background: linear-gradient(180deg, rgba(192,192,192,0.2), rgba(192,192,192,0.03)); }
.bt-pod.p3 { background: linear-gradient(180deg, rgba(205,127,50,0.2), rgba(205,127,50,0.03)); }
.bt-pod-medal { font-size: 34px; }
.bt-pod-av { width: 48px; height: 48px; border-radius: 50%; margin: 8px auto; display: grid; place-items: center; font-size: 22px; background: var(--bt-grad); }
.bt-pod-name { font-weight: 700; font-size: 13.5px; }
.bt-pod-balls { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 20px; margin-top: 4px; }

/* ---------- DUEL / CHAT ---------- */
.bt-duel-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin: 18px 0; }
.bt-duel-side { background: var(--bt-card2); border: 1px solid var(--bt-border); border-radius: 16px; padding: 18px; text-align: center; }
.bt-duel-side.me { border-color: var(--bt-blue); }
.bt-duel-side.op { border-color: var(--bt-pink); }
.bt-vs-badge { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 26px; color: var(--bt-violet2); }
.bt-duel-prog { height: 7px; border-radius: 100px; background: rgba(124,110,255,0.15); margin-top: 10px; overflow: hidden; }
.bt-duel-prog > i { display: block; height: 100%; background: var(--bt-grad); transition: width .4s; }

.bt-chat { display: flex; flex-direction: column; height: 280px; background: var(--bt-card2); border: 1px solid var(--bt-border); border-radius: 14px; overflow: hidden; }
.bt-chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bt-chat-msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; background: rgba(124,110,255,0.12); }
.bt-chat-msg.me { align-self: flex-end; background: var(--bt-grad); color: #fff; }
.bt-chat-msg b { display: block; font-size: 10.5px; opacity: .8; margin-bottom: 2px; }
.bt-chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--bt-border); }
.bt-chat-input input { flex: 1; background: rgba(0,0,0,0.25); border: 1px solid var(--bt-border); border-radius: 10px; padding: 10px 12px; color: var(--bt-text); font-family: inherit; }
.bt-chat-input input:focus { outline: none; border-color: var(--bt-violet); }

/* ---------- BO'SH HOLAT ---------- */
.bt-empty { text-align: center; padding: 50px 20px; color: var(--bt-muted); }
.bt-empty .em { font-size: 48px; margin-bottom: 12px; }
.bt-empty h4 { font-family: 'Syne', sans-serif; font-size: 19px; color: var(--bt-text); margin-bottom: 6px; }

/* ---------- BACK LINK ---------- */
.bt-back { display: inline-flex; align-items: center; gap: 6px; color: var(--bt-muted); cursor: pointer; font-size: 13.5px; margin-bottom: 14px; background: none; border: none; font-family: inherit; }
.bt-back:hover { color: var(--bt-violet2); }

.bt-section-h { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 24px; margin: 6px 0 4px; }
.bt-section-sub { color: var(--bt-muted); font-size: 14px; margin-bottom: 18px; }

/* ============================================================
   ADMIN tomondagi maxsus uslublar
   ============================================================ */
.bt-admin-bankrow {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: start;
  padding: 14px 16px; border-radius: 12px; background: var(--bt-card2);
  border: 1px solid var(--bt-border); margin-bottom: 10px;
}
.bt-admin-bankrow .num { font-family: 'Space Mono', monospace; color: var(--bt-muted); font-size: 13px; padding-top: 2px; }
.bt-admin-bankrow .q { font-weight: 600; margin-bottom: 6px; }
.bt-admin-bankrow .ans { font-size: 12.5px; color: var(--bt-muted); }
.bt-admin-bankrow .ans .ok { color: var(--bt-green); font-weight: 600; }
.bt-input, .bt-textarea, .bt-select {
  width: 100%; background: rgba(0,0,0,0.28); border: 1px solid var(--bt-border);
  border-radius: 12px; padding: 12px 14px; color: var(--bt-text); font-family: inherit; font-size: 14px;
}
.bt-input:focus, .bt-textarea:focus, .bt-select:focus { outline: none; border-color: var(--bt-violet); box-shadow: 0 0 0 3px rgba(139,92,246,0.18); }
.bt-textarea { resize: vertical; min-height: 90px; }
.bt-label { display: block; font-size: 12.5px; color: var(--bt-muted); margin: 14px 0 6px; font-weight: 600; }
.bt-table { width: 100%; border-collapse: collapse; }
.bt-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--bt-muted); padding: 10px 12px; border-bottom: 1px solid var(--bt-border); }
.bt-table td { padding: 12px; border-bottom: 1px solid rgba(124,110,255,0.12); font-size: 13.5px; }
.bt-table tr:hover td { background: rgba(124,110,255,0.05); }
.bt-pill { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 600; }
.bt-pill.ok { background: rgba(52,211,153,0.16); color: var(--bt-green); }
.bt-pill.no { background: rgba(248,113,113,0.16); color: var(--bt-red); }
.bt-pill.blue { background: rgba(59,130,246,0.16); color: var(--bt-blue2); }
.bt-pill.violet { background: rgba(139,92,246,0.16); color: var(--bt-violet2); }

.bt-stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 20px; }
.bt-stat-card { background: var(--bt-card); border: 1px solid var(--bt-border); border-radius: 16px; padding: 18px; }
.bt-stat-card b { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; display: block; }
.bt-stat-card span { font-size: 12.5px; color: var(--bt-muted); }

.bt-modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(8,6,20,0.8); backdrop-filter: blur(6px); display: none; place-items: center; padding: 20px; }
.bt-modal-overlay.show { display: grid; }
.bt-modal {
  width: 100%; max-width: 680px; max-height: 86vh; overflow-y: auto;
  background: linear-gradient(160deg,#14122e,#0c0b1f); border: 1px solid var(--bt-border);
  border-radius: 20px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .bt-grid.cols-3, .bt-grid.cols-2 { grid-template-columns: 1fr; }
  .bt-passport { grid-template-columns: 1fr; text-align: center; }
  .bt-avatar { margin: 0 auto; }
  .bt-pass-stats { justify-content: center; }
  .bt-result-grid { grid-template-columns: repeat(2,1fr); }
  .bt-stat-cards { grid-template-columns: repeat(2,1fr); }
  .bt-duel-vs { grid-template-columns: 1fr; }
  .bt-combo { right: 12px; top: 90px; font-size: 14px; }
}
@media (max-width: 480px) {
  .bt-hub-hero { padding: 24px 18px; }
  .bt-arena { padding: 18px; }
  .bt-podium { grid-template-columns: 1fr 1fr 1fr; }
}

/* ============================================================
   BATTLE TAKLIF POPUP — neon animated modal (sezilarli)
   ============================================================ */
.bt-invite-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 20, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483000;
  animation: btInviteFadeIn 0.3s ease;
  padding: 20px;
}
@keyframes btInviteFadeIn { from { opacity: 0; } to { opacity: 1; } }

.bt-invite-modal {
  position: relative;
  background: linear-gradient(160deg, #171436, #0e0c26);
  border: 2px solid var(--bt-violet);
  border-radius: 24px;
  padding: 36px 32px 30px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.6), inset 0 0 30px rgba(139, 92, 246, 0.08);
  animation: btInvitePulse 1.1s ease-in-out infinite, btInvitePop 0.45s cubic-bezier(0.18, 1.4, 0.4, 1);
}
@keyframes btInvitePop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes btInvitePulse {
  0%, 100% { box-shadow: 0 0 45px rgba(139, 92, 246, 0.5), inset 0 0 24px rgba(139, 92, 246, 0.06); border-color: var(--bt-violet); }
  50% { box-shadow: 0 0 80px rgba(236, 72, 153, 0.75), 0 0 40px rgba(139, 92, 246, 0.6), inset 0 0 34px rgba(236, 72, 153, 0.12); border-color: var(--bt-pink); }
}

.bt-invite-icon {
  font-size: 58px;
  line-height: 1;
  margin-bottom: 12px;
  animation: btInviteShake 0.8s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(236, 72, 153, 0.8));
}
@keyframes btInviteShake {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  25% { transform: rotate(8deg) scale(1.12); }
  50% { transform: rotate(-6deg) scale(1.05); }
  75% { transform: rotate(6deg) scale(1.1); }
}

.bt-invite-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  background: linear-gradient(90deg, #a78bfa, #ec4899, #22d3ee);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: btInviteGradient 2.5s linear infinite;
}
@keyframes btInviteGradient { to { background-position: 200% center; } }

.bt-invite-from {
  font-size: 15px;
  color: var(--bt-text);
  margin-bottom: 18px;
}
.bt-invite-from b {
  color: var(--bt-gold);
  font-size: 18px;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.bt-invite-timer-ring {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  position: relative;
}
.bt-invite-timer-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--bt-cyan);
  text-shadow: 0 0 16px rgba(34, 211, 238, 0.8);
}

.bt-invite-btns {
  display: flex;
  gap: 12px;
}
.bt-invite-btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bt-invite-btn:active { transform: scale(0.94); }
.bt-invite-btn.accept {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.55);
  animation: btAcceptGlow 1.2s ease-in-out infinite;
}
@keyframes btAcceptGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(34, 197, 94, 0.5); }
  50% { box-shadow: 0 0 34px rgba(34, 197, 94, 0.85); }
}
.bt-invite-btn.reject {
  background: rgba(248, 113, 113, 0.12);
  color: var(--bt-red);
  border: 1.5px solid rgba(248, 113, 113, 0.4);
}

/* ============================================================
   BALL YIG'ISH ANIMATSIYASI — floating text + score pop
   ============================================================ */
.bt-score-pop {
  display: inline-block;
  animation: btScorePop 0.5s cubic-bezier(0.18, 1.5, 0.4, 1);
}
@keyframes btScorePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.55); color: var(--bt-gold); text-shadow: 0 0 20px rgba(251, 191, 36, 0.9); }
  100% { transform: scale(1); }
}

.bt-float-particle {
  position: fixed;
  z-index: 2147482000;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  pointer-events: none;
  color: var(--bt-green);
  text-shadow: 0 0 18px currentColor, 0 0 30px currentColor;
  animation: btFloatUp 1.1s ease-out forwards;
}
@keyframes btFloatUp {
  0% { transform: translate(-50%, 0) scale(0.6); opacity: 0; }
  20% { transform: translate(-50%, -18px) scale(1.25); opacity: 1; }
  100% { transform: translate(-50%, -90px) scale(1); opacity: 0; }
}

/* ============================================================
   PROFESSIONAL RESPONSIVE — 2026 standarti (Battle)
   Breakpointlar: Mobile 320-767, Tablet 768-1023, Laptop 1024-1439, Desktop 1440+
   Faqat UI — battle logikasi o'zgarmaydi.
   ============================================================ */

.bt-scope, .bt-scope * { box-sizing: border-box; }
.bt-scope img, .bt-scope svg { max-width: 100%; height: auto; }
/* Popup va particle body ga qo'shiladi — ularga ham box-sizing kafolati */
.bt-invite-overlay, .bt-invite-overlay *, .bt-float-particle { box-sizing: border-box; }

/* Mobile (320-767px) */
@media (max-width: 767px) {
    .bt-grid.cols-3, .bt-grid.cols-2 { grid-template-columns: 1fr !important; }
    /* Grid/reyting bolalari overflow qilmasin (uzun ism kartani yormasin) */
    .bt-grid > *, .bt-podium > *, .bt-lb-row > *, .bt-result-grid > * { min-width: 0; }
    .bt-lb-row { grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; }
    .bt-card-h, .bt-hub-title { word-break: break-word; }
    .bt-hub-hero { padding: 22px 16px; }
    .bt-hub-title { font-size: 26px; }
    .bt-hub-sub { font-size: 14px; }
    .bt-arena { padding: 16px 14px; }
    .bt-arena-top { flex-direction: column; align-items: flex-start; gap: 10px; }
    .bt-result-grid { grid-template-columns: repeat(2, 1fr); }
    .bt-duel-vs { grid-template-columns: 1fr; }
    /* Test o'yin kartasi */
    .bt-card { padding: 16px 14px; }
    /* Javob tugmalari bosishga qulay */
    .bt-btn { min-height: 44px; }
    /* Taklif popup — kichik ekranga moslashsin */
    .bt-invite-modal { padding: 28px 20px 24px; max-width: 94vw; }
    .bt-invite-title { font-size: 18px; }
    .bt-invite-icon { font-size: 46px; }
    .bt-invite-btns { flex-direction: column; }
    .bt-invite-btn { width: 100%; min-height: 46px; }
    /* Floating particle biroz kichikroq */
    .bt-float-particle { font-size: 24px; }
}

/* Juda kichik telefon (320-400px) */
@media (max-width: 400px) {
    .bt-hub-title { font-size: 22px; }
    .bt-arena { padding: 14px 10px; }
    .bt-result-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .bt-invite-modal { padding: 24px 16px 20px; }
    .bt-invite-timer-ring { width: 78px; height: 78px; }
    .bt-invite-timer-ring svg { width: 78px; height: 78px; }
    /* Podium 320px da chiqib ketmasin — minmax(0,1fr) + siqiq */
    .bt-podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    .bt-lb-row { grid-template-columns: 30px minmax(0,1fr) auto; gap: 8px; padding: 10px 10px; }
}

/* Tablet (768-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .bt-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
    .bt-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .bt-result-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Laptop va Desktop — asosiy dizayn (grid allaqachon mos) */
@media (min-width: 1024px) {
    .bt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Landscape telefon — popup scroll qilinadi */
@media (max-height: 520px) and (max-width: 900px) {
    .bt-invite-overlay { align-items: flex-start; overflow-y: auto; padding-top: 12px; }
}

/* ============================================================
   RAQIBLAR RO'YXATI (guruhdoshlar) — har qatorda "Battle yuborish"
   ============================================================ */
.bt-opp-list { display: flex; flex-direction: column; gap: 8px; }
.bt-opp-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 12px;
  background: var(--bt-card2); border: 1px solid var(--bt-border);
  transition: transform .15s, border-color .15s;
}
.bt-opp-row:hover { transform: translateX(4px); border-color: var(--bt-violet); }
.bt-opp-name { font-weight: 700; font-family: 'Syne', sans-serif; color: var(--bt-text); min-width: 0; word-break: break-word; }
.bt-opp-btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
@media (max-width: 400px) {
  .bt-opp-row { flex-direction: column; align-items: stretch; }
  .bt-opp-btn { width: 100%; }
}
