:root{--bg:#fff8ec;--card:#fff;--ink:#3b2f2f;--muted:#8a7d72;--line:#eadfce;--uc:#ff7a59;--ok:#3fae6a;--bad:#e53935;--hl:#e53935;--r:22px;--sh:0 4px 0 rgba(59,47,47,.12),0 10px 24px rgba(59,47,47,.08)}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:"Nunito","Segoe UI",Arial,sans-serif;font-size:18px}
body{background-image:radial-gradient(circle at 10% 10%,#ffe9c7 0 120px,transparent 121px),radial-gradient(circle at 95% 30%,#e3f1ff 0 160px,transparent 161px);background-attachment:fixed;min-height:100vh}
a{color:inherit}
button{font:inherit;color:inherit;cursor:pointer;border:0;background:none}
.hidden{display:none!important}
.wrap{max-width:960px;margin:0 auto;padding:16px}

/* Дээд мөр */
.top{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:10px 16px;background:var(--uc);color:#fff;box-shadow:0 3px 0 rgba(0,0,0,.08)}
.top h1{flex:1;margin:0;font-size:1.35rem;font-weight:900}
.top h1 small{font-weight:700;opacity:.85;font-size:.8rem}
.top a{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:rgba(255,255,255,.25);text-decoration:none;font-size:1.5rem;font-weight:900}

/* Нүүр */
.home{max-width:820px;margin:0 auto;padding:40px 16px;text-align:center}
.logo{font-size:clamp(2.6rem,9vw,4.4rem);margin:0;font-weight:900;letter-spacing:1px}
.sub{color:var(--muted);margin:.2em 0 28px;font-weight:700}
.big-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:20px}
.big-card{display:flex;flex-direction:column;align-items:center;gap:6px;padding:26px 16px;border-radius:30px;text-decoration:none;color:#fff;box-shadow:var(--sh);transition:transform .15s}
.big-card:active,.big-card:hover{transform:translateY(-3px) scale(1.02)}
.big-card.c1{background:linear-gradient(160deg,#ff9b7a,#ff6a4a)}
.big-card.c2{background:linear-gradient(160deg,#ffc94a,#f59b2a)}
.big-card b{font-size:2.2rem;font-weight:900}
.big-card small{font-weight:700;opacity:.9}
.bc-art{display:flex;gap:8px}
.bc-art span{display:grid;place-items:center;width:64px;height:64px;border-radius:18px;background:#fff;color:var(--ink);font-size:2.4rem;font-weight:900;box-shadow:0 3px 0 rgba(0,0,0,.12)}
.bc-art span:nth-child(2){transform:rotate(-6deg) translateY(-6px)}
.teacher-link{display:inline-block;margin:28px 10px 0;color:var(--muted);font-weight:800}
.note-box{margin:22px auto 0;max-width:620px;padding:12px 16px;border-radius:16px;background:#fff3c4;border:2px dashed #f2c94c;font-size:.92rem;text-align:left}

/* Үсгийн газрын зураг */
.unit{margin:8px 0 26px}
.unit h2{display:inline-block;margin:0 0 12px;padding:6px 16px;border-radius:999px;background:var(--uc);color:#fff;font-size:1.05rem}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px}
.tile{display:flex;flex-direction:column;align-items:center;padding:12px 4px 8px;border-radius:var(--r);background:var(--card);text-decoration:none;box-shadow:var(--sh);border:3px solid transparent;transition:transform .12s}
.tile:hover{transform:translateY(-2px);border-color:var(--uc)}
.tl{font-size:2.3rem;font-weight:900;color:var(--uc);line-height:1.1}
.stars{letter-spacing:1px;color:#e7dccb;font-size:1rem}
.stars .on{color:#ffb300}

/* Алхмууд */
.steps{display:flex;gap:8px;overflow-x:auto;padding:12px 16px;max-width:960px;margin:0 auto;scrollbar-width:none}
.steps a{flex:0 0 auto;display:flex;align-items:center;gap:6px;padding:8px 14px 8px 8px;border-radius:999px;background:#fff;text-decoration:none;font-weight:800;font-size:.9rem;box-shadow:var(--sh)}
.steps a i{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:var(--line);font-style:normal}
.steps a.done i{background:var(--ok);color:#fff}
.steps a.done i::after{content:""}
.steps a.cur{background:var(--uc);color:#fff}
.steps a.cur i{background:#fff;color:var(--uc)}
.lead{font-size:1.25rem;font-weight:800;text-align:center;margin:8px 0 16px}
.hl{color:var(--hl)}
.hl.big{font-size:1.6em}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:56px;padding:0 26px;border-radius:999px;background:var(--uc);color:#fff;font-weight:900;font-size:1.1rem;text-decoration:none;box-shadow:0 4px 0 rgba(0,0,0,.15)}
.btn:active{transform:translateY(2px);box-shadow:0 2px 0 rgba(0,0,0,.15)}
.btn.ghost{background:#fff;color:var(--ink);border:3px solid var(--line);box-shadow:none}
.nextrow{display:flex;justify-content:center;gap:12px;margin:26px 0 10px;flex-wrap:wrap}
.btn.next{animation:bob 1.6s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(-4px)}}

/* Танилцах */
.hero{display:flex;gap:24px;align-items:center;justify-content:center;flex-wrap:wrap;margin:6px 0 20px}
.bigletter{font-size:clamp(6rem,24vw,10rem);font-weight:900;color:var(--uc);line-height:1;padding:10px 30px;border-radius:36px;background:#fff;box-shadow:var(--sh)}
.bigletter span{font-size:.7em;margin-left:.08em}
.bigletter.pop,.pop{animation:pop .4s}
@keyframes pop{40%{transform:scale(1.12)}}
.hero-side{max-width:300px;text-align:center}
.hero .hint{font-size:1.3rem;font-weight:800;margin:0 0 12px;color:var(--ink)}
.pics{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px}
.pcard{display:flex;flex-direction:column;align-items:center;padding:12px;border-radius:var(--r);background:#fff;box-shadow:var(--sh);font-weight:900;font-size:1.3rem}
.pic{width:100%;height:auto;max-width:120px;display:block}
.pic-text{display:grid;place-items:center;font-size:1.6rem;font-weight:900;min-height:80px}

/* Авианы нүд */
.boxcard{display:flex;flex-direction:column;align-items:center;gap:18px;padding:22px;border-radius:30px;background:#fff;box-shadow:var(--sh);max-width:560px;margin:0 auto}
.pic-btn .pic{max-width:200px}
.boxes{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.sbox{width:64px;height:64px;border:3px solid #6b6b7b;background:#fff;font-size:1.9rem;font-weight:900;border-radius:6px}
.sbox.ok{background:#ffd6e3;color:var(--hl);border-color:var(--hl)}
.sbox:disabled{color:var(--ink)}
.sbox.ok:disabled{color:var(--hl)}
.count{color:var(--muted);font-weight:800;text-align:center;margin-top:8px}

/* Үе */
.sylshow{display:flex;justify-content:center;align-items:center;gap:10px;font-size:clamp(2.4rem,9vw,4rem);font-weight:900;margin:6px 0 22px;min-height:1.4em}
.sylshow .c{color:#4f8de0}.sylshow .v{color:#ff7a59}.sylshow .pl{color:var(--muted);font-size:.6em}
.sylshow .r{padding:0 18px;border-radius:20px;background:#fff;box-shadow:var(--sh);color:var(--ink)}
.syls{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px}
.syl{height:84px;border-radius:var(--r);background:#fff;box-shadow:var(--sh);font-size:2rem;font-weight:900}
.syl.seen{background:#eaf7ef}

/* Үсэг олох */
.fgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;max-width:420px;margin:0 auto}
.fcell{aspect-ratio:1;border-radius:24px;background:#fff;box-shadow:var(--sh);font-size:clamp(2.6rem,12vw,3.6rem);font-weight:900;transform:rotate(var(--r))}
.fcell.ok{background:var(--ok);color:#fff;transform:rotate(0) scale(1.05)}

/* Бичих */
.tracebar{display:flex;justify-content:center;gap:10px;margin:10px 0}
.tog{background:#fff;color:var(--ink);border:3px solid var(--line);box-shadow:none}
.tog.cur{background:var(--uc);color:#fff;border-color:var(--uc)}
.tracebox{position:relative;width:100%;max-width:380px;aspect-ratio:1;margin:0 auto;border-radius:26px;background:#fff;box-shadow:var(--sh);overflow:hidden;touch-action:none}
.tracebox canvas{position:absolute;inset:0}
.msg{text-align:center;font-weight:900;font-size:1.2rem;min-height:1.4em;color:var(--bad)}
.msg.good{color:var(--ok)}

/* Унших */
.words{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.word{padding:14px 22px;border-radius:18px;background:#fff;box-shadow:var(--sh);font-size:clamp(1.6rem,6vw,2.2rem);font-weight:900}
.word.seen{background:#eaf7ef}
.sentence{display:block;margin:26px auto 0;padding:18px 24px;border-radius:24px;background:#fff8d6;border:3px dashed #f2c94c;font-size:clamp(1.4rem,5vw,2rem);font-weight:900;text-align:center}

/* Математик */
.mgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px}
.munit{position:relative;display:flex;flex-direction:column;align-items:center;gap:4px;padding:16px 12px 12px;border-radius:var(--r);background:#fff;text-decoration:none;box-shadow:var(--sh);text-align:center}
.munit:hover{transform:translateY(-2px)}
.munit .mn{position:absolute;top:10px;left:12px;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#ffb300;color:#fff;font-weight:900}
.munit .mi{max-width:70px}
.munit b{font-size:1.05rem}
.munit small{color:var(--muted);font-weight:700}
.pbar{height:10px;background:#f1e6d4}
.pbar i{display:block;height:100%;background:#3fae6a;transition:width .3s}
.qhead{display:flex;align-items:center;gap:12px;justify-content:center;margin:6px 0 14px}
.qhead h2{margin:0;font-size:clamp(1.4rem,5vw,2.1rem);font-weight:900;text-align:center}
.say{flex:0 0 auto;width:54px;height:54px;border-radius:50%;background:#fff;box-shadow:var(--sh);font-size:1.4rem}
.vis{display:flex;justify-content:center;padding:16px;border-radius:28px;background:#fff;box-shadow:var(--sh);margin-bottom:18px}
.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:14px}
.choice{min-height:84px;border-radius:24px;background:#fff;box-shadow:var(--sh);font-size:clamp(1.5rem,6vw,2.2rem);font-weight:900;border:4px solid transparent;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px}
.choice.ok{background:var(--ok);color:#fff}
.choice.bad{opacity:.35}
.ch-pic{max-width:90px}
.mini-shape svg{width:44px;height:44px}
.objs{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;max-width:430px}
.objs .obj{width:62px;height:62px}
.objs.row .obj{width:72px;height:72px}
.objs .gone{position:relative;opacity:.45}
.objs .gone::after{content:"";position:absolute;inset:6px;background:linear-gradient(45deg,transparent 45%,var(--bad) 45% 55%,transparent 55%)}
.addvis{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}
.addvis .objs{max-width:220px}
.op{font-size:2.6rem;font-weight:900;color:var(--muted)}
.cmp{display:flex;gap:22px;align-items:center;font-size:4rem;font-weight:900}
.slot{display:inline-grid;place-items:center;min-width:1.3em;padding:0 .2em;border:4px dashed #b9b0a4;border-radius:16px;color:#b9b0a4}
.nline{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}
.nline span{display:grid;place-items:center;width:46px;height:52px;border-radius:12px;background:#f6f0e6;font-size:1.5rem;font-weight:900}
.nline span.cur{background:#ffd23f}
.bond{display:flex;flex-direction:column;align-items:center;gap:18px;font-size:2.4rem;font-weight:900}
.bond .whole,.bond .parts div{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:#ffe3d6;border:4px solid #ff7a59}
.bond .parts{display:flex;gap:60px;position:relative}
.bond .parts div{background:#e3f1ff;border-color:#4f8de0}
.bond .parts .slot{border-style:dashed;color:#b9b0a4;background:#fff}
.money{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.note{display:grid;place-items:center;width:96px;height:52px;border-radius:8px;font-weight:900;font-size:1.4rem;border:3px solid #3b2f2f}
.n1{background:#e3f1c7}.n5{background:#ffd6b0}.n10{background:#cfe8ff}
.scene{position:relative;width:300px;height:260px}
.scene .scene-mid{position:absolute;left:25%;top:36%;width:50%;max-width:none}
.scene-obj{position:absolute;width:22%}
.scene-obj .pic{width:100%}
.scene.depth{width:300px;height:220px}
.scene.depth .back{position:absolute;left:38%;top:2%;width:40%}
.scene.depth .front{position:absolute;left:14%;top:28%;width:52%}
.scene.depth .pic{max-width:none}
.seesaw{position:relative;width:320px;height:200px}
.seesaw .beam{position:absolute;left:10px;right:10px;top:120px;height:12px;background:#c98a4b;border:2.5px solid #3b2f2f;border-radius:6px;transform-origin:50% 50%}
.seesaw .sp{position:absolute;bottom:10px;width:96px}
.seesaw .sp.l{left:0}.seesaw .sp.r{right:0}
.seesaw .pivot{position:absolute;left:50%;top:132px;width:0;height:0;margin-left:-28px;border:28px solid transparent;border-bottom:52px solid #8d5a33;border-top:0}
.cap{display:flex;gap:30px}
.cap>div{display:flex;flex-direction:column;align-items:center;font-weight:900;font-size:1.3rem}
.cap .pic{width:110px}
.tag{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#ffb300;color:#fff}
.big-pic .pic{width:150px;max-width:none}
.big-svg{width:200px;height:200px}
.pv{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;justify-content:center}
.ten{display:flex;flex-direction:column;border:2.5px solid #3b2f2f;border-radius:6px;overflow:hidden}
.ten i{display:block;width:26px;height:16px;background:#4f8de0;border-bottom:1.5px solid #2c5fa8}
.ten i:last-child{border:0}
.ones{display:flex;flex-direction:column-reverse;flex-wrap:wrap;max-height:180px;gap:4px}
.ones i{display:block;width:26px;height:16px;border-radius:3px;background:#ff7a59;border:2px solid #3b2f2f}
.hint{color:var(--muted)}
.vis .hint{font-size:1.6rem;font-weight:900}
.ruler-wrap{position:relative;width:100%;max-width:560px;padding:10px 0 0}
.measured{height:36px;margin-bottom:4px}
.measured svg{width:100%;height:100%}
.ruler{position:relative;height:48px;background:#ffe9a8;border:2.5px solid #3b2f2f;border-radius:6px}
.ruler span{position:absolute;top:0;width:2px;height:18px;background:#3b2f2f;transform:translateX(-1px)}
.ruler em{position:absolute;top:20px;left:-8px;width:16px;text-align:center;font-style:normal;font-weight:900;font-size:.9rem}
.rows{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.rows .objs{justify-content:flex-start;max-width:none;flex-wrap:nowrap;gap:4px}
.rows .obj{width:min(44px,8vw);height:min(44px,8vw)}
.tallies{font-size:3.4rem;font-weight:900;letter-spacing:2px;display:flex;gap:22px;flex-wrap:wrap;justify-content:center}
.tally.five{text-decoration:line-through;text-decoration-thickness:4px}
.picto{display:flex;flex-direction:column;gap:8px}
.picto>div{display:flex;align-items:center;gap:6px}
.picto .lab{width:56px;height:56px}
.kid{font-size:2rem;color:#4f8de0}
.pairs{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;max-width:420px}
.pairs span{display:flex;flex-direction:column;gap:4px}
.pairs i{display:block;width:26px;height:26px;border-radius:50%;background:#a066d3;border:2px solid #3b2f2f}
.done{text-align:center;padding:30px 0}
.bigstars .stars{font-size:4rem}
.done h2{font-size:2.2rem;margin:.2em 0}

/* Багш */
.teacher .card{background:#fff;border-radius:var(--r);padding:16px 18px;margin-bottom:16px;box-shadow:var(--sh)}
.teacher h2{margin:0 0 8px;font-size:1.2rem}
.teacher select{font:inherit;padding:6px 10px;border-radius:10px;border:2px solid var(--line)}
.reclist{list-style:none;padding:0;margin:12px 0 0}
.reclist li{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line);flex-wrap:wrap}
.reclist li span{flex:1;font-weight:800;min-width:140px}
.reclist em{color:var(--ok);font-weight:800;font-style:normal;font-size:.85rem}
.mini{padding:6px 12px;border-radius:999px;background:#f3ece1;font-weight:800;font-size:.9rem}
.mini.rec.on{background:var(--bad);color:#fff;animation:bob 1s infinite}

/* Эффект */
.shake{animation:shake .4s}
@keyframes shake{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
.burst{position:absolute;width:0;height:0;pointer-events:none;z-index:50}
.burst i{position:absolute;font-style:normal;font-size:26px;color:var(--c);transform:translate(-50%,-50%);animation:fly .85s ease-out forwards}
@keyframes fly{to{transform:translate(-50%,-50%) rotate(var(--a)) translateY(-120px) scale(.4);opacity:0}}

@media (max-width:520px){html,body{font-size:16px}.sbox{width:52px;height:52px;font-size:1.5rem}.cmp{font-size:3rem}.scene{width:260px;height:230px}.seesaw{width:280px}}

/* Унших */
.big-card.c3{background:linear-gradient(160deg,#6fd09a,#2f9e5e)}
.bc-art span .pic{width:48px;height:48px}
.small-lead{font-size:1rem;color:var(--muted)}
.rgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
.rcard{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 10px 10px;border-radius:var(--r);background:#fff;box-shadow:var(--sh);text-decoration:none;text-align:center;border:3px solid transparent}
.rcard:hover{border-color:var(--uc);transform:translateY(-2px)}
.rcard .rpic{width:70px;height:70px}
.rcard b{font-size:1.05rem}
.story{max-width:680px;margin:0 auto;padding:22px 24px;border-radius:28px;background:#fff;box-shadow:var(--sh)}
.story .story-pic{display:block;width:120px;height:120px;margin:0 auto}
.story h2{text-align:center;font-size:1.7rem;margin:8px 0 14px;color:var(--uc)}
.line{font-size:clamp(1.35rem,4.6vw,1.75rem);font-weight:800;line-height:1.7;margin:0 0 6px;padding:2px 8px;border-radius:12px;transition:background .2s}
.line.on{background:#fff3c4}
.w{cursor:pointer;border-radius:8px;padding:0 2px}
.w:hover{background:#eef5ff}
.w.on{background:#ffd6e3;color:var(--hl)}
.hint-small{text-align:center;color:var(--muted);font-weight:700;margin:0}
.choice.txt{font-size:clamp(1.2rem,4.5vw,1.6rem)}
.sentence-build{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;min-height:70px;padding:16px;border-radius:24px;background:#fff;box-shadow:var(--sh);margin-bottom:20px}
.slotw{min-width:80px;height:54px;border-bottom:4px dashed #c9bfb1;display:grid;place-items:center;font-size:1.6rem;font-weight:900;padding:0 6px}
.slotw.ok{border-bottom-color:var(--ok);color:var(--ok)}
.wchips{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.wchip{padding:12px 20px;border-radius:18px;background:#fff;box-shadow:var(--sh);font-size:1.6rem;font-weight:900}
.wchip.used{visibility:hidden}
.riddle{display:flex;gap:14px;align-items:flex-start;max-width:620px;margin:6px auto 18px;padding:20px;border-radius:26px;background:#fff8d6;border:3px dashed #f2c94c}
.riddle p{margin:0;font-size:clamp(1.35rem,4.8vw,1.8rem);font-weight:900}

/* Эрх, түгжээ */
.locked{opacity:.55;filter:grayscale(.6)}
.lock{font-size:1.1rem}
.plan-note{display:inline-block;margin-top:22px;padding:10px 18px;border-radius:999px;background:#fff;box-shadow:var(--sh);font-weight:900;text-decoration:none;color:#c2410c}
.plan-note.ok{color:var(--ok)}
.erh .card{background:#fff;border-radius:var(--r);padding:18px 20px;margin:0 auto 16px;max-width:640px;box-shadow:var(--sh)}
.erh .card h2,.erh .card h3{margin:0 0 10px}
.erh .center{text-align:center}
.ok-card{border:3px solid var(--ok);font-weight:800}
.cmp-table{width:100%;border-collapse:collapse;font-weight:700}
.cmp-table th,.cmp-table td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:left}
.plans{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin:6px auto 18px}
.plan{position:relative;width:220px;padding:20px 16px;border-radius:24px;background:#fff;box-shadow:var(--sh);text-align:center;border:3px solid var(--line)}
.plan.best{border-color:#ff7a59}
.plan h3{margin:0 0 6px}
.plan .price{font-size:2rem;font-weight:900;color:#ff7a59}
.plan .ordered{display:inline-block;padding:10px 18px;border-radius:999px;background:#dcfce7;color:#15803d;font-weight:900}
.plan .per{color:var(--muted);font-weight:800;margin-bottom:12px}
.ribbon{position:absolute;top:-12px;left:50%;transform:translateX(-50%);padding:3px 12px;border-radius:999px;background:#ff7a59;color:#fff;font-size:.8rem;font-weight:900}
.bank .purpose{padding:12px;background:#ffeb99;border:2px solid #b45309;border-radius:12px}
.small-note{color:var(--muted);font-size:.9rem;font-weight:700}

/* ---------- Үеэр унших, бичмэл үсэг ---------- */
.cursive{font-family:"Bad Script",cursive;font-weight:400}
.cur-show{margin:4px 0 10px;font-size:1rem;color:var(--muted)}
.cur-show .cursive{font-size:2.4rem;color:var(--ink);margin-left:6px;vertical-align:middle}
.urows{display:flex;flex-direction:column;gap:10px;margin-bottom:18px}
.urow{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.usyl{min-width:62px;height:58px;padding:0 10px;border-radius:16px;background:#fff;box-shadow:var(--sh);font-size:1.7rem;font-weight:900;color:#1f8fd6}
.urow:nth-child(2) .usyl{color:#e5484d}
.urow:nth-child(3) .usyl{color:#2f9e55}
.usyl.seen{background:#eaf7ef}
.sy.s0{color:#1f8fd6}
.sy.s1{color:#e5484d}
.sw{cursor:pointer;border-radius:8px;padding:0 2px;white-space:nowrap}
.sw.on{background:#fff3c4}
.sy.on{background:#ffd6e3;border-radius:6px}
.story.sylmode .line{letter-spacing:.02em}
.word.uw .sw{padding:0}
.rtools{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:0 auto 14px;max-width:680px}
.seg{display:inline-flex;background:#fff;border-radius:999px;box-shadow:var(--sh);padding:4px;gap:2px}
.seg .tog{border:0;background:none;padding:9px 14px;border-radius:999px;font-weight:800;font-size:.95rem;color:var(--ink);cursor:pointer}
.seg .tog.cur{background:var(--uc,#3fae6a);color:#fff}
#utext .story{margin-top:4px}

/* ---------- Үеийн хүснэгт ---------- */
.big-card.c4{background:linear-gradient(160deg,#ff6b7d,#d93a55)}
.hus .lead{margin-bottom:10px}
.hus-h{margin:20px 0 8px;font-size:1.2rem}
.hus-h.v1{color:#d93a55}.hus-h.v2{color:#2f6fd0}.hus-h.v3{color:#2f9e55}
.tscroll{overflow-x:auto;border-radius:18px;box-shadow:var(--sh);background:#fff;-webkit-overflow-scrolling:touch}
.htab{border-collapse:separate;border-spacing:0;font-weight:900}
.htab th,.htab td{padding:0;text-align:center;border-bottom:1px solid #eef0f6}
.htab th{font-size:1.15rem;min-width:46px;height:40px;cursor:pointer;user-select:none}
.htab tr:first-child th{color:#fff}
.htab.v1 tr:first-child th{background:#d93a55}.htab.v2 tr:first-child th{background:#2f6fd0}.htab.v3 tr:first-child th{background:#2f9e55}
.htab .rh{position:sticky;left:0;z-index:1;background:#fff;color:var(--ink);box-shadow:2px 0 4px rgba(0,0,0,.06)}
.htab.v1 .rh{color:#d93a55}.htab.v2 .rh{color:#2f6fd0}.htab.v3 .rh{color:#2f9e55}
.htab tr:first-child .corner{position:sticky;left:0;z-index:2;cursor:default}
.htab.v1 td{background:#fff5f6}.htab.v2 td{background:#f2f8ff}.htab.v3 td{background:#f1fbf4}
.hc{width:54px;height:44px;border:0;background:none;font:inherit;font-size:1.15rem;color:var(--ink);cursor:pointer;border-radius:10px}
.hc:hover{background:#fff3c4}
.hc.on{background:#ffd23f}
.hc.ok{background:#3fae6a;color:#fff}
.builder{display:flex;gap:8px;align-items:center;justify-content:center;margin:6px auto 4px;max-width:520px}
.bword{flex:1;min-height:58px;display:flex;align-items:center;justify-content:center;padding:6px 14px;border-radius:18px;background:#fff;box-shadow:var(--sh);font-size:2rem;font-weight:900}
.bword .ph{font-size:1rem;color:var(--muted);font-weight:700}
.btn.sm{padding:10px 14px;font-size:1.2rem}
.game-btn{display:block;width:max-content;margin:10px auto 0;background:#d93a55}
.game-btn.locked{background:#9aa0ad}
.hgame .hg-prompt{display:flex;flex-direction:column;align-items:center;gap:12px;margin-bottom:8px}
.hgame .pic-btn svg{width:120px;height:120px}
.hgame .say.big{width:110px;height:110px;font-size:3rem;border-radius:50%}
.hg-slots{display:flex;gap:8px}
.hg-slots .slotw{min-width:76px;height:58px;font-size:2rem}
.slotw.s0{color:#1f8fd6}.slotw.s1{color:#e5484d}
.htab.mini{margin:6px auto;background:#fff;border-radius:18px;box-shadow:var(--sh);overflow:hidden}
.htab.mini tr:first-child th{background:#d93a55}
.htab.mini .hc{width:62px;height:52px;font-size:1.35rem}
.htab th.cv{font-size:.72rem;line-height:1.1;background:#fff4d6;color:#a35b00}
.hus-h.v4{color:#7a4fc0}.htab.v4 tr:first-child th{background:#7a4fc0}.htab.v4 .rh{color:#7a4fc0;font-size:.85rem}.htab.v4 td{background:#f6f1ff}
.top .atestbtn{font-size:1.15rem;font-weight:900;font-style:normal}.top .homebtn+.homebtn{margin-left:-4px}

/* Эцэг эх нэвтрэх / бүртгүүлэх */
.auth-intro .auth-emoji{font-size:3rem;line-height:1}
.auth-intro p{color:var(--muted);font-weight:700;margin:6px 0 0}
.auth-tabs{display:flex;gap:6px;max-width:640px;margin:0 auto 12px;padding:6px;background:#fff;border-radius:999px;box-shadow:var(--sh)}
.auth-tabs button{flex:1;min-height:48px;border:0;border-radius:999px;background:transparent;font:inherit;font-weight:900;font-size:1.05rem;color:var(--muted);cursor:pointer}
.auth-tabs button.cur{background:#ff7a59;color:#fff}
.auth-form{display:flex;flex-direction:column;gap:14px}
.auth-form label{display:flex;flex-direction:column;gap:6px;font-weight:800}
.auth-form input:not([type=checkbox]):not([type=radio]){min-height:52px;padding:0 16px;border:3px solid var(--line);border-radius:16px;font:inherit;font-size:1.05rem;background:#fffdf8;color:var(--ink)}
.auth-form input:focus{outline:none;border-color:#ff7a59}
.auth-form .chk{flex-direction:row;align-items:flex-start;gap:10px;font-weight:700;font-size:.95rem}
.auth-form .chk input{width:22px;height:22px;margin-top:2px;flex:none;accent-color:#ff7a59}
[hidden]{display:none!important}
.auth-form [data-mfa],.auth-form [data-devbox]{display:flex;flex-direction:column;gap:12px}
.auth-dev{display:flex;gap:10px;align-items:center;padding:10px 12px;border:2px solid var(--line);border-radius:14px;font-weight:700;cursor:pointer}
.auth-dev input{width:22px;height:22px;accent-color:#ff7a59}.auth-dev span{display:flex;flex-direction:column}.auth-dev small{color:var(--muted)}
.auth-dev-note{margin:0;color:#c2410c;font-weight:800}
.auth-msg{margin:0;padding:10px 14px;border-radius:14px;background:#fdecea;color:#b3261e;font-weight:800}
.auth-pw{position:relative;display:block}.auth-pw input{width:100%;padding-right:78px!important;box-sizing:border-box}
.auth-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);min-height:38px;padding:0 12px;border:0;border-radius:12px;background:#fff1ea;color:#c2410c;font:inherit;font-weight:900;cursor:pointer}
.erh .center .btn{margin:4px}
.auth-form a{color:#c2410c;font-weight:900}
.auth-forgot{align-self:flex-end;margin-top:-6px;color:#c2410c;font-weight:900;font-size:.95rem}
.auth-lead{margin:0;color:var(--muted);font-weight:700}
.auth-ok{padding:14px 16px;border-radius:16px;background:#e8f7ee;color:#14532d;font-weight:700}
.auth-ok b{display:block;margin-bottom:4px}.auth-ok p{margin:0}.auth-ok a{color:inherit;font-weight:900}
.linkbtn{background:none;border:0;color:#c2410c;font:inherit;font-weight:800;text-decoration:underline;cursor:pointer}

/* Бичлэгүүд (Shorts маягийн) */
.big-card.c5{background:linear-gradient(160deg,#8f7cf0,#5b4bd1)}
body:has(.sh-wrap){overflow:hidden}
.sh-wrap{position:fixed;inset:0;z-index:50;background:#111;color:#fff;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.sh-vid video{pointer-events:none}
.sh-top{position:absolute;top:0;left:0;right:0;z-index:3;display:flex;align-items:center;gap:10px;padding:10px 16px;pointer-events:none}
.sh-top>*{pointer-events:auto}
.sh-back{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(0,0,0,.35);text-decoration:none;font-size:1.4rem;font-weight:900}
.sh-tabs{flex:1;display:flex;justify-content:center;gap:22px}
.sh-tabs a{text-decoration:none;font-weight:900;font-size:1.15rem;opacity:.6;padding:6px 2px;border-bottom:3px solid transparent;text-shadow:0 1px 4px rgba(0,0,0,.5)}
.sh-tabs a.on{opacity:1;border-color:#fff}
.sh-mute{background:#fff;color:#111;font-weight:800;border-radius:999px;padding:8px 14px;font-size:.9rem}
.sh-tabs+.sh-mute.hidden{display:block!important;visibility:hidden}
.sh-feed{height:100vh;height:100dvh;overflow-y:scroll;scroll-snap-type:y mandatory;scrollbar-width:none;outline:0}
.sh-feed::-webkit-scrollbar{display:none}
.sh-item{height:100vh;height:100dvh;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center}
.sh-card{position:relative;width:min(100vw,56.25dvh);height:100%;display:flex;flex-direction:column;justify-content:center;gap:18px;padding:70px 0 90px;background:radial-gradient(120% 70% at 50% 30%,color-mix(in srgb,var(--c) 75%,#fff),var(--c) 55%,color-mix(in srgb,var(--c) 55%,#000));overflow:hidden}
.sh-big{text-align:center;font-weight:900;font-size:clamp(4rem,14dvh,8rem);line-height:1;text-shadow:0 6px 0 rgba(0,0,0,.15)}
.sh-vid{position:relative;width:100%;aspect-ratio:16/9;background:#000;cursor:pointer}
.sh-vid video{width:100%;height:100%;display:block;object-fit:contain}
.sh-play{position:absolute;inset:0;display:none;place-items:center;font-size:4rem;color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.6)}
.sh-item.paused .sh-play{display:grid}
.sh-info{position:absolute;left:16px;right:84px;bottom:28px;display:flex;flex-direction:column;gap:2px;text-shadow:0 1px 4px rgba(0,0,0,.4)}
.sh-info small{font-weight:700;opacity:.9}
.sh-info b{font-size:1.5rem;font-weight:900}
.sh-rail{position:absolute;right:10px;bottom:24px;display:flex;flex-direction:column;gap:14px}
.sh-rail button{display:flex;flex-direction:column;align-items:center;gap:3px;color:#fff}
.sh-rail span{display:grid;place-items:center;width:50px;height:50px;border-radius:50%;background:rgba(0,0,0,.28);font-size:1.5rem;font-weight:900}
.sh-rail i{font-style:normal;font-size:.7rem;font-weight:800}
.sh-like.on span{color:#ff4d6d;background:#fff}
.sh-bar{position:absolute;left:0;right:0;bottom:0;height:4px;background:rgba(255,255,255,.3)}
.sh-bar i{display:block;height:100%;width:0;background:#fff}
.sh-pay .sh-card{align-items:center;text-align:center;padding:80px 24px 60px;gap:14px}
.sh-lockgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;width:100%}
.sh-lockgrid div{aspect-ratio:16/9;border-radius:12px;background:#000 center/cover;display:grid;place-items:center;filter:saturate(.6) brightness(.75)}
.sh-lockgrid span{font-size:1.4rem}
.sh-pay h2{margin:6px 0 0;font-size:1.6rem;font-weight:900}
.sh-pay p{margin:0;font-weight:700;opacity:.92}
.sh-paybtn{background:#fff!important;color:#222!important;font-size:1.15rem;padding:14px 26px;text-decoration:none}
.sh-login{font-weight:800;opacity:.9}
