/* ==========================================================================
   DIDAKTIK O'YIN (.oyn) — kirish (guruhlar) → o'yin (tablo + sahna) → yakun.
   Ramka (sarlavha, breadcrumb, pager) didaktik.css / sxema.css uslublarini qayta
   ishlatadi. Har bir o'yinning manzarasi alohida [data-tema="…"] bo'limida —
   birinchisi «nishon» (saralash mexanikasi). Tur rangi — rose ([data-tur="oyin"]).
   ========================================================================== */
.oyn {
    --oyn: #fb7185;
    --oyn-soft: rgba(251, 113, 133, 0.12);
    --oyn-border: rgba(251, 113, 133, 0.34);
    /* Tungi taxta — tablo va yakun ekrani uchun. Sahifa "Cho'qqi" redizaynidan
       keyin oq bo'lgani uchun bu ikki panel o'z fonini olib yurishi shart:
       ilgari ular yarim shaffof qorong'i qatlam edi va oq sahifada kulrangga
       aylanib qolgan, yakun ekranida esa yorug' matn umuman ko'rinmay qolgandi.
       Rang — saytning navbar/futer juftligi bilan bir xil siyoh gradienti. */
    --tun: linear-gradient(155deg, #0f1f38 0%, #16305c 58%, #11244a 100%);
    --tun-chek: rgba(255, 255, 255, 0.12);
    --ok: #4ade80;
    --bad: #f87171;
    --qogoz: #f8f1e4;          /* kartochka qog'ozi */
    --siyoh: #1b2433;          /* qog'ozdagi yozuv */
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--navbar-height));
    padding: .75rem 0 1.5rem;
}
.oyn__container { display: flex; flex-direction: column; flex: 1; min-height: 0; max-width: 1280px; }
.oyn__head { flex-shrink: 0; }
.oyn__head .breadcrumb--tight { margin-bottom: .5rem !important; }
.oyn__head .xarita-bar { margin-bottom: 1rem; align-items: center; }
.oyn__head .xarita-bar__title h1 { font-size: clamp(1rem, 1.5vw, 1.25rem); }
.oyn__head .xarita-bar__actions { display: flex; gap: .5rem; }
.oyn__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* === SAHNA MATNI — QORONG'I FONGA MOSLASH ===
   Bu fayl sayt yorug'lashtirilishidan ("Cho'qqi" redizayni) OLDIN yozilgan va
   matn ranglari uchun eski nomlarga tayanadi: `--text-primary`,
   `--text-secondary`, `--text-tertiary`, `--surface-glass*`. O'sha paytda
   ular yorug' ranglarni bildirardi.

   Redizayndan keyin bu nomlar alias bo'lib qoldi va endi QORONG'I siyoh
   ranglariga ishora qiladi (`--siyoh: #0f1f38`, `--chiziq: #d3dce8`). Oq
   kartalarda bu to'g'ri, lekin o'yin sahnalari — tungi stadion, doska, zal —
   qorong'i. Natijada matn fon bilan deyarli qo'shilib ketgan, chegaralar esa
   ko'rinmay qolgan edi (jami 97 ta joyda).

   Sahnalarni o'zgartirmasdan, faqat shu tokenlarni sahna ichida yorug'
   qiymatlarga qaytaramiz — shunda hamma sahnadagi matn birdaniga tuzaladi.
   `.oyn__head` (non ushlagich, sarlavha) bundan tashqarida qoladi: u oq
   sahifa fonida turadi. `.oyn-qoida` (qoidalar oynasi) va `.oyn-print`
   (chop etiladigan varaq) ham `.oyn__body` dan tashqarida — ularga tegmaydi.

   `:not(:has(.tabiat__sky))` — «Tabiat kuchlari» o'yini yagona KUNDUZGI,
   yorug' sahna: u yerda siyoh rangli matn to'g'ri, shuning uchun chetlab
   o'tiladi.

   `.oyn-setup` va `.oyn-tablo` ro'yxatga alohida qo'shilgan: guruhlarni
   sozlash paneli va ballar tablosi HAR BIR o'yinda qorong'i
   (`rgba(5, 14, 26, .72)` / `.55`) — kunduzgi tabiat sahnasida ham. Aks holda
   o'sha ikki panel ichidagi yozuvlar tabiat o'yinida o'qilmay qolardi. */
.oyn__body:not(:has(.tabiat__sky)),
.oyn-setup,
.oyn-tablo {
    --text-primary: #f3f7ff;
    --text-secondary: rgba(230, 238, 255, 0.84);
    --text-tertiary: rgba(230, 238, 255, 0.62);
    --surface-glass: rgba(255, 255, 255, 0.07);
    --surface-glass-border: rgba(255, 255, 255, 0.16);
    --surface-glass-border-strong: rgba(255, 255, 255, 0.3);
}

/* Tokenlar faqat `var(--text-*)` yozilgan joylarda ishlaydi. Sahnadagi va yakun
   ekranidagi ko'p yozuv (masalan jamoa nomi `.oyn-tablo__name`, yakun taxtasidagi
   kartochka matni) o'z rangini e'lon qilmaydi — ular meros orqali sahifadan
   qorong'i siyoh rangini olardi va qorong'i fonda ko'rinmay qolardi. Shuning
   uchun shu uch panelda merosning o'zini ham yorug' qilamiz. Ichidagi oq/krem
   kartochkalar (`.oyn-card` va h.k.) o'z rangini alohida belgilaydi — ularga
   tegmaydi. Uchalasi ham HAR BIR o'yinda qorong'i — kunduzgi «Tabiat kuchlari»
   sahnasida ham, shuning uchun ular tema tanlovidan tashqarida turadi. */
.oyn-setup,
.oyn-tablo,
.oyn-yakun { color: var(--text-primary); }

/* toifa ranglari — manbadagi 🟢🔵🟡 */
[data-rang="yashil"] { --toifa-rgb: 74, 222, 128; }
[data-rang="kok"]    { --toifa-rgb: 96, 165, 250; }
[data-rang="sariq"]  { --toifa-rgb: 251, 191, 36; }
[data-rang]          { --toifa: rgb(var(--toifa-rgb)); }

/* guruh ranglari (--j indeks) — toifa ranglari bilan aralashmasin */
[style*="--j:0"] { --jamoa: #fb7185; --jamoa-rgb: 251, 113, 133; }
[style*="--j:1"] { --jamoa: #a78bfa; --jamoa-rgb: 167, 139, 250; }
[style*="--j:2"] { --jamoa: #fb923c; --jamoa-rgb: 251, 146, 60; }
[style*="--j:3"] { --jamoa: #22d3ee; --jamoa-rgb: 34, 211, 238; }

.oyn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--oyn);
}
.oyn-eyebrow svg { width: 14px; height: 14px; }

/* konsentrik nishon halqasi — `i` lar ichkariga qarab kichrayadi */
.oyn-ring {
    position: relative;
    display: inline-block;
    width: 40px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--qogoz);
    box-shadow: 0 0 0 3px var(--toifa), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.oyn-ring i { position: absolute; border-radius: 50%; }
.oyn-ring i:nth-child(1) { inset: 18%; background: var(--toifa); }
.oyn-ring i:nth-child(2) { inset: 36%; background: var(--qogoz); }
.oyn-ring i:nth-child(3) { inset: 54%; background: var(--toifa); }
.oyn-ring i:nth-child(4) { inset: 44%; background: var(--siyoh); opacity: 0; }

/* ---------------------------------------------------------------- kirish */
.oyn-kirish {
    --ufq: 72%;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.25rem, 3vw, 2.25rem) 0;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--surface-glass-border);
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
.oyn-kirish.is-in { opacity: 1; transform: none; }
.oyn-kirish__top {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
    align-items: start;
}
.oyn-kirish__about { display: flex; flex-direction: column; gap: 1rem; padding-top: .25rem; }
.oyn-kirish__title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3.6vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -.01em;
    margin: 0;
    background: linear-gradient(135deg, #fff 0%, #ffe4e6 50%, var(--oyn) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.oyn-kirish__maqsad { margin: 0; font-size: 1.02rem; line-height: 1.65; color: var(--text-secondary); max-width: 56ch; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
.oyn-kirish__shart {
    display: flex; gap: .5rem; align-items: flex-start;
    margin: 0; padding: .7rem .9rem;
    border-radius: var(--radius-md);
    background: rgba(5, 14, 26, 0.55); border: 1px dashed var(--oyn-border);
    max-width: 56ch;
    font-size: .9rem; line-height: 1.5; color: var(--text-secondary);
}
.oyn-kirish__shart svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; color: var(--oyn); }
.oyn-kirish__facts { margin: 0; font-size: .88rem; color: var(--text-secondary); }
.oyn-kirish__facts b { font-family: var(--font-display); font-size: 1.15rem; color: var(--text-primary); margin-right: .15rem; }
.oyn-kirish__facts i { margin: 0 .55rem; font-style: normal; opacity: .5; }

.oyn-legend { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .6rem; }
.oyn-legend__item {
    display: flex; align-items: center; gap: .9rem;
    padding: .65rem .85rem;
    border-radius: var(--radius-lg);
    background: var(--surface-glass);
    border: 1px solid var(--surface-glass-border);
    opacity: 0; transform: translateX(-10px);
    animation: oyn-in .55s var(--ease-out) forwards;
    animation-delay: calc(.25s + var(--i) * .12s);
}
.oyn-legend__body { display: flex; flex-direction: column; gap: .1rem; }
.oyn-legend__body b { font-family: var(--font-display); font-size: 1rem; }
.oyn-legend__body small { font-size: .82rem; color: var(--text-tertiary); }
@keyframes oyn-in { to { opacity: 1; transform: none; } }

.oyn-setup {
    display: flex; flex-direction: column; gap: 1rem;
    padding: 1.25rem 1.3rem 1.3rem;
    border-radius: var(--radius-2xl);
    background: linear-gradient(160deg, var(--oyn-soft), transparent 55%), rgba(5, 14, 26, 0.72);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--surface-glass-border);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
}
.oyn-setup__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.oyn-setup__count { display: inline-flex; gap: .2rem; padding: .22rem; border-radius: var(--radius-pill); background: rgba(15, 23, 42, 0.45); border: 1px solid var(--surface-glass-border); }
.oyn-setup__n {
    min-width: 2.4rem; padding: .4rem .8rem;
    border: 0; border-radius: var(--radius-pill);
    background: transparent; color: var(--text-secondary);
    font-family: var(--font-display); font-weight: 600; font-size: .85rem;
    cursor: pointer; transition: background .2s, color .2s;
}
.oyn-setup__n:hover { color: var(--text-primary); }
.oyn-setup__n.is-active { background: var(--oyn); color: #2a0710; box-shadow: 0 6px 16px rgba(251, 113, 133, 0.35); }
.oyn-setup__names { display: grid; gap: .55rem; }
.oyn-setup__name {
    display: flex; align-items: center; gap: .7rem;
    padding: .25rem .35rem .25rem .85rem;
    border-radius: var(--radius-pill);
    background: rgba(5, 14, 26, 0.45);
    border: 1px solid var(--surface-glass-border);
    transition: border-color .2s;
}
.oyn-setup__name:focus-within { border-color: var(--jamoa); box-shadow: 0 0 0 3px rgba(var(--jamoa-rgb), .18); }
.oyn-setup__name i { width: 12px; height: 12px; border-radius: 50%; background: var(--jamoa); box-shadow: 0 0 12px rgba(var(--jamoa-rgb), .7); flex-shrink: 0; }
.oyn-setup__name input {
    flex: 1; min-width: 0; padding: .55rem .4rem;
    border: 0; background: transparent; color: var(--text-primary);
    font-family: var(--font-display); font-size: 1rem; font-weight: 600; outline: none;
}
.oyn-setup__name input::placeholder { color: var(--text-tertiary); font-weight: 500; }
.oyn-setup__hint { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--text-tertiary); }
.oyn-setup__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .25rem; }
.oyn-setup__actions .btn-primary { flex: 1; }
.oyn-setup__actions .btn small { font-weight: 500; opacity: .8; }

/* ------------------------------------------------------------------ o'yin */
.oyn-game { flex: 1; display: flex; flex-direction: column; gap: .75rem; min-height: 0; }

.oyn-tablo {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem .75rem;
    border-radius: var(--radius-xl);
    background: var(--tun);
    border: 1px solid var(--tun-chek);
    box-shadow: 0 12px 32px rgba(15, 31, 56, 0.2), inset 0 -2px 0 rgba(37, 99, 235, 0.5);
}
.oyn-tablo__teams { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .5rem; flex: 1; min-width: 0; }
.oyn-tablo__team {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .6rem;
    align-items: center;
    padding: .4rem .8rem .35rem;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.oyn-tablo__team::before {
    content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px;
    background: var(--jamoa); opacity: .55; transition: opacity .3s;
}
.oyn-tablo__team.is-navbat { border-color: rgba(var(--jamoa-rgb), .5); background: rgba(var(--jamoa-rgb), .1); box-shadow: 0 0 24px rgba(var(--jamoa-rgb), .18); }
.oyn-tablo__team.is-navbat::before { opacity: 1; }
.oyn-tablo__name { grid-column: 1; grid-row: 1; font-family: var(--font-display); font-weight: 600; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oyn-tablo__score { grid-column: 2; grid-row: 1 / span 2; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; color: var(--jamoa); font-variant-numeric: tabular-nums; }
.oyn-tablo__turn { grid-column: 1; grid-row: 2; }
.oyn-tablo__score.is-pop { animation: oyn-pop .6s var(--ease-spring); }
.oyn-tablo__turn { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--jamoa); opacity: .9; }
.oyn-tablo__teams.is-yakka .oyn-tablo__team { grid-template-rows: auto; }
@keyframes oyn-pop { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.oyn-tablo__meta { flex-shrink: 0; }
.oyn-tablo__progress { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); }
.oyn-tablo__progress b { font-size: 1.25rem; }
.oyn-tablo__progress small { font-size: .8rem; color: var(--text-tertiary); margin-left: -.4rem; }
.oyn-tablo__dots { display: flex; gap: 4px; }
.oyn-tablo__dots i { width: 10px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); transition: background .3s, transform .3s var(--ease-spring); }
.oyn-tablo__dots i.is-now { background: var(--oyn); transform: scaleY(1.5); box-shadow: 0 0 8px var(--oyn-soft); }
.oyn-tablo__dots i.is-ok  { background: var(--ok); }
.oyn-tablo__dots i.is-bad { background: var(--bad); }

.oyn-stage {
    flex: 1;
    min-height: 0;
    overflow-anchor: none;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--surface-glass-border);
    overflow: hidden;
    position: relative;
}

/* toast — sahnaning tepasida */
.oyn-toast {
    position: absolute; left: 50%; top: 1rem; z-index: 6;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .6rem 1.1rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-display); font-weight: 600; font-size: .95rem;
    color: #06101c;
    transform: translateX(-50%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    animation: oyn-toast .45s var(--ease-spring);
}
.oyn-toast[hidden] { display: none; }
.oyn-toast svg { width: 17px; height: 17px; }
.oyn-toast.is-ok  { background: var(--ok); }
.oyn-toast.is-bad { background: var(--bad); }
@keyframes oyn-toast { from { opacity: 0; transform: translate(-50%, -14px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }

/* ======================================================================
   TEMA: NISHON — kechki kamondan otish maydoni. Osmon, ufq, uch nishon.
   ====================================================================== */
.nishon {
    --ufq: 62%;
    position: absolute; inset: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    isolation: isolate;
    user-select: none;
    -webkit-user-select: none;
}
.nishon__sky {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 60% 26% at 50% var(--ufq), rgba(251, 146, 60, 0.42), transparent 70%),
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.8) 0 1px, transparent 1.6px),
        radial-gradient(circle at 33% 9%,  rgba(255, 255, 255, 0.6) 0 1px, transparent 1.5px),
        radial-gradient(circle at 62% 14%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
        radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
        radial-gradient(circle at 88% 8%,  rgba(255, 255, 255, 0.65) 0 1px, transparent 1.6px),
        radial-gradient(circle at 46% 30%, rgba(255, 255, 255, 0.5) 0 1px, transparent 1.4px),
        radial-gradient(circle at 8% 40%,  rgba(255, 255, 255, 0.45) 0 1px, transparent 1.4px),
        linear-gradient(180deg, #050a1c 0%, #0b1838 34%, #2b2552 52%, #6a3748 60%, #b8583a var(--ufq), #163529 var(--ufq), #0a1f1a 100%);
}
/* yengil bulutlar — sekin suzadi */
.nishon__sky i {
    position: absolute; height: 26px; border-radius: 999px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.09), transparent 70%);
    filter: blur(6px);
    animation: nishon-cloud linear infinite;
}
.nishon__sky i:nth-child(1) { top: 18%; left: -20%; width: 34%; animation-duration: 90s; }
.nishon__sky i:nth-child(2) { top: 31%; left: -30%; width: 26%; height: 18px; animation-duration: 120s; animation-delay: -40s; }
.nishon__sky i:nth-child(3) { top: 44%; left: -25%; width: 40%; height: 20px; animation-duration: 150s; animation-delay: -90s; }
@keyframes nishon-cloud { to { transform: translateX(380%); } }

.nishon__field {
    position: absolute; left: 0; right: 0; top: var(--ufq); bottom: 0; z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 12%);
}
/* yo'lak chiziqlari — perspektivada ufqqa qarab toraydi */
.nishon__field::before {
    content: ''; position: absolute; left: -40%; right: -40%; top: 0; height: 220%;
    background: repeating-linear-gradient(90deg, transparent 0 9.2%, rgba(255, 255, 255, 0.07) 9.2% 9.6%);
    transform-origin: top center;
    transform: perspective(420px) rotateX(64deg);
}
.nishon__field::after {
    content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 214, 170, 0.55), transparent);
}

