/* ============================================================ Z avlod · dizayn
   Ota-ona qismi — toza va tinch; bola qismi — yorqin, katta tugmalar (kitob: «o‘quv materiallari yorqin va emotsional bo‘lishi kerak»),
   lekin bitta ekranda bitta vazifa (bola diqqati tor). */
:root {
  color-scheme: light;
  --bg: #f4f6fb; --card: #fff; --tx: #0f172a; --mut: #64748b; --bd: #e2e8f0;
  --ac: #0d9488; --ac2: #2563eb; --acL: #ccfbf1; --gold: #f59e0b; --red: #e11d48; --green: #16a34a;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 18px; --sh: 0 6px 24px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx); font: 600 16px/1.5 var(--sans); }
a { color: var(--ac2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 900; }
h1 { font-size: clamp(26px, 6vw, 40px); }
h2 { font-size: clamp(20px, 4.4vw, 26px); }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }
button, input, select { font: inherit; color: inherit; }
img { max-width: 100%; }
.svg { display: inline-flex; line-height: 0; }
.muted { color: var(--mut); }
.small { font-size: 14px; }
.center { text-align: center; }
.err { color: var(--red); min-height: 1.2em; font-weight: 800; margin: .3em 0; }
.boot { display: grid; place-items: center; min-height: 70vh; font-weight: 800; color: var(--mut); }

/* ---------------- tugmalar, kartalar, maydonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: 46px; padding: 10px 18px; border: 0; border-radius: 14px;
  background: linear-gradient(135deg, var(--ac), #0f766e); color: #fff; font-weight: 900; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 rgba(15, 23, 42, .18); transition: transform .12s, box-shadow .12s, opacity .2s; touch-action: manipulation; user-select: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(15, 23, 42, .18); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.ghost { background: #fff; color: var(--tx); border: 2px solid var(--bd); box-shadow: none; }
.btn.red { color: var(--red); }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 12px; }
.btn.big { min-height: 56px; padding: 14px 26px; font-size: 19px; border-radius: 18px; }
.btn.wide { width: 100%; }
.card { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); margin-bottom: 16px; }
.note { padding: 12px 14px; border-radius: 14px; background: #e0f2fe; color: #075985; margin-bottom: 14px; font-size: 14px; }
.note.warn { background: #fef3c7; color: #92400e; }
.inp { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--bd); border-radius: 14px; background: #fff; outline: none; }
.inp:focus { border-color: var(--ac); }
.fld { display: block; margin: 0 0 14px; }
.fld > span { display: block; font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.ph { display: flex; align-items: center; gap: 8px; }
.ph b { padding: 0 4px; }
.form .fld:last-child { margin-bottom: 0; }
.tgl { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.tgl input { width: 22px; height: 22px; accent-color: var(--ac); }

/* ---------------- sahifa tuzilishi */
.wrap { max-width: 1040px; margin: 0 auto; padding: 16px 16px 40px; }
.wrap.narrow { max-width: 560px; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bd); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--tx); font-size: 20px; margin-right: auto; }
.back { font-size: 24px; text-decoration: none; color: var(--tx); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #f1f5f9; }
.who { font-weight: 800; color: var(--mut); max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { text-align: center; color: var(--mut); font-size: 14px; margin-top: 32px; }
.foot a { color: var(--mut); }
.two { display: grid; gap: 16px; }
.two > .card { margin-bottom: 0; }
.two + .card, .two + * { margin-top: 16px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }

/* ---------------- bosh sahifa */
.hero { display: grid; gap: 16px; align-items: center; padding: 20px 0 8px; }
.eyebrow { display: inline-block; font-weight: 900; font-size: 14px; color: var(--ac); background: var(--acL); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.hero h1 span { background: linear-gradient(120deg, var(--ac), var(--ac2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: #334155; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 220px; background: radial-gradient(circle at 50% 60%, #fef3c7, transparent 65%); }
.hero-kids { position: absolute; bottom: 0; display: flex; gap: 120px; }
@media (min-width: 760px) { .hero { grid-template-columns: 1.2fr 1fr; } }
.steps3 { display: grid; gap: 14px; margin: 18px 0; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.step { margin: 0; }
.step .ic { font-size: 34px; }
.ticks { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.ticks li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 8px; }
.src { font-size: 13px; color: var(--mut); margin: 0; }
.plans { display: grid; gap: 12px; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; text-align: center; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.plans.sel .plan { cursor: pointer; border-width: 2px; }
.plans.sel .plan.on { border-color: var(--ac); box-shadow: 0 0 0 4px var(--acL); }
.plan.hot { border-color: #fbbf24; }
.plan .tag { position: absolute; top: -12px; background: #fbbf24; color: #78350f; font-size: 12px; font-weight: 900; padding: 2px 10px; border-radius: 999px; }
.price { font-size: 26px; font-weight: 900; }
.prices { margin: 24px 0; }
.prices h2 { text-align: center; }

/* ---------------- kirish */
.auth { margin-top: 20px; }
.auth h1 { font-size: 28px; }

/* ---------------- oila kabineti */
.hi { font-size: clamp(22px, 5vw, 30px); margin-top: 6px; }
.sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.sub b { margin-right: auto; }
.sub.ok { background: #f0fdf4; border-color: #bbf7d0; }
.sub.off { background: #fff7ed; border-color: #fed7aa; }
.sub.wait { background: #eff6ff; border-color: #bfdbfe; }
.sub small { flex-basis: 100%; color: var(--mut); }
.kids { display: grid; gap: 14px; margin-bottom: 16px; }
@media (min-width: 760px) { .kids { grid-template-columns: 1fr 1fr; } }
.kid-card { margin: 0; }
.kc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.kc-head small { color: var(--mut); display: block; }
.kc-name { font-size: 20px; }
.kc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.stat { background: #f8fafc; border-radius: 12px; padding: 8px 4px; text-align: center; }
.stat b { display: block; font-size: 17px; }
.stat small { color: var(--mut); font-size: 12px; }
.kc-a { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.add-kid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; border: 2px dashed #cbd5e1; cursor: pointer; margin: 0; background: #fff; }
.add-kid span { font-size: 30px; }
.tg-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.tg-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f8fafc; border-radius: 12px; padding: 8px 12px; }
.links { display: grid; gap: 12px; }
@media (min-width: 640px) { .links { grid-template-columns: 1fr 1fr; } }
.link { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-decoration: none; color: var(--tx); margin: 0; text-align: left; cursor: pointer; }
.link .ic { grid-row: span 2; font-size: 28px; }
.link small { color: var(--mut); }
.cert-link { background: linear-gradient(120deg, #fef3c7, #fde68a); border-color: #fcd34d; margin-bottom: 16px; }
.kid-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kid-head h1 { margin: 0; font-size: 26px; }
.kid-head p { margin: 0; }
.kid-head > div { margin-right: auto; }
.q-par { font-size: 18px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.wd { text-align: center; background: #f8fafc; border-radius: 12px; padding: 6px 0; }
.wd small { display: block; color: var(--mut); font-size: 12px; }
.wd.on { background: #dcfce7; }
.wd.today { outline: 2px solid var(--ac); }
.kmap { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; max-width: 460px; }
.kh { display: grid; place-items: center; font-weight: 900; color: var(--mut); font-size: 13px; }
.kc { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; font-size: 12px; font-weight: 800; color: #0f172a; }
.kc.lx { background: #f1f5f9; color: #94a3b8; }
.kc.l0 { background: #fecdd3; }
.kc.l1, .kc.l2 { background: #fde68a; }
.kc.l3 { background: #bbf7d0; }
.kc.l4 { background: #4ade80; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--mut); margin-top: 10px; }
.legend .kc { width: 16px; height: 16px; display: inline-block; border-radius: 4px; }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; align-items: end; height: 120px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar i { display: block; width: 100%; min-height: 3px; border-radius: 6px 6px 2px 2px; background: #cbd5e1; }
.bar.on i { background: linear-gradient(#34d399, #059669); }
.bar small { font-size: 10px; color: var(--mut); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0 12px; }
.chip { padding: 6px 12px; border-radius: 999px; font-weight: 900; background: #f1f5f9; animation: pop .4s backwards; animation-delay: var(--d, 0ms); }
.chip.yes { background: #dcfce7; color: #166534; }
.chip.new { background: #fef3c7; color: #92400e; }
.tips { display: grid; gap: 12px; margin-bottom: 16px; }
.tip { display: flex; gap: 12px; margin: 0; }
.tip .ic { font-size: 30px; }
.tip p { margin: 4px 0 0; color: #334155; font-size: 15px; }
.good { color: var(--green); }
.bad { color: var(--red); }
.danger summary { cursor: pointer; font-weight: 800; color: var(--mut); }
.danger .krow { margin-top: 12px; }
.av-prev { display: grid; place-items: center; margin-bottom: 8px; }
.av-pick { display: grid; gap: 8px; margin-bottom: 14px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chipb { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--bd); background: #fff; cursor: pointer; font-weight: 800; }
.chipb.on { border-color: var(--ac); background: var(--acL); }
.dot { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--bd); cursor: pointer; }
.dot.on { box-shadow: 0 0 0 3px var(--tx); }
.cardno { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 20px; letter-spacing: 1px; }
.cardno small { flex-basis: 100%; font-size: 14px; color: var(--mut); letter-spacing: 0; }
.rc-prev img { max-height: 240px; border-radius: 12px; margin: 10px 0; border: 1px solid var(--bd); }

/* ---------------- oyna, xabarcha */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .5); opacity: 0; transition: opacity .2s; }
.modal.on { opacity: 1; }
.modal-card { position: relative; width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px; padding: 22px 18px 18px; transform: translateY(14px) scale(.98); transition: transform .22s; }
.modal.on .modal-card { transform: none; }
.modal-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: #f1f5f9; font-size: 24px; cursor: pointer; }
.modal-t { padding-right: 40px; font-size: 22px; }
.modal-a { display: flex; gap: 10px; justify-content: center; margin-top: 14px; }
.modal.kid .modal-card { background: linear-gradient(160deg, #fff7ed, #e0f2fe); text-align: center; }
.modal.kid .modal-t { padding: 0; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 10px 0 16px; }
.pin-dots i { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--ac); }
.pin-dots i.on { background: var(--ac); }
.pinbox .keypad { max-width: 300px; margin: 0 auto; }
.pinbox .keypad .key { background: #f1f5f9; color: var(--tx); box-shadow: 0 3px 0 #cbd5e1; }
.pinbox .keypad .key.ok { visibility: hidden; }
.deal-l { padding-left: 22px; display: grid; gap: 6px; font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 200; transform: translate(-50%, 20px); opacity: 0; max-width: calc(100vw - 32px);
  background: #0f172a; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; transition: .3s; box-shadow: var(--sh); }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--red); }

/* ============================================================ bola rejimi */
body.kid { background: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 34%, #fef3c7 70%, #fde68a 100%) fixed; color: #1e1b4b; }
.ktop { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: rgba(255, 255, 255, .55); backdrop-filter: blur(10px); }
.kme { display: flex; align-items: center; gap: 8px; margin-right: auto; min-width: 0; }
.kme b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kstats { display: flex; align-items: center; gap: 8px; }
.kbtns { display: flex; gap: 6px; }
.pill { background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 900; box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.pill.deal { font-size: 14px; }
.ring { --p: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#22c55e calc(var(--p) * 360deg), #fff 0); box-shadow: 0 2px 0 rgba(0, 0, 0, .08); }
.ring b { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; }
.kwrap { max-width: 640px; margin: 0 auto; padding: 14px 16px 40px; }
.kcard { background: rgba(255, 255, 255, .97); border-radius: 26px; padding: 20px 16px; box-shadow: 0 10px 30px rgba(30, 27, 75, .15); text-align: center; margin-bottom: 16px; }
.kcard.big h2 { font-size: clamp(24px, 6.5vw, 32px); }
.kcard > .svg { display: flex; justify-content: center; margin-bottom: 4px; }
.kcard p { font-size: 18px; }
.kcard.gate { background: rgba(255, 255, 255, .85); }
.kcard .eyebrow { background: #fef3c7; color: #92400e; }
.why { background: #f0f9ff; border-radius: 16px; padding: 10px 12px; font-size: 16px !important; }
.huge { font-size: 64px; line-height: 1.1; margin-bottom: 6px; }
.beat { animation: beat 1s infinite; }
.soft { color: #475569; font-weight: 800; }
.krow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin: 10px 0; }
.kidbtn { border-radius: 20px; min-height: 54px; font-size: 18px; background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 5px 0 #9a3412; }
.kidbtn:active { box-shadow: 0 2px 0 #9a3412; }
.kidbtn.go { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 5px 0 #14532d; }
.kidbtn.go:active { box-shadow: 0 2px 0 #14532d; }
.kidbtn.ghost { background: #fff; color: #1e1b4b; border: 0; box-shadow: 0 4px 0 #cbd5e1; }
.kidbtn.sm { min-height: 44px; min-width: 44px; padding: 6px 10px; font-size: 20px; border-radius: 14px; }
.kidbtn.big { min-height: 64px; font-size: 22px; padding: 14px 30px; }
.pulse { animation: pulse 1.4s infinite; }
.sq { animation: squish .35s; }

/* ---------------- xarita */
.map { position: relative; background: rgba(255, 255, 255, .5); border-radius: 26px; padding: 14px 10px 20px; margin-bottom: 14px; }
.map-t { text-align: center; font-weight: 900; margin-bottom: 6px; }
.node { position: relative; display: flex; align-items: center; gap: 12px; width: 64%; padding: 6px 0; }
.node.l { margin-right: auto; margin-left: 4%; }
.node.r { margin-left: auto; margin-right: 4%; flex-direction: row-reverse; text-align: right; }
.map .route { position: absolute; left: 0; top: 0; pointer-events: none; }
.node { z-index: 1; }
.nlab { background: rgba(255, 255, 255, .75); border-radius: 12px; padding: 2px 8px; }
.pin { position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  background: var(--c); border: 4px solid #fff; box-shadow: 0 5px 0 rgba(0, 0, 0, .15); }
.node.lock .pin { background: #cbd5e1; filter: grayscale(.4); font-size: 22px; }
.node.cur .pin { animation: bob 2s ease-in-out infinite; box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 5px 0 rgba(0, 0, 0, .15); }
.pin .me { position: absolute; top: -26px; font-size: 30px; }
.nlab b { display: block; font-size: 17px; }
.nlab small { color: #475569; font-weight: 800; }
.nst { display: block; font-size: 13px; }

/* ---------------- sarguzasht bosqichlari */
.steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.sp { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px 4px; border-radius: 14px; background: rgba(255, 255, 255, .5); font-size: 20px; opacity: .6; }
.sp small { font-size: 11px; font-weight: 900; }
.sp.on { background: #fff; opacity: 1; transform: scale(1.06); box-shadow: 0 4px 0 rgba(0, 0, 0, .1); }
.sp.done { opacity: 1; background: #dcfce7; }
.stagebox { min-height: 50vh; }

/* ---------------- dars */
.lesson { background: #fff; border-radius: 26px; padding: 14px 14px 18px; box-shadow: 0 10px 30px rgba(30, 27, 75, .15); }
.dots { display: flex; justify-content: center; gap: 6px; margin-bottom: 10px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.dots i.on { background: var(--gold); width: 26px; border-radius: 6px; }
.dots i.done { background: #22c55e; }
.talk { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.bubble { position: relative; flex: 1; background: #fff7ed; border: 2px solid #fed7aa; border-radius: 18px; padding: 10px 14px; font-size: 18px; font-weight: 800; text-align: left; }
.bubble.in { animation: bubble .35s; }
.stage { min-height: 200px; display: grid; place-items: center; }
.lesson-a { display: flex; justify-content: center; margin-top: 12px; }
.w-hero { animation: bob 2.4s ease-in-out infinite; }
.plates { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 10px; }
.plate { display: flex; gap: 2px; padding: 10px 12px; border-radius: 50%; background: radial-gradient(circle, #fff, #e2e8f0); border: 3px solid #cbd5e1; font-size: 26px; animation: pop .35s backwards; animation-delay: var(--d, 0ms); }
.expr { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; font-size: 20px; font-weight: 900; margin: 8px 0 12px; }
.expr .mul { flex-basis: 100%; font-size: 30px; color: #15803d; animation: pop .4s; }
.expr .pa { color: #0369a1; }
.expr .pb { color: #c2410c; }
.arr-wrap { display: grid; place-items: center; margin: 4px 0 10px; }
.arr-wrap.spin { animation: spin .5s; }
.grid { display: grid; grid-template-columns: repeat(var(--c), 1fr); gap: 4px; }
.cell { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; animation: pop .3s backwards; animation-delay: var(--d); }
.cell.a { background: #38bdf8; }
.cell.b { background: #fb923c; }
.cell.dim { opacity: .25; }
.grid.emo-cells .cell { background: none; font-size: 22px; }
.grid.small .cell { width: 16px; height: 16px; font-size: 12px; }
.ctrls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.w-jumps .line { width: 100%; max-width: 420px; margin: 0 auto; }
.hop { stroke-dasharray: 300; animation: draw .5s ease-out; }
.hands { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 8px; }
.hand { display: flex; flex-direction: column; align-items: center; font-size: 34px; animation: pop .35s; }
.hand b { font-size: 16px; }
.fingers { display: flex; justify-content: center; gap: 4px; margin: 8px 0; }
.finger { position: relative; width: 26px; height: 92px; border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.finger i { display: block; width: 22px; height: 70px; border-radius: 12px 12px 6px 6px; background: linear-gradient(#fcd9b8, #f3c29b); border: 2px solid #e8a77a; transition: height .25s, background .25s; }
.finger.down i { height: 24px; background: #fda4af; }
.finger.gap { margin-right: 14px; }
.finger small { font-size: 11px; font-weight: 900; }
.pattern { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; max-width: 360px; margin: 0 auto 12px; }
.pat { display: flex; justify-content: space-between; align-items: center; background: #f8fafc; border-radius: 12px; padding: 6px 12px; font-size: 18px; }
.pat b { font-size: 20px; }
.pat mark { background: #fde047; border-radius: 6px; padding: 0 3px; }
.pat small { display: block; font-size: 12px; color: #15803d; }
.pat .even { color: #15803d; }
.big-note { font-size: 20px !important; font-weight: 900; }
.q-big { font-size: clamp(40px, 13vw, 64px); font-weight: 900; line-height: 1.1; letter-spacing: 1px; }
.q-big small { display: block; font-size: 18px; color: #475569; letter-spacing: 0; }
.slot { display: inline-block; min-width: 1.4em; padding: 0 .15em; border-bottom: 5px solid #f97316; color: #ea580c; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.opts.four { grid-template-columns: 1fr 1fr; }
.opt { font-size: 28px; min-height: 64px; background: linear-gradient(135deg, #6366f1, #4338ca); box-shadow: 0 5px 0 #312e81; }
.opt.right { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 5px 0 #14532d; animation: pop .3s; }
.opt.wrong { background: #cbd5e1; box-shadow: 0 5px 0 #94a3b8; animation: shake .4s; }
.ask-fb { min-height: 28px; font-weight: 900; }
.hint { background: #fefce8; border: 2px dashed #facc15; border-radius: 18px; padding: 10px; margin: 10px 0; }
.hint-pic { display: grid; place-items: center; margin-bottom: 6px; }
.hint-t { font-size: 18px; font-weight: 900; margin: 0; color: #713f12; }

/* ---------------- savollar */
.quiz { background: #fff; border-radius: 26px; padding: 14px 14px 18px; box-shadow: 0 10px 30px rgba(30, 27, 75, .15); text-align: center; }
.qtop { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.qbar { flex: 1; height: 14px; background: #e2e8f0; border-radius: 999px; overflow: hidden; }
.qbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #22c55e, #84cc16); border-radius: 999px; transition: width .4s; }
.qmeta { display: flex; gap: 8px; font-weight: 900; }
.tmr.hot { color: var(--red); animation: pulse 1s infinite; }
.qcard { padding: 14px 0 6px; min-height: 110px; }
.qcard.in { animation: bubble .3s; }
.qfb { min-height: 32px; font-weight: 900; font-size: 18px; }
.qfb .good { color: var(--green); }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; margin: 6px auto 0; }
.key { font-size: 28px; min-height: 60px; background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 5px 0 #075985; }
.key.del { background: linear-gradient(135deg, #94a3b8, #64748b); box-shadow: 0 5px 0 #334155; }
.key.ok { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 5px 0 #14532d; }
.skip { margin-top: 12px; font-size: 16px; }
.tf { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tf .btn { min-height: 72px; font-size: 22px; }
.tf .yes { background: linear-gradient(135deg, #22c55e, #15803d); box-shadow: 0 5px 0 #14532d; }
.tf .no { background: linear-gradient(135deg, #f43f5e, #be123c); box-shadow: 0 5px 0 #881337; }

/* ---------------- o‘yinlar */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.gcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; border: 0; border-radius: 22px; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); text-align: center; }
.gcard:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, .2); }
.gi { font-size: 40px; }
.gcard b { font-size: 18px; }
.gcard small { font-size: 13px; opacity: .92; }
.game { background: #fff; border-radius: 26px; padding: 12px; box-shadow: 0 10px 30px rgba(30, 27, 75, .15); text-align: center; }
.g-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 8px; }
.g-q { font-size: clamp(28px, 9vw, 42px); font-weight: 900; }
.g-s { font-weight: 900; background: #f1f5f9; padding: 4px 12px; border-radius: 999px; }
.g-miss { flex-basis: 100%; color: #b45309; font-style: normal; font-weight: 900; }
.g-sky { position: relative; height: 56vh; min-height: 340px; overflow: hidden; border-radius: 20px; background: linear-gradient(#bae6fd, #e0f2fe); }
.balloon { position: absolute; bottom: -120px; width: 21%; aspect-ratio: .82; border: 0; cursor: pointer; border-radius: 50% 50% 46% 46%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7), transparent 22%), var(--c); color: #fff; font-size: clamp(22px, 7vw, 32px); font-weight: 900;
  animation: rise 7s linear forwards; box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .12); }
.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 50px; background: rgba(15, 23, 42, .35); }
.balloon.popped { animation: popout .35s forwards; }
.balloon.wobble { filter: grayscale(.7) opacity(.7); }
.pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 520px) { .pairs { grid-template-columns: repeat(4, 1fr); } }
.pcard { position: relative; aspect-ratio: 1; border: 0; border-radius: 16px; cursor: pointer; background: linear-gradient(135deg, #f97316, #c2410c); color: #fff; font-weight: 900; font-size: 22px; box-shadow: 0 4px 0 #7c2d12; }
.pcard .face { display: none; }
.pcard .back { font-size: 30px; }
.pcard.open, .pcard.done { background: #fff; color: #1e1b4b; box-shadow: inset 0 0 0 3px #fdba74; }
.pcard.open .face, .pcard.done .face { display: block; }
.pcard.open .back, .pcard.done .back { display: none; }
.pcard.done { background: #dcfce7; box-shadow: inset 0 0 0 3px #4ade80; animation: pop .3s; }
.face.fact { font-size: 20px; }
.track { display: grid; gap: 8px; margin-bottom: 10px; }
.lane { position: relative; height: 54px; border-radius: 16px; background: linear-gradient(90deg, #1e1b4b, #312e81); overflow: hidden; }
.lane.bot { background: linear-gradient(90deg, #334155, #475569); }
.lane .who { position: absolute; left: 8px; top: 4px; color: #fff; font-size: 12px; font-weight: 900; z-index: 2; }
.lane .rocket { position: absolute; left: 8px; top: 12px; font-size: 30px; transition: left .5s; transform: rotate(45deg); }
.lane .planet { position: absolute; right: 6px; top: 8px; font-size: 34px; }

/* ---------------- yakun */
.stars { display: flex; justify-content: center; gap: 6px; font-size: 54px; }
.star { filter: grayscale(1) opacity(.3); }
.star.on { filter: none; animation: starin .6s backwards; animation-delay: var(--d); }
.sticker-get { margin: 8px 0 12px; }
.big-emo { display: block; font-size: 84px; animation: starin .7s; }
.moved { font-size: 20px !important; font-weight: 900; color: #15803d; }
.teach { background: #ecfeff; border: 2px solid #67e8f9; border-radius: 18px; padding: 10px 12px; margin: 10px 0; }
.teach p { margin: 4px 0 0; }
.album { display: grid; gap: 10px; margin: 12px 0; text-align: left; }
.alb-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 16px; padding: 8px 12px; }
.alb-st { display: flex; gap: 6px; }
.alb { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: #f1f5f9; filter: grayscale(1) opacity(.5); }
.alb.got { background: #fef3c7; filter: none; }

/* ---------------- stikerlar, uchqun, konfetti */
.stk { position: fixed; z-index: 220; width: 110px; height: 110px; display: grid; place-items: center; pointer-events: none; transform: translate(-50%, -50%); animation: stkfly 1.4s cubic-bezier(.2, .9, .3, 1.2) forwards; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }
.stk.bad { animation: stkbad 1.4s ease-out forwards; }
.stk img, .stk .emo { width: 110px; height: 110px; display: grid; place-items: center; line-height: 1; }
.emo-i { display: inline-block; vertical-align: middle; object-fit: contain; }
.emo { display: inline-grid; place-items: center; line-height: 1; }
.spark { position: fixed; z-index: 219; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; animation: spk .8s ease-out forwards; }
.conf { position: fixed; inset: 0; z-index: 210; overflow: hidden; pointer-events: none; }
.conf i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 3px; animation: conf 2.8s ease-in forwards; }

/* ---------------- dasturlar */
.progs { margin: 18px 0; }
.pgrid { display: grid; gap: 10px; }
@media (min-width: 640px) { .pgrid:not(.one) { grid-template-columns: 1fr 1fr; } }
.pgrid.one { grid-template-columns: 1fr; }
.pcard2 { display: flex; align-items: center; gap: 12px; margin: 0; border-left: 6px solid var(--pc); text-align: left; position: relative; }
.pcard2 .pic { font-size: 32px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--pc) 15%, #fff); flex: none; }
.pcard2 small { display: block; color: var(--mut); font-size: 13px; }
.pcard2.pick { cursor: pointer; width: 100%; font: inherit; color: inherit; }
.pcard2.pick.on { box-shadow: 0 0 0 3px var(--pc); }
.pcard2.kidp { font-size: 17px; }
.tag2 { position: absolute; right: 10px; top: 8px; font-size: 11px; font-weight: 900; color: #fff; background: var(--pc); border-radius: 999px; padding: 2px 8px; }
.progbtn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0 0 12px; padding: 10px 14px; border: 2px solid var(--pc); border-radius: 14px;
  background: color-mix(in srgb, var(--pc) 10%, #fff); font-weight: 900; color: var(--tx); cursor: pointer; }
.progbtn small { color: var(--mut); font-weight: 800; }
.progbtn.wide { margin-bottom: 16px; }
.progbtn.kid { border-radius: 20px; font-size: 18px; background: rgba(255, 255, 255, .85); box-shadow: 0 4px 0 rgba(0, 0, 0, .08); }
.modal.kid .progm .pgrid { text-align: left; }
.skills { display: grid; gap: 8px; }
.skill { display: grid; grid-template-columns: 1fr 1.1fr auto; align-items: center; gap: 10px; font-size: 14px; }
.sbar { display: block; height: 12px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.sbar .kc { display: block; height: 100%; border-radius: 999px; aspect-ratio: auto; }
.skill small { color: var(--mut); min-width: 86px; text-align: right; }

/* ---------------- savollar: matnli masala, maxsus tugmalar */
.q-mid { font-size: clamp(30px, 9vw, 46px); }
.q-text { font-size: clamp(18px, 4.6vw, 22px); font-weight: 800; line-height: 1.45; text-align: left; background: #f8fafc; border-radius: 16px; padding: 12px 14px; }
.q-ans { margin-top: 8px; font-size: clamp(30px, 9vw, 44px); }
.keypad.ext { grid-template-columns: repeat(3, 1fr); }
.key.sym { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 5px 0 #92400e; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.wide .opt { font-size: 20px; }
.cell.off { opacity: .15; }

/* ---------------- yangi dars sahnalari */
.fbar { display: flex; gap: 3px; width: min(320px, 100%); height: 46px; margin: 6px auto; }
.fbar.small { height: 30px; width: min(240px, 100%); }
.fseg { flex: 1; border: 2px solid #f97316; border-radius: 8px; background: #fff7ed; padding: 0; }
button.fseg { cursor: pointer; }
.fseg.on { background: linear-gradient(#fb923c, #ea580c); }
.w-frac { display: grid; gap: 8px; }
.frow { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.flab { font-size: 24px; font-weight: 900; min-width: 56px; }
.tframe { display: grid; grid-template-columns: repeat(5, 54px); gap: 6px; justify-content: center; margin: 6px 0; }
.tcell { width: 54px; height: 54px; border-radius: 14px; border: 3px dashed #94a3b8; background: #fff; cursor: pointer; }
.tcell.a { border: 0; background: radial-gradient(circle, #38bdf8 55%, #e0f2fe 57%); }
.tcell.b { border: 0; background: radial-gradient(circle, #fb923c 55%, #ffedd5 57%); animation: pop .3s; }
.blocks { display: flex; gap: 16px; justify-content: center; align-items: flex-end; min-height: 120px; margin: 6px 0; }
.rods { display: flex; gap: 4px; }
.rod { width: 14px; height: 110px; border-radius: 4px; background: repeating-linear-gradient(#38bdf8 0 10px, #0284c7 10px 11px); animation: pop .3s backwards; animation-delay: var(--d); }
.units { display: grid; grid-template-columns: repeat(5, 16px); gap: 3px; }
.unit { width: 16px; height: 16px; border-radius: 3px; background: #fb923c; animation: pop .25s; }
.pile { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; font-size: 22px; min-height: 30px; margin-bottom: 8px; }
.plate .pcount { display: block; font-size: 15px; color: #475569; }
.places { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 380px; margin: 0 auto; }
.pcol { display: grid; gap: 4px; justify-items: center; background: #f8fafc; border-radius: 14px; padding: 8px 4px; border: 2px solid transparent; }
.pcol.ok { border-color: #22c55e; background: #f0fdf4; }
.pcol small { font-size: 11px; font-weight: 900; color: #475569; }
.pcol b { font-size: 30px; }
.colm { display: inline-block; text-align: right; font: 900 30px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; background: #f8fafc; border-radius: 16px; padding: 10px 18px; margin: 6px auto; letter-spacing: 4px; }
.rectw { display: inline-block; padding: 6px; border: 4px solid #0369a1; border-radius: 6px; }
.rectw.walk { animation: walk 1.2s ease-in-out 2; }
.mtext { font-size: 19px; font-weight: 800; text-align: left; background: #fff7ed; border: 2px solid #fed7aa; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; }
.msteps { display: grid; gap: 6px; text-align: left; margin-bottom: 10px; }
.mstep { background: #f1f5f9; border-radius: 12px; padding: 8px 12px; font-weight: 800; color: #94a3b8; }
.mstep.on { background: #ecfeff; color: #0f172a; animation: bubble .3s; }

/* ---------------- yangi o‘yinlar */
.rope { position: relative; height: 70px; margin: 8px 0 12px; display: flex; align-items: center; justify-content: space-between; font-size: 40px; }
.rline { position: absolute; left: 50px; right: 50px; top: 50%; height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, #a16207 0 8px, #ca8a04 8px 16px); }
.rflag { position: absolute; top: 2px; transform: translateX(-50%); transition: left .4s cubic-bezier(.3, 1.4, .5, 1); font-size: 30px; }
.rope.lean .rkid { transform: rotate(-12deg); }
.ladder { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin: 6px 0 10px; flex-wrap: wrap; }
.rung { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; background: #f1f5f9; color: #64748b; }
.rung.safe { box-shadow: inset 0 0 0 2px #f59e0b; }
.rung.done { background: #fde68a; color: #92400e; }
.rung.on { background: #f59e0b; color: #fff; animation: pulse 1.2s infinite; }
.xo { display: grid; grid-template-columns: repeat(3, 72px); gap: 6px; justify-content: center; margin: 6px 0 10px; }
.xc { width: 72px; height: 72px; border-radius: 16px; border: 0; background: #f1f5f9; font-size: 38px; cursor: pointer; box-shadow: 0 4px 0 #cbd5e1; }
.xc.x { background: #fce7f3; } .xc.o { background: #e0e7ff; }

/* ---------------- jonli dizayn: bola dunyosi */
body.kid::before, body.kid::after { content: ""; position: fixed; pointer-events: none; z-index: 0; }
body.kid::before { top: 70px; left: -220px; width: 200px; height: 60px; border-radius: 60px; background: rgba(255, 255, 255, .85); opacity: .55;
  box-shadow: 60px -24px 0 8px rgba(255, 255, 255, .85), 130px 4px 0 -4px rgba(255, 255, 255, .8), 520px 120px 0 -6px rgba(255, 255, 255, .7), 600px 100px 0 4px rgba(255, 255, 255, .7);
  animation: clouds 60s linear infinite; }
body.kid::after { top: 18px; right: 20px; width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle, #fde047 50%, rgba(253, 224, 71, .25) 52%, transparent 70%); animation: sun 6s ease-in-out infinite; }
body.kid > #app { position: relative; z-index: 1; }
.kwrap > *, .wrap > * { animation: enter .45s cubic-bezier(.2, .9, .3, 1) backwards; }
.kwrap > *:nth-child(2), .wrap > *:nth-child(2) { animation-delay: .06s; }
.kwrap > *:nth-child(3), .wrap > *:nth-child(3) { animation-delay: .12s; }
.kwrap > *:nth-child(4), .wrap > *:nth-child(4) { animation-delay: .18s; }
.node.cur .pin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 4px solid var(--c); opacity: .6; animation: ring 1.8s ease-out infinite; }
.node.done .pin { animation: none; }
.sage-sm { animation: nod 3s ease-in-out infinite; transform-origin: 50% 100%; }
.kidbtn.go.big { position: relative; overflow: hidden; }
.kidbtn.go.big::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shine 2.8s ease-in-out infinite; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes clouds { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 900px)); } }
@keyframes sun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes ring { from { transform: scale(.85); opacity: .7; } to { transform: scale(1.35); opacity: 0; } }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes walk { 0%, 100% { box-shadow: 0 0 0 0 #f59e0b; } 50% { box-shadow: 0 0 0 6px #f59e0b; } }

/* ---------------- sertifikat */
body.cert { background: #e2e8f0; }
.cert-wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.cert { background: #fffbeb; border-radius: 10px; padding: 14px; box-shadow: var(--sh); }
.cert-b { border: 6px double #b45309; border-radius: 6px; padding: clamp(18px, 4vw, 44px); text-align: center; background:
  radial-gradient(circle at 0 0, #fde68a 0, transparent 120px), radial-gradient(circle at 100% 100%, #99f6e4 0, transparent 140px), #fffbeb; }
.cert-k { letter-spacing: 3px; font-weight: 900; color: #0f766e; font-size: 13px; }
.cert h1 { font-size: clamp(34px, 8vw, 64px); letter-spacing: 6px; color: #92400e; margin: 4px 0; }
.cert-s { color: #78350f; }
.cert-n { font-size: clamp(30px, 7vw, 52px); color: #1e1b4b; border-bottom: 2px solid #d6d3d1; display: inline-block; padding: 0 20px 6px; }
.cert-st { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.cert-st .stat { background: rgba(255, 255, 255, .7); }
.cert-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; }
.cert-f > div:last-child { text-align: right; }
.cert-f small { display: block; color: #78350f; }
.cert-a { display: flex; gap: 10px; justify-content: center; margin: 16px 0; }
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body.cert { background: #fff; }
  .noprint, .toast, .conf { display: none !important; }
  .cert { box-shadow: none; padding: 0; }
}

/* ---------------- animatsiyalar */
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.18); } 60% { transform: scale(.96); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes squish { 0% { transform: scale(1); } 40% { transform: scale(.92, 1.06); } 100% { transform: scale(1); } }
@keyframes bubble { from { transform: translateY(8px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes spin { from { transform: rotate(-90deg) scale(.8); } to { transform: none; } }
@keyframes draw { from { stroke-dashoffset: 300; } to { stroke-dashoffset: 0; } }
@keyframes rise { from { transform: translateY(0); } to { transform: translateY(calc(-56vh - 260px)); } }
@keyframes popout { to { transform: scale(1.6); opacity: 0; } }
@keyframes starin { 0% { transform: scale(0) rotate(-40deg); } 70% { transform: scale(1.3) rotate(8deg); } 100% { transform: scale(1); } }
@keyframes stkfly { 0% { transform: translate(-50%, -50%) scale(.2); } 25% { transform: translate(-50%, -110%) scale(1.3) rotate(var(--r)); } 70% { opacity: 1; } 100% { transform: translate(-50%, -220%) scale(1) rotate(var(--r)); opacity: 0; } }
@keyframes stkbad { 0% { transform: translate(-50%, -50%) scale(.3); } 20% { transform: translate(-50%, -90%) scale(1.1); } 30%, 50% { transform: translate(-60%, -90%) rotate(-10deg); } 40%, 60% { transform: translate(-40%, -90%) rotate(10deg); } 100% { transform: translate(-50%, -60%) scale(.9); opacity: 0; } }
@keyframes spk { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
@keyframes conf { to { transform: translate(var(--dx), 105vh) rotate(var(--rot)); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .balloon { animation-duration: 9s !important; }
}

/* ============================================================ Buxoro Ilm Markazi mavzusi
   Asosiy platforma bilan bir xil: to‘q ko‘k fon (#0a0f2c), kartalar #121a45, urg‘u #6d7cff, orqada logotip suv belgisi.
   Bola qismi — tungi Buxoro osmoni va oltin siluet; bola kartalari oq qoladi (o‘qish oson bo‘lsin). */
:root {
  color-scheme: dark;
  --bg: #0a0f2c; --card: #121a45; --tx: #eef1ff; --mut: #a9b3e3; --bd: #27336f; --soft: #1a2458;
  --ac: #6d7cff; --ac2: #a5b4fc; --acL: rgba(109, 124, 255, .18); --gold: #facc15; --red: #fb7185; --green: #34d399;
  --sh: 0 10px 30px rgba(0, 0, 0, .35);
}
body { background: var(--bg); }
body:not(.kid):not(.cert)::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-40 0 730 800'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23a5b4fc'/%3E%3C/linearGradient%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23fde68a'/%3E%3Cstop offset='1' stop-color='%23f59e0b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg opacity='0.04'%3E%3Cg fill='none' stroke='url%28%23w%29' stroke-width='24' stroke-linejoin='miter' stroke-linecap='square'%3E%3Cpath d='M135 215V150H250L325 72L400 150H515V215'/%3E%3Cpath d='M272 262Q215 222 160 222V440Q250 440 318 512'/%3E%3Cpath d='M378 262Q435 222 490 222V440Q400 440 332 512'/%3E%3Cpath d='M112 262V478Q235 476 318 540'/%3E%3Cpath d='M538 262V478Q415 476 332 540'/%3E%3Cpath d='M66 300V515Q215 512 318 566'/%3E%3Cpath d='M584 300V515Q435 512 332 566'/%3E%3Cpath d='M290 198A35 35 0 0 1 360 198'/%3E%3C/g%3E%3Cpath d='M300 222H350L408 470L325 580L242 470Z' fill='url%28%23w%29'/%3E%3Ctext x='325' y='690' text-anchor='middle' font-family='Georgia%2Cserif' font-size='70' font-weight='700' fill='url%28%23w%29'%3EBuxoro Ilm Markazi%3C/text%3E%3Ctext x='325' y='770' text-anchor='middle' font-family='Arial%2Csans-serif' font-size='44' font-weight='700' letter-spacing='3' fill='url%28%23g%29'%3EQahramonov Jasurbek%3C/text%3E%3C/g%3E%3C/svg%3E") center 60%/min(70vmin, 600px) no-repeat,
  radial-gradient(60% 45% at 12% 0%, rgba(79, 70, 229, .55), transparent 70%), radial-gradient(45% 38% at 95% 22%, rgba(139, 92, 246, .30), transparent 70%),
  radial-gradient(60% 50% at 50% 100%, rgba(37, 99, 235, .30), transparent 70%), linear-gradient(180deg, #0a0f2c, #111a4d 55%, #0a0f2c); }
a { color: var(--ac2); }
.card { color: var(--tx); }
.btn { background: linear-gradient(135deg, #6d7cff, #5562f0); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.btn.ghost { background: transparent; color: var(--tx); border-color: var(--bd); }
.kidbtn.ghost { background: #fff; color: #1e1b4b; }
.note { background: rgba(56, 189, 248, .12); color: #bae6fd; border: 1px solid rgba(56, 189, 248, .25); }
.note.warn { background: rgba(251, 191, 36, .12); color: #fde68a; border-color: rgba(251, 191, 36, .3); }
.inp { background: var(--soft); border-color: var(--bd); color: var(--tx); }
.inp::placeholder { color: #7b86c2; }
.top { background: rgba(18, 26, 69, .88); border-bottom-color: var(--bd); }
.brand { color: var(--tx); gap: 10px; min-width: 0; }
.brand .logo { width: 38px; height: 38px; flex: none; }
.brand .bt { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand .bt b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .bt small { font-size: 12.5px; color: var(--mut); font-weight: 700; white-space: nowrap; }
.back { background: var(--soft); color: var(--tx); }
.lead, .tip p { color: #c7cef3; }
.eyebrow { color: #c7d2fe; background: var(--acL); }
.hero h1 span { background: linear-gradient(120deg, #a5b4fc, #facc15); -webkit-background-clip: text; background-clip: text; }
.hero-art { background: radial-gradient(circle at 50% 60%, rgba(250, 204, 21, .18), transparent 65%); }
.sub.ok { background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .35); }
.sub.off { background: rgba(251, 146, 60, .1); border-color: rgba(251, 146, 60, .35); }
.sub.wait { background: rgba(96, 165, 250, .1); border-color: rgba(96, 165, 250, .35); }
.stat, .wd, .tg-list li { background: var(--soft); }
.add-kid { background: transparent; border-color: var(--bd); color: var(--tx); }
.kc.lx { background: var(--soft); color: #6b76b3; }
.chip { background: var(--soft); color: var(--tx); }
.chipb { background: var(--soft); color: var(--tx); border-color: var(--bd); }
.dot { border-color: var(--card); }
.modal-card { background: var(--card); color: var(--tx); border: 1px solid var(--bd); }
.modal-x { background: var(--soft); color: var(--tx); }
.pinbox .keypad .key { background: var(--soft); color: var(--tx); box-shadow: 0 3px 0 #0b1236; }
.pcard2 .pic { background: color-mix(in srgb, var(--pc) 22%, var(--card)); }
.progbtn { background: color-mix(in srgb, var(--pc) 18%, var(--card)); color: var(--tx); }
.sbar { background: var(--soft); }
.cert-link { color: #422006; }
.cert-link small { color: #713f12; }
.foot, .foot a { color: var(--mut); }
.toast { background: #eef1ff; color: #0a0f2c; }

/* bola dunyosi: tungi Buxoro osmoni, yulduzlar va oltin siluet */
body.kid { color: #eef1ff; background:
  radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 72% 9%, #fff 50%, transparent 51%),
  radial-gradient(2px 2px at 38% 31%, #fde68a 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 36%, #fff 50%, transparent 51%),
  radial-gradient(1.5px 1.5px at 22% 52%, #c7d2fe 50%, transparent 51%), radial-gradient(2px 2px at 60% 46%, #fff 50%, transparent 51%),
  radial-gradient(60% 45% at 15% 0%, rgba(79, 70, 229, .6), transparent 70%), radial-gradient(45% 40% at 95% 25%, rgba(139, 92, 246, .35), transparent 70%),
  linear-gradient(180deg, #0a0f2c 0%, #16206b 60%, #2a1d63 100%) fixed; }
body.kid::before { inset: auto 0 0 0; top: auto; left: 0; width: 100%; height: 170px; border-radius: 0; opacity: .5; box-shadow: none; animation: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 170' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='none' stroke='%23facc15' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='M0 170V120H70V100Q110 50 150 100V120H230V95H260V70Q300 20 340 70V95H370V120H430V60H445V40H455V60H470V120H520V170'/%3E%3Cpath d='M580 170L590 30H610L620 170M584 70H616M586 110H614M588 30V18H612V30M596 18Q600 6 604 18'/%3E%3Cpath d='M680 170V110H740V85Q790 25 840 85V110H900V170M760 110V80H820V110'/%3E%3Cpath d='M940 170V130H990V100Q1030 60 1070 100V130H1130V170M1150 170V75H1160V55H1170V75H1180V170'/%3E%3C/g%3E%3C/svg%3E") center bottom/1200px 170px repeat-x; }
body.kid::after { top: 22px; right: 24px; width: 70px; height: 70px; border-radius: 50%; background: transparent; box-shadow: -14px 10px 0 0 #fde68a; filter: drop-shadow(0 0 18px rgba(250, 204, 21, .55)); animation: sun 6s ease-in-out infinite; }
.ktop .pill { white-space: nowrap; }
@media (max-width: 480px) {
  .ktop { gap: 6px; padding: 6px 8px; }
  .ktop .kme b { display: none; }
  .ktop .pill { padding: 4px 8px; font-size: 14px; }
  .ktop .ring { width: 38px; height: 38px; } .ktop .ring b { width: 30px; height: 30px; font-size: 11px; }
  .ktop .kidbtn.sm { min-width: 38px; min-height: 38px; padding: 4px; font-size: 18px; }
}
.ktop { background: rgba(18, 26, 69, .72); color: #eef1ff; border-bottom: 1px solid rgba(165, 180, 252, .2); }
.pill { color: #1e1b4b; }
.kcard, .lesson, .quiz, .game, .alb-row, .modal.kid .modal-card, .nlab, .sp.on { color: #1e1b4b; }
.kcard .card, .modal.kid .card { color: var(--tx); }
.map { background: rgba(18, 26, 69, .55); border: 1px solid rgba(165, 180, 252, .18); }
.sp { background: rgba(255, 255, 255, .14); color: #eef1ff; }
.progbtn.kid { background: rgba(255, 255, 255, .9); color: #1e1b4b; }
.qref { margin-top: 10px; font-size: 13px; font-weight: 800; color: #6366f1; opacity: .85; }
/* BIM o‘yinlar markazi (oyinlar.html) — ilova ichida */
.bimcard { grid-column: 1 / -1; margin-top: 12px; width: 100%; }
.bimcard img.gi { width: 54px; height: 54px; border-radius: 14px; }
.bimw { display: grid; gap: 12px; }
.bimf { width: 100%; height: min(82vh, 900px); border: 0; border-radius: 22px; background: #0a0f2c; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.kwrap:has(.bimw) { max-width: 1100px; }

/* ============================================================ qiziqarli qatlam: karvon yo‘li, javob ko‘rinishlari, qo‘shiq, maktub */
.quest { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .96), #fef9c3); color: #1e1b4b; border-radius: 22px; padding: 8px 14px 12px; margin-bottom: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.q-top { display: flex; align-items: center; gap: 10px; font-weight: 900; }
.q-top small { margin-right: auto; color: #6b5d2e; font-weight: 800; }
.q-coin { background: #fde68a; border-radius: 999px; padding: 2px 10px; }
.q-coin.bump { animation: pop .4s; }
.q-combo { color: #ea580c; font-weight: 900; animation: pulse 1s infinite; }
.q-track { position: relative; height: 54px; margin-top: 6px; border-radius: 999px; background: repeating-linear-gradient(90deg, #fcd34d 0 14px, #fbbf24 14px 28px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .1); }
.q-track i { position: absolute; top: 50%; transform: translate(-50%, -50%); font-style: normal; font-size: 16px; opacity: .45; }
.q-run { position: absolute; left: 0; top: 50%; font-size: 38px; transform: translate(-30%, -60%); transition: left .55s cubic-bezier(.3, 1.6, .5, 1); z-index: 2; }
.q-run.hop { animation: hop .5s; }
.q-run.wob { animation: shake .4s; }
.q-goal { position: absolute; right: -4px; top: 50%; transform: translateY(-58%); font-size: 40px; animation: bob 2s infinite; }
.q-ban { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); white-space: nowrap; background: linear-gradient(135deg, #f97316, #db2777); color: #fff; font-weight: 900; padding: 6px 14px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); animation: bubble .3s, fadeup 1.5s forwards; z-index: 3; }
@keyframes hop { 0% { transform: translate(-30%, -60%); } 40% { transform: translate(-30%, -120%) rotate(-10deg); } 100% { transform: translate(-30%, -60%); } }
@keyframes fadeup { 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -18px); } }

/* javob tugmalari: shar, olma, yulduz, olmos */
.quiz[data-skin] .opts .opt { color: #fff; border: 0; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); font-size: 24px; }
.quiz[data-skin] .opts .opt:nth-child(4n+1) { --o: #ef4444; } .quiz[data-skin] .opts .opt:nth-child(4n+2) { --o: #3b82f6; }
.quiz[data-skin] .opts .opt:nth-child(4n+3) { --o: #22c55e; } .quiz[data-skin] .opts .opt:nth-child(4n+4) { --o: #a855f7; }
.quiz[data-skin=bal] .opts .opt { position: relative; border-radius: 50% 50% 46% 46% / 56% 56% 44% 44%; min-height: 84px; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .7), transparent 24%), var(--o); box-shadow: 0 6px 0 rgba(0, 0, 0, .18); animation: floaty 2.4s ease-in-out infinite; }
.quiz[data-skin=bal] .opts .opt:nth-child(2) { animation-delay: .4s; } .quiz[data-skin=bal] .opts .opt:nth-child(3) { animation-delay: .8s; } .quiz[data-skin=bal] .opts .opt:nth-child(4) { animation-delay: 1.2s; }
.quiz[data-skin=bal] .opts .opt::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 2px; height: 16px; background: #94a3b8; }
.quiz[data-skin=apl] .opts .opt { border-radius: 46% 46% 50% 50% / 52% 52% 48% 48%; min-height: 80px; position: relative; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .55), transparent 26%), var(--o); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.quiz[data-skin=apl] .opts .opt::before { content: "🍃"; position: absolute; top: -12px; left: 52%; font-size: 20px; text-shadow: none; }
.quiz[data-skin=str] .opts .opt { border-radius: 22px; background: linear-gradient(135deg, var(--o), #fbbf24); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.quiz[data-skin=str] .opts .opt::before { content: "⭐ "; text-shadow: none; }
.quiz[data-skin=gem] .opts .opt { border-radius: 14px; background: linear-gradient(135deg, var(--o) 0%, #fff8 50%, var(--o) 100%); background-size: 200% 200%; animation: gem 3s linear infinite; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.quiz[data-skin=gem] .opts .opt::before { content: "💎 "; text-shadow: none; }
.quiz[data-skin] .opts .opt.right { --o: #16a34a; box-shadow: 0 0 0 6px #bbf7d0; animation: pop .4s; }
.quiz[data-skin] .opts .opt.wrong { --o: #94a3b8; opacity: .55; animation: shake .35s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes gem { to { background-position: 200% 200%; } }

/* qo‘shiq */
.song { position: relative; overflow: hidden; border: 4px solid var(--sc); }
.s-head { display: flex; align-items: center; gap: 14px; text-align: left; }
.s-head h2 { margin: 2px 0; }
.dancer { font-size: 64px; line-height: 1; transition: transform .12s; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .15)); }
.song.on .dancer { animation: dance 1.2s ease-in-out infinite; }
.dancer.up { transform: translateY(-10px) scale(1.08); }
@keyframes dance { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }
.s-count { min-height: 1.6em; font-size: 22px; font-weight: 900; color: var(--sc); }
.lyr { max-height: 300px; overflow: hidden auto; text-align: left; display: grid; gap: 6px; padding: 6px; border-radius: 18px; background: #f8fafc; scroll-behavior: smooth; }
.ln { padding: 8px 12px; border-radius: 14px; font-size: 18px; font-weight: 800; color: #64748b; transition: all .25s; }
.ln small { display: block; color: #0d9488; font-size: 14px; }
.ln.ch { background: #fdf4ff; }
.ln.past { opacity: .5; }
.ln.on { color: #1e1b4b; background: #fef08a; transform: scale(1.02); transform-origin: left center; box-shadow: 0 4px 0 rgba(0, 0, 0, .08); font-size: 21px; }
.ln .w { transition: color .1s; }
.ln.on .w.lit { color: #db2777; text-shadow: 0 0 1px #db2777; }
.clap { background: linear-gradient(135deg, #f59e0b, #ea580c); font-size: 22px; min-width: 170px; }
.clap.ok { animation: pop .3s; box-shadow: 0 0 0 6px #fde047; }
.clap.miss { animation: shake .3s; }
.s-score { font-size: 22px; }
.snote { position: absolute; bottom: 0; font-size: 28px; pointer-events: none; animation: rise2 2.4s ease-out forwards; }
@keyframes rise2 { to { transform: translateY(-340px) rotate(25deg); opacity: 0; } }
.songs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.sgcard { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-radius: 20px; text-decoration: none; color: #fff; background: linear-gradient(145deg, var(--sc), #1e1b4b); box-shadow: 0 5px 0 rgba(0, 0, 0, .25); animation: pop .4s backwards; animation-delay: var(--d); }
.sgcard .si { font-size: 40px; }
.sgcard small { color: #fde68a; font-weight: 900; }

/* maktub, topishmoq, manzil, sandiq */
.letter { background: linear-gradient(180deg, #fffbeb, #fef3c7); border: 3px dashed #d97706; position: relative; }
.lt-seal { position: absolute; right: 14px; top: 10px; font-size: 34px; animation: bob 2s infinite; }
.lt-msg { min-height: 5.5em; font-size: 18px; text-align: left; background: #fff; border-radius: 16px; padding: 12px 14px; }
.lt-sp { display: flex; align-items: center; gap: 12px; text-align: left; background: linear-gradient(135deg, #ede9fe, #fce7f3); border-radius: 18px; padding: 10px 14px; margin: 10px 0; }
.lt-sp .huge { font-size: 48px; margin: 0; animation: beat 1.4s infinite; }
.lt-sp p { margin: 2px 0 0; font-size: 16px !important; }
.rid { margin: 10px 0; }
.rid-q { font-size: 20px !important; font-weight: 900; background: #ecfeff; border-radius: 16px; padding: 12px; }
.arrive .arr-sc { position: relative; height: 90px; font-size: 60px; }
.arrive .arr-r { position: absolute; left: 10%; animation: arrive 1.2s ease-out forwards; }
.arrive .arr-g { position: absolute; right: 12%; animation: bob 2s infinite; }
@keyframes arrive { to { left: 52%; } }
.arr-c { font-size: 24px !important; }
.coins-end { font-size: 20px; background: #fef3c7; border-radius: 999px; display: inline-block; padding: 4px 16px; }
.chest { display: grid; justify-items: center; gap: 2px; margin: 8px 0; }
.chest .ch-box { font-size: 52px; animation: shake .5s 3; }
.chest .ch-in { font-size: 60px; animation: starin .8s 1.4s backwards; }
/* ============================================================ qahramon, vohalar, boss, poyga, reyting, yordamchi */
.hero-fig { position: relative; display: inline-grid; place-items: center; flex: none; }
.hero-fig > .svg, .hero-fig > svg { position: relative; z-index: 1; }
.hero-fig > span { position: absolute; line-height: 1; z-index: 2; pointer-events: none; }
.hf-back { z-index: 0 !important; left: 50%; top: 40%; transform: translate(-50%, -50%); opacity: .9; }
.hf-head { left: 50%; top: -14%; transform: translateX(-50%) rotate(-6deg); }
.hf-face { left: 50%; top: 30%; transform: translateX(-50%); }
.hf-hand { right: -14%; bottom: 2%; transform: rotate(18deg); }
.hf-pet { left: -18%; bottom: -4%; }
.hf-cls { right: -8%; top: -6%; background: #fff; border-radius: 50%; padding: 2px; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.hero-big { display: grid; place-items: center; padding: 18px 0 8px; }
.hero-big .hero-fig { animation: breathe 3s ease-in-out infinite; }
.hero-big.sm { padding: 12px 0 4px; }
.hcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 12px 0; }
.hc { display: grid; justify-items: center; gap: 4px; padding: 14px 10px; border: 3px solid transparent; border-radius: 20px; background: linear-gradient(160deg, #fff, color-mix(in srgb, var(--hc) 18%, #fff)); color: #1e1b4b; cursor: pointer; font: inherit; box-shadow: 0 5px 0 color-mix(in srgb, var(--hc) 40%, #cbd5e1); transition: transform .15s; }
.hc.on { border-color: var(--hc); transform: translateY(-4px) scale(1.04); box-shadow: 0 0 0 5px color-mix(in srgb, var(--hc) 30%, transparent); }
.hc-ic { font-size: 46px; }
.hc b { font-size: 16px; } .hc small { color: #64748b; font-weight: 800; font-size: 12.5px; }
.hero-make { position: relative; overflow: hidden; }
.coin-rain i { position: absolute; top: -40px; font-size: 30px; font-style: normal; animation: conf 2.6s linear forwards; --dx: 0px; --rot: 360deg; }
.gift { display: flex; align-items: center; gap: 12px; text-align: left; background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: 18px; padding: 10px 14px; margin: 10px 0; }
.gift-b { font-size: 46px; animation: shake .5s 3; }
.gift p { margin: 2px 0 0; font-size: 15px !important; }
.xp { position: relative; height: 26px; border-radius: 999px; background: #e0e7ff; overflow: hidden; margin: 10px 0; }
.xp i { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #22d3ee); border-radius: 999px; transition: width .8s; }
.xp small { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12.5px; font-weight: 900; color: #1e1b4b; white-space: nowrap; overflow: hidden; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0; }
.hero-stats span { background: #f1f5f9; border-radius: 999px; padding: 4px 12px; font-weight: 900; }
.shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; margin-bottom: 12px; }
.si { display: grid; justify-items: center; gap: 2px; padding: 10px 6px; border: 2px solid #e2e8f0; border-radius: 16px; background: #fff; color: #1e1b4b; cursor: pointer; font: inherit; }
.si-ic { font-size: 36px; }
.si b { font-size: 12.5px; line-height: 1.2; } .si small { font-size: 12px; font-weight: 900; color: #b45309; }
.si.own small { color: #15803d; } .si.on { border-color: #22c55e; background: #f0fdf4; box-shadow: 0 0 0 3px #bbf7d0; }
.si:disabled { opacity: .45; cursor: default; }
.shop-msg { font-weight: 900; color: #15803d; animation: pop .4s; }
.kme { text-decoration: none; color: inherit; }
.kme-t { display: grid; line-height: 1.15; min-width: 0; }
.kme-t small { font-size: 12px; font-weight: 800; opacity: .85; white-space: nowrap; }
@media (max-width: 480px) { .ktop .kme-t { display: none; } }
.lvlup { display: flex; align-items: center; gap: 12px; justify-content: center; margin: 8px 0; padding: 10px 16px; border-radius: 18px; background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; animation: pop .6s; }
.lvlup .lv-ic { font-size: 46px; animation: beat 1.2s infinite; }
.lvlup p { margin: 0; }
.xp-end { background: #e0e7ff; margin-left: 6px; }
.cert-v { font-weight: 900; color: #7c3aed; letter-spacing: .5px; }

/* bola markazi va vohalar */
.hub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; }
.hub-t { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 18px; text-decoration: none; color: #1e1b4b; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 0 rgba(0, 0, 0, .2); animation: pop .4s backwards; animation-delay: var(--d); }
.hub-t span { font-size: 30px; line-height: 1.1; }
.hub-t small { font-weight: 900; font-size: 12px; text-align: center; line-height: 1.15; }
.world { background: rgba(18, 26, 69, .55); border: 1px solid rgba(165, 180, 252, .18); border-radius: 22px; padding: 10px; margin-bottom: 14px; }
.vohas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.voha { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 6px 10px; border: 0; border-radius: 18px; cursor: pointer; font: inherit; color: #fff; background: linear-gradient(160deg, var(--vc), #1e1b4b); opacity: .75; }
.voha.cur { opacity: 1; box-shadow: 0 0 0 4px #fde047, 0 8px 18px rgba(0, 0, 0, .35); }
.v-ic { font-size: 34px; } .voha b { font-size: 13.5px; line-height: 1.15; text-align: center; } .voha small { font-size: 11.5px; opacity: .9; font-weight: 800; }
.v-pr { background: rgba(0, 0, 0, .25); border-radius: 999px; padding: 1px 8px; }
.v-me { position: absolute; top: -12px; right: -6px; font-size: 26px; animation: bob 1.6s infinite; }

/* yo‘l rejimlari: qal’a pillapoyasi, cho‘l sandiqlari, minora */
.q-stairs, .q-tower { height: 116px; border-radius: 18px; background: linear-gradient(180deg, #bae6fd, #fef3c7); }
.q-tower { background: linear-gradient(180deg, #312e81, #7c3aed); }
.q-stairs i, .q-tower i { top: auto; bottom: 0; transform: none; opacity: 1; left: calc(var(--i) / var(--n) * 86% + 2%); width: calc(86% / var(--n) - 2px); height: calc((var(--i) + 1) / var(--n) * 72%); display: flex; justify-content: center; padding-top: 3px;
  background: linear-gradient(180deg, #d6d3d1, #a8a29e); border-radius: 6px 6px 0 0; font-size: 12px; font-weight: 900; color: #44403c; }
.q-tower i { background: linear-gradient(180deg, #a5b4fc, #6366f1); color: #fff; }
.q-stairs i.open { background: linear-gradient(180deg, #fde047, #f59e0b); color: #78350f; animation: pop .4s; }
.q-tower i.open { background: linear-gradient(180deg, #fde047, #f59e0b); animation: pop .4s; }
.q-stairs .q-run, .q-tower .q-run, .q-chest .q-run { top: auto; transform: none; transition: left .5s cubic-bezier(.3, 1.6, .5, 1), bottom .5s cubic-bezier(.3, 1.6, .5, 1); }
.q-stairs .q-run, .q-tower .q-run { left: calc(var(--p, 0) * 86% - 4px); bottom: calc(var(--p, 0) * 72% + 2px); font-size: 32px; }
.q-stairs .q-goal, .q-tower .q-goal { right: 4px; top: 4px; transform: none; }
.q-chest { display: flex; align-items: flex-end; justify-content: space-around; height: 76px; padding: 0 44px 6px 4px; background: linear-gradient(180deg, #fde68a, #f59e0b); }
.q-chest i { position: static; transform: none; opacity: .9; font-size: 22px; }
.q-chest i.open { animation: pop .45s; filter: drop-shadow(0 0 6px #fde047); }
.q-chest .q-run { left: calc(var(--p, 0) * 84%); bottom: 34px; font-size: 30px; }
.q-chest .q-goal { right: 6px; top: 50%; }
.q-stairs .q-run.hop, .q-tower .q-run.hop, .q-chest .q-run.hop { animation: hop3 .5s; }
@keyframes hop3 { 40% { translate: 0 -22px; } }

/* boss jangi */
.boss-intro, .boss-end { border: 4px solid var(--vc); }
.b-big { font-size: 96px; line-height: 1.1; animation: bossy 1.6s ease-in-out infinite; }
.b-big.boom { animation: pop .6s; }
@keyframes bossy { 0%, 100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.08) rotate(4deg); } }
.arena { background: linear-gradient(135deg, #1e1b4b, #4c1d95); color: #fff; border-radius: 22px; padding: 10px 14px; margin-bottom: 12px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.b-row { display: flex; align-items: center; justify-content: space-between; font-size: 48px; }
.b-vs { font-size: 28px; animation: pulse 1s infinite; }
.b-boss { display: inline-block; }
.b-boss.hit { animation: bhit .5s; } .b-boss.heal { animation: bheal .8s; }
@keyframes bhit { 30% { transform: translateX(14px) rotate(14deg) scale(.85); filter: brightness(2); } }
@keyframes bheal { 50% { transform: scale(1.25); filter: drop-shadow(0 0 14px #22c55e); } }
.b-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.b-hp { display: flex; gap: 4px; }
.b-hp i { width: 34px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .2); }
.b-hp i.on { background: linear-gradient(90deg, #ef4444, #f97316); }
.b-lives { font-size: 16px; letter-spacing: 1px; }
.b-msg { margin: 6px 0 0; font-weight: 900; color: #fde68a; min-height: 1.3em; }
.arena ~ .quiz .qtop { display: none; }

/* poyga va reyting */
.race .huge { margin-bottom: 0; }
.b-tabs { justify-content: center; margin: 8px 0; }
.kcard .chipb { background: #eef2ff; color: #1e1b4b; border-color: #c7d2fe; }
.kcard .chipb.on { background: #6366f1; color: #fff; border-color: #6366f1; }
.b-list { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; text-align: left; }
.b-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 16px; background: #f8fafc; }
.b-list li.top { background: linear-gradient(90deg, #fef9c3, #fff); }
.b-list li.me { box-shadow: 0 0 0 3px #6366f1; background: #eef2ff; }
.b-rk { width: 34px; text-align: center; font-weight: 900; font-size: 20px; }
.b-nm { display: grid; flex: 1; min-width: 0; line-height: 1.2; } .b-nm small { color: #64748b; font-weight: 800; }
.b-pts { white-space: nowrap; }
.b-note { background: #fef3c7; border-radius: 14px; padding: 8px 12px; font-size: 15px !important; }
.b-me { background: linear-gradient(135deg, #6366f1, #a855f7); color: #fff; border-radius: 18px; padding: 10px 14px; margin: 8px 0 12px; }
.b-me p { margin: 4px 0 0; font-size: 15px !important; }

/* sehrli yordamchi */
.mentor { display: flex; align-items: flex-start; gap: 10px; text-align: left; margin-top: 8px; animation: bubble .3s; }
.m-bird { font-size: 44px; line-height: 1; animation: bob 1.8s infinite; }
.m-bub { position: relative; flex: 1; background: #ecfeff; border: 2px solid #67e8f9; border-radius: 18px; padding: 10px 12px; color: #164e63; }
.m-bub > b { display: block; margin-bottom: 4px; }
.m-steps { margin: 4px 0; padding-left: 20px; display: grid; gap: 4px; font-weight: 800; }
.m-steps li { animation: bubble .3s backwards; animation-delay: var(--d); }
.m-next { margin-top: 4px; background: linear-gradient(135deg, #06b6d4, #0e7490); }

/* ota-onaga: bugungi va jami mehnat */
.kc-today { display: grid; gap: 4px; margin: 0 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--soft); font-size: 14px; color: var(--mut); }
.kc-today b { color: var(--tx); }
/* ko‘z mashqi: yulduzcha aylanadi, bola ko‘zi bilan kuzatadi */
.eye-ring { position: relative; width: 200px; height: 200px; margin: 10px auto; border-radius: 50%; border: 3px dashed #c7d2fe; }
.eye-dot { position: absolute; left: 50%; top: 50%; font-size: 36px; margin: -20px 0 0 -18px; animation: orbit 4s linear infinite; }
.eye-n { display: block; font-size: 40px; }
@keyframes orbit { from { transform: rotate(0) translateX(90px) rotate(0); } to { transform: rotate(360deg) translateX(90px) rotate(-360deg); } }
/* interaktiv raundlar */
.r-head { display: flex; align-items: center; gap: 10px; text-align: left; margin-bottom: 12px; }
.r-head .r-ic { font-size: 40px; animation: beat 1.6s infinite; }
.r-head b { display: block; font-size: 21px; }
.r-head small { color: #64748b; font-weight: 800; }
.r-tile { position: relative; display: block; width: 100%; min-height: 54px; margin: 0 0 8px; border: 0; border-radius: 16px; background: #eef2ff; color: #1e1b4b; font: 900 20px/1.2 var(--sans); cursor: pointer; box-shadow: 0 4px 0 #c7d2fe; transition: transform .15s, background .2s; }
.r-tile.sel { background: #fde68a; box-shadow: 0 0 0 4px #f59e0b; transform: scale(1.04); }
.r-tile.done { color: #fff; box-shadow: none; animation: pop .35s; }
.r-tile:disabled { cursor: default; }
.r-tile.shk, .r-chip.shk { animation: shake .35s; background: #fecaca; }
.r-match { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.r-order { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.r-order .r-tile { margin: 0; }
.r-order .r-tile.done { background: linear-gradient(135deg, #22c55e, #15803d); }
.r-no { position: absolute; left: -6px; top: -8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f59e0b; color: #fff; font-size: 15px; box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.r-dq { margin: 8px 0 18px; }
.r-slot { display: inline-grid; place-items: center; min-width: 86px; min-height: 64px; padding: 0 10px; border: 4px dashed #a5b4fc; border-radius: 18px; color: #a5b4fc; vertical-align: middle; animation: pulse 1.4s infinite; }
.r-slot.ok { border: 4px solid #22c55e; color: #15803d; background: #dcfce7; animation: pop .4s; }
.r-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.r-chip { min-width: 84px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, #f97316, #db2777); color: #fff; font: 900 24px/1 var(--sans); cursor: grab; touch-action: none; user-select: none; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); transition: transform .2s; }
.r-chip.lift { cursor: grabbing; transition: none; z-index: 5; position: relative; box-shadow: 0 14px 24px rgba(0, 0, 0, .3); }
.r-chip.gone { visibility: hidden; }
.r-scale { position: relative; padding: 10px 0 0; }
.r-beam { height: 10px; margin: 0 8%; border-radius: 6px; background: #92400e; transition: transform .8s cubic-bezier(.3, 1.5, .5, 1); }
.r-pans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: -2px; }
.r-pan { display: grid; justify-items: center; gap: 4px; min-height: 110px; padding: 12px 8px; border: 0; border-radius: 0 0 60px 60px; background: linear-gradient(180deg, #fef3c7, #fcd34d); color: #1e1b4b; font: 900 22px/1.2 var(--sans); cursor: pointer; box-shadow: 0 6px 0 #d97706; }
.r-pan { transition: transform .8s cubic-bezier(.3, 1.5, .5, 1); }
.r-pan.heavy { background: linear-gradient(180deg, #dcfce7, #4ade80); box-shadow: 0 6px 0 #15803d; }
.r-pan small { color: #b45309; font-size: 16px; }
.r-w { font-size: 26px; }
.r-stand { color: #92400e; font-size: 30px; line-height: 1; margin-top: 4px; }

/* jonli do‘st — Humo */
.pet-badge { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 10px 16px; border-radius: 22px; text-decoration: none; color: #1e1b4b; background: linear-gradient(135deg, #fef9c3, #fbcfe8); box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.pet-badge .pb-e { position: relative; font-size: 40px; line-height: 1; animation: bob 2s infinite; }
.pet-badge small { font-weight: 900; font-size: 16px; }
.petcard { background: linear-gradient(180deg, #fff, #fdf2f8); }
.pet { position: relative; border: 0; background: radial-gradient(circle, #fef9c3 0 55%, transparent 56%); width: 180px; height: 180px; border-radius: 50%; cursor: pointer; margin: 6px auto; display: grid; place-items: center; }
.pet .pet-b { font-size: 110px; line-height: 1; animation: breathe 3s ease-in-out infinite; }
.pet .pet-hat { position: absolute; top: -4px; left: 50%; transform: translateX(-50%) rotate(-8deg); font-size: 54px; z-index: 2; }
.pet.jump .pet-b { animation: hop2 .6s; }
.pet.yum .pet-b { animation: pop .5s 2; }
.pet.grow .pet-b { animation: starin 1s; }
.pet-say { min-height: 3em; font-size: 18px !important; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: 0 3px 0 #fbcfe8; }
.pet-xp { position: relative; height: 22px; border-radius: 999px; background: #f1f5f9; overflow: hidden; margin: 8px 0; }
.pet-xp i { display: block; height: 100%; background: linear-gradient(90deg, #f472b6, #f59e0b); border-radius: 999px; transition: width .6s; }
.pet-xp small { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #1e1b4b; }
.pet-hats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.pet-h { display: grid; justify-items: center; padding: 8px; border: 2px solid #e2e8f0; border-radius: 16px; background: #fff; font-size: 30px; cursor: pointer; }
.pet-h small { font-size: 12px; font-weight: 900; color: #64748b; }
.pet-h.on { border-color: #f59e0b; background: #fef3c7; }
.pet-h:disabled { opacity: .45; cursor: default; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05) translateY(-3px); } }
@keyframes hop2 { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-36px) rotate(-12deg); } 70% { transform: translateY(0) scale(1.1, .9); } }
.alb-st.trs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 12px; }
