/* ===========================================================================
   Farzin — Maskan shaxmat bo‘limining dizayn tizimi.
   O‘ziga xos ko‘rinish: siyohrang tun foni, kahrabo (amber) → marjon
   gradienti, firuza «onlayn» rangi, shisha panellar. Qorong‘i va yorug‘
   mavzu `html[data-bs-theme]` dan (sayt bilan bitta sozlama).
   =========================================================================== */
:root {
  --fz-bg: #f5f3ee;
  --fz-bg-2: #ebe8e0;
  --fz-surface: #ffffff;
  --fz-surface-2: #f8f6f1;
  --fz-surface-3: #efece4;
  --fz-glass: rgba(255, 255, 255, .72);
  --fz-line: rgba(24, 22, 40, .08);
  --fz-line-2: rgba(24, 22, 40, .15);
  --fz-text: #16151d;
  --fz-text-2: #3b3a47;
  --fz-muted: #6b6a78;
  --fz-faint: #a7a5b2;
  --fz-a: #e8930c;
  --fz-b: #f2594b;
  --fz-c: #0f9f8f;
  --fz-ok: #0f9f6e;
  --fz-bad: #e0344f;
  --fz-info: #4964e6;
  --fz-gold: #d89a00;
  --fz-silver: #8d98a8;
  --fz-bronze: #b8743e;
  --fz-grad: linear-gradient(120deg, #f5a524 0%, #f2594b 100%);
  --fz-grad-soft: linear-gradient(120deg, rgba(245, 165, 36, .14), rgba(242, 89, 75, .12));
  --fz-shadow: 0 1px 2px rgba(20, 18, 40, .04), 0 8px 24px -12px rgba(20, 18, 40, .14);
  --fz-shadow-lg: 0 30px 60px -30px rgba(30, 20, 60, .35);
  --fz-radius: 18px;
  --fz-radius-sm: 12px;
  --fz-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --fz-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --fz-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --fz-header: 64px;
  color-scheme: light;
}
html[data-bs-theme="dark"] {
  --fz-bg: #0a0b10;
  --fz-bg-2: #0f1118;
  --fz-surface: #13151d;
  --fz-surface-2: #181b25;
  --fz-surface-3: #20242f;
  --fz-glass: rgba(19, 21, 29, .7);
  --fz-line: rgba(255, 255, 255, .07);
  --fz-line-2: rgba(255, 255, 255, .13);
  --fz-text: #eff0f6;
  --fz-text-2: #c9cbd8;
  --fz-muted: #8b8fa3;
  --fz-faint: #555a6e;
  --fz-a: #f7b23b;
  --fz-b: #ff6b5b;
  --fz-c: #2dd4bf;
  --fz-ok: #34d399;
  --fz-bad: #ff5470;
  --fz-info: #8aa2ff;
  --fz-grad-soft: linear-gradient(120deg, rgba(247, 178, 59, .16), rgba(255, 107, 91, .12));
  --fz-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --fz-shadow-lg: 0 40px 80px -36px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.fz {
  margin: 0; min-height: 100vh; background: var(--fz-bg); color: var(--fz-text);
  font: 500 15px/1.55 var(--fz-sans); -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
.fz a { color: inherit; text-decoration: none; }
.fz img { max-width: 100%; }
.fz button, .fz input, .fz select, .fz textarea { font: inherit; color: inherit; }
.fz [hidden] { display: none !important; }
.fz h1, .fz h2, .fz h3, .fz h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.fz-display { font-family: var(--fz-display); letter-spacing: -.035em; font-weight: 700; }
.fz :focus-visible { outline: 2.5px solid var(--fz-a); outline-offset: 2px; border-radius: 8px; }
.fz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fz-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--fz-text); color: var(--fz-bg); font-weight: 700; transition: top .15s; }
.fz-skip:focus { top: 10px; }
.fz-muted { color: var(--fz-muted); }
.fz-mono { font-family: var(--fz-mono); font-variant-numeric: tabular-nums; }
.fz-grad-text { background: var(--fz-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ------------------------------------------------------------------ fon */
.fz-aura { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fz-aura::before, .fz-aura::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.fz-aura::before { width: 620px; height: 620px; left: -180px; top: -260px; background: radial-gradient(circle, rgba(245, 165, 36, .35), transparent 65%); }
.fz-aura::after { width: 560px; height: 560px; right: -200px; top: 120px; background: radial-gradient(circle, rgba(242, 89, 75, .22), transparent 65%); }
html[data-bs-theme="dark"] .fz-aura::before { opacity: .45; }
.fz-grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--fz-line) 1px, transparent 1px), linear-gradient(90deg, var(--fz-line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); }

/* ------------------------------------------------------------------ sarlavha */
.fz-header { position: sticky; top: 0; z-index: 50; height: var(--fz-header);
  background: var(--fz-glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--fz-line); }
.fz-header__in { height: 100%; max-width: 1360px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.fz-logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fz-logo svg { width: 36px; height: 36px; filter: drop-shadow(0 6px 14px rgba(242, 89, 75, .35)); transition: transform .3s cubic-bezier(.2,.9,.3,1.4); }
.fz-logo:hover svg { transform: rotate(-8deg) scale(1.06); }
.fz-logo__name { font: 700 1.2rem/1 var(--fz-display); letter-spacing: -.04em; }
.fz-logo__sub { display: block; font: 600 .62rem/1 var(--fz-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--fz-muted); margin-top: 4px; }
/* Menyu siqilishi mumkin, o‘ng qism (hisob menyusi) esa hech qachon ekrandan chiqmaydi */
.fz-nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; min-width: 0; overflow: hidden; }
.fz-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 11px; font-weight: 700; font-size: .92rem;
  color: var(--fz-text-2); transition: background .15s, color .15s; white-space: nowrap; }
.fz-nav a i { font-size: .95rem; opacity: .75; }
.fz-nav a:hover { background: var(--fz-surface-3); color: var(--fz-text); }
.fz-nav a.is-active { color: var(--fz-text); background: var(--fz-surface-3); box-shadow: inset 0 0 0 1px var(--fz-line); }
.fz-nav a.is-active i { color: var(--fz-a); opacity: 1; }
.fz-nav .fz-soon { font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px;
  border-radius: 6px; background: var(--fz-grad-soft); color: var(--fz-a); }
.fz-header__right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.fz-icon-btn { position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 1px solid transparent; background: transparent; color: var(--fz-text-2); cursor: pointer; transition: background .15s, border-color .15s; }
.fz-icon-btn:hover { background: var(--fz-surface-3); color: var(--fz-text); }
.fz-icon-btn .fz-dot { position: absolute; top: 8px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--fz-b); box-shadow: 0 0 0 2px var(--fz-surface); }
.fz-live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-weight: 800; font-size: .82rem;
  color: #fff; background: var(--fz-grad); box-shadow: 0 8px 20px -8px rgba(242, 89, 75, .7); }
.fz-live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: fz-pulse 1.4s infinite; }

/* menyu (details) */
.fz-menu { position: relative; }
.fz-menu > summary { list-style: none; cursor: pointer; }
.fz-menu > summary::-webkit-details-marker { display: none; }
.fz-menu__panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 8px; border-radius: 16px; z-index: 60;
  background: var(--fz-surface); border: 1px solid var(--fz-line-2); box-shadow: var(--fz-shadow-lg); animation: fz-pop .16s ease-out; }
