/* Mayoq — mobil ilova maketi (design/mobil, USLUB.md) bo'yicha veb-ilova uslubi.
   Bu fayl: sahifa foni, ekran qobig'i, umumiy komponentlar, pastki panel, kirish ekranlari (intro, "Mayoq nima?", rol, Google bilan kirish, farzand qo'shish).
   Boshqa ekranlar: screens.css (bosh sahifa, yo'l xaritasi, natijalar, profil, test boshlash/natija, xatolar), quiz.css (savollar), result.css (hisobot va batafsil kartalar).
   Ranglar va shakllar style.css dagi o'zgaruvchilardan; maket o'lchamlari 390 px kenglikka nisbatan: --u = ekran kengligining 1/390 qismi. */

:root {
  --u: calc(min(100vw, 440px) / 390);
  --ink-3: #1B1A40;
  --ring: #A77BF7;
  --select-bg: #EAE2FD;
  --glass: rgba(255, 255, 255, .72);
  --glass-sh: 0 10px 26px -16px rgba(60, 40, 150, .35), inset 0 0 0 1px rgba(255, 255, 255, .9);
  --green: #1FA34A;
  --green-bg: #E4F6E9;
  --gold: #FFC93C;
  --dock: 0px;
}
body.has-tabbar { --dock: 104px; }

