@font-face{font-family:me-quran;src:url(/fonts/me-quran.ttf)format("truetype");font-display:swap}:root{--bg:#f6f1e7;--paper:#fffdf8;--ink:#2b2b26;--muted:#6b6a60;--line:#e4dac6;--green:#2f4f3a;--green-deep:#1e3527;--leaf:#dce8d2;--sand:#e9d8b8;--sand-deep:#cdb68a;--gold:#ffe9b8;--amber:#f4b860;--night:#1b2033;--sky:#d9dce8;--ui:"Nunito", "Avenir Next", "Segoe UI", system-ui, sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--ink);font-family:var(--ui);overscroll-behavior:none;-webkit-user-select:none;user-select:none}button{font:inherit;color:inherit;cursor:pointer;background:0 0;border:0;padding:0}button:focus-visible,[tabindex]:focus-visible{outline:4px solid var(--amber);outline-offset:4px}.screen{padding:max(16px, env(safe-area-inset-top)) 24px max(20px, env(safe-area-inset-bottom));flex-direction:column;gap:16px;display:flex;position:fixed;inset:0}.bar{justify-content:space-between;align-items:center;gap:12px;min-height:76px;display:flex}.round{background:var(--paper);width:76px;height:76px;box-shadow:0 2px 0 var(--line);border-radius:50%;flex:none;place-items:center;display:grid}.round--ghost{background:#fffdf8d9}.round svg{width:38px;height:38px}.home{gap:10px}.home .bar{min-height:64px}.home__hello{font-size:clamp(24px,3.5vw,34px);font-weight:800}.grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));grid-auto-rows:clamp(200px,24vw,250px);align-content:start;gap:18px;min-height:0;padding:4px 4px 28px;display:grid;overflow-y:auto}.tile{background:var(--paper);height:100%;box-shadow:0 2px 0 var(--line), 0 10px 24px #4a3c1e1a;text-align:center;border-radius:28px;flex-direction:column;justify-content:flex-end;transition:transform .15s;display:flex;position:relative;overflow:hidden}.tile:active{transform:scale(.97)}.tile__scene{height:54%;position:absolute;inset:0 0 auto}.tile--wide .tile__scene{height:100%;inset:0}.tile__scene svg{width:100%;height:100%;display:block}.tile__body{background:var(--paper);flex-direction:column;justify-content:center;height:46%;padding:2px 8px 6px;display:flex;position:relative}.tile__ar{color:#1f2a22;direction:rtl;font-family:me-quran,serif;font-size:clamp(28px,3.2vw,38px);line-height:1.25}.tile__en{color:var(--green);font-size:clamp(18px,1.8vw,21px);font-weight:800;line-height:1.2}.tile__meaning{color:var(--muted);font-size:16px;line-height:1.2}.tile__count{height:36px;color:var(--green);background:#fffdf8eb;border-radius:18px;align-items:center;gap:4px;padding:0 12px 0 6px;font-size:17px;font-weight:800;display:flex;position:absolute;top:10px;left:10px}.tile__flower{width:26px;height:26px}.tile--full{box-shadow:0 0 0 4px var(--amber), 0 10px 24px #4a3c1e24}.tile__scene{pointer-events:none}.tile--wide{grid-column:1/-1;height:100%}.tile__wide{text-align:left;background:linear-gradient(#fffdf8b3,#fffdf8f7 30%);align-items:center;gap:18px;margin-top:auto;padding:16px 24px;display:flex;position:relative}.tile__wtext{white-space:nowrap;flex-direction:column;flex:1;min-width:0;display:flex}.tile__label{color:#8a7b57;font-size:17px;font-weight:800}.tile__play{background:var(--green);width:76px;height:76px;box-shadow:0 5px 0 var(--green-deep);border-radius:50%;flex:none;place-items:center;display:grid}.tile__play svg{width:44px;height:44px;fill:var(--bg)}.grownups{color:var(--muted);opacity:.8;pointer-events:none;white-space:nowrap;margin-left:auto;font-size:14px}.tile--soon .tile__scene{filter:saturate(.4);opacity:.7}.tile__soon{background:var(--sand);color:#6b5a33;border-radius:10px;padding:4px 10px;font-size:14px;font-weight:800;position:absolute;top:10px;right:12px}.leaf{opacity:.55;background:var(--bg);border-radius:50%;flex:none;place-items:center;width:64px;height:64px;transition:opacity .2s;display:grid;position:relative}.leaf svg{width:30px;height:30px}.leaf--holding{opacity:1;background:var(--gold)}.leaf__ring{border:4px solid var(--green);clip-path:inset(0);opacity:0;border-radius:50%;position:absolute;inset:0}.leaf--holding .leaf__ring{opacity:1;animation:3s linear forwards fill}@keyframes fill{0%{clip-path:inset(100% 0 0)}to{clip-path:inset(0)}}.lesson{gap:0;padding:0}.lesson__world{flex:1;min-height:0;position:relative;overflow:hidden}.lesson__scene{position:absolute;inset:0}.lesson__scene svg{width:100%;height:100%;display:block}.lesson__top{padding:max(14px, env(safe-area-inset-top)) 20px 0;justify-content:space-between;align-items:center;display:flex;position:absolute;top:0;left:0;right:0}.bismillah{flex:1;justify-content:center;min-width:0;display:flex}.bismillah span{color:#1f2a22;box-shadow:0 2px 0 var(--line);text-align:center;background:#fffdf8e6;border-radius:999px;max-width:100%;padding:4px 28px;font-family:me-quran,serif;font-size:clamp(22px,3vw,40px);line-height:1.5}.repeats{flex:none;gap:8px;display:flex}.rep{min-width:112px;min-height:64px;box-shadow:0 2px 0 var(--line);color:var(--muted);background:#fffdf8e6;border-radius:999px;justify-content:space-between;align-items:center;gap:10px;padding:4px 14px;font-size:16px;font-weight:800;display:flex}.rep--on{background:var(--green);color:var(--bg);box-shadow:0 2px 0 var(--green-deep)}.rep__name{text-align:left;max-width:60px;line-height:1.15}.rep__count{text-align:right;min-width:32px;font-size:20px}.stage{align-items:flex-end;gap:14px;width:min(100%,1120px);display:flex}.character{pointer-events:none;filter:drop-shadow(0 6px 10px #1e1e1440);flex:none;width:clamp(110px,20vh,200px);height:clamp(110px,20vh,200px)}.character svg{width:100%;height:100%;display:block}.character--photo{box-shadow:0 2px 0 var(--line), 0 10px 24px #1e1e1440;background:var(--paper);border:6px solid #fffdf8f2;border-radius:36px;overflow:hidden}.character--photo img{object-fit:cover;width:100%;height:100%;display:block}.buds{scrollbar-width:none;flex:1;justify-content:safe center;gap:4px;min-width:0;padding:2px 4px;display:flex;overflow-x:auto}.buds::-webkit-scrollbar{display:none}.bud{border-radius:20px;flex-direction:column;flex:none;justify-content:flex-end;align-items:center;width:64px;height:84px;transition:transform .25s;display:flex}.bud__svg{width:44px;height:58px;transition:transform .3s}.bud__n{color:var(--green-deep);margin-top:-2px;font-size:17px;font-weight:800}.bud--on{background:#fffdf8bf}.bud--on .bud__svg{transform:scale(1.22)translateY(-3px)}.bud--bloom .bud__svg{animation:.6s ease-out bloom}@keyframes bloom{0%{transform:scale(.6)}to{transform:scale(1)}}.lesson__bottom{flex-direction:column;align-items:center;gap:10px;padding:0 20px 14px;display:flex;position:absolute;bottom:0;left:0;right:0}.ayah{min-width:0;max-height:46vh;box-shadow:0 2px 0 var(--line), 0 10px 28px #1e1e1426;text-align:center;background:#fffdf8ed;border-radius:28px;flex-direction:column;flex:1;padding:14px 24px 12px;display:flex}.ayah__ar{font-family:me-quran,serif;font-size:max(26px, calc(min(6.4vw, 10vh) * var(--k,1)));overscroll-behavior:contain;scrollbar-width:none;direction:rtl;flex-wrap:wrap;justify-content:center;gap:0 .35em;min-height:0;padding:6px 8px;line-height:1.6;display:flex;overflow-y:auto}.word{color:#8f8977;border-radius:16px;min-width:44px;padding:0 .12em;transition:color .25s,background .25s}.word--said{color:#1f2a22}.word--now{color:#1f2a22;background:var(--gold);box-shadow:0 0 0 5px var(--gold)}.ayah__en{color:var(--muted);flex:none;margin-top:4px;font-size:clamp(17px,2.2vw,24px);line-height:1.35}.ayah__wait{justify-content:center;gap:12px;padding:34px 0;display:flex}.ayah__wait i{background:var(--sand-deep);border-radius:50%;width:16px;height:16px;animation:1.2s ease-in-out infinite wait}.ayah__wait i:nth-child(2){animation-delay:.2s}.ayah__wait i:nth-child(3){animation-delay:.4s}@keyframes wait{0%,to{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1)}}.ayah__oops{flex-direction:column;align-items:center;gap:10px;padding:8px;display:flex}.ayah__oops p{color:var(--muted);margin:0;font-size:19px}.oops{background:var(--gold);color:#5b4a2a;text-align:center;border-radius:16px;padding:10px 18px;font-size:18px;font-weight:700}.dock{padding:8px 20px max(8px, env(safe-area-inset-bottom));background:var(--leaf);flex:none;align-items:center;gap:20px;display:flex;position:relative;box-shadow:0 -3px #b9cfa9}.controls{flex:none;align-items:center;gap:16px;display:flex}.turn{background:var(--green);width:84px;height:84px;box-shadow:0 7px 0 var(--green-deep);border-radius:50%;place-items:center;margin-bottom:24px;transition:background .3s,box-shadow .3s;display:grid;position:relative}.turn>svg{width:48px;height:48px}.turn:disabled,.small:disabled{opacity:.45;cursor:default}.turn .turn__ring{width:calc(100% + 24px);height:calc(100% + 24px);position:absolute;inset:-12px;overflow:visible;transform:rotate(-90deg)}.turn__ring circle{fill:none;stroke:var(--paper);stroke-width:5px;stroke-linecap:round;stroke-dasharray:100;animation:linear forwards ring}@keyframes ring{0%{stroke-dashoffset:0}to{stroke-dashoffset:100px}}.pips{gap:4px;display:flex}.pips i{background:#b9cfa9;border-radius:50%;width:10px;height:10px}.pips i.on,.turn--reciter{background:var(--green)}.turn--dad{background:#8a6a1f;box-shadow:0 7px #5b4a2a}.turn--you{background:var(--amber);animation:1.6s ease-in-out infinite yourturn;box-shadow:0 7px #c48a2e}@keyframes yourturn{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}.turn__label{white-space:nowrap;color:var(--green-deep);align-items:center;gap:7px;font-size:17px;font-weight:800;display:flex;position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%)}.small{width:64px;height:64px;box-shadow:0 2px 0 var(--line);background:#fffdf8e6;border-radius:50%;place-items:center;display:grid}.small svg{width:30px;height:30px}.done{z-index:5;background:#1b203380;place-items:center;padding:20px;display:grid;position:absolute;inset:0}.done__card{background:var(--paper);text-align:center;border-radius:32px;flex-direction:column;align-items:center;gap:18px;max-width:520px;padding:36px 40px;display:flex}.done__card h2{color:var(--green);margin:0;font-size:32px}.done__buds{flex-wrap:wrap;justify-content:center;gap:2px;display:flex}.done__buds svg{width:40px;height:54px}.done__row{flex-wrap:wrap;justify-content:center;gap:12px;display:flex}.done__card{animation:.45s cubic-bezier(.2,.8,.2,1) rise;position:relative}@keyframes rise{0%{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}.petals{pointer-events:none;position:absolute;inset:0;overflow:hidden}.petals i{border-radius:60% 40%;width:18px;height:24px;animation:5s linear infinite petal;position:absolute;top:-30px}@keyframes petal{to{transform:translateY(110vh)rotate(420deg)}}.done__card p{color:var(--muted);margin:0;font-size:20px;line-height:1.45}.btn{background:var(--green);min-height:64px;color:var(--bg);box-shadow:0 5px 0 var(--green-deep);border-radius:20px;justify-content:center;align-items:center;gap:10px;padding:0 28px;font-size:20px;font-weight:800;display:inline-flex}.btn--soft{background:var(--leaf);color:var(--green);box-shadow:none}.btn--line{background:var(--paper);color:var(--green);box-shadow:inset 0 0 0 2px var(--green)}.btn svg{width:26px;height:26px}.lesson--choosing .lesson__top,.lesson--choosing .lesson__bottom{visibility:hidden}.lesson--choosing .dock{display:none}.doors{z-index:5;background:linear-gradient(#1b203347,#1b20336b);flex-direction:column;justify-content:center;align-items:center;gap:clamp(12px,3vh,28px);padding:20px;animation:.3s fadein;display:flex;position:absolute;inset:0}@keyframes fadein{0%{opacity:0}to{opacity:1}}.doors__back{left:20px;top:max(14px, env(safe-area-inset-top));position:absolute}.doors__title{text-align:center;background:#fffdf8f0;border-radius:28px;padding:6px 34px 12px;box-shadow:0 8px 24px #1e1e1433}.doors__name{color:#1f2a22;font-family:me-quran,serif;font-size:clamp(38px,7vh,60px);line-height:1.45}.doors__sub{color:var(--muted);font-size:clamp(17px,2.4vh,20px)}.doors__note{color:#5b4a2a;background:var(--gold);border-radius:16px;margin:0;padding:10px 18px;font-size:18px}.doors__row{gap:clamp(12px,3vw,32px);width:min(100%,720px);display:flex}.door{border-radius:999px 999px 30px 30px;flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:4px;min-width:0;min-height:min(52vh,400px);padding:30px 12px 22px;transition:transform .15s,box-shadow .15s;display:flex;box-shadow:0 8px #1e1e1447,0 18px 34px #1e1e1440}.door:active{transform:translateY(6px);box-shadow:0 2px #1e1e1447}.door--listen{background:var(--paper);color:var(--green)}.door--repeat{background:var(--green);color:var(--bg)}.door__art{width:clamp(96px,22vh,170px);height:clamp(96px,22vh,170px);margin-bottom:6px;position:relative}.door__art .character{width:100%;height:100%}.door__badge{background:var(--amber);color:#3a2c10;border-radius:50%;place-items:center;width:60px;height:60px;display:grid;position:absolute;bottom:0;right:-10px;box-shadow:0 3px 8px #1e1e144d}.door__badge svg{width:34px;height:34px}.door__name{text-align:center;font-size:clamp(22px,3.4vw,30px);font-weight:800;line-height:1.15}.door__sub{opacity:.85;text-align:center;font-size:clamp(16px,2vw,18px);line-height:1.2}.pick{gap:14px;display:flex}.pick__opt{cursor:pointer;color:var(--ink);background:#f0ece1;border-radius:22px;flex-direction:column;flex:1;align-items:center;gap:10px;padding:14px;font-size:17px;font-weight:800;display:flex}.pick__opt--on{background:var(--leaf);box-shadow:inset 0 0 0 3px var(--green)}.pick__frame{background:var(--paper);border-radius:24px;place-items:center;width:120px;height:120px;display:grid;overflow:hidden}.pick__frame svg,.pick__frame img{object-fit:cover;width:100%;height:100%;display:block}.pick__frame .character{filter:none;width:100%;height:100%;position:static}.pick__empty{color:var(--muted)}.pick__empty svg{width:44px;height:44px}select.text{appearance:auto}.parent{overflow:auto}.parent h1{margin:0;font-size:28px}.parent__grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:20px;display:grid}.card{background:var(--paper);box-shadow:0 2px 0 var(--line);border-radius:28px;flex-direction:column;gap:14px;padding:24px;display:flex}.card h2{color:var(--green);margin:0;font-size:22px}.card p{color:var(--muted);margin:0;font-size:17px;line-height:1.45}.row{background:#f0ece1;border-radius:18px;justify-content:space-between;align-items:center;gap:12px;min-height:64px;padding:6px 14px;font-size:19px;display:flex}.row--on{background:var(--leaf)}.row__name{font-weight:800}.row__sub{color:var(--muted);font-size:15px}.row__actions{flex:none;gap:8px;display:flex}.chip{background:var(--paper);min-width:64px;min-height:52px;box-shadow:0 2px 0 var(--line);color:var(--green);border-radius:16px;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-size:17px;font-weight:800;display:inline-flex}.chip--on{background:var(--green);color:var(--bg)}.chip--rec{color:#7a3b22;background:#f6d6c8}.chip svg{width:22px;height:22px}.seg{background:#e6e2d3;border-radius:999px;gap:4px;padding:5px;display:flex}.seg button{color:#4f5a3e;border-radius:999px;flex:1;min-height:54px;font-size:18px;font-weight:800}.seg button[aria-pressed=true]{background:var(--green);color:var(--bg)}.toggle{justify-content:space-between;align-items:center;gap:14px;min-height:64px;font-size:19px;font-weight:700;display:flex}.switch{background:#cfc9b8;border-radius:999px;flex:none;width:72px;height:40px;transition:background .2s;position:relative}.switch:after{content:"";background:var(--paper);border-radius:50%;width:32px;height:32px;transition:transform .2s;position:absolute;top:4px;left:4px}.switch[aria-checked=true]{background:var(--green)}.switch[aria-checked=true]:after{transform:translate(32px)}input.text{font:inherit;border:2px solid var(--line);background:var(--paper);min-height:60px;color:var(--ink);border-radius:16px;width:100%;padding:0 16px;font-size:20px}.note{color:var(--muted);font-size:15px;line-height:1.4}@media (width<=640px){.screen{padding-left:16px;padding-right:16px}.grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:44vw;gap:12px}.dock{padding:8px 12px max(6px, env(safe-area-inset-bottom));flex-direction:column;gap:4px}.buds{flex:none;justify-content:safe center;width:100%}.lesson__bottom{padding:0 12px 10px}.lesson__top{flex-wrap:wrap;gap:8px;padding-left:12px;padding-right:12px}.tile__wide{gap:12px;padding:10px 14px}.tile__play{width:64px;height:64px}.tile__play svg{width:36px;height:36px}.bismillah{flex:1 0 100%;order:3}.bismillah span{padding:2px 16px;font-size:20px}.repeats{flex-direction:row}.rep{min-width:0;padding:4px 10px;font-size:14px}.rep__count{min-width:24px;font-size:16px}.stage{flex-direction:column;align-items:flex-start;gap:0}.character{width:90px;height:90px;margin-bottom:-12px;margin-left:4px}.ayah{width:100%}.door__badge{width:48px;height:48px;right:-6px}.door__badge svg{width:28px;height:28px}.door{padding:22px 8px 16px}.grownups{display:none}.round{width:64px;height:64px}.pick{flex-direction:column}}@media (height<=520px){.round{width:64px;height:64px}.lesson__top{padding-top:8px}.bismillah span{padding:2px 16px;font-size:20px}.lesson .character{display:none}.ayah{max-height:50vh;padding:4px 14px}.ayah__ar{font-size:max(22px, calc(min(6.4vw, 10vh) * var(--k,1)));padding:2px 8px;line-height:1.5}.ayah__en{margin-top:0;font-size:15px}.dock{flex-direction:row;gap:12px;padding:4px 12px}.controls{gap:10px}.turn{width:64px;height:64px;box-shadow:0 4px 0 var(--green-deep);margin-bottom:0}.lesson__bottom{padding:0 12px 6px}.turn>svg{width:36px;height:36px}.turn__label{display:none}.buds{flex:1;justify-content:flex-start;width:auto;min-width:0}.bud{height:66px}.bud__svg{width:32px;height:42px}.bud--on .bud__svg{transform:none}.doors{flex-direction:row;justify-content:center;gap:18px;padding:8px 90px}.doors__title{flex:none;max-width:200px;padding:2px 16px 8px}.doors__name{font-size:32px}.door{border-radius:80px 80px 22px 22px;min-height:calc(100vh - 28px);padding:14px 8px 10px}.door .character{display:block}.door__art{width:90px;height:90px}.door__badge{width:44px;height:44px}.door__badge svg{width:26px;height:26px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}.turn__ring circle{animation-duration:inherit!important}.petals{display:none}}