.fz-menu__panel a, .fz-menu__panel button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 10px;
  border: 0; background: transparent; text-align: left; font-weight: 600; cursor: pointer; color: var(--fz-text-2); }
.fz-menu__panel a:hover, .fz-menu__panel button:hover { background: var(--fz-surface-3); color: var(--fz-text); }
.fz-menu__panel .is-current { color: var(--fz-a); }
.fz-menu__panel hr { border: 0; border-top: 1px solid var(--fz-line); margin: 6px 4px; }
.fz-menu__head { padding: 10px 12px 12px; display: flex; gap: 12px; align-items: center; }
.fz-menu__head b { display: block; }
.fz-menu__head small { color: var(--fz-muted); }
.fz-lang-code { font: 800 .74rem/1 var(--fz-sans); letter-spacing: .04em; }

/* qidiruv */
.fz-search { position: relative; }
.fz-search__box { display: flex; align-items: center; gap: 8px; height: 40px; width: 220px; padding: 0 12px; border-radius: 12px;
  background: var(--fz-surface-3); border: 1px solid transparent; transition: width .25s, border-color .15s, background .15s; }
.fz-search__box:focus-within { width: 300px; border-color: var(--fz-line-2); background: var(--fz-surface); }
.fz-search__box input { border: 0; outline: 0; background: transparent; width: 100%; font-weight: 600; font-size: .9rem; }
.fz-search__box kbd { font: 700 .7rem var(--fz-mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--fz-line-2); color: var(--fz-muted); }
.fz-search__results { position: absolute; top: calc(100% + 10px); left: 0; right: 0; min-width: 300px; z-index: 60; padding: 8px; border-radius: 16px;
  background: var(--fz-surface); border: 1px solid var(--fz-line-2); box-shadow: var(--fz-shadow-lg); }
.fz-search__results h6 { margin: 6px 10px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fz-muted); }
.fz-search__results a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-weight: 700; }
.fz-search__results a:hover, .fz-search__results a.is-hl { background: var(--fz-surface-3); }
.fz-search__results small { margin-left: auto; color: var(--fz-muted); font-family: var(--fz-mono); }

/* ------------------------------------------------------------------ asosiy */
.fz-main { flex: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 28px 20px 64px; position: relative; }
.fz-main--wide { max-width: none; padding: 16px 16px 32px; }
.fz-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fz-page-head h1 { font: 700 clamp(1.7rem, 3.4vw, 2.5rem)/1.05 var(--fz-display); letter-spacing: -.04em; }
.fz-page-head p { margin: 8px 0 0; color: var(--fz-muted); max-width: 60ch; }
.fz-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--fz-a); }
.fz-section { margin-top: 44px; }
.fz-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fz-section__head h2 { font: 700 1.25rem/1.2 var(--fz-display); letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.fz-section__head a { color: var(--fz-muted); font-weight: 700; font-size: .9rem; }
.fz-section__head a:hover { color: var(--fz-a); }

/* ------------------------------------------------------------------ tugmalar */
.fz-btn { --bg: var(--fz-surface-3); --fg: var(--fz-text); display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 0 18px; border-radius: 13px; border: 1px solid transparent; background: var(--bg); color: var(--fg);
  font-weight: 800; font-size: .92rem; cursor: pointer; white-space: nowrap; user-select: none;
  transition: transform .12s ease, box-shadow .18s ease, background .15s, opacity .15s; }
/* `.fz button { color: inherit }` dan ustun: aks holda <button> yozuvi fon rangida qolib ketadi */
.fz .fz-btn { color: var(--fg); }
.fz-btn:hover { transform: translateY(-1px); }
.fz-btn:active { transform: translateY(0) scale(.98); }
.fz-btn[disabled], .fz-btn.is-disabled { opacity: .45; pointer-events: none; }
.fz-btn--primary { --fg: #fff; background: var(--fz-grad); box-shadow: 0 10px 24px -10px rgba(242, 89, 75, .8), inset 0 1px 0 rgba(255,255,255,.25); }
.fz-btn--primary:hover { box-shadow: 0 16px 32px -12px rgba(242, 89, 75, .9), inset 0 1px 0 rgba(255,255,255,.25); }
.fz-btn--ghost { --bg: transparent; border-color: var(--fz-line-2); }
.fz-btn--ghost:hover { --bg: var(--fz-surface-3); }
.fz-btn--dark { --bg: var(--fz-text); --fg: var(--fz-bg); }
.fz-btn--ok { --bg: color-mix(in srgb, var(--fz-ok) 16%, transparent); --fg: var(--fz-ok); }
.fz-btn--danger { --bg: color-mix(in srgb, var(--fz-bad) 14%, transparent); --fg: var(--fz-bad); }
.fz-btn--lg { min-height: 54px; padding: 0 26px; font-size: 1rem; border-radius: 16px; }
.fz-btn--sm { min-height: 34px; padding: 0 12px; border-radius: 10px; font-size: .82rem; }
.fz-btn--block { width: 100%; }
.fz-btn--icon { width: 42px; padding: 0; }
.fz-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------------ kartochka va ro‘yxat */
.fz-card { position: relative; background: var(--fz-surface); border: 1px solid var(--fz-line); border-radius: var(--fz-radius); box-shadow: var(--fz-shadow); }
.fz-card--pad { padding: 22px; }
.fz-card--hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.fz-card--hover:hover { transform: translateY(-3px); box-shadow: var(--fz-shadow-lg); border-color: var(--fz-line-2); }
.fz-card__title { font-weight: 800; font-size: 1rem; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fz-card__title i { color: var(--fz-a); }
.fz-grid { display: grid; gap: 18px; }
.fz-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.fz-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.fz-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.fz-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.fz-list { list-style: none; margin: 0; padding: 0; }
.fz-list > li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--fz-line); }
.fz-list > li:last-child { border-bottom: 0; }
.fz-empty { text-align: center; padding: 38px 18px; color: var(--fz-muted); }
.fz-empty i { font-size: 2rem; opacity: .5; margin-bottom: 10px; display: block; }

.fz-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800;
  background: var(--fz-surface-3); color: var(--fz-text-2); white-space: nowrap; }
.fz-chip--live { color: #fff; background: var(--fz-b); }
.fz-chip--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: fz-pulse 1.4s infinite; }
.fz-chip--ok { color: var(--fz-ok); background: color-mix(in srgb, var(--fz-ok) 14%, transparent); }
.fz-chip--bad { color: var(--fz-bad); background: color-mix(in srgb, var(--fz-bad) 12%, transparent); }
.fz-chip--warm { color: var(--fz-a); background: var(--fz-grad-soft); }
.fz-chip--info { color: var(--fz-info); background: color-mix(in srgb, var(--fz-info) 13%, transparent); }

.fz-ava { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.fz-ava--txt { display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .02em;
  background: linear-gradient(140deg, hsl(var(--h) 70% 58%), hsl(calc(var(--h) + 40) 70% 46%)); }
.fz-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fz-user b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fz-user small { color: var(--fz-muted); font-size: .8rem; }
.fz-online { width: 9px; height: 9px; border-radius: 50%; background: var(--fz-faint); display: inline-block; flex-shrink: 0; }
.fz-online.is-on { background: var(--fz-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fz-ok) 20%, transparent); }
.fz-rating { font-family: var(--fz-mono); font-weight: 700; color: var(--fz-muted); font-size: .85rem; }
.fz-diff-up { color: var(--fz-ok); font-weight: 800; }
.fz-diff-down { color: var(--fz-bad); font-weight: 800; }