/* --- kartochka --- */
.nishon__deck { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; padding: clamp(1rem, 3vw, 2rem) 1rem .5rem; }
.nishon__deck-slot { width: 100%; display: flex; justify-content: center; }
.oyn-card {
    position: relative;
    width: min(540px, 94%);
    padding: 1.2rem 1.5rem 1.15rem;
    border-radius: 6px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 30%),
        repeating-linear-gradient(180deg, transparent 0 27px, rgba(27, 36, 51, 0.06) 27px 28px),
        var(--qogoz);
    color: var(--siyoh);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08) inset, 0 24px 50px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(0, 0, 0, 0.25);
    transform: rotate(-1.5deg) translateY(36px);
    opacity: 0;
    cursor: grab;
    touch-action: none;
    transition: transform .55s var(--ease-spring), opacity .4s ease, box-shadow .25s ease;
}
.oyn-card.is-in { opacity: 1; transform: rotate(-1.5deg); }
.oyn-card:hover { box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08) inset, 0 30px 60px rgba(0, 0, 0, 0.5), 0 6px 12px rgba(0, 0, 0, 0.25); }
.oyn-card.is-dragging { cursor: grabbing; transition: none; box-shadow: 0 40px 70px rgba(0, 0, 0, 0.55); }
.oyn-card:focus-visible { outline: 3px solid var(--oyn); outline-offset: 4px; }
.oyn-card--flying { z-index: 60; pointer-events: none; cursor: default; opacity: 1; }
.oyn-card__pin {
    position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; margin-left: -8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fda4af, #e11d48 60%, #881337);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
}
.oyn-card__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(27, 36, 51, 0.55); font-weight: 600; }
.oyn-card__turn { color: #9f1239; }
.oyn-card p {
    color: var(--siyoh);
    margin: .55rem 0 .35rem;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.1vw, 1.55rem);
    line-height: 1.3;
    font-weight: 600;
    text-wrap: balance;
}
.oyn-card__grip { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; color: rgba(27, 36, 51, 0.5); }
.oyn-card__grip svg { width: 12px; height: 12px; }
.nishon.is-dragging .nishon__target { cursor: copy; }

/* --- nishonlar --- */
.nishon__targets {
    position: relative; z-index: 2;
    display: flex; justify-content: space-evenly; align-items: flex-end;
    gap: .5rem;
    padding: 0 1rem 1.35rem;
}
.nishon__target {
    display: flex; flex-direction: column; align-items: center; gap: .2rem;
    width: clamp(118px, 18vw, 176px);
    padding: .5rem .25rem 0;
    border: 0; background: transparent; color: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    opacity: 0; transform: translateY(20px);
    animation: oyn-in .6s var(--ease-out) forwards;
    animation-delay: calc(.1s + var(--i) * .12s);
}
.nishon__target:focus-visible { outline: none; }
.nishon__target:focus-visible .nishon__face { box-shadow: 0 0 0 4px var(--toifa); border-radius: 50%; }
.nishon__face {
    position: relative;
    width: 72%;
    aspect-ratio: 1;
    transition: transform .25s var(--ease-spring), filter .25s;
}
.nishon__face .oyn-ring { position: absolute; inset: 0; width: auto; }
.nishon__face::after {
    content: ''; position: absolute; inset: -6%; border-radius: 50%;
    border: 3px solid var(--toifa); opacity: 0; transform: scale(.8);
}
.nishon__target:hover .nishon__face,
.nishon__target.is-over .nishon__face { transform: scale(1.08) translateY(-4px); filter: drop-shadow(0 0 18px rgba(var(--toifa-rgb), .55)); }
.nishon__target.is-over .nishon__face::after { opacity: 1; transform: scale(1); transition: .2s; }
.nishon__target.is-hit .nishon__face::after { animation: nishon-ripple .7s var(--ease-out); }
.nishon__target.is-miss .nishon__face { animation: nishon-shake .48s ease; }
@keyframes nishon-ripple { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes nishon-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px) rotate(-3deg); } 40% { transform: translateX(8px) rotate(3deg); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }

/* uch oyoqli tagcha */
.nishon__stand { position: relative; width: 60%; height: 30px; margin-top: -6px; }
.nishon__stand::before, .nishon__stand::after {
    content: ''; position: absolute; top: 0; left: 50%; width: 4px; height: 100%; margin-left: -2px;
    border-radius: 2px;
    background: linear-gradient(180deg, #6b4a3a, #2c1d17);
    transform-origin: top center;
}
.nishon__stand::before { transform: rotate(-20deg); }
.nishon__stand::after  { transform: rotate(20deg); }

.nishon__label {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .7rem .35rem .45rem;
    border-radius: var(--radius-pill);
    background: rgba(5, 14, 26, 0.6);
    border: 1px solid rgba(var(--toifa-rgb), .4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.nishon__label kbd {
    display: inline-grid; place-items: center; width: 20px; height: 20px;
    border-radius: 6px; font: 600 .7rem var(--font-display);
    background: var(--toifa); color: #06101c;
}
.nishon__label svg { width: 15px; height: 15px; color: var(--toifa); }
.nishon__label b { font-family: var(--font-display); font-size: .84rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.nishon__label b[data-count]::after {
    content: attr(data-count);
    margin-left: .4rem; padding: 0 .4rem;
    border-radius: 999px; font-size: .7rem;
    background: rgba(var(--toifa-rgb), .25); color: var(--toifa);
}

/* qadalgan kartochkalar */
.nishon__pins { position: absolute; inset: 0; pointer-events: none; }
.nishon__pin {
    position: absolute; left: 50%; top: 50%;
    width: 34px; height: 22px; margin: -11px 0 0 -17px;
    display: grid; place-items: center;
    border-radius: 3px;
    background: var(--qogoz); color: var(--siyoh);
    font: 700 .66rem var(--font-display);
    border: 2px solid var(--ok);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
    transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--rot, 0deg));
}
.nishon__pin.is-bad { border-color: var(--bad); }
.nishon__pin.is-bad::after { content: '✕'; position: absolute; right: -6px; top: -9px; font-size: .62rem; color: var(--bad); }
.nishon__pin.is-new { animation: nishon-pin .5s var(--ease-spring); }
.nishon__pin--flying { z-index: 60; margin: 0; }
@keyframes nishon-pin { 0% { transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--rot, 0deg)) scale(1.8); opacity: .6; } 100% { transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--rot, 0deg)) scale(1); opacity: 1; } }

.nishon__hint {
    display: inline-flex; align-items: center; gap: .35rem;
    margin: 0; padding: .3rem .8rem;
    border-radius: var(--radius-pill);
    font-size: .74rem; color: var(--text-tertiary);
    background: rgba(5, 14, 26, 0.45);
    transition: opacity .5s;
}
/* kirishdagi afsona nishonlari — bosilmaydi, ostida izoh */
.nishon__targets--legend { list-style: none; margin: auto 0 0; padding: 0 1rem 1.4rem; z-index: 1; }
.nishon__targets--legend .nishon__target { cursor: default; width: clamp(130px, 20vw, 200px); }
.nishon__targets--legend .nishon__target:hover .nishon__face { transform: none; filter: none; }
.nishon__targets--legend .nishon__face { width: 56%; }
.nishon__izoh { margin-top: .2rem; font-size: .76rem; line-height: 1.35; text-align: center; color: var(--text-secondary); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); max-width: 22ch; }
.nishon__hint svg { width: 12px; height: 12px; }
.nishon__hint.is-hidden { opacity: 0; }

/* ----------------------------------------------------------------- yakun */
.oyn-yakun {
    position: relative;
    width: min(100%, 980px); margin: 0 auto;
    display: flex; flex-direction: column; gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.4rem) clamp(1.25rem, 3vw, 2.2rem);
    border-radius: var(--radius-2xl);
    background:
        radial-gradient(ellipse 70% 55% at 50% 0%, rgba(251, 113, 133, 0.18), transparent 72%),
        var(--tun);
    border: 1px solid var(--tun-chek);
    box-shadow: 0 24px 60px rgba(15, 31, 56, 0.22);
    opacity: 0; transform: translateY(16px);
    transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
.oyn-yakun.is-in { opacity: 1; transform: none; }
.oyn-yakun__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: .4rem; }
.oyn-yakun__trophy {
    display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: .4rem;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fde68a, #f59e0b 55%, #92400e);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.15), 0 18px 40px rgba(245, 158, 11, 0.35);
    color: #451a03;
    animation: oyn-pop .8s var(--ease-spring) .2s both;
}
.oyn-yakun__trophy svg { width: 36px; height: 36px; }
.oyn-yakun__head h2 { margin: .1rem 0 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; }
.oyn-yakun__head p { margin: 0; color: var(--text-secondary); font-size: 1.02rem; }

.oyn-yakun__tablo { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.oyn-yakun__tablo li {
    display: grid; grid-template-columns: 2rem minmax(0, 160px) 1fr auto; align-items: center; gap: .9rem;
    padding: .55rem .9rem;
    border-radius: var(--radius-lg);
    background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
}
.oyn-yakun__tablo li.is-golib { border-color: rgba(var(--jamoa-rgb), .55); background: rgba(var(--jamoa-rgb), .1); }
.oyn-yakun__rank { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(var(--jamoa-rgb), .18); color: var(--jamoa); font: 700 .9rem var(--font-display); }
.oyn-yakun__rank svg { width: 16px; height: 16px; }
.oyn-yakun__name { font-family: var(--font-display); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oyn-yakun__bar { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.oyn-yakun__bar i { display: block; height: 100%; width: calc(var(--b) / var(--max) * 100%); border-radius: 4px; background: var(--jamoa); transform-origin: left; animation: oyn-bar .9s var(--ease-out) .3s both; }
.oyn-yakun__tablo b { font-family: var(--font-display); font-size: 1.35rem; color: var(--jamoa); font-variant-numeric: tabular-nums; }
.oyn-yakun__tablo b small { font-size: .8rem; color: var(--text-tertiary); }
@keyframes oyn-bar { from { transform: scaleX(0); } }

.oyn-board { display: flex; flex-direction: column; gap: .9rem; }
.oyn-board__head p { margin: .25rem 0 0; font-size: .9rem; color: var(--text-tertiary); }
.oyn-board__cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: .8rem; }
.oyn-board__col {
    padding: 1rem 1rem 1.1rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(var(--toifa-rgb), .12), transparent 50%), var(--surface-glass);
    border: 1px solid rgba(var(--toifa-rgb), .35);
}
.oyn-board__col h3 { display: flex; align-items: center; gap: .6rem; margin: 0 0 .8rem; font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.oyn-board__col h3 .oyn-ring { width: 26px; box-shadow: 0 0 0 2px var(--toifa); }
.oyn-board__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.oyn-board__col li {
    display: flex; flex-direction: column; gap: .15rem;
    padding: .5rem .7rem;
    border-radius: var(--radius-sm);
    background: rgba(5, 14, 26, 0.4);
    border-left: 3px solid rgba(255, 255, 255, 0.15);
    font-size: .9rem; line-height: 1.4;
}
.oyn-board__col li.is-ok  { border-left-color: var(--ok); }
.oyn-board__col li.is-bad { border-left-color: var(--bad); }
.oyn-board__col li small { font-size: .76rem; color: var(--bad); }

.oyn-yakun__natija ul { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .3rem; color: var(--text-secondary); font-size: .92rem; line-height: 1.5; }
.oyn-yakun__natija li { display: flex; gap: .6rem; align-items: flex-start; }
.oyn-yakun__natija li::before { content: '✓'; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--ok); background: rgba(74, 222, 128, 0.14); margin-top: 1px; }
.oyn-yakun__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }

/* ----------------------------------------------------------------- qoida */
.oyn-qoida {
    position: fixed; inset: 0; z-index: 90;
    display: grid; place-items: center; padding: 1rem;
    background: rgba(3, 8, 18, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: oyn-fade .25s ease;
}
.oyn-qoida[hidden] { display: none; }
.oyn-qoida__box {
    position: relative; width: min(100%, 600px); max-height: 86vh; overflow: auto;
    padding: 1.5rem 1.6rem 1.6rem;
    border-radius: var(--radius-2xl);
    background: var(--surface-deep);
    border: 1px solid var(--surface-glass-border);
    box-shadow: var(--shadow-lg);
}
.oyn-qoida__box h3 { margin: .5rem 0 1rem; font-family: var(--font-display); font-size: 1.5rem; }
.oyn-qoida__close { position: absolute; top: .9rem; right: .9rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--surface-glass-border); background: var(--surface-glass); color: var(--text-secondary); cursor: pointer; }
.oyn-qoida__list { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .7rem 1rem; font-size: .92rem; line-height: 1.55; }
.oyn-qoida__list dt { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--oyn); white-space: nowrap; }
.oyn-qoida__list dt svg { width: 15px; height: 15px; }
.oyn-qoida__list dd { margin: 0; color: var(--text-secondary); }
.oyn-qoida__list ul { margin: 0; padding-left: 1.1rem; }
@keyframes oyn-fade { from { opacity: 0; } }

/* -------------------------------------------------- ro'yxat sahifasi muqovasi */
.mavzu-card__cover--oyin { position: relative; height: 150px; padding: 0; overflow: hidden; }
.mavzu-card__cover--oyin.is-drawn { display: block; }
.oyn-mini { position: relative; width: 100%; height: 100%; }
.oyn-mini[data-tema="nishon"] {
    background: linear-gradient(180deg, #070f26 0%, #2a2552 42%, #b8583a 64%, #163529 64%, #0a1f1a 100%);
}
.oyn-mini[data-tema="nishon"]::before {
    content: ''; position: absolute; left: -30%; right: -30%; top: 64%; height: 120%;
    background: repeating-linear-gradient(90deg, transparent 0 9.2%, rgba(255, 255, 255, 0.07) 9.2% 9.6%);
    transform-origin: top center; transform: perspective(200px) rotateX(64deg);
}
.oyn-mini__scene { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: space-evenly; align-items: flex-end; }
.oyn-mini__scene i {
    width: 46px; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, var(--toifa) 0 20%, #f8f1e4 20% 40%, var(--toifa) 40% 60%, #f8f1e4 60% 100%);
    box-shadow: 0 0 0 2px var(--toifa), 0 8px 16px rgba(0, 0, 0, 0.45);
    transition: transform .4s var(--ease-spring);
}
.oyn-mini__scene i:nth-child(2) { transform: translateY(6px); }
.mavzu-card:hover .oyn-mini__scene i { transform: translateY(-4px) scale(1.06); }
.mavzu-card:hover .oyn-mini__scene i:nth-child(2) { transform: translateY(2px) scale(1.06); }
.oyn-mini__title {
    position: absolute; left: 14px; top: 16px; transform: rotate(-2deg);
    padding: .45rem .8rem; border-radius: 4px;
    background: #f8f1e4; color: #1b2433;
    font: 600 .82rem/1.2 var(--font-display); white-space: nowrap;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}
.oyn-mini__title::before { content: ''; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: #e11d48; }

/* ----------------------------------------------------------- responsive */
@media screen and (max-width: 980px) {
    .oyn-kirish__top { grid-template-columns: 1fr; }
    .oyn-board__cols { grid-template-columns: 1fr; }
    .nishon__izoh { display: none; }
}
@media screen and (max-width: 760px) {
    .oyn { padding-top: .5rem; }
    .oyn__head .xarita-act span { display: none; }
    .oyn-tablo { flex-direction: column; align-items: stretch; gap: .5rem; }
    .oyn-tablo__teams { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .oyn-tablo__meta { display: flex; justify-content: center; }
    .oyn-stage { min-height: 560px; }
    .nishon { --ufq: 58%; }
    .nishon__targets { padding: 0 .4rem 2rem; gap: .25rem; }
    .nishon__target { width: 31%; }
    .nishon__label { padding: .3rem .5rem .3rem .35rem; }
    .nishon__label b { font-size: .68rem; }
    .nishon__label svg { display: none; }
    .nishon__hint { font-size: .68rem; }
    .nishon__targets--legend .nishon__target { width: 31%; }
    .oyn-card { padding: 1rem 1.1rem .9rem; }
    .oyn-yakun__tablo li { grid-template-columns: 2rem minmax(0, 1fr) auto; }
    .oyn-yakun__bar { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .oyn-kirish, .oyn-yakun, .oyn-card { transition: none; opacity: 1; transform: none; }
    .oyn-legend__item, .nishon__target, .oyn-yakun__trophy, .oyn-yakun__bar i, .nishon__sky i, .nishon__pin.is-new, .oyn-tablo__score.is-pop { animation: none; opacity: 1; transform: none; }
    .oyn-card.is-in { transform: rotate(-1.5deg); }
}

/* ======================================================================
   TEMA: STADION — tungi stadion, projektorlar, tribuna, katta ekran, podiumlar.
   Bellashuv mexanikasi (intellektual teleo'yin).
   ====================================================================== */
.stadion {
    position: relative;
    min-height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    isolation: isolate;
}
.oyn-stage:has(.stadion) { min-height: 560px; display: flex; flex-direction: column; }
.oyn-stage:has(.stadion) .stadion { flex: 1; }
.stadion__sky {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 100%, rgba(16, 185, 129, 0.12), transparent 70%),
        linear-gradient(180deg, #03060f 0%, #070d1f 45%, #0b1730 75%, #0d1f33 100%);
}
/* projektor nurlari — ikki ustundan maydonga */
.stadion__beam {
    position: absolute; top: -6%; width: 46%; height: 86%; z-index: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 60%, transparent);
    filter: blur(2px);
    opacity: .9;
    animation: stadion-beam 9s ease-in-out infinite alternate;
}
.stadion__beam--l { left: -8%; clip-path: polygon(12% 0, 20% 0, 100% 100%, 30% 100%); }
.stadion__beam--r { right: -8%; clip-path: polygon(80% 0, 88% 0, 70% 100%, 0 100%); animation-delay: -4.5s; }
.stadion__beam::before {
    content: ''; position: absolute; top: 0; width: 26px; height: 26px; border-radius: 50%;
    background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0.6) 40%, transparent 70%);
    box-shadow: 0 0 40px 16px rgba(255, 255, 255, 0.35);
}
.stadion__beam--l::before { left: 14%; }
.stadion__beam--r::before { right: 14%; }
@keyframes stadion-beam { from { opacity: .7; } to { opacity: 1; } }
/* tribuna — qatorlar */
.stadion__stands {
    position: absolute; left: -5%; right: -5%; bottom: 22%; height: 30%; z-index: 0;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background:
        repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 3px, transparent 3px 14px),
        linear-gradient(180deg, #0c1730, #111f3a);
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.45);
}
.stadion__stands::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
                radial-gradient(circle at 55% 20%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px),
                radial-gradient(circle at 78% 40%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px),
                radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.25) 0 1px, transparent 2px),
                radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px);
    animation: stadion-flash 3s steps(2) infinite;
}
@keyframes stadion-flash { 50% { opacity: .3; } }
/* maydon */
.stadion__field {
    position: absolute; left: 0; right: 0; bottom: 0; height: 23%; z-index: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 60px, transparent 60px 120px),
        linear-gradient(180deg, #14532d, #0b3d22 60%, #07301b);
    border-top: 2px solid rgba(255, 255, 255, 0.5);
}
.stadion__field::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px;
    background: rgba(255, 255, 255, 0.4);
}
.stadion__field::after {
    content: ''; position: absolute; left: 50%; top: -1px; width: 160px; height: 160px; margin-left: -80px;
    border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: transparent;
    transform: scaleY(.35);
}

