/* Scratch Lab — dizayn: shishasimon panellar, yumshoq soyalar, yorug'/qorong'i
 * mavzu, rang ko'rish qiyinligi va yuqori kontrast rejimlari. Bloklar Scratch
 * shakllarida: qalpoq, buyruq, C-blok, reporter (yumaloq), shart (oltiburchak). */

:root {
  --p1: #4F46E5; --p2: #7C3AED; --s1: #06B6D4; --s2: #10B981; --acc: #F59E0B; --danger: #F43F5E;
  --bg: #F8FAFC; --bg2: #EEF2FF; --panel: rgba(255, 255, 255, .78); --panel-solid: #fff; --panel-2: rgba(241, 245, 249, .85);
  --text: #0F172A; --muted: #64748B; --line: rgba(15, 23, 42, .09); --line-2: rgba(15, 23, 42, .16);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(30, 41, 99, .18);
  --shadow-lg: 0 30px 70px -30px rgba(49, 46, 129, .35);
  --ws: #F1F5F9; --ws-dot: rgba(100, 116, 139, .22);
  --grad: linear-gradient(135deg, var(--p1), var(--p2));
  --top-h: 64px; --r: 18px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0A0F1F; --bg2: #11173A; --panel: rgba(18, 24, 46, .72); --panel-solid: #141A33; --panel-2: rgba(30, 38, 70, .7);
  --text: #E5E9F5; --muted: #9AA6C5; --line: rgba(148, 163, 184, .14); --line-2: rgba(148, 163, 184, .26);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --ws: #0F1530; --ws-dot: rgba(148, 163, 184, .16);
  color-scheme: dark;
}
:root.hc { --muted: var(--text); --line: var(--text); --line-2: var(--text); }
:root.hc .card, :root.hc .kpi, :root.hc .btn { border-width: 2px !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 500 1rem/1.55 Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 500px at 8% -10%, rgba(79, 70, 229, .16), transparent 60%),
              radial-gradient(700px 500px at 100% 0%, rgba(6, 182, 212, .14), transparent 60%),
              radial-gradient(700px 600px at 50% 110%, rgba(124, 58, 237, .12), transparent 60%); }
h1, h2, h3, h4 { font-family: "Space Grotesk", Nunito, system-ui, sans-serif; letter-spacing: -.02em; margin: 0; line-height: 1.15; }
a { color: var(--p1); }
:root[data-theme="dark"] a { color: #A5B4FC; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.sl-boot { display: grid; place-items: center; min-height: 100vh; font: 700 1.2rem "Space Grotesk", sans-serif; color: var(--p1); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--p1); color: #fff !important; padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 800; }
.skip:focus { top: 10px; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; } }