/* ------------------------------------------------------------------ tablar */
.fz-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--fz-surface-3); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.fz-tabs::-webkit-scrollbar { display: none; }
.fz-tabs a, .fz-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; border: 0; background: transparent;
  font-weight: 800; font-size: .86rem; color: var(--fz-muted); cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.fz-tabs a:hover, .fz-tabs button:hover { color: var(--fz-text); }
.fz-tabs .is-active { background: var(--fz-surface); color: var(--fz-text); box-shadow: var(--fz-shadow); }
.fz-tabs .fz-count { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: var(--fz-grad-soft); color: var(--fz-a); }

/* ------------------------------------------------------------------ jadval */
.fz-table-wrap { overflow-x: auto; border-radius: var(--fz-radius); }
.fz-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.fz-table th { text-align: left; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fz-muted);
  padding: 12px 14px; border-bottom: 1px solid var(--fz-line); white-space: nowrap; background: var(--fz-surface-2); position: sticky; top: 0; }
.fz-table td { padding: 11px 14px; border-bottom: 1px solid var(--fz-line); vertical-align: middle; }
.fz-table tr:last-child td { border-bottom: 0; }
.fz-table tbody tr { transition: background .12s; }
.fz-table tbody tr:hover { background: var(--fz-surface-2); }
.fz-table tr.is-me td { background: var(--fz-grad-soft); }
.fz-table .num { text-align: right; font-family: var(--fz-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fz-table .ctr { text-align: center; }
.fz-table .score { font: 800 1rem var(--fz-mono); }
.fz-rank { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; font-weight: 800; font-family: var(--fz-mono);
  background: var(--fz-surface-3); font-size: .85rem; }
.fz-rank--1 { background: linear-gradient(135deg, #ffd66b, #e3a008); color: #3b2600; }
.fz-rank--2 { background: linear-gradient(135deg, #eef1f6, #a9b3c2); color: #24303f; }
.fz-rank--3 { background: linear-gradient(135deg, #f1b98a, #b8743e); color: #3a1d06; }
.fz-res { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 800 .8rem var(--fz-mono); }
.fz-res--1 { background: color-mix(in srgb, var(--fz-ok) 18%, transparent); color: var(--fz-ok); }
.fz-res--0 { background: color-mix(in srgb, var(--fz-bad) 14%, transparent); color: var(--fz-bad); }
.fz-res--h { background: var(--fz-surface-3); color: var(--fz-text-2); }
.fz-res--b { background: color-mix(in srgb, var(--fz-info) 14%, transparent); color: var(--fz-info); }

/* ------------------------------------------------------------------ forma */
.fz-field { display: grid; gap: 7px; }
.fz-field > label, .fz-label { font-weight: 800; font-size: .84rem; color: var(--fz-text-2); }
.fz-field small, .fz-help { color: var(--fz-muted); font-size: .8rem; font-weight: 500; }
.fz-input, .fz-select, .fz-textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 13px; border: 1px solid var(--fz-line-2);
  background: var(--fz-surface-2); font-weight: 600; transition: border-color .15s, box-shadow .15s, background .15s; outline: 0; }
.fz-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.fz-input:focus, .fz-select:focus, .fz-textarea:focus { border-color: var(--fz-a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fz-a) 18%, transparent); background: var(--fz-surface); }
.fz-input[disabled], .fz-select[disabled], .fz-textarea[disabled] { opacity: .55; }
.fz-select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--fz-muted) 50%), linear-gradient(135deg, var(--fz-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.fz-errors { color: var(--fz-bad); font-size: .82rem; font-weight: 700; }
.fz-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; cursor: pointer; }
.fz-switch b { display: block; font-weight: 800; font-size: .92rem; }
.fz-switch small { color: var(--fz-muted); }
.fz-switch input { appearance: none; flex-shrink: 0; width: 46px; height: 28px; border-radius: 999px; background: var(--fz-surface-3); border: 1px solid var(--fz-line-2);
  position: relative; cursor: pointer; transition: background .2s; }
.fz-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.3,1.4,.5,1); }
.fz-switch input:checked { background: var(--fz-grad); border-color: transparent; }
.fz-switch input:checked::after { transform: translateX(18px); }
.fz-switch input:disabled { opacity: .4; }
.fz-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.fz-seg label { position: relative; cursor: pointer; }
.fz-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fz-seg span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--fz-line-2);
  font-weight: 800; font-size: .88rem; background: var(--fz-surface-2); transition: border-color .15s, background .15s, color .15s; }
.fz-seg input:checked + span { border-color: var(--fz-a); background: var(--fz-grad-soft); color: var(--fz-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fz-a) 15%, transparent); }
.fz-seg input:focus-visible + span { outline: 2.5px solid var(--fz-a); outline-offset: 2px; }
.fz-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px 18px; }

/* ------------------------------------------------------------------ xabarlar, oyna */
.fz-toasts { position: fixed; z-index: 90; right: 18px; bottom: 18px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.fz-toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 15px; background: var(--fz-surface); border: 1px solid var(--fz-line-2);
  box-shadow: var(--fz-shadow-lg); font-weight: 700; animation: fz-slide .25s ease-out; }
.fz-toast i { margin-top: 3px; color: var(--fz-a); }
.fz-toast--error i { color: var(--fz-bad); }
.fz-toast--success i { color: var(--fz-ok); }
.fz-toast button { margin-left: auto; border: 0; background: none; color: var(--fz-muted); cursor: pointer; }
.fz-modal { border: 0; padding: 0; border-radius: 24px; background: var(--fz-surface); color: var(--fz-text); width: min(480px, calc(100vw - 32px));
  box-shadow: var(--fz-shadow-lg); }
.fz-modal::backdrop { background: rgba(8, 8, 14, .55); backdrop-filter: blur(6px); }
.fz-modal[open] { animation: fz-pop .2s ease-out; }
.fz-modal__body { padding: 26px; }
.fz-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.fz-modal__head h3 { font: 700 1.2rem var(--fz-display); letter-spacing: -.03em; }
.fz-banner { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 16px; background: var(--fz-grad-soft);
  border: 1px solid color-mix(in srgb, var(--fz-a) 30%, transparent); font-weight: 700; margin-bottom: 18px; flex-wrap: wrap; }
.fz-banner i.fa-solid:first-child { color: var(--fz-a); font-size: 1.2rem; }
.fz-banner--bad { background: color-mix(in srgb, var(--fz-bad) 10%, transparent); border-color: color-mix(in srgb, var(--fz-bad) 30%, transparent); }
.fz-banner--bad i.fa-solid:first-child { color: var(--fz-bad); }
.fz-banner .fz-btn { margin-left: auto; }
.fz-conn { position: fixed; z-index: 95; top: calc(var(--fz-header) + 10px); left: 50%; transform: translateX(-50%); padding: 9px 16px; border-radius: 999px;
  background: var(--fz-text); color: var(--fz-bg); font-weight: 800; font-size: .85rem; display: flex; align-items: center; gap: 10px; box-shadow: var(--fz-shadow-lg); }

