@font-face{font-family:Amiri;src:url('/shared/fonts/amiri.woff2') format('woff2');font-display:block}
@font-face{font-family:Nastaliq;src:url('/shared/fonts/noto-nastaliq-urdu.woff2') format('woff2');font-display:block}
:root{--ink:#153e50;--sky:#bceaf2;--gold:#ffcd59;--pink:#ee6b86;--teal:#138f91;--paper:#fffdf1;font-family:'Trebuchet MS',Verdana,sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100svh;background:linear-gradient(#9adbe9,#daf5f2 76%);overflow-x:hidden}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:5px solid #13596a;outline-offset:6px}button:disabled{cursor:default}button,a{user-select:none}[hidden]{display:none!important}h1,h2,p{margin:0}button{border:0}a{color:inherit;text-decoration:none}[lang=ar]{font-family:Amiri,serif;font-weight:400}[lang=ur]{font-family:Nastaliq,serif;font-weight:400;line-height:2.25}
.scenery{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:-1}.sun{position:absolute;right:8%;top:16%;width:170px;height:170px;border-radius:50%;background:#ffdc76;box-shadow:0 0 0 25px #ffdf8035,0 0 0 52px #ffeaa12a,inset -14px -14px 0 #f8c958}
.cloud{position:absolute;width:250px;height:60px;border-radius:70px;background:#ffffffbf;box-shadow:0 12px 0 #81c4d222}.cloud:before,.cloud:after{content:'';position:absolute;border-radius:50%;background:inherit;bottom:20px}.cloud:before{width:110px;height:110px;left:35px}.cloud:after{width:85px;height:85px;right:30px}.cloud-a{left:-50px;top:32%;transform:scale(1.6)}.cloud-b{left:42%;top:19%;transform:scale(.8)}.cloud-c{right:-30px;top:61%;transform:scale(1.25)}.hill{position:absolute;border-radius:50% 50% 0 0;bottom:-200px;width:120%;height:330px}.hill-back{left:-35%;background:#75bdb3;transform:rotate(7deg)}.hill-front{right:-35%;background:#3f9288;transform:rotate(-8deg);bottom:-220px}.hill-front:before{content:'';position:absolute;left:20%;top:28px;width:120px;height:4px;background:#97d6b5;transform:rotate(-8deg);box-shadow:180px 30px #97d6b5,350px -5px #97d6b5,530px 40px #97d6b5}
.toolbar{height:146px;display:flex;align-items:center;gap:18px;padding:12px 42px;border-bottom:2px solid #ffffff6b}.control{min-width:132px;min-height:120px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:28px;background:#ffffffa8;font-size:23px;font-weight:bold;border:2px solid #ffffffba;box-shadow:0 6px 0 #23758a12}.control span{font-size:22px}.brand{display:flex;align-items:center;gap:22px;flex:1;padding-left:26px;font-size:32px;font-weight:bold}.brand i{width:39px;height:49px;background:var(--pink);border-radius:50%;box-shadow:inset -7px -5px #c943681f;position:relative;transform:rotate(-12deg)}.brand i:after{content:'';position:absolute;left:19px;top:47px;width:1px;height:27px;background:#4d737b}#app{max-width:1810px;margin:auto;position:relative}.loading{padding:160px;font-size:50px;text-align:center}
.map-heading{padding:25px 50px 0;display:flex;align-items:end;justify-content:space-between;gap:20px}.map-heading h1{font-size:76px;letter-spacing:-3px;line-height:1.12}.map-heading p{font-size:28px;margin-top:12px}.star-total{font-size:28px;padding:20px 28px;border-radius:25px;background:#fff7d4;white-space:nowrap;box-shadow:0 6px 0 #c4a65b20}.star-total strong{font-size:44px;color:#886217}.trail{margin:5px 35px 0;position:relative;height:650px;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);align-items:center;justify-items:center}.trail-path{position:absolute;inset:0;width:100%;height:100%;opacity:.68;pointer-events:none}.level{position:relative;background:none;width:285px;height:285px;display:flex;flex-direction:column;align-items:center;justify-content:end;padding:0 5px 9px;isolation:isolate}.level:nth-of-type(even){transform:translateY(-14px)}.level .envelope{position:absolute;top:4px;width:166px;height:180px;border-radius:48% 48% 45% 45%;background:var(--balloon);box-shadow:inset -18px -8px 0 #00000012,inset 12px 0 0 #ffffff35,0 12px 20px #24526620;z-index:-1}.level .envelope:before{content:'';position:absolute;left:42px;top:0;width:80px;height:178px;border-radius:50%;background:#ffffff22}.level .envelope:after{content:'';position:absolute;top:179px;left:55px;width:56px;height:42px;border-left:3px solid #315b65;border-right:3px solid #315b65;border-bottom:20px solid #be8850;border-radius:0 0 7px 7px}.level-number{position:absolute;top:34px;font-size:67px;line-height:1;color:white;font-weight:bold;text-shadow:0 3px 0 #00000013}.level .stars{position:absolute;top:121px;font-size:28px;letter-spacing:2px;color:#fff4b0;text-shadow:0 2px 0 #76552045}.level-title{font-size:25px;font-weight:bold;background:var(--paper);padding:9px 18px;border-radius:18px;box-shadow:0 5px 0 #4c7b7a1a;white-space:nowrap}.level-detail{font-size:19px;margin-top:7px}.level.locked .envelope{filter:saturate(.25);opacity:.64}.level.locked .level-number{font-size:38px;top:48px}.level.locked .level-title{background:#eaf4ec}.map-footer{display:flex;align-items:center;justify-content:space-between;margin:0 55px 20px;font-size:22px}.reset-small{background:#ffffff85;min-height:52px;padding:10px 20px;border-radius:14px;font-size:18px}.map-rule{background:#ffffff70;padding:13px 22px;border-radius:18px}
.round-header{display:flex;align-items:center;justify-content:space-between;padding:15px 45px 0;gap:24px}.map-back{min-width:150px;min-height:120px;border-radius:24px;background:var(--paper);font-size:25px;font-weight:bold}.round-meta{flex:1}.round-meta h1{font-size:35px}.round-meta p{font-size:23px;margin-top:9px}.score{font-size:27px;background:#fff9dc;padding:20px 26px;border-radius:20px}.target-panel{display:flex;align-items:center;justify-content:center;gap:42px;height:193px;margin-top:-10px}.target-copy{font-size:38px;font-weight:bold;max-width:650px}.target-copy small{display:block;font-size:23px;font-weight:normal;margin-top:12px}.target-token{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:180px;height:186px;border-radius:35% 40% 35% 45%;background:#fffdf1;box-shadow:0 8px 0 #33889d18;transform:rotate(-3deg)}.target-token [lang=ar]{font-size:112px;line-height:1.03;transform:rotate(3deg)}.target-name{font-size:24px;margin-bottom:13px}.dots{display:flex;gap:10px;justify-content:center}.dot{height:13px;width:38px;border-radius:20px;background:#7ebec980}.dot.done{background:var(--teal)}.dot.helped{background:#db9673}.dot.current{background:var(--paper);outline:3px solid #2f7786}
.field{position:relative;height:440px;margin:3px 45px 0;isolation:isolate}.field canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}.balloon{position:absolute;border:0;background:none;padding:0;width:222px;height:290px;transform-origin:50% 80%;color:var(--ink);z-index:2}.balloon-shell{position:absolute;inset:0 5px 68px;border-radius:49% 49% 45% 45%;background:radial-gradient(ellipse at 28% 23%,#ffffffbd 0%,#ffffff33 13%,transparent 35%),radial-gradient(ellipse at 36% 30%,var(--balloon),var(--shade));box-shadow:inset -9px -9px 12px #00000014,10px 16px 20px #29617225}.balloon-shell:after{content:'';position:absolute;bottom:-10px;left:calc(50% - 9px);border-left:9px solid transparent;border-right:9px solid transparent;border-bottom:14px solid var(--shade)}.balloon-text{position:absolute;inset:5px 7px 75px;display:flex;align-items:center;justify-content:center;font-size:112px;line-height:1;white-space:nowrap}.balloon-string{position:absolute;left:50%;top:226px;height:62px;width:18px;border-left:2px solid #547c82;border-radius:50%}.has-3d .balloon-shell,.has-3d .balloon-string{visibility:hidden}.balloon.correct-hint:before{content:'';position:absolute;inset:-12px 0 55px;border-radius:50%;border:8px solid #fff5a8;box-shadow:0 0 28px 15px #fff3bca1;z-index:-1}.balloon.popped{pointer-events:none}.balloon.popped .balloon-shell,.balloon.popped .balloon-text,.balloon.popped .balloon-string{visibility:hidden}.balloon.wobble{animation:wobble .45s ease}.word-balloon{width:320px;height:393px}.word-balloon .balloon-shell{inset:0 10px 148px}.word-balloon .balloon-string{top:250px;height:20px}.meanings{position:absolute;top:276px;left:-20px;right:-20px;min-height:96px;background:#ffffffdb;box-shadow:0 5px 0 #4f899416;border-radius:23px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:8px 12px;pointer-events:none}.meaning-en{font-size:24px;line-height:1.16;white-space:normal}.meaning-ur{font-size:25px}.word-balloon.correct-hint:before{bottom:135px}.word-balloon.popped .meanings{background:#fff3ba;transform:scale(1.04)}.feedback{margin:0 auto;min-height:76px;text-align:center;font-size:30px;font-weight:bold;padding:6px 24px;max-width:1450px}.feedback .answer-word{font-size:45px;margin:0 20px}.feedback [lang=ur]{font-size:26px;margin-left:20px}.continue-row{display:flex;justify-content:center}.continue{min-height:120px;min-width:260px;background:#155b65;color:white;border-radius:28px;font-weight:bold;font-size:30px;box-shadow:0 7px 0 #0b414d}
.celebration{text-align:center;padding:42px 35px}.celebration .ribbon{font-size:26px;color:#226d74}.celebration h1{font-size:78px;letter-spacing:-3px;margin:12px 0}.big-stars{display:flex;justify-content:center;gap:28px;margin:28px 0 14px}.big-stars span{color:#ffbd36;font-size:150px;line-height:1.2;filter:drop-shadow(0 9px 0 #c4893338);animation:star-in .7s cubic-bezier(.2,1.7,.5,1) both}.big-stars span:nth-child(2){animation-delay:.18s}.big-stars span:nth-child(3){animation-delay:.36s}.big-stars .empty{color:#95c5ca}.celebration .result{font-size:32px;margin:14px 0}.unlock{display:inline-block;background:#fff7d5;padding:20px 50px;border-radius:25px;font-size:36px;font-weight:bold;margin:10px}.celebration-actions{display:flex;justify-content:center;gap:24px;margin-top:32px}.celebration-actions button{min-height:120px;min-width:240px;padding:20px 30px;border-radius:28px;background:var(--paper);font-size:28px;font-weight:bold;box-shadow:0 7px 0 #2f6a7520}.celebration-actions .next-level{background:var(--teal);color:white}.celebration .tip{font-size:24px;margin-top:30px}
#bursts{position:fixed;inset:0;pointer-events:none;z-index:20;overflow:hidden}.confetti{position:absolute;width:14px;height:24px;background:var(--color);border-radius:3px;animation:confetti 1s ease-out both}.pop-ring{position:absolute;width:100px;height:100px;border-radius:50%;border:14px solid #fff9d0;animation:ring .7s ease-out both}dialog{background:var(--paper);color:var(--ink);border:0;border-radius:36px;padding:45px;max-width:850px;box-shadow:0 30px 100px #123a5666}dialog::backdrop{background:#153e5070;backdrop-filter:blur(8px)}dialog h2{font-size:42px}dialog p{font-size:26px;margin:20px 0 40px}.dialog-actions{display:flex;gap:20px}.dialog-actions button{min-height:120px;padding:24px;border-radius:22px;background:#d0ede7;font-size:27px}#confirm-reset{background:#ffdc9f}#storage-note{position:fixed;left:20px;bottom:10px;background:#fff8c9;padding:10px;z-index:10}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@keyframes wobble{25%{rotate:-7deg}75%{rotate:7deg}}@keyframes star-in{from{opacity:0;transform:translateY(-150px) scale(.2) rotate(-60deg)}to{opacity:1;transform:none}}@keyframes confetti{from{opacity:1;transform:translate(0,0) rotate(0)}to{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(310deg)}}@keyframes ring{from{opacity:1;transform:translate(-50%,-50%) scale(.3)}to{opacity:0;transform:translate(-50%,-50%) scale(2)}}
@media(min-height:1000px){.field{height:410px}.target-panel{height:185px}.feedback{min-height:65px}}
@media(max-width:1400px){.toolbar{height:132px;padding:6px 22px;gap:12px}.brand{font-size:26px;padding-left:10px;gap:15px}.control{font-size:20px;min-width:124px;border-radius:24px}.map-heading{padding:14px 38px 0}.map-heading h1{font-size:56px}.map-heading p{font-size:23px}.star-total{font-size:22px;padding:12px 18px}.star-total strong{font-size:34px}.trail{height:475px;margin:4px 25px 0}.level{width:260px;height:227px}.level .envelope{width:130px;height:140px;top:0}.level .envelope:before{width:60px;height:140px;left:35px}.level .envelope:after{top:139px;left:43px;width:44px;height:32px;border-bottom-width:14px}.level-number{top:22px;font-size:54px}.level .stars{top:90px;font-size:24px}.level.locked .level-number{top:30px}.level-title{font-size:21px;padding:7px 13px}.level-detail{font-size:17px}.map-footer{font-size:18px;margin:0 38px 12px}.round-header{padding:8px 28px 0}.round-meta h1{font-size:28px}.round-meta p{font-size:19px}.score{font-size:23px;padding:16px}.target-panel{height:155px;margin-top:-24px;gap:28px}.target-token{min-width:150px;height:145px}.target-token [lang=ar]{font-size:88px}.target-name{font-size:20px;margin-bottom:8px}.target-copy{font-size:30px}.target-copy small{font-size:20px}.field{height:300px;margin:0 30px}.balloon{width:184px;height:240px}.balloon-shell{bottom:56px}.balloon-text{font-size:96px;bottom:65px}.balloon-string{top:187px;height:48px}.word-balloon{width:240px;height:296px}.word-balloon .balloon-shell{inset:0 8px 108px}.word-balloon .balloon-string{top:190px;height:15px}.meanings{top:211px;left:-15px;right:-15px;min-height:82px;padding:6px 8px;border-radius:18px}.meaning-en{font-size:19px}.meaning-ur{font-size:21px}.word-balloon.correct-hint:before{bottom:95px}.feedback{min-height:60px;font-size:24px;padding:3px 20px}.feedback .answer-word{font-size:33px}.feedback [lang=ur]{font-size:22px}.continue{font-size:26px;min-height:120px;min-width:230px}.dots{gap:8px}.dot{width:30px;height:10px}.celebration{padding:24px}.celebration h1{font-size:62px;margin:6px}.big-stars{margin:12px}.big-stars span{font-size:115px}.celebration .result{font-size:28px}.unlock{font-size:30px;padding:15px 35px}.celebration-actions{margin-top:20px}.celebration .tip{font-size:20px;margin-top:22px}}
@media(max-width:850px){.toolbar{height:auto;flex-wrap:wrap;padding:8px}.brand{order:-1;flex-basis:100%;justify-content:center;padding:10px;font-size:25px}.brand i{display:none}.control{flex:1;min-width:120px}.map-heading{padding:20px;display:block}.map-heading h1{font-size:45px}.star-total{display:inline-block;margin-top:15px}.trail{height:auto;grid-template-columns:repeat(2,1fr);grid-auto-rows:250px;grid-template-rows:none;margin:0}.trail-path{display:none}.level{width:100%;max-width:260px}.map-footer{margin:15px;gap:15px;flex-wrap:wrap}.round-header{padding:10px;gap:10px;flex-wrap:wrap}.round-meta{min-width:160px}.score{font-size:18px}.target-panel{margin:10px;height:170px;gap:15px}.target-copy{font-size:24px}.target-copy small{font-size:17px}.target-token{min-width:125px}.field{margin:0 5px;height:570px}.balloon{width:150px;height:210px}.balloon-text{font-size:80px}.balloon-shell{bottom:55px}.balloon-string{top:158px}.word-balloon{width:190px;height:270px}.word-balloon .balloon-shell{bottom:95px}.word-balloon .balloon-string{top:177px}.meanings{top:196px;left:0;right:0}.meaning-en{font-size:16px}.meaning-ur{font-size:18px}.feedback{font-size:22px;min-height:75px}.continue-row{padding-bottom:20px}.dots{gap:6px}.dot{width:20px}.celebration h1{font-size:45px}.big-stars{gap:5px}.big-stars span{font-size:90px}.celebration-actions{flex-wrap:wrap}.unlock{font-size:25px;padding:18px}.dialog-actions{flex-direction:column}dialog{padding:25px}dialog h2{font-size:30px}}
@media(min-width:851px) and (max-height:850px){.target-panel{height:115px;margin-top:-42px}.target-token{height:128px;min-width:138px}.target-token [lang=ar]{font-size:78px}.target-name{font-size:18px}.target-copy{font-size:28px}.target-copy small{font-size:18px;margin-top:6px}.field{height:300px}.feedback{min-height:40px;font-size:22px;padding:0 10px}.feedback .answer-word{font-size:29px}.feedback [lang=ur]{font-size:21px}.round-meta h1{font-size:26px}.round-meta p{font-size:18px}}
.target-token [lang=ar]{transform:rotate(3deg) translateY(-18px);font-size:100px}.target-name{position:relative}.level.locked .level-number{font-size:58px;top:27px}.lock{position:absolute;top:94px;width:18px;height:15px;border-radius:3px;background:#335964}.lock:before{content:'';position:absolute;left:4px;top:-9px;width:10px;height:12px;border:3px solid #335964;border-radius:8px}.level.locked .stars{color:#faf5d2}

@media(min-width:851px) and (max-height:850px){.field{height:285px}.feedback{min-height:42px;line-height:1.2}.target-token [lang=ar]{font-size:78px;transform:rotate(3deg) translateY(-12px)}.word-balloon{height:278px}.word-balloon .balloon-shell{bottom:90px}.word-balloon .meanings{top:192px}}
@media(max-width:1400px){.level.locked .level-number{font-size:46px;top:18px}.lock{top:77px;width:14px;height:12px}.lock:before{left:3px;width:8px;height:10px;top:-7px;border-width:2px}.target-token [lang=ar]{font-size:78px;transform:rotate(3deg) translateY(-12px)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-delay:0s!important;transition:none!important}}

/* Arabic is a whole HTML text node over the mesh, including after a word pop. */
.label-layer{position:absolute;inset:0;z-index:3;pointer-events:none;overflow:visible}
.label-anchor{position:absolute;left:0;top:0;width:0;height:0;overflow:visible;will-change:transform}
.label-layer .balloon-text{position:absolute;inset:auto;left:0;top:0;display:inline-block;width:max-content;height:auto;padding:0;border:0;font-family:Amiri,serif;font-weight:400;font-size:112px;line-height:1.8;white-space:pre;overflow:visible;letter-spacing:normal;font-feature-settings:normal;font-kerning:normal;font-synthesis:none;transform:translate(-50%,calc(-50% - .25em));color:var(--ink)}
.label-layer .word-text{font-size:74px;transform:translate(-50%,-50%)}
@media(max-width:1400px){.label-layer .balloon-text{font-size:96px}.label-layer .word-text{font-size:59px}}
@media(max-width:850px){.label-layer .balloon-text{font-size:80px}.label-layer .word-text{font-size:47px}}