/* ------------------------------------------------------------------ yuqori panel */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text) !important; flex-shrink: 0; }
.brand-mark { display: inline-grid; grid-template-columns: repeat(3, 9px); gap: 3px; padding: 7px; border-radius: 12px; background: var(--grad); box-shadow: 0 8px 18px -8px var(--p1); }
.brand-mark i { height: 18px; border-radius: 3px; background: #fff; opacity: .95; }
.brand-mark i:nth-child(1) { background: #FDE047; } .brand-mark i:nth-child(2) { background: #fff; height: 12px; align-self: end; } .brand-mark i:nth-child(3) { background: #67E8F9; height: 14px; }
.brand-name { font: 600 1.15rem "Space Grotesk", sans-serif; letter-spacing: -.02em; }
.brand-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; text-decoration: none; color: var(--muted) !important; font-weight: 700; font-size: .92rem; white-space: nowrap; transition: background .15s, color .15s; }
.nav a:hover { background: var(--panel-2); color: var(--text) !important; }
.nav a.on { background: var(--panel-solid); color: var(--p1) !important; box-shadow: var(--shadow); }
:root[data-theme="dark"] .nav a.on { color: #C7D2FE !important; }
.nav a.locked i { font-style: normal; font-size: .75rem; opacity: .7; }
.top-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.chips { display: flex; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-weight: 800; font-size: .86rem; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text) !important; white-space: nowrap; }
.chip small { font-size: .68rem; color: var(--muted); }
.chip-fire.on { background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(244, 63, 94, .14)); border-color: rgba(245, 158, 11, .4); }
.chip-lvl { background: var(--grad); color: #fff !important; border: 0; }
.chip-login { background: var(--grad); color: #fff !important; border: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 5px 9px; border-radius: 9px; font-weight: 800; font-size: .78rem; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--panel-solid); color: var(--p1); box-shadow: var(--shadow); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { color: #C7D2FE; }
.seg-wide { display: flex; } .seg-wide button { flex: 1; padding: 8px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--text) !important; font-size: 1.05rem; transition: transform .15s; }
.icon-btn:hover { transform: translateY(-1px); }
.site-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 12px; text-decoration: none; white-space: nowrap;
  background: var(--grad); color: #fff !important; font-weight: 800; font-size: .88rem; box-shadow: 0 8px 18px -10px var(--p1); transition: transform .15s; }
.site-btn:hover { transform: translateY(-1px); }
main { outline: none; }
.bottom-nav { display: none; }

/* ------------------------------------------------------------------ umumiy */
.page { max-width: 1240px; margin: 0 auto; padding: 26px 20px 110px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  color: var(--muted); font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--s2); box-shadow: 0 0 10px var(--s2); }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); font-weight: 700; }
.lead { color: var(--muted); font-size: 1.06rem; margin: 10px 0 0; max-width: 720px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.card-h { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-family: Nunito, sans-serif; }
.section-h { font-size: 1.2rem; margin: 30px 0 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.row-center { display: flex; justify-content: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.notice { padding: 12px 16px; border-radius: 14px; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); margin: 14px 0; font-weight: 700; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.code-form { display: flex; gap: 6px; }
.code-form input { width: 130px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel-solid); text-transform: uppercase; font-weight: 800; letter-spacing: .1em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--panel-solid); color: var(--text) !important; font-weight: 800; font-size: .95rem; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--grad); border-color: transparent; color: #fff !important; box-shadow: 0 10px 24px -10px var(--p1); }
.btn-accent { background: linear-gradient(135deg, var(--acc), #F97316); border-color: transparent; color: #fff !important; box-shadow: 0 10px 24px -10px var(--acc); }
.btn-soft { background: color-mix(in srgb, var(--p1) 10%, var(--panel-solid)); border-color: color-mix(in srgb, var(--p1) 22%, transparent); color: var(--p1) !important; }
:root[data-theme="dark"] .btn-soft { color: #C7D2FE !important; }
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); color: #fff !important; border-color: transparent; }
.btn-lg { padding: 13px 22px; font-size: 1.02rem; border-radius: 16px; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 11px; }
.btn.is-locked { opacity: .7; }

.bar { display: block; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--s1), var(--s2)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.ring .ring-bg { fill: none; stroke: color-mix(in srgb, var(--muted) 18%, transparent); stroke-width: 10; }
.ring .ring-fg { fill: none; stroke: var(--p1); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.ring text { fill: var(--text); font: 800 1.15rem "Space Grotesk", sans-serif; }

/* ------------------------------------------------------------------ boshqaruv paneli */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; align-items: center; padding: 30px; border-radius: 28px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(79, 70, 229, .95), rgba(124, 58, 237, .92) 60%, rgba(6, 182, 212, .85)); color: #fff; box-shadow: var(--shadow-lg); }
.hero::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 70%); }
.hero .eyebrow { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .25); color: #fff; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255, 255, 255, .86); }
.hero-cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--p1) !important; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45); }
.hero .btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.wave { display: inline-block; animation: wave 2.4s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } }
.hero-art { position: relative; min-height: 220px; }
.float-block { position: absolute; padding: 9px 14px; border-radius: 10px; font: 800 .86rem Nunito, sans-serif; color: #fff; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .45); animation: floaty 6s ease-in-out infinite; }
.fb1 { background: #FFBF00; border-radius: 22px 22px 10px 10px; padding-top: 14px; top: 8%; left: 6%; }
.fb2 { background: #4C97FF; top: 42%; left: 26%; animation-delay: -2s; }
.fb3 { background: #FFAB19; top: 72%; left: 4%; animation-delay: -4s; }
.hero-mascot { position: absolute; right: 2%; bottom: 0; width: 190px; height: auto; animation: floaty 5s ease-in-out infinite; filter: drop-shadow(0 16px 24px rgba(0, 0, 0, .3)); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.season { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 18px; border-radius: 18px; text-decoration: none; color: var(--text) !important;
  background: linear-gradient(120deg, rgba(245, 158, 11, .16), rgba(244, 63, 94, .12)); border: 1px solid rgba(245, 158, 11, .35); }
.season-ic { font-size: 1.8rem; } .season div { flex: 1; display: grid; } .season span { color: var(--muted); font-size: .92rem; }
.season-go { font-weight: 800; color: #D97706 !important; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.kpi { position: relative; padding: 16px 18px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(14px); display: grid; gap: 2px; }
.kpi-ic { position: absolute; right: 14px; top: 12px; font-size: 1.5rem; opacity: .9; }
.kpi b { font: 700 1.9rem "Space Grotesk", sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi b small { font-size: 1rem; color: var(--muted); }
.kpi > span { color: var(--muted); font-size: .86rem; font-weight: 700; }
.kpi-sub { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); font-weight: 700; }
.kpi-sub .bar { flex: 1; }
.streak-dots i { width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 20%, transparent); }
.streak-dots i.on { background: linear-gradient(135deg, var(--acc), #F43F5E); box-shadow: 0 0 8px rgba(245, 158, 11, .6); }
.mini-badge { font-size: 1.15rem; }
.chart-wrap { display: flex; align-items: center; gap: 18px; }
.chart { width: 100%; max-width: 420px; height: auto; }
.chart .b-on { fill: color-mix(in srgb, var(--p1) 55%, transparent); } .chart .b-today { fill: var(--p1); } .chart .b-off { fill: color-mix(in srgb, var(--muted) 18%, transparent); }
.chart .b-val { font: 800 10px Nunito, sans-serif; fill: var(--text); } .chart .b-lbl { font: 700 10px Nunito, sans-serif; fill: var(--muted); }
.chart-side { display: grid; text-align: center; } .chart-side b { font: 700 2rem "Space Grotesk", sans-serif; color: var(--p1); } .chart-side span { color: var(--muted); font-size: .85rem; }
:root[data-theme="dark"] .chart-side b { color: #A5B4FC; }
.onb { display: flex; gap: 18px; align-items: center; } .onb p { margin: 0 0 10px; }
.card-path { margin-top: 16px; }
.path { display: flex; align-items: center; overflow-x: auto; padding: 8px 4px 14px; scrollbar-width: thin; }
.pn { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; text-decoration: none; position: relative; font-size: 1.25rem;
  background: var(--panel-solid); border: 2px solid var(--line-2); color: var(--text) !important; transition: transform .15s; }
.pn small { position: absolute; bottom: -18px; font-size: .68rem; font-weight: 800; color: var(--muted); }
.pn:hover { transform: translateY(-3px); }
.pn.done { background: linear-gradient(135deg, var(--s1), var(--s2)); border-color: transparent; color: #fff !important; font-weight: 900; }
.pn.cur { border-color: var(--p1); box-shadow: 0 0 0 5px color-mix(in srgb, var(--p1) 22%, transparent); animation: pulse 2s infinite; }
.pn.locked { opacity: .55; filter: grayscale(.6); }
.pn.lvl { border-radius: 50%; width: 58px; height: 58px; }
.pn-line { flex-shrink: 0; width: 18px; height: 3px; border-radius: 2px; background: var(--line-2); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--p1) 25%, transparent); } 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--p1) 8%, transparent); } }
.daily h3 { font-size: 1.15rem; margin-bottom: 6px; } .daily p { margin: 0 0 14px; color: var(--muted); }
.ok-line { color: var(--s2) !important; font-weight: 800; }
.missions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.missions li { display: flex; align-items: center; gap: 12px; } .missions li > span { font-size: 1.3rem; width: 30px; text-align: center; }
.missions li div { flex: 1; display: grid; gap: 5px; } .missions li b { font-size: .92rem; } .missions small { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.missions li.done b { text-decoration: line-through; color: var(--muted); } .missions li.done small { color: var(--s2); }
.lv-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lv-mini { position: relative; display: grid; gap: 4px; padding: 14px; border-radius: 16px; text-decoration: none; color: var(--text) !important; background: var(--panel-solid); border: 1px solid var(--line); transition: transform .15s; }
.lv-mini::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 16px 16px 0 0; background: var(--lc); }
.lv-mini:hover { transform: translateY(-3px); } .lv-mini.locked { opacity: .6; }
.lv-ic { font-size: 1.5rem; } .lv-mini small { color: var(--muted); font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.lv-mini b { font-size: .95rem; line-height: 1.25; min-height: 2.5em; } .lv-mini .bar i { background: var(--lc); }
.lv-cert { position: absolute; right: 10px; top: 10px; font-style: normal; }
.rec { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rec a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--text) !important; background: var(--panel-solid); border: 1px solid var(--line); transition: transform .15s; }
.rec a:hover { transform: translateX(3px); } .rec a > span { font-size: 1.3rem; } .rec a b { flex: 1; font-size: .93rem; }
.rec a small { color: var(--muted); font-weight: 800; font-size: .78rem; } .rec img { width: 48px; height: 36px; object-fit: cover; border-radius: 8px; }
.board-mini { margin-top: 16px; }
.board { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); }
.board li.me { border-color: var(--p1); background: color-mix(in srgb, var(--p1) 8%, var(--panel-solid)); }
.board .rk { width: 30px; text-align: center; font-weight: 900; } .board .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: .8rem; }
.board b { flex: 1; } .board small { color: var(--muted); font-weight: 700; } .board em { font-style: normal; font-weight: 900; color: var(--p1); min-width: 80px; text-align: right; }
:root[data-theme="dark"] .board em { color: #A5B4FC; }

/* ------------------------------------------------------------------ modal */
.modal-back { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .45); backdrop-filter: blur(6px); animation: fade .2s; }
.modal { width: min(560px, 100%); max-height: min(86vh, 760px); overflow: auto; background: var(--panel-solid); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 6px; }
.modal-head h3 { font-size: 1.15rem; } .modal-body { padding: 10px 18px 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.modal-welcome { padding: 28px; text-align: center; } .modal-welcome h2 { font-size: 1.7rem; margin: 6px 0 8px; } .modal-welcome p { color: var(--muted); }
.welcome-art { font-size: 3rem; letter-spacing: 6px; } .welcome-steps { text-align: left; display: grid; gap: 8px; margin: 18px 0; padding-left: 22px; font-weight: 700; }
.modal-welcome .modal-actions { justify-content: center; } .modal-welcome .ed-field { text-align: left; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.mini-form { display: flex; gap: 8px; } .mini-form input { flex: 1; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }
.share-code { font: 700 2.4rem "Space Grotesk", monospace; letter-spacing: .2em; text-align: center; padding: 14px; margin: 10px 0 14px; border-radius: 16px; background: var(--bg2); color: var(--p1); }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tpl { display: grid; gap: 6px; justify-items: center; padding: 14px 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); font-weight: 800; font-size: .88rem; text-align: center; transition: transform .15s, border-color .15s; }
.tpl span { font-size: 1.8rem; } .tpl:hover { transform: translateY(-2px); border-color: var(--p1); }
.a11y { display: grid; gap: 14px; }
.kbd summary { cursor: pointer; font-weight: 800; } .kbd ul { padding-left: 18px; display: grid; gap: 6px; }
kbd { display: inline-block; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--bg); font: 700 .8rem ui-monospace, monospace; }

/* ------------------------------------------------------------------ toast va konfetti */
.toasts { position: fixed; right: 16px; bottom: 90px; z-index: 90; display: grid; gap: 8px; justify-items: end; pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-weight: 800; animation: slideIn .3s cubic-bezier(.2, .9, .3, 1.2); transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translateY(10px); }
.toast-xp { background: var(--grad); color: #fff; border: 0; } .toast-badge { background: linear-gradient(135deg, var(--acc), #F43F5E); color: #fff; border: 0; }
.toast-coin { background: linear-gradient(135deg, #FACC15, #F59E0B); color: #422006; border: 0; } .toast-ok { border-color: var(--s2); color: var(--s2); } .toast-warn { border-color: var(--acc); }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall 2.2s cubic-bezier(.25, .6, .4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .9; } }

/* ------------------------------------------------------------------ kurs */
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.lesson-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: var(--text) !important; background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow); transition: transform .18s, border-color .18s; animation: rise .45s both; animation-delay: calc(var(--i) * 25ms); }
.lesson-card:hover { transform: translateY(-3px); border-color: var(--p1); }
.lc-n { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--bg2); color: var(--p1); font-weight: 900; font-size: .85rem; }
.lc-ic { font-size: 1.6rem; } .lc-body { flex: 1; display: grid; } .lc-body small { color: var(--muted); font-weight: 700; font-size: .8rem; }
.lc-state { font-weight: 900; color: var(--muted); }
.lesson-card.done .lc-n { background: linear-gradient(135deg, var(--s1), var(--s2)); color: #fff; } .lesson-card.done .lc-state { color: var(--s2); }
.lesson-card.locked { opacity: .55; cursor: not-allowed; }
.gate { grid-column: 1 / -1; text-align: center; padding: 8px; border-radius: 12px; border: 1.5px dashed var(--line-2); color: var(--muted); font-weight: 800; font-size: .88rem; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------ dars */
.lesson-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-bottom: 18px; }
.lesson-title { display: flex; align-items: center; gap: 12px; } .lesson-title > span { font-size: 2.2rem; }
.lesson-title small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; } .lesson-title h1 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }
.steps { list-style: none; display: flex; gap: 4px; margin: 0; padding: 4px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.steps button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 11px; border-radius: 12px; font-weight: 800; font-size: .84rem; color: var(--muted); }
.steps button i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem; background: color-mix(in srgb, var(--muted) 18%, transparent); }
.steps button.ok i { background: var(--s2); color: #fff; } .steps button.on { background: var(--panel-solid); color: var(--text); box-shadow: var(--shadow); } .steps button.on i { background: var(--grad); color: #fff; }
.steps button:disabled { opacity: .5; cursor: not-allowed; }
.learn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 22px; align-items: start; }
.learn-text { display: grid; gap: 12px; }
.theory { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: rise .5s both; animation-delay: calc(var(--k) * 180ms); font-size: 1.05rem; }
.theory p { margin: 0; } .theory strong { color: var(--p1); } :root[data-theme="dark"] .theory strong { color: #A5B4FC; }
.theory-n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 900; }
.learn-demo { position: sticky; top: calc(var(--top-h) + 16px); display: grid; gap: 10px; }
.demo-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #F43F5E; animation: blink 1.4s infinite; } @keyframes blink { 50% { opacity: .25; } }
.mini { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.mini-cv { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; touch-action: none; }
.mini-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--panel-solid); border-top: 1px solid var(--line); }
.mini-hint { color: var(--muted); font-size: .78rem; font-weight: 700; margin-left: auto; }
.mini-ask { position: absolute; left: 10px; right: 10px; bottom: 56px; }
.explore { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 22px; align-items: start; }
.explore-code { overflow: auto; } .code-sprite h3 { font-size: 1rem; margin: 14px 0 8px; } .code-script { margin: 0 0 14px; overflow-x: auto; padding-bottom: 4px; }
.explore-stage { display: grid; gap: 14px; position: sticky; top: calc(var(--top-h) + 16px); }
.explain h3 { font-size: 1rem; margin-bottom: 8px; } .explain ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .93rem; }
.finish { text-align: center; padding: 36px 24px; max-width: 680px; margin: 0 auto; }
.finish-ic { font-size: 3.6rem; animation: pop .5s cubic-bezier(.2, .9, .3, 1.4); } .finish h2 { font-size: 1.9rem; margin: 6px 0 4px; } .finish .lead { margin: 0 auto; }
.finish-stats { display: flex; justify-content: center; gap: 14px; margin: 22px 0; flex-wrap: wrap; }
.finish-stats div { display: grid; padding: 12px 20px; border-radius: 16px; background: var(--bg2); min-width: 110px; }
.finish-stats b { font: 700 1.5rem "Space Grotesk", sans-serif; color: var(--p1); } .finish-stats span { color: var(--muted); font-weight: 700; font-size: .82rem; }
:root[data-theme="dark"] .finish-stats b { color: #A5B4FC; }
.finish-badge { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(245, 158, 11, .18), rgba(244, 63, 94, .12)); border: 1px solid rgba(245, 158, 11, .4); text-align: left; }
.finish-badge > span { font-size: 2rem; } .finish-badge div { display: grid; } .finish-badge small { color: var(--muted); font-weight: 800; }
.unlock { font-weight: 800; color: var(--s2); }