/* ------------------------------------------------------------------ pastki menyu (telefon) */
.fz-bottom-nav { display: none; }
.fz-footer { border-top: 1px solid var(--fz-line); padding: 26px 20px; color: var(--fz-muted); font-size: .86rem; }
.fz-footer__in { max-width: 1360px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.fz-footer a { font-weight: 700; }
.fz-footer a:hover { color: var(--fz-a); }
.fz-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ======================================================================
   Bosh sahifa
   ====================================================================== */
.fz-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 30px 0 18px; }
.fz-hero h1 { font: 700 clamp(2.4rem, 5.6vw, 4.4rem)/1 var(--fz-display); letter-spacing: -.05em; margin: 18px 0 18px; }
.fz-hero h1 em { font-style: normal; background: var(--fz-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fz-hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--fz-text-2); max-width: 54ch; margin: 0 0 28px; line-height: 1.65; }
.fz-hero__board { position: relative; width: min(100%, 520px); margin-left: auto; }
.fz-hero__board::before { content: ""; position: absolute; inset: -14% -10%; z-index: -1; background: radial-gradient(closest-side, rgba(245, 165, 36, .35), transparent); filter: blur(30px); }
.fz-hero__frame { padding: 14px; border-radius: 26px; background: linear-gradient(145deg, var(--fz-surface), var(--fz-surface-2)); border: 1px solid var(--fz-line-2);
  box-shadow: var(--fz-shadow-lg); transform: perspective(1400px) rotateY(-9deg) rotateX(5deg); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.fz-hero__board:hover .fz-hero__frame { transform: perspective(1400px) rotateY(-3deg) rotateX(2deg); }
.fz-hero__caption { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: .82rem; color: var(--fz-muted); font-weight: 700; padding: 0 4px; }
.fz-float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--fz-glass);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--fz-line-2); box-shadow: var(--fz-shadow-lg); font-weight: 800; font-size: .85rem;
  animation: fz-bob 6s ease-in-out infinite; }
.fz-float--a { left: -40px; top: 18%; }
.fz-float--b { right: -18px; bottom: 16%; animation-delay: -3s; }
.fz-float i { color: var(--fz-a); }
.fz-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; }
.fz-stat { padding: 18px 20px; border-radius: 18px; background: var(--fz-surface); border: 1px solid var(--fz-line); box-shadow: var(--fz-shadow); }
.fz-stat b { display: block; font: 700 1.75rem/1.1 var(--fz-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fz-stat span { color: var(--fz-muted); font-size: .84rem; font-weight: 700; }
.fz-stat i { float: right; color: var(--fz-a); opacity: .8; }

.fz-clocks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.fz-clock-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 104px; padding: 14px;
  border-radius: 18px; border: 1px solid var(--fz-line); background: var(--fz-surface); cursor: pointer; box-shadow: var(--fz-shadow);
  transition: transform .15s ease, border-color .15s, box-shadow .2s; overflow: hidden; }
.fz-clock-tile::before { content: ""; position: absolute; inset: 0; background: var(--fz-grad); opacity: 0; transition: opacity .2s; z-index: 0; }
.fz-clock-tile > * { position: relative; z-index: 1; }
.fz-clock-tile b { font: 700 1.7rem/1 var(--fz-display); letter-spacing: -.04em; }
.fz-clock-tile span { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fz-muted); }
.fz-clock-tile small { position: absolute; top: 8px; right: 10px; font-size: .68rem; font-weight: 800; color: var(--fz-ok); }
.fz-clock-tile:hover { transform: translateY(-3px); border-color: transparent; box-shadow: 0 18px 36px -16px rgba(242, 89, 75, .6); }
.fz-clock-tile:hover::before { opacity: 1; }
.fz-clock-tile:hover b, .fz-clock-tile:hover span, .fz-clock-tile:hover small { color: #fff; }
.fz-clock-tile.is-busy::before { opacity: 1; }
.fz-clock-tile.is-busy b, .fz-clock-tile.is-busy span { color: #fff; }
.fz-clock-tile--custom b { font-size: 1.3rem; }

.fz-feature { padding: 26px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.fz-feature__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: var(--c, var(--fz-grad));
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--fz-b) 80%, transparent); }
.fz-feature h3 { font: 700 1.15rem var(--fz-display); letter-spacing: -.03em; }
.fz-feature p { margin: 0; color: var(--fz-muted); }
.fz-feature .fz-go { margin-top: auto; font-weight: 800; color: var(--fz-a); display: inline-flex; align-items: center; gap: 8px; }
.fz-feature .fz-go i { transition: transform .2s; }
.fz-feature:hover .fz-go i { transform: translateX(4px); }