/* --- katta ekran (jumbotron) --- */
.stadion__screen {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    padding: clamp(.75rem, 2vw, 1.5rem) clamp(.75rem, 2vw, 1.5rem) 0;
    min-height: 0;
}
.stadion__board {
    position: relative;
    width: min(860px, 100%);
    display: flex; flex-direction: column; gap: .9rem;
    padding: 1.25rem 1.5rem 1.35rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #0a1325, #060b18);
    border: 2px solid #1f2c48;
    box-shadow: 0 0 0 6px #0b1222, 0 0 0 7px #24314f, 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 0 60px rgba(56, 189, 248, 0.06);
    color: #e8f1ff;
    opacity: 0; transform: translateY(-10px) scale(.985);
    transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.stadion__board.is-in { opacity: 1; transform: none; }
.stadion__board--intro { align-items: center; text-align: center; gap: .6rem; padding: 2rem 1.5rem; cursor: pointer; }
.stadion__board--intro h2 { margin: .2rem 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
.stadion__board--intro p { margin: 0 0 .8rem; max-width: 52ch; color: #b7c6e2; line-height: 1.55; }
.stadion__led {
    position: absolute; left: 12px; right: 12px; top: 6px; height: 3px; border-radius: 2px;
    background: repeating-linear-gradient(90deg, #38bdf8 0 6px, transparent 6px 10px);
    opacity: .7;
    animation: stadion-led 1.2s linear infinite;
}
@keyframes stadion-led { to { background-position: 10px 0; } }
.stadion__board-head {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-family: var(--font-display); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: #7dd3fc;
}
.stadion__turn { color: var(--jamoa); }
.stadion__question {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    line-height: 1.3; font-weight: 600;
    text-wrap: balance;
}
.stadion__question--tarif { font-style: italic; font-weight: 500; color: #dbeafe; }
.stadion__question--tarif::before { content: '« '; color: #38bdf8; }
.stadion__question--tarif::after { content: ' »'; color: #38bdf8; }

.stadion__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.stadion__tile {
    padding: .8rem 1rem;
    border-radius: 10px;
    border: 1px solid #2a3a5e;
    background: #0f1b33;
    color: #e8f1ff;
    font-family: var(--font-display); font-weight: 600; font-size: 1rem;
    text-align: left; cursor: pointer;
    transition: transform .2s var(--ease-spring), border-color .2s, background .2s, opacity .2s;
}
.stadion__tile:not(:disabled):hover { transform: translateY(-2px); border-color: #38bdf8; background: #13254a; }
.stadion__tile:disabled { cursor: default; opacity: .55; }
.stadion__tile.is-ok  { opacity: 1; border-color: var(--ok); background: rgba(74, 222, 128, 0.16); color: #d1fae5; }
.stadion__tile.is-bad { opacity: .6; border-color: var(--bad); background: rgba(248, 113, 113, 0.12); text-decoration: line-through; }

.stadion__waiting {
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    padding: .7rem .9rem; border-radius: 10px;
    background: rgba(255, 255, 255, 0.04); border: 1px dashed #2a3a5e;
    color: #b7c6e2; font-size: .92rem;
}
.stadion__waiting .btn { margin-left: auto; }
.stadion__pulse {
    width: 12px; height: 12px; border-radius: 50%; background: #38bdf8; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6);
    animation: stadion-pulse 1.4s ease-out infinite;
}
@keyframes stadion-pulse { to { box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); } }

.stadion__verdict {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
    padding: .75rem .9rem; border-radius: 10px;
    background: rgba(var(--jamoa-rgb), .12); border: 1px solid rgba(var(--jamoa-rgb), .5);
    animation: stadion-in .4s var(--ease-spring);
}
@keyframes stadion-in { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.stadion__verdict-name { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; color: var(--jamoa); }
.stadion__verdict-name svg { width: 16px; height: 16px; }
.stadion__verdict small { color: #b7c6e2; }
.stadion__verdict-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.stadion__ok  { background: var(--ok); color: #052e16; border-color: transparent; }
.stadion__bad { background: rgba(248, 113, 113, 0.18); color: #fecaca; border-color: rgba(248, 113, 113, 0.5); }
.stadion__ok:hover, .stadion__bad:hover { transform: translateY(-2px); }

.stadion__answer {
    padding: .8rem 1rem; border-radius: 10px;
    background: rgba(56, 189, 248, 0.08); border-left: 3px solid #38bdf8;
}
.stadion__answer.is-ok { background: rgba(74, 222, 128, 0.1); border-left-color: var(--ok); }
.stadion__answer small { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #7dd3fc; }
.stadion__answer.is-ok small { color: var(--ok); }
.stadion__answer small svg { width: 13px; height: 13px; }
.stadion__answer p { margin: .35rem 0 0; font-size: 1.02rem; line-height: 1.55; color: #e8f1ff; }
.stadion__actions { display: flex; justify-content: flex-end; align-items: center; gap: .8rem; flex-wrap: wrap; }
.stadion__hint { margin-right: auto; font-size: .8rem; color: #8fa3c4; }

/* zanjir */
.stadion__chain { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.stadion__link {
    padding: .55rem .85rem; border-radius: 8px;
    font-family: var(--font-display); font-weight: 600; font-size: .92rem;
    border: 1px solid #2a3a5e; background: #0f1b33; color: #e8f1ff;
}
.stadion__link.is-fixed { background: #172a4d; border-color: #38bdf8; color: #bae6fd; }
.stadion__link.is-end { background: transparent; border-style: dashed; color: #8fa3c4; }
.stadion__slot { cursor: pointer; min-width: 3rem; text-align: center; transition: transform .2s var(--ease-spring), border-color .2s; }
.stadion__slot.is-empty { border-style: dashed; color: #5e7399; background: transparent; }
.stadion__slot.is-filled:hover { border-color: var(--bad); transform: translateY(-2px); }
.stadion__slot.is-ok  { border-color: var(--ok); background: rgba(74, 222, 128, 0.16); }
.stadion__slot.is-bad { border-color: var(--bad); background: rgba(248, 113, 113, 0.14); }
.stadion__slot:disabled { cursor: default; }
.stadion__arrow { width: 18px; height: 2px; background: #38bdf8; position: relative; flex-shrink: 0; }
.stadion__arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: #38bdf8; }
.stadion__tray { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .3rem; border-top: 1px dashed #2a3a5e; }
.stadion__chip {
    padding: .6rem .9rem; border-radius: 999px;
    border: 1px solid #38bdf8; background: rgba(56, 189, 248, 0.12); color: #e0f2fe;
    font-family: var(--font-display); font-weight: 600; font-size: .9rem; cursor: pointer;
    transition: transform .2s var(--ease-spring), opacity .2s;
}
.stadion__chip:not(:disabled):hover { transform: translateY(-2px); }
.stadion__chip:disabled { opacity: .25; cursor: default; }
.stadion__chain-results { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.stadion__chain-results li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .8rem; border-radius: 8px; background: rgba(var(--jamoa-rgb), .1); border-left: 3px solid var(--jamoa); font-size: .92rem; }
.stadion__chain-results b { color: var(--jamoa); }

/* --- podiumlar --- */
.stadion__podiums {
    position: relative; z-index: 2;
    display: flex; justify-content: center; align-items: flex-end; gap: clamp(.5rem, 2vw, 1.5rem);
    padding: .75rem 1rem 1.1rem;
}
.stadion__podium {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    width: clamp(120px, 18vw, 190px);
    padding: 1rem .6rem .75rem;
    border-radius: 12px 12px 4px 4px;
    border: 1px solid rgba(var(--jamoa-rgb), .4);
    border-bottom: 4px solid var(--jamoa);
    background: linear-gradient(180deg, rgba(var(--jamoa-rgb), .16), rgba(5, 14, 26, 0.85) 70%);
    color: var(--text-primary);
    cursor: pointer;
    transition: transform .25s var(--ease-spring), box-shadow .3s, opacity .3s;
}
.stadion__podium:not(:disabled):hover { transform: translateY(-4px); }
.stadion__podium:disabled { cursor: default; }
.stadion__podium.is-on { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--jamoa), 0 18px 50px rgba(var(--jamoa-rgb), .45); }
.stadion__podium.is-locked { opacity: .4; filter: grayscale(.6); }
.stadion__podium.is-locked::after { content: '✕'; position: absolute; top: .4rem; right: .6rem; color: var(--bad); font-weight: 700; }
.stadion__lamp {
    width: 34px; height: 34px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.5), rgba(var(--jamoa-rgb), .45) 40%, rgba(var(--jamoa-rgb), .15) 70%);
    border: 2px solid rgba(var(--jamoa-rgb), .6);
    margin-bottom: .3rem;
    transition: box-shadow .3s, background .3s;
}
.stadion__podium.is-on .stadion__lamp {
    background: radial-gradient(circle at 35% 30%, #fff, var(--jamoa) 45%, rgba(var(--jamoa-rgb), .7));
    box-shadow: 0 0 24px 6px rgba(var(--jamoa-rgb), .7);
    animation: stadion-lamp .9s ease-in-out infinite alternate;
}
@keyframes stadion-lamp { to { box-shadow: 0 0 36px 12px rgba(var(--jamoa-rgb), .85); } }
.stadion__podium-name { font-family: var(--font-display); font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stadion__podium-score { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--jamoa); font-variant-numeric: tabular-nums; }
.stadion__podium kbd {
    position: absolute; top: .45rem; left: .55rem;
    display: inline-grid; place-items: center; width: 20px; height: 20px;
    border-radius: 6px; font: 600 .7rem var(--font-display);
    background: rgba(var(--jamoa-rgb), .25); color: var(--jamoa);
}
.oyn-tablo__sep { color: var(--text-tertiary); margin: 0 .2rem; }

/* kirish — uch shart maydonda */
.oyn-kirish[data-tema] { --ufq: 70%; }
.stadion__shartlar {
    position: relative; z-index: 1;
    list-style: none; margin: auto 0 0; padding: 0 0 1.25rem;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem;
}
.stadion__shart {
    display: flex; flex-direction: column; gap: .3rem;
    padding: .9rem 1rem 1rem;
    border-radius: 12px 12px 4px 4px;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.12), rgba(5, 14, 26, 0.8) 60%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-bottom: 4px solid #38bdf8;
    opacity: 0; transform: translateY(16px);
    animation: oyn-in .6s var(--ease-out) forwards;
    animation-delay: calc(.2s + var(--i) * .12s);
}
.stadion__shart-n { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #7dd3fc; font-weight: 600; }
.stadion__shart b { font-family: var(--font-display); font-size: 1.05rem; }
.stadion__shart small { font-size: .8rem; line-height: 1.45; color: var(--text-secondary); }
.stadion__shart-ball { margin-top: auto; padding-top: .4rem; font-family: var(--font-display); font-size: .8rem; color: #fbbf24; }

/* yakun — darajalar va refleksiya */
.stadion__darajalar { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.stadion__darajalar li {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
    padding: .7rem 1rem; border-radius: var(--radius-lg);
    background: rgba(var(--jamoa-rgb), .08); border: 1px solid rgba(var(--jamoa-rgb), .35);
}
.stadion__daraja-belgi { font-size: 1.6rem; }
.stadion__daraja-body { display: flex; flex-direction: column; }
.stadion__daraja-body b { font-family: var(--font-display); }
.stadion__daraja-body small { color: var(--text-secondary); }
.stadion__daraja-ball { font-family: var(--font-display); font-size: 1.5rem; color: var(--jamoa); }
.stadion__daraja-ball small { font-size: .75rem; color: var(--text-tertiary); }
.stadion__refleksiya { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.stadion__refleksiya li {
    display: flex; gap: .7rem; align-items: flex-start;
    padding: .9rem 1rem; border-radius: var(--radius-lg);
    background: var(--surface-glass); border: 1px solid var(--surface-glass-border);
    font-family: var(--font-display); font-size: 1rem; line-height: 1.4;
}
.stadion__refleksiya span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; background: rgba(56, 189, 248, 0.2); color: #7dd3fc; font-size: .78rem; font-weight: 700; }

/* ro'yxat muqovasi */
.oyn-mini[data-tema="stadion"] {
    background: linear-gradient(180deg, #03060f 0%, #0b1730 70%, #14532d 78%, #0b3d22 100%);
}
.oyn-mini[data-tema="stadion"]::before {
    content: ''; position: absolute; left: -5%; right: -5%; top: 50%; height: 28%;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 8px), #111f3a;
}
.oyn-mini[data-tema="stadion"]::after {
    content: ''; position: absolute; left: 20%; right: 20%; top: 0; height: 78%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 70%);
    clip-path: polygon(0 0, 10% 0, 60% 100%, 40% 100%);
}
.oyn-mini[data-tema="stadion"] .oyn-mini__title { background: #0a1325; color: #e8f1ff; border: 1px solid #38bdf8; transform: none; left: 50%; translate: -50% 0; top: 56%; }
.oyn-mini[data-tema="stadion"] .oyn-mini__title::before { display: none; }

@media screen and (max-width: 760px) {
    .stadion__tiles { grid-template-columns: 1fr; }
    .stadion__board { padding: 1rem 1rem 1.1rem; }
    .stadion__podium { width: 31%; padding: .8rem .4rem .6rem; }
    .stadion__podium-name { font-size: .74rem; }
    .stadion__shartlar { grid-template-columns: 1fr; }
    .stadion__shart small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .stadion__beam, .stadion__stands::after, .stadion__led, .stadion__pulse, .stadion__podium.is-on .stadion__lamp, .stadion__shart { animation: none; opacity: 1; transform: none; }
    .stadion__board { transition: none; opacity: 1; transform: none; }
}

/* ======================================================================
   TEMA: ZAL — sport zali: shved devori, deraza, halqa, parket, gilamcha.
   Namoyish mexanikasi (kartochka qutisi → sifat → namoyish va baho).
   ====================================================================== */
[data-rang="qizil"]    { --toifa-rgb: 248, 113, 113; }
[data-rang="binafsha"] { --toifa-rgb: 167, 139, 250; }

.zal {
    position: relative; min-height: 100%;
    display: grid; grid-template-columns: minmax(220px, 30%) minmax(0, 1fr);
    gap: 1rem; padding: clamp(1rem, 2.5vw, 1.75rem);
    isolation: isolate;
}
.oyn-stage:has(.zal) { min-height: 560px; display: flex; flex-direction: column; }
.oyn-stage:has(.zal) .zal { flex: 1; }
.zal__wall {
    position: absolute; inset: 0 0 28%; z-index: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 118px, rgba(255, 255, 255, 0.025) 118px 120px),
        linear-gradient(180deg, #15212f 0%, #1b2a3b 70%, #22344a 100%);
    border-bottom: 14px solid #3a2a1f;
    box-shadow: inset 0 -30px 60px rgba(0, 0, 0, 0.35);
}
/* shved devori — chap tomonda */
.zal__ladder {
    position: absolute; left: 3%; top: 6%; bottom: 0; width: 90px;
    border-left: 6px solid #8a5a2b; border-right: 6px solid #8a5a2b;
    background: repeating-linear-gradient(180deg, transparent 0 34px, #a66d35 34px 40px);
    opacity: .85;
}
/* deraza — yorug'lik tushadi */
.zal__window {
    position: absolute; right: 8%; top: 8%; width: 26%; height: 34%;
    border: 5px solid #2e4258; border-radius: 4px;
    background:
        linear-gradient(90deg, transparent 49%, #2e4258 49% 51%, transparent 51%),
        linear-gradient(180deg, transparent 49%, #2e4258 49% 51%, transparent 51%),
        linear-gradient(160deg, rgba(125, 211, 252, 0.35), rgba(56, 189, 248, 0.08));
    box-shadow: 0 0 80px 20px rgba(125, 211, 252, 0.12);
}
/* basketbol halqasi */
.zal__ring {
    position: absolute; left: 44%; top: 16%; width: 60px; height: 70px;
    border-left: 4px solid #d1d5db; border-top: 4px solid #d1d5db;
    border-radius: 2px;
}
.zal__ring::after {
    content: ''; position: absolute; left: -34px; top: 60px; width: 64px; height: 14px;
    border: 4px solid #f97316; border-radius: 50%;
}
.zal__floor {
    position: absolute; left: 0; right: 0; bottom: 0; height: 28%; z-index: 0;
    background:
        linear-gradient(90deg, transparent 49.7%, rgba(255, 255, 255, 0.45) 49.7% 50.3%, transparent 50.3%),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 2px, transparent 2px 90px),
        repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 18px),
        linear-gradient(180deg, #b07a45, #8d5c2e);
}
.zal__floor::before {
    content: ''; position: absolute; left: 50%; top: -2px; width: 220px; height: 90px; margin-left: -110px;
    border: 3px solid rgba(255, 255, 255, 0.45); border-radius: 50%; transform: scaleY(.4); transform-origin: top;
}

/* quti (chap) */
.zal__box { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.5rem; }
.zal__deck { position: relative; width: min(100%, 250px); aspect-ratio: 5 / 6.2; }
.zal__deck i {
    position: absolute; inset: 0; border-radius: 14px;
    background: #0f1f35; border: 1px solid #2a3f60;
    transform: translate(calc(var(--i) * -3px), calc(var(--i) * 4px)) rotate(calc(var(--i) * -1deg));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.zal__card {
    position: relative; z-index: 2;
    width: 100%;
    border-radius: 14px;
    background: #fffdf6; color: #1b2433;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.zal__card--back {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    background: linear-gradient(160deg, #1d4ed8, #0f2f7a);
    border: 3px solid #fff; color: #fff;
    cursor: pointer;
    font-family: var(--font-display);
    transition: transform .3s var(--ease-spring), box-shadow .3s;
}
.zal__card--back:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 28px 50px rgba(0, 0, 0, 0.5); }
.zal__card--back::before { content: ''; position: absolute; inset: 10px; border: 2px dashed rgba(255, 255, 255, 0.5); border-radius: 10px; }
.zal__card-logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); }
.zal__card-logo svg { width: 28px; height: 28px; }
.zal__card--back b { font-size: 1.1rem; }
.zal__card--back small { font-size: .74rem; opacity: .85; text-align: center; padding: 0 1rem; }
.zal__deck.is-empty i { display: none; }

/* gilamcha (o'ng) */
.zal__mat {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; gap: .9rem; justify-content: center;
    padding: 1.1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(29, 78, 216, 0.35), rgba(29, 78, 216, 0.2));
    border: 2px solid rgba(147, 197, 253, 0.35);
    box-shadow: inset 0 0 0 10px rgba(30, 64, 175, 0.25);
    min-height: 340px;
}
.zal__hint { margin: auto; display: inline-flex; align-items: center; gap: .4rem; color: var(--text-secondary); font-size: .9rem; }
.zal__hint svg { width: 14px; height: 14px; }
.zal__card--face {
    display: flex; flex-direction: column; gap: .7rem;
    padding: 1rem 1.25rem 1.1rem;
    border-top: 6px solid rgba(var(--toifa-rgb, 29, 78, 216), 1);
    transition: transform .55s var(--ease-out), opacity .4s;
    transform-origin: center left;
}
.zal__card--face.is-flip { transform: rotateY(90deg); opacity: 0; }
.zal__card-head { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(27, 36, 51, 0.55); font-weight: 600; }
.zal__card-head svg { width: 14px; height: 14px; vertical-align: -3px; color: #d97706; }
/* kirishda matn chap ustunda — devor jihozlari o'rtaga suriladi */
.oyn-kirish .zal__ladder { left: 52%; opacity: .5; }
.oyn-kirish .zal__ring { left: 60%; top: 10%; opacity: .7; }
.zal__task { margin: 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); line-height: 1.25; font-weight: 700; color: #1b2433; }
.zal__ask { font-size: .82rem; color: rgba(27, 36, 51, 0.65); }
.zal__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.zal__chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .85rem .5rem .5rem;
    border-radius: 999px;
    border: 1.5px solid rgba(var(--toifa-rgb, 100, 116, 139), .6);
    background: rgba(var(--toifa-rgb, 100, 116, 139), .1);
    color: #1b2433; font-family: var(--font-display); font-weight: 600; font-size: .9rem;
    cursor: pointer; transition: transform .2s var(--ease-spring), background .2s;
}
.zal__chip:hover { transform: translateY(-2px); background: rgba(var(--toifa-rgb, 100, 116, 139), .25); }
.zal__chip kbd { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgb(var(--toifa-rgb, 100, 116, 139)); color: #fff; font: 700 .68rem var(--font-display); }
.zal__chip.is-team { --toifa-rgb: var(--jamoa-rgb); padding-left: .85rem; }
.zal__verdict { display: flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 10px; font-size: .95rem; }
.zal__verdict svg { width: 18px; height: 18px; flex-shrink: 0; }
.zal__verdict.is-ok  { background: rgba(74, 222, 128, 0.18); color: #14532d; }
.zal__verdict.is-bad { background: rgba(248, 113, 113, 0.16); color: #7f1d1d; }
.zal__verdict s { opacity: .7; }

.zal__demo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; }
.zal__stopwatch {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: .9rem 1.1rem;
    border-radius: 14px; background: rgba(5, 14, 26, 0.7); border: 1px solid var(--surface-glass-border);
}
.zal__stopwatch b { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.zal__sw-btns { display: flex; gap: .4rem; }
.zal__sw-btns .btn.is-on { background: rgba(248, 113, 113, 0.2); color: #fecaca; border-color: rgba(248, 113, 113, 0.5); }
.zal__rubric { display: grid; gap: .4rem; padding: .75rem .9rem; border-radius: 14px; background: rgba(5, 14, 26, 0.7); border: 1px solid var(--surface-glass-border); }
.zal__grade {
    display: grid; grid-template-columns: 2.2rem 1fr; align-items: center; gap: .6rem;
    padding: .45rem .6rem; border-radius: 10px; text-align: left;
    border: 1px solid var(--surface-glass-border); background: rgba(255, 255, 255, 0.04); color: var(--text-primary);
    cursor: pointer; transition: transform .2s var(--ease-spring), border-color .2s, background .2s;
}
.zal__grade b { font-family: var(--font-display); font-size: 1.3rem; color: #fbbf24; text-align: center; }
.zal__grade span { font-size: .84rem; line-height: 1.3; }
.zal__grade:hover { transform: translateX(3px); border-color: #fbbf24; background: rgba(251, 191, 36, 0.1); }
.zal__grade.is-dim { opacity: .4; }
.zal__grade.is-dim:hover { opacity: .8; }
.zal__card--riddle { border-top-color: #fbbf24; }
.zal__chips--teams { gap: .5rem; }

/* kirish — beshta sifat medali polda */
.zal__sifatlar {
    position: relative; z-index: 1;
    list-style: none; margin: auto 0 0; padding: 0 0 1.25rem;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 1.5rem;
}
.zal__sifat {
    display: flex; flex-direction: column; align-items: center; gap: .35rem;
    opacity: 0; transform: translateY(12px);
    animation: oyn-in .55s var(--ease-out) forwards; animation-delay: calc(.2s + var(--i) * .1s);
}
.zal__sifat b { font-family: var(--font-display); font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.zal__medal {
    position: relative; width: 54px; height: 54px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), rgb(var(--toifa-rgb));
    box-shadow: 0 0 0 4px rgba(var(--toifa-rgb), .3), 0 10px 24px rgba(0, 0, 0, 0.45);
}
.zal__medal::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; border: 2px dashed rgba(255, 255, 255, 0.7); }
.zal__medal::after { content: ''; position: absolute; left: 50%; top: -22px; width: 16px; height: 26px; margin-left: -8px; background: linear-gradient(90deg, #ef4444 0 33%, #fff 33% 66%, #3b82f6 66%); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); z-index: -1; }
.zal__medal--sm { width: 30px; height: 30px; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(var(--toifa-rgb), .3); }
.zal__medal--sm::before { inset: 5px; }
.zal__medal--sm::after { display: none; }

/* yakun */
.zal__result { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .5rem; }
.zal__result li { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem; border-radius: var(--radius-lg); background: var(--surface-glass); border: 1px solid var(--surface-glass-border); border-left: 3px solid rgb(var(--toifa-rgb)); }
.zal__result li.is-bad { border-color: rgba(248, 113, 113, 0.5); }
.zal__result-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.zal__result-body b { font-size: .92rem; }
.zal__result-body small { font-size: .78rem; color: var(--text-tertiary); }
.zal__result-ball { display: flex; flex-direction: column; align-items: flex-end; }
.zal__result-ball small { font-size: .68rem; color: var(--jamoa); }
.zal__result-ball b { font-family: var(--font-display); font-size: 1.3rem; color: var(--jamoa); }
.zal__result-riddle { margin: .4rem 0 0; display: flex; gap: .5rem; align-items: center; color: var(--text-secondary); font-size: .92rem; }
.zal__result-riddle svg { width: 16px; height: 16px; color: #fbbf24; }

/* muqova */
.oyn-mini[data-tema="zal"] { background: linear-gradient(180deg, #15212f 0%, #22344a 68%, #3a2a1f 68%, #3a2a1f 72%, #b07a45 72%, #8d5c2e 100%); }
.oyn-mini[data-tema="zal"]::before { content: ''; position: absolute; left: 8%; top: 8%; bottom: 30%; width: 34px; border-left: 3px solid #8a5a2b; border-right: 3px solid #8a5a2b; background: repeating-linear-gradient(180deg, transparent 0 10px, #a66d35 10px 13px); }
.oyn-mini[data-tema="zal"]::after { content: ''; position: absolute; right: 10%; top: 12%; width: 22%; height: 30%; border: 3px solid #2e4258; background: linear-gradient(160deg, rgba(125, 211, 252, 0.35), rgba(56, 189, 248, 0.08)); }
.oyn-mini[data-tema="zal"] .oyn-mini__title { background: linear-gradient(160deg, #1d4ed8, #0f2f7a); color: #fff; border: 2px solid #fff; left: 50%; translate: -50% 0; top: 52%; transform: rotate(-3deg); }
.oyn-mini[data-tema="zal"] .oyn-mini__title::before { display: none; }

@media screen and (max-width: 760px) {
    .zal { grid-template-columns: 1fr; }
    .zal__box { padding-bottom: 0; }
    .zal__deck { width: min(100%, 220px); aspect-ratio: 5 / 3.4; }
    .zal__demo { grid-template-columns: 1fr; }
    .zal__sifat b { font-size: .72rem; }
}
@media (prefers-reduced-motion: reduce) {
    .zal__card--face, .zal__sifat { transition: none; animation: none; opacity: 1; transform: none; }
}

/* ======================================================================
   TEMA: TABIAT — kunduzgi yorug' manzara: quyosh, bulutlar, adirlar, daryo.
   Sog'liq mexanikasi (foydali/zararli → so'z-izoh → kim tezkor). Yorug' tema!
   ====================================================================== */
.tabiat {
    --ink: #1b2433;
    position: relative; min-height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    isolation: isolate;
    color: var(--ink);
}
.oyn-stage:has(.tabiat) { min-height: 560px; display: flex; flex-direction: column; border-color: rgba(255, 255, 255, 0.5); }
.oyn-stage:has(.tabiat) .tabiat { flex: 1; }
.tabiat__sky {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, #79c2ff 0%, #b9e2ff 45%, #eaf7ff 72%, #eaf7ff 100%);
}
.tabiat__sun {
    position: absolute; right: 10%; top: 8%; width: 110px; height: 110px; border-radius: 50%;
    background: radial-gradient(circle, #fff6c2, #ffd166 60%, #ffb703);
    box-shadow: 0 0 60px 20px rgba(255, 209, 102, 0.55);
}
.tabiat__sun::before {
    content: ''; position: absolute; inset: -40px; border-radius: 50%;
    background: repeating-conic-gradient(rgba(255, 209, 102, 0.35) 0 6deg, transparent 6deg 18deg);
    -webkit-mask: radial-gradient(circle, transparent 55%, #000 56%);
    mask: radial-gradient(circle, transparent 55%, #000 56%);
    animation: tabiat-sun 40s linear infinite;
}
@keyframes tabiat-sun { to { transform: rotate(360deg); } }
.tabiat__cloud {
    position: absolute; height: 30px; border-radius: 999px; background: #fff; opacity: .95;
    filter: drop-shadow(0 6px 10px rgba(60, 120, 180, 0.15));
    animation: tabiat-cloud linear infinite;
}
.tabiat__cloud::before, .tabiat__cloud::after { content: ''; position: absolute; bottom: 0; border-radius: 50%; background: #fff; }
.tabiat__cloud::before { left: 18%; width: 46px; height: 46px; }
.tabiat__cloud::after { left: 46%; width: 34px; height: 34px; }
.tabiat__cloud--1 { top: 12%; left: -16%; width: 120px; animation-duration: 70s; }
.tabiat__cloud--2 { top: 24%; left: -20%; width: 90px; height: 22px; animation-duration: 95s; animation-delay: -40s; }
.tabiat__cloud--3 { top: 6%; left: -24%; width: 150px; animation-duration: 120s; animation-delay: -80s; }
@keyframes tabiat-cloud { to { transform: translateX(calc(100vw + 300px)); } }
.tabiat__hills { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: 0; overflow: hidden; }
.tabiat__hills i { position: absolute; bottom: -30%; border-radius: 50%; }
.tabiat__hills i:nth-child(1) { left: -20%; width: 80%; height: 120%; background: #8fd18a; }
.tabiat__hills i:nth-child(2) { right: -25%; width: 90%; height: 130%; background: #6dbf6a; }
.tabiat__hills i:nth-child(3) { left: 15%; width: 110%; height: 90%; bottom: -45%; background: #4e9a4b; }
.tabiat__river {
    position: absolute; left: -5%; right: -5%; bottom: 0; height: 9%; z-index: 0;
    background: linear-gradient(180deg, #6fc3ff, #3d9be9);
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: .9;
}
.tabiat__river::after { content: ''; position: absolute; inset: 30% 10% auto; height: 2px; background: rgba(255, 255, 255, 0.6); border-radius: 2px; }

.tabiat__stage { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; }
.tabiat__card {
    position: relative;
    width: min(720px, 100%);
    display: flex; flex-direction: column; gap: .8rem;
    padding: 1.25rem 1.5rem 1.35rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(40, 90, 140, 0.25);
    color: var(--ink);
    opacity: 0; transform: translateY(12px);
    transition: opacity .45s var(--ease-out), transform .55s var(--ease-out);
}
.tabiat__card.is-in { opacity: 1; transform: none; }
.tabiat__card p, .tabiat__card small, .tabiat__card li, .tabiat__card summary { color: var(--ink); }
.tabiat__card .btn-glass, .tabiat__card .btn-ghost { color: var(--ink); border-color: rgba(27, 36, 51, 0.25); background: rgba(27, 36, 51, 0.06); }
.tabiat__card header { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(27, 36, 51, 0.55); font-weight: 600; }
.tabiat__card h2, .tabiat__card h3 { margin: 0; font-family: var(--font-display); color: var(--ink); }
.tabiat__card--intro { align-items: center; text-align: center; gap: .6rem; padding: 2rem 1.5rem; }
.tabiat__card--intro h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.tabiat__card--intro p { margin: 0 0 .7rem; max-width: 54ch; color: #3b4a63; line-height: 1.55; }
.tabiat__card--intro .btn-primary { color: #fff; }
.tabiat__eyebrow { color: #1d7a46; }
.tabiat__final-q { font-size: clamp(1.25rem, 2.4vw, 1.7rem) !important; line-height: 1.3 !important; text-wrap: balance; }

/* 1 — saralash */
.tabiat__sort { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) minmax(110px, 170px); gap: 1rem; align-items: center; width: min(960px, 100%); }
.tabiat__zone {
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    padding: 1.25rem .75rem; border-radius: 20px; border: 2px solid transparent;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.tabiat__zone:hover { transform: translateY(-4px) scale(1.03); }
.tabiat__zone-icon { font-size: 2.4rem; line-height: 1; }
.tabiat__zone kbd { font: 600 .72rem var(--font-display); padding: .1rem .45rem; border-radius: 6px; background: rgba(0, 0, 0, 0.12); }
.tabiat__zone--foydali { background: rgba(255, 241, 178, 0.92); color: #7a4b00; border-color: #ffd166; box-shadow: 0 12px 30px rgba(255, 183, 3, 0.3); }
.tabiat__zone--zararli { background: rgba(226, 232, 240, 0.92); color: #334155; border-color: #94a3b8; box-shadow: 0 12px 30px rgba(71, 85, 105, 0.25); }
.tabiat__card--holat { text-align: center; gap: .5rem; }
.tabiat__card--holat p { margin: .3rem 0; font-family: var(--font-display); font-size: clamp(1.25rem, 2.3vw, 1.75rem); line-height: 1.25; font-weight: 700; }
.tabiat__card--holat small { color: #64748b; }

/* 2 — so'z */
.tabiat__card--soz { align-items: center; text-align: center; }
.tabiat__card--soz header { width: 100%; }
.tabiat__token {
    display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff, #d9f2ff 60%, #b9e2ff);
    box-shadow: 0 10px 30px rgba(60, 140, 220, 0.3), inset 0 0 0 4px #fff;
    font-size: 2.6rem; line-height: 1;
}
.tabiat__card--soz h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: .02em; }
.tabiat__ask { margin: 0; color: #3b4a63; }
.tabiat__grades { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.tabiat__grade {
    display: flex; align-items: center; gap: .6rem; padding: .55rem .9rem .55rem .6rem;
    border-radius: 999px; border: 2px solid transparent; cursor: pointer;
    font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink);
    transition: transform .2s var(--ease-spring);
}
.tabiat__grade:hover { transform: translateY(-2px); }
.tabiat__grade b { display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem; padding: 0 .4rem; border-radius: 999px; font-size: 1rem; color: #fff; }
.tabiat__grade.is-2 { background: #dcfce7; border-color: #86efac; } .tabiat__grade.is-2 b { background: #16a34a; }
.tabiat__grade.is-1 { background: #fef9c3; border-color: #fde047; } .tabiat__grade.is-1 b { background: #ca8a04; }
.tabiat__grade.is-0 { background: #f1f5f9; border-color: #cbd5e1; } .tabiat__grade.is-0 b { background: #64748b; }
.tabiat__model { width: 100%; text-align: left; padding: .8rem 1rem; border-radius: 12px; background: #eef6ff; border-left: 4px solid #3d9be9; }
.tabiat__model.is-ok { background: #ecfdf5; border-left-color: #16a34a; }
.tabiat__model small { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #1d7a46; font-weight: 700; }
.tabiat__model small svg { width: 13px; height: 13px; }
.tabiat__model p { margin: .3rem 0 0; line-height: 1.55; color: #1f2a3d; }
.tabiat__card .btn-primary { color: #fff; }

/* 3 — kim tezkor */
.tabiat__card--tezkor { align-items: center; text-align: center; }
.tabiat__card--tezkor header { width: 100%; }
.tabiat__q { font-size: clamp(1.2rem, 2.2vw, 1.6rem) !important; }
.tabiat__race { display: grid; grid-template-columns: auto auto; gap: 2rem; align-items: center; justify-content: center; }
.tabiat__timer {
    --p: 1;
    position: relative; width: 150px; height: 150px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: conic-gradient(#16a34a calc(var(--p) * 360deg), #e2e8f0 0);
}
.tabiat__timer::before { content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff; }
.tabiat__timer.is-on { background: conic-gradient(#f59e0b calc(var(--p) * 360deg), #e2e8f0 0); }
.tabiat__timer b { position: relative; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.tabiat__timer small { position: relative; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
.tabiat__counter { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 150px; }
.tabiat__count { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: #16a34a; }
.tabiat__count.is-pop { animation: oyn-pop .5s var(--ease-spring); }
.tabiat__counter small { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #64748b; }
/* o'sayotgan o'simlik — har javobga barg */
.tabiat__plant { position: relative; width: 60px; height: 70px; }
.tabiat__plant::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: calc(20px + min(var(--n), 8) * 6px); margin-left: -2px; background: #16a34a; border-radius: 2px; transition: height .4s var(--ease-spring); }
.tabiat__plant i {
    position: absolute; left: 50%; width: 22px; height: 12px; border-radius: 0 100% 0 100%; background: #4ade80;
    bottom: calc(14px + var(--k) * 7px); transform-origin: left center; transform: scale(0);
    transition: transform .4s var(--ease-spring);
}
.tabiat__plant i:nth-child(odd) { transform-origin: right center; margin-left: -22px; border-radius: 100% 0 100% 0; }
.tabiat__plant i:nth-child(1) { --k: 0; } .tabiat__plant i:nth-child(2) { --k: 1; } .tabiat__plant i:nth-child(3) { --k: 2; } .tabiat__plant i:nth-child(4) { --k: 3; }
.tabiat__plant i:nth-child(5) { --k: 4; } .tabiat__plant i:nth-child(6) { --k: 5; } .tabiat__plant i:nth-child(7) { --k: 6; } .tabiat__plant i:nth-child(8) { --k: 7; }
.tabiat__plant i { transform: scale(clamp(0, calc(var(--n, 0) - var(--k)), 1)); }
.tabiat__actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .5rem; }
.tabiat__plus { background: #16a34a; color: #fff; border-color: transparent; font-size: 1.05rem; padding: .9rem 1.5rem; }
.tabiat__plus kbd { margin-left: .4rem; font: 600 .7rem var(--font-display); padding: .1rem .4rem; border-radius: 5px; background: rgba(255, 255, 255, 0.25); }
.tabiat__plus:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 163, 74, 0.4); }
.tabiat__samples { width: 100%; text-align: left; font-size: .86rem; color: #3b4a63; }
.tabiat__samples summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-weight: 600; color: #1d7a46; }
.tabiat__samples summary svg { width: 14px; height: 14px; }
.tabiat__samples ul { margin: .5rem 0 0; padding-left: 1.2rem; columns: 2; gap: 1.5rem; line-height: 1.6; }

/* kirish — uch topshiriq adirlarda */
.oyn-kirish[data-tema="tabiat"], .oyn-kirish:has(.tabiat__sky) { color: var(--text-primary); }
.oyn-kirish:has(.tabiat__sky) .oyn-kirish__title { background: linear-gradient(135deg, #0b3d22, #1d7a46); -webkit-background-clip: text; background-clip: text; }
.oyn-kirish:has(.tabiat__sky) .oyn-kirish__maqsad, .oyn-kirish:has(.tabiat__sky) .oyn-kirish__facts { color: #1f2a3d; text-shadow: none; }
.oyn-kirish:has(.tabiat__sky) .oyn-kirish__facts b { color: #0b3d22; }
.oyn-kirish:has(.tabiat__sky) .oyn-kirish__shart { background: rgba(255, 255, 255, 0.8); color: #1f2a3d; border-color: rgba(29, 122, 70, 0.5); }
.oyn-kirish:has(.tabiat__sky) .oyn-eyebrow { color: #1d7a46; }
/* ...lekin guruhlarni sozlash paneli qorong'i: u yerdagi yorliq uchun
   to'q yashil o'rniga och yashil — aks holda fon bilan qo'shilib ketadi. */
.oyn-kirish:has(.tabiat__sky) .oyn-setup .oyn-eyebrow { color: #6ee7a5; }
.tabiat__steps {
    position: relative; z-index: 1;
    list-style: none; margin: auto 0 0; padding: 0 0 1.25rem;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem;
}
.tabiat__step {
    display: flex; flex-direction: column; gap: .25rem;
    padding: .9rem 1rem 1rem; border-radius: 16px;
    background: rgba(255, 255, 255, 0.9); color: #1b2433;
    box-shadow: 0 12px 30px rgba(40, 90, 140, 0.2);
    opacity: 0; transform: translateY(16px);
    animation: oyn-in .6s var(--ease-out) forwards; animation-delay: calc(.2s + var(--i) * .12s);
}
.tabiat__step-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #16a34a; color: #fff; font: 700 .85rem var(--font-display); }
.tabiat__step b { font-family: var(--font-display); font-size: 1.02rem; }
.tabiat__step small { font-size: .8rem; color: #475569; line-height: 1.4; }
.tabiat__step em { margin-top: auto; padding-top: .3rem; font-style: normal; font-family: var(--font-display); font-size: .78rem; color: #b45309; }

/* yakun */
.tabiat__glossary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .6rem; }
.tabiat__glossary li { display: flex; gap: .7rem; padding: .7rem .9rem; border-radius: var(--radius-lg); background: var(--surface-glass); border: 1px solid var(--surface-glass-border); }
.tabiat__glossary-token { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(185, 226, 255, 0.15); font-size: 1.3rem; }
.tabiat__glossary b { font-family: var(--font-display); }
.tabiat__glossary small { color: var(--jamoa); font-size: .75rem; }
.tabiat__glossary p { margin: .2rem 0 0; font-size: .86rem; line-height: 1.5; color: var(--text-secondary); }

/* muqova */
.oyn-mini[data-tema="tabiat"] { background: linear-gradient(180deg, #79c2ff 0%, #b9e2ff 50%, #eaf7ff 100%); }
.oyn-mini[data-tema="tabiat"]::before { content: ''; position: absolute; right: 12%; top: 10%; width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(circle, #fff6c2, #ffd166 60%, #ffb703); box-shadow: 0 0 30px 10px rgba(255, 209, 102, 0.5); }
.oyn-mini[data-tema="tabiat"]::after { content: ''; position: absolute; left: -20%; right: -20%; bottom: -40%; height: 80%; border-radius: 50%; background: #6dbf6a; box-shadow: -80px 20px 0 10px #8fd18a, 90px 30px 0 0 #4e9a4b; }
.oyn-mini[data-tema="tabiat"] .oyn-mini__title { background: #fff; color: #0b3d22; border: 2px solid #16a34a; left: 50%; translate: -50% 0; top: 40%; transform: rotate(-2deg); z-index: 1; }
.oyn-mini[data-tema="tabiat"] .oyn-mini__title::before { display: none; }

@media screen and (max-width: 760px) {
    .tabiat__sort { grid-template-columns: 1fr; }
    .tabiat__zone { flex-direction: row; justify-content: center; padding: .8rem; }
    .tabiat__zone-icon { font-size: 1.6rem; }
    .tabiat__race { grid-template-columns: 1fr; gap: 1rem; }
    .tabiat__steps { grid-template-columns: 1fr; }
    .tabiat__step small { display: none; }
    .tabiat__samples ul { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .tabiat__sun::before, .tabiat__cloud, .tabiat__step { animation: none; opacity: 1; transform: none; }
    .tabiat__card { transition: none; opacity: 1; transform: none; }
}

/* ======================================================================
   TEMA: STOL — o'qituvchi stoli: yog'och, spiral daftar, rezina muhrlar.
   Muhr mexanikasi (vaziyat → metod muhri).
   ====================================================================== */
[data-rang="kulrang"] { --toifa-rgb: 148, 163, 184; }

.stol {
    position: relative; min-height: 100%;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 32%);
    gap: 1.25rem; padding: clamp(1rem, 2.5vw, 1.75rem);
    isolation: isolate;
}
.oyn-stage:has(.stol) { min-height: 560px; display: flex; flex-direction: column; }
.oyn-stage:has(.stol) .stol { flex: 1; }
.stol__wood {
    position: absolute; inset: 0; z-index: 0;
    background:
        repeating-linear-gradient(100deg, rgba(0, 0, 0, 0.06) 0 3px, transparent 3px 17px, rgba(255, 255, 255, 0.025) 17px 19px, transparent 19px 41px),
        repeating-linear-gradient(180deg, transparent 0 86px, rgba(0, 0, 0, 0.18) 86px 88px),
        linear-gradient(180deg, #5a3a24, #45291a 60%, #3a2116);
}
.stol__wood::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.45)); }
.stol__items { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.stol__pen { position: absolute; right: 8%; top: 10%; width: 170px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, #1f2937 0 12%, #e5e7eb 12% 20%, #1d4ed8 20% 90%, #111827 90%); transform: rotate(-28deg); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4); }
.stol__whistle { position: absolute; left: 5%; bottom: 10%; width: 46px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fde68a, #d97706 60%, #92400e); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4); }
.stol__whistle::before { content: ''; position: absolute; right: -36px; top: 3px; width: 40px; height: 14px; border-radius: 3px; background: linear-gradient(180deg, #fbbf24, #b45309); }
.stol__whistle::after { content: ''; position: absolute; left: 18px; top: -40px; width: 3px; height: 44px; background: #e5e7eb; transform: rotate(30deg); }
.stol__cup { position: absolute; right: 4%; bottom: 8%; width: 54px; height: 58px; border-radius: 6px 6px 14px 14px; background: linear-gradient(180deg, #f8fafc, #cbd5e1); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45); }
.stol__cup::before { content: ''; position: absolute; right: -18px; top: 10px; width: 22px; height: 26px; border: 6px solid #e2e8f0; border-left: 0; border-radius: 0 14px 14px 0; }
.stol__cup::after { content: ''; position: absolute; left: 5px; right: 5px; top: 6px; height: 8px; border-radius: 50%; background: #6b3a1e; }

/* daftar */
.stol__book { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; perspective: 1200px; }
.stol__page {
    position: relative;
    width: min(640px, 100%);
    min-height: 380px;
    display: flex; flex-direction: column; gap: .6rem;
    padding: 1.4rem 1.6rem 1.4rem 3.4rem;
    border-radius: 6px 14px 14px 6px;
    background:
        linear-gradient(90deg, transparent 2.6rem, rgba(239, 68, 68, 0.5) 2.6rem, rgba(239, 68, 68, 0.5) calc(2.6rem + 2px), transparent calc(2.6rem + 2px)),
        repeating-linear-gradient(180deg, transparent 0 31px, rgba(59, 130, 246, 0.22) 31px 32px),
        #fffef7;
    color: #1b2433;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
    transform-origin: left center;
    transition: transform .6s var(--ease-out), opacity .4s;
}
.stol__page::before {
    content: ''; position: absolute; left: .55rem; top: 1rem; bottom: 1rem; width: 16px;
    background: repeating-linear-gradient(180deg, transparent 0 10px, #94a3b8 10px 16px, transparent 16px 30px);
    -webkit-mask: radial-gradient(circle 7px at 50% 13px, #000 98%, transparent) 0 0 / 16px 30px;
    mask: radial-gradient(circle 7px at 50% 13px, #000 98%, transparent) 0 0 / 16px 30px;
    background: #4b5563; opacity: .35;
}
.stol__page.is-flip { transform: rotateY(-70deg); opacity: 0; }
.stol__page.is-in { transform: none; opacity: 1; }
.stol__page-n { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; font-weight: 600; }
.stol__note { margin: 0; font-size: .86rem; color: #9f1239; font-style: italic; }
.stol__text { margin: .2rem 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.1vw, 1.6rem); line-height: 1.35; font-weight: 600; color: #1b2433; }
.stol__ask { margin: 0; font-size: .9rem; color: #475569; }
.stol__answer { padding: .7rem .9rem; border-radius: 8px; background: #ecfdf5; border-left: 3px solid #16a34a; }
.stol__answer small { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #15803d; font-weight: 700; }
.stol__answer small svg { width: 12px; height: 12px; }
.stol__answer p { margin: .3rem 0 0; line-height: 1.5; color: #1b2433; }
.stol__teams { display: flex; flex-wrap: wrap; gap: .5rem; }
.stol__team { padding: .55rem .95rem; border-radius: 999px; border: 2px solid var(--jamoa, #94a3b8); background: rgba(var(--jamoa-rgb, 148, 163, 184), .12); color: #1b2433; font-family: var(--font-display); font-weight: 600; cursor: pointer; }
.stol__team:hover { transform: translateY(-2px); }
.stol__team.is-none { border-color: #cbd5e1; background: #f1f5f9; color: #475569; }
.stol__next { align-self: flex-end; margin-top: auto; color: #fff; }
.stol__page .btn-primary { color: #fff; align-self: flex-start; }

/* muhr izi */
.stol__imprints { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .3rem; }
.stol__imprint {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
    width: 150px; height: 150px; border-radius: 50%;
    border: 4px double rgb(var(--toifa-rgb));
    color: rgb(var(--toifa-rgb));
    font-family: var(--font-display); text-transform: uppercase; text-align: center;
    transform: rotate(-8deg);
    opacity: .9;
    mix-blend-mode: multiply;
    animation: stol-stamp .45s var(--ease-out) both;
    -webkit-mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, 0.6) 75%, #000 90%);
    mask: radial-gradient(circle at 30% 40%, #000 60%, rgba(0, 0, 0, 0.6) 75%, #000 90%);
}
.stol__imprint b { font-size: .82rem; letter-spacing: .04em; line-height: 1.1; padding: 0 .6rem; }
.stol__imprint small { font-size: .62rem; letter-spacing: .2em; padding: .1rem .5rem; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; margin-top: .3rem; }
.stol__imprint.is-bad::after { content: ''; position: absolute; inset: 20%; background: linear-gradient(45deg, transparent 46%, #dc2626 46% 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, #dc2626 46% 54%, transparent 54%); }
.stol__imprint.is-late { transform: rotate(6deg); animation-delay: .6s; }
@keyframes stol-stamp { 0% { transform: scale(1.8) rotate(-8deg); opacity: 0; } 60% { transform: scale(.95) rotate(-8deg); opacity: 1; } 100% { transform: scale(1) rotate(-8deg); opacity: .9; } }
.stol__imprint.is-late { animation-name: stol-stamp-late; }
@keyframes stol-stamp-late { 0% { transform: scale(1.8) rotate(6deg); opacity: 0; } 60% { transform: scale(.95) rotate(6deg); opacity: 1; } 100% { transform: scale(1) rotate(6deg); opacity: .9; } }

/* muhrlar tokchasi */
.stol__tray { position: relative; z-index: 2; display: flex; align-items: center; }
.stol__stamps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .7rem; width: 100%; }
.stol__stamp {
    position: relative; width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 0;
    border: 0; background: transparent; color: inherit; padding: 0;
    cursor: pointer;
    opacity: 0; transform: translateY(10px);
    animation: oyn-in .5s var(--ease-out) forwards; animation-delay: calc(.1s + var(--i) * .07s);
    transition: transform .2s var(--ease-spring);
}
.stol__stamp:not(:disabled):hover { transform: translateY(-6px) rotate(-3deg) !important; }
.stol__stamp:disabled { cursor: default; opacity: .55 !important; }
.stol__stamp.is-used { opacity: 1 !important; transform: translateY(4px) !important; }
.stol__stamp-handle {
    order: -1;
    width: 34px; height: 30px; border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, #a16207, #713f12);
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
.stol__stamp-handle::after { content: ''; position: absolute; left: 50%; top: 28px; width: 48px; height: 8px; margin-left: -24px; border-radius: 3px; background: #1f2937; }
.stol__stamp-face {
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    width: 100%; min-height: 42px; padding: .35rem .5rem; margin-top: 4px;
    border-radius: 8px;
    /* Muhr ranglari — och pastel (yashil, sariq, ko'k...). Oq yozuv ular
       ustida deyarli ko'rinmasdi (kontrast 1.7–2.8). Qora siyoh esa
       hammasida 5.6–9.3 beradi va haqiqiy rezina muhrga ham o'xshaydi. */
    background: rgb(var(--toifa-rgb)); color: var(--siyoh);
    font-family: var(--font-display); font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.15;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4), inset 0 0 0 2px rgba(255, 255, 255, 0.35);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.stol__stamp-face kbd { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: #1b2433; font: 700 .66rem var(--font-display); flex-shrink: 0; }
[data-rang="sariq"] .stol__stamp-face, [data-rang="kulrang"] .stol__stamp-face { color: #1b2433; text-shadow: none; }
[data-rang="sariq"] .stol__stamp-face kbd, [data-rang="kulrang"] .stol__stamp-face kbd { background: #1b2433; color: #fff; }

/* kirish — muhrlar stol ustida */
.stol__stamps--legend { position: relative; z-index: 1; margin: auto 0 0; padding: 0 0 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
.stol__stamps--legend .stol__stamp { width: clamp(130px, 15vw, 170px); cursor: default; }
.oyn-kirish:has(.stol__wood) .oyn-kirish__maqsad { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }

/* yakun */
.stol__result { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.stol__result li { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; padding: .6rem .85rem; border-radius: var(--radius-lg); background: var(--surface-glass); border: 1px solid var(--surface-glass-border); border-left: 3px solid rgba(255, 255, 255, 0.2); }
.stol__result li.is-ok { border-left-color: var(--ok); }
.stol__result li.is-bad { border-left-color: var(--bad); }
.stol__result-text { flex: 1; min-width: 240px; font-size: .92rem; }
.stol__result-stamp { padding: .25rem .7rem; border-radius: 999px; border: 2px solid rgb(var(--toifa-rgb)); color: rgb(var(--toifa-rgb)); font: 700 .72rem var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.stol__result li small { width: 100%; color: var(--bad); font-size: .78rem; }
.stol__result-bonus { margin: .5rem 0 0; display: flex; gap: .5rem; align-items: center; color: var(--text-secondary); font-size: .92rem; }
.stol__result-bonus svg { width: 16px; height: 16px; color: #fbbf24; }

/* muqova */
.oyn-mini[data-tema="stol"] { background: repeating-linear-gradient(180deg, transparent 0 30px, rgba(0, 0, 0, 0.18) 30px 32px), linear-gradient(180deg, #5a3a24, #3a2116); }
.oyn-mini[data-tema="stol"]::before { content: ''; position: absolute; left: 10%; right: 10%; top: 14%; bottom: 14%; border-radius: 4px 10px 10px 4px; background: linear-gradient(90deg, transparent 14px, rgba(239, 68, 68, 0.5) 14px 15px, transparent 15px), repeating-linear-gradient(180deg, transparent 0 13px, rgba(59, 130, 246, 0.25) 13px 14px), #fffef7; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); }
.oyn-mini[data-tema="stol"] .oyn-mini__scene i { width: 30px; border-radius: 50%; background: rgb(var(--toifa-rgb)); box-shadow: 0 0 0 3px #fffef7, 0 0 0 4px rgb(var(--toifa-rgb)); opacity: .85; }
.oyn-mini[data-tema="stol"] .oyn-mini__scene { bottom: 26%; justify-content: center; gap: 8px; }
.oyn-mini[data-tema="stol"] .oyn-mini__title { background: transparent; box-shadow: none; color: #1b2433; left: 50%; translate: -50% 0; top: 22%; transform: rotate(0); font-size: .8rem; }
.oyn-mini[data-tema="stol"] .oyn-mini__title::before { display: none; }

@media screen and (max-width: 760px) {
    .stol { grid-template-columns: 1fr; }
    .stol__page { min-height: 0; padding-left: 2.8rem; }
    .stol__stamps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem .4rem; }
    .stol__stamp-face { font-size: .68rem; min-height: 38px; }
    .stol__imprint { width: 120px; height: 120px; }
    .stol__items { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .stol__page, .stol__stamp, .stol__imprint { transition: none; animation: none; opacity: 1; transform: none; }
    .stol__page.is-flip { transform: none; opacity: 1; }
}

/* ======================================================================
   TEMA: DOSKA — sinf doskasi (bo'r), o'rganish zinapoyasi va sportchi figurasi.
   Zina mexanikasi (vaziyat → tugma → pog'ona).
   ====================================================================== */
.doska {
    position: relative; min-height: 100%;
    display: flex; flex-direction: column;
    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 2.6rem;
    isolation: isolate;
    font-family: var(--font-display);
}
.oyn-stage:has(.doska) { min-height: 560px; display: flex; flex-direction: column; border: 10px solid #7c4a1e; border-radius: 14px; box-shadow: inset 0 0 0 2px #a5713a, 0 20px 50px rgba(0, 0, 0, 0.5); }
.oyn-stage:has(.doska) .doska { flex: 1; }
.doska__board {
    position: absolute; inset: 0; z-index: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.06), transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 255, 255, 0.05), transparent 45%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, #234f3c, #1b3f30);
}
.doska__chalk { position: absolute; border: 2px dashed rgba(255, 255, 255, 0.18); border-radius: 50%; }
.doska__chalk--1 { right: 6%; top: 8%; width: 120px; height: 120px; }
.doska__chalk--2 { left: 4%; bottom: 14%; width: 70px; height: 70px; border-style: dotted; }
.doska__formula { position: absolute; right: 5%; top: 12%; font: italic 600 .95rem var(--font-display); color: rgba(255, 255, 255, 0.35); transform: rotate(-6deg); letter-spacing: .05em; }
.doska__tray {
    position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: 1;
    background: linear-gradient(180deg, #a5713a, #7c4a1e);
    display: flex; gap: 8px; padding: 3px 0 0 24px;
}
.doska__tray i { width: 36px; height: 8px; border-radius: 4px; background: #f8fafc; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.doska__tray i:nth-child(2) { background: #fde68a; width: 28px; }
.doska__tray i:nth-child(3) { background: #93c5fd; width: 32px; }

.doska__content { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); gap: 1.5rem; align-items: center; }
.doska__note { color: #f8fafc; }
.doska__text { display: flex; flex-direction: column; gap: .7rem; }
.doska__eyebrow { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #fde68a; opacity: .9; }
.doska__q { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.3; font-weight: 600; color: #fff; text-shadow: 0 0 14px rgba(255, 255, 255, 0.25); }
.doska__ask { margin: 0; font-size: .95rem; color: rgba(255, 255, 255, 0.7); font-family: var(--font-sans); }
.doska__who { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .5rem .9rem; border-radius: 999px; border: 2px dashed var(--jamoa); color: var(--jamoa); font-weight: 600; width: fit-content; animation: stadion-in .35s var(--ease-spring); }
.doska__who svg { width: 16px; height: 16px; }
.doska__buzz { display: flex; flex-wrap: wrap; gap: .5rem; }
.doska__team {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .55rem .9rem .55rem .55rem; border-radius: 999px;
    border: 2px solid var(--jamoa, rgba(255, 255, 255, 0.4)); background: rgba(var(--jamoa-rgb, 255, 255, 255), .12); color: #fff;
    font-family: var(--font-display); font-weight: 600; font-size: .92rem; cursor: pointer;
    transition: transform .2s var(--ease-spring), background .2s;
}
.doska__team:not(:disabled):hover { transform: translateY(-2px); background: rgba(var(--jamoa-rgb, 255, 255, 255), .28); }
.doska__team kbd { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--jamoa, #fff); color: #1b2433; font: 700 .68rem var(--font-display); }
.doska__team.is-locked { opacity: .35; cursor: default; text-decoration: line-through; }
.doska__team.is-none { border-style: dashed; border-color: rgba(255, 255, 255, 0.4); background: transparent; color: rgba(255, 255, 255, 0.7); padding-left: .9rem; }
.doska__answer { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .9rem; border-radius: 10px; border: 2px solid rgb(var(--toifa-rgb)); width: fit-content; }
.doska__answer b { font-size: 1.05rem; letter-spacing: .06em; color: rgb(var(--toifa-rgb)); }
.doska__answer small { font-family: var(--font-sans); color: rgba(255, 255, 255, 0.75); }
.doska__text .btn-primary { width: fit-content; color: #fff; }
.doska__text .btn-glass { width: fit-content; }

/* zinapoya */
.doska__stairs { display: flex; align-items: flex-end; justify-content: center; }
.doska__stairs-inner { position: relative; display: flex; align-items: flex-end; gap: 4px; width: min(100%, 420px); height: 250px; }
.doska__pogona {
    --h: calc(70px + var(--i) * 60px);
    position: relative; flex: 1; height: var(--h);
    display: flex; align-items: flex-start; justify-content: center;
    padding: .5rem .3rem 0; border: 2px solid rgba(255, 255, 255, 0.85); border-bottom: 0;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, rgba(var(--toifa-rgb), .55), rgba(var(--toifa-rgb), .25));
    color: #fff; cursor: pointer;
    transition: transform .25s var(--ease-spring), box-shadow .3s, filter .3s;
    box-shadow: inset 0 0 0 1px rgba(var(--toifa-rgb), .6);
}
.doska__pogona::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: -6px; height: 6px; background: rgba(255, 255, 255, 0.85); }
.doska__pogona:disabled { cursor: default; }
.doska__pogona:not(:disabled):hover { transform: translateY(-4px); filter: brightness(1.15); }
.doska__pogona.is-lit { background: linear-gradient(180deg, rgba(var(--toifa-rgb), 1), rgba(var(--toifa-rgb), .6)); box-shadow: 0 0 30px rgba(var(--toifa-rgb), .7), inset 0 0 0 1px #fff; }
.doska__pogona.is-used { opacity: .5; }
.doska__pogona-top { display: flex; flex-direction: column; align-items: center; gap: .25rem; text-align: center; }
.doska__pogona-top kbd { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: #1b2433; font: 700 .68rem var(--font-display); }
.doska__pogona-top b { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
[data-rang="sariq"].doska__pogona.is-lit, [data-rang="yashil"].doska__pogona.is-lit { color: #1b2433; }
[data-rang="sariq"].doska__pogona.is-lit kbd, [data-rang="yashil"].doska__pogona.is-lit kbd { background: #1b2433; color: #fff; }

/* sportchi — bo'r figura */
.doska__runner {
    --p: -1;
    position: absolute; width: 40px; height: 64px;
    left: calc(var(--p) * 33.333% + 16.666%);
    bottom: calc(76px + var(--p) * 60px);
    transform: translateX(-50%);
    transition: left .6s var(--ease-spring), bottom .6s var(--ease-spring), opacity .3s;
    opacity: 1;
    pointer-events: none;
}
.doska__runner[style*="--p:-1"], .doska__runner[style*="--p: -1"] { opacity: 0; }
.doska__runner i { position: absolute; background: #fff; border-radius: 3px; box-shadow: 0 0 8px rgba(255, 255, 255, 0.6); }
.doska__head { left: 13px; top: 0; width: 14px; height: 14px; border-radius: 50% !important; }
.doska__body { left: 18px; top: 14px; width: 4px; height: 24px; }
.doska__arm { top: 18px; width: 4px; height: 18px; transform-origin: top; }
.doska__arm--l { left: 18px; transform: rotate(40deg); }
.doska__arm--r { left: 18px; transform: rotate(-50deg); }
.doska__leg { top: 36px; width: 4px; height: 24px; transform-origin: top; }
.doska__leg--l { left: 18px; transform: rotate(25deg); }
.doska__leg--r { left: 18px; transform: rotate(-20deg); }
.doska__runner.is-jump { animation: doska-jump .6s var(--ease-out); }
@keyframes doska-jump { 40% { margin-bottom: 70px; } }
.doska__runner.is-fall .doska__body { animation: doska-wobble .5s ease .7s 2; }
@keyframes doska-wobble { 50% { transform: rotate(12deg); } }

/* zanjir */
.doska__chain { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.doska__chain-slot { min-width: 3rem; padding: .55rem .9rem; border-radius: 8px; border: 2px dashed rgba(255, 255, 255, 0.5); color: rgba(255, 255, 255, 0.6); text-align: center; font-weight: 700; letter-spacing: .05em; }
.doska__chain-slot.is-filled { border-style: solid; border-color: rgb(var(--toifa-rgb)); color: rgb(var(--toifa-rgb)); background: rgba(var(--toifa-rgb), .12); }
.doska__chain-slot.is-ok { box-shadow: 0 0 18px rgba(var(--toifa-rgb), .5); }
.doska__arrow { width: 22px; height: 2px; background: #fff; position: relative; }
.doska__arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: #fff; }
.doska__xulosa { padding: .8rem 1rem; border-radius: 10px; background: rgba(255, 255, 255, 0.08); border-left: 3px solid #fde68a; font-family: var(--font-sans); }
.doska__xulosa small { display: inline-flex; align-items: center; gap: .35rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #fde68a; font-weight: 700; }
.doska__xulosa small svg { width: 13px; height: 13px; }
.doska__xulosa p { margin: .3rem 0 0; line-height: 1.55; color: #fff; }

/* kirish — pog'onalar */
.doska__steps--legend { position: relative; z-index: 1; list-style: none; margin: auto 0 0; padding: 0 0 1.5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.doska__step {
    display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem 1rem;
    min-height: calc(92px + var(--i) * 20px);
    border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 8px 8px 0 0;
    background: linear-gradient(180deg, rgba(var(--toifa-rgb), .5), rgba(var(--toifa-rgb), .18));
    color: #fff;
    opacity: 0; transform: translateY(16px);
    animation: oyn-in .6s var(--ease-out) forwards; animation-delay: calc(.2s + var(--i) * .14s);
}
.doska__step-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: #1b2433; font: 700 .8rem var(--font-display); }
.doska__step b { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; }
.doska__step small { font-size: .8rem; line-height: 1.4; color: rgba(255, 255, 255, 0.8); }
.oyn-kirish:has(.doska__board) { border: 10px solid #7c4a1e; box-shadow: inset 0 0 0 2px #a5713a; }
.oyn-kirish:has(.doska__board) .oyn-kirish__maqsad { color: rgba(255, 255, 255, 0.85); }
.oyn-kirish:has(.doska__board) .doska__tray { display: none; }

/* yakun */
.doska__dot { width: 14px; height: 14px; border-radius: 50%; background: rgb(var(--toifa-rgb)); display: inline-block; }
.doska__xulosa-line { margin: .8rem 0 0; display: flex; gap: .5rem; align-items: flex-start; color: var(--text-secondary); font-size: .92rem; line-height: 1.5; }
.doska__xulosa-line svg { width: 16px; height: 16px; flex-shrink: 0; color: #fde68a; margin-top: 2px; }

/* muqova */
.oyn-mini[data-tema="doska"] { background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0 2px, transparent 2px 9px), linear-gradient(180deg, #234f3c, #1b3f30); border: 5px solid #7c4a1e; }
.oyn-mini[data-tema="doska"] .oyn-mini__scene { bottom: 0; align-items: flex-end; justify-content: center; gap: 3px; left: 25%; right: 25%; }
.oyn-mini[data-tema="doska"] .oyn-mini__scene i { width: 33%; border-radius: 4px 4px 0 0; border: 2px solid rgba(255, 255, 255, 0.8); border-bottom: 0; background: rgba(var(--toifa-rgb), .5); aspect-ratio: auto; box-shadow: none; }
.oyn-mini[data-tema="doska"] .oyn-mini__scene i:nth-child(1) { height: 28px; }
.oyn-mini[data-tema="doska"] .oyn-mini__scene i:nth-child(2) { height: 46px; transform: none; }
.oyn-mini[data-tema="doska"] .oyn-mini__scene i:nth-child(3) { height: 64px; }
.mavzu-card:hover .oyn-mini[data-tema="doska"] .oyn-mini__scene i { transform: none; }
.oyn-mini[data-tema="doska"] .oyn-mini__title { background: transparent; box-shadow: none; border: 2px dashed rgba(255, 255, 255, 0.6); color: #fff; left: 50%; translate: -50% 0; top: 14px; transform: rotate(-2deg); }
.oyn-mini[data-tema="doska"] .oyn-mini__title::before { display: none; }

@media screen and (max-width: 860px) {
    .doska__content { grid-template-columns: 1fr; }
    .doska__stairs-inner { height: 200px; }
    .doska__pogona { --h: calc(56px + var(--i) * 46px); }
    .doska__pogona-top b { font-size: .62rem; }
    .doska__steps--legend { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
    .doska__step { padding: .6rem .5rem; min-height: calc(80px + var(--i) * 18px); }
    .doska__step small { display: none; }
    .doska__step b { font-size: .7rem; }
    .doska__formula, .doska__chalk { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .doska__runner, .doska__pogona, .doska__step { transition: none; animation: none; opacity: 1; transform: none; }
}

/* ======================================================================
   TEMA: ZAL-KUCH — og'irlik ko'tarish zali: rezina pol, tokcha, shtangalar.
   Shtanga mexanikasi (disk-kartochka → topshiriq → hukm → shtangaga disk).
   ====================================================================== */
.zk {
    position: relative; min-height: 100%;
    display: flex; flex-direction: column; gap: 1rem;
    padding: clamp(1rem, 2.5vw, 1.75rem);
    isolation: isolate;
}
.oyn-stage:has(.zk) { min-height: 560px; display: flex; flex-direction: column; }
.oyn-stage:has(.zk) .zk { flex: 1; }
.zk__wall {
    position: absolute; inset: 0 0 30%; z-index: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 140px, rgba(255, 255, 255, 0.03) 140px 142px),
        linear-gradient(180deg, #1a1d24, #23272f);
}
.zk__rack { position: absolute; left: 4%; top: 8%; bottom: -6%; width: 120px; border-left: 10px solid #3b3f47; border-right: 10px solid #3b3f47; background: repeating-linear-gradient(180deg, transparent 0 40px, #4b5058 40px 46px); opacity: .9; }
.zk__rack::before { content: ''; position: absolute; left: -10px; right: -10px; top: 46px; height: 16px; background: linear-gradient(180deg, #9ca3af, #4b5563); border-radius: 8px; }
.zk__poster { position: absolute; right: 6%; top: 10%; padding: .8rem 1.6rem; border: 4px solid #ef4444; color: #ef4444; font: 900 2.4rem var(--font-display); letter-spacing: .3em; transform: rotate(-4deg); opacity: .55; font-style: normal; }
.zk__floor {
    position: absolute; left: 0; right: 0; bottom: 0; height: 31%; z-index: 0;
    background:
        repeating-linear-gradient(90deg, transparent 0 98px, rgba(0, 0, 0, 0.35) 98px 100px),
        repeating-linear-gradient(180deg, transparent 0 48px, rgba(0, 0, 0, 0.35) 48px 50px),
        linear-gradient(180deg, #2b2f36, #1f2329);
    border-top: 4px solid #3b3f47;
}

.zk__top { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .9rem; }
.zk__prompt { display: flex; align-items: center; gap: .5rem; margin: 0; justify-content: center; color: var(--jamoa); font-family: var(--font-display); font-size: 1rem; }
.zk__prompt svg { width: 16px; height: 16px; }
.zk__plates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .8rem; }
.zk__plate {
    position: relative; width: 100%; aspect-ratio: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, #0f172a 0 18%, transparent 18% 22%, var(--disk) 22%);
    --disk: #1f2937;
    border: 0; color: #fff;
    font-family: var(--font-display);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.08), inset 0 0 0 14px rgba(0, 0, 0, 0.25), 0 14px 30px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    opacity: 0; transform: translateY(12px) rotate(-20deg);
    animation: oyn-in .5s var(--ease-out) forwards; animation-delay: calc(.08s + var(--i) * .07s);
    transition: transform .25s var(--ease-spring), box-shadow .3s;
}
.zk__plate[data-type="savol"]  { --disk: #b91c1c; }
.zk__plate[data-type="royxat"] { --disk: #1d4ed8; }
.zk__plate[data-type="tanlov"] { --disk: #047857; }
.zk__plate[data-type="amaliy"] { --disk: #b45309; }
.zk__plate:not(:disabled):hover { transform: translateY(-6px) rotate(8deg) !important; box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.2), inset 0 0 0 14px rgba(0, 0, 0, 0.25), 0 24px 40px rgba(0, 0, 0, 0.6); }
.zk__plate:disabled { cursor: default; filter: grayscale(.7) brightness(.6); }
.zk__plate.is-ok:disabled { filter: grayscale(.2) brightness(.85); box-shadow: inset 0 0 0 6px rgba(74, 222, 128, 0.6), 0 10px 24px rgba(0, 0, 0, 0.5); }
.zk__plate.is-bad:disabled { box-shadow: inset 0 0 0 6px rgba(248, 113, 113, 0.5), 0 10px 24px rgba(0, 0, 0, 0.5); }
.zk__plate-n { font-size: .7rem; letter-spacing: .1em; opacity: .8; margin-top: 1.2rem; }
.zk__plate b { font-size: clamp(.72rem, 1vw, .92rem); line-height: 1.1; text-align: center; padding: 0 .8rem; }
.zk__plate small { font-size: .66rem; opacity: .85; padding: 0 .6rem; text-align: center; }

/* kartochka */
.zk__card {
    width: min(820px, 100%); margin: 0 auto;
    display: flex; flex-direction: column; gap: .8rem;
    padding: 1.25rem 1.5rem 1.3rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #1f2937, #111827);
    border: 1px solid #374151; border-top: 5px solid #ef4444;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.6);
    color: #f9fafb;
    opacity: 0; transform: translateY(-8px);
    transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.zk__card.is-in { opacity: 1; transform: none; }
.zk__card-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.zk__card-tag { color: #fca5a5; }
.zk__card-tag[data-type="royxat"] { color: #93c5fd; } .zk__card-tag[data-type="tanlov"] { color: #6ee7b7; } .zk__card-tag[data-type="amaliy"] { color: #fcd34d; }
.zk__card-team { color: var(--jamoa); }
.zk__q { margin: 0; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.3; font-weight: 600; color: #fff; }
.zk__hint { margin: 0; font-size: .88rem; color: #9ca3af; }
.zk__hint b { color: #fff; }
.zk__card .btn-glass { width: fit-content; }
.zk__card kbd { margin-left: .4rem; font: 600 .7rem var(--font-display); padding: .1rem .4rem; border-radius: 5px; background: rgba(255, 255, 255, 0.18); }
.zk__answer { padding: .8rem 1rem; border-radius: 10px; background: rgba(74, 222, 128, 0.08); border-left: 3px solid var(--ok); }
.zk__answer small { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); font-weight: 700; }
.zk__answer small svg { width: 12px; height: 12px; }
.zk__answer p { margin: .3rem 0 0; line-height: 1.55; color: #f9fafb; }
.zk__hukm { display: flex; flex-wrap: wrap; gap: .5rem; }
.zk__ok  { background: var(--ok); color: #052e16; border-color: transparent; }
.zk__bad { background: rgba(248, 113, 113, 0.18); color: #fecaca; border-color: rgba(248, 113, 113, 0.5); }
.zk__ok:hover, .zk__bad:hover { transform: translateY(-2px); }
.zk__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.zk__verdict { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; }
.zk__verdict svg { width: 16px; height: 16px; }
.zk__verdict.is-ok { color: var(--ok); } .zk__verdict.is-bad { color: var(--bad); }
.zk__foot .btn-primary { color: #fff; }
.zk__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.zk__check { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .75rem; border-radius: 10px; border: 1px solid #374151; background: rgba(255, 255, 255, 0.03); color: #e5e7eb; text-align: left; cursor: pointer; font-size: .92rem; transition: background .2s; }
.zk__check i { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #6b7280; flex-shrink: 0; display: grid; place-items: center; }
.zk__check.is-on { background: rgba(74, 222, 128, 0.12); border-color: var(--ok); }
.zk__check.is-on i { background: var(--ok); border-color: var(--ok); }
.zk__check.is-on i::after { content: '\2713'; color: #052e16; font-size: .8rem; font-weight: 900; }
.zk__check:disabled { cursor: default; }
.zk__variants { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.zk__variant { display: flex; align-items: center; gap: .6rem; padding: .75rem .9rem; border-radius: 10px; border: 1px solid #374151; background: rgba(255, 255, 255, 0.03); color: #f9fafb; font-family: var(--font-display); font-weight: 600; text-align: left; cursor: pointer; transition: transform .2s var(--ease-spring), border-color .2s; }
.zk__variant kbd { margin: 0; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #374151; padding: 0; }
.zk__variant:not(:disabled):hover { transform: translateY(-2px); border-color: #fbbf24; }
.zk__variant:disabled { cursor: default; opacity: .6; }
.zk__variant.is-ok { opacity: 1; border-color: var(--ok); background: rgba(74, 222, 128, 0.14); }
.zk__variant.is-bad { opacity: 1; border-color: var(--bad); background: rgba(248, 113, 113, 0.12); text-decoration: line-through; }
.zk__amaliy { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: center; }
.zk__reps { --p: 0; position: relative; width: 130px; height: 130px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(#fbbf24 calc(var(--p) * 360deg), #374151 0); }
.zk__reps::before { content: ''; position: absolute; inset: 10px; border-radius: 50%; background: #111827; }
.zk__reps b { position: relative; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; }
.zk__reps b.is-pop { animation: oyn-pop .4s var(--ease-spring); }
.zk__reps small { position: relative; color: #9ca3af; font-size: .8rem; }
.zk__amaliy-side { display: flex; flex-direction: column; gap: .7rem; }
.zk__rep-btns { display: flex; gap: .5rem; align-items: center; }
.zk__mezon { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; font-size: .86rem; color: #d1d5db; }
.zk__mezon li { display: flex; gap: .4rem; align-items: flex-start; }
.zk__mezon svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: #fbbf24; }

/* shtangalar (pastda) */
.zk__bars { position: relative; z-index: 2; }
.zk__bars-inner { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: .8rem; }
.zk__bar { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .6rem .4rem .5rem; border-radius: 12px; border: 1px solid transparent; transition: border-color .3s, background .3s; }
.zk__bar.is-on { border-color: rgba(var(--jamoa-rgb), .5); background: rgba(var(--jamoa-rgb), .08); }
.zk__barbell { display: flex; align-items: center; height: 64px; }
.zk__rod { width: clamp(60px, 8vw, 120px); height: 8px; background: linear-gradient(180deg, #e5e7eb, #6b7280); border-radius: 2px; }
.zk__side { display: flex; align-items: center; }
.zk__side--l { flex-direction: row-reverse; }
.zk__side i { display: block; width: 12px; border-radius: 3px; margin: 0 1px; background: linear-gradient(90deg, var(--jamoa), rgba(var(--jamoa-rgb), .6)); height: calc(30px + min(var(--d), 4) * 7px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); animation: zk-disk .45s var(--ease-spring) both; }
.zk__side i:first-child { height: 56px; }
@keyframes zk-disk { from { transform: translateY(-30px) scale(.6); opacity: 0; } }
.zk__bar-name { font-family: var(--font-display); font-weight: 600; font-size: .85rem; color: var(--jamoa); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.zk__bar-score { font-family: var(--font-display); font-size: 1.2rem; line-height: 1; }
.zk__bar-score small { font-size: .7rem; color: var(--text-tertiary); }

/* kirish — disklar polda */
.zk__plates--legend { position: relative; z-index: 1; margin: auto 0 0; padding: 0 0 1.25rem; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.zk__plates--legend .zk__plate { cursor: default; }

/* yakun */
.zk__result { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.zk__result li { display: flex; align-items: center; gap: .8rem; padding: .65rem .85rem; border-radius: var(--radius-lg); background: var(--surface-glass); border: 1px solid var(--surface-glass-border); border-left: 3px solid rgba(255, 255, 255, 0.2); }
.zk__result li.is-ok { border-left-color: var(--ok); } .zk__result li.is-bad { border-left-color: var(--bad); }
.zk__result-n { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #b91c1c; color: #fff; font: 700 .85rem var(--font-display); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.15); }
.zk__result-n[data-type="royxat"] { background: #1d4ed8; } .zk__result-n[data-type="tanlov"] { background: #047857; } .zk__result-n[data-type="amaliy"] { background: #b45309; }
.zk__result-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.zk__result-body b { font-family: var(--font-display); font-size: .92rem; }
.zk__result-body small { color: var(--text-secondary); font-size: .82rem; }
.zk__result-body em { font-style: normal; color: var(--text-tertiary); font-size: .8rem; }
.zk__result-ball { display: flex; flex-direction: column; align-items: flex-end; }
.zk__result-ball small { font-size: .68rem; color: var(--jamoa); }
.zk__result-ball b { font-family: var(--font-display); font-size: 1.2rem; color: var(--jamoa); }

/* muqova */
.oyn-mini[data-tema="zal-kuch"] { background: linear-gradient(180deg, #1a1d24 0%, #23272f 66%, #3b3f47 66%, #3b3f47 69%, #2b2f36 69%, #1f2329 100%); }
.oyn-mini[data-tema="zal-kuch"]::before { content: ''; position: absolute; left: 22%; right: 22%; top: 58%; height: 6px; background: linear-gradient(180deg, #e5e7eb, #6b7280); border-radius: 2px; }
.oyn-mini[data-tema="zal-kuch"]::after { content: ''; position: absolute; left: 14%; top: 44%; width: 12px; height: 34px; border-radius: 3px; background: #b91c1c; box-shadow: 14px 0 0 #1d4ed8, calc(100% / 0.14 * 0.58) 0 0 #b91c1c, calc(100% / 0.14 * 0.58 + 14px) 0 0 #1d4ed8; }
.oyn-mini[data-tema="zal-kuch"] .oyn-mini__title { background: #111827; color: #fff; border: 2px solid #ef4444; left: 50%; translate: -50% 0; top: 16%; transform: rotate(-2deg); }
.oyn-mini[data-tema="zal-kuch"] .oyn-mini__title::before { display: none; }

@media screen and (max-width: 860px) {
    .zk__plates { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zk__plates--legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .zk__list, .zk__variants { grid-template-columns: 1fr; }
    .zk__amaliy { grid-template-columns: 1fr; justify-items: center; }
    .zk__bars-inner { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
    .zk__rack, .zk__poster { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .zk__plate, .zk__card, .zk__side i { animation: none; transition: none; opacity: 1; transform: none; }
}

/* ======================================================================
   TEMA: SVETOFOR — start chizig'i, yugurish yo'lagi, katta signal paneli.
   Signal mexanikasi (ekran rang bilan yonadi → jarima → mezonlar).
   ====================================================================== */
.svf {
    position: relative; min-height: 100%;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 30%);
    gap: 1rem; padding: clamp(1rem, 2.5vw, 1.5rem);
    isolation: isolate;
}
.oyn-stage:has(.svf) { min-height: 560px; display: flex; flex-direction: column; }
.oyn-stage:has(.svf) .svf { flex: 1; }
.svf__track {
    position: absolute; inset: 0; z-index: 0;
    background: linear-gradient(180deg, #0b1222 0%, #1a1030 55%, #7a2e2e 100%);
    display: flex; align-items: flex-end;
}
.svf__track i { flex: 1; height: 45%; border-left: 3px solid rgba(255, 255, 255, 0.55); background: linear-gradient(180deg, rgba(190, 60, 50, 0.0), rgba(190, 60, 50, 0.45)); transform-origin: bottom; transform: perspective(400px) rotateX(50deg); }
.svf__track i:last-child { border-right: 3px solid rgba(255, 255, 255, 0.55); }
.svf__start { position: absolute; left: 0; right: 0; bottom: 18%; z-index: 0; text-align: center; font: 900 1.4rem var(--font-display); letter-spacing: .6em; color: rgba(255, 255, 255, 0.35); border-top: 4px dashed rgba(255, 255, 255, 0.45); padding-top: .3rem; }
.svf__light { position: absolute; right: 4%; top: 5%; z-index: 0; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: #111827; border: 2px solid #374151; }
.svf__light i { width: 26px; height: 26px; border-radius: 50%; background: rgba(var(--toifa-rgb), .25); border: 2px solid rgba(var(--toifa-rgb), .5); }
.svf .svf__light { display: none; }
@keyframes svf-blink { 50% { background: rgba(var(--toifa-rgb), .9); box-shadow: 0 0 14px rgba(var(--toifa-rgb), .8); } }

.svf__panel { position: relative; z-index: 2; display: flex; align-items: stretch; justify-content: center; min-height: 380px; }
.svf__ready, .svf__grade {
    width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem;
    padding: 1.5rem; border-radius: 18px;
    background: rgba(5, 14, 26, 0.72); border: 1px solid var(--surface-glass-border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.svf__ready h2, .svf__grade h2 { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.1; }
.svf__ready p { margin: 0; max-width: 52ch; color: var(--text-secondary); line-height: 1.55; }
.svf__speed { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem; border-radius: var(--radius-pill); background: rgba(15, 23, 42, 0.6); border: 1px solid var(--surface-glass-border); }
.svf__speed-btn { padding: .45rem .9rem; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--text-secondary); font: 600 .85rem var(--font-display); cursor: pointer; }
.svf__speed-btn.is-active { background: var(--oyn); color: #2a0710; }
.svf__speed small { padding: 0 .8rem; color: var(--text-tertiary); font-size: .78rem; }
.svf kbd { margin-left: .4rem; font: 600 .7rem var(--font-display); padding: .1rem .4rem; border-radius: 5px; background: rgba(255, 255, 255, 0.2); }

/* yonadigan panel */
.svf__flash {
    width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    border-radius: 18px;
    background: rgb(var(--toifa-rgb, 100, 116, 139));
    color: #06101c;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.15), 0 0 80px 20px rgba(var(--toifa-rgb, 100, 116, 139), .6);
    transition: background .12s, box-shadow .12s;
}
.svf__flash[data-rang="kok"], .svf__flash[data-rang="qizil"] { color: #fff; }
.svf__flash b { font-family: var(--font-display); font-size: clamp(3rem, 8vw, 6.5rem); line-height: 1; letter-spacing: .08em; }
.svf__flash span { font-family: var(--font-display); font-size: clamp(1.2rem, 2.6vw, 2rem); font-weight: 600; }
.svf__flash small { font-size: .85rem; opacity: .75; font-variant-numeric: tabular-nums; }
.svf__flash.is-hit { animation: svf-hit .35s var(--ease-out); }
@keyframes svf-hit { 0% { transform: scale(.97); filter: brightness(1.6); } 100% { transform: none; filter: none; } }

/* yon panel */
.svf__side { position: relative; z-index: 2; display: flex; flex-direction: column; }
.svf__legend-box, .svf__live { flex: 1; display: flex; flex-direction: column; gap: .7rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(5, 14, 26, 0.72); border: 1px solid var(--surface-glass-border); }
.svf__legend { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.svf__legend-item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; align-items: center; padding: .5rem .7rem; border-radius: 12px; background: rgba(var(--toifa-rgb), .1); border: 1px solid rgba(var(--toifa-rgb), .35); }
.svf__swatch { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 8px; background: rgb(var(--toifa-rgb)); box-shadow: 0 0 14px rgba(var(--toifa-rgb), .6); }
.svf__legend-item b { font-family: var(--font-display); font-size: .92rem; }
.svf__legend-item small { font-size: .8rem; color: var(--text-secondary); }
.svf__log { display: flex; flex-wrap: wrap; gap: 4px; }
.svf__log i { width: 16px; height: 16px; border-radius: 4px; background: rgb(var(--toifa-rgb)); }
.svf__teams { display: grid; gap: .5rem; }
.svf__team { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .6rem .8rem; border-radius: 12px; border: 2px solid rgba(var(--jamoa-rgb), .5); background: rgba(var(--jamoa-rgb), .1); color: var(--text-primary); font-family: var(--font-display); font-weight: 600; cursor: pointer; text-align: left; transition: transform .15s var(--ease-spring), background .15s; }
.svf__team:hover { transform: translateY(-2px); background: rgba(var(--jamoa-rgb), .25); }
.svf__team:active { transform: scale(.97); }
.svf__team kbd { margin: 0; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--jamoa); color: #1b2433; padding: 0; }
.svf__team b { font-size: 1.3rem; color: var(--bad); min-width: 1.4rem; text-align: right; }
.svf__team b.is-pop { animation: oyn-pop .4s var(--ease-spring); }
.svf__live .btn { margin-top: auto; }

/* baholash jadvali */
.svf__grade-grid { display: grid; grid-template-columns: minmax(140px, 1.4fr) repeat(var(--n), minmax(70px, 1fr)); gap: .35rem; width: 100%; max-width: 760px; align-items: center; }
.svf__grade-head { padding: .3rem; }
.svf__grade-team { display: flex; flex-direction: column; color: var(--jamoa); font-family: var(--font-display); }
.svf__grade-team small { font-size: .7rem; color: var(--text-tertiary); }
.svf__grade-label { text-align: left; font-size: .9rem; padding: .35rem .5rem; }
.svf__cell { display: grid; place-items: center; height: 44px; border-radius: 10px; border: 1px solid var(--surface-glass-border); background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: background .15s, transform .15s var(--ease-spring); }
.svf__cell i { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #6b7280; display: grid; place-items: center; }
.svf__cell.is-on { background: rgba(var(--jamoa-rgb), .18); border-color: var(--jamoa); }
.svf__cell.is-on i { background: var(--jamoa); border-color: var(--jamoa); }
.svf__cell.is-on i::after { content: '\2713'; color: #1b2433; font-size: .85rem; font-weight: 900; }
.svf__cell:hover { transform: translateY(-2px); }
.svf__grade-foot { margin-top: .4rem; }
.svf__grade-foot .btn-primary { color: #fff; }

/* kirish — signallar start chizig'ida */
.svf__legend--side { grid-template-columns: 1fr; }
.oyn-kirish .svf__legend { position: relative; z-index: 1; margin: auto 0 0; padding: 0 0 1.25rem; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.oyn-kirish .svf__legend-item { opacity: 0; transform: translateY(12px); animation: oyn-in .5s var(--ease-out) forwards; animation-delay: calc(.2s + var(--i) * .1s); background: rgba(5, 14, 26, 0.6); }
.oyn-kirish .svf__start { display: none; }

/* yakun */
.svf__result { display: grid; grid-template-columns: minmax(140px, 1.4fr) repeat(var(--n), minmax(80px, 1fr)); gap: .35rem; align-items: center; }
.svf__result-team { display: flex; flex-direction: column; color: var(--jamoa); font-family: var(--font-display); padding: .3rem; }
.svf__result-team small { font-size: .72rem; color: var(--text-tertiary); }
.svf__result-label { font-size: .9rem; color: var(--text-secondary); padding: .35rem .5rem; }
.svf__result-cell { display: flex; align-items: center; justify-content: center; gap: 4px; padding: .45rem; border-radius: 10px; background: var(--surface-glass); border: 1px solid var(--surface-glass-border); }
.svf__result-cell i { width: 12px; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.svf__result-cell i.is-on { background: var(--jamoa); }
.svf__result-cell b { margin-left: .4rem; font-family: var(--font-display); color: var(--jamoa); }

/* muqova */
.oyn-mini[data-tema="svetofor"] { background: linear-gradient(180deg, #0b1222 0%, #1a1030 55%, #7a2e2e 100%); }
.oyn-mini[data-tema="svetofor"] .oyn-mini__scene { left: 10%; right: 10%; bottom: 14px; gap: 6px; justify-content: center; }
.oyn-mini[data-tema="svetofor"] .oyn-mini__scene i { width: 22%; height: 40px; border-radius: 8px; background: rgb(var(--toifa-rgb)); box-shadow: 0 0 16px rgba(var(--toifa-rgb), .7); aspect-ratio: auto; }
.oyn-mini[data-tema="svetofor"] .oyn-mini__scene i:nth-child(2) { transform: none; }
.mavzu-card:hover .oyn-mini[data-tema="svetofor"] .oyn-mini__scene i { transform: translateY(-3px); }
.oyn-mini[data-tema="svetofor"] .oyn-mini__title { background: #111827; color: #fff; border: 1px solid rgba(255, 255, 255, 0.4); left: 50%; translate: -50% 0; top: 16px; transform: rotate(0); }
.oyn-mini[data-tema="svetofor"] .oyn-mini__title::before { display: none; }
.oyn-print__heads--4 { grid-template-columns: repeat(4, 1fr) !important; }

@media screen and (max-width: 860px) {
    .svf { grid-template-columns: 1fr; }
    .svf__panel { min-height: 300px; }
    .svf__flash b { font-size: 2.6rem; }
    .oyn-kirish .svf__legend { grid-template-columns: repeat(2, 1fr); }
    .svf__grade-grid, .svf__result { grid-template-columns: minmax(90px, 1fr) repeat(var(--n), minmax(44px, 1fr)); }
    .svf__grade-label, .svf__result-label { font-size: .76rem; }
    .svf__light { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .svf__flash.is-hit, .svf__light i, .oyn-kirish .svf__legend-item { animation: none; opacity: 1; transform: none; }
}

/* ======================================================================
   ESTAFETA mexanikasi — ikki tema:
     TRASSA (chaqqonlik): konuslar, to'siq, to'p — yo'lak va belgilar.
     GIMNASTIKA (egiluvchanlik): gilamcha, lenta, yumshoq palitra.
   ====================================================================== */
.est {
    --est-ink: #f8fafc;
    position: relative; min-height: 100%;
    display: grid; grid-template-columns: minmax(200px, 26%) minmax(0, 1fr);
    gap: 1.25rem; padding: clamp(1rem, 2.5vw, 1.75rem);
    isolation: isolate;
}
.oyn-stage:has(.est) { min-height: 560px; display: flex; flex-direction: column; }
.oyn-stage:has(.est) .est { flex: 1; }
.est__fon { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* trassa — zal poli, konuslar, to'siq */
.est__fon--trassa {
    background:
        repeating-linear-gradient(90deg, transparent 0 120px, rgba(255, 255, 255, 0.035) 120px 122px),
        linear-gradient(180deg, #0e1a2b 0%, #16273d 60%, #0f3f4d 100%);
}
.est__fon--trassa::before { content: ''; position: absolute; left: -10%; right: -10%; bottom: 8%; height: 120px; border: 4px dashed rgba(251, 146, 60, 0.35); border-radius: 50%; transform: rotate(-3deg); }
.est__fon--trassa i { position: absolute; bottom: 14%; width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-bottom: 48px solid #f97316; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); }
.est__fon--trassa i::after { content: ''; position: absolute; left: -14px; top: 18px; width: 28px; height: 8px; background: #fff; opacity: .8; }
.est__fon--trassa i:nth-child(1) { left: 8%; } .est__fon--trassa i:nth-child(2) { left: 30%; bottom: 22%; } .est__fon--trassa i:nth-child(3) { left: 52%; }
.est__fon--trassa i:nth-child(4) { left: 74%; bottom: 24%; } .est__fon--trassa i:nth-child(5) { left: 92%; }
/* gimnastika — gilamcha va lenta */
.est__fon--gimnastika { background: linear-gradient(180deg, #2a1f4e 0%, #3b2a66 55%, #5b3d8a 100%); }
.est__fon--gimnastika::before { content: ''; position: absolute; left: 6%; right: 6%; bottom: 4%; height: 18%; border-radius: 18px; background: linear-gradient(180deg, #c4b5fd, #a78bfa); box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.25), 0 20px 40px rgba(0, 0, 0, 0.4); }
.est__fon--gimnastika::after { content: ''; position: absolute; left: -5%; right: -5%; top: 52%; height: 14px; border-radius: 50%; border-top: 5px solid #f9a8d4; transform: rotate(-5deg); opacity: .35; box-shadow: 0 40px 0 -2px rgba(249, 168, 212, 0.2); }
.est__fon--gimnastika i { position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fbcfe8; opacity: .45; }
.est__fon--gimnastika i:nth-child(1) { left: 12%; top: 28%; } .est__fon--gimnastika i:nth-child(2) { left: 40%; top: 12%; width: 10px; height: 10px; } .est__fon--gimnastika i:nth-child(3) { left: 68%; top: 30%; }
.est__fon--gimnastika i:nth-child(4) { left: 84%; top: 10%; width: 12px; height: 12px; } .est__fon--gimnastika i:nth-child(5) { left: 55%; top: 40%; width: 8px; height: 8px; }

/* yo'lak — topshiriq belgilari */
.est__path-wrap { position: relative; z-index: 2; display: flex; align-items: center; }
.est__path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; width: 100%; position: relative; }
.est__path::before { content: ''; position: absolute; left: 19px; top: 12px; bottom: 12px; width: 2px; background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0 6px, transparent 6px 12px); }
.est__node { position: relative; display: flex; align-items: center; gap: .7rem; padding: .3rem .4rem; border-radius: 12px; transition: background .3s; }
.est__node.is-now { background: rgba(255, 255, 255, 0.08); }
.est__marker { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; }
.est__marker b { position: relative; z-index: 1; font: 700 .85rem var(--font-display); color: #fff; }
/* trassa: konus belgisi */
.est--trassa .est__marker::before, .oyn-kirish:has(.est__fon--trassa) .est__marker::before { content: ''; position: absolute; left: 50%; bottom: 2px; width: 0; height: 0; margin-left: -16px; border-left: 16px solid transparent; border-right: 16px solid transparent; border-bottom: 36px solid #f97316; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.est--trassa .est__node.is-ok .est__marker::before { border-bottom-color: #4ade80; }
.est--trassa .est__node.is-bad .est__marker::before { border-bottom-color: #f87171; }
.est--trassa .est__node.is-now .est__marker::before { border-bottom-color: #fbbf24; filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.8)); }
/* gimnastika: lenta munchog'i */
.est--gimnastika .est__marker::before, .oyn-kirish:has(.est__fon--gimnastika) .est__marker::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, #f9a8d4 30%, #db2777 100%); box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45); }
.est--gimnastika .est__node.is-ok .est__marker::before { background: radial-gradient(circle at 35% 30%, #fff, #86efac 30%, #16a34a); }
.est--gimnastika .est__node.is-bad .est__marker::before { background: radial-gradient(circle at 35% 30%, #fff, #fca5a5 30%, #b91c1c); }
.est--gimnastika .est__node.is-now .est__marker::before { box-shadow: 0 0 0 4px rgba(249, 168, 212, 0.4), 0 0 20px rgba(249, 168, 212, 0.8); }
.est__node-text { display: flex; flex-direction: column; min-width: 0; }
.est__node-text b { font-family: var(--font-display); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est__node-text small { font-size: .7rem; color: var(--text-tertiary); }
.est__node.is-ok .est__node-text small { color: var(--ok); } .est__node.is-bad .est__node-text small { color: var(--bad); }

/* karta */
.est__card-wrap { position: relative; z-index: 2; display: flex; align-items: center; }
.est__card {
    width: 100%; display: flex; flex-direction: column; gap: .8rem;
    padding: 1.25rem 1.5rem 1.3rem; border-radius: 18px;
    background: rgba(5, 14, 26, 0.78); border: 1px solid var(--surface-glass-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
    opacity: 0; transform: translateY(-8px);
    transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.est__card.is-in { opacity: 1; transform: none; }
.est--trassa .est__card { border-top: 4px solid #f97316; }
.est--gimnastika .est__card { border-top: 4px solid #f9a8d4; background: rgba(22, 14, 42, 0.94); }
.est--trassa .est__card { background: rgba(6, 14, 26, 0.9); }
.est__head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-display); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.est__tag { color: #fdba74; } .est--gimnastika .est__tag { color: #f9a8d4; }
.est__who { color: var(--jamoa, var(--text-secondary)); }
.est__q { margin: 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2.1vw, 1.55rem); line-height: 1.35; font-weight: 600; }
.est__hint { margin: 0; font-size: .88rem; color: var(--text-secondary); }
.est__hint b { color: var(--text-primary); }
.est__card .btn-glass { width: fit-content; }
.est__card kbd { margin-left: .4rem; font: 600 .7rem var(--font-display); padding: .1rem .4rem; border-radius: 5px; background: rgba(255, 255, 255, 0.18); }
.est__answer { padding: .8rem 1rem; border-radius: 10px; background: rgba(74, 222, 128, 0.08); border-left: 3px solid var(--ok); }
.est__answer small { display: inline-flex; align-items: center; gap: .35rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ok); font-weight: 700; }
.est__answer small svg { width: 12px; height: 12px; }
.est__answer p { margin: .3rem 0 0; line-height: 1.55; }
.est__hukm { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.est__ok  { background: var(--ok); color: #052e16; border-color: transparent; }
.est__bad { background: rgba(248, 113, 113, 0.18); color: #fecaca; border-color: rgba(248, 113, 113, 0.5); }
.est__ok:hover, .est__bad:hover { transform: translateY(-2px); }
.est__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.est__foot .btn-primary { color: #fff; }
.est__verdict { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 600; }
.est__verdict svg { width: 16px; height: 16px; }
.est__verdict.is-ok { color: var(--ok); } .est__verdict.is-bad { color: var(--bad); }
.est__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.est__check { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .75rem; border-radius: 10px; border: 1px solid var(--surface-glass-border); background: rgba(255, 255, 255, 0.04); color: var(--text-primary); text-align: left; cursor: pointer; font-size: .92rem; }
.est__check i { width: 20px; height: 20px; border-radius: 6px; border: 2px solid #6b7280; flex-shrink: 0; display: grid; place-items: center; }
.est__check.is-on { background: rgba(74, 222, 128, 0.12); border-color: var(--ok); }
.est__check.is-on i { background: var(--ok); border-color: var(--ok); }
.est__check.is-on i::after { content: '\2713'; color: #052e16; font-size: .8rem; font-weight: 900; }
.est__variants { display: grid; gap: .5rem; }
.est__variant { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border-radius: 10px; border: 1px solid var(--surface-glass-border); background: rgba(255, 255, 255, 0.04); color: var(--text-primary); font-family: var(--font-display); font-weight: 600; text-align: left; cursor: pointer; transition: transform .2s var(--ease-spring), border-color .2s; }
.est__variant kbd { margin: 0; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, 0.15); padding: 0; }
.est__variant:not(:disabled):hover { transform: translateY(-2px); border-color: #fbbf24; }
.est__variant:disabled { cursor: default; opacity: .6; }
.est__variant.is-ok { opacity: 1; border-color: var(--ok); background: rgba(74, 222, 128, 0.14); }
.est__variant.is-bad { opacity: 1; border-color: var(--bad); background: rgba(248, 113, 113, 0.12); text-decoration: line-through; }
.est__amaliy { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; }
.est__sw { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .8rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--surface-glass-border); }
.est__sw b { font-family: var(--font-display); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.est__sw-btns { display: flex; gap: .4rem; }
.est__sw-btns .btn.is-on { background: rgba(248, 113, 113, 0.2); color: #fecaca; border-color: rgba(248, 113, 113, 0.5); }
.est__mezon { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; color: var(--text-secondary); }
.est__mezon li { display: flex; gap: .45rem; align-items: flex-start; }
.est__mezon svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 3px; color: #fbbf24; }
/* signal */
.est__signal { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.est__sigpanel { width: 100%; min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; border-radius: 14px; background: linear-gradient(180deg, #f97316, #c2410c); color: #fff; box-shadow: 0 0 40px rgba(249, 115, 22, 0.45); }
.est__sigpanel.is-idle { background: rgba(255, 255, 255, 0.06); box-shadow: none; color: var(--text-secondary); }
.est__sigpanel.is-hit { animation: svf-hit .3s var(--ease-out); }
.est__arrow { font-size: clamp(3rem, 7vw, 5rem); line-height: 1; font-weight: 900; }
.est__sigpanel b { font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: .06em; }
.est__sigpanel small { opacity: .85; }
.est__cmds { display: flex; flex-wrap: wrap; gap: .5rem; }
.est__cmd { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem .35rem .4rem; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--surface-glass-border); font-size: .84rem; }
.est__cmd i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f97316; color: #fff; font-style: normal; font-weight: 900; }
.est__log { display: flex; flex-wrap: wrap; gap: 4px; }
.est__log i { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: rgba(249, 115, 22, 0.25); border: 1px solid rgba(249, 115, 22, 0.5); font-style: normal; font-weight: 900; }
.est__teams { display: flex; flex-wrap: wrap; gap: .5rem; }
.est__team { padding: .6rem 1rem; border-radius: 999px; border: 2px solid rgba(var(--jamoa-rgb), .5); background: rgba(var(--jamoa-rgb), .1); color: var(--text-primary); font-family: var(--font-display); font-weight: 600; cursor: pointer; transition: transform .2s var(--ease-spring), background .2s; }
.est__team:not(:disabled):hover { transform: translateY(-2px); }
.est__team.is-on { background: var(--jamoa); color: #1b2433; border-color: var(--jamoa); box-shadow: 0 8px 20px rgba(var(--jamoa-rgb), .4); }
.est__team:disabled { cursor: default; }
.est__grid { display: grid; grid-template-columns: minmax(140px, 1.4fr) repeat(var(--n), minmax(60px, 1fr)); gap: .35rem; align-items: center; }
.est__grid-team { font-family: var(--font-display); color: var(--jamoa); text-align: center; font-size: .85rem; padding: .2rem; }
.est__grid-label { font-size: .9rem; padding: .3rem .4rem; }
.est__cell { display: grid; place-items: center; height: 42px; border-radius: 10px; border: 1px solid var(--surface-glass-border); background: rgba(255, 255, 255, 0.04); cursor: pointer; transition: background .15s, transform .15s var(--ease-spring); }
.est__cell i { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #6b7280; display: grid; place-items: center; }
.est__cell.is-on { background: rgba(var(--jamoa-rgb), .18); border-color: var(--jamoa); }
.est__cell.is-on i { background: var(--jamoa); border-color: var(--jamoa); }
.est__cell.is-on i::after { content: '\2713'; color: #1b2433; font-size: .85rem; font-weight: 900; }
.est__cell:disabled { cursor: default; }

/* kirish — yo'lak pastda gorizontal */
.est__path--legend { position: relative; z-index: 1; margin: auto 0 0; padding: 0 0 1.25rem; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: .4rem .6rem; }
.est__path--legend::before { display: none; }
.est__path--legend .est__node { opacity: 0; transform: translateY(12px); animation: oyn-in .5s var(--ease-out) forwards; animation-delay: calc(.15s + var(--i) * .08s); padding: .4rem .7rem .4rem .4rem; background: rgba(5, 14, 26, 0.55); border: 1px solid var(--surface-glass-border); }
.est__path--legend .est__node-text b { white-space: normal; }

/* yakun */
.est__result { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.est__result li { display: flex; align-items: center; gap: .8rem; padding: .6rem .85rem; border-radius: var(--radius-lg); background: var(--surface-glass); border: 1px solid var(--surface-glass-border); border-left: 3px solid rgba(255, 255, 255, 0.2); }
.est__result li.is-ok { border-left-color: var(--ok); } .est__result li.is-bad { border-left-color: var(--bad); }
.est__marker--sm { width: 32px; height: 32px; }
.est__marker--sm::before { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: #f97316; }
.est__marker--sm b { font-size: .75rem; }
.est__result-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.est__result-body b { font-family: var(--font-display); font-size: .92rem; }
.est__result-body small { color: var(--text-secondary); font-size: .82rem; }
.est__result-body em { font-style: normal; color: var(--text-tertiary); font-size: .8rem; }
.est__result-kim { font-family: var(--font-display); font-size: .82rem; color: var(--text-secondary); text-align: right; max-width: 40%; }

/* muqovalar */
.oyn-mini[data-tema="trassa"] { background: linear-gradient(180deg, #0e1a2b 0%, #16273d 60%, #0f3f4d 100%); }
.oyn-mini[data-tema="trassa"]::before { content: ''; position: absolute; left: 14%; bottom: 22px; width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent; border-bottom: 36px solid #f97316; box-shadow: none; filter: drop-shadow(60px 0 0 #f97316) drop-shadow(60px 0 0 #f97316); }
.oyn-mini[data-tema="trassa"]::after { content: ''; position: absolute; left: -10%; right: -10%; bottom: 10px; height: 60px; border: 3px dashed rgba(251, 146, 60, 0.4); border-radius: 50%; }
.oyn-mini[data-tema="trassa"] .oyn-mini__title { background: #0e1a2b; color: #fff; border: 2px solid #f97316; left: 50%; translate: -50% 0; top: 16px; transform: rotate(-2deg); z-index: 1; }
.oyn-mini[data-tema="trassa"] .oyn-mini__title::before { display: none; }
.oyn-mini[data-tema="gimnastika"] { background: linear-gradient(180deg, #2a1f4e 0%, #3b2a66 55%, #5b3d8a 100%); }
.oyn-mini[data-tema="gimnastika"]::before { content: ''; position: absolute; left: 8%; right: 8%; bottom: 10px; height: 34px; border-radius: 10px; background: linear-gradient(180deg, #c4b5fd, #a78bfa); box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.25); }
.oyn-mini[data-tema="gimnastika"]::after { content: ''; position: absolute; left: -5%; right: -5%; top: 62%; height: 12px; border-radius: 50%; border-top: 5px solid #f9a8d4; transform: rotate(-6deg); }
.oyn-mini[data-tema="gimnastika"] .oyn-mini__title { background: #2a1f4e; color: #fff; border: 2px solid #f9a8d4; left: 50%; translate: -50% 0; top: 16px; transform: rotate(2deg); z-index: 1; }
.oyn-mini[data-tema="gimnastika"] .oyn-mini__title::before { display: none; }

@media screen and (max-width: 860px) {
    .est { grid-template-columns: 1fr; }
    .est__path { flex-direction: row; flex-wrap: wrap; gap: .3rem; }
    .est__path::before { display: none; }
    .est__node-text { display: none; }
    .est__node { padding: .2rem; }
    .est__list { grid-template-columns: 1fr; }
    .est__amaliy { grid-template-columns: 1fr; justify-items: center; }
    .est__grid { grid-template-columns: minmax(90px, 1fr) repeat(var(--n), minmax(40px, 1fr)); }
    .est__grid-label { font-size: .76rem; }
    .est__result-kim { max-width: 100%; text-align: left; width: 100%; }
    .est__result li { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
    .est__card, .est__path--legend .est__node, .est__sigpanel.is-hit { transition: none; animation: none; opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------ qog'oz */
.oyn-print { display: none; }
@media print {
    .navbar, .footer, .bg-mesh, .scroll-top, .sxema-after,
    .oyn__head, .oyn__body, .oyn-qoida { display: none !important; }
    body { background: #fff !important; color: #111 !important; }
    .app-main { padding-top: 0 !important; min-height: 0 !important; }
    .oyn { min-height: 0; padding: 0; display: block; }
    .oyn-print { display: block; color: #111; font-size: 11pt; }
    .oyn-print p, .oyn-print small, .oyn-print b, .oyn-print td, .oyn-print th, .oyn-print h1, .oyn-print h2 { color: #111; }
    .oyn-print__key { break-before: page; }
    .oyn-print__head { border-bottom: 2px solid #111; padding-bottom: .5rem; margin-bottom: .8rem; }
    .oyn-print__head small { display: block; font-size: 9pt; letter-spacing: .08em; text-transform: uppercase; color: #555; }
    .oyn-print__head h1 { margin: .15rem 0 .4rem; font-family: var(--font-display); font-size: 20pt; color: #111; }
    .oyn-print__head p { margin: .2rem 0; font-size: 10pt; line-height: 1.45; }
    .oyn-print__h2 { display: flex; align-items: center; gap: .4rem; margin: 1rem 0 .5rem; font-family: var(--font-display); font-size: 12pt; color: #111; break-after: avoid; }
    .oyn-print__h2 svg { width: 14px; height: 14px; }
    .oyn-print__heads { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
    .oyn-print__headcard {
        display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center;
        padding: .7rem .5rem; border: 1.5px dashed #777; border-radius: 6px; break-inside: avoid;
    }
    .oyn-print__headcard .oyn-ring { width: 30px; box-shadow: 0 0 0 2px var(--toifa); }
    .oyn-print__headcard b { font-family: var(--font-display); font-size: 12pt; letter-spacing: .06em; }
    .oyn-print__headcard small { font-size: 8.5pt; color: #555; }
    .oyn-print__cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
    .oyn-print__card {
        position: relative; display: flex; align-items: center; min-height: 58px;
        padding: .55rem .8rem .55rem 2.3rem; border: 1.5px dashed #777; border-radius: 6px; break-inside: avoid;
    }
    .oyn-print__card span { position: absolute; left: .6rem; top: .45rem; font: 700 8.5pt var(--font-display); color: #888; }
    .oyn-print__card p { margin: 0; font-family: var(--font-display); font-size: 11.5pt; line-height: 1.3; }
    .oyn-print__key { width: 100%; border-collapse: collapse; font-size: 9.5pt; break-inside: avoid; }
    .oyn-print__key th, .oyn-print__key td { border: 1px solid #bbb; padding: .25rem .5rem; text-align: left; }
    .oyn-print__key th { background: #eee; }
    .oyn-print__key td:first-child { width: 2rem; text-align: center; color: #666; }
    .oyn-print__key--inline { break-before: auto; width: auto; min-width: 60%; }
    .oyn-print__p { margin: .2rem 0 .5rem; font-size: 10pt; line-height: 1.5; }
    .oyn-print__list { margin: 0; padding-left: 1.2rem; font-size: 10.5pt; line-height: 2; }
}