/* test */
.quiz { max-width: 760px; margin: 0 auto; }
.quiz-top { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; font-size: .88rem; } .quiz-top .bar { flex: 1; }
.quiz-q { font-size: 1.45rem; margin: 18px 0; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opts button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--panel-solid); text-align: left; font-weight: 700; font-size: 1.02rem; transition: transform .15s, border-color .15s; }
.quiz-opts button:hover:not(:disabled) { transform: translateX(4px); border-color: var(--p1); }
.quiz-opts i { width: 30px; height: 30px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-weight: 900; background: var(--bg2); color: var(--p1); }
.quiz-opts .right { border-color: var(--s2); background: color-mix(in srgb, var(--s2) 12%, var(--panel-solid)); } .quiz-opts .right i { background: var(--s2); color: #fff; }
.quiz-opts .wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--panel-solid)); animation: shake .35s; } .quiz-opts .wrong i { background: var(--danger); color: #fff; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz-fb { min-height: 1.6em; margin-top: 12px; font-weight: 800; } .quiz-fb.good { color: var(--s2); } .quiz-fb.bad { color: var(--danger); }
.quiz-result { text-align: center; } .quiz-result h2 { margin: 12px 0 4px; } .quiz-result.pass .ring-fg { stroke: var(--s2); } .quiz-result.fail .ring-fg { stroke: var(--acc); }

/* ------------------------------------------------------------------ topshiriq (muharrir bilan) */
body.full main { height: calc(100dvh - var(--top-h)); overflow: hidden; display: flex; flex-direction: column; }
body.full .page { max-width: none; width: 100%; padding: 12px 14px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.full .lesson-head { margin-bottom: 10px; }
body.full .lesson-body, body.full #tv, body.full .studio-ed { flex: 1; min-height: 0; }
body.full .mentor-fab { bottom: 18px; }
.task { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; height: 100%; min-height: 0; }
.task-panel { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: auto; }
.task-h small { color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; } .task-h h2 { font-size: 1.2rem; margin-top: 2px; }
.task-text { margin: 0; font-weight: 700; }
.task-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.task-sub { font: 800 .74rem Nunito, sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.reqs li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 12px; background: var(--panel-2); font-size: .88rem; font-weight: 700; transition: background .3s; }
.reqs li i { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; border: 2px solid var(--line-2); color: var(--muted); font-size: .75rem; }
.reqs li.ok { background: color-mix(in srgb, var(--s2) 14%, transparent); } .reqs li.ok i { background: var(--s2); border-color: var(--s2); color: #fff; animation: pop .3s; }
.task-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.task-btns .btn-primary { flex: 1; }
.task-ed { min-height: 0; min-width: 0; }

/* ------------------------------------------------------------------ darajalar */
.levels { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.level-card { position: relative; display: grid; gap: 10px; padding: 20px; border-radius: 22px; text-decoration: none; color: var(--text) !important; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .18s; }
.level-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--lc); }
.level-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--lc) 30%, transparent), transparent 70%); }
.level-card:hover { transform: translateY(-4px); } .level-card.locked { opacity: .62; }
.level-top { display: flex; align-items: center; gap: 10px; } .level-ic { font-size: 1.9rem; }
.level-n { font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--lc); }
.level-cert, .level-lock { margin-left: auto; font-weight: 800; font-size: .82rem; }
.level-card h2 { font-size: 1.3rem; } .level-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.level-parts { display: flex; flex-wrap: wrap; gap: 6px; } .level-parts span { padding: 3px 8px; border-radius: 999px; background: var(--panel-2); font-size: .74rem; font-weight: 800; }
.level-card .bar i { background: var(--lc); }
.level-head { display: grid; gap: 14px; margin-bottom: 18px; } .level-head > .btn { justify-self: start; }
.level-title { display: flex; align-items: center; gap: 14px; } .level-title > span { font-size: 2.4rem; } .level-title > div { flex: 1; }
.level-title small { color: var(--lc); font-weight: 900; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.level .ring-fg { stroke: var(--lc); }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 4px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); scrollbar-width: none; }
.tabs a { padding: 8px 14px; border-radius: 12px; text-decoration: none; color: var(--muted) !important; font-weight: 800; white-space: nowrap; font-size: .9rem; }
.tabs a.on { background: var(--panel-solid); color: var(--text) !important; box-shadow: var(--shadow); }
.prose { font-size: 1.06rem; max-width: 820px; } .prose p { margin: 0 0 12px; }
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.example { display: grid; gap: 12px; } .example h3 { font-size: 1.05rem; }
.projects-list { display: grid; gap: 14px; }
.proj-task { display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; } .proj-task > div { flex: 1; min-width: 240px; }
.proj-task h3 { font-size: 1.15rem; margin: 4px 0; } .proj-task p { margin: 0 0 10px; color: var(--muted); } .pt-ic { font-size: 1.6rem; }
.proj-task.done { border-color: color-mix(in srgb, var(--s2) 50%, transparent); }
.reqs-static li { background: transparent; padding: 3px 0; }