/* turnir kartochkasi */
.fz-cover { --c1: #f5a524; --c2: #f2594b; --c3: #7c3aed; }
.fz-cover--aurora { --c1: #f5a524; --c2: #f2594b; --c3: #b5179e; }
.fz-cover--ember { --c1: #ff7a18; --c2: #af002d; --c3: #319197; }
.fz-cover--ocean { --c1: #00c6ff; --c2: #0072ff; --c3: #1d2671; }
.fz-cover--royal { --c1: #a18cd1; --c2: #6a3093; --c3: #fbc2eb; }
.fz-cover--forest { --c1: #43e97b; --c2: #0f766e; --c3: #134e4a; }
.fz-cover--graphite { --c1: #6b7280; --c2: #1f2937; --c3: #f5a524; }
.fz-cover-bg { background: radial-gradient(120% 140% at 0% 0%, var(--c1) 0%, transparent 55%), radial-gradient(120% 120% at 100% 100%, var(--c3) 0%, transparent 55%), linear-gradient(135deg, var(--c2), #0b0b14); }
.fz-tour-card { display: flex; flex-direction: column; overflow: hidden; }
.fz-tour-card__top { position: relative; height: 112px; padding: 16px; color: #fff; display: flex; justify-content: space-between; align-items: flex-start; overflow: hidden; }
.fz-tour-card__top::after { content: "♛"; position: absolute; right: -6px; bottom: -34px; font-size: 7.4rem; line-height: 1; opacity: .18; transform: rotate(-12deg); }
.fz-tour-card__body { padding: 16px 18px 18px; display: grid; gap: 10px; flex: 1; }
.fz-tour-card__body h3 { font-size: 1.08rem; font-weight: 800; letter-spacing: -.02em; }
.fz-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--fz-muted); font-size: .84rem; font-weight: 700; }
.fz-meta i { margin-right: 5px; opacity: .8; }
.fz-glass-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }

/* mini taxta */
.fz-mini { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.fz-mini span { position: relative; background: var(--sq-l); }
.fz-mini span.d { background: var(--sq-d); }
.fz-mini span i { position: absolute; inset: 0; background-size: 100% 100%; }
.fz-game-card { padding: 12px; display: grid; gap: 10px; }
.fz-game-card .fz-user b { font-size: .88rem; }
.fz-vs { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; }

/* ======================================================================
   Shaxmat taxtasi (board.js)
   ====================================================================== */
.cb-wrap { position: relative; width: 100%; aspect-ratio: 1; user-select: none; -webkit-user-select: none; touch-action: none; }
.cb { --sq-l: #eedcbf; --sq-d: #b58863; --hl-last: rgba(255, 196, 0, .42); --hl-sel: rgba(20, 160, 130, .45); --hl-move: rgba(20, 20, 30, .26);
  --hl-check: #ff3b30; --coord-l: var(--sq-d); --coord-d: var(--sq-l);
  position: absolute; inset: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); }
.cb-sq { position: absolute; width: 12.5%; height: 12.5%; background: var(--sq-l); }
.cb-sq.d { background: var(--sq-d); }
.cb-sq.last::after, .cb-sq.sel::after, .cb-sq.pre::after { content: ""; position: absolute; inset: 0; }
.cb-sq.last::after { background: var(--hl-last); }
.cb-sq.sel::after { background: var(--hl-sel); }
.cb-sq.pre::after { background: rgba(80, 110, 255, .38); }
.cb-sq.check { background-image: radial-gradient(circle, var(--hl-check) 0%, rgba(255, 59, 48, .7) 30%, rgba(255, 59, 48, 0) 70%); }
.cb-sq.move::before { content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 30%; height: 30%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--hl-move); }
.cb-sq.move.cap::before { width: 100%; height: 100%; background: radial-gradient(transparent 0 58%, var(--hl-move) 60%); }
.cb-sq.move.hover::before { width: 100%; height: 100%; border-radius: 0; background: var(--hl-move); }
.cb-coord { position: absolute; z-index: 2; font: 800 clamp(8px, 1.6cqw, 12px)/1 var(--fz-sans); pointer-events: none; }
.cb-coord.rank { left: 3px; top: 3px; }
.cb-coord.file { right: 4px; bottom: 3px; }
.cb-sq:not(.d) .cb-coord { color: var(--coord-l); }
.cb-sq.d .cb-coord { color: var(--coord-d); }
.cb-pc { position: absolute; z-index: 3; width: 12.5%; height: 12.5%; background-size: 100% 100%; background-repeat: no-repeat; will-change: transform;
  cursor: grab; pointer-events: none; }
.cb.is-movable .cb-pc.mine { pointer-events: auto; }
.cb-shapes { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
.cb-pc.anim { transition: transform .18s cubic-bezier(.25,.8,.35,1); }
.cb-pc.drag { z-index: 10; cursor: grabbing; transition: none; filter: drop-shadow(0 10px 10px rgba(0,0,0,.35)); transform-origin: center; }
.cb-pc.fade { animation: cb-fade .2s forwards; }
.cb-ghost { position: absolute; z-index: 2; width: 12.5%; height: 12.5%; background-size: 100% 100%; opacity: .3; pointer-events: none; }
.cb-promo { position: absolute; inset: 0; z-index: 20; background: rgba(10, 10, 16, .55); backdrop-filter: blur(2px); }
.cb-promo__col { position: absolute; width: 12.5%; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.cb-promo__col.down { flex-direction: column-reverse; }
.cb-promo button { aspect-ratio: 1; border: 0; padding: 6%; background: var(--fz-surface) center/86% no-repeat; cursor: pointer; transition: background-color .12s; }
.cb-promo button:hover { background-color: var(--fz-surface-3); }
.cb-result { position: absolute; inset: 0; z-index: 15; display: grid; place-items: center; pointer-events: none; }

/* taxta mavzulari */
.cb-theme-classic .cb { --sq-l: #efdcbc; --sq-d: #b2865f; }
.cb-theme-modern .cb { --sq-l: #e7ecf2; --sq-d: #6f8aa6; --hl-last: rgba(255, 210, 60, .45); }
.cb-theme-wooden .cb { --sq-l: #e6c592; --sq-d: #9a5f34; }
.cb-theme-wooden .cb-sq { background-image: repeating-linear-gradient(100deg, rgba(255,255,255,.06) 0 2px, transparent 2px 7px), linear-gradient(160deg, rgba(255,255,255,.08), rgba(0,0,0,.05)); }
.cb-theme-wooden .cb-sq.d { background-image: repeating-linear-gradient(80deg, rgba(0,0,0,.08) 0 2px, transparent 2px 6px), linear-gradient(160deg, rgba(255,255,255,.06), rgba(0,0,0,.12)); }
.cb-theme-marble .cb { --sq-l: #f3f1ee; --sq-d: #8f949c; }
.cb-theme-marble .cb-sq { background-image: linear-gradient(125deg, transparent 40%, rgba(160,160,170,.25) 42%, transparent 45%), linear-gradient(35deg, transparent 60%, rgba(150,150,160,.2) 61%, transparent 63%); }
.cb-theme-marble .cb-sq.d { background-image: linear-gradient(125deg, transparent 30%, rgba(255,255,255,.18) 32%, transparent 35%), linear-gradient(35deg, transparent 55%, rgba(30,30,40,.18) 57%, transparent 60%); }
.cb-theme-neon .cb { --sq-l: #2b2f4a; --sq-d: #181a2c; --hl-last: rgba(0, 255, 213, .28); --hl-sel: rgba(255, 0, 170, .35); --hl-move: rgba(0, 255, 213, .45);
  --coord-l: #00ffd5; --coord-d: #ff3cac; box-shadow: 0 0 0 1px rgba(0,255,213,.35), 0 0 40px -6px rgba(0, 255, 213, .45); }
.cb-theme-neon .cb-pc { filter: drop-shadow(0 0 4px rgba(0, 255, 213, .45)); }
/* Pro taxtalari */
.cb-theme-emerald .cb { --sq-l: #e9f5e1; --sq-d: #3f8f6b; --hl-last: rgba(250, 210, 80, .45); }
.cb-theme-emerald .cb-sq.d { background-image: radial-gradient(circle at 30% 25%, rgba(255,255,255,.14), transparent 60%); }
.cb-theme-ocean .cb { --sq-l: #dbeefa; --sq-d: #3a73a8; --hl-last: rgba(255, 214, 102, .5); }
.cb-theme-ocean .cb-sq.d { background-image: linear-gradient(160deg, rgba(255,255,255,.12), rgba(0,0,40,.12)); }
.cb-theme-royal .cb { --sq-l: #efe6fb; --sq-d: #7b4fb8; --hl-last: rgba(245, 179, 36, .5); box-shadow: 0 0 0 2px rgba(245, 179, 36, .55), 0 18px 40px -12px rgba(123, 79, 184, .6); }
.cb-theme-royal .cb-sq.d { background-image: linear-gradient(135deg, rgba(255,255,255,.1), rgba(0,0,0,.08)); }
.cb-theme-minimal .cb { --sq-l: #f2f2f2; --sq-d: #c4c7cc; --hl-last: rgba(120, 140, 255, .32); --coord-l: #888; --coord-d: #fff; }

/* ======================================================================
   O‘yin sahifasi
   ====================================================================== */
.fz-play { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 22px; align-items: start; max-width: 1240px; margin: 0 auto; }
.fz-play__board { display: grid; gap: 10px; width: 100%; max-width: min(100%, calc(100vh - var(--fz-header) - 196px)); min-width: 280px; margin: 0 auto; }
.fz-play__side { display: grid; gap: 14px; position: sticky; top: calc(var(--fz-header) + 16px); }
.fz-pbar { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.fz-pbar .fz-user { flex: 1; }
.fz-pbar .fz-captured { display: flex; align-items: center; gap: 0; min-height: 18px; margin-top: 2px; }
.fz-captured i { display: inline-block; width: 18px; height: 18px; margin-right: -6px; background-size: 100% 100%; }
.fz-captured em { font-style: normal; font-weight: 800; font-size: .78rem; color: var(--fz-muted); margin-left: 10px; }
.fz-clock { min-width: 128px; padding: 10px 16px; border-radius: 14px; text-align: right; font: 700 1.6rem/1 var(--fz-mono); letter-spacing: -.02em;
  background: var(--fz-surface-3); color: var(--fz-muted); border: 1px solid var(--fz-line); font-variant-numeric: tabular-nums; transition: background .2s, color .2s, box-shadow .2s; }
.fz-clock.is-run { background: var(--fz-text); color: var(--fz-bg); box-shadow: 0 10px 24px -12px rgba(0,0,0,.6); }
.fz-clock.is-low { background: var(--fz-bad); color: #fff; animation: fz-throb 1s infinite; }
.fz-clock.is-low:not(.is-run) { animation: none; }
.fz-clock small { font-size: .62em; opacity: .8; }
.fz-panel { background: var(--fz-surface); border: 1px solid var(--fz-line); border-radius: var(--fz-radius); box-shadow: var(--fz-shadow); overflow: hidden; }
.fz-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--fz-line); }
.fz-panel__head b { font-weight: 800; display: flex; gap: 8px; align-items: center; }
.fz-moves { height: 260px; overflow-y: auto; padding: 6px; display: grid; grid-template-columns: 44px 1fr 1fr; align-content: start; font-size: .92rem; scroll-behavior: smooth; }
.fz-moves .n { color: var(--fz-faint); font: 700 .8rem var(--fz-mono); padding: 7px 8px; text-align: right; }
.fz-moves button { border: 0; background: transparent; padding: 6px 10px; border-radius: 8px; font-weight: 700; text-align: left; cursor: pointer; color: var(--fz-text-2); position: relative; }
.fz-moves button:hover { background: var(--fz-surface-3); }
.fz-moves button.is-cur { background: var(--fz-grad-soft); color: var(--fz-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fz-a) 40%, transparent); }
.fz-moves button small { position: absolute; right: 8px; top: 8px; font: 600 .66rem var(--fz-mono); color: var(--fz-faint); }
.fz-moves .end { grid-column: 1 / -1; text-align: center; padding: 12px; font-weight: 800; }
.fz-nav-moves { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 8px; border-top: 1px solid var(--fz-line); }
.fz-nav-moves button { min-height: 38px; border: 0; border-radius: 10px; background: var(--fz-surface-3); cursor: pointer; color: var(--fz-text-2); }
.fz-nav-moves button:hover { background: var(--fz-line-2); color: var(--fz-text); }
.fz-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; padding: 12px; }
.fz-offer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--fz-grad-soft); font-weight: 800; flex-wrap: wrap; }
.fz-offer .fz-btn-row { margin-left: auto; }
.fz-result { padding: 22px; text-align: center; display: grid; gap: 8px; }
.fz-result b { font: 700 2rem/1 var(--fz-display); letter-spacing: -.04em; }
.fz-result span { color: var(--fz-muted); font-weight: 700; }
.fz-result .fz-btn-row { justify-content: center; margin-top: 8px; }
.fz-evalbar { position: relative; width: 22px; border-radius: 8px; overflow: hidden; background: #2a2a33; flex-shrink: 0; }
.fz-evalbar i { position: absolute; left: 0; right: 0; bottom: 0; background: #f4f4f6; transition: height .4s ease; }
.fz-evalbar span { position: absolute; left: 0; right: 0; font: 800 .58rem var(--fz-mono); text-align: center; z-index: 1; }
.fz-evalbar span.top { top: 4px; color: #f4f4f6; }
.fz-evalbar span.bot { bottom: 4px; color: #2a2a33; }
.fz-board-row { display: flex; gap: 10px; align-items: stretch; }
.fz-board-row .cb-wrap { flex: 1; }
.fz-engine-line { padding: 10px 14px; font: 600 .82rem var(--fz-mono); color: var(--fz-text-2); border-top: 1px solid var(--fz-line); min-height: 40px; }
.fz-engine-line b { color: var(--fz-a); }
/* Partiya tahlili (analysis) */
.fz-review { padding: 12px 14px; border-top: 1px solid var(--fz-line); display: grid; gap: 10px; }
.fz-review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fz-review__head small { font-size: .78rem; }
.fz-review__bar { position: relative; height: 22px; border-radius: 8px; background: var(--fz-surface-2); overflow: hidden; }
.fz-review__bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--fz-grad); transition: width .2s; }
.fz-review__bar span { position: relative; display: block; text-align: center; font: 700 .74rem/22px var(--fz-mono); }
.fz-review__result { display: grid; gap: 8px; }
.fz-acc { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: center; font-size: .84rem; }
.fz-acc b { font: 800 1.05rem var(--fz-mono); }
.fz-acc .tags { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fz-acc .tags span { padding: 1px 7px; border-radius: 999px; font-weight: 800; font-size: .74rem; background: var(--fz-surface-2); }
.fz-mk-inaccuracy { color: #e6b422; } .fz-mk-mistake { color: #f08a24; } .fz-mk-blunder { color: #e5484d; }
.fz-moves button .mk { margin-left: 2px; font-weight: 900; }
.fz-review__list { display: grid; gap: 4px; max-height: 180px; overflow: auto; font-size: .8rem; }
.fz-review__list button { all: unset; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.fz-review__list button:hover, .fz-review__list button:focus-visible { background: var(--fz-surface-2); }
.fz-level-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fz-level-grid label span { width: 100%; justify-content: center; flex-direction: column; gap: 2px; padding: 12px 6px; }
.fz-level-grid label small { font-weight: 700; color: var(--fz-muted); font-size: .7rem; }

/* ======================================================================
   Turnir sahifasi
   ====================================================================== */
.fz-thead { position: relative; border-radius: 26px; overflow: hidden; color: #fff; padding: clamp(22px, 4vw, 40px); min-height: 230px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; box-shadow: var(--fz-shadow-lg); isolation: isolate; }
.fz-thead::after { content: "♛"; position: absolute; z-index: -1; right: 3%; bottom: -16%; font-size: clamp(10rem, 22vw, 18rem); line-height: 1; opacity: .13; transform: rotate(-10deg); }
.fz-thead::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: linear-gradient(to left, #000, transparent 70%); }
.fz-thead h1 { font: 700 clamp(1.7rem, 4vw, 3rem)/1.04 var(--fz-display); letter-spacing: -.045em; max-width: 22ch; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.fz-thead__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fz-thead__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fz-thead .fz-btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); backdrop-filter: blur(6px); }
.fz-thead .fz-btn--light { --bg: #fff; --fg: #15131c; }
.fz-countdown { display: inline-flex; gap: 8px; align-items: baseline; padding: 10px 16px; border-radius: 14px; background: rgba(0,0,0,.28); backdrop-filter: blur(8px);
  font: 700 1.3rem var(--fz-mono); }
.fz-countdown small { font: 800 .7rem var(--fz-sans); letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.fz-infogrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.fz-info { padding: 14px 16px; border-radius: 16px; background: var(--fz-surface); border: 1px solid var(--fz-line); }
.fz-info span { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fz-muted); }
.fz-info b { display: block; margin-top: 4px; font-size: 1.05rem; font-weight: 800; }
.fz-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin: 8px 0 24px; }
.fz-podium__step { text-align: center; display: grid; gap: 8px; justify-items: center; }
.fz-podium__step .fz-ava { width: 64px; height: 64px; border-radius: 20px; font-size: 1.1rem; }
.fz-podium__base { width: 100%; border-radius: 18px 18px 8px 8px; display: grid; place-items: center; font: 700 2rem var(--fz-display); color: #fff; }
.fz-podium__step--1 .fz-podium__base { height: 140px; background: linear-gradient(180deg, #ffd66b, #d18f00); }
.fz-podium__step--2 .fz-podium__base { height: 104px; background: linear-gradient(180deg, #e2e8f0, #8d98a8); }
.fz-podium__step--3 .fz-podium__base { height: 80px; background: linear-gradient(180deg, #f1b98a, #a8642e); }
.fz-podium__step--1 .fz-ava { width: 80px; height: 80px; box-shadow: 0 0 0 4px #ffd66b; }
.fz-board-pair { display: grid; grid-template-columns: 44px minmax(0, 1fr) 84px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 14px;
  border-bottom: 1px solid var(--fz-line); }
.fz-board-pair:last-child { border-bottom: 0; }
.fz-board-pair .bn { font: 800 .8rem var(--fz-mono); color: var(--fz-muted); }
.fz-board-pair .w { justify-self: end; text-align: right; }
.fz-board-pair .w .fz-user { flex-direction: row-reverse; }
.fz-board-pair .res { text-align: center; font: 800 .95rem var(--fz-mono); padding: 6px 4px; border-radius: 10px; background: var(--fz-surface-3); }
.fz-board-pair .res.is-live { background: var(--fz-b); color: #fff; font-family: var(--fz-sans); font-size: .78rem; }
.fz-board-pair .win b { color: var(--fz-ok); }
.fz-piece-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid var(--fz-line-2); flex-shrink: 0; }
.fz-piece-dot.w { background: #fff; }
.fz-piece-dot.b { background: #222; }
.fz-bracket { display: flex; gap: 26px; overflow-x: auto; padding: 6px 2px 14px; }
.fz-bracket__round { display: flex; flex-direction: column; justify-content: space-around; gap: 14px; min-width: 230px; }
.fz-bracket__round h4 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fz-muted); margin-bottom: 4px; }
.fz-match { border-radius: 14px; background: var(--fz-surface); border: 1px solid var(--fz-line); overflow: hidden; box-shadow: var(--fz-shadow); position: relative; }
.fz-match__p { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-weight: 700; font-size: .88rem; }
.fz-match__p + .fz-match__p { border-top: 1px solid var(--fz-line); }
.fz-match__p.is-win { background: var(--fz-grad-soft); }
.fz-match__p.is-win b { color: var(--fz-text); }
.fz-match__p .seed { font: 700 .72rem var(--fz-mono); color: var(--fz-faint); min-width: 18px; }
.fz-match__p .sc { margin-left: auto; font: 800 .82rem var(--fz-mono); }
.fz-match__tag { position: absolute; top: 6px; right: 8px; font-size: .62rem; font-weight: 800; color: var(--fz-b); letter-spacing: .06em; text-transform: uppercase; }
.fz-fire { color: #ff6a00; }
.fz-sheet { display: flex; flex-wrap: wrap; gap: 2px; font: 700 .78rem var(--fz-mono); }
.fz-sheet i { font-style: normal; }
.fz-sheet .w { color: var(--fz-ok); }
.fz-sheet .d { color: var(--fz-muted); }
.fz-sheet .l { color: var(--fz-faint); }
.fz-sheet .f { color: #ff6a00; }
.fz-cross td, .fz-cross th { text-align: center; padding: 8px 6px; }
.fz-cross td.self { background: var(--fz-surface-3); }
.fz-news { padding: 14px 16px; border-left: 3px solid var(--fz-a); background: var(--fz-surface-2); border-radius: 0 14px 14px 0; white-space: pre-line; }
.fz-news small { display: block; color: var(--fz-muted); margin-top: 6px; font-weight: 700; }
.fz-rules { white-space: pre-line; line-height: 1.7; color: var(--fz-text-2); }

/* boshqaruv */
.fz-manage { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.fz-side-nav { position: sticky; top: calc(var(--fz-header) + 16px); display: grid; gap: 4px; padding: 10px; }
.fz-side-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 12px; font-weight: 800; color: var(--fz-text-2); }
.fz-side-nav a i { width: 18px; text-align: center; color: var(--fz-muted); }
.fz-side-nav a:hover { background: var(--fz-surface-3); }
.fz-side-nav a.is-active { background: var(--fz-grad-soft); color: var(--fz-text); }
.fz-side-nav a.is-active i { color: var(--fz-a); }
.fz-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.fz-step { padding: 14px; border-radius: 14px; background: var(--fz-surface-2); border: 1px solid var(--fz-line); font-weight: 800; font-size: .86rem; color: var(--fz-muted); }
.fz-step i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--fz-surface-3); margin-bottom: 8px; font-style: normal; }
.fz-step.is-done { color: var(--fz-text); }
.fz-step.is-done i { background: var(--fz-ok); color: #fff; }
.fz-step.is-now { color: var(--fz-text); border-color: var(--fz-a); background: var(--fz-grad-soft); }
.fz-step.is-now i { background: var(--fz-grad); color: #fff; }
.fz-result-select { min-height: 38px; padding: 6px 30px 6px 10px; border-radius: 10px; font: 800 .85rem var(--fz-mono); }
.fz-result-select.is-set { border-color: var(--fz-ok); }
.fz-kbd-hint { font-size: .78rem; color: var(--fz-muted); }

/* sertifikat va profil */
.fz-profile-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.fz-profile-head .fz-ava { width: 96px; height: 96px; border-radius: 28px; font-size: 1.8rem; }
.fz-profile-head h1 { font: 700 clamp(1.6rem, 3.4vw, 2.3rem)/1.05 var(--fz-display); letter-spacing: -.04em; }
.fz-rcard { padding: 18px; display: grid; gap: 4px; }
.fz-rcard span { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fz-muted); display: flex; align-items: center; gap: 8px; }
.fz-rcard b { font: 700 2rem/1.1 var(--fz-display); letter-spacing: -.04em; }
.fz-rcard small { color: var(--fz-muted); font-weight: 700; }
.fz-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.fz-badge { padding: 16px 12px; border-radius: 18px; text-align: center; background: var(--fz-surface-2); border: 1px solid var(--fz-line); display: grid; gap: 8px; justify-items: center; }
.fz-badge i { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; font-size: 1.35rem; background: var(--fz-surface-3); color: var(--fz-faint); }
.fz-badge b { font-size: .86rem; font-weight: 800; }
.fz-badge small { color: var(--fz-muted); font-size: .74rem; }
.fz-badge.is-done i { background: var(--fz-grad); color: #fff; box-shadow: 0 12px 24px -12px rgba(242, 89, 75, .9); }
.fz-badge:not(.is-done) { opacity: .62; }
.fz-chart { width: 100%; height: 220px; }
.fz-chart path.line { fill: none; stroke: url(#fzg); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fz-chart path.area { fill: url(#fza); }
.fz-chart text { fill: var(--fz-muted); font: 700 11px var(--fz-mono); }
.fz-chart line { stroke: var(--fz-line); }
.fz-wdl { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--fz-surface-3); }
.fz-wdl i { display: block; }
.fz-wdl .w { background: var(--fz-ok); }
.fz-wdl .d { background: var(--fz-faint); }
.fz-wdl .l { background: var(--fz-bad); }

/* waiting overlay */
.fz-seek { display: grid; place-items: center; gap: 16px; text-align: center; padding: 10px 0 4px; }
.fz-spinner { width: 70px; height: 70px; border-radius: 50%; border: 4px solid var(--fz-surface-3); border-top-color: var(--fz-a); border-right-color: var(--fz-b); animation: fz-spin .9s linear infinite; }
.fz-skel { background: linear-gradient(90deg, var(--fz-surface-3), var(--fz-surface-2), var(--fz-surface-3)); background-size: 200% 100%; animation: fz-shimmer 1.4s infinite; border-radius: 10px; }

/* ------------------------------------------------------------------ animatsiyalar */
@keyframes fz-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes fz-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fz-slide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fz-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fz-spin { to { transform: rotate(360deg); } }
@keyframes fz-throb { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 84, 112, .55); } 50% { box-shadow: 0 0 0 8px rgba(255, 84, 112, 0); } }
@keyframes fz-shimmer { to { background-position: -200% 0; } }
@keyframes cb-fade { to { opacity: 0; transform: scale(.6); } }
.fz-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fz-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .fz-reveal { opacity: 1; transform: none; }
}
@media (prefers-contrast: more) {
  :root { --fz-line: rgba(0,0,0,.4); --fz-line-2: rgba(0,0,0,.6); --fz-muted: #333; }
  html[data-bs-theme="dark"] { --fz-line: rgba(255,255,255,.4); --fz-line-2: rgba(255,255,255,.6); --fz-muted: #ddd; }
}

/* ------------------------------------------------------------------ moslashuv */
/* Sarlavhadagi joy: avval qidiruv va «Litsey sayti» yozuvi belgichaga aylanadi, keyin menyu yozuvlari */
@media (max-width: 1560px) {
  .fz-site-btn__lbl, .fz-site-btn .fa-arrow-left { display: none; }
  .fz-site-btn { width: 40px; padding: 0; justify-content: center; }
  .fz-search__box { width: 44px; padding: 0 12px; }
  .fz-search__box input, .fz-search__box kbd { width: 0; opacity: 0; }
  .fz-search__box:focus-within { width: 260px; }
  .fz-search__box:focus-within input { width: 100%; opacity: 1; }
}
@media (max-width: 1320px) {
  .fz-nav a span.lbl { display: none; }
  .fz-nav a { padding: 9px 11px; }
}
@media (max-width: 1080px) {
  .fz-split, .fz-manage { grid-template-columns: 1fr; }
  .fz-side-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .fz-play { grid-template-columns: 1fr; }
  /* Telefonda taxta ikkala o'yinchi qatori bilan bitta ekranga sig'adi: sarlavha, pastki menyu va
     brauzer panellari (dvh) chiqarib tashlanadi — aks holda pastki qator menyu ostida qolardi */
  .fz-play__board { max-width: min(100%, 640px, calc(100vh - var(--fz-header) - 200px)); min-width: min(240px, 100%); }
  @supports (height: 100dvh) {
    .fz-play__board { max-width: min(100%, 640px, calc(100dvh - var(--fz-header) - 200px - env(safe-area-inset-bottom))); }
  }
  .fz-play__side { position: static; max-width: 640px; margin: 0 auto; width: 100%; }
  .fz-hero { grid-template-columns: 1fr; gap: 26px; }
  .fz-hero__board { margin: 0 auto; width: min(100%, 460px); }
  .fz-hero__frame { transform: none; }
  .fz-float--a { left: -8px; } .fz-float--b { right: -8px; }
  .fz-clocks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  :root { --fz-header: 58px; }
  .fz-nav, .fz-header .fz-hide-m { display: none; }
  .fz-header__in { padding: 0 14px; gap: 10px; }
  .fz-main { padding: 18px 16px calc(84px + env(safe-area-inset-bottom)); }
  .fz-main--wide { padding: 8px 8px calc(80px + env(safe-area-inset-bottom)); }
  .fz-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .fz-bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 55; left: 0; right: 0; bottom: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--fz-glass); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
    border-top: 1px solid var(--fz-line); }
  .fz-bottom-nav a { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; font-size: .66rem; font-weight: 800; color: var(--fz-muted); }
  .fz-bottom-nav a i { font-size: 1.12rem; }
  .fz-bottom-nav a.is-active { color: var(--fz-text); }
  .fz-bottom-nav a.is-active i { color: var(--fz-a); }
  .fz-stats { grid-template-columns: repeat(2, 1fr); }
  .fz-clocks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fz-steps { grid-template-columns: repeat(2, 1fr); }
  .fz-board-pair { grid-template-columns: 30px minmax(0, 1fr) 64px minmax(0, 1fr); padding: 10px 8px; gap: 6px; }
  .fz-board-pair .fz-ava { display: none; }
  .fz-clock { min-width: 104px; font-size: 1.35rem; padding: 9px 12px; }
  .fz-moves { height: 160px; }
  .fz-podium .fz-ava { width: 48px !important; height: 48px !important; }
  .fz-float { display: none; }
  .fz-toasts { bottom: calc(80px + env(safe-area-inset-bottom)); left: 16px; right: 16px; }
}
@media (max-width: 520px) {
  .fz-logo__sub { display: none; }
  .fz-page-head h1 { font-size: 1.6rem; }
  .fz-card--pad { padding: 16px; }
  .fz-table th, .fz-table td { padding: 9px 8px; }
  .fz-hide-xs { display: none !important; }
  .fz-level-grid { grid-template-columns: repeat(2, 1fr); }
  .fz-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
  .fz-header, .fz-bottom-nav, .fz-footer, .fz-toasts, .fz-aura { display: none !important; }
  body.fz { background: #fff; color: #000; }
}

/* Litsey saytiga qaytish, 2COIN balansi va Pro belgisi (sarlavhada) */
.fz-site-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 12px;
  font-weight: 700; font-size: .84rem; color: var(--fz-text); text-decoration: none; background: var(--fz-surface-2);
  border: 1px solid var(--fz-line); white-space: nowrap; }
.fz-site-btn:hover { background: var(--fz-surface-3); color: var(--fz-text); }
.fz-site-btn .fa-arrow-left { font-size: .78rem; opacity: .7; }
.fz-coin { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 6px; border-radius: 999px;
  font: 800 .88rem/1 var(--fz-mono); color: #f5b324; text-decoration: none; white-space: nowrap;
  background: rgba(245, 179, 36, .12); border: 1px solid rgba(245, 179, 36, .35); }
.fz-coin:hover { background: rgba(245, 179, 36, .2); color: #f5b324; }
.pro-badge { display: inline-block; margin-left: .4em; padding: 1px 6px 0; border-radius: 6px; vertical-align: .12em;
  font: 800 .62em/1.5 system-ui, sans-serif; letter-spacing: .06em; color: #fff; -webkit-text-fill-color: #fff;
  background: linear-gradient(100deg, #7c3aed, #db2777); box-shadow: 0 1px 6px -1px rgba(219, 39, 119, .55); white-space: nowrap; }
@media (max-width: 860px) {
  .fz-header__right { gap: 4px; }
  .fz-header__right .fz-icon-btn, .fz-site-btn { width: 38px; height: 38px; }
}
@media (max-width: 380px) {
  .fz-logo__name { font-size: 1.05rem; }
  .fz-logo svg { width: 32px; height: 32px; }
}

/* Dizaynlar do'koni bezagi: ramka doira shaklida — avatar ham doira bo'ladi */
.dz-avatar > .fz-ava { border-radius: 50%; }
.fz-podium__step .dz-avatar { margin-bottom: 4px; }
.fz-ava--photo { background-size: cover !important; background-position: center !important; }
