/* IQrate — "Aurora" dizayn tizimi */
:root {
  --bg: #0b0a1c; --bg2: #120f2b;
  --surface: rgba(255,255,255,.055); --surface-2: rgba(255,255,255,.085); --line: rgba(255,255,255,.09);
  --text: #f0eeff; --muted: #a5a0cd; --faint: #6f6a99;
  --violet: #7c5cff; --violet-2: #9b85ff; --cyan: #22d3ee; --pink: #ff5fa2; --green: #2bd4a4; --gold: #ffc857; --red: #ff5f7a;
  --grad: linear-gradient(135deg, #7c5cff 0%, #5b8cff 45%, #22d3ee 100%);
  --grad-hot: linear-gradient(90deg, #9b85ff, #22d3ee 55%, #ff5fa2);
  --pz: #ece9ff; --pz-accent: #ff5fa2; --cell: rgba(255,255,255,.045);
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --r: 22px; --r-sm: 14px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f2ff; --bg2: #ebe7ff;
  --surface: rgba(255,255,255,.78); --surface-2: #ffffff; --line: rgba(40,30,110,.09);
  --text: #17142e; --muted: #625d8a; --faint: #9a95bd;
  --pz: #231d52; --pz-accent: #e43f8a; --cell: rgba(124,92,255,.06);
  --shadow: 0 20px 40px -24px rgba(60,40,160,.35);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Telegram to'liq ekranda: tizim paneli + Telegram tugmalari (Close, ⋯) egallagan joy */
:root {
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px));
}
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 500 15px/1.5 var(--body);
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
  padding-bottom: max(env(safe-area-inset-bottom), var(--safe-bottom));
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: var(--violet-2); }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.01em; margin: 0 0 6px; line-height: 1.15; }
h1 { font-size: 30px; font-weight: 800; }
h1 em { font-style: normal; background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center-t { text-align: center; }
.row { display: flex; align-items: center; } .gap8 { gap: 8px; } .wrap { flex-wrap: wrap; }
.grad { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- aurora fon ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, var(--bg2), var(--bg)); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 22s ease-in-out infinite alternate; }
.aurora .a1 { width: 420px; height: 420px; background: #6a4dff; top: -160px; left: -140px; }
.aurora .a2 { width: 360px; height: 360px; background: #0fb5d4; top: 30%; right: -180px; animation-delay: -7s; opacity: .35; }
.aurora .a3 { width: 380px; height: 380px; background: #e0418e; bottom: -200px; left: 10%; animation-delay: -13s; opacity: .3; }
:root[data-theme="light"] .aurora i { opacity: .22; }
.aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(#000, transparent 70%); }
:root[data-theme="light"] .aurora::after { background-image: radial-gradient(rgba(60,40,160,.08) 1px, transparent 1px); }
@keyframes drift { to { transform: translate(60px, 80px) scale(1.15); } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + var(--safe-top)) 16px 12px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 55%, transparent); }
.logo { display: flex; align-items: center; gap: 9px; font: 800 18px var(--display); }
.mark { width: 26px; height: 26px; border-radius: 50%; background: var(--violet); position: relative; box-shadow: 0 0 18px rgba(124,92,255,.6); }
.mark::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--bg); }
.mark::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); top: 0; right: 0; }
.top-r { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 700; color: var(--muted); transition: .2s; }
.seg button.on { background: var(--grad); color: #fff; box-shadow: 0 4px 14px -4px rgba(124,92,255,.7); }
.icon-btn { width: 36px; height: 36px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; font-size: 16px; }

/* ---------- layout ---------- */
main { max-width: 520px; margin: 0 auto; padding: 6px 16px 32px; }
.screen { display: none; animation: enter .45s cubic-bezier(.2,.8,.2,1); }
.screen.on { display: block; }
.screen.center.on { display: flex; min-height: 75vh; align-items: center; justify-content: center; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); margin-bottom: 14px; }
.card.pad { padding: 22px 18px; }
.glow { position: relative; isolation: isolate; }
.glow::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(135deg, rgba(155,133,255,.7), transparent 40%, transparent 60%, rgba(34,211,238,.6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.stack { display: grid; gap: 10px; margin-top: 4px; }
.head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: var(--r-sm); background: var(--grad); color: #fff; font-weight: 800; letter-spacing: .01em; box-shadow: 0 10px 26px -10px rgba(124,92,255,.8); transition: transform .15s, filter .2s, opacity .2s; text-decoration: none; width: 100%; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.sm { padding: 9px 14px; font-size: 13px; width: auto; }
.btn.xl { padding: 17px 20px; font-size: 16px; border-radius: 18px; }
.btn.ghost { background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: none; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 60%, 100% { left: 130%; } }

/* ---------- hero ---------- */
.hero { padding: 26px 20px 20px; overflow: hidden; }
.orbit { position: relative; width: 132px; height: 132px; margin: 0 auto 14px; }
.orbit .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(155,133,255,.35); animation: spin 14s linear infinite; }
.orbit .r2 { inset: 18px; border-color: rgba(34,211,238,.35); animation-duration: 9s; animation-direction: reverse; }
.orbit .r3 { inset: 36px; border-color: rgba(255,95,162,.35); animation-duration: 6s; }
.orbit .ring b { position: absolute; width: 10px; height: 10px; border-radius: 50%; top: -5px; left: calc(50% - 5px); background: var(--violet-2); box-shadow: 0 0 14px var(--violet-2); }
.orbit .r2 b { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.orbit .r3 b { background: var(--pink); box-shadow: 0 0 14px var(--pink); width: 8px; height: 8px; top: -4px; }
.orbit .core { position: absolute; inset: 50px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font: 800 12px var(--display); color: #fff; box-shadow: 0 0 30px rgba(124,92,255,.7); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero { text-align: center; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.25); padding: 5px 10px; border-radius: 99px; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.hero-meta div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 4px; }
.hero-meta b { display: block; font: 700 18px var(--display); }
.hero-meta span { font-size: 11.5px; color: var(--muted); }

.resume { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; flex-wrap: wrap; }
.duel-banner { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-color: rgba(255,95,162,.35); }
.db-ico { font-size: 22px; } .db-t { flex: 1; font-size: 14px; }

/* ---------- ticker ---------- */
.ticker { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43,212,164,.6); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(43,212,164,0); } }
.tk-l { font-size: 12px; font-weight: 800; color: var(--green); flex: none; }
.tk-track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tk-run { display: inline-flex; gap: 18px; white-space: nowrap; animation: marquee 40s linear infinite; font-size: 13px; }
.tk-run b { font-family: var(--display); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { position: relative; text-align: left; padding: 16px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-height: 118px; overflow: hidden; transition: transform .15s; }
.tile:active { transform: scale(.97); }
.tile::after { content: ""; position: absolute; width: 90px; height: 90px; border-radius: 50%; right: -30px; top: -30px; filter: blur(26px); opacity: .45; }
.t-daily::after { background: var(--violet); } .t-eq::after { background: var(--pink); } .t-duel::after { background: var(--red); }
.t-lb::after { background: var(--gold); } .t-my::after { background: var(--cyan); } .t-inv::after { background: var(--green); }
.t-ico { font-size: 24px; margin-bottom: 6px; }
.tile b { font-family: var(--display); font-size: 14px; font-weight: 600; }
.tile small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.badge { position: absolute; top: 12px; right: 12px; font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--pink); color: #fff; }
.foot { text-align: center; margin-top: 18px; }

/* ---------- form ---------- */
.fld { display: block; margin: 16px 0 0; }
.fld > span { display: block; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.fld input { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); outline: none; font-size: 16px; font-weight: 600; transition: border .2s, box-shadow .2s; }
.fld input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.18); }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chips button, .flags button { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 700; transition: .2s; }
.chips button.on, .flags button.on { border-color: transparent; background: var(--grad); color: #fff; box-shadow: 0 8px 20px -10px rgba(124,92,255,.9); }
.flags { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.flags button { padding: 8px 0; font-size: 22px; line-height: 1; }
.err { color: var(--red); font-weight: 700; min-height: 20px; margin: 12px 0 4px; font-size: 14px; }
.hint { margin-top: 12px; text-align: center; }

/* ---------- quiz ---------- */
.qbar { margin-bottom: 12px; }
.qbar-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.qnum { font: 700 15px var(--display); }
.qnum small { color: var(--muted); font-weight: 500; }
.timer { font: 600 13px var(--display); color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 4px 10px; border-radius: 99px; font-variant-numeric: tabular-nums; }
.progress { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-bottom: 10px; }
.progress i { display: block; height: 100%; width: 0; background: var(--grad-hot); border-radius: inherit; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.dots { display: grid; grid-template-columns: repeat(20, 1fr); gap: 3px; }
.dots button { height: 6px; border-radius: 99px; background: var(--surface-2); padding: 0; }
.dots button.done { background: var(--violet-2); }
.dots button.cur { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.qcard { padding: 14px; }
.qhint { text-align: center; margin-bottom: 10px; }
.matrix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; color: var(--pz); }
.matrix > div { aspect-ratio: 1; border-radius: 14px; background: var(--cell); border: 1px solid var(--line); display: grid; place-items: center; padding: 6%; }
.matrix svg, .opts svg { width: 100%; height: 100%; display: block; overflow: visible; }
.matrix .slot { border: 2px dashed rgba(155,133,255,.55); background: rgba(124,92,255,.08); position: relative; }
.matrix .slot:empty::after { content: "?"; font: 800 34px var(--display); background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; animation: breathe 2s ease-in-out infinite; }
.matrix .slot.filled { border-style: solid; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.15) inset; animation: pop .35s; }
@keyframes breathe { 50% { opacity: .45; transform: scale(.9); } }
@keyframes pop { 40% { transform: scale(1.06); } }
.opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; color: var(--pz); margin-bottom: 14px; }
.opts button { position: relative; aspect-ratio: 1; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); padding: 14%; min-width: 0; transition: transform .15s, border-color .2s, background .2s; }
.opts button:active { transform: scale(.95); }
.opts button.sel { border-color: var(--violet); background: rgba(124,92,255,.16); box-shadow: 0 10px 24px -12px rgba(124,92,255,.9); }
.opts button .k { position: absolute; top: 6px; left: 8px; font: 700 10px var(--display); color: var(--faint); }
.opts button.right { border-color: var(--green); background: rgba(43,212,164,.15); }
.opts button.wrong { border-color: var(--red); background: rgba(255,95,122,.12); }
.qnav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 10px; position: relative; z-index: 2; }