/* ------------------------------------------------------------------ loyihalar, yutuqlar, sertifikat */
.studio { gap: 10px; }
.studio-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.save-state { color: var(--muted); font-weight: 800; font-size: .85rem; } .studio-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.proj-card { display: grid; border-radius: 18px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .15s; }
.proj-card:hover { transform: translateY(-3px); }
.proj-thumb { display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--bg2), var(--panel-2)); font-size: 2.5rem; text-decoration: none; border: 0; width: 100%; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; }
.proj-info { padding: 10px 14px 4px; } .proj-info h3 { font-size: 1rem; } .proj-info h3 a { color: var(--text) !important; text-decoration: none; } .proj-info small { color: var(--muted); font-weight: 700; }
.proj-acts { display: flex; gap: 4px; padding: 6px 10px 12px; } .proj-acts button { border: 1px solid var(--line); background: var(--panel-solid); border-radius: 10px; padding: 5px 10px; font-weight: 800; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 40px; grid-column: 1 / -1; color: var(--muted); } .empty span { font-size: 2.6rem; }
.shared-stage { max-width: 720px; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.badge { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); filter: grayscale(1); opacity: .55; }
.badge.on { filter: none; opacity: 1; box-shadow: var(--shadow); } .badge > span { font-size: 2.4rem; } .badge.on > span { animation: floaty 4s ease-in-out infinite; }
.badge b { font-size: .95rem; } .badge small { color: var(--muted); font-size: .8rem; } .badge i { font-style: normal; font-size: .74rem; color: var(--muted); font-weight: 800; }
.trophies { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.trophy { display: grid; justify-items: center; gap: 2px; padding: 16px 10px; border-radius: 18px; text-decoration: none; text-align: center; color: var(--text) !important; background: var(--panel); border: 1px solid var(--line); opacity: .55; }
.trophy.on { opacity: 1; border-color: var(--lc); box-shadow: 0 12px 26px -16px var(--lc); } .trophy span { font-size: 2.2rem; } .trophy small { color: var(--lc); font-weight: 900; } .trophy b { font-size: .86rem; }
.cert-mini { display: grid; gap: 4px; text-decoration: none; color: var(--text) !important; } .cert-mini span { font-size: 2rem; } .cert-mini small { color: var(--muted); }
.cert-actions { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 18px; }
.certificate { position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 1.414; padding: 6% 8%; background: #fff; color: #1E1B4B; border-radius: 10px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.cert-border { position: absolute; inset: 18px; border: 3px solid var(--lc); border-radius: 6px; outline: 1px solid color-mix(in srgb, var(--lc) 40%, transparent); outline-offset: 6px; pointer-events: none; }
.certificate::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 0 0, color-mix(in srgb, var(--lc) 14%, transparent), transparent 70%), radial-gradient(600px 300px at 100% 100%, rgba(6, 182, 212, .12), transparent 70%); }
.certificate > * { position: relative; }
.certificate header { display: flex; align-items: center; gap: 10px; font: 600 1.1rem "Space Grotesk", sans-serif; }
.cert-kicker { margin: 4% 0 1%; font: 800 .95rem Nunito, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: var(--lc); }
.cert-name { font: 700 clamp(1.8rem, 5vw, 3.2rem) "Space Grotesk", sans-serif; color: #1E1B4B; border-bottom: 2px solid #E0E7FF; padding: 0 30px 8px; }
.cert-text { color: #475569; margin: 14px 0 6px; } .cert-level { font-size: clamp(1.1rem, 2.6vw, 1.7rem); color: #312E81; }
.cert-meta { display: flex; align-items: center; justify-content: space-between; gap: 30px; width: 100%; margin-top: 6%; }
.cert-meta div { display: grid; } .cert-meta b { font-size: 1rem; } .cert-meta span { color: #64748B; font-size: .8rem; font-weight: 700; border-top: 1px solid #CBD5E1; padding-top: 4px; margin-top: 4px; }
.cert-seal { font-size: 3rem; width: 90px; height: 90px; border-radius: 50%; display: grid !important; place-items: center; background: radial-gradient(circle, #FEF3C7, #FCD34D); box-shadow: 0 0 0 6px #FDE68A; }

/* ------------------------------------------------------------------ AI Ustoz */
.mentor-fab { position: fixed; right: 18px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 10px; border-radius: 999px; border: 0;
  background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 16px 32px -12px var(--p1); transition: transform .15s; }
.mentor-fab span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .2); font-size: 1.3rem; }
.mentor-fab:hover { transform: translateY(-2px); } .mentor-fab.on { opacity: 0; pointer-events: none; }
.mentor-fab.ping::after { content: ""; position: absolute; right: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px #fff; animation: blink 1s infinite; }
.mentor { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: min(390px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 100px)); display: flex; flex-direction: column;
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; animation: pop .25s; }
.mentor[hidden] { display: none; }
.m-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--grad); color: #fff; }
.m-head > div { flex: 1; display: grid; } .m-head small { opacity: .85; font-size: .76rem; }
.m-head .ed-icon { background: rgba(255, 255, 255, .18); color: #fff; border-color: transparent; }
.m-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); font-size: 1.4rem; }
.m-msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.m-msg { max-width: 88%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: var(--panel-solid); border: 1px solid var(--line); font-size: .92rem; box-shadow: var(--shadow); animation: rise .25s; cursor: default; }
.m-msg.me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--grad); color: #fff; border: 0; }
.m-chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; border-top: 1px solid var(--line); scrollbar-width: none; }
.m-chips button { flex-shrink: 0; border: 1px solid var(--line-2); background: var(--panel-2); border-radius: 999px; padding: 6px 10px; font-weight: 800; font-size: .8rem; }
.m-form { display: flex; gap: 6px; padding: 8px 10px 12px; } .m-form input { flex: 1; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); }

