:root{
  --cream:#FFF8EE;
  --ink:#1F2A2E;
  --muted:#6B7B80;
  --teal:#0F766E;
  --teal-soft:#D9F2EC;
  --amber:#F5A524;
  --amber-soft:#FFEBC7;
  --coral:#E2574A;
  --coral-soft:#FFE1DC;
  --green:#3E8E5A;
  --green-soft:#DCF0E2;
  --line:#EADFCF;
  --shadow:0 6px 0 rgba(31,42,46,.09), 0 12px 22px rgba(31,42,46,.07);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;padding:0}
body{
  font-family:'Baloo Bhaijaan 2', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  background:var(--cream); color:var(--ink); min-height:100vh;
  background-image:radial-gradient(circle at 10% 6%, #FFE9C7 0 17%, transparent 17.5%),
                   radial-gradient(circle at 92% 96%, #D9F2EC 0 21%, transparent 21.5%);
  background-repeat:no-repeat;
}
#app{max-width:520px;margin:0 auto;padding:14px 16px 26px;min-height:100vh;display:flex;flex-direction:column}
button{font-family:inherit;cursor:pointer;border:0;background:none;color:inherit}
.emo{display:inline-block;vertical-align:-.18em}
.emo.dim{opacity:.22}
.pill{display:inline-flex;align-items:center;gap:5px;background:#fff;border:2px solid var(--line);border-radius:999px;padding:5px 11px;font-size:13px;font-weight:700;color:var(--muted);white-space:nowrap}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.brand{display:flex;align-items:center;gap:9px;font-weight:800;font-size:19px}
.brand .mark{width:36px;height:36px;border-radius:11px;background:var(--teal);display:grid;place-items:center;box-shadow:var(--shadow)}
.card{background:#fff;border:2px solid var(--line);border-radius:22px;padding:18px;box-shadow:var(--shadow)}
.stack{display:flex;flex-direction:column;gap:10px}
.btn{display:flex;align-items:center;justify-content:center;gap:8px;min-height:58px;padding:12px 18px;border-radius:18px;font-size:19px;font-weight:800;border:2px solid transparent;box-shadow:0 4px 0 rgba(31,42,46,.13);transition:transform .07s ease, box-shadow .07s ease;width:100%}
.btn:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(31,42,46,.13)}
.btn-primary{background:var(--teal);color:#fff}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--ink);box-shadow:0 3px 0 rgba(31,42,46,.07)}
.btn-small{min-height:44px;font-size:15px;border-radius:13px;padding:8px 14px;width:auto}
.full{width:100%}
.hero{text-align:center;padding:10px 0 0}
.hero h1{font-size:36px;margin:8px 0 2px;line-height:1.1;letter-spacing:-.5px}
.hero p{margin:0;color:var(--muted);font-size:16px;font-weight:700}
.hero .art{display:flex;justify-content:center;align-items:flex-end;gap:6px;line-height:1}
.note{font-size:13px;color:var(--muted);text-align:center;line-height:1.75;margin:16px 0 0}
.footer{margin-top:auto;padding-top:20px;text-align:center;font-size:11.5px;color:#9AA7AA}
.inside{margin-top:22px;background:#fff;border:2px solid var(--line);border-radius:18px;padding:6px 14px;box-shadow:var(--shadow)}
.inside-row{display:flex;align-items:center;gap:12px;padding:11px 0;font-weight:700;font-size:15px;border-bottom:1.5px dashed #EFE6D7}
.inside-row:last-child{border-bottom:0}
.inside-row.soon{color:#9AA7AA}
.section-title{font-size:20px;font-weight:800;margin:8px 2px 10px}
.h2{font-size:24px;margin:0 0 6px}
.sub{margin:0 0 14px;color:var(--muted);font-weight:700;font-size:15px;line-height:1.6}
.sub.small{font-size:13px;margin-bottom:12px}
.mail{font-weight:800;font-size:16px;direction:ltr;text-align:right;margin-bottom:4px}
.banner{background:#FFF1D6;border:2px solid #F3D8A2;border-radius:14px;padding:10px 12px;font-size:12.5px;font-weight:700;color:#7A5312;text-align:center;margin-bottom:14px;line-height:1.6}
.consent{display:flex;gap:10px;align-items:flex-start;margin-top:16px;font-size:13px;color:var(--muted);font-weight:700;line-height:1.6}
.consent input{width:20px;height:20px;margin-top:1px;flex:0 0 auto;accent-color:var(--teal)}
.profiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.profile{background:#fff;border:2px solid var(--line);border-radius:20px;padding:14px 10px;text-align:center;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:center;gap:4px}
.profile .ava{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:var(--amber-soft)}
.profile .nm{font-weight:800;font-size:17px}
.profile .nm.small{font-size:14px;color:var(--teal)}
.profile .st{font-size:12px;color:var(--muted);font-weight:700;display:flex;align-items:center;gap:3px}
.add-tile{border-style:dashed;box-shadow:none;color:var(--teal);background:transparent}
.add-tile .ava{background:var(--teal-soft);color:var(--teal);font-size:30px;font-weight:800}
.kid-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.ava-lg{width:58px;height:58px;border-radius:50%;background:var(--amber-soft);display:grid;place-items:center;flex:0 0 auto}
.kid-head .grow{flex:1}
.kid-name{font-size:22px;font-weight:800}
.kid-stars{font-size:13.5px;color:var(--muted);font-weight:700;display:flex;align-items:center;gap:4px}
.games{display:flex;flex-direction:column;gap:11px}
.game-card{display:flex;align-items:center;gap:14px;background:#fff;border:2px solid var(--line);border-radius:20px;padding:14px 16px;box-shadow:var(--shadow);text-align:right;width:100%}
.game-card .ico{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;flex:0 0 auto}
.game-card .tx{flex:1}
.game-card .tx b{display:block;font-size:19px}
.game-card .tx span{font-size:13px;color:var(--muted);font-weight:700}
.game-card[disabled]{opacity:.55}
.ico-word{background:var(--teal-soft)}
.ico-math{background:var(--amber-soft)}
.ico-quran{background:var(--green-soft)}
.game-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.icon-btn{width:44px;height:44px;border-radius:13px;background:#fff;border:2px solid var(--line);display:grid;place-items:center;font-size:19px;box-shadow:0 3px 0 rgba(31,42,46,.07)}
.dots{display:flex;gap:6px}
.dot{width:9px;height:9px;border-radius:50%;background:#E6DCCB}
.dot.on{background:var(--teal);transform:scale(1.25)}
.dot.ok{background:var(--green)}
.game-body{flex:1;display:flex;flex-direction:column;justify-content:center;padding-bottom:20px}
.prompt{text-align:center;margin:0 0 14px;line-height:1}
.prompt .q{font-size:46px;font-weight:800;letter-spacing:3px;margin-bottom:26px}
.slots{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin:0 0 22px;min-height:64px}
.slot{min-width:52px;height:64px;border-radius:14px;border:3px dashed #DCCFBB;display:grid;place-items:center;font-size:29px;font-weight:800;background:#fff;padding:0 6px}
.slot.filled{border-style:solid;border-color:var(--teal);background:var(--teal-soft)}
.slot.good{border-color:var(--green);background:var(--green-soft)}
.slot.bad{border-color:var(--coral);background:var(--coral-soft)}
.letters{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.letter{width:62px;height:62px;border-radius:16px;background:#fff;border:2px solid var(--line);font-size:28px;font-weight:800;box-shadow:0 4px 0 rgba(31,42,46,.09);display:grid;place-items:center}
.letter:active{transform:translateY(3px);box-shadow:0 1px 0 rgba(31,42,46,.09)}
.letter.used{opacity:.22;pointer-events:none}
.answers{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin:0 0 4px}
.answer{min-height:88px;border-radius:18px;background:#fff;border:2px solid var(--line);font-size:30px;font-weight:800;box-shadow:0 4px 0 rgba(31,42,46,.09)}
.answer.good{background:var(--green-soft);border-color:var(--green)}
.answer.bad{background:var(--coral-soft);border-color:var(--coral)}
.feedback{text-align:center;font-size:19px;font-weight:800;min-height:28px;margin-top:12px}
.feedback.ok{color:var(--green)}
.feedback.no{color:var(--coral)}
.center{display:flex;justify-content:center;margin-top:6px}
.reward{text-align:center;flex:1;display:flex;flex-direction:column;justify-content:center}
.reward h2{font-size:28px;margin:6px 0 2px}
.stars-row{display:flex;justify-content:center;gap:6px;margin:12px 0 14px}
.reward-line{font-weight:800;color:var(--muted);margin:0 0 2px}
.reward-total{font-weight:800;margin:0;font-size:17px}
.field{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
.field label{font-size:14.5px;font-weight:800}
.field input{min-height:52px;border-radius:14px;border:2px solid var(--line);padding:10px 14px;font-family:inherit;font-size:18px;background:#fff;color:var(--ink)}
.choices{display:flex;gap:8px;flex-wrap:wrap}
.chip{padding:10px 14px;border-radius:13px;border:2px solid var(--line);background:#fff;font-weight:800;font-size:14px}
.chip.on{border-color:var(--teal);background:var(--teal-soft);color:var(--teal)}
.avatars{display:flex;gap:8px;flex-wrap:wrap}
.avatar-opt{width:52px;height:52px;border-radius:14px;border:2px solid var(--line);background:#fff;display:grid;place-items:center}
.avatar-opt.on{border-color:var(--teal);background:var(--teal-soft)}
.overlay{position:fixed;inset:0;background:rgba(31,42,46,.45);display:flex;align-items:flex-end;justify-content:center;padding:12px;z-index:20}
.sheet{background:var(--cream);width:100%;max-width:520px;border-radius:24px;padding:18px;max-height:88vh;overflow:auto;border:2px solid var(--line)}
.sheet h3{margin:0 0 14px;font-size:22px}
.rows{display:flex;flex-direction:column;gap:10px}
.row{display:flex;align-items:center;gap:12px;background:#fff;border:2px solid var(--line);border-radius:16px;padding:11px}
.row .ava{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--amber-soft);flex:0 0 auto}
.row .grow{flex:1;text-align:right}
.row b{display:block;font-size:16px}
.row small{color:var(--muted);font-size:12.5px;font-weight:700;line-height:1.5}
.danger{color:var(--coral);font-weight:800;font-size:14px;padding:8px 10px;border-radius:12px;border:2px solid var(--coral-soft);background:var(--coral-soft);flex:0 0 auto}
.danger.wide{width:100%;min-height:46px}
@media (min-width:560px){ .profiles{grid-template-columns:1fr 1fr 1fr} }
.row small .blk{display:block}
.ico-read{background:#E8E3FA}
.ico-en{background:#DDEFFB}
.sentence{font-size:22px;font-weight:800;line-height:1.6;margin:0 0 6px}
.qsub{font-size:16px;font-weight:700;color:var(--muted);margin-bottom:20px}
.word-en{font-size:52px;font-weight:800;letter-spacing:1px;margin-bottom:26px;direction:ltr}
.answer.pic{display:grid;place-items:center;padding:8px}
.answer.txt{font-size:17px;line-height:1.4;padding:10px;min-height:70px}
.answers.col{grid-template-columns:1fr;gap:10px}
.surah-row{display:flex;align-items:center;gap:12px;background:#fff;border:2px solid var(--line);border-radius:16px;padding:12px;width:100%;text-align:right;box-shadow:0 3px 0 rgba(31,42,46,.06)}
.surah-row .num{width:40px;height:40px;border-radius:12px;background:var(--green-soft);color:var(--green);display:grid;place-items:center;font-weight:800;flex:0 0 auto}
.surah-row .grow{flex:1}
.surah-row b{display:block;font-size:17px}
.surah-row small{color:var(--muted);font-size:12.5px;font-weight:700}
.surah-row .chev{color:var(--muted);font-size:22px}
.ayah{background:#fff;border:2px solid var(--line);border-radius:16px;padding:14px;margin-bottom:10px;display:flex;align-items:flex-start;gap:10px}
.ayah-t{flex:1;font-size:20px;line-height:2.1;font-weight:600}
.play{width:40px;height:40px;border-radius:50%;background:var(--green-soft);color:var(--green);font-size:15px;display:grid;place-items:center;flex:0 0 auto}

.listen{width:100%;background:var(--green);color:#fff;font-weight:800;font-size:16px;padding:14px;border-radius:16px;margin-bottom:14px;box-shadow:0 4px 0 rgba(31,42,46,.12)}