/* ---------- calculating ---------- */
.calc { text-align: center; width: 100%; }
.calc-orb { position: relative; width: 160px; height: 160px; margin: 0 auto 22px; display: grid; place-items: center; }
.calc-orb i { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: var(--violet-2); animation: spin 1.4s linear infinite; }
.calc-orb i:nth-child(2) { inset: 16px; border-top-color: var(--cyan); animation-duration: 1s; animation-direction: reverse; }
.calc-orb i:nth-child(3) { inset: 32px; border-top-color: var(--pink); animation-duration: .8s; }
.calc-orb span { font: 800 26px var(--display); }
.steps { list-style: none; padding: 0; margin: 18px auto 0; max-width: 320px; text-align: left; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 9px 0; color: var(--faint); font-weight: 600; transition: color .3s; }
.steps li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: .3s; }
.steps li.on { color: var(--text); }
.steps li.on::before { border-color: var(--cyan); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: var(--text); }
.steps li.done::before { content: "✓"; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #05221c; background: var(--green); border-color: var(--green); animation: none; }

/* ---------- paywall ---------- */
.pw { text-align: center; }
.pw-badge { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 900; color: #05221c; background: linear-gradient(135deg, var(--green), var(--cyan)); box-shadow: 0 0 30px rgba(43,212,164,.5); }
.pw-blur { display: flex; justify-content: center; gap: 2px; margin: 10px 0 6px; font: 800 72px/1 var(--display); filter: blur(12px); user-select: none; }
.pw-blur span { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; animation: flicker 1.8s ease-in-out infinite; }
.pw-blur span:nth-child(2) { animation-delay: .3s; } .pw-blur span:nth-child(3) { animation-delay: .6s; }
@keyframes flicker { 50% { opacity: .5; } }
.benefits { list-style: none; padding: 0; margin: 10px 0 16px; text-align: left; display: grid; gap: 8px; }
.benefits li { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.benefits li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: rgba(124,92,255,.2); color: var(--violet-2); }
.price { padding: 16px; border-radius: 18px; background: linear-gradient(135deg, rgba(124,92,255,.14), rgba(34,211,238,.08)); border: 1px solid rgba(124,92,255,.3); margin-bottom: 12px; }
.price-old { display: flex; justify-content: center; gap: 8px; align-items: baseline; color: var(--muted); font-size: 13px; }
.price-old s { color: var(--red); font-weight: 700; }
.price-new { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 4px 0; }
.price-new b { font: 800 32px var(--display); }
.sale { font-style: normal; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 99px; background: var(--pink); color: #fff; }
.pw-note { font-size: 13px; font-weight: 700; padding: 9px 12px; border-radius: 12px; background: rgba(255,200,87,.12); border: 1px solid rgba(255,200,87,.3); color: var(--gold); margin-bottom: 12px; }
.pw .btn + .btn { margin-top: 8px; }
.pw-status { min-height: 20px; margin: 10px 0 4px; font-weight: 700; color: var(--cyan); }

/* ---------- result ---------- */
.res-hero { text-align: center; overflow: hidden; }
.gauge { position: relative; width: 230px; height: 230px; margin: 4px auto 12px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.g-track { fill: none; stroke: rgba(124,92,255,.14); stroke-width: 16; }
.g-val { fill: none; stroke: url(#gGrad); stroke-width: 16; stroke-linecap: round; stroke-dasharray: 628.3; stroke-dashoffset: 628.3; transition: stroke-dashoffset 2.2s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 0 10px rgba(124,92,255,.6)); }
.g-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.g-in small { color: var(--muted); font-size: 12px; font-weight: 700; }
.g-in b { font: 800 64px/1.05 var(--display); background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lvl { font-size: 13px; font-weight: 800; padding: 4px 12px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 4px; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.stats3 > div { padding: 12px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.stats3 b { display: block; font: 700 18px var(--display); }
.stats3 small { color: var(--muted); font-size: 12px; }
.curve svg { width: 100%; height: auto; display: block; }
.skills { display: grid; gap: 14px; }
.sk-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; }
.sk-row .ic { font-size: 18px; }
.sk-row .nm { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.sk-bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sk-bar i { display: block; height: 100%; width: 0; border-radius: inherit; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.sk-row b { font: 700 15px var(--display); min-width: 46px; text-align: right; }
.best { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(43,212,164,.1); border: 1px solid rgba(43,212,164,.25); color: var(--green); font-weight: 700; font-size: 14px; }
.cert-prev { display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 10px; background: var(--surface-2); min-height: 120px; }
.cert-prev img { width: 100%; display: block; }
.big-num { font: 800 64px/1.1 var(--display); margin: 6px 0; }

/* ---------- lists ---------- */
.list { padding: 6px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; }
.li + .li { border-top: 1px solid var(--line); border-radius: 0; }
.li .pos { width: 30px; text-align: center; font: 700 14px var(--display); color: var(--muted); }
.li .fl { font-size: 20px; }
.li .nm { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .sc { font: 700 16px var(--display); }
.li.btnish { width: 100%; text-align: left; }
.li-cert { padding-bottom: 10px; }
.li-cert > .btn { width: calc(100% - 24px); margin: 0 12px; padding: 10px 14px; }
.li-cert + .li, .li + .li-cert, .li-cert + .li-cert { border-top: 1px solid var(--line); border-radius: 0; }
.story-prev { display: block; width: min(100%, 230px); aspect-ratio: 9 / 16; margin: 14px auto; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); }
.cert-help { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cert-help p { margin: 0 0 10px; text-align: center; }
.cert-help .btn { width: 100%; }
.empty { padding: 30px 16px; text-align: center; color: var(--muted); }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; align-items: end; margin-bottom: 14px; }
.pd { text-align: center; padding: 14px 6px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.pd .md { font-size: 26px; } .pd .nm { font-weight: 800; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd .sc { font: 800 22px var(--display); }
.pd.p1 { padding: 22px 6px; border-color: rgba(255,200,87,.45); background: linear-gradient(180deg, rgba(255,200,87,.16), var(--surface)); }
.pd.p1 .sc { color: var(--gold); }
.pill { display: inline-block; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 13px; margin-bottom: 12px; }

/* ---------- EQ ---------- */
.eq-card { min-height: 150px; display: flex; flex-direction: column; justify-content: center; margin-top: 14px; }
.eq-n { font: 700 12px var(--display); color: var(--cyan); margin-bottom: 8px; }
.eq-q { font-size: 18px; font-weight: 700; line-height: 1.4; margin: 0; }
.likert { display: grid; gap: 8px; margin-bottom: 12px; }
.likert button { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; text-align: left; transition: .15s; }
.likert button i { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 10px var(--c); }
.likert button.sel, .likert button:active { border-color: var(--violet); background: rgba(124,92,255,.16); }

/* ---------- invite / duel ---------- */
.gift { font-size: 44px; text-align: center; margin-bottom: 6px; }
#s-invite h2, #s-duel h2, #s-invite #invSub, #s-duel .muted { text-align: center; }
.linkbox { margin: 16px 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px dashed rgba(155,133,255,.5); font: 600 13px/1.4 ui-monospace, monospace; word-break: break-all; text-align: center; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 16px 0; text-align: center; }
.vs .pl { padding: 14px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.vs .pl b { display: block; font: 800 22px var(--display); }
.vs .pl.win { border-color: var(--gold); background: rgba(255,200,87,.1); }
.vs .x { font: 800 16px var(--display); color: var(--pink); }

/* ---------- toast / modal / confetti ---------- */
.toast { position: fixed; left: 50%; bottom: calc(28px + var(--safe-bottom)); transform: translate(-50%, 30px); opacity: 0; padding: 12px 18px; border-radius: 14px; background: #1d1a3a; color: #fff; font-weight: 700; box-shadow: var(--shadow); transition: .3s; z-index: 50; pointer-events: none; max-width: 90vw; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.top { top: calc(72px + var(--safe-top)); bottom: auto; transform: translate(-50%, -20px); text-align: center; }
.toast.top.on { transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(5,4,15,.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-c { width: 100%; max-width: 360px; text-align: center; background: var(--bg2); }
.modal-c p { font-weight: 700; font-size: 16px; margin-bottom: 16px; }
.modal-c .row > * { flex: 1; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; width: 100%; height: 100%; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 360px) { h1 { font-size: 25px; } .flags { grid-template-columns: repeat(5, 1fr); } .g-in b { font-size: 54px; } }

/* ---------- to'lov usullari ---------- */
#pwOpen { justify-content: space-between; }
#pwOpen .arrow { transition: transform .2s ease; }
#pwOpen[aria-expanded="true"] .arrow { transform: rotate(90deg); }
.pw-choice { margin-top: 10px; animation: pw-choice-in .22s ease; }
.pw-choice p { margin: 0 0 8px; }
@keyframes pw-choice-in { from { opacity: 0; transform: translateY(-6px); } }
.pw-methods { display: grid; gap: 8px; }
.pw-methods .btn { justify-content: space-between; }
.pw-methods .pm-amt { font: 700 14px var(--display); opacity: .92; }
.pw-methods .btn.pm { background: var(--surface); border: 1px solid var(--line); color: var(--text); box-shadow: none; padding: 14px 18px; }
.pm-click .pm-name::before, .pm-payme .pm-name::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 9px; vertical-align: 0; }
.pm-click .pm-name::before { background: #00a6ff; box-shadow: 0 0 8px #00a6ff; }
.pm-payme .pm-name::before { background: #33cccc; box-shadow: 0 0 8px #33cccc; }

/* Duel: vaqt va statistika */
.timer.low { color: var(--pink); }
.vs .pl .pl-m { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.duel-rule { margin: 10px 0 0; text-align: center; font-weight: 600; }
.duel-count { margin: 6px 0 14px; text-align: center; font: 800 48px var(--display); color: var(--pink); }
.duel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; text-align: center; }
.duel-stats div { padding: 10px 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.duel-stats b { display: block; font: 800 20px var(--display); }
.duel-stats small { color: var(--muted); }