html, body { min-height: 100%; }
body { background: #ECE9FC; }

/* ---------- sahifa foni ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #F4F2FE 0%, #ECE9FC 55%, #E3DEFB 100%); }
.sky-img { position: absolute; inset: -3% -4%; background: url(art/m/intro-sky.webp) center top / cover no-repeat; opacity: .75; animation: m-sky 22s ease-in-out infinite alternate; }
.sky-clouds { position: absolute; left: 50%; bottom: 0; width: max(100%, 520px); height: calc(var(--u) * 195); transform: translateX(-50%); background: url(art/m/clouds-bottom.webp) center bottom / 100% 100% no-repeat; opacity: .8; animation: m-band 16s ease-in-out infinite alternate; }
/* tungi osmon: "Mayoq nima?", rol tanlash */
body[data-screen="about"] .sky, body[data-screen="role"] .sky {
  background: linear-gradient(180deg, #19276D 0, #2E3A8C 50px, #646EC3 120px, #AEB2EC 175px, #D6D7FB 240px, #E3E3FD 320px, #E6E6FE 520px, #DEDFFD 720px, #D2D3FA 100%);
}
body[data-screen="about"] .sky-img, body[data-screen="role"] .sky-img { opacity: 0; }
body[data-screen="intro"] .sky { background: #E6E5FC; }
body[data-screen="intro"] .sky-img { opacity: 1; }
body[data-screen="intro"] .sky-clouds, body[data-screen="boot"] .sky-clouds { opacity: 0; }
body[data-screen="login"] .sky-clouds, body[data-screen="addchild"] .sky-clouds, body[data-screen="quiz"] .sky-clouds { opacity: 0; }
body[data-screen="addchild"] .sky { background: linear-gradient(180deg, #3A2FC0 0, #5B4FE0 220px, #8F86F0 330px, #D9D5FA 420px, #ECE9FC 100%); }
body[data-screen="addchild"] .sky-img { opacity: 0; }

/* ---------- ekran qobig'i ---------- */
.app { position: relative; z-index: 1; width: 100%; max-width: 440px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: none; isolation: auto; }
.screen { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0; width: 100%; max-width: none; margin: 0; padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + var(--dock)); min-height: 100vh; min-height: 100dvh; }
.screen[hidden] { display: none !important; }
.screen > * { flex: none; }
.m-in { animation: m-fade-up .5s ease-out both; }
.m-in.w1 { animation-delay: .06s; } .m-in.w2 { animation-delay: .12s; } .m-in.w3 { animation-delay: .18s; } .m-in.w4 { animation-delay: .24s; } .m-in.w5 { animation-delay: .3s; } .m-in.w6 { animation-delay: .36s; }
.m-pop { animation: m-pop .6s cubic-bezier(.2, .9, .3, 1.15) both; }

@keyframes m-sky { from { transform: scale(1.04) translateX(-6px); } to { transform: scale(1.04) translateX(6px); } }
@keyframes m-rise-lh { 0% { transform: translateY(470px); opacity: 0; } 22% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes m-float { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes m-glow { from { transform: scale(.85); opacity: .45; } to { transform: scale(1.15); opacity: .95; } }
@keyframes m-beam-pulse { from { opacity: .15; } to { opacity: .75; } }
@keyframes m-band-a { from { transform: scale(1.06) translateX(-9px); } to { transform: scale(1.06) translateX(9px); } }
@keyframes m-band-b { from { transform: translateX(11px); } to { transform: translateX(-11px); } }
@keyframes m-band { from { transform: translateX(-50%) translateX(-10px); } to { transform: translateX(-50%) translateX(10px); } }
@keyframes m-fade-up { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes m-twinkle { from { opacity: .25; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes m-dot { from { opacity: .3; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }
@keyframes m-pop { from { transform: translateY(24px) scale(.94); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
@keyframes m-grow { from { transform: translateY(46px) scaleY(.4); opacity: 0; } to { transform: translateY(0) scaleY(1); opacity: 1; } }
@keyframes m-from-left { from { transform: translate(-60px, 24px) rotate(-14deg); opacity: 0; } to { transform: translate(0, 0) rotate(0); opacity: 1; } }
@keyframes m-from-right { from { transform: translate(60px, 24px) rotate(14deg); opacity: 0; } to { transform: translate(0, 0) rotate(0); opacity: 1; } }
@keyframes m-sway { from { transform: translateY(0) rotate(0); } to { transform: translateY(-8px) rotate(-3deg); } }
@keyframes m-sway-r { from { transform: translateY(0) rotate(0); } to { transform: translateY(-9px) rotate(3deg); } }
@keyframes m-rise-lh2 { 0% { transform: translateY(300px); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
@keyframes m-people { from { transform: translateY(150px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes m-ring { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes m-sheet { from { transform: translateY(70px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes m-rise { from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes m-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes m-sel { 0% { transform: scale(1); } 45% { transform: scale(1.02); } 100% { transform: scale(1); } }
@keyframes m-check { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes m-ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes m-pulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes m-spin { to { transform: rotate(360deg); } }
@keyframes m-pop-in { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- umumiy komponentlar ---------- */
.star { position: absolute; width: 12px; height: 12px; fill: #fff; animation: m-twinkle 2.2s ease-in-out infinite alternate; pointer-events: none; }
.star.gold { fill: var(--gold); }

.round-btn { width: 44px; height: 44px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 8px 18px -10px rgba(60, 40, 150, .4), inset 0 0 0 1px rgba(255, 255, 255, .95); color: var(--ink); cursor: pointer; }
.round-btn .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.round-btn:active { transform: scale(.94); }
.round-btn.big { width: 52px; height: 52px; }

/* asosiy tugma (CTA): binafsha gradient, oq matn, oxirida o'q */
.cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; padding: 0 22px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #7A55EC 0%, #5B37D6 100%); box-shadow: 0 12px 24px -12px rgba(91, 55, 214, .7), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; font: 700 18px/1 var(--font); text-decoration: none; cursor: pointer; }
.cta .ico { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.6; }
.cta:active:not(:disabled) { transform: scale(.98); }
.cta:disabled { opacity: .5; box-shadow: none; cursor: default; }
.cta.soft { background: rgba(255, 255, 255, .78); color: var(--ink); box-shadow: var(--glass-sh); }
.cta.soft .ico { stroke: var(--ink); }
.cta .play { width: 34px; height: 34px; margin-left: -4px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: flex; align-items: center; justify-content: center; }
.cta .play .ico { width: 16px; height: 16px; fill: #fff; stroke: none; }

.glass { background: var(--glass); border-radius: 24px; box-shadow: var(--glass-sh); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.type-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #EDE7FD; color: #5B37D6; font-weight: 700; font-size: 14px; }
.type-chip .ico { width: 16px; height: 16px; stroke-width: 2.2; }

.avt { display: block; flex: none; border-radius: 50%; object-fit: cover; background: linear-gradient(180deg, #EEEAFE, #DCD3FA); }
.avt-fb { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: linear-gradient(180deg, #EEEAFE, #DCD3FA); color: var(--brand-deep); font-weight: 800; }

.h-big { margin: 0; font-size: calc(var(--u) * 38); line-height: 1.1; font-weight: 900; letter-spacing: -.3px; color: var(--ink-3); text-align: center; }
.lead-c { margin: 0; text-align: center; font-size: 17.5px; line-height: 1.4; font-weight: 500; color: var(--ink-3); }

/* ---------- pastki panel (tab bar) ---------- */
.tabbar { position: fixed; left: 0; right: 0; margin: 0 auto; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; width: min(416px, calc(100% - 24px)); height: 76px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; align-items: center; padding: 8px; border-radius: 26px; background: rgba(255, 255, 255, .86); box-shadow: 0 16px 34px -18px rgba(60, 40, 150, .55), inset 0 0 0 1px rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: m-fade-up .4s ease-out both; }
.tabbar[hidden] { display: none; }
.dk { position: relative; height: 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 0; border-radius: 18px; background: none; padding: 0; color: var(--muted); font: 700 14px/1 var(--font); cursor: pointer; }
.dk .ico { width: 26px; height: 26px; stroke-width: 2; }
.dk span.t { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.dk.on { background: rgba(108, 63, 224, .13); color: var(--brand); }
.dk.on .ico { stroke: var(--brand); fill: rgba(108, 63, 224, .2); }
.dk.on span.t { font-weight: 800; }
.dk:active { transform: scale(.96); }

/* ---------- boot ---------- */
.s-boot { align-items: center; justify-content: center; gap: 26px; }
.boot-logo { width: 220px; height: auto; animation: m-fade-up .6s ease-out both; }
.boot-dots { display: flex; gap: 10px; }
.boot-dots i { width: 9px; height: 9px; border-radius: 50%; background: #4B49B5; animation: m-dot .7s ease-in-out infinite alternate; }
.boot-dots i:nth-child(2) { animation-delay: .23s; } .boot-dots i:nth-child(3) { animation-delay: .46s; }

/* ---------- intro ---------- */
.s-intro { --k: min(var(--u), calc(100dvh / 844)); padding: 0; overflow: hidden; height: 100vh; height: 100dvh; min-height: 520px; }
.in-stage { position: absolute; inset: 0; overflow: hidden; }
.in-stars { position: absolute; left: 0; right: 0; top: 0; height: 60%; }
.in-lh { position: absolute; left: 50%; bottom: calc(var(--k) * 93); width: calc(var(--k) * 389); height: calc(var(--k) * 486); margin-left: calc(var(--k) * -194.5); animation: m-rise-lh 1.9s cubic-bezier(.22, .8, .24, 1) .25s both; }
.in-lh > .in-float { position: absolute; inset: 0; animation: m-float 4.2s ease-in-out 2.2s infinite alternate; }
.in-lh img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.in-glow { position: absolute; left: calc(var(--k) * 119); top: calc(var(--k) * 51); width: calc(var(--k) * 150); height: calc(var(--k) * 150); border-radius: 50%; background: radial-gradient(circle, rgba(255, 233, 163, .9) 0%, rgba(255, 201, 60, .35) 42%, rgba(255, 233, 163, 0) 70%); animation: m-glow 2.6s ease-in-out 2.1s infinite alternate; }
.in-beams { position: absolute; left: 0; top: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: .5; animation: m-beam-pulse 3s ease-in-out 2.1s infinite alternate; }
.in-band { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--k) * 154); transform-origin: 50% 100%; animation: m-band-a 12s ease-in-out infinite alternate; }
.in-band img, .in-band2 img { display: block; width: 100%; height: 100%; object-fit: fill; }
.in-band2 { position: absolute; left: -5%; right: -5%; bottom: calc(var(--k) * -78); height: calc(var(--k) * 170); animation: m-band-b 15s ease-in-out -4s infinite alternate; }
.in-band2 img { transform: scaleX(-1); }
.in-logo { position: absolute; left: 50%; top: calc(var(--k) * 130); width: calc(var(--k) * 260); margin-left: calc(var(--k) * -130); animation: m-fade-up .9s cubic-bezier(.2, .8, .2, 1) 1.9s both; }
.in-logo img { display: block; width: 100%; height: auto; }
.in-dots { position: absolute; left: 0; right: 0; bottom: calc(var(--k) * 50 + env(safe-area-inset-bottom)); display: flex; justify-content: center; gap: 10px; animation: m-fade-up .6s ease-out 2.4s both; }
.in-dots i { width: 9px; height: 9px; border-radius: 50%; background: #4B49B5; animation: m-dot .7s ease-in-out infinite alternate; }
.in-dots i:nth-child(2) { animation-delay: .23s; } .in-dots i:nth-child(3) { animation-delay: .46s; }
.in-skip { position: absolute; right: 16px; top: calc(14px + env(safe-area-inset-top)); z-index: 3; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: var(--glass-sh); color: var(--ink); font: 700 14px var(--font); cursor: pointer; animation: m-fade-up .5s ease-out 1s both; }

/* ---------- "Mayoq nima?" va rol: tungi osmon, logotip, yulduzlar ---------- */
.s-dusk { padding-top: 0; overflow: hidden; }
.dk-head { position: relative; height: calc(var(--u) * 132 + env(safe-area-inset-top)); flex: none; }
.dk-head .back { position: absolute; left: 0; top: calc(var(--u) * 52 + env(safe-area-inset-top) - 14px); z-index: 3; }
.dk-logo { position: absolute; left: 0; right: 0; top: calc(var(--u) * 40 + env(safe-area-inset-top) - 14px); display: flex; justify-content: center; align-items: center; gap: 6px; animation: m-fade-up .7s cubic-bezier(.2, .8, .2, 1) .1s both; }
.dk-logo .ic { display: block; width: calc(var(--u) * 72); height: calc(var(--u) * 80); }
.dk-logo .wd { display: block; width: calc(var(--u) * 161); height: calc(var(--u) * 52); margin-top: 4px; }
.dk-stars { position: absolute; left: -16px; right: -16px; top: 0; height: 160px; pointer-events: none; }
.dusk-title { margin-top: calc(var(--u) * 18); animation: m-fade-up .6s ease-out .25s both; }
.dusk-lead { margin-top: 10px; animation: m-fade-up .6s ease-out .38s both; }

.ab-art { position: relative; width: calc(var(--u) * 390); height: calc(var(--u) * 250); margin: calc(var(--u) * 14) -16px 0 auto; align-self: center; flex: none; }
.ab-art > * { position: absolute; }
.ab-art img { display: block; width: 100%; height: 100%; }
.ab-glow { left: calc(var(--u) * 77); top: 0; width: calc(var(--u) * 240); height: calc(var(--u) * 240); border-radius: 50%; background: radial-gradient(circle, rgba(255, 240, 200, .9) 0%, rgba(255, 233, 163, .4) 40%, rgba(255, 233, 163, 0) 70%); animation: m-glow 3s ease-in-out 1.6s infinite alternate; }
.ab-book { left: calc(var(--u) * 35); top: calc(var(--u) * 131); width: calc(var(--u) * 320); height: calc(var(--u) * 104); animation: m-pop .7s cubic-bezier(.2, .9, .3, 1.15) .45s both; }
.ab-chart { left: calc(var(--u) * 146); top: calc(var(--u) * 92); width: calc(var(--u) * 102); height: calc(var(--u) * 112); transform-origin: 50% 100%; animation: m-grow .9s cubic-bezier(.2, .9, .3, 1.1) .8s both; }
.ab-chart img { animation: m-float 3.6s ease-in-out 1.8s infinite alternate; }
.ab-cap { left: calc(var(--u) * 52); top: calc(var(--u) * 28); width: calc(var(--u) * 132); height: calc(var(--u) * 102); animation: m-from-left .9s cubic-bezier(.2, .9, .3, 1.1) 1s both; }
.ab-cap img { animation: m-sway 4.4s ease-in-out 2s infinite alternate; }
.ab-list { left: calc(var(--u) * 233); top: calc(var(--u) * 22); width: calc(var(--u) * 107); height: calc(var(--u) * 97); animation: m-from-right .9s cubic-bezier(.2, .9, .3, 1.1) 1.12s both; }
.ab-list img { animation: m-sway-r 4.8s ease-in-out 2.1s infinite alternate; }

.ab-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.ab-tile { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: 112px; padding: 10px 6px 12px; border-radius: 22px; background: rgba(255, 255, 255, .82); box-shadow: 0 12px 26px -16px rgba(60, 40, 150, .45), inset 0 0 0 1px rgba(255, 255, 255, .95); text-align: center; font-size: 14px; line-height: 1.2; font-weight: 700; color: var(--ink-3); animation: m-fade-up .5s ease-out both; }
.ab-tile img { display: block; height: 46px; width: auto; max-width: 70px; object-fit: contain; }
.ab-tile:nth-child(1) { animation-delay: .9s; } .ab-tile:nth-child(2) { animation-delay: 1.02s; } .ab-tile:nth-child(3) { animation-delay: 1.14s; }
.pager { display: flex; justify-content: center; gap: 10px; margin: 18px 0 16px; }
.pager i { width: 12px; height: 12px; border-radius: 50%; background: #CFCBF2; }
.pager i.on { background: #6C3FE0; width: 14px; height: 14px; margin-top: -1px; }
.dusk-foot { margin-top: auto; padding-top: 6px; }

/* rol kartalari */
.role-list { display: flex; flex-direction: column; gap: 14px; margin-top: calc(var(--u) * 28); }
.role-c { position: relative; display: block; width: 100%; min-height: calc(var(--u) * 162); padding: 20px; border: 0; border-radius: 26px; text-align: left; color: var(--ink-3); background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 10px 24px -14px rgba(58, 52, 140, .35); cursor: pointer; animation: m-pop .7s cubic-bezier(.2, .9, .3, 1.15) .45s both; }
.role-c + .role-c { animation-delay: .6s; }
.role-c.on { background: rgba(255, 255, 255, .86); box-shadow: inset 0 0 0 3px #5145DE, 0 16px 34px -16px rgba(68, 54, 217, .55); }
.role-c b { display: block; font-size: 25px; line-height: 30px; font-weight: 800; }
.role-c span.d { display: block; width: 44%; margin-top: 6px; font-size: 15px; line-height: 20px; font-weight: 600; color: #3A3970; }
.role-c .rk { position: absolute; left: 20px; bottom: 20px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 2px #B9B3E8; background: rgba(255, 255, 255, .8); }
.role-c.on .rk { background: #5145DE; box-shadow: none; }
.role-c .rk .ico { width: 17px; height: 17px; stroke: #fff; stroke-width: 3; opacity: 0; }
.role-c.on .rk .ico { opacity: 1; animation: m-check .3s ease-out both; }
.role-img { position: absolute; right: calc(var(--u) * -6); top: calc(var(--u) * -26); width: calc(var(--u) * 196); max-width: 232px; pointer-events: none; animation: m-float 3.4s ease-in-out 1.2s infinite alternate; }
.role-soon { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 18px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .85); color: var(--ink-3); font-weight: 700; font-size: 17px; }
.role-soon img { height: 34px; width: auto; }
.role-soon .tag { padding: 5px 12px; border-radius: 999px; background: #EDE7FD; color: #5B37D6; font-size: 13.5px; font-weight: 800; }
.role-soon .ico { margin-left: auto; width: 20px; height: 20px; color: var(--ink-2); }

/* ---------- Google bilan kirish (rolga qarab) ---------- */
.s-login { padding: 0; overflow: hidden; height: 100vh; height: 100dvh; min-height: 640px; }
.lg-back { position: absolute; left: 16px; top: calc(14px + env(safe-area-inset-top)); z-index: 5; }
.lg-hero { position: absolute; left: 0; right: 0; top: 0; height: 100%; overflow: hidden; }
.lg-lh { position: absolute; left: 50%; top: calc(var(--u) * 120); width: calc(var(--u) * 300); margin-left: calc(var(--u) * -150); animation: m-rise-lh2 1.6s cubic-bezier(.22, .8, .24, 1) .2s both; }
.lg-lh img { display: block; width: 100%; }
.lg-orbit { position: absolute; left: 50%; top: calc(var(--u) * 106); width: calc(var(--u) * 316); height: calc(var(--u) * 136); margin-left: calc(var(--u) * -158); border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); box-shadow: 0 0 18px rgba(255, 255, 255, .6), inset 0 0 18px rgba(255, 255, 255, .4); animation: m-ring .9s ease-out .6s both; }
.lg-chip { position: absolute; width: calc(var(--u) * 66); height: calc(var(--u) * 66); border-radius: 22px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 10px 22px -12px rgba(60, 40, 150, .45); display: flex; align-items: center; justify-content: center; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: m-pop .7s cubic-bezier(.2, .9, .3, 1.15) .9s both; }
.lg-chip img { width: 74%; height: 74%; object-fit: contain; animation: m-float 3.2s ease-in-out 1.6s infinite alternate; }
.lg-people { position: absolute; left: 50%; bottom: calc(var(--u) * 218); width: calc(var(--u) * 390); margin-left: calc(var(--u) * -195); animation: m-people 1.2s cubic-bezier(.2, .8, .2, 1) .5s both; }
.lg-people img { display: block; width: 100%; }
.lg-cloud { position: absolute; left: -6%; right: -6%; bottom: calc(var(--u) * 190); height: calc(var(--u) * 150); background: url(art/m/intro-clouds-front.webp) center bottom / 100% 100% no-repeat; animation: m-band-b 14s ease-in-out infinite alternate; }
.lg-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 36px 36px 0 0; background: linear-gradient(180deg, rgba(246, 244, 255, .96) 0%, rgba(236, 233, 252, .98) 100%); box-shadow: 0 -18px 40px -20px rgba(60, 40, 150, .45), inset 0 1px 0 rgba(255, 255, 255, .95); animation: m-sheet .8s cubic-bezier(.2, .9, .3, 1.05) .7s both; }
.lg-sheet .pager { margin: 4px 0 12px; }
.lg-sheet h1 { margin: 0; text-align: center; font-size: 29px; line-height: 1.1; font-weight: 900; color: var(--ink-3); letter-spacing: -.2px; }
.lg-sheet h1 em { color: #5145DE; font-style: italic; font-weight: 800; }
.lg-sheet p.sub { margin: 10px auto 18px; max-width: 320px; text-align: center; font-size: 16px; line-height: 1.35; font-weight: 500; color: #3A3970; }
.g-pill { position: relative; display: flex; align-items: center; width: 100%; height: 58px; padding: 0 6px 0 8px; border-radius: 999px; background: #fff; box-shadow: 0 14px 28px -16px rgba(60, 40, 150, .55), inset 0 0 0 1px rgba(255, 255, 255, .95); overflow: hidden; }
.g-pill .g-ic { width: 44px; height: 44px; flex: none; border-radius: 50%; background: #F0EEFC; display: flex; align-items: center; justify-content: center; }
.g-pill .g-ic svg { width: 22px; height: 22px; }
.g-pill .g-t { flex: 1; text-align: center; font-weight: 800; font-size: 17.5px; color: var(--ink-3); }
.g-pill .g-go { width: 46px; height: 46px; flex: none; border-radius: 50%; background: linear-gradient(180deg, #7A55EC, #5B37D6); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 16px -8px rgba(91, 55, 214, .8); }
.g-pill .g-go .ico { width: 22px; height: 22px; stroke: #fff; }
.g-pill .g-real { position: absolute; inset: 0; opacity: .01; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.g-pill .g-real > div, .g-pill .g-real iframe { transform: scale(2.2); transform-origin: center; }
.lg-terms { margin: 14px 0 0; text-align: center; font-size: 14.5px; font-weight: 500; color: #3A3970; }
.lg-terms a, .lg-terms button { color: #5145DE; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.dev-box { margin-top: 12px; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, .75); box-shadow: var(--glass-sh); display: flex; flex-direction: column; gap: 8px; }
.dev-box small { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.dev-box input { height: 46px; border-radius: 14px; font-size: 16px; }
.dev-box .cta { height: 48px; font-size: 16px; }

/* ---------- farzand qo'shish ---------- */
.s-add { padding: 0; }
.ad-hero { position: relative; height: calc(var(--u) * 300 + env(safe-area-inset-top)); flex: none; overflow: hidden; padding: calc(var(--u) * 92 + env(safe-area-inset-top)) 16px 0; }
.ad-hero > .round-btn { position: absolute; left: 16px; top: calc(var(--u) * 44 + env(safe-area-inset-top)); z-index: 4; }
.ad-logo { position: absolute; left: 0; right: 0; top: calc(var(--u) * 14 + env(safe-area-inset-top)); display: flex; justify-content: center; align-items: center; gap: 4px; z-index: 3; pointer-events: none; }
.ad-logo img { display: block; height: calc(var(--u) * 44); width: auto; }
.ad-t { position: relative; z-index: 3; margin: 0; color: #fff; font-size: calc(var(--u) * 38); line-height: 1.1; font-weight: 900; letter-spacing: -.3px; width: 56%; }
.ad-t em { display: inline-block; color: var(--gold); font-style: italic; font-weight: 800; position: relative; }
.ad-t em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 5px; border-radius: 4px; background: var(--gold); }
.ad-d { position: relative; z-index: 3; margin: calc(var(--u) * 16) 0 0; width: 50%; color: #fff; font-size: 15px; line-height: 1.3; font-weight: 600; }
.ad-kids { position: absolute; right: -4px; bottom: -2px; width: calc(var(--u) * 224); z-index: 2; animation: m-rise .9s cubic-bezier(.2, .8, .2, 1) .2s both; }
.ad-kids img { display: block; width: 100%; }
.ad-lh { position: absolute; right: calc(var(--u) * -22); top: calc(var(--u) * 30); width: calc(var(--u) * 150); z-index: 1; opacity: .95; }
.ad-lh img { display: block; width: 100%; }
.ad-sheet { position: relative; z-index: 5; flex: 1; margin: calc(var(--u) * -20) 12px 0; padding: 18px 16px 22px; border-radius: 32px 32px 0 0; background: rgba(255, 255, 255, .86); box-shadow: 0 -16px 40px -22px rgba(60, 40, 150, .6), inset 0 1px 0 rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; flex-direction: column; gap: 10px; animation: m-rise .7s cubic-bezier(.2, .8, .2, 1) .3s both; }
.ad-sheet .fl { display: flex; align-items: center; gap: 10px; margin: 6px 2px 0; font-size: 18px; font-weight: 800; color: var(--ink-3); }
.ad-sheet .fl .ico { width: 22px; height: 22px; stroke: var(--brand); stroke-width: 2; }
.sel { position: relative; }
.sel select { appearance: none; -webkit-appearance: none; width: 100%; height: 58px; border: 0; border-radius: 20px; padding: 0 48px 0 62px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 8px 20px -14px rgba(60, 40, 150, .5); font: 800 20px var(--font); color: var(--ink-3); cursor: pointer; }
.sel .sel-ic { position: absolute; left: 14px; top: 50%; width: 38px; height: 38px; margin-top: -19px; pointer-events: none; }
.sel .sel-ch { position: absolute; right: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; pointer-events: none; }
.txt-in { position: relative; }
.txt-in input { width: 100%; height: 58px; border: 0; border-radius: 20px; padding: 0 52px 0 22px; background: rgba(255, 255, 255, .92); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 8px 20px -14px rgba(60, 40, 150, .5); font: 800 20px var(--font); color: var(--ink-3); }
.txt-in input:focus { outline: none; box-shadow: inset 0 0 0 2.5px #8E6DFA, 0 8px 20px -14px rgba(60, 40, 150, .5); }
.txt-in .clr { position: absolute; right: 12px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.txt-in .clr .ico { width: 22px; height: 22px; }
.avs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.av-pick { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 22px; background: linear-gradient(180deg, #EEEAFE, #DCD3FA); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9); cursor: pointer; overflow: visible; animation: m-tile .5s ease-out both; }
.av-pick:nth-child(2) { animation-delay: .06s; } .av-pick:nth-child(3) { animation-delay: .12s; } .av-pick:nth-child(4) { animation-delay: .18s; }
.av-pick img { display: block; width: 100%; height: 100%; border-radius: 22px; object-fit: cover; }
.av-pick.on { box-shadow: inset 0 0 0 3px #6C3FE0, 0 8px 18px -8px rgba(108, 63, 224, .6); }
.av-pick .ck { position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: #6C3FE0; box-shadow: 0 0 0 2px #fff; display: none; align-items: center; justify-content: center; }
.av-pick.on .ck { display: flex; animation: m-pop-in .3s ease-out both; }
.av-pick .ck .ico { width: 15px; height: 15px; stroke: #fff; stroke-width: 3; }
@keyframes m-tile { from { transform: translateY(10px) scale(.94); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.ad-err { margin: 0; text-align: center; color: var(--bad-ink); font-weight: 700; font-size: 14px; }
.ad-sheet .cta { margin-top: 6px; }
.ad-del.muted { color: var(--muted); }
.ad-del { align-self: center; border: 0; background: none; color: var(--bad-ink); font: 700 15px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 8px; }

@media (min-width: 560px) {
  .tabbar { width: 416px; }
}
@media (prefers-reduced-motion: reduce) {
  .sky-img, .sky-clouds { animation: none; }
}
