@import url("https://fonts.googleapis.com/css2?family=Readex+Pro:wght@400;500;600;700&display=swap");
:root{
  --brand:#5B7CFA;--brand2:#76D8C2;--app-bg:#F6F8FC;--surface:#fff;--ink:#111827;--muted:#6B7280;
  --line:#E7ECF3;--soft:#EFF3F9;--success:#37B987;--warning:#F0B84B;--danger:#EF6A74;
  --navy:#111827;--bluewash:#EEF3FF;--mintwash:#ECFBF7;--shadow:0 24px 70px rgba(29,45,77,.11);
  --shadow-sm:0 10px 28px rgba(29,45,77,.08);--r:24px;--r-lg:32px;--header-h:68px;--nav-h:78px;
  font-synthesis:none;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--app-bg);color:var(--ink);font-family:"Readex Pro","SF Pro Display","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
body{min-height:100dvh}
button,input,select,textarea{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
svg{width:1.35em;height:1.35em;display:block}
[hidden]{display:none!important}
::selection{background:#dfe7ff}

/* Shared interaction */
.icon-button,.primary-action,.nav-item,.reel-action,.game-play,.soft-action,.admin-create,.admin-nav-btn,.studio-tab,.family-code-btn,.chip-btn,.choice-btn,.avatar-btn,.store-btn{transition:transform .24s cubic-bezier(.2,.8,.2,1),background .24s ease,box-shadow .24s ease,border-color .24s ease,color .24s ease,opacity .24s ease}
button:active,.primary-action:active,.admin-create:active{transform:scale(.97)}
.focus-ring:focus-visible,button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(91,124,250,.25);outline-offset:2px}

/* First run onboarding */
.first-run{position:fixed;inset:0;z-index:5000;background:linear-gradient(180deg,#F4F7FD 0%,#EEF5FF 100%);display:none;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom));overflow:hidden}
.first-run.show{display:flex}
.intro-shell{width:min(100%,460px);height:min(900px,100%);display:grid;grid-template-rows:1fr auto;position:relative}
.intro-skip{position:absolute;z-index:10;top:8px;left:8px;border:0;background:rgba(255,255,255,.78);backdrop-filter:blur(18px);color:#566171;padding:10px 15px;border-radius:999px;box-shadow:var(--shadow-sm)}
.intro-slide{grid-area:1/1;opacity:0;transform:translateX(-28px) scale(.98);pointer-events:none;display:grid;grid-template-rows:minmax(280px,1.1fr) auto;align-items:center;gap:18px;padding:28px 8px 10px;transition:opacity .45s ease,transform .55s cubic-bezier(.2,.85,.2,1)}
.intro-slide.active{opacity:1;transform:none;pointer-events:auto}
.intro-art{height:100%;min-height:300px;display:grid;place-items:center;position:relative}
.intro-art>img{width:min(92%,390px);max-height:420px;object-fit:contain;border-radius:42px;filter:drop-shadow(0 28px 38px rgba(55,77,120,.11));animation:floatVisual 5.5s ease-in-out infinite}
.intro-abstract{width:min(88vw,330px);aspect-ratio:1;position:relative;border-radius:38%;background:linear-gradient(145deg,#fff,#E9F0FF 55%,#E6FBF5);box-shadow:0 35px 80px rgba(56,79,129,.14),inset 0 1px 0 #fff;display:grid;place-items:center;overflow:hidden}
.intro-abstract span{width:92px;height:92px;border-radius:30px;background:#fff;display:grid;place-items:center;color:var(--brand);box-shadow:0 20px 45px rgba(40,65,120,.14);z-index:2}
.intro-abstract span svg{width:44px;height:44px}
.intro-abstract i{position:absolute;border-radius:50%;filter:blur(.2px)}
.intro-abstract i:nth-of-type(1){width:160px;height:160px;background:linear-gradient(135deg,#BED0FF,#D7F6EE);right:-35px;top:36px;animation:orbA 7s ease-in-out infinite}
.intro-abstract i:nth-of-type(2){width:94px;height:94px;background:linear-gradient(135deg,#D9E4FF,#B7E9DE);left:18px;bottom:34px;animation:orbB 6s ease-in-out infinite}
.intro-abstract.abs2{background:linear-gradient(145deg,#fff,#F1F4FF 45%,#E8FCF7)}
.intro-abstract.abs3{background:linear-gradient(145deg,#fff,#EDF5FF 55%,#ECFBF8)}
.intro-copy{text-align:center;padding:0 10px}
.intro-copy small{display:inline-block;color:var(--brand);font-weight:750;font-size:13px;margin-bottom:8px}
.intro-copy h1{font-size:clamp(30px,8vw,44px);line-height:1.22;margin:0 0 12px;letter-spacing:-.04em}
.intro-copy p{margin:0 auto;max-width:360px;color:var(--muted);font-size:14px;line-height:1.9}
.intro-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 8px 6px}
.intro-dots{display:flex;gap:6px;direction:ltr}.intro-dots i{width:8px;height:8px;border-radius:999px;background:#CDD4E0;transition:.3s}.intro-dots i.active{width:28px;background:var(--brand)}
.intro-footer button{border:0;border-radius:22px;background:var(--navy);color:#fff;min-height:58px;min-width:180px;padding:0 22px;display:flex;align-items:center;justify-content:center;gap:12px;font-weight:750;box-shadow:0 18px 35px rgba(17,24,39,.17)}
@keyframes floatVisual{50%{transform:translateY(-8px) rotate(.5deg)}}@keyframes orbA{50%{transform:translate(-8px,12px) scale(1.05)}}@keyframes orbB{50%{transform:translate(10px,-8px) scale(.94)}}

/* AUTH */
.auth-body{background:#F5F7FB;overflow:auto}
.auth-app{min-height:100dvh;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);direction:ltr}
.auth-stage{direction:rtl;padding:34px clamp(28px,5vw,72px);position:relative;overflow:hidden;background:radial-gradient(circle at 15% 20%,#E6F8F3 0,transparent 28%),radial-gradient(circle at 80% 16%,#E6ECFF 0,transparent 32%),linear-gradient(155deg,#F5F8FF,#EDF4FF 55%,#F5FCFA);display:grid;grid-template-rows:auto 1fr auto;min-height:100dvh}
.auth-brand{display:inline-flex;align-items:center;gap:12px;width:max-content}.auth-brand>img,.auth-brand>i{width:46px;height:46px;border-radius:15px;background:#fff;object-fit:contain;padding:8px;box-shadow:var(--shadow-sm)}.auth-brand>i{display:grid;place-items:center;color:var(--brand)}.auth-brand span{display:grid}.auth-brand b{font-size:15px}.auth-brand small{color:var(--muted);font-size:10px;margin-top:2px}
.auth-visual-shell{align-self:center;justify-self:center;width:min(72vh,520px);aspect-ratio:1;display:grid;place-items:center;padding:20px}.auth-visual-shell>img{width:100%;height:100%;object-fit:contain;border-radius:42px;filter:drop-shadow(0 28px 60px rgba(37,59,104,.13))}.abstract-visual{width:min(100%,390px);aspect-ratio:1;border-radius:40%;background:linear-gradient(145deg,#fff,#E8F0FF,#E8FBF6);box-shadow:0 35px 80px rgba(45,69,117,.14);display:grid;place-items:center;position:relative;overflow:hidden}.abstract-visual span{width:104px;height:104px;background:#fff;border-radius:32px;display:grid;place-items:center;color:var(--brand);box-shadow:var(--shadow-sm);z-index:2}.abstract-visual span svg{width:50px;height:50px}.abstract-visual i{position:absolute;border-radius:50%}.abstract-visual i:nth-child(1){width:180px;height:180px;background:#C9D7FF;right:-30px;top:30px}.abstract-visual i:nth-child(2){width:110px;height:110px;background:#BFECE1;left:28px;bottom:26px}.abstract-visual i:nth-child(3){width:44px;height:44px;background:#fff;left:70px;top:60px}
.auth-stage-copy{max-width:570px}.auth-stage-copy small{color:var(--brand);font-weight:750}.auth-stage-copy h1{font-size:clamp(36px,5vw,62px);line-height:1.18;margin:9px 0 12px;letter-spacing:-.045em}.auth-stage-copy p{color:var(--muted);line-height:1.9;max-width:520px;margin:0}
.auth-sheet{direction:rtl;background:#fff;padding:42px clamp(28px,4.5vw,70px);display:flex;flex-direction:column;justify-content:center;position:relative}
.auth-sheet-top{position:absolute;top:26px;right:30px;left:30px;display:flex;justify-content:space-between;align-items:center;font-weight:700}.auth-sheet-top a{width:42px;height:42px;border-radius:14px;background:#F3F5F8;display:grid;place-items:center}
.auth-form{display:grid;gap:18px}.auth-form>label{display:grid;gap:8px;font-size:12px;font-weight:700;color:#4B5563}.auth-form input,.auth-form select{height:56px;border:1px solid #E4E8EF;border-radius:18px;padding:0 17px;background:#FAFBFD;color:var(--ink);outline:0}.auth-form input:focus,.auth-form select:focus{border-color:#AABCFD;background:#fff;box-shadow:0 0 0 4px #EEF2FF}.secret-field{position:relative}.secret-field input{width:100%;padding-left:52px}.secret-field button{position:absolute;left:8px;top:8px;width:40px;height:40px;border:0;background:transparent;display:grid;place-items:center;color:#667085}.primary-action{height:58px;border:0;border-radius:18px;background:var(--navy);color:#fff;font-weight:750;display:flex;align-items:center;justify-content:center;gap:10px;box-shadow:0 16px 30px rgba(17,24,39,.12)}.auth-switch{text-align:center;color:#8A94A3;font-size:13px}.auth-switch a{color:var(--brand);font-weight:750}.form-notice{min-height:24px;margin-top:12px;text-align:center;font-size:13px;color:var(--danger)}
.role-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.role-picker button{min-height:70px;border:1px solid #E6EAF0;border-radius:18px;background:#FAFBFC;color:#687385;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.role-picker button.active{background:#EEF3FF;border-color:#C8D4FF;color:var(--brand);box-shadow:inset 0 0 0 1px #DCE4FF}.role-picker svg{width:22px;height:22px}

/* APP SHELL */
.app-body{overflow:hidden;background:var(--app-bg)}
.app-shell{height:100dvh;display:grid;grid-template-rows:var(--header-h) minmax(0,1fr) var(--nav-h);background:var(--app-bg);overflow:hidden;position:relative}
.app-header{grid-row:1;position:relative;z-index:40;display:flex;align-items:center;justify-content:space-between;padding:env(safe-area-inset-top) 16px 0;min-height:var(--header-h);background:rgba(246,248,252,.9);backdrop-filter:blur(20px) saturate(140%);border-bottom:1px solid rgba(225,230,238,.8)}
.header-brand{display:flex;align-items:center;gap:10px;min-width:0}.header-brand>img,.header-brand>span{width:40px;height:40px;border-radius:14px;background:#fff;object-fit:contain;padding:7px;box-shadow:0 7px 20px rgba(39,58,95,.08)}.header-brand>span{display:grid;place-items:center;color:var(--brand)}.header-brand div{display:grid;min-width:0}.header-brand b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-brand small{font-size:9px;color:#98A1AF;letter-spacing:.02em;text-transform:uppercase;margin-top:1px}
.header-actions{display:flex;align-items:center;gap:7px}.icon-button,.points-pill{height:40px;border:1px solid #E6EAF1;background:rgba(255,255,255,.86);border-radius:14px;color:#536071;display:grid;place-items:center;position:relative;box-shadow:0 6px 16px rgba(40,57,87,.05)}.icon-button{width:40px}.icon-button svg{width:19px;height:19px}.icon-button>i{position:absolute;top:7px;right:7px;width:6px;height:6px;border-radius:50%;background:#FF6B7B;border:2px solid #fff}.points-pill{display:flex;gap:5px;padding:0 11px;color:#374151;font-size:12px}.points-pill svg{width:16px;height:16px;color:#E6A62F}.points-pill b{font-variant-numeric:tabular-nums}
.app-content{grid-row:2;min-height:0;position:relative;overflow:hidden}.screen{position:absolute;inset:0;display:none;min-height:0}.screen.active{display:block;animation:screenIn .3s cubic-bezier(.2,.8,.2,1)}@keyframes screenIn{from{opacity:.45;transform:translateY(8px)}to{opacity:1;transform:none}}
.scroll-screen{overflow:auto;padding:18px max(16px,calc((100vw - 1100px)/2 + 16px)) 28px;overscroll-behavior:contain}
.app-nav{grid-row:3;position:relative;z-index:45;display:grid;grid-template-columns:repeat(5,1fr);padding:7px max(8px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom));background:rgba(255,255,255,.92);backdrop-filter:blur(24px) saturate(150%);border-top:1px solid rgba(226,231,239,.9)}
.nav-item{border:0;background:transparent;color:#8A94A3;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;position:relative;min-width:0}.nav-item span{width:32px;height:30px;border-radius:11px;display:grid;place-items:center}.nav-item svg{width:20px;height:20px}.nav-item small{font-size:9px;font-weight:650;white-space:nowrap}.nav-item.active{color:var(--navy)}.nav-item.active span{background:#EEF2FF;color:var(--brand);transform:translateY(-1px)}.nav-item.active small{font-weight:800}.nav-item.active:after{content:"";position:absolute;bottom:0;width:18px;height:2px;border-radius:99px;background:var(--brand)}

/* REELS */
.reel-screen{background:#0D1119;overflow:hidden}.reels-feed{height:100%;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior-y:contain;scrollbar-width:none}.reels-feed::-webkit-scrollbar{display:none}.reel-session-progress{position:absolute;z-index:30;top:9px;left:14px;right:14px;height:3px;background:rgba(255,255,255,.22);border-radius:9px;overflow:hidden;pointer-events:none}.reel-session-progress span{display:block;width:0;height:100%;background:#fff;border-radius:inherit;transition:width .25s ease}.feed-hint{position:absolute;z-index:28;bottom:15px;left:50%;transform:translateX(-50%);font-size:9px;color:rgba(255,255,255,.7);padding:7px 11px;border-radius:99px;background:rgba(5,10,18,.24);backdrop-filter:blur(8px);pointer-events:none;animation:hintFade 4s forwards}@keyframes hintFade{0%,55%{opacity:1}100%{opacity:0}}
.reel{height:100%;scroll-snap-align:start;scroll-snap-stop:always;position:relative;overflow:hidden;background:#10151F;color:#fff;isolation:isolate}.reel-media{position:absolute;inset:0}.reel-media img,.reel-media video{width:100%;height:100%;object-fit:cover}.reel-media video{background:#0B0F16}.reel-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(6,10,17,.16) 0%,rgba(6,10,17,.02) 30%,rgba(6,10,17,.1) 52%,rgba(6,10,17,.8) 100%);pointer-events:none}.reel-fallback{position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(118,216,194,.85),transparent 27%),radial-gradient(circle at 82% 28%,rgba(118,151,255,.8),transparent 31%),linear-gradient(160deg,#1B2434,#0D121C 72%)}
.reel-top{position:absolute;top:14px;left:14px;right:14px;z-index:5;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.reel-chip{display:flex;align-items:center;gap:6px;padding:8px 11px;border-radius:999px;background:rgba(13,17,25,.26);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(14px);font-size:10px;font-weight:700;color:#fff}.reel-points{background:rgba(255,255,255,.9);color:#243047}.reel-points svg{color:#E1A332;width:14px;height:14px}
.reel-bottom{position:absolute;z-index:5;left:16px;right:84px;bottom:18px;text-align:right}.creator-line{display:flex;align-items:center;gap:9px;margin-bottom:11px}.creator-avatar{width:34px;height:34px;border-radius:50%;overflow:hidden;background:linear-gradient(135deg,#D7E1FF,#DDF7F0);border:2px solid rgba(255,255,255,.82);display:grid;place-items:center;color:#30425E;font-weight:800;font-size:12px}.creator-avatar img{width:100%;height:100%;object-fit:cover}.creator-line b{font-size:12px}.creator-line small{display:block;color:rgba(255,255,255,.64);font-size:9px;margin-top:1px}.reel-bottom h2{font-size:clamp(23px,6.8vw,34px);line-height:1.28;margin:0 0 8px;letter-spacing:-.03em;text-shadow:0 2px 18px rgba(0,0,0,.18)}.reel-bottom p{font-size:12px;line-height:1.75;margin:0;color:rgba(255,255,255,.82);max-width:580px}.reel-actions{position:absolute;z-index:6;left:14px;bottom:20px;display:grid;gap:10px}.reel-action-wrap{display:grid;justify-items:center;gap:3px}.reel-action{width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.16);background:rgba(9,14,23,.28);backdrop-filter:blur(16px);color:#fff;display:grid;place-items:center;box-shadow:0 12px 25px rgba(0,0,0,.13)}.reel-action svg{width:21px;height:21px}.reel-action.active{background:#fff;color:#EF6074}.reel-action-wrap small{font-size:8px;color:rgba(255,255,255,.72)}
.reel-play-center{position:absolute;z-index:4;inset:0;display:grid;place-items:center;pointer-events:none;opacity:0;transition:.2s}.reel.paused .reel-play-center{opacity:1}.reel-play-center span{width:74px;height:74px;border-radius:50%;display:grid;place-items:center;background:rgba(11,17,27,.36);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.2)}.reel-play-center svg{width:32px;height:32px}
/* non video reel = light immersive card */
.reel:not(.video-reel){background:linear-gradient(155deg,#F9FAFD,#EEF3FF 58%,#EAF9F5);color:var(--ink)}.reel:not(.video-reel) .reel-media::after{background:linear-gradient(180deg,rgba(246,248,252,.1),rgba(246,248,252,.38) 45%,rgba(246,248,252,.96) 100%)}.reel:not(.video-reel) .reel-top .reel-chip{background:rgba(255,255,255,.72);color:#445065;border-color:#fff;box-shadow:var(--shadow-sm)}.reel:not(.video-reel) .reel-points{color:#394356}.knowledge-visual{position:absolute;top:10%;left:10%;right:10%;height:44%;border-radius:36px;background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(238,244,255,.82));border:1px solid rgba(255,255,255,.9);box-shadow:0 28px 70px rgba(52,72,116,.12);display:grid;place-items:center;overflow:hidden}.knowledge-visual>img{width:100%;height:100%;object-fit:cover}.knowledge-symbol{width:104px;height:104px;border-radius:32px;background:#fff;color:var(--brand);display:grid;place-items:center;box-shadow:0 20px 45px rgba(49,68,108,.12)}.knowledge-symbol svg{width:48px;height:48px}.reel:not(.video-reel) .reel-bottom{right:20px;left:20px;bottom:22px;color:var(--ink);background:rgba(255,255,255,.78);backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.9);padding:18px;border-radius:28px;box-shadow:0 20px 55px rgba(43,64,104,.1)}.reel:not(.video-reel) .reel-bottom h2{text-shadow:none;font-size:clamp(22px,6.2vw,31px)}.reel:not(.video-reel) .reel-bottom p{color:#6D7788}.reel:not(.video-reel) .creator-line{margin-bottom:8px}.reel:not(.video-reel) .creator-line small{color:#9099A7}.reel:not(.video-reel) .reel-actions{display:none}.reel-cta{margin-top:14px;display:flex;gap:8px}.reel-cta button{height:46px;border:0;border-radius:15px;padding:0 18px;background:var(--navy);color:#fff;font-weight:700}.reel-cta button.secondary{background:#F0F3F8;color:#465266}.quiz-options{display:grid;gap:7px;margin-top:12px}.choice-btn{min-height:44px;padding:9px 13px;border:1px solid #E4E8EF;border-radius:15px;background:#fff;color:#273246;text-align:right}.choice-btn.selected{border-color:#A8B9FC;background:#EEF2FF;color:#3450B4}.choice-btn.correct{border-color:#A9E1CF;background:#EDFAF5;color:#247A5D}.choice-btn.wrong{border-color:#F3B7BE;background:#FFF2F4;color:#B43D4A}
.game-reel .knowledge-visual{top:8%;height:52%}.game-reel .knowledge-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(12,18,28,.24));pointer-events:none}.game-reel .knowledge-visual img{width:100%;height:100%;object-fit:cover}.game-reel .reel-bottom{bottom:18px}.game-reel .game-play{height:48px;border:0;border-radius:16px;background:var(--navy);color:#fff;padding:0 20px;font-weight:750;display:flex;align-items:center;gap:8px}.game-play svg{width:18px;height:18px}
.like-burst{position:fixed;z-index:200;top:50%;left:50%;width:96px;height:96px;margin:-48px;display:grid;place-items:center;color:#FF5972;pointer-events:none;opacity:0;transform:scale(.3)}.like-burst svg{width:76px;height:76px;fill:#FF5972;stroke:#fff;filter:drop-shadow(0 14px 24px rgba(255,59,90,.3))}.like-burst.pop{animation:likePop .62s cubic-bezier(.2,.8,.2,1)}@keyframes likePop{0%{opacity:0;transform:scale(.25)}35%{opacity:1;transform:scale(1.12)}70%{opacity:1;transform:scale(.94)}100%{opacity:0;transform:scale(1.25)}}

/* GENERIC INNER SCREENS */
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:6px 0 22px}.page-head small{display:block;color:var(--brand);font-weight:750;font-size:10px;margin-bottom:5px}.page-head h1{font-size:clamp(28px,5vw,42px);margin:0;letter-spacing:-.035em}.page-head p{color:var(--muted);margin:7px 0 0;font-size:12px;line-height:1.7}.page-head .mini-action{height:42px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:0 14px;color:#4F5B6D;font-weight:700}
.empty-state{min-height:300px;display:grid;place-items:center;text-align:center;color:#7F8997}.empty-state span{width:68px;height:68px;border-radius:22px;background:#fff;display:grid;place-items:center;color:var(--brand);box-shadow:var(--shadow-sm);margin:auto auto 13px}.empty-state h3{color:var(--ink);margin:0 0 7px}.empty-state p{margin:0;max-width:300px;line-height:1.8;font-size:12px}
/* games */
.games-hero{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-bottom:20px;background:linear-gradient(135deg,#182231,#23304A);color:#fff;border-radius:30px;min-height:270px;overflow:hidden;box-shadow:var(--shadow)}.games-hero-copy{padding:28px;display:flex;flex-direction:column;justify-content:flex-end}.games-hero-copy small{color:#B9C8FF;font-weight:700}.games-hero-copy h2{font-size:clamp(27px,4vw,42px);margin:7px 0 8px}.games-hero-copy p{color:#CBD3DF;line-height:1.75;font-size:12px;max-width:520px}.games-hero-copy button{margin-top:15px;width:max-content;height:48px;border:0;border-radius:16px;background:#fff;color:#131C2B;padding:0 20px;font-weight:750;display:flex;align-items:center;gap:8px}.games-hero-media{min-height:240px;background:#27354C;overflow:hidden}.games-hero-media img{width:100%;height:100%;object-fit:cover}.game-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}.game-card{background:#fff;border:1px solid var(--line);border-radius:24px;overflow:hidden;box-shadow:0 10px 28px rgba(40,59,92,.05);transition:.25s}.game-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(40,59,92,.1)}.game-cover{aspect-ratio:16/10;background:#EEF2F7;overflow:hidden}.game-cover img{width:100%;height:100%;object-fit:cover}.game-card-body{padding:15px}.game-card-body small{color:var(--brand);font-weight:700}.game-card-body h3{font-size:17px;margin:4px 0}.game-card-body p{color:var(--muted);font-size:11px;line-height:1.65;min-height:36px}.game-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:12px}.game-card-foot span{font-size:10px;color:#7E8998}.game-card-foot button{width:40px;height:40px;border:0;border-radius:13px;background:var(--navy);color:#fff;display:grid;place-items:center}
/* rewards */
.reward-hero{background:linear-gradient(135deg,#EAF1FF,#EEFBF7);border:1px solid #E5EAF2;border-radius:30px;padding:26px;display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;margin-bottom:18px}.reward-hero h2{font-size:32px;margin:0}.reward-hero p{color:var(--muted);font-size:12px;line-height:1.7}.level-ring{width:116px;height:116px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--brand) var(--level-progress,45%),#fff 0);position:relative}.level-ring:before{content:"";position:absolute;inset:8px;border-radius:inherit;background:#fff}.level-ring div{z-index:1;text-align:center}.level-ring b{display:block;font-size:27px}.level-ring small{font-size:9px;color:#8B95A4}.reward-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.reward-stats article,.badge-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:16px}.reward-stats b{display:block;font-size:24px;margin-bottom:3px}.reward-stats small{color:var(--muted);font-size:10px}.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.badge-card i{width:46px;height:46px;border-radius:15px;background:#F0F4FF;color:var(--brand);display:grid;place-items:center;margin-bottom:11px}.badge-card h3{font-size:14px;margin:0 0 4px}.badge-card p{font-size:10px;color:var(--muted);line-height:1.6;margin:0}
/* profile */
.profile-hub{display:grid;grid-template-columns:280px 1fr;gap:18px}.profile-main-card,.profile-panel{background:#fff;border:1px solid var(--line);border-radius:28px;padding:20px;box-shadow:0 10px 30px rgba(41,60,95,.05)}.profile-main-card{text-align:center}.profile-avatar{width:120px;height:120px;border-radius:38px;margin:0 auto 14px;background:linear-gradient(145deg,#EEF3FF,#EAFBF6);overflow:hidden;display:grid;place-items:center;color:var(--brand);font-size:38px}.profile-avatar img{width:100%;height:100%;object-fit:cover}.profile-main-card h2{margin:0 0 5px}.profile-main-card>p{color:var(--muted);font-size:11px;margin:0 0 14px}.profile-mini-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.profile-mini-stats div{background:#F7F9FC;border-radius:16px;padding:10px}.profile-mini-stats b{display:block}.profile-mini-stats small{color:#8A94A3;font-size:9px}.profile-menu{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.profile-menu button,.profile-menu a{min-height:72px;border:1px solid var(--line);background:#FAFBFC;border-radius:19px;padding:13px;display:flex;align-items:center;justify-content:space-between;color:#364152}.profile-menu span{display:flex;align-items:center;gap:10px}.profile-menu i{width:38px;height:38px;border-radius:12px;background:#EEF3FF;color:var(--brand);display:grid;place-items:center}.profile-menu svg{width:18px;height:18px}
/* avatars */
.avatar-lab{display:grid;grid-template-columns:320px 1fr;gap:18px}.avatar-preview{background:linear-gradient(155deg,#EEF4FF,#EBFBF7);border:1px solid #E0E7F0;border-radius:30px;min-height:420px;display:grid;align-content:center;justify-items:center;padding:22px;position:sticky;top:0}.avatar-preview figure{width:190px;aspect-ratio:1;border-radius:56px;background:#fff;overflow:hidden;box-shadow:0 25px 55px rgba(44,65,108,.12);position:relative;margin:0}.avatar-preview figure img{width:100%;height:100%;object-fit:cover}.avatar-preview h2{margin:17px 0 5px}.avatar-preview p{color:var(--muted);font-size:11px;text-align:center;line-height:1.7}.avatar-section{background:#fff;border:1px solid var(--line);border-radius:28px;padding:19px;margin-bottom:14px}.avatar-section h3{margin:0 0 14px}.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(126px,1fr));gap:10px}.avatar-item{border:1px solid var(--line);background:#FAFBFC;border-radius:19px;padding:9px;text-align:center}.avatar-item.selected{border-color:#B7C5FC;background:#F0F4FF}.avatar-item figure{aspect-ratio:1;margin:0 0 8px;border-radius:15px;overflow:hidden;background:#EEF2F7}.avatar-item figure img{width:100%;height:100%;object-fit:cover}.avatar-item h4{font-size:11px;margin:0 0 4px}.avatar-item small{font-size:9px;color:#8590A0}.avatar-item button{width:100%;margin-top:7px;height:34px;border:0;border-radius:11px;background:#fff;color:#445065;font-size:9px;font-weight:700}.avatar-item button.buy{background:var(--navy);color:#fff}
/* store */
.store-banner{min-height:220px;border-radius:30px;overflow:hidden;position:relative;background:linear-gradient(135deg,#172130,#263551);color:#fff;margin-bottom:18px;display:flex;align-items:flex-end;padding:25px}.store-banner>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.65}.store-banner:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(11,16,25,.78),rgba(11,16,25,.18))}.store-banner div{position:relative;z-index:2}.store-banner small{color:#BFD0FF}.store-banner h2{font-size:32px;margin:5px 0 8px}.store-banner p{font-size:11px;color:#D5DCE7;max-width:460px}.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}.product-card{background:#fff;border:1px solid var(--line);border-radius:23px;overflow:hidden}.product-card figure{margin:0;aspect-ratio:1.1;background:#F0F3F7;overflow:hidden}.product-card figure img{width:100%;height:100%;object-fit:cover}.product-card div{padding:14px}.product-card h3{margin:0 0 5px;font-size:15px}.product-card p{font-size:10px;color:var(--muted);line-height:1.6;min-height:32px}.product-card footer{display:flex;justify-content:space-between;align-items:center;margin-top:11px}.product-card b{font-size:15px}.product-card button{width:38px;height:38px;border:0;border-radius:12px;background:var(--navy);color:#fff;display:grid;place-items:center}
/* AI */
.ai-screen{background:#F5F7FB;overflow:hidden}.ai-shell{height:100%;display:grid;grid-template-rows:auto auto 1fr auto;max-width:820px;margin:auto;background:#fff}.ai-head{padding:14px 16px 10px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #EEF1F5}.ai-head-media{flex:0 0 48px;width:48px;height:48px;min-width:48px;max-width:48px;min-height:48px;max-height:48px;aspect-ratio:1;border-radius:16px;background:linear-gradient(145deg,#EDF3FF,#E9FAF5);display:grid;place-items:center;overflow:hidden;color:var(--brand)}.ai-head-media img{width:100%;height:100%;object-fit:cover}.ai-head>div:last-child{flex:1;min-width:0}.ai-head h2{font-size:16px;margin:0}.ai-head small{color:#8D97A6;font-size:9px}.ai-back{width:38px;height:38px;border:0;border-radius:12px;background:#F2F4F7;color:#566171;display:grid;place-items:center}.ai-suggestions{display:flex;gap:7px;padding:10px 14px;overflow:auto}.ai-suggestions button{border:1px solid #E4E8EF;background:#F9FAFC;border-radius:999px;padding:8px 11px;white-space:nowrap;font-size:9px;color:#4F5B6D}.ai-chat{min-height:0;overflow:auto;padding:10px 16px;display:flex;flex-direction:column;gap:10px}.bubble{max-width:82%;padding:11px 14px;border-radius:18px;font-size:12px;line-height:1.75}.bubble.ai{align-self:flex-start;background:#F2F5FA;color:#374151;border-bottom-left-radius:6px}.bubble.user{align-self:flex-end;background:var(--navy);color:#fff;border-bottom-right-radius:6px}.ai-composer{padding:10px 14px max(10px,env(safe-area-inset-bottom));display:flex;gap:8px;border-top:1px solid #EEF1F5}.ai-composer textarea{flex:1;min-height:48px;max-height:110px;border:1px solid #E4E8EF;border-radius:17px;background:#F8FAFC;padding:12px 14px;resize:none;outline:0}.ai-composer button{width:48px;height:48px;border:0;border-radius:17px;background:var(--navy);color:#fff;display:grid;place-items:center}
/* V16 hotfix: chrome remains visible on normal app screens */

/* GAME LAYER */
.game-layer{position:fixed;inset:0;z-index:3000;background:#0D1119;display:none;grid-template-rows:64px minmax(0,1fr);padding-top:env(safe-area-inset-top);color:#fff}.game-layer.open{display:grid;animation:layerIn .36s cubic-bezier(.2,.8,.2,1)}@keyframes layerIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}.game-layer header{display:flex;align-items:center;gap:12px;padding:8px 12px;background:rgba(12,17,25,.9);border-bottom:1px solid rgba(255,255,255,.08)}.game-layer header button{width:42px;height:42px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center}.game-layer header div{flex:1}.game-layer header small{display:block;color:#95A0B1;font-size:9px}.game-layer header b{font-size:13px}.game-layer header>span{padding:8px 10px;border-radius:12px;background:rgba(255,255,255,.08);font-size:11px}.game-layer iframe{width:100%;height:100%;border:0;background:#fff}.game-result{position:absolute;inset:0;background:rgba(9,13,20,.74);backdrop-filter:blur(16px);display:grid;place-items:center;padding:22px}.game-result-card{width:min(100%,380px);background:#fff;color:var(--ink);border-radius:28px;padding:24px;text-align:center;box-shadow:0 30px 80px rgba(0,0,0,.3)}.game-result-card i{width:68px;height:68px;border-radius:22px;background:#EEF3FF;color:var(--brand);display:grid;place-items:center;margin:0 auto 12px}.game-result-card h2{margin:0 0 6px}.game-result-card p{color:var(--muted);font-size:11px}.game-result-card button{height:46px;border:0;border-radius:15px;background:var(--navy);color:#fff;padding:0 20px;font-weight:700}

/* bottom sheet */
.sheet-backdrop{position:fixed;inset:0;z-index:1900;background:rgba(14,20,30,.3);backdrop-filter:blur(6px);opacity:0;pointer-events:none;transition:.25s}.sheet-backdrop.open{opacity:1;pointer-events:auto}.bottom-sheet{position:fixed;z-index:2000;left:0;right:0;bottom:0;max-height:min(76dvh,680px);background:#fff;border-radius:30px 30px 0 0;box-shadow:0 -25px 65px rgba(31,47,77,.18);padding:8px 18px calc(18px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .38s cubic-bezier(.2,.85,.2,1);overflow:auto}.bottom-sheet.open{transform:none}.sheet-handle{width:38px;height:4px;border-radius:9px;background:#D8DDE5;margin:4px auto 14px}.toast{position:fixed;z-index:4000;left:50%;bottom:calc(var(--nav-h) + 18px);transform:translate(-50%,20px);opacity:0;background:#152031;color:#fff;border-radius:999px;padding:10px 15px;font-size:10px;box-shadow:0 14px 35px rgba(20,31,49,.2);transition:.25s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}

/* ADMIN */
.admin-body{background:#F5F7FB;overflow:hidden}.admin-shell{height:100dvh;display:grid;grid-template-columns:252px minmax(0,1fr);direction:rtl}.admin-side{background:#111827;color:#fff;padding:18px 12px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px;overflow:hidden}.admin-logo{display:flex;align-items:center;gap:10px;padding:7px}.admin-logo>img,.admin-logo>i{width:44px;height:44px;border-radius:15px;background:#fff;object-fit:contain;padding:7px}.admin-logo>i{display:grid;place-items:center;color:var(--brand)}.admin-logo div{display:grid}.admin-logo b{font-size:14px}.admin-logo small{font-size:9px;color:#8995A8}.admin-side nav{overflow:auto;display:grid;align-content:start;gap:5px;padding-top:4px}.admin-nav-btn{width:100%;min-height:48px;border:0;border-radius:15px;background:transparent;color:#9DA8B8;display:flex;align-items:center;gap:11px;padding:0 13px;text-align:right}.admin-nav-btn span{width:30px;height:30px;border-radius:10px;display:grid;place-items:center}.admin-nav-btn svg{width:18px;height:18px}.admin-nav-btn.active{background:#fff;color:#111827;box-shadow:0 12px 30px rgba(0,0,0,.16)}.admin-nav-btn.active span{background:#EEF2FF;color:var(--brand)}.admin-side-foot{display:flex;align-items:center;justify-content:space-between;padding:9px;background:rgba(255,255,255,.06);border-radius:17px}.admin-side-foot>div{display:flex;align-items:center;gap:8px;font-size:11px}.admin-side-foot>div span{width:34px;height:34px;border-radius:11px;background:rgba(255,255,255,.08);display:grid;place-items:center}.admin-side-foot button{width:36px;height:36px;border:0;border-radius:11px;background:rgba(255,255,255,.08);color:#fff;display:grid;place-items:center}.admin-main{min-width:0;min-height:0;display:grid;grid-template-rows:80px minmax(0,1fr);overflow:hidden}.admin-top{display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid #E4E8EF;background:rgba(255,255,255,.86);backdrop-filter:blur(18px)}.admin-top>div:first-child span{font-size:9px;color:#8B95A4}.admin-top h1{font-size:24px;margin:3px 0 0}.admin-tools{display:flex;align-items:center;gap:8px}.admin-search{height:42px;width:min(30vw,330px);display:flex;align-items:center;gap:8px;background:#F6F8FA;border:1px solid #E4E8EF;border-radius:14px;padding:0 12px;color:#9099A7}.admin-search svg{width:17px}.admin-search input{border:0;outline:0;background:transparent;min-width:0;width:100%;font-size:11px}.admin-create{height:42px;border-radius:14px;background:var(--navy);color:#fff;padding:0 14px;display:flex;align-items:center;gap:7px;font-size:11px;font-weight:700}.admin-notify{width:42px;height:42px;border:1px solid #E4E8EF;background:#fff;border-radius:14px;display:grid;place-items:center;position:relative}.admin-notify i{position:absolute;top:8px;right:8px;width:6px;height:6px;border-radius:50%;background:#F15B6C}.admin-view{overflow:auto;padding:22px;min-height:0}.admin-dashboard{display:grid;gap:18px}.admin-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.admin-welcome h2{font-size:30px;margin:0 0 5px}.admin-welcome p{color:var(--muted);font-size:11px;margin:0}.admin-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:11px}.admin-kpi{background:#fff;border:1px solid #E5E9F0;border-radius:20px;padding:15px;display:grid;gap:8px;box-shadow:0 8px 22px rgba(45,62,94,.04)}.admin-kpi i{width:38px;height:38px;border-radius:12px;background:#F1F4FF;color:var(--brand);display:grid;place-items:center}.admin-kpi b{font-size:25px}.admin-kpi small{font-size:9px;color:#8B95A4}.admin-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:14px}.admin-card{background:#fff;border:1px solid #E4E8EF;border-radius:22px;padding:18px;box-shadow:0 8px 25px rgba(45,61,91,.04)}.admin-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.admin-card h2{font-size:16px;margin:0}.admin-card-head small{color:#8B95A4;font-size:9px}.content-list{display:grid;gap:8px}.content-row{display:flex;align-items:center;gap:11px;padding:10px;border:1px solid #EDF0F4;border-radius:15px}.content-thumb{width:58px;height:58px;border-radius:13px;background:#F0F3F7;overflow:hidden;display:grid;place-items:center;color:var(--brand);flex:none}.content-thumb img{width:100%;height:100%;object-fit:cover}.content-row-main{flex:1;min-width:0}.content-row-main b{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.content-row-main small{font-size:9px;color:#8B95A4}.status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#F0F4FF;color:#5065B3;font-size:8px;font-weight:700}.mini-actions{display:flex;gap:5px}.mini-actions button{border:0;border-radius:10px;padding:7px 9px;font-size:8px;font-weight:700}.approve{background:#EAF8F3;color:#26775C}.reject{background:#FFF0F2;color:#B33F4B}.admin-table-wrap{overflow:auto;border:1px solid #EDF0F4;border-radius:16px}.admin-table{width:100%;border-collapse:collapse;min-width:780px}.admin-table th,.admin-table td{padding:12px 13px;border-bottom:1px solid #EEF1F5;text-align:right;font-size:10px}.admin-table th{background:#F8FAFC;color:#7C8797;font-weight:700}.admin-table td{color:#354052}.admin-form{display:grid;gap:12px}.admin-form label{display:grid;gap:6px;color:#566171;font-size:9px;font-weight:700}.admin-form input,.admin-form select,.admin-form textarea{border:1px solid #E1E6ED;border-radius:13px;background:#F9FAFC;min-height:43px;padding:10px 12px;outline:0}.admin-form textarea{min-height:90px;resize:vertical}.admin-form button[type=submit]{height:45px;border:0;border-radius:14px;background:var(--navy);color:#fff;font-weight:700;padding:0 18px;width:max-content}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.settings-grid .wide{grid-column:1/-1}.theme-studio{display:grid;grid-template-columns:minmax(0,.9fr) minmax(350px,1.1fr);gap:16px}.theme-preview{position:sticky;top:0;border-radius:28px;overflow:hidden;background:#F1F4FA;border:1px solid #E3E8F0;min-height:650px}.phone-preview{width:300px;height:610px;margin:20px auto;border:8px solid #151B25;border-radius:42px;background:#fff;box-shadow:0 28px 60px rgba(20,31,49,.2);overflow:hidden;display:grid;grid-template-rows:52px 1fr 64px}.phone-preview header{display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #EDF0F4}.phone-preview main{background:linear-gradient(160deg,#EAF0FF,#ECFAF6);display:grid;place-items:center;padding:18px}.phone-preview main div{width:100%;padding:18px;border-radius:24px;background:#fff;box-shadow:0 16px 35px rgba(45,64,103,.1)}.phone-preview nav{display:grid;grid-template-columns:repeat(5,1fr);align-items:center;border-top:1px solid #EDF0F4}.phone-preview nav span{height:40px;display:grid;place-items:center;color:#8993A2}.phone-preview nav span:first-child{color:var(--brand)}
.media-upload-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.media-upload{border:1px dashed #D9DFE8;background:#FAFBFC;border-radius:16px;padding:12px;display:grid;gap:6px}.media-upload b{font-size:10px}.media-upload small{font-size:8px;color:#8993A2}.media-upload input{font-size:9px}
.avatar-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}.avatar-admin-card{border:1px solid #E8EBF0;border-radius:17px;padding:10px;display:flex;align-items:center;gap:10px}.avatar-admin-card img{width:54px;height:54px;object-fit:cover;border-radius:14px;background:#F0F4F8}.avatar-admin-card div{flex:1}.avatar-admin-card b{font-size:10px}.avatar-admin-card small{display:block;font-size:8px;color:#8A94A3;margin-top:3px}

/* Creator */
.studio-body{background:#F5F7FB}.studio-shell{min-height:100dvh;max-width:1400px;margin:auto;padding:18px}.studio-head{height:64px;background:#fff;border:1px solid #E4E8EF;border-radius:20px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.studio-brand{display:flex;align-items:center;gap:9px}.studio-brand img,.studio-brand i{width:38px;height:38px;border-radius:12px;background:#F3F5F8;object-fit:contain;padding:6px}.studio-brand i{display:grid;place-items:center;color:var(--brand)}.studio-head>div{display:grid;text-align:left}.studio-head span{font-size:8px;color:#8B95A4}.studio-head strong{font-size:11px}.studio-grid{display:grid;grid-template-columns:220px minmax(0,1fr);gap:14px}.studio-grid>aside{background:#111827;border-radius:22px;padding:10px;display:grid;align-content:start;gap:5px;min-height:calc(100dvh - 114px)}.studio-tab{min-height:46px;border:0;border-radius:13px;background:transparent;color:#9DA8B8;display:flex;align-items:center;gap:9px;padding:0 12px}.studio-tab.active{background:#fff;color:#111827}.studio-panel{background:#fff;border:1px solid #E4E8EF;border-radius:22px;padding:20px;min-height:600px}.studio-panel h1{margin:0 0 7px}.studio-panel>p{color:var(--muted);font-size:11px;line-height:1.7}

/* Family */
.family-body{background:#F5F7FB}.family-shell{max-width:1200px;margin:auto;padding:18px}.family-appbar{height:64px;background:#fff;border:1px solid #E4E8EF;border-radius:20px;padding:0 14px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.family-brand{display:flex;align-items:center;gap:10px}.family-brand img,.family-brand i{width:40px;height:40px;border-radius:13px;background:#F3F5F8;object-fit:contain;padding:6px}.family-brand i{display:grid;place-items:center;color:var(--brand)}.family-brand div{display:grid}.family-brand b{font-size:12px}.family-brand small{font-size:8px;color:#8B95A4}.family-actions{display:flex;gap:7px}.family-actions>a,.family-actions>button{width:40px;height:40px;border:1px solid #E4E8EF;border-radius:13px;background:#fff;display:grid;place-items:center;color:#566171}.family-app-card{background:#fff;border:1px solid #E4E8EF;border-radius:24px;padding:20px;box-shadow:0 8px 24px rgba(44,61,93,.04)}.family-hero{display:flex;justify-content:space-between;gap:20px;align-items:end;background:linear-gradient(135deg,#EDF3FF,#EEFBF8);margin-bottom:12px}.family-hero span{font-size:9px;color:var(--brand);font-weight:700}.family-hero h1{margin:5px 0 7px}.family-hero p{font-size:11px;color:var(--muted)}.family-child-switch{display:grid;gap:6px}.family-child-switch small{font-size:8px;color:#8792A1}.family-child-switch select{height:42px;border:1px solid #DFE4EC;border-radius:13px;background:#fff;padding:0 10px}.family-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:12px}.family-cards article{background:#fff;border:1px solid #E4E8EF;border-radius:20px;padding:16px}.family-cards i{width:36px;height:36px;border-radius:12px;background:#F0F4FF;color:var(--brand);display:grid;place-items:center;margin-bottom:9px}.family-cards span{font-size:9px;color:#7C8797;display:block}.family-cards b{font-size:22px;display:block;margin-top:4px}.family-story{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:12px}.family-story>div:first-child>span{font-size:8px;color:var(--brand);font-weight:700}.family-story h2{font-size:20px;margin:6px 0}.family-story p{font-size:10px;color:var(--muted);line-height:1.7}.family-mini-stats{display:flex;gap:12px}.family-mini-stats b{font-size:18px}.family-mini-stats small{display:block;color:#8A94A3;font-size:8px}.week-visual{height:140px;display:flex;align-items:end;gap:8px}.week-visual span{flex:1;min-height:8px;height:var(--h);border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,var(--brand),#AABCFD)}.week-labels{display:flex;gap:8px}.week-labels small{flex:1;text-align:center;font-size:7px;color:#8B95A4}.family-section-head{display:flex;justify-content:space-between;align-items:center}.family-section-head span{font-size:8px;color:#8B95A4}.family-section-head h2{margin:4px 0}.family-code-btn{height:40px;border:0;border-radius:13px;background:var(--navy);color:#fff;padding:0 13px;font-size:9px;font-weight:700}.family-code-box{padding:14px;margin:12px 0;background:#F1F5FF;border-radius:17px;text-align:center}.family-code-box strong{font-size:30px;letter-spacing:.15em;display:block}.family-code-box small{font-size:9px;color:#7D8796}.family-code-box button{margin-top:8px;border:0;border-radius:11px;padding:8px 11px;background:#fff}.family-children{display:grid;gap:8px;margin-top:12px}.family-child-row{display:flex;align-items:center;gap:10px;border:1px solid #EDF0F4;border-radius:15px;padding:10px}.family-child-avatar{width:40px;height:40px;border-radius:13px;background:#EEF3FF;color:var(--brand);display:grid;place-items:center;font-weight:800}.family-child-row>div:nth-child(2){flex:1}.family-child-row b{font-size:11px}.family-child-row small{display:block;color:#8A94A3;font-size:8px}.family-child-row button{width:34px;height:34px;border:0;border-radius:11px;background:#FFF1F3;color:#B5414E}.family-empty{text-align:center;padding:30px;color:#8691A0}.family-empty span{width:54px;height:54px;border-radius:17px;background:#EEF3FF;color:var(--brand);display:grid;place-items:center;margin:0 auto 10px}.family-empty b{display:block;color:var(--ink)}.family-empty p{font-size:9px;line-height:1.7}

/* Responsive */
@media(max-width:1100px){.admin-kpis{grid-template-columns:repeat(3,1fr)}.admin-layout{grid-template-columns:1fr}.theme-studio{grid-template-columns:1fr}.theme-preview{position:relative;min-height:0}.profile-hub,.avatar-lab{grid-template-columns:1fr}.avatar-preview{position:relative;min-height:320px}.games-hero{grid-template-columns:1fr 1fr}}
@media(max-width:860px){
  .auth-app{grid-template-columns:1fr}.auth-stage{min-height:44dvh;padding:22px 18px 26px;grid-template-rows:auto 1fr auto}.auth-visual-shell{width:min(48dvh,270px);padding:8px}.auth-stage-copy h1{font-size:30px}.auth-stage-copy p{font-size:11px}.auth-sheet{min-height:56dvh;padding:70px 18px 28px}.auth-sheet-top{top:16px;right:18px;left:18px}
  .admin-shell{grid-template-columns:76px minmax(0,1fr)}.admin-logo div,.admin-nav-btn>span+span,.admin-side-foot b{display:none}.admin-logo{justify-content:center}.admin-side nav{gap:7px}.admin-nav-btn{padding:0;justify-content:center}.admin-nav-btn span{width:42px;height:42px}.admin-side-foot{justify-content:center}.admin-side-foot>div{display:none}.admin-search{display:none}.admin-kpis{grid-template-columns:repeat(2,1fr)}
  .studio-grid{grid-template-columns:80px minmax(0,1fr)}.studio-grid>aside{padding:7px}.studio-tab{padding:0;justify-content:center;font-size:0}.studio-tab svg{width:20px;height:20px}.settings-grid{grid-template-columns:1fr}.settings-grid .wide{grid-column:auto}
  .family-story{grid-template-columns:1fr}
}
@media(max-width:640px){
  :root{--header-h:60px;--nav-h:72px}
  .app-header{padding-left:10px;padding-right:10px}.header-brand>img,.header-brand>span{width:36px;height:36px;border-radius:12px}.header-brand small{display:none}.header-actions{gap:5px}.icon-button{width:36px;height:36px;border-radius:12px}.points-pill{height:36px;border-radius:12px;padding:0 9px}.scroll-screen{padding:14px 12px 24px}.page-head{margin-bottom:16px}.page-head h1{font-size:28px}.page-head p{font-size:10px}.page-head .mini-action{height:38px;font-size:10px}
  .reel-bottom{left:72px;right:12px;bottom:12px}.reel-actions{left:10px;bottom:14px}.reel-action{width:44px;height:44px}.knowledge-visual{top:7%;left:12px;right:12px;height:47%;border-radius:28px}.reel:not(.video-reel) .reel-bottom{left:12px;right:12px;bottom:10px;border-radius:24px;padding:15px}.reel:not(.video-reel) .reel-bottom h2{font-size:23px}.reel:not(.video-reel) .reel-bottom p{font-size:10px}.game-reel .knowledge-visual{height:51%}.game-reel .reel-bottom{bottom:10px}.quiz-options{gap:6px}.choice-btn{min-height:40px;font-size:10px}
  .games-hero{grid-template-columns:1fr;min-height:auto}.games-hero-media{order:-1;min-height:200px}.games-hero-copy{padding:18px}.games-hero-copy h2{font-size:27px}.game-grid{grid-template-columns:1fr 1fr;gap:9px}.game-card-body{padding:11px}.game-card-body p{display:none}.game-card-body h3{font-size:13px}.game-card-foot span{font-size:8px}
  .reward-hero{grid-template-columns:1fr auto;padding:17px}.reward-hero h2{font-size:25px}.level-ring{width:88px;height:88px}.reward-stats{gap:7px}.reward-stats article{padding:12px}.reward-stats b{font-size:19px}.badge-grid{grid-template-columns:1fr 1fr;gap:8px}.badge-card{padding:12px}.badge-card p{display:none}
  .profile-main-card,.profile-panel{padding:15px}.profile-avatar{width:104px;height:104px;border-radius:32px}.profile-menu{grid-template-columns:1fr}.profile-menu button,.profile-menu a{min-height:62px}.avatar-preview figure{width:160px}.avatar-grid{grid-template-columns:repeat(3,1fr);gap:7px}.avatar-item{padding:7px;border-radius:15px}.avatar-item h4{font-size:9px}.avatar-item small{font-size:7px}.avatar-section{padding:13px}.product-grid{grid-template-columns:1fr 1fr;gap:9px}.product-card div{padding:10px}.product-card p{display:none}.store-banner{min-height:180px;padding:18px}.store-banner h2{font-size:26px}
  .admin-main{grid-template-rows:66px minmax(0,1fr)}.admin-top{padding:0 12px}.admin-top h1{font-size:18px}.admin-top>div:first-child span{display:none}.admin-create span{display:none}.admin-create{width:42px;padding:0;justify-content:center}.admin-view{padding:12px}.admin-kpis{grid-template-columns:1fr 1fr;gap:7px}.admin-kpi{padding:11px}.admin-kpi b{font-size:20px}.admin-welcome h2{font-size:22px}.admin-card{padding:13px}.theme-preview{display:none}.theme-studio{display:block}.media-upload-grid{grid-template-columns:1fr}.avatar-admin-grid{grid-template-columns:1fr}
  .family-shell{padding:10px}.family-hero{align-items:start;flex-direction:column}.family-cards{grid-template-columns:1fr 1fr}.family-cards article:last-child{grid-column:1/-1}.family-story{padding:15px}.family-manage{padding:15px}.family-section-head{align-items:flex-start;gap:10px}.family-section-head h2{font-size:17px}
}
@media(max-height:720px) and (max-width:640px){:root{--header-h:54px;--nav-h:64px}.nav-item small{display:none}.reel-bottom h2{font-size:21px}.knowledge-visual{top:5%;height:44%}.reel:not(.video-reel) .reel-bottom{padding:12px}.reel:not(.video-reel) .reel-bottom p{max-height:52px;overflow:hidden}.creator-line{margin-bottom:6px}.reel-cta{margin-top:8px}.intro-art{min-height:220px}.intro-abstract{width:230px}.intro-copy h1{font-size:28px}}
@media(min-width:1200px){
  .app-shell{grid-template-columns:92px minmax(0,1fr);grid-template-rows:76px minmax(0,1fr)}.app-header{grid-column:2;grid-row:1;padding:0 28px}.app-content{grid-column:2;grid-row:2}.app-nav{grid-column:1;grid-row:1/3;grid-template-columns:1fr;grid-template-rows:repeat(5,74px);align-content:center;padding:18px 10px;background:#fff;border-top:0;border-left:1px solid #E4E8EF}.nav-item{gap:5px}.nav-item small{font-size:9px}.nav-item.active:after{width:3px;height:28px;bottom:auto;right:-10px}.reels-feed{max-width:620px;margin:auto;border-left:1px solid rgba(255,255,255,.05);border-right:1px solid rgba(255,255,255,.05);box-shadow:0 0 80px rgba(0,0,0,.18)}.reel-session-progress{left:calc(50% - 296px);right:calc(50% - 296px)}.scroll-screen{padding-left:max(30px,calc((100vw - 1200px)/2));padding-right:max(30px,calc((100vw - 1200px)/2))}.ai-shell{border-left:1px solid #E8EBF0;border-right:1px solid #E8EBF0}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* V15 finishing layer: optional admin media, splash, game preview */
.app-splash{position:fixed;inset:0;z-index:6200;background:#F7F9FD;display:grid;place-items:center;overflow:hidden;transition:opacity .42s ease,visibility .42s ease}.app-splash.hide{opacity:0;visibility:hidden;pointer-events:none}.app-splash>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.app-splash:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(247,249,253,.02),rgba(247,249,253,.18) 58%,rgba(247,249,253,.78))}.app-splash>div{position:relative;z-index:2;align-self:end;margin-bottom:max(34px,env(safe-area-inset-bottom));display:grid;justify-items:center;gap:12px;color:var(--ink)}.app-splash b{font-size:20px}.app-splash span{width:76px;height:4px;border-radius:999px;background:#DCE3EE;overflow:hidden;position:relative}.app-splash span:after{content:"";position:absolute;inset:0;width:42%;border-radius:inherit;background:var(--brand);animation:splashLoad 1.15s ease-in-out infinite}@keyframes splashLoad{0%{transform:translateX(-160%)}55%{transform:translateX(80%)}100%{transform:translateX(250%)}}
.media-upload{position:relative;min-height:146px!important;padding:12px!important;border:1px solid #E4E8EF!important;border-radius:18px!important;background:#FAFBFD!important;align-content:start}.media-upload>small{font-size:8px;color:#8B95A4}.media-current{height:70px;border-radius:13px;overflow:hidden;background:#EFF3F8;display:block}.media-current img{width:100%;height:100%;object-fit:cover}.media-clear{display:flex!important;grid-template-columns:auto 1fr!important;align-items:center!important;gap:6px!important;font-size:8px!important;color:#A34B56!important;font-weight:600!important}.media-clear input{min-height:0!important;width:14px!important;height:14px!important;padding:0!important}.media-upload>input[type=file]{min-height:38px!important;font-size:8px!important;padding:7px!important;background:white!important}.game-reel.has-preview .knowledge-visual{background:rgba(255,255,255,.9)}.game-reel.has-preview .reel-media video{filter:saturate(.94) contrast(1.02)}


/* V16 Complete Experience */
:root{--font-ui:"Readex Pro",system-ui,-apple-system,"Segoe UI",sans-serif}
*{font-family:var(--font-ui)}
.verified-badge{display:inline-grid;place-items:center;width:19px;height:19px;border-radius:50%;background:linear-gradient(135deg,var(--brand),#3b82f6);color:#fff;vertical-align:-3px;margin-inline-start:5px;box-shadow:0 5px 14px color-mix(in srgb,var(--brand) 24%,transparent)}
.verified-badge svg{width:12px;height:12px;stroke-width:2.7}
.custom-nav-icon{width:25px;height:25px;object-fit:contain;display:block}.nav-item.active .custom-nav-icon{transform:translateY(-1px) scale(1.06)}
.install-button{display:none;min-width:44px;height:44px;border:1px solid rgba(78,102,134,.12);border-radius:15px;background:#fff;color:var(--ink);align-items:center;justify-content:center;box-shadow:0 8px 20px rgba(35,55,80,.07)}.install-button.show{display:inline-flex}.install-button svg{width:20px;height:20px}
.notification-panel{display:grid;gap:10px}.notification-row{padding:14px 15px;border:1px solid #e8edf4;border-radius:18px;background:#fff;display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center}.notification-row.unread{background:color-mix(in srgb,var(--brand) 5%,#fff);border-color:color-mix(in srgb,var(--brand) 20%,#e8edf4)}.notification-row i{width:40px;height:40px;border-radius:14px;background:#f3f6fb;color:var(--brand);display:grid;place-items:center}.notification-row i svg{width:20px;height:20px}.notification-row b{font-size:13px}.notification-row p{font-size:11px;color:#7b8795;margin-top:3px}.notification-row time{font-size:9px;color:#9ba5b2}.notify-clear{border:0;background:#eef4ff;color:var(--brand);padding:9px 12px;border-radius:12px;font-weight:700}
.profile-photo-wrap{position:relative}.profile-photo-edit{position:absolute;left:-5px;bottom:-5px;width:34px;height:34px;border-radius:12px;border:3px solid #fff;background:var(--ink);color:#fff;display:grid;place-items:center}.profile-photo-edit svg{width:16px;height:16px}.profile-photo-actions{display:flex;gap:8px;justify-content:center;margin-top:10px}.profile-photo-actions button{border:0;border-radius:12px;padding:9px 12px;background:#f1f5f9;color:#334155;font-weight:700}
.avatar-gender-gate{min-height:430px;display:grid;place-items:center;padding:24px}.avatar-gender-card{width:min(520px,100%);text-align:center;background:#fff;border:1px solid #e8edf4;border-radius:30px;padding:26px;box-shadow:0 24px 70px rgba(45,64,90,.09)}.avatar-gender-card h2{font-size:28px;margin:9px 0}.gender-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}.gender-choice{min-height:150px;border:1px solid #e5eaf1;border-radius:24px;background:linear-gradient(180deg,#fff,#f8fbff);display:grid;place-items:center;gap:8px;font-weight:800;color:var(--ink);transition:.25s cubic-bezier(.2,.8,.2,1)}.gender-choice:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(55,76,104,.10);border-color:color-mix(in srgb,var(--brand) 35%,#e5eaf1)}.gender-choice svg{width:44px;height:44px;color:var(--brand)}
.avatar-preview-stack{position:relative;aspect-ratio:1/1;width:min(260px,72vw);margin:auto}.avatar-preview-stack img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}.avatar-preview-stack img.base{z-index:1}.avatar-preview-stack img.layer{z-index:2;pointer-events:none}.avatar-slot-tabs{display:flex;gap:7px;overflow:auto;padding:4px 0 10px}.avatar-slot-tabs button{white-space:nowrap;border:1px solid #e7ebf2;background:#fff;padding:8px 12px;border-radius:999px;font-size:11px}.avatar-slot-tabs button.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.points-history{display:grid;gap:8px;margin-top:18px}.points-move{display:grid;grid-template-columns:40px 1fr auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #edf0f4;border-radius:16px;background:#fff}.points-move i{width:38px;height:38px;border-radius:12px;background:#f5f7fb;display:grid;place-items:center}.points-move i svg{width:18px}.points-move b{font-size:12px}.points-move small{display:block;font-size:10px;color:#8a94a3}.points-move strong{font-size:13px}.points-move strong.pos{color:#13a86b}.points-move strong.neg{color:#e45b65}
.celebration-layer{position:fixed;inset:0;pointer-events:none;z-index:10000;overflow:hidden}.celebration-particle{position:absolute;top:45%;left:50%;width:10px;height:16px;border-radius:4px;background:var(--c,#5b7cfa);animation:confettiFly .95s cubic-bezier(.12,.8,.25,1) forwards;transform:translate(-50%,-50%) rotate(var(--r,0deg))}.points-pop{position:fixed;z-index:10001;left:50%;top:45%;transform:translate(-50%,-50%);padding:14px 20px;border-radius:999px;background:rgba(17,24,39,.92);color:#fff;font-size:18px;font-weight:800;box-shadow:0 22px 50px rgba(0,0,0,.22);animation:pointsPop .95s ease forwards}
@keyframes confettiFly{to{transform:translate(calc(-50% + var(--x)),calc(-50% + var(--y))) rotate(calc(var(--r) + 360deg));opacity:0}}@keyframes pointsPop{0%{opacity:0;transform:translate(-50%,-40%) scale(.7)}25%{opacity:1;transform:translate(-50%,-50%) scale(1.08)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-70%) scale(.95)}}
.pwa-sheet{display:grid;gap:14px;text-align:center;padding:12px 4px}.pwa-sheet i{width:74px;height:74px;margin:auto;border-radius:22px;background:linear-gradient(145deg,color-mix(in srgb,var(--brand) 15%,#fff),#fff);display:grid;place-items:center;color:var(--brand)}.pwa-sheet i svg{width:35px;height:35px}.pwa-sheet h2{font-size:22px}.pwa-sheet p{font-size:13px;line-height:1.8;color:#6d7887}
.app-splash{background:#fff;z-index:12000}.app-splash video,.app-splash img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.app-splash .splash-overlay{position:absolute;inset:auto 0 0;padding:32px 22px 30px;background:linear-gradient(transparent,rgba(0,0,0,.44));color:#fff;z-index:2}.app-splash .splash-progress{height:4px;background:rgba(255,255,255,.28);border-radius:99px;overflow:hidden;margin-top:12px}.app-splash .splash-progress span{display:block;height:100%;background:#fff;width:0;animation:splashProgress var(--splash-duration,3s) linear forwards}@keyframes splashProgress{to{width:100%}}
.audio-status{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#7c8794}.audio-status i{width:7px;height:7px;border-radius:50%;background:#34c38f}
.text-manager{display:grid;gap:10px}.text-row{display:grid;grid-template-columns:minmax(220px,.9fr) 1.5fr;gap:14px;padding:13px;border:1px solid #e7ebf2;border-radius:18px;background:#fbfcfe}.text-row small{color:#8a94a3;display:block;margin-bottom:5px}.text-row b{font-size:12px;line-height:1.7}.text-row textarea{min-height:72px;border:1px solid #e2e7ee;border-radius:13px;padding:10px;background:#fff;resize:vertical}.nav-editor-row{display:grid;grid-template-columns:.8fr 1fr .8fr 1.1fr 50px;gap:7px;margin-bottom:8px;align-items:center;padding:9px;border:1px solid #e8edf3;border-radius:16px}.nav-icon-upload{font-size:10px}.nav-icon-current{width:36px;height:36px;object-fit:contain;border-radius:10px;background:#f5f7fb;padding:5px}.media-current audio,.media-current video{width:100%;max-height:140px}.media-current video{border-radius:13px;background:#111}
.install-ios-tip{font-size:12px;background:#f7f9fc;border-radius:14px;padding:12px;color:#5e6a79}
.profile-verified-name{display:flex;align-items:center;justify-content:center;gap:4px}
.publisher-avatar{position:relative}.publisher-avatar .verified-badge{position:absolute;left:-3px;bottom:-3px;width:17px;height:17px;margin:0}
@media(max-width:720px){.text-row{grid-template-columns:1fr}.nav-editor-row{grid-template-columns:1fr 1fr}.nav-icon-upload{grid-column:1/-1}.avatar-gender-card{padding:20px}.gender-choice{min-height:128px}.install-button{width:42px;height:42px}.notification-row{grid-template-columns:38px 1fr}.notification-row time{grid-column:2}}
@media(prefers-reduced-motion:reduce){.celebration-particle,.points-pop,.app-splash .splash-progress span{animation-duration:.01ms!important}}

/* V16 final polish */
.ripple-host{position:relative;overflow:hidden}
.ui-ripple{position:absolute;border-radius:50%;background:rgba(91,124,250,.16);transform:translate(-50%,-50%) scale(0);animation:uiRipple .55s ease-out;pointer-events:none;z-index:5}
@keyframes uiRipple{to{transform:translate(-50%,-50%) scale(4);opacity:0}}
.family-child-avatar{overflow:hidden}.family-child-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.verified-inline{display:inline-grid;place-items:center;width:16px;height:16px;color:var(--primary,#5B7CFA);vertical-align:-3px}.verified-inline svg{width:100%;height:100%}
.profile-photo-actions button.active{background:var(--ink,#151A2D);color:#fff}
.install-action[hidden],#installBtn:not(.show){display:none!important}
@media (display-mode:standalone){#installBtn,.install-action{display:none!important}}
.server-verified{margin-inline-start:6px}.server-verified svg{width:100%;height:100%}

/* V16 PWA/AI image fix2 */
.ai-head-media{flex:0 0 48px!important;width:48px!important;height:48px!important;min-width:48px!important;max-width:48px!important;min-height:48px!important;max-height:48px!important;aspect-ratio:1!important;overflow:hidden!important;border-radius:16px!important}.ai-head-media img{display:block!important;width:100%!important;height:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;max-height:100%!important;object-fit:cover!important;object-position:center!important}.ai-head>div:last-child{flex:1;min-width:0}.ai-head>div:last-child h2,.ai-head>div:last-child small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:420px){.ai-head-media{flex-basis:44px!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important}}

/* FW V16 AUTOPLAY DARK MODE PATCH */
#themeBtn{transition:transform .22s cubic-bezier(.2,.8,.2,1),background .22s ease,color .22s ease,border-color .22s ease}
#themeBtn:active{transform:scale(.9)}
html[data-theme="dark"]{color-scheme:dark;--app-bg:#0B111D;--surface:#121A28;--ink:#F4F7FB;--muted:#98A5B8;--line:#263247;--soft:#182233;--bluewash:#151F33;--mintwash:#122720;--navy:#5B7CFA;--shadow:0 24px 70px rgba(0,0,0,.34);--shadow-sm:0 10px 28px rgba(0,0,0,.24)}
html[data-theme="dark"],html[data-theme="dark"] body{background:#0B111D;color:var(--ink)}
html[data-theme="dark"] .app-shell,html[data-theme="dark"] .app-content,html[data-theme="dark"] .scroll-screen{background:#0B111D;color:var(--ink)}
html[data-theme="dark"] .app-header{background:rgba(11,17,29,.9);border-bottom-color:rgba(51,65,85,.72)}
html[data-theme="dark"] .app-nav{background:rgba(14,21,34,.94);border-top-color:#263247}
html[data-theme="dark"] .icon-button,html[data-theme="dark"] .points-pill{background:rgba(23,33,50,.9);border-color:#2A3850;color:#DDE6F4;box-shadow:0 8px 20px rgba(0,0,0,.18)}
html[data-theme="dark"] .points-pill{color:#EAF0FA}
html[data-theme="dark"] .nav-item{color:#8795A9}
html[data-theme="dark"] .nav-item.active{color:#8EA8FF}
html[data-theme="dark"] .reel:not(.video-reel){background:linear-gradient(155deg,#0E1726,#111C2C 58%,#10251F);color:#F4F7FB}
html[data-theme="dark"] .reel:not(.video-reel) .reel-media::after{background:linear-gradient(180deg,rgba(11,17,29,.05),rgba(11,17,29,.3) 45%,rgba(11,17,29,.96) 100%)}
html[data-theme="dark"] .reel:not(.video-reel) .reel-top .reel-chip{background:rgba(19,29,45,.8);color:#E6EDF7;border-color:#31405A;box-shadow:none}
html[data-theme="dark"] .knowledge-visual{background:linear-gradient(145deg,#172337,#101A2A);border-color:#2A3850;box-shadow:0 28px 70px rgba(0,0,0,.3)}
html[data-theme="dark"] .knowledge-symbol{background:#172337;color:#8EA8FF;box-shadow:0 20px 45px rgba(0,0,0,.28)}
html[data-theme="dark"] .reel:not(.video-reel) .reel-bottom{background:rgba(17,26,40,.86);border-color:#2A3850;color:#F4F7FB;box-shadow:0 20px 55px rgba(0,0,0,.26)}
html[data-theme="dark"] .reel:not(.video-reel) .reel-bottom p,html[data-theme="dark"] .reel:not(.video-reel) .creator-line small{color:#A7B2C2}
html[data-theme="dark"] .reel-cta button.secondary{background:#1B273A;color:#DCE5F2}
html[data-theme="dark"] .choice-btn{background:#151F30;border-color:#2A3850;color:#DDE6F4}
html[data-theme="dark"] .choice-btn.selected{background:#1B2A4A;border-color:#5874D8;color:#BFD0FF}
html[data-theme="dark"] .page-head .mini-action{background:#151F30;border-color:#2A3850;color:#DDE6F4}
html[data-theme="dark"] .empty-state{color:#94A3B8}
html[data-theme="dark"] .empty-state span{background:#172337;color:#8EA8FF;box-shadow:none}
html[data-theme="dark"] .empty-state h3{color:#F4F7FB}
html[data-theme="dark"] .game-card,html[data-theme="dark"] .reward-stats article,html[data-theme="dark"] .badge-card,html[data-theme="dark"] .profile-main-card,html[data-theme="dark"] .profile-panel,html[data-theme="dark"] .product-card,html[data-theme="dark"] .avatar-section,html[data-theme="dark"] .avatar-item{background:#121A28;border-color:#263247;color:#F4F7FB;box-shadow:0 10px 30px rgba(0,0,0,.16)}
html[data-theme="dark"] .game-cover,html[data-theme="dark"] .product-card figure{background:#172337}
html[data-theme="dark"] .profile-mini-stats div,html[data-theme="dark"] .profile-menu button,html[data-theme="dark"] .profile-menu a{background:#151F30;border-color:#263247;color:#DCE5F2}
html[data-theme="dark"] .profile-menu i{background:#1B2A47;color:#91AAFF}
html[data-theme="dark"] .reward-hero{background:linear-gradient(135deg,#15223A,#10261F);border-color:#263247}
html[data-theme="dark"] .level-ring{background:conic-gradient(var(--brand) var(--level-progress,45%),#253247 0)}
html[data-theme="dark"] .level-ring:before{background:#121A28}
html[data-theme="dark"] .ai-screen{background:#0B111D}
html[data-theme="dark"] .ai-shell{background:#101824;border-color:#263247}
html[data-theme="dark"] .ai-head,html[data-theme="dark"] .ai-composer{border-color:#263247}
html[data-theme="dark"] .ai-head-media{background:linear-gradient(145deg,#1A2942,#132A25)}
html[data-theme="dark"] .ai-back,html[data-theme="dark"] .ai-suggestions button{background:#172337;border-color:#2A3850;color:#DDE6F4}
html[data-theme="dark"] .bubble.ai{background:#172337;color:#DDE6F4}
html[data-theme="dark"] .ai-composer textarea{background:#151F30;border-color:#2A3850;color:#F4F7FB}
html[data-theme="dark"] .bottom-sheet{background:#121A28;color:#F4F7FB;box-shadow:0 -25px 65px rgba(0,0,0,.45)}
html[data-theme="dark"] .sheet-handle{background:#43516A}
html[data-theme="dark"] .notification-row{border-color:#263247}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{color:#F4F7FB}
html[data-theme="dark"] ::placeholder{color:#78879B}
@media(min-width:900px){html[data-theme="dark"] .app-nav{background:#101824;border-left-color:#263247}html[data-theme="dark"] .ai-shell{border-left-color:#263247;border-right-color:#263247}}