*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:#fff8ef;color:#3b2f4a;font-family:"Segoe UI",Tahoma,"Noto Naskh Arabic","Noto Sans Arabic",Arial,sans-serif;user-select:none;-webkit-user-select:none}
#app{max-width:640px;margin:0 auto;min-height:100%;padding:14px 14px 28px;display:flex;flex-direction:column}
.top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.title{font-size:26px;font-weight:700;color:#7b5cd6;margin:0}
.stars{font-size:20px;background:#fff;border-radius:20px;padding:4px 12px;box-shadow:0 2px 0 #eadfc9}
.back{font-size:28px;background:#fff;border:0;border-radius:16px;width:52px;height:52px;box-shadow:0 3px 0 #eadfc9}
.hello{text-align:center;font-size:24px;margin:10px 0 16px}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid.one{grid-template-columns:1fr}
.tile{border:0;border-radius:26px;padding:18px 8px;font-size:24px;font-weight:700;color:#2f2540;box-shadow:0 6px 0 rgba(0,0,0,.12);min-height:130px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-family:inherit}
.tile:active{transform:translateY(3px);box-shadow:0 3px 0 rgba(0,0,0,.12)}
.tile .e{font-size:48px;line-height:1}
.tile small{font-size:15px;font-weight:400;opacity:.8}
.c1{background:#ffd166}.c2{background:#7be0c3}.c3{background:#8ecdf8}.c4{background:#ff9fb2}.c5{background:#cdb8ff}.c6{background:#b9e769}
.prof{min-height:200px}
.prof .e{font-size:72px}
.card{background:#fff;border-radius:30px;box-shadow:0 6px 0 #eadfc9;padding:20px;text-align:center;margin:8px 0 16px;min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.card .big{font-size:110px;line-height:1.2;font-weight:700;color:#7b5cd6}
.card .emo{font-size:96px;line-height:1.1}
.card .word{font-size:46px;font-weight:700}
.card .en{direction:ltr;font-family:Arial,Helvetica,sans-serif}
.card .sub{font-size:20px;color:#7a6d8a}
.row{display:flex;gap:12px;justify-content:center}
.btn{border:0;border-radius:22px;font-size:26px;font-weight:700;padding:14px 22px;background:#7b5cd6;color:#fff;box-shadow:0 5px 0 #5a40a8;font-family:inherit;min-width:92px}
.btn:active{transform:translateY(3px);box-shadow:0 2px 0 #5a40a8}
.btn.alt{background:#ffb347;color:#3b2f4a;box-shadow:0 5px 0 #d98a1f}
.btn.snd{background:#2fb7a0;box-shadow:0 5px 0 #1f8a78}
.prog{text-align:center;font-size:18px;color:#7a6d8a;margin:4px 0 8px}
.q{background:#fff;border-radius:30px;box-shadow:0 6px 0 #eadfc9;padding:18px;text-align:center;min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;margin-bottom:16px}
.q .ask{font-size:24px;color:#6b5c80}
.q .stim{font-size:84px;line-height:1.15;font-weight:700}
.q .stim.txt{font-size:56px;color:#7b5cd6}
.opts{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.opts.two{grid-template-columns:1fr 1fr}
.opt{border:0;border-radius:24px;background:#fff;min-height:96px;font-size:44px;font-weight:700;box-shadow:0 5px 0 #eadfc9;font-family:inherit;padding:6px;color:#3b2f4a}
.opt.en{font-family:Arial,Helvetica,sans-serif;direction:ltr}
.opt.sm{font-size:34px}
.opt.ok{background:#b9f3c6;box-shadow:0 5px 0 #6fcf86}
.opt.no{background:#ffe1e1;opacity:.5;animation:shake .35s}
@keyframes shake{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.msg{text-align:center;font-size:22px;min-height:34px;margin-top:10px;color:#7b5cd6;font-weight:700}
.done{text-align:center;margin-top:30px}
.done .big{font-size:80px}
.done h2{font-size:32px;color:#7b5cd6;margin:8px 0}
.done p{font-size:22px}
.pop{animation:pop .5s}
@keyframes pop{0%{transform:scale(.6)}60%{transform:scale(1.15)}100%{transform:scale(1)}}
.count{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;font-size:56px;line-height:1.1}
.count button{font-size:56px;background:none;border:0;padding:2px;font-family:inherit}
.count button.t{opacity:.35;transform:scale(.85)}
.bubble{font-size:46px;color:#7b5cd6;font-weight:700;min-height:56px}
.foot{margin-top:auto;text-align:center;font-size:13px;color:#a89bb8;padding-top:18px}
.chips{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-bottom:10px}
.chip{border:0;border-radius:16px;padding:8px 14px;font-size:18px;background:#fff;box-shadow:0 3px 0 #eadfc9;font-family:inherit}
.chip.on{background:#cdb8ff}
.card{width:100%}
