:root {
  --bg: #f5f3ff; --card: #fff; --ink: #1d1442; --muted: #6e6a8f; --line: #ebe7fb; --soft: #f3f0ff;
  --violet: #7c5cff; --violet-2: #9b7bff; --pink: #ff4d8d; --sky: #0ea5e9; --green: #16c172; --orange: #ff8a1f; --yellow: #ffb81c; --red: #f43f5e; --gray: #9a97b5;
  --grad: linear-gradient(135deg, #7c5cff 0%, #b55cff 50%, #ff4d8d 100%);
  --r: 20px; --r-sm: 12px;
  --sh: 0 1px 2px rgba(40, 20, 120, .05), 0 8px 24px -8px rgba(60, 30, 160, .14);
  --sh-lg: 0 20px 50px -12px rgba(70, 30, 180, .28);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--violet); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; } h3 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
p { margin: 0; }
small, .small { font-size: .82rem; } .tiny { font-size: .75rem; }
.muted { color: var(--muted); } .center { text-align: center; }
.grow { flex: 1; min-width: 0; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.ic { width: 20px; height: 20px; flex: none; }
.ok-t { color: var(--green); } .bad-t { color: var(--red); }
.plus-n { color: var(--green); font-weight: 800; } .minus-n { color: var(--red); font-weight: 800; }

/* ---------- tugmalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 11px 18px; font: inherit; font-weight: 700; cursor: pointer; background: var(--soft); color: var(--ink); transition: transform .12s, box-shadow .2s, background .2s; white-space: nowrap; text-decoration: none; }
.btn:hover { transform: translateY(-1px); } .btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(124, 92, 255, .6); }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--violet-2); color: var(--violet); }
.btn.green { background: var(--green); color: #fff; } .btn.red { background: var(--red); color: #fff; animation: pulse 1.6s infinite; }
.btn.red-soft { background: #ffe8ee; color: var(--red); }
.btn.coin { background: linear-gradient(135deg, #ffc93c, #ff8a1f); color: #fff; }
.btn.tg { background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff; box-shadow: 0 10px 24px -8px rgba(34, 158, 217, .7); }
.btn.xl { width: 100%; padding: 15px 20px; font-size: 1.05rem; border-radius: 16px; }
.btn.sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--sh); flex: none; font-size: 18px; }
.icon-btn:hover { color: var(--violet); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, .5); } 50% { box-shadow: 0 0 0 8px rgba(244, 63, 94, 0); } }

/* ---------- forma ---------- */
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(124, 92, 255, .12); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--violet); padding: 0; flex: none; }
input[type=color] { padding: 3px; height: 42px; }
textarea { resize: vertical; }
label, .field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .9rem; }
label small { font-weight: 400; }
label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.form { gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e6a8f' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; width: auto; min-width: 160px; }
.form select { width: 100%; }

/* ---------- kirish ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-hero { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 48px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.login-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.03em; max-width: 520px; }
.grad { background: linear-gradient(90deg, #fff6a8, #ffd1e6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; }
.perks .ic { width: 38px; height: 38px; padding: 9px; background: rgba(255, 255, 255, .2); border-radius: 12px; }
.floaters span { position: absolute; font-size: 54px; opacity: .9; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
.floaters span:nth-child(1) { right: 10%; top: 12%; } .floaters span:nth-child(2) { right: 22%; bottom: 14%; animation-delay: -2s; }
.floaters span:nth-child(3) { right: 6%; top: 48%; animation-delay: -4s; font-size: 40px; } .floaters span:nth-child(4) { left: 52%; top: 6%; animation-delay: -3s; font-size: 36px; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-16px) rotate(6deg); } }
.login-card { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 48px clamp(24px, 5vw, 80px); max-width: 560px; width: 100%; margin: 0 auto; }
.login-card h2 { font-size: 1.8rem; font-weight: 800; }
.tg-wait { display: flex; gap: 12px; align-items: center; background: #e9f6fd; border-radius: 14px; padding: 14px; font-size: .92rem; }
.note { background: #fff6e5; color: #9a5b00; padding: 10px 12px; border-radius: 12px; font-size: .88rem; }
.staff-login { background: #fff; border-radius: 16px; padding: 4px 16px; box-shadow: var(--sh); }
.staff-login summary { cursor: pointer; padding: 12px 0; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--muted); list-style: none; }
.staff-login form { padding-bottom: 16px; }
.dev { background: #fff; border: 2px dashed #d9cfff; border-radius: 16px; padding: 14px; font-size: .88rem; }
.dev-users { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.logo img { width: 38px; height: 38px; }
.logo.big { color: #fff; font-size: 1.3rem; } .logo.big img { width: 48px; height: 48px; border-radius: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }

/* ---------- qobiq ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 14px; gap: 22px; }
.side .logo { padding: 0 10px; }
.side nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow-y: auto; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; color: var(--muted); font-weight: 600; transition: background .15s, color .15s; }
.side nav a:hover { background: var(--soft); color: var(--ink); }
.side nav a.on { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(124, 92, 255, .8); }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; background: var(--soft); color: var(--ink); }
.me-card span { display: flex; flex-direction: column; min-width: 0; } .me-card b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; } .me-card small { color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 16px clamp(16px, 3vw, 36px); background: rgba(245, 243, 255, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top h1 { font-size: 1.45rem; font-weight: 800; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { display: flex; align-items: center; gap: 10px; }
.coin-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; background: linear-gradient(135deg, #fff3c4, #ffe08a); color: #8a5a00; font-weight: 800; box-shadow: 0 4px 12px -4px rgba(255, 184, 28, .7); }
.coin-chip .ic { color: #e89a00; }
.coin-chip.neg { background: linear-gradient(135deg, #ffe1e7, #ffc2cd); color: #b4123a; }
.top-ava { display: none; }
#page { padding: 8px clamp(16px, 3vw, 36px) 48px; max-width: 1280px; width: 100%; }
.page-in { animation: rise .3s ease backwards; display: flex; flex-direction: column; gap: 18px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

/* ---------- kartochkalar ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 12px; min-width: 0; color: var(--ink); }
.card.soft { background: var(--soft); box-shadow: none; font-weight: 400; gap: 8px; }
a.card { transition: transform .15s, box-shadow .2s; } a.card:hover, .card.click:hover { transform: translateY(-2px); box-shadow: var(--sh-lg); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-h.wrap { flex-wrap: wrap; }
.link-sm { font-size: .85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; } .link-sm .ic { width: 16px; height: 16px; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.toolbar.wrap { flex-wrap: wrap; }
.sec { margin-top: 6px; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--muted); align-self: flex-start; }
.back:hover { color: var(--violet); }

.hero { position: relative; overflow: hidden; background: var(--grad); color: #fff; border-radius: 26px; padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; box-shadow: var(--sh-lg); }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .12); right: -60px; top: -90px; }
.hero h2 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 900; max-width: 560px; }
.hero h2.huge { font-size: clamp(2.2rem, 5vw, 3.4rem); display: flex; align-items: center; gap: 12px; } .hero h2.huge .ic { width: 1em; height: 1em; }
.hero-hi { font-weight: 700; opacity: .9; margin-bottom: 4px; }
.hero-sub { opacity: .92; margin-top: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hero-coin { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, .18); border-radius: 22px; padding: 14px 22px; backdrop-filter: blur(6px); }
.hero-coin .ic { width: 34px; height: 34px; color: #ffe27a; } .hero-coin b { font-size: 2rem; font-weight: 900; line-height: 1.1; }
.hero .lvl { background: rgba(255, 255, 255, .22); color: #fff; }
.teacher-hero { background: linear-gradient(135deg, #0ea5e9, #7c5cff); }
.games-hero { background: linear-gradient(135deg, #ff8a1f, #ff4d8d 60%, #b55cff); }
.coin-hero { background: linear-gradient(135deg, #ffb81c, #ff8a1f 55%, #ff4d8d); }
.emoji-big { font-size: 64px; line-height: 1; position: relative; z-index: 1; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .15)); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { background: #fff; border-radius: 18px; padding: 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--sh); }
.stat > .ic { width: 44px; height: 44px; padding: 11px; border-radius: 14px; color: #fff; background: var(--c); }
.stat b { font-size: 1.15rem; display: block; } .stat small { color: var(--muted); }
.violet { --c: var(--violet); } .orange { --c: var(--orange); } .green { --c: var(--green); } .pink { --c: var(--pink); } .sky { --c: var(--sky); } .yellow { --c: var(--yellow); } .red { --c: var(--red); } .gray { --c: var(--gray); }
.ico-box { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--c, var(--violet)) 14%, white); color: var(--c, var(--violet)); flex: none; }
.ico-box.big { width: 54px; height: 54px; border-radius: 16px; } .ico-box.big .ic { width: 26px; height: 26px; }

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile-stat { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 4px; position: relative; overflow: hidden; }
.tile-stat::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: color-mix(in srgb, var(--c) 10%, transparent); }
.tile-stat .ico-box { margin-bottom: 8px; } .tile-stat b { font-size: 1.9rem; font-weight: 900; line-height: 1.1; } .tile-stat small { color: var(--muted); font-weight: 600; } .tile-stat em { font-style: normal; font-size: .8rem; color: var(--muted); }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-weight: 700; font-size: .82rem; background: color-mix(in srgb, var(--c, var(--violet)) 14%, white); color: color-mix(in srgb, var(--c, var(--violet)) 85%, black); align-self: flex-start; }
.pill.xs { padding: 3px 9px; font-size: .74rem; } .pill .ic { width: 14px; height: 14px; }
.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.lvl { display: inline-flex; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 800; background: color-mix(in srgb, var(--c, var(--violet)) 15%, white); color: var(--c, var(--violet)); white-space: nowrap; }

.list { display: flex; flex-direction: column; gap: 4px; }
.list.scroll { max-height: 460px; overflow-y: auto; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 0; background: none; font: inherit; color: inherit; text-align: left; width: 100%; }
.row.link { cursor: pointer; } .row.link:hover { background: var(--soft); }
.row .ic:last-child { color: var(--gray); }

/* jonli dars / davom ettirish */
.live { flex-direction: row; align-items: center; }
.live.soon { background: linear-gradient(135deg, #fff1f3, #fff); outline: 2px solid #ffd0d9; }
.live h3 { font-size: 1.2rem; }
.continue { flex-direction: row; align-items: center; gap: 16px; }
.thumb { width: 74px; height: 74px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.thumb .ic { width: 34px; height: 34px; }
.continue h3 { margin: 2px 0 8px; }
.go { width: 42px; height: 42px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--violet); flex: none; }
.games-promo { flex-direction: row; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #16c172, #0ea5e9); color: #fff; }
.games-promo h3 { color: #fff; font-size: 1.2rem; } .games-promo p { opacity: .95; margin: 4px 0 8px; }
.alert-card { flex-direction: row; align-items: center; background: linear-gradient(135deg, #fff4e5, #fff); outline: 2px solid #ffe0b8; } .alert-card > .ic:first-child { color: var(--orange); width: 28px; height: 28px; }

.bar { display: block; height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; position: relative; min-width: 60px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--grad); transition: width .5s; }
.bar.green i { background: var(--green); } .bar.orange i { background: var(--orange); } .bar.red i { background: var(--red); }
.bar.light { background: rgba(255, 255, 255, .3); } .bar.light i { background: #fff; }
.bar.big { height: 14px; overflow: visible; } .bar.big i { border-radius: 99px; }
.bar em { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--ink); opacity: .35; }
.ring { --deg: calc(var(--p) * 3.6deg); width: var(--s); height: var(--s); border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: radial-gradient(closest-side, #fff 76%, transparent 78%), conic-gradient(var(--violet) var(--deg), var(--soft) 0); }
.ring b { font-size: calc(var(--s) * .26); font-weight: 800; }

.mini-board, .board-list { display: flex; flex-direction: column; gap: 4px; }
.mb-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; }
.mb-row.me { background: linear-gradient(90deg, #efe9ff, #fff); outline: 2px solid #ddd2ff; }
.rk { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--soft); color: var(--muted); flex: none; }
.rk.r1 { background: #ffd54a; color: #7a5200; } .rk.r2 { background: #e3e6ef; color: #4b5068; } .rk.r3 { background: #ffcfa3; color: #7a3d00; }
.coin-n { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: #b07800; white-space: nowrap; } .coin-n .ic { width: 17px; height: 17px; color: var(--yellow); }

.ava { --c: var(--violet); width: 40px; height: 40px; border-radius: 13px; display: inline-grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #ff4d8d)); flex: none; letter-spacing: .02em; }
.ava.xs { width: 22px; height: 22px; border-radius: 7px; font-size: .6rem; } .ava.sm { width: 34px; height: 34px; border-radius: 11px; font-size: .75rem; }
.ava.lg { width: 60px; height: 60px; border-radius: 20px; font-size: 1.2rem; } .ava.xl { width: 88px; height: 88px; border-radius: 28px; font-size: 1.8rem; }

/* reyting podium */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 14px; padding: 10px 0 0; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; width: min(160px, 30%); }
.pod b { font-size: .95rem; text-align: center; }
.pod-col { width: 100%; border-radius: 18px 18px 6px 6px; display: grid; place-items: start center; padding-top: 10px; font-size: 32px; box-shadow: var(--sh); }
.pod.p1 .pod-col { height: 120px; background: linear-gradient(180deg, #ffe27a, #ffb81c); } .pod.p2 .pod-col { height: 88px; background: linear-gradient(180deg, #eef0f6, #cfd3e2); } .pod.p3 .pod-col { height: 66px; background: linear-gradient(180deg, #ffd9b8, #ffab66); }
.pod.p1 .ava { width: 72px; height: 72px; border-radius: 24px; outline: 4px solid #ffd54a; }
.pod.me b { color: var(--violet); }

.seg { display: inline-flex; background: #fff; border-radius: 14px; padding: 4px; gap: 2px; box-shadow: var(--sh); flex-wrap: wrap; }
.seg button { border: 0; background: none; font: inherit; font-weight: 700; padding: 8px 14px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--c, var(--violet)); color: #fff; }
.seg button small { opacity: .75; margin-left: 2px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #fff; font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 14px; cursor: pointer; color: var(--muted); box-shadow: var(--sh); white-space: nowrap; }
.tabs button.on { background: var(--ink); color: #fff; }
.tabs.sm button { padding: 7px 12px; box-shadow: none; background: var(--soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px 6px 6px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip:hover { border-color: var(--violet-2); } .chip small { color: var(--muted); font-weight: 500; }
.chip.big { padding: 10px 14px; border-radius: 14px; } .chip .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); }

/* darslar */
.course-head { flex-direction: row; align-items: center; gap: 16px; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lesson-card { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--sh); display: flex; flex-direction: column; gap: 10px; color: var(--ink); transition: transform .15s, box-shadow .2s; border: 2px solid transparent; }
.lesson-card:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); }
.lesson-card.done { border-color: #c9f2dd; } .lesson-card.locked { opacity: .55; filter: grayscale(.5); cursor: not-allowed; }
.lesson-card.locked:hover { transform: none; box-shadow: var(--sh); }
.lc-top { display: flex; justify-content: space-between; align-items: center; }
.lc-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: var(--grad); color: #fff; flex: none; }
.lc-n.sm { width: 30px; height: 30px; border-radius: 10px; font-size: .85rem; }
.lc-lock { color: var(--gray); } .lc-ok { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.lesson-card h4 { font-size: 1rem; }
.lc-meta { display: flex; gap: 10px; color: var(--muted); font-size: .8rem; } .lc-meta span { display: inline-flex; gap: 4px; align-items: center; } .lc-meta .ic { width: 14px; height: 14px; }

.lesson-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #0b0820; box-shadow: var(--sh-lg); user-select: none; isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); -webkit-tap-highlight-color: transparent; }
.player video, .player iframe, .player > div:first-child { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wm { position: absolute; z-index: 3; pointer-events: none; color: rgba(255, 255, 255, .42); font-weight: 700; font-size: clamp(10px, 1.4vw, 14px); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); transition: left 2s, top 2s; white-space: nowrap; }
/* iframe pleerdan balandroq: YouTube sarlavhasi, logotipi va "boshqa videolar" paneli qora chetlarda qoladi va kesiladi */
.player.yt iframe { pointer-events: none; top: -70px; height: calc(100% + 140px); }
.yt-shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.yt-big { position: absolute; inset: 0; margin: auto; z-index: 3; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; pointer-events: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .2s; }
.yt-big .ic { width: 34px; height: 34px; }
.player.yt.paused .yt-big { opacity: 1; }
.yt-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 6px; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(10, 6, 30, .8)); color: #fff; opacity: 0; transition: opacity .25s; }
.player.yt.paused .yt-bar, .player.yt.show .yt-bar { opacity: 1; }
.yt-bar button { border: 0; background: none; color: #fff; cursor: pointer; padding: 6px; border-radius: 10px; display: grid; place-items: center; font: inherit; font-weight: 800; font-size: .85rem; }
.yt-bar button:hover { background: rgba(255, 255, 255, .15); }
.yb-rate { min-width: 46px; }
.yb-time { font-size: .8rem; font-variant-numeric: tabular-nums; white-space: nowrap; opacity: .9; }
.yb-seek { flex: 1; min-width: 60px; padding: 0; height: 4px; border: 0; accent-color: #b55cff; background: transparent; box-shadow: none; cursor: pointer; }
/* To'liq ekran: qora fon ustida markazda 16:9 quti (iframe hiylasi buzilmasin) */
body.fs-on { overflow: hidden; }
body.fs-on .page-in { animation: none; }
body.fs-on::before { content: ''; position: fixed; inset: 0; z-index: 999; background: #000; }
.player.pseudo-fs { position: fixed; z-index: 1000; inset: 0; margin: auto; width: min(100vw, 177.78vh); height: min(100vh, 56.25vw); width: min(100vw, 177.78dvh); height: min(100dvh, 56.25vw); aspect-ratio: auto; border-radius: 0; box-shadow: none; -webkit-mask-image: none; }
.player.pseudo-fs .yt-bar { padding-bottom: max(10px, env(safe-area-inset-bottom)); padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
.player.pseudo-fs .wm { font-size: 14px; }

.watch-meter { background: var(--soft); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.wm-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.desc { color: #3b3460; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.step { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--sh); }
.step > .ic { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--soft); color: var(--violet); }
.step.ok > .ic { background: var(--green); color: #fff; } .step.now > .ic { background: var(--grad); color: #fff; }
.step.locked { opacity: .65; } .step.locked > .ic { color: var(--gray); }
.q { border: 0; padding: 0; margin: 0 0 16px; } .q legend { font-weight: 700; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; padding: 0; }
.qn { width: 24px; height: 24px; border-radius: 8px; background: var(--soft); color: var(--violet); display: grid; place-items: center; font-size: .8rem; flex: none; }
.opts { display: grid; gap: 6px; }
.opt { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 500; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--violet-2); } .opt:has(input:checked) { border-color: var(--violet); background: #f4f0ff; }
.q.right legend .qn { background: var(--green); color: #fff; } .q.wrong legend .qn { background: var(--red); color: #fff; }
.opt.correct { border-color: var(--green); background: #e8faf1; }
.q.wrong .opt:has(input:checked):not(.correct) { border-color: var(--red); background: #ffeef1; }
.result-box { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; padding: 12px; border-radius: 14px; background: var(--soft); }
.hw-task { background: #fffbea; border-radius: 12px; padding: 12px; border-left: 4px solid var(--yellow); }
.feedback { display: flex; gap: 10px; background: #eef8ff; border-radius: 12px; padding: 12px; } .feedback .ic { color: var(--sky); }
.answer { background: var(--soft); border-radius: 12px; padding: 12px; white-space: normal; word-break: break-word; font-size: .92rem; }

/* o'yinlar */
.sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.set { text-align: left; border: 0; font: inherit; cursor: default; }
.set.click { cursor: pointer; }
.set-h { display: flex; gap: 12px; align-items: center; }
.set-emoji { width: 52px; height: 52px; border-radius: 16px; background: var(--soft); display: grid; place-items: center; font-size: 28px; flex: none; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mode { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; padding: 10px 4px; border-radius: 14px; font-weight: 700; font-size: .72rem; line-height: 1.15; min-height: 64px; background: color-mix(in srgb, var(--c) 12%, white); color: color-mix(in srgb, var(--c) 80%, black); transition: transform .12s, background .15s; }
.mode:hover { transform: translateY(-2px); background: var(--c); color: #fff; }
.game-wrap { max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.game-top { display: flex; align-items: center; gap: 12px; }
.g-score { font-weight: 900; font-size: 1.2rem; color: var(--violet); min-width: 28px; text-align: right; }
.flip { perspective: 1200px; height: 280px; cursor: pointer; outline: none; }
.flip-in { position: relative; width: 100%; height: 100%; transition: transform .5s; transform-style: preserve-3d; }
.flip.on .flip-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; box-shadow: var(--sh-lg); }
.face b { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 900; }
.face small { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .7; } .face em { font-style: normal; opacity: .7; font-size: .85rem; }
.f-front { background: var(--grad); color: #fff; } .f-back { background: #fff; transform: rotateY(180deg); color: var(--ink); border: 3px solid #e5dcff; }
.say { width: 44px; height: 44px; border-radius: 50%; }
.f-front .say { background: rgba(255, 255, 255, .22); box-shadow: none; }
.game-wrap .row-btns { justify-content: center; } .game-wrap .row-btns .btn { flex: 1; max-width: 240px; padding: 14px; }
.mtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { min-height: 76px; border-radius: 18px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; padding: 10px; transition: transform .12s, background .15s, border-color .15s, opacity .25s; color: var(--ink); }
.tile.en { color: var(--violet); }
.tile:hover { transform: translateY(-2px); } .tile.sel { border-color: var(--violet); background: #f1ecff; }
.tile.ok { border-color: var(--green); background: #e5f9ef; } .tile.bad { border-color: var(--red); background: #ffecef; animation: shake .35s; }
.tile.gone { opacity: 0; pointer-events: none; transform: scale(.85); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.q-card { align-items: center; text-align: center; padding: 34px 20px; } .q-card h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); display: flex; gap: 12px; align-items: center; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opt { padding: 18px 14px; border-radius: 18px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; cursor: pointer; color: var(--ink); transition: transform .12s; }
.q-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--violet-2); }
.q-opt.ok { background: var(--green); color: #fff; border-color: var(--green); } .q-opt.bad { background: var(--red); color: #fff; border-color: var(--red); animation: shake .35s; }
.hint { letter-spacing: .2em; font-family: ui-monospace, monospace; }
.write-form { display: flex; gap: 10px; } .write-form input { font-size: 1.2rem; padding: 14px 16px; border-radius: 16px; }
.write-form input.ok { border-color: var(--green); background: #e8faf1; } .write-form input.bad { border-color: var(--red); background: #ffeef1; }
.write-res { text-align: center; font-size: 1.1rem; min-height: 28px; }
.game-end { align-items: center; text-align: center; padding: 34px; } .game-end h2 { font-size: 2.4rem; font-weight: 900; }
.big-plus { font-size: 1.8rem; font-weight: 900; color: var(--green); }

/* o'qituvchi */
.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.group-card { border-top: 5px solid var(--c); gap: 8px; }
.gc-top { display: flex; justify-content: space-between; }
.gc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .84rem; } .gc-meta span { display: inline-flex; align-items: center; gap: 5px; } .gc-meta .ic { width: 15px; height: 15px; }
.gc-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; color: var(--violet); background: var(--soft); padding: 6px 10px; border-radius: 10px; align-self: flex-start; } .gc-live .ic { width: 15px; height: 15px; }
.gc-wrap { position: relative; } .gc-wrap .group-card { height: 100%; } .gc-edit { position: absolute; right: 12px; top: 14px; width: 34px; height: 34px; }
.group-head { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; } .group-head h2 { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin: 0 -8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px; white-space: nowrap; }
.tbl td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tr.dim td { opacity: .55; }
.who { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.pct-cell { display: flex; align-items: center; gap: 8px; min-width: 120px; } .pct-cell .bar { flex: 1; } .pct-cell.w { min-width: 160px; }
.action-bar { position: sticky; bottom: 16px; z-index: 10; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 18px; box-shadow: var(--sh-lg); }
.action-bar input { width: auto; flex: 1; min-width: 120px; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .15); color: #fff; }
.action-bar input[type=number] { flex: 0 0 90px; min-width: 0; }
.action-bar input::placeholder { color: rgba(255, 255, 255, .55); }
.att-list { display: flex; flex-direction: column; }
.att-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.att-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.att { border: 1.5px solid var(--line); background: #fff; font: inherit; font-weight: 700; font-size: .82rem; padding: 7px 12px; border-radius: 10px; cursor: pointer; color: var(--muted); }
.att.on { background: var(--c); border-color: var(--c); color: #fff; }
.sticky-save { position: sticky; bottom: 12px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); padding: 10px; border-radius: 16px; margin-top: 4px; }
.sticky-save.full { grid-column: 1 / -1; box-shadow: var(--sh); }
.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.sub-lesson { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--violet); font-size: .9rem; } .sub-lesson .ic { width: 16px; height: 16px; }
.sub .sc { width: 76px; }
.invite { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, #e9f6fd, #fff); }
.search { position: relative; display: flex; align-items: center; } .search .ic { position: absolute; left: 12px; color: var(--gray); width: 18px; height: 18px; } .search input { padding-left: 38px; min-width: 220px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.day { flex-direction: row; } .day input { display: none; }
.day span { display: grid; place-items: center; width: 46px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; }
.day input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.q-edit { background: var(--soft); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; font-weight: 400; }
.q-opts-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.opt-edit { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.set-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; font-weight: 500; }
.set-row input { width: 100px; text-align: center; font-weight: 700; }
.profile { align-items: center; text-align: center; padding: 30px; }
.lib-row { border-bottom: 1px solid var(--line); border-radius: 0; }

/* holatlar */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 50px 20px; color: var(--muted); }
.empty > .ic { width: 64px; height: 64px; padding: 16px; border-radius: 22px; background: #fff; color: var(--violet); box-shadow: var(--sh); }
.empty h3 { color: var(--ink); }
.loading, .boot { display: grid; place-items: center; padding: 60px; } .boot { min-height: 100vh; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #e2dbff; border-top-color: var(--violet); animation: spin .8s linear infinite; flex: none; }
.spinner.sm { width: 22px; height: 22px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* toast / modal */
#toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 600; box-shadow: var(--sh-lg); animation: rise .25s; transition: opacity .4s, transform .4s; }
.toast .ic { color: #6ef0b0; } .toast.err .ic { color: #ff8fa3; } .toast.coin .ic { color: var(--yellow); }
.toast.out { opacity: 0; transform: translateY(10px); }
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(29, 20, 66, .45); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; overflow-y: auto; }
.modal-bg.out { opacity: 0; transition: opacity .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; background: #fff; border-radius: 26px; padding: 26px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--sh-lg); animation: pop .25s cubic-bezier(.2, 1.4, .4, 1); }
.modal.wide { width: min(760px, 100%); }
.modal h2 { padding-right: 40px; display: flex; gap: 8px; align-items: center; }
.modal-x { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border-radius: 12px; border: 0; background: var(--soft); cursor: pointer; display: grid; place-items: center; color: var(--muted); }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
.notices { display: flex; flex-direction: column; gap: 8px; }
.notice { background: var(--soft); border-radius: 14px; padding: 12px; font-size: .92rem; } .notice.new { background: #efe9ff; outline: 2px solid #ddd2ff; } .notice small { color: var(--muted); }
.celebrate { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 10px 0; overflow: hidden; }
.big-coin { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #fff1a8, #ffb81c 60%, #e08a00); color: #8a5a00; box-shadow: 0 14px 30px -8px rgba(255, 160, 0, .7); animation: coinspin 1.2s ease; }
.big-coin .ic { width: 52px; height: 52px; }
@keyframes coinspin { from { transform: rotateY(0) scale(.4); } to { transform: rotateY(720deg) scale(1); } }
.plus { font-size: 2rem; font-weight: 900; color: var(--green); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -10px; left: var(--x); width: 9px; height: 14px; background: var(--c); border-radius: 2px; animation: drop 1.6s var(--d) ease-in forwards; transform: rotate(var(--r)); }
@keyframes drop { to { transform: translateY(380px) rotate(calc(var(--r) + 540deg)); opacity: 0; } }

/* muddat va shtraf */
.card.due { flex-direction: row; align-items: center; gap: 12px; }
.card.due.soon { background: linear-gradient(135deg, #fff6e8, #fff); outline: 2px solid #ffe2b8; }
.card.due.over { background: linear-gradient(135deg, #fff0f2, #fff); outline: 2px solid #ffd0d9; flex-direction: column; align-items: stretch; }
a.card.due.over, .lesson-layout .card.due.over { flex-direction: row; align-items: center; }
.rules-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.att-hist { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.ah { border-radius: 12px; padding: 8px 4px; text-align: center; background: color-mix(in srgb, var(--c) 14%, white); color: color-mix(in srgb, var(--c) 80%, black); display: flex; flex-direction: column; }
.ah small { font-size: .7rem; font-weight: 700; }
.tbl.rep td, .tbl.rep th { white-space: nowrap; }
.tbl.rep .dcol { text-align: center; padding: 6px 4px; }
.tbl.rep tr.link { cursor: pointer; } .tbl.rep tr.link:hover td { background: var(--soft); }
.tbl.rep tr.tot td { background: var(--soft); font-weight: 700; }
.att-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: .75rem; font-weight: 900; background: color-mix(in srgb, var(--c) 16%, white); color: color-mix(in srgb, var(--c) 85%, black); }

/* mashqlar */
.gap-in { display: inline-block; width: 120px; padding: 4px 10px; margin: 0 4px; border-radius: 10px; font-weight: 700; color: var(--violet); }
.q > .gap-in { width: 100%; margin: 6px 0 0; }
.q.right .gap-in { border-color: var(--green); background: #e8faf1; } .q.wrong .gap-in { border-color: var(--red); background: #ffeef1; }
.q-fix { margin: 6px 0 0; font-size: .88rem; color: var(--red); } .q-fix:empty { display: none; }
.order-ans { min-height: 46px; border: 2px dashed var(--line); border-radius: 12px; padding: 6px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.order-pool { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-w { border: 1.5px solid #d9cfff; background: #f4f0ff; color: var(--violet); font: inherit; font-weight: 700; padding: 6px 12px; border-radius: 10px; cursor: pointer; }
.order-ans .chip-w { background: var(--violet); color: #fff; border-color: var(--violet); }
.q.right .order-ans { border-color: var(--green); } .q.wrong .order-ans { border-color: var(--red); }
.q-edit[data-type=mcq] .only-text, .q-edit:not([data-type=mcq]) .only-mcq { display: none; }
.q-edit .qt { min-width: 0; width: auto; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; } .photos:empty { display: none; }
.ph { position: relative; width: 88px; height: 88px; border-radius: 14px; overflow: hidden; background: var(--soft); display: block; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph-x { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border-radius: 8px; border: 0; background: rgba(29, 20, 66, .7); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ph-x .ic { width: 14px; height: 14px; }
.file-btn { flex-direction: row; cursor: pointer; align-self: flex-start; }
.words-card { flex-direction: row; align-items: center; gap: 12px; }

/* yangi o'yinlar */
.sprint-top { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.timer { font-size: 2.4rem; font-weight: 900; color: var(--violet); font-variant-numeric: tabular-nums; } .timer.hot { color: var(--red); }
.sprint-card h3 { font-size: 1.5rem; color: var(--violet); } .sp-eq { font-size: 1.4rem; color: var(--gray); margin: 4px 0; }
.flash-ok { animation: fok .35s; } .flash-bad { animation: fbad .35s; }
@keyframes fok { 50% { background: #e5f9ef; } } @keyframes fbad { 50% { background: #ffecef; } }
.sc-ans { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.sc-slot { width: 38px; height: 46px; border-radius: 12px; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; text-transform: lowercase; background: #fff; }
.sc-ans.ok .sc-slot { border-color: var(--green); background: #e8faf1; } .sc-ans.bad .sc-slot { border-color: var(--red); background: #ffeef1; }
.sc-pool { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.sc-l { width: 50px; height: 54px; border-radius: 14px; border: 0; background: var(--grad); color: #fff; font: inherit; font-weight: 900; font-size: 1.3rem; cursor: pointer; box-shadow: var(--sh); }
.sc-l:disabled { opacity: .25; }
.listen-btn { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer; margin: 10px auto; box-shadow: var(--sh-lg); }
.listen-btn .ic { width: 42px; height: 42px; }

/* ogohlantirish oynasi */
.rules-bg { z-index: 300; background: rgba(29, 20, 66, .7); }
.modal.rules { gap: 12px; border-top: 6px solid var(--red); }
.rules-top { display: flex; align-items: center; gap: 12px; }
.rules-ico { width: 52px; height: 52px; border-radius: 16px; background: #ffe8ee; color: var(--red); display: grid; place-items: center; flex: none; }
.rules-ico .ic { width: 28px; height: 28px; }
.rules-law { background: #fff4f6; border-radius: 14px; padding: 12px 14px; font-size: .92rem; }
.rules-law ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.bind { min-height: 100vh; display: grid; place-items: center; padding: 20px; } .bind .card { max-width: 420px; align-items: center; text-align: center; padding: 30px 24px; }
body.in-tg .top { padding-top: 10px; }

/* kunlik maqsad, takrorlash */
.card.daily { flex-direction: row; align-items: center; gap: 16px; background: linear-gradient(135deg, #fff7ea, #fff); outline: 2px solid #ffe4bd; }
.card.daily.done { background: linear-gradient(135deg, #eafbf2, #fff); outline-color: #c4f0d9; }
.daily-flame { width: 78px; height: 78px; border-radius: 24px; background: linear-gradient(160deg, #ffb81c, #ff5a3c); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; box-shadow: 0 10px 22px -8px rgba(255, 90, 60, .7); }
.daily-flame span { font-size: 22px; line-height: 1; } .daily-flame b { font-size: 1.6rem; line-height: 1.05; } .daily-flame small { font-size: .68rem; font-weight: 700; opacity: .9; }
.card.daily:not(.done) .daily-flame { filter: saturate(.75); }
.goal-items { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.goal { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: .9rem; }
.goal small { color: var(--muted); font-weight: 600; } .goal .ic { width: 18px; height: 18px; color: var(--orange); }
.goal.ok { background: #e8faf1; border-color: #b9ecd2; color: #0d7a4a; } .goal.ok .ic { color: var(--green); }
.review-card { flex-direction: row; align-items: center; gap: 12px; }

/* do'kon */
.shop-hero { background: linear-gradient(135deg, #16c172, #0ea5e9 55%, #7c5cff); }
.btn.ghost.light { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .35); color: #fff; margin-top: 10px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.shop-item { align-items: center; text-align: center; gap: 8px; border: 0; font: inherit; }
.shop-item.dim { opacity: .75; } .shop-item .bar { width: 100%; }
.si-emoji { width: 84px; height: 84px; border-radius: 26px; background: var(--soft); display: grid; place-items: center; font-size: 46px; }
.si-price { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 1.2rem; color: #b07800; } .si-price .ic { color: var(--yellow); }
.shop-item .btn { width: 100%; }
.si-mini { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; font-size: 22px; flex: none; }

/* yutuqlar, titul, profil rasmi */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.bdg { border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font: inherit; color: var(--ink); cursor: pointer; filter: grayscale(1); opacity: .45; }
.bdg.got { filter: none; opacity: 1; background: linear-gradient(160deg, #fffaf0, #fff); border-color: #ffe2a8; }
.bdg.on { outline: 3px solid var(--violet); }
.bdg-e { font-size: 30px; } .bdg b { font-size: .82rem; } .bdg small { font-size: .7rem; color: var(--muted); }
.bdg:disabled { cursor: default; }
.title-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #fff3c4, #ffe08a); color: #7a5200; font-weight: 800; font-size: .75rem; white-space: nowrap; }
.title-tag.xs { font-size: .66rem; padding: 2px 7px; } .title-tag.big { font-size: .9rem; padding: 5px 12px; }
.me-card .title-tag { font-size: .66rem; padding: 1px 6px; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px; } .mini-stats span { background: var(--soft); border-radius: 10px; padding: 6px 10px; font-weight: 700; font-size: .85rem; }
.ava.has-img { padding: 0; overflow: hidden; background: var(--soft); } .ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ava-edit { position: relative; cursor: pointer; display: inline-block; flex-direction: row; }
.ava-cam { position: absolute; right: -4px; bottom: -4px; width: 34px; height: 34px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--sh); }
.ava-cam .ic { width: 18px; height: 18px; }
.ghost-link { border: 0; background: none; cursor: pointer; color: var(--muted); font: inherit; font-size: .8rem; }

/* yetkazib berish */
.dlv-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; } .dlv-head h2 { padding: 0; } .dlv-head .si-price { margin: 2px 0 0; }
.si-mini.big { width: 64px; height: 64px; font-size: 36px; border-radius: 20px; }
.dlv-note { display: flex; gap: 12px; background: linear-gradient(135deg, #f3ecff, #ffeef6); border-radius: 16px; padding: 12px 14px; font-size: .9rem; }
.dlv-note .ic { color: var(--violet); flex: none; margin-top: 2px; }
.dlv-box { margin-top: 6px; background: var(--soft); border-radius: 12px; padding: 8px 10px; font-size: .84rem; display: grid; gap: 2px; }
.row.ord { align-items: flex-start; }

/* sertifikat */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cert-prev canvas { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--sh-lg); display: block; }

/* ---------- to'lov ---------- */
.paywall { max-width: 520px; margin: 24px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 32px 24px; }
.paywall h2 { margin: 0; font-size: 1.5rem; }
.paywall p { margin: 0; color: #3b3460; }
.pw-ico { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(135deg, #ff6b8b, #ff9f43); color: #fff; box-shadow: 0 14px 30px -10px rgba(255, 90, 120, .7); }
.pw-ico .ic { width: 36px; height: 36px; }
.pw-debt { color: var(--red); font-size: 1.25rem; white-space: nowrap; }
.pw-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.pw-btns .btn { justify-content: center; color: #fff; font-weight: 800; padding: 14px 12px; border-radius: 16px; }
.pw-click { background: #0aa6e8; } .pw-payme { background: #18b9a4; }
.pw-note { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: var(--soft); border-radius: 14px; padding: 12px 14px; font-size: .9rem; width: 100%; box-sizing: border-box; }
.pw-note .ic { flex: none; color: var(--sky); margin-top: 2px; }
.pw-note a { font-weight: 800; }
.pay-warn { border: 2px solid color-mix(in srgb, var(--orange) 50%, white); background: #fff8ef; display: flex; flex-direction: column; gap: 10px; }
.pay-warn p { margin: 0; }
.pw-head { font-size: 1.05rem; }
.pay-box .row-btns { margin-top: 8px; }
@media (max-width: 420px) { .pw-btns { grid-template-columns: 1fr; } }

/* ---------- telefon ---------- */
@media (max-width: 1080px) {
  .grid2, .lesson-layout { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-hero { padding: 32px 22px; gap: 18px; } .login-hero h1 { font-size: 1.9rem; } .perks { display: none; } .floaters { display: none; }
  .login-card { padding: 26px 18px 40px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 30; bottom: 0; top: auto; left: 0; right: 0; height: auto; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--line); flex-direction: row; box-shadow: 0 -8px 24px -12px rgba(60, 30, 160, .2); }
  .side .logo, .side-foot { display: none; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 2px; scrollbar-width: none; }
  .side nav a { flex: 1 0 56px; flex-direction: column; gap: 3px; padding: 7px 4px; font-size: .68rem; border-radius: 12px; text-align: center; }
  .side nav a.on { box-shadow: none; }
  .top { padding: 12px 16px; } .top h1 { font-size: 1.2rem; }
  .top-ava { display: block; }
  #page { padding: 4px 16px 110px; }
  .hero { padding: 20px; border-radius: 22px; flex-direction: column; align-items: flex-start; }
  .hero-coin { flex-direction: row; gap: 8px; align-self: stretch; justify-content: center; }
  .emoji-big { font-size: 46px; }
  .hero .emoji-big { position: absolute; right: 16px; bottom: 12px; opacity: .9; }
  .hero > div:first-child { padding-right: 50px; }
  .hero-coin + .emoji-big, .hero:has(.hero-coin) > div:first-child { padding-right: 0; }
  .card { padding: 16px; border-radius: 18px; }
  .grid-2, .q-opts-edit { grid-template-columns: 1fr; }
  .tiles { gap: 10px; } .tile-stat { padding: 14px; } .tile-stat b { font-size: 1.5rem; }
  .stats { gap: 10px; } .stat { padding: 12px; } .stat > .ic { width: 38px; height: 38px; padding: 9px; }
  .toolbar { flex-direction: column; align-items: stretch; } .toolbar .seg { align-self: flex-start; }
  .search input { min-width: 0; } .row-btns select { flex: 1; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .lesson-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .lesson-card { padding: 12px; border-radius: 16px; }
  .live, .continue { flex-wrap: wrap; }
  .card.daily { align-items: flex-start; } .daily-flame { width: 64px; height: 64px; border-radius: 20px; }
  .modal { padding: 20px; border-radius: 22px; }
  .action-bar { bottom: 84px; }
  .sticky-save { bottom: 80px; }
  .att-row { flex-direction: column; align-items: stretch; } .att-btns { display: grid; grid-template-columns: repeat(4, 1fr); } .att { padding: 8px 4px; }
  .sub-grid { grid-template-columns: 1fr; }
  #toasts { bottom: 90px; }
}
@media (max-width: 420px) {
  .lesson-grid { grid-template-columns: 1fr; }
  .mtiles { grid-template-columns: 1fr 1fr; } .tile { min-height: 64px; font-size: .9rem; }
  .q-opts { grid-template-columns: 1fr; }
}

/* Telefon yon holatda: menyu ixcham ikonkalar ustuniga aylanadi (pastki panel ekranning yarmini yemaydi) */
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) {
  .shell { grid-template-columns: 76px 1fr; }
  .side { position: sticky; top: 0; bottom: auto; left: auto; right: auto; height: 100vh; flex-direction: column; padding: 12px 8px; gap: 12px; border-top: 0; border-right: 1px solid var(--line); box-shadow: none; }
  .side .logo { display: flex; justify-content: center; padding: 0; }
  .side .logo span, .side nav a span, .side-foot { display: none; }
  .side nav { flex-direction: column; overflow-y: auto; }
  .side nav a { flex: none; justify-content: center; padding: 10px; }
  #page { padding-bottom: 32px; }
  #toasts { bottom: 16px; }
  .yt-bar button { padding: 8px; }
}
