@font-face{font-family:Ar;src:url(/assets/arabic.ttf)}@font-face{font-family:Hand;src:url(/assets/hand.ttf)}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{font-family:Ar,Tahoma,sans-serif;background:#213e77;color:#244e79;border:6px solid #101f42}button,a{touch-action:manipulation}button{font:700 16px Ar,Tahoma;cursor:pointer;color:#244e79;background:#dbe5ff;border:2px solid #97aedb;border-radius:13px;min-height:48px;padding:5px 12px}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #f5ae36;outline-offset:2px}header{position:fixed;z-index:20;top:6px;left:8px;right:8px;height:32px;display:flex;align-items:center;gap:5px;padding:2px 7px;background:linear-gradient(100deg,#24497f,#6356ad);color:white;border:1px solid #b8d8f5;border-radius:0 0 12px 12px;font-size:11px;white-space:nowrap;box-shadow:0 3px 0 #acbfda}header button{min-height:26px;height:26px;font-size:11px;padding:0 7px;background:#fff4cf;border:1px solid #dcc886;border-radius:9px}#progress{flex:1}#auto[aria-pressed=true]{background:#a7e5cd;color:#195d51}#jar{display:inline-flex;align-items:center;background:#fff0c6;color:#795323;border-radius:8px;padding:1px 4px;direction:ltr;gap:2px}#details{font-size:17px;padding:0 3px}main{position:fixed;inset:43px 9px 77px;padding:12px;background:linear-gradient(130deg,#d7eff5,#e9dfff);border:2px solid #b7d4e7;border-radius:22px;box-shadow:0 6px 0 #b3c4dd,0 13px 0 #94afd0}#card{height:100%;min-height:0;display:flex;flex-direction:column;gap:7px;padding:8px;background:linear-gradient(130deg,#dfeaff,#e6ddff);border:2px solid #9cb4dc;border-radius:17px;overflow:hidden}h1,h2,h3,p{margin:0}h2{font-size:21px;line-height:1.5;flex:none;padding-bottom:4px;border-bottom:2px solid #c3d7ee}h3{font-size:19px}#card .instruction{flex:none;display:flex;align-items:center;gap:7px;min-height:48px;padding:4px 7px;background:#157a95;border-radius:13px;color:white;font-weight:bold;font-size:14px}.speaker{min-width:48px;min-height:48px;background:#fff1ac;color:#2b5e76;border-color:#f4ce62;font-size:20px;padding:3px 7px}.instruction p{flex:1}.picture{flex:1;min-height:45px;width:100%;height:0;object-fit:contain;display:block;border-radius:10px}.word{font:42px/1.15 Hand,Arial;text-align:center;direction:ltr;flex:none}.meaning{text-align:center;font-size:16px;flex:none}.choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;direction:ltr;flex:none}.choices button{font:32px/1.15 Hand,Arial;min-height:57px;padding:6px;background:linear-gradient(130deg,#d2e8ff,#e7dcff)}.choices button.small{font:700 22px/1.2 Arial}.choices img{width:100%;height:clamp(80px,18dvh,160px);object-fit:contain;display:block}.choices .photo-choice{background:#fff;padding:5px}.choices .photo-choice span{display:block;font:25px Hand}.correct{border-color:#218063!important;background:#bfead7!important}.wrong{border-color:#b65674!important;background:#ffdae6!important}.feedback{min-height:32px;max-height:61px;flex:none;color:#087580;font-size:14px;line-height:1.6;text-align:center}.feedback.error{color:#a23155}.status-stars{text-align:center;color:#a27511;font-size:18px;letter-spacing:3px;flex:none}.letters{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;direction:ltr}.letters button{font:35px Hand;min-width:48px;background:#fff0b8;border-color:#e4bc5c}.slots{font:40px/1.2 Hand,Arial;text-align:center;direction:ltr;min-height:48px}.menu{display:grid;grid-template-columns:1fr 1fr;grid-auto-rows:minmax(0,1fr);gap:9px;min-height:0;flex:1}.menu button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:16px;background:linear-gradient(145deg,#d8f3f0,#e4dbff)}.menu .icon{font-size:35px}.menu small{font-size:12px;color:#20815b}.menu-pages{display:flex;justify-content:space-between;align-items:center;font-size:14px}.menu-pages button{min-height:40px}.body-stage{position:relative;flex:1;min-height:0;aspect-ratio:300/420;align-self:center;max-width:100%;width:auto}.body-stage img{height:100%;width:100%;object-fit:fill;display:block}.hit{position:absolute;min-height:30px;min-width:30px;padding:0;border:2px dashed #6faca680;background:transparent;border-radius:20px}.hit.head{top:4%;left:34%;width:32%;height:23%}.hit.arms{top:28%;left:6%;width:28%;height:28%}.hit.legs{top:60%;left:30%;width:40%;height:36%}.hit.body{top:28%;left:35%;width:30%;height:29%}.memory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr));flex:1;min-height:0;gap:6px}.memory button{min-height:0;padding:3px;font:27px Hand;background:#d5ddff}.memory img{width:100%;height:100%;object-fit:contain}.memory .matched{background:#beead9}.bubble{border-radius:50%!important;min-height:80px!important;background:#eddcff!important;position:relative}.bubble:after{content:'✦';display:block;font-size:17px;color:#b2781d}.sparkle:before{content:'✦';position:absolute;top:-9px;left:14px;color:#ffce48;text-shadow:0 0 5px white;font-size:27px;animation:sparkle 1.2s infinite}@keyframes sparkle{50%{opacity:.45;transform:scale(.8)}}nav{position:fixed;z-index:20;bottom:7px;left:9px;right:9px;height:57px;display:flex;gap:5px;border:2px solid #8194d3;border-radius:17px;padding:4px;background:linear-gradient(100deg,#196e78,#624482)}nav button{flex:1;color:#fff;background:#a73569;border-color:#de8aab;min-width:0;font-size:15px;padding:3px}nav #home{background:#ffdf70;color:#715821;border-color:#ffe9a0}nav #next{background:#137978;border-color:#78c7c2}dialog{max-width:min(94vw,760px);max-height:90dvh;overflow:auto;border:2px solid #9fb4dc;border-radius:20px;color:#244e79;font-family:Ar;background:#f7fbff}dialog::backdrop{background:#13284bc9}dialog p{font-size:15px;line-height:1.8;margin:12px 0}dialog img{width:100%;height:auto}dialog a{color:#086e7c}canvas{flex:1;min-height:100px;width:100%;height:0;touch-action:none;background:#fffef8;border:2px solid #d2bfe5;border-radius:13px}.draw-tools{display:flex;align-items:center;gap:6px;justify-content:center;flex:none}.draw-tools button{min-height:42px;font-size:14px;padding:2px 8px}.trace-guide{position:relative;flex:1;min-height:100px;display:flex}.trace-guide canvas{height:100%}.big-letter{font:100px Hand;text-align:center;color:#147a83}.party{position:fixed;z-index:30;inset:48px 12px 80px;pointer-events:none;overflow:hidden}.balloon{position:absolute;top:17%;left:var(--x);width:56px;min-height:75px;border:0;border-radius:50%;background:var(--c);box-shadow:inset 8px 0 0 #ffffff33;pointer-events:auto;animation:float 4s ease-in-out infinite}.balloon:after{content:'';position:absolute;top:100%;left:50%;height:24px;width:1px;background:#9c78b8}@keyframes float{50%{transform:translateY(40px) rotate(7deg)}}.fall-star{position:fixed;z-index:40;top:43%;left:var(--x);color:#ffc947;font-size:28px;pointer-events:none;animation:bankfall 1.3s var(--delay) ease-in both}@keyframes bankfall{to{top:7px;left:38px;transform:scale(.3);opacity:0}}.result{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;text-align:center}.result .word{font-size:46px}.map-title{font-size:18px}.drawing-note{font-size:12px;text-align:center;color:#65728b}.letter-find button{font-size:40px}.sentence-line{font:clamp(25px,7.5vw,37px)/1.5 Hand,Arial;direction:ltr;text-align:center;flex:none}.sentence-line .blank{display:inline-block;border-bottom:2px dashed #97a4c4;min-width:45px;color:#157885}.standalone{background:#fff1bf;padding:7px;border-radius:10px}.audio-error{color:#a32f4d;font-size:12px;text-align:center}.map-preview{font-size:11px;color:#526e8a;text-align:center}@media(min-width:601px){body{max-width:570px;margin:auto;border:0}header,main,nav{max-width:550px;margin:auto}main{left:0;right:0}header,nav{left:0;right:0}}@media(max-height:650px){main{padding:9px}#card{padding:6px;gap:5px}h2{font-size:19px}.choices button{min-height:51px;font-size:29px}.word{font-size:36px}.instruction p{font-size:13px}.feedback{font-size:13px;min-height:28px}.status-stars{font-size:16px}.menu button{font-size:14px}.menu .icon{font-size:29px}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important}.fall-star{animation:bankfall .3s linear both!important}}
#card:has(.body-stage){gap:4px}#card:has(.body-stage) .status-stars{font-size:14px;line-height:20px}#card:has(.body-stage) .word{font-size:38px}.body-stage{max-height:calc((100vw - 66px)*1.4);width:auto;min-width:0}.body-stage .hit.body{z-index:1}.body-stage .hit.arms,.body-stage .hit.legs,.body-stage .hit.head{z-index:2}
.party-flower{position:absolute;font-size:35px;opacity:.8;pointer-events:none}
.party-flower{pointer-events:auto;background:transparent;border:0;min-height:48px;min-width:48px;padding:0}

.reading-text{font-family:Arial,sans-serif!important;line-height:1.4!important}