/* ------------------------------------------------------------------ muharrir */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 32vw, 480px); gap: 12px; height: 100%; min-height: 520px; }
.ed.ed--big { grid-template-columns: minmax(360px, 1fr) minmax(0, 1.25fr); }
.ed-left { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.ed-tabs { display: flex; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); }
.ed-tab { border: 0; background: transparent; padding: 7px 14px; border-radius: 10px; font-weight: 800; color: var(--muted); font-size: .9rem; }
.ed-tab.on { background: var(--panel-solid); color: var(--p1); box-shadow: var(--shadow); } :root[data-theme="dark"] .ed-tab.on { color: #C7D2FE; }
.ed-tools { margin-left: auto; display: flex; gap: 4px; }
.ed-icon { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-solid); font-weight: 900; font-size: 1rem; line-height: 1; padding: 0; }
.ed-icon:disabled { opacity: .4; cursor: default; }
.ed-code { flex: 1; min-height: 0; display: grid; grid-template-columns: 72px 272px minmax(0, 1fr); }
.ed-code[hidden], .ed-assets[hidden] { display: none; }
.ed-cats { display: flex; flex-direction: column; gap: 2px; padding: 6px 4px; overflow-y: auto; border-right: 1px solid var(--line); scrollbar-width: none; }
.ed-cat { display: grid; justify-items: center; gap: 2px; border: 0; background: transparent; border-radius: 10px; padding: 6px 2px; font-size: .64rem; font-weight: 800; color: var(--muted); line-height: 1.1; text-align: center; }
.ed-cat i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-style: normal; font-size: .8rem; border: 2px solid color-mix(in srgb, var(--c) 70%, #000); }
.ed-cat:hover { background: var(--panel-2); color: var(--text); } .ed-cat.flash { animation: pulse 1s 2; background: var(--panel-2); }
.ed-palette { overflow: auto; padding: 8px 10px 60px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel-solid) 60%, transparent); }
.pal-sec { padding-bottom: 8px; } .pal-h { font: 800 .8rem Nunito, sans-serif; margin: 6px 0 8px; color: var(--text); }
.pal-gap { height: 8px; } .pal-blk { margin-bottom: 7px; cursor: grab; }
.pal-btn { display: block; width: 100%; margin: 4px 0 8px; padding: 7px; border-radius: 10px; border: 1.5px dashed var(--line-2); background: transparent; font-weight: 800; font-size: .82rem; color: var(--text); }
.pal-var { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; } .pal-var .pal-blk { margin: 0; } .pal-var input { accent-color: var(--p1); }
.pal-del { border: 0; background: transparent; color: var(--muted); font-weight: 900; padding: 0 4px; }
.pal-note { font-size: .78rem; color: var(--muted); margin: 0 0 8px; }
.ed-ws { position: relative; overflow: auto; background-color: var(--ws); background-image: radial-gradient(var(--ws-dot) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.ed-ws-inner { position: relative; transform-origin: 0 0; min-width: 100%; min-height: 100%; }
.ed-ws-tools { position: sticky; float: right; top: calc(100% - 150px); right: 10px; margin-right: 10px; display: grid; gap: 6px; z-index: 6; }
.ed-ws-empty { position: absolute; inset: 40% 10% auto; text-align: center; color: var(--muted); font-weight: 800; pointer-events: none; }
.script { position: absolute; }
.script.running > .stack > .blk:first-child, .script.running > .stack { filter: drop-shadow(0 0 5px #FACC15) drop-shadow(0 0 2px #FACC15); }
.drop-marker { position: absolute; width: 110px; height: 8px; border-radius: 4px; background: rgba(79, 70, 229, .55); box-shadow: 0 0 0 2px #fff; pointer-events: none; z-index: 5; }
.drag-ghost { position: fixed; z-index: 100; pointer-events: none; transform-origin: 0 0; opacity: .92; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .3)); }
.drag-ghost.deleting { opacity: .45; filter: grayscale(1); }
.slot-hot { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--acc) !important; }
.val-tip { position: fixed; z-index: 100; padding: 6px 12px; border-radius: 10px; background: var(--panel-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-weight: 800; animation: pop .2s; }
.ctx-menu { position: fixed; z-index: 100; min-width: 190px; padding: 6px; border-radius: 14px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; }
.ctx-menu[hidden] { display: none; }
.ctx-menu button { border: 0; background: transparent; text-align: left; padding: 8px 12px; border-radius: 10px; font-weight: 700; } .ctx-menu button:hover, .ctx-menu button:focus { background: var(--panel-2); }

/* bloklar */
.stack { display: flex; flex-direction: column; align-items: flex-start; }
.blk { --c: #888; --d: color-mix(in srgb, var(--c) 72%, #000); position: relative; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; width: max-content; max-width: 640px;
  min-height: 34px; padding: 6px 10px; border-radius: 8px; background: var(--c); border: 1px solid var(--d); color: #fff; font: 800 .8rem/1.2 Nunito, system-ui, sans-serif;
  user-select: none; -webkit-user-select: none; touch-action: none; }
.blk-t { white-space: nowrap; text-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.stack > .blk + .blk { margin-top: -1px; }
.stack > .blk-stack::after, .stack > .blk-hat::after, .stack > .blk-c:not(.blk-capc)::after, .stack > .blk-e::after {
  content: ""; position: absolute; left: 14px; bottom: -6px; width: 16px; height: 6px; background: var(--c); border: 1px solid var(--d); border-top: 0; border-radius: 0 0 4px 4px; z-index: 2; }
.stack > .blk-stack::before, .stack > .blk-cap::before { content: ""; position: absolute; left: 14px; top: -1px; width: 16px; height: 5px; background: rgba(0, 0, 0, .14); border-radius: 0 0 4px 4px; }
.blk-hat { border-radius: 22px 22px 8px 8px; padding-top: 14px; min-width: 120px; }
.blk-cap { border-radius: 8px 8px 10px 10px; }
.blk-rep { border-radius: 999px; min-height: 26px; padding: 3px 10px; }
.blk-bool { border: 0; border-radius: 0; min-height: 26px; padding: 3px 15px; clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%); }
.blk-c, .blk-e { display: inline-flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 0; background: transparent; border: 0; min-height: 0; }
.blk-row { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-height: 34px; padding: 6px 10px; background: var(--c); border: 1px solid var(--d); border-bottom: 0; border-radius: 8px 8px 0 0; }
.blk-row--mid { border-radius: 0 8px 0 0; border-top: 0; min-height: 28px; }
.blk-mouth { border-left: 16px solid var(--c); box-shadow: inset 1px 0 0 var(--d), -1px 0 0 var(--d); min-height: 24px; position: relative; }
.blk-mouth > .stack { min-height: 24px; min-width: 60px; }
.blk-mouth + .blk-row--mid { border-top: 1px solid var(--d); }
.blk-foot { height: 16px; background: var(--c); border: 1px solid var(--d); border-top: 0; border-radius: 0 0 8px 8px; position: relative; }
.blk-mouth + .blk-foot { border-top: 1px solid var(--d); border-top-left-radius: 0; }
.in { border: 0; border-radius: 999px; background: #fff; color: #334155; font: 700 .78rem Nunito, sans-serif; padding: 3px 8px; min-width: 2.2em; height: 22px; text-align: center; outline-offset: 1px; }
.in-n { border-radius: 999px; } .in-s { border-radius: 6px; }
.in-m { border-radius: 7px; background: var(--d); color: #fff; border: 1px solid rgba(255, 255, 255, .25); padding: 2px 4px; text-align: left; max-width: 170px; cursor: pointer; }
.in-m option { color: #0F172A; background: #fff; }
.in-c { width: 34px; padding: 0; height: 22px; border-radius: 6px; background: transparent; cursor: pointer; }
.in-static { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 20px; }
.slot-b { display: inline-block; width: 42px; height: 20px; background: var(--d); clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 9px 100%, 0 50%); }
.blk .blk-rep, .blk .blk-bool { min-height: 24px; }
.pal-blk.blk-c, .pal-blk.blk-e { pointer-events: auto; }
.pal-blk .blk-mouth > .stack { min-height: 18px; }
.cb .blk-t { text-shadow: none; } .cb .blk { color: #fff; text-decoration: none; } .cb .ed-cat i { box-shadow: 0 0 0 2px var(--panel-solid); }

/* aktivlar (kostyum, fon, tovush) */
.ed-assets { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
.asset-sec { margin-bottom: 22px; } .asset-sec h4 { font-size: 1rem; margin-bottom: 10px; }
.asset-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.asset { position: relative; display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: var(--panel-solid); border: 2px solid var(--line); }
.asset.on { border-color: var(--p1); } .asset input { width: 100%; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); font-weight: 700; font-size: .85rem; }
.asset-pick { position: relative; display: grid; place-items: center; height: 80px; border: 0; border-radius: 10px; background: var(--bg); }
.asset-pick small { position: absolute; left: 6px; top: 4px; font-weight: 900; color: var(--muted); } .asset-pick img, .asset-pick .thumb { max-width: 90%; max-height: 70px; }
.asset-pick--wide img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; } .asset-pick b { font-size: 1.4rem; color: var(--p1); }
.asset-del { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--danger); color: #fff; font-weight: 900; line-height: 1; }
.asset-add { margin-top: 10px; padding: 10px 14px; border-radius: 12px; border: 1.5px dashed var(--line-2); background: transparent; font-weight: 800; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; } .lib-grid--wide { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.lib-item { display: grid; justify-items: center; align-content: center; gap: 4px; padding: 10px 6px; min-height: 96px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-weight: 800; font-size: .78rem; transition: transform .12s, border-color .12s; }
.lib-item:hover { transform: translateY(-2px); border-color: var(--p1); } .lib-item img.thumb { width: 56px; height: 56px; object-fit: contain; }
.lib-bd { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.lib-upload b { font-size: 1.6rem; color: var(--p1); }
.lib-sound { grid-template-columns: auto 1fr; align-items: center; min-height: 0; padding: 6px; }
.lib-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; } .lib-pick { border: 0; background: transparent; font-weight: 800; text-align: left; }
.thumb { width: 44px; height: 44px; object-fit: contain; } .thumb-emoji { display: inline-grid; place-items: center; font-size: 2rem; line-height: 1; }

/* o'ng ustun: sahna va spraytlar */
.ed-right { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; }
.ed-stagebar { display: flex; align-items: center; gap: 8px; }
.ed-flag, .ed-stop { width: 40px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-solid); font-size: 1.15rem; font-weight: 900; display: grid; place-items: center; transition: transform .12s; }
.ed-flag { color: #16A34A; } .ed-flag.on { background: rgba(22, 163, 74, .14); border-color: #16A34A; } .ed-stop { color: #DC2626; }
.ed-flag:hover, .ed-stop:hover { transform: scale(1.06); }
.ed-title { flex: 1; min-width: 0; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-solid); font-weight: 800; }
.ed-stage { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #fff; flex-shrink: 0; }
.ed-canvas { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; touch-action: none; cursor: default; }
.ed-ask { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 14px; background: rgba(255, 255, 255, .96); border: 2px solid #5CB1D6; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .3); }
.ed-ask[hidden] { display: none; }
.ed-ask-q { width: 100%; font-weight: 800; color: #0F172A; font-size: .9rem; } .ed-ask input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 10px; border: 1px solid #CBD5E1; background: #fff; color: #0F172A; }
.ed-ask button { width: 36px; border-radius: 50%; border: 0; background: #5CB1D6; color: #fff; font-weight: 900; }
.ed-info { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 6px; align-items: end; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.ed-field { display: grid; gap: 3px; font-size: .74rem; font-weight: 800; color: var(--muted); }
.ed-field input { width: 100%; min-width: 0; padding: 6px 8px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel-solid); color: var(--text); font-weight: 700; font-size: .88rem; }
.ed-field input[type="range"] { padding: 0; accent-color: var(--p1); }
.ed-switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .88rem; cursor: pointer; }
.ed-switch input { width: 38px; height: 22px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: color-mix(in srgb, var(--muted) 35%, transparent); position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.ed-switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.ed-switch input:checked { background: var(--s2); } .ed-switch input:checked::after { transform: translateX(16px); }
.ed-switch.small { font-size: .8rem; }
.ed-info .ed-switch { grid-column: 1 / -1; }
.ed-sprites { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; flex: 1; min-height: 140px; }
.ed-sprite-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); align-content: start; gap: 8px; padding: 10px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); overflow: auto; }
.ed-sprite, .ed-add { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel-solid); font-weight: 800; font-size: .72rem; min-height: 84px; align-content: center; }
.ed-sprite span:last-of-type { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-sprite.on { border-color: var(--p1); background: color-mix(in srgb, var(--p1) 10%, var(--panel-solid)); }
.ed-sprite-del { position: absolute !important; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .8rem; line-height: 20px; display: none !important; }
.ed-sprite.on .ed-sprite-del, .ed-sprite:hover .ed-sprite-del { display: block !important; }
.ed-add { border-style: dashed; color: var(--p1); } .ed-add b { font-size: 1.4rem; }
.ed-stagetile { display: grid; justify-items: center; align-content: start; gap: 6px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; font-size: .76rem; }
.ed-stagetile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ------------------------------------------------------------------ moslashuvchanlik */
/* Menyu yozuvlari joy yetmaganda yashiriladi (ekran o'quvchi uchun qoladi, belgi ustida — title) */
@media (max-width: 1560px) {
  .nav b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav a { padding: 8px 10px; font-size: 1.1rem; }
}
@media (max-width: 1180px) {
  .nav a { padding: 8px 10px; font-size: 1.1rem; }
  .ed-code { grid-template-columns: 64px 210px minmax(0, 1fr); }
  .lv-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; } .hero-art { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .learn, .explore { grid-template-columns: 1fr; } .learn-demo, .explore-stage { position: static; }
  .lesson-head { grid-template-columns: 1fr; } .steps { overflow-x: auto; }
  body.full main { height: auto; overflow: visible; display: block; }
  body.full .page { display: block; }
  .task { grid-template-columns: 1fr; height: auto; }
  .ed { grid-template-columns: 1fr; height: auto; }
  .ed.ed--big { grid-template-columns: 1fr; }
  .ed-right { order: -1; overflow: visible; }
  .ed-left { height: 78vh; }
  .ed-sprites { min-height: 0; }
}
@media (max-width: 760px) {
  :root { --top-h: 58px; }
  .top { padding: 0 12px; gap: 8px; }
  .nav { display: none; }
  .top-right { margin-left: auto; } .chips .chip-lvl, .chips .chip-coin { display: none; }
  .brand-name { display: none; }
  .site-btn { padding: 0 11px; } .site-btn b { display: none; }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; justify-content: space-around; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--panel-solid) 88%, transparent); backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
  .bottom-nav a { display: grid; justify-items: center; gap: 1px; padding: 4px 8px; border-radius: 12px; text-decoration: none; color: var(--muted) !important; font-size: .66rem; font-weight: 800; }
  .bottom-nav a span { font-size: 1.25rem; } .bottom-nav a.on { color: var(--p1) !important; background: var(--panel-2); } .bottom-nav a i { display: none; }
  .mentor-fab { bottom: 84px; padding: 8px; } .mentor-fab b { display: none; }
  body.full .mentor-fab { bottom: 84px; }
  .toasts { bottom: 150px; }
  .page { padding: 18px 16px 120px; }
  .hero { padding: 22px; border-radius: 22px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi b { font-size: 1.5rem; }
  .lv-strip { grid-template-columns: 1fr 1fr; }
  .onb { flex-direction: column; align-items: flex-start; }
  .chart-wrap { flex-direction: column; }
  .ed-code { grid-template-columns: 1fr; grid-template-rows: auto 190px minmax(0, 1fr); }
  .ed-cats { flex-direction: row; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  .ed-cat { min-width: 60px; }
  .ed-palette { border-right: 0; border-bottom: 1px solid var(--line); }
  .ed-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ed-info .ed-field:first-child { grid-column: 1 / -1; }
  .ed-sprites { grid-template-columns: 1fr 84px; }
  .studio-actions { margin-left: 0; width: 100%; } .studio-actions .btn { flex: 1; }
  .seg button { padding: 5px 7px; }
  .cert-meta { gap: 10px; } .cert-seal { width: 60px; height: 60px; font-size: 2rem; }
  .finish-stats div { min-width: 90px; padding: 10px 14px; }
}

/* ------------------------------------------------------------------ chop etish (sertifikat) */
@media print {
  @page { size: A4 landscape; margin: 0; }
  body { background: #fff !important; } body::before { display: none; }
  .top, .bottom-nav, .mentor-fab, .mentor, .toasts, .no-print, .skip { display: none !important; }
  .page { padding: 0 !important; max-width: none; }
  .certificate { box-shadow: none; border-radius: 0; width: 100vw; max-width: none; height: 100vh; aspect-ratio: auto; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* 2COIN: balans belgisi va qoidalar (Yutuqlar sahifasi) */
.chip-coin small { color: #B45309; }
.coin-rules ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; }
.coin-rules li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 12px; background: var(--panel-2); font-weight: 700; }
.coin-rules b { color: #B45309; white-space: nowrap; }
:root[data-theme="dark"] .coin-rules b, :root[data-theme="dark"] .chip-coin small { color: #FCD34D; }


/* Akkaunt (saytdagi foydalanuvchi menyusi kabi) */
.acct { position: relative; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-weight: 800; font-size: .88rem; }
.acct-btn b { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-btn i { font-style: normal; color: var(--muted); font-size: .75rem; }
.acct-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 800; flex-shrink: 0; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; min-width: 230px; padding: 6px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; animation: pop .2s; }
.acct-menu[hidden] { display: none; }
.acct-head { display: grid; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acct-head small { color: var(--muted); font-weight: 700; }
.acct-menu a, .acct-out { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--text) !important; font-weight: 700; font-size: .9rem; border: 0; background: transparent; width: 100%; text-align: left; }
.acct-menu a:hover, .acct-menu a:focus, .acct-out:hover, .acct-out:focus { background: var(--panel-2); }
.acct-menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--line); }
.acct-out { color: var(--danger) !important; }
.acct-login { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 12px; background: var(--grad); color: #fff !important; font-weight: 800; text-decoration: none; }
@media (max-width: 760px) { .acct-btn b, .acct-btn i { display: none; } .acct-btn { padding: 0 4px; } }
/* Tor telefon: yuqori panel sig'ishi uchun XP/seriya chiplari va mavzu tugmasi
   yashiriladi (ular bosh sahifada va «Qulayliklar» oynasida bor) */
@media (max-width: 520px) {
  .chips, #theme { display: none; }
  .top { gap: 6px; } .top-right { gap: 6px; }
}

/* Dizayn bezaklari bilan avatar: ramka/effekt o'rovchisi tugma ichida joyini saqlasin */
.acct-btn .dz-avatar, .board .dz-avatar { flex-shrink: 0; }
img.av { object-fit: cover; }
.acct-btn b .pro-badge, .acct-head .pro-badge { margin-left: 6px; }
