@import url('fonts.css');
:root{--ink:#252548;--muted:#74768c;--purple:#7158ea;--purple-dark:#5840cb;--yellow:#ffda73;--cream:#faf9f6;--line:#e9e7f0;--green:#138775;--pink:#ff847e;--shadow:0 12px 40px #27244b0a;font-family:'Nunito',ui-rounded,'Arial Rounded MT Bold',system-ui,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #3c87df;outline-offset:4px}a{color:var(--purple)}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em;line-height:1.13}h1{font-size:clamp(32px,4vw,54px);font-weight:900}h2{font-size:28px;font-weight:900}h3{font-size:21px}p{line-height:1.65}.muted{color:var(--muted);font-size:14px}.eyebrow{font-size:11px;font-weight:900;letter-spacing:2px;text-transform:uppercase;margin-bottom:16px}.btn{border:0;border-radius:16px;min-height:52px;padding:14px 24px;background:#f0edf9;color:var(--ink);font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;transition:transform .16s,background .16s,box-shadow .16s}.btn:hover{transform:translateY(-2px)}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--purple);color:white;box-shadow:0 5px 0 #5440b6}.btn.yellow{background:var(--yellow);color:#443a24;box-shadow:0 5px 0 #dfb654}.btn.white{background:white;color:var(--ink)}.btn.small{min-height:44px;padding:10px 16px;border-radius:12px;font-size:13px}.btn.danger{color:#ae3848;background:#fff0f2}.btn.wide{width:100%}.text-btn{background:none;border:0;padding:12px;color:var(--purple);font-weight:800;min-height:44px}.icon-btn{background:white;border:1px solid var(--line);width:48px;height:48px;border-radius:15px;display:inline-flex;align-items:center;justify-content:center;font-size:21px;flex-shrink:0}.panel{background:#fff;border:1px solid var(--line);border-radius:24px;padding:26px;box-shadow:var(--shadow)}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.stack{display:grid;gap:16px}.pill{font-size:12px;font-weight:900;padding:8px 13px;background:#fff9e6;border-radius:30px;color:#95701c;display:inline-flex;align-items:center;gap:6px}.pill.purple{background:#f0ecff;color:var(--purple)}.brand{display:flex;align-items:center;gap:10px;font-weight:1000;font-size:23px;letter-spacing:-1px;line-height:1}.brand small{font-size:12px;display:block;letter-spacing:4px;color:var(--purple);margin-top:5px}.brand-mark{background:var(--purple);color:var(--yellow);font-size:31px;width:43px;height:47px;border-radius:14px;display:inline-grid;place-items:center;box-shadow:0 4px 0 #5841b1;transform:rotate(-6deg)}.sprite{background-image:url('assets/actors.webp');background-size:200% 200%;width:220px;height:220px;flex-shrink:0;background-repeat:no-repeat}.sprite.explorer{background-position:0 0}.sprite.jet{background-position:100% 0}.sprite.ruwaisa{background-position:0 100%}.sprite.kitten{background-position:100% 100%}.loading{min-height:100dvh;display:grid;place-content:center;justify-items:center;text-align:center;padding:30px}.loading h1{font-size:23px;margin-top:24px}label{display:grid;gap:8px;font-size:14px;font-weight:800}input,select{width:100%;min-height:52px;border:1.5px solid #e2dfed;border-radius:13px;background:#fcfbff;padding:12px 15px;color:var(--ink);font-weight:600}input[type=checkbox]{width:22px;min-height:22px;flex-shrink:0;accent-color:var(--purple)}form{display:grid;gap:18px}.error{background:#fff0f0;border-radius:12px;color:#a13241;padding:12px;font-size:14px}.check{display:flex;gap:10px;font-weight:600;font-size:12px;line-height:1.5;align-items:center}.login-page{min-height:100dvh;display:grid;grid-template-columns:1.12fr 1fr;padding:22px;gap:22px}.welcome-art{border-radius:32px;background:linear-gradient(180deg,#132f2415 30%,#143b35d9),url('assets/garden.webp') center/cover;position:relative;overflow:hidden;min-height:720px;padding:32px;display:flex;flex-direction:column;justify-content:space-between}.welcome-art .brand{color:white;position:relative;z-index:2}.welcome-art .brand small{color:#ffda73}.welcome-art .sprite{position:absolute;width:540px;height:540px;max-width:100%;top:12%;left:50%;transform:translateX(-50%);filter:drop-shadow(0 12px 12px #16332622)}.welcome-copy{position:relative;z-index:2;color:white;max-width:430px}.welcome-copy h1{font-size:clamp(36px,4vw,58px);margin-bottom:16px}.welcome-copy p{color:#e2f2dd}.welcome-copy .pill{background:#ffffff24;color:white}.login-side{display:flex;align-items:center;justify-content:center;padding:34px;position:relative}.login-box{width:100%;max-width:410px}.login-box h1{font-size:36px;margin-top:22px;margin-bottom:12px}.login-box>p{color:var(--muted);font-size:15px}.login-side .brand{display:none}.switch{display:flex;gap:6px;background:#efedf5;padding:5px;border-radius:15px;margin:24px 0}.switch button{flex:1;min-height:44px;border:0;border-radius:11px;background:transparent;color:var(--muted);font-weight:900}.switch button.active{background:white;color:var(--purple);box-shadow:0 4px 10px #29294b09}.age-options{display:flex;gap:10px}.age-options label{flex:1;display:block;cursor:pointer}.age-options input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.age-options span{display:block;text-align:center;border:2px solid #eeeaf8;border-radius:14px;padding:13px 5px;background:#f9f7fe}.age-options input:checked+span{background:#efebff;border-color:var(--purple);color:var(--purple)}.age-options input:focus-visible+span{outline:3px solid #3c87df}.login-foot{font-size:11px;color:var(--muted);text-align:center;margin-top:26px}.shell{display:grid;grid-template-columns:218px 1fr;min-height:100dvh}.sidebar{background:white;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:218px;z-index:20}.sidebar .brand{margin:0 6px 42px}.nav-caption{font-size:10px;letter-spacing:2px;color:#a2a0b3;font-weight:900;margin:0 15px 12px}.nav{display:grid;gap:8px}.nav button{display:flex;align-items:center;gap:12px;border:0;background:none;text-align:left;padding:15px 17px;border-radius:15px;color:var(--muted);font-size:14px;font-weight:800;min-height:52px}.nav button.active{background:#eee9ff;color:var(--purple)}.nav-icon{font-size:20px;min-width:24px}.side-note{margin-top:auto;background:#faf5e6;padding:20px 16px;border-radius:20px;font-size:12px;color:#8e7851;line-height:1.6}.side-note b{display:block;font-size:14px;color:#705733;margin-bottom:7px}.main{grid-column:2;padding:28px 40px 32px;max-width:1500px;width:100%;margin:auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px}.breadcrumb{color:var(--muted);font-size:13px}.profile{display:flex;align-items:center;gap:10px}.avatar{width:42px;height:42px;border-radius:50%;background:#f5e2ca;display:grid;place-items:center;font-size:24px}.profile b{font-size:13px}.profile small{font-size:11px;color:var(--muted);display:block}.greeting h1{font-size:32px;margin-bottom:7px}.greeting p{color:var(--muted);font-size:14px;margin-bottom:24px}.hero{position:relative;overflow:hidden;min-height:330px;border-radius:26px;background:linear-gradient(90deg,#172d42ed 0%,#1a4146a1 45%,#315a4300 78%),url('assets/garden.webp') center 58%/cover;color:white;padding:34px;margin-bottom:26px;isolation:isolate}.hero h2{font-size:42px;max-width:360px;position:relative;z-index:2;margin:16px 0}.hero p{color:#e4efe8;font-size:14px;max-width:290px;position:relative;z-index:2}.hero .pill{background:#ffffff24;color:#fff6c4;font-size:10px;letter-spacing:1px}.hero .sprite{position:absolute;right:3%;bottom:-36px;width:390px;height:390px;z-index:-1}.hero .btn{position:relative;z-index:2}.hero-tag{position:absolute;right:25px;top:23px;color:white;background:#173d4138;backdrop-filter:blur(8px);padding:10px 15px;border-radius:15px;font-size:12px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 16px}.section-head h2{font-size:22px;margin:0}.section-head span{font-size:12px;color:var(--muted)}.game-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.game-card{border:1px solid var(--line);border-radius:24px;background:#fff;overflow:hidden}.game-art{height:170px;position:relative;overflow:hidden;background:linear-gradient(120deg,#dff5ff,#96d4f5)}.game-art.english{background:linear-gradient(120deg,#eee5ff,#d3c4f5)}.game-art:before,.game-art:after{content:'';position:absolute;border-radius:50%;width:190px;height:190px;border:22px solid #ffffff38;right:10px;top:15px}.game-art:after{width:110px;height:110px;right:52%;top:40px;border-width:15px}.game-art .sprite{position:absolute;width:235px;height:235px;right:2%;top:-23px;z-index:1}.game-art .art-label{position:absolute;z-index:2;left:23px;top:24px;font-size:29px;font-weight:1000;line-height:1.1;max-width:160px;color:#214965}.game-art.english .art-label{color:#5c4091}.game-card-body{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px}.game-card-body h3{font-size:17px;margin:0 0 5px}.game-card-body p{font-size:12px;color:var(--muted);margin:0}.strip{display:flex;align-items:center;gap:18px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px 24px;margin-top:24px}.strip-icon{background:#fff3d3;border-radius:16px;width:48px;height:48px;display:grid;place-items:center;font-size:24px;flex-shrink:0}.strip h3{font-size:15px;margin-bottom:4px}.strip p{font-size:12px;color:var(--muted);margin:0}.strip .btn{margin-left:auto}.footer{font-size:11px;color:#9491a5;margin-top:30px;display:flex;justify-content:space-between;align-items:center;gap:16px}.footer button{font-size:11px;color:#9491a5}.map-header{display:flex;align-items:center;gap:20px;background:#eeeafc;padding:24px;border-radius:24px;margin-bottom:26px}.map-header .sprite{width:130px;height:130px}.map-header h1{font-size:30px;margin-bottom:8px}.map-header p{font-size:14px;color:var(--muted);margin:0}.level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.level{position:relative;padding:23px;border:1px solid var(--line);background:white;border-radius:22px;text-align:left;min-height:188px;transition:transform .16s,box-shadow .16s;display:flex;flex-direction:column;align-items:flex-start}.level:not(:disabled):hover{transform:translateY(-4px);box-shadow:var(--shadow)}.level.current{border:2px solid var(--purple);background:#faf8ff}.level.completed{border-color:#b6ded5}.level-num{background:#eeeafb;color:var(--purple);font-size:20px;font-weight:900;width:44px;height:44px;display:grid;place-items:center;border-radius:14px;margin-bottom:18px}.level.completed .level-num{background:#e2f4ed;color:var(--green)}.level h3{font-size:17px;margin-bottom:8px}.level small{color:var(--muted);font-size:12px}.level .stars{position:absolute;right:17px;top:24px;color:#d89820;font-size:16px}.next-pack{text-align:center;background:#f0ecfb;border:1px dashed #c7bce9;border-radius:24px;padding:28px;margin-top:24px}.next-pack h3{font-size:20px;margin:10px 0}.next-pack p{font-size:13px;color:var(--muted);margin:0}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.stat{padding:25px;border:1px solid var(--line);border-radius:20px;background:white}.stat strong{font-size:34px;display:block;margin:8px 0}.stat small{color:var(--muted)}.progress-row{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--line)}.progress-row:last-child{border:0}.progress-row h3{margin:0 0 5px;font-size:16px}.progress-row .sprite{width:65px;height:65px}.bar{height:8px;background:#efedf6;border-radius:10px;overflow:hidden;margin-top:9px}.bar i{display:block;height:100%;background:var(--purple);border-radius:10px}.parent-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.parent-grid p{font-size:14px}.parent-grid h2{font-size:22px}.setup{max-width:620px;margin:40px auto}.credentials{background:#f5f2ff;border-radius:20px;padding:22px;margin:20px 0;display:grid;gap:16px}.credentials span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.credentials strong{font-size:20px;overflow-wrap:anywhere}.credentials .recovery{font-family:monospace;font-size:17px}.game-header{display:flex;align-items:center;gap:14px;margin-bottom:20px}.game-header h2{font-size:20px;margin:0 0 4px}.game-header small{color:var(--muted);font-size:12px}.game-header .pause{margin-left:auto}.game-stage{position:relative;background:#bbe3ef;border-radius:24px;overflow:hidden;border:3px solid white;box-shadow:var(--shadow)}canvas{display:block;width:100%;height:clamp(280px,45vh,470px);touch-action:none;user-select:none;-webkit-user-select:none}.game-hud{position:absolute;left:16px;right:16px;top:16px;display:flex;justify-content:space-between;pointer-events:none;gap:12px}.game-hud span{background:#ffffffec;padding:8px 12px;border-radius:12px;font-size:12px;font-weight:900;box-shadow:0 3px 12px #0001}.controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:15px 0}.control-group{display:flex;gap:12px}.control{touch-action:none;-webkit-user-select:none;user-select:none;width:66px;height:62px;background:#fff;border:1px solid #e4dff2;border-bottom:5px solid #ccc4e5;border-radius:19px;font-size:26px;color:var(--purple);display:grid;place-items:center}.control.action{width:105px;background:var(--yellow);border-color:#e2bc5a;color:#634922;font-size:17px;font-weight:900}.control.pressed{transform:translateY(3px);border-bottom-width:2px}.game-hint{text-align:center;color:var(--muted);font-size:12px;margin-bottom:15px}.learn-progress{display:flex;gap:7px;justify-content:center;margin:12px 0}.learn-progress span{width:30px;height:7px;border-radius:8px;background:#ded9ee}.learn-progress span.done{background:var(--purple)}.lesson-icon{font-size:46px;text-align:center}.hanzi{font-family:'Noto Sans SC',system-ui,sans-serif;font-size:clamp(34px,7vw,50px);text-align:center;line-height:1.35;margin:12px 0;color:#28334b}.pinyin{text-align:center;color:var(--purple);font-size:20px;font-weight:800}.translation{text-align:center;font-weight:800;font-size:19px;line-height:1.5}.urdu{font-family:'Noto Naskh Arabic',system-ui,sans-serif;direction:rtl;font-size:23px;line-height:1.65;color:#595b75}.audio-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:22px 0}.audio-buttons .btn{font-size:13px;padding:12px 16px;min-height:48px}.example{padding:14px 17px;border-radius:15px;background:#f4f1ff;font-size:16px;text-align:center;margin:18px 0}.lesson-foot{font-size:12px;color:var(--muted);text-align:center}.quiz{max-width:720px;margin:0 auto;text-align:center}.quiz .prompt{font-size:25px;line-height:1.4;margin:22px 0}.listen-big{background:#eee8ff;border:0;color:var(--purple);border-radius:50%;width:92px;height:92px;font-size:36px;box-shadow:0 6px 0 #dcd2fb;margin:16px 0}.quiz-options{display:grid;grid-template-columns:1fr 1fr;gap:14px;text-align:left;margin-top:25px}.quiz-option{min-height:82px;background:white;border:2px solid var(--line);border-radius:18px;padding:18px;font-size:17px;font-weight:800;color:var(--ink)}.quiz-option:hover{border-color:var(--purple);background:#f8f5ff}.quiz-counter{font-size:13px;color:var(--muted);margin:20px 0}.result{text-align:center;max-width:650px;margin:auto}.result .big-star{font-size:70px;margin:25px 0}.result h1{font-size:38px}.review-items{display:grid;gap:10px;margin:20px 0}.review-item{padding:14px;border:1px solid var(--line);border-radius:15px;text-align:left}.review-item .btn{float:right}.admin-row{display:grid;grid-template-columns:1fr 145px 100px 70px;gap:10px;align-items:center;margin:12px 0}.admin-row input{min-height:44px}.mobile-logo{display:none}dialog{border:0;border-radius:28px;padding:30px;max-width:520px;width:calc(100% - 30px);max-height:90dvh;overflow:auto;color:var(--ink);box-shadow:0 25px 100px #16132b40}dialog::backdrop{background:#1e204a66;backdrop-filter:blur(5px)}dialog h2{font-size:25px}dialog p{font-size:14px}.modal-top{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}.modal-top h2{margin:0}.modal-top .icon-btn{width:40px;height:40px;border:0;background:#f4f2f8}.modal-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(120px);max-width:calc(100% - 32px);width:max-content;background:#272445;color:white;border-radius:16px;padding:14px 22px;font-size:14px;box-shadow:0 8px 35px #2224;z-index:100;transition:transform .2s}#toast.visible{transform:translateX(-50%) translateY(0)}.hidden{display:none!important}.release-table{overflow:auto}.break{overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(min-width:1500px){.hero{min-height:370px}.hero .sprite{width:440px;height:440px}.hero h2{font-size:48px}}
@media(max-width:1100px){.main{padding:25px}.sidebar{width:190px;padding:28px 15px}.shell{grid-template-columns:190px 1fr}.hero{padding:27px}.hero .sprite{right:-35px;opacity:.9}.hero h2{font-size:36px}.level-grid{grid-template-columns:repeat(2,1fr)}.game-art .art-label{font-size:23px;max-width:125px}.game-art .sprite{right:-35px}.login-side{padding:20px}.welcome-art{min-height:680px}}
@media(max-width:760px){.shell{display:block;padding-bottom:84px}.sidebar{position:fixed;inset:auto 0 0;width:100%;height:auto;padding:8px 14px calc(8px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(14px);border-top:1px solid var(--line);border-right:0}.sidebar .brand,.nav-caption,.side-note{display:none}.nav{display:flex;justify-content:space-around;gap:6px}.nav button{flex:1;flex-direction:column;gap:3px;padding:6px;min-height:52px;font-size:10px;border-radius:13px}.nav-icon{font-size:22px}.main{padding:18px 18px 24px}.topbar{margin-bottom:24px}.breadcrumb{display:none}.mobile-logo{display:block}.mobile-logo .brand{font-size:18px}.mobile-logo .brand-mark{width:34px;height:36px;font-size:25px;border-radius:11px}.mobile-logo .brand small{font-size:9px;letter-spacing:3px}.profile .pill{display:none}.profile b{font-size:12px}.profile small{font-size:10px}.avatar{width:36px;height:36px;font-size:20px}.greeting h1{font-size:27px}.greeting p{font-size:13px}.hero{min-height:328px;padding:24px;margin-bottom:22px}.hero h2{font-size:34px;max-width:220px}.hero p{max-width:190px;font-size:12px}.hero .sprite{width:290px;height:290px;right:-72px;bottom:2px;opacity:1}.hero-tag{display:none}.hero .btn{padding:13px 18px;min-height:50px;font-size:13px}.hero .pill{font-size:9px;padding:7px 10px}.game-grid{gap:14px}.game-art{height:145px}.game-art .art-label{font-size:19px;left:15px;top:17px;max-width:100px}.game-art .sprite{width:165px;height:165px;right:-30px;top:24px}.game-card-body{padding:15px;display:block}.game-card-body h3{font-size:14px}.game-card-body p{font-size:11px;min-height:36px}.game-card-body .btn{margin-top:10px;width:100%;font-size:12px}.section-head h2{font-size:20px}.section-head span{font-size:10px}.strip{padding:16px;gap:12px}.strip h3{font-size:13px}.strip p{font-size:11px}.strip .btn{display:none}.footer{font-size:10px;margin-top:20px}.footer button{font-size:10px}.map-header{padding:16px;gap:4px}.map-header .sprite{width:95px;height:95px}.map-header h1{font-size:23px}.map-header p{font-size:12px}.level-grid{gap:12px}.level{padding:17px;min-height:180px}.level h3{font-size:16px}.level small{font-size:11px}.level .stars{font-size:13px;right:12px}.next-pack{padding:22px 15px}.next-pack h3{font-size:18px}.stats{gap:10px}.stat{padding:15px 12px}.stat strong{font-size:26px}.stat small{font-size:11px}.parent-grid{grid-template-columns:1fr}.panel{padding:20px}.game-header{gap:10px}.game-header h2{font-size:16px}.game-header small{font-size:11px}.game-header .pill{font-size:10px}.game-stage{border-radius:20px}.game-hud{left:10px;right:10px;top:12px}.game-hud span{font-size:10px;padding:7px 9px}.game-hud .desktop-hint{display:none}.control{width:62px;height:60px}.control-group{gap:8px}.controls{gap:8px}.control.action{width:94px}.quiz .prompt{font-size:22px}.quiz-options{gap:10px}.quiz-option{font-size:15px;min-height:80px;padding:15px}.login-page{display:block;padding:0}.welcome-art{display:none}.login-side{min-height:100dvh;padding:27px 25px;background:radial-gradient(ellipse at 100% 0,#eee5ff 0%,transparent 50%),radial-gradient(ellipse at 0 100%,#fff2cb 0%,transparent 50%)}.login-side .brand{display:flex;margin-bottom:34px}.login-box h1{font-size:33px}.login-box>p{font-size:14px}.login-foot{margin-top:24px}.setup{margin:20px 15px}.admin-row{grid-template-columns:1fr 130px;gap:8px;border-bottom:1px solid var(--line);padding-bottom:14px}.admin-row .check{justify-content:flex-end}.game-hint{font-size:11px}.audio-buttons .btn{padding:11px 14px}.hanzi{font-size:36px}}
@media(max-width:370px){.main{padding:15px 12px}.hero{padding:20px}.hero h2{font-size:29px}.hero .sprite{right:-95px}.control{width:54px}.control.action{width:80px}.game-art .art-label{font-size:17px}.game-art .sprite{right:-40px}.level{padding:14px}.level .stars{font-size:11px}.level h3{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Integrated learn-while-playing adventure */
.adventure-page{min-height:100dvh;padding:12px;background:radial-gradient(circle at 50% 0,#dff6ff 0,#b7e7fb 38%,#f7fbff 100%);display:grid;place-items:center;overflow:hidden}.adventure-frame{width:min(1180px,100%);background:#edf8ff;border:3px solid #fff;border-radius:30px;overflow:hidden;box-shadow:0 20px 60px #245f8d2b}.adventure-bar{height:72px;padding:9px 14px;display:flex;align-items:center;gap:13px;background:linear-gradient(180deg,#f9fdff,#dcefff);border-bottom:2px solid #afd7ed;color:#183e73}.adventure-round-button{width:50px;height:50px;min-width:50px;border:3px solid white;border-radius:50%;background:linear-gradient(180deg,#378cf0,#1762c8);box-shadow:0 4px 0 #104b9d;color:white;font-size:23px;font-weight:1000;display:grid;place-items:center}.adventure-logo{display:flex;align-items:center;gap:8px;min-width:180px}.adventure-logo>span{width:46px;height:46px;display:grid;place-items:center;border-radius:16px;background:#ffdb62;color:#173d75;font-size:20px;font-weight:1000;transform:rotate(-4deg);box-shadow:0 4px 0 #df9d28}.adventure-logo b{font-size:18px;line-height:1.05;max-width:120px}.adventure-level{margin:auto;text-align:center;background:white;border-radius:18px;padding:7px 24px;box-shadow:0 4px 13px #184c7c17;min-width:250px}.adventure-level small{display:block;font-size:9px;letter-spacing:1.5px;color:#5c80aa;font-weight:1000}.adventure-level strong{display:block;font-size:15px;margin-top:2px}.adventure-stars{min-width:142px;color:#ffc51f;font-size:24px;letter-spacing:2px;text-shadow:0 2px 0 #b36c13;font-weight:1000;white-space:nowrap}.integrated-stage{height:min(760px,calc(100dvh - 100px));min-height:600px;position:relative;overflow:hidden;background:#88d8f5;isolation:isolate}.integrated-stage canvas{position:absolute;inset:0;width:100%;height:100%;touch-action:none;user-select:none;-webkit-user-select:none}.game-loading{position:absolute;inset:0;z-index:12;display:grid;place-content:center;justify-items:center;gap:14px;background:linear-gradient(#c9effddd,#e9fbffed);color:#17456f}.game-loading>span{width:54px;height:54px;border:7px solid #fff;border-top-color:#357be3;border-radius:50%;animation:game-spin .8s linear infinite}.game-loading .btn{margin-top:8px}@keyframes game-spin{to{transform:rotate(360deg)}}.learning-card{position:absolute;z-index:5;top:18px;left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 190px));padding:8px 12px 11px;border:3px solid #fff;border-radius:23px;background:#fffffff2;box-shadow:0 8px 22px #0d497a2b;text-align:center;color:#173c70}.learning-card>small{display:block;font-size:9px;letter-spacing:1.3px;font-weight:1000;color:#567aa1;margin-bottom:5px}.learning-card-row{display:flex;align-items:center;justify-content:center;gap:12px}.learning-icon{font-size:34px;line-height:1}.learning-words{display:grid;min-width:160px;line-height:1.12}.learning-words strong{font-family:'Noto Sans SC',system-ui,sans-serif;font-size:35px;letter-spacing:0}.learning-words b{font-size:13px;color:#347fd0;margin-top:2px}.learning-words span{font-size:13px;font-weight:900;color:#243a5e;margin-top:4px}.learning-words em{font-family:'Noto Naskh Arabic',system-ui,sans-serif;font-style:normal;font-size:16px}.learning-words i{font-style:normal;color:#e0a82a;margin:0 5px}.learning-audios{display:flex;gap:6px}.learning-audio{width:42px;height:42px;border:0;border-radius:50%;background:linear-gradient(180deg,#46a7ff,#1671db);box-shadow:0 3px 0 #0e54aa;color:white;font-size:11px;font-weight:1000;display:grid;place-items:center}.learning-audio:first-child{font-size:19px}.answer-gates{--gate-count:3;position:absolute;z-index:4;left:32%;right:2.5%;bottom:18%;display:grid;grid-template-columns:repeat(var(--gate-count),minmax(0,1fr));align-items:end;gap:12px}.answer-gate{position:relative;min-width:0;min-height:150px;padding:45px 8px 18px;border:4px solid #ffe69b;border-bottom:10px solid #cb8d26;border-radius:58px 58px 18px 18px;background:linear-gradient(180deg,#fff7c7 0,#ffdf65 18%,#ffc62c99 19%,#fff5c9d9 100%);box-shadow:inset 0 0 0 4px #ffffff9c,0 8px 0 #996622,0 12px 24px #173e5938;color:#173e6c;font-weight:1000;transition:transform .16s,filter .16s}.answer-gate:nth-child(even){border-color:#bdefff;border-bottom-color:#278ac2;background:linear-gradient(180deg,#eefdff 0,#9be8ff 18%,#4cc7f099 19%,#effdffd9 100%);box-shadow:inset 0 0 0 4px #ffffffa8,0 8px 0 #176d9f,0 12px 24px #173e5938}.answer-gate:hover,.answer-gate:focus-visible{transform:translateY(-6px);filter:brightness(1.06)}.answer-gate:active{transform:translateY(2px)}.gate-sign{position:absolute;left:5px;right:5px;top:9px;min-height:34px;padding:6px 4px;border:2px solid #fff;border-radius:11px;background:#fff;box-shadow:0 3px 0 #d9a434;font-size:clamp(11px,1.35vw,16px);display:grid;place-items:center;line-height:1.1}.answer-gate:nth-child(even) .gate-sign{box-shadow:0 3px 0 #45a8d2}.answer-gate small{font-family:'Noto Naskh Arabic',system-ui,sans-serif;font-size:clamp(12px,1.25vw,17px);line-height:1.35;display:block}.answer-gate i{position:absolute;left:-8px;right:-8px;bottom:-17px;height:20px;border-radius:50%;background:#7a5325;box-shadow:0 7px 0 #4c7c4f,0 13px 0 #35663e;z-index:-1}.answer-gate.correct{animation:gate-correct .55s ease;background:linear-gradient(180deg,#efffd8,#75e18c);border-color:#caffb9;filter:brightness(1.08)}.answer-gate.wrong{animation:gate-wrong .36s ease;background:linear-gradient(180deg,#fff1ee,#ff8e88);border-color:#ffd0cb}@keyframes gate-correct{50%{transform:translateY(-18px) scale(1.05)}}@keyframes gate-wrong{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}.adventure-feedback{position:absolute;z-index:8;left:50%;top:34%;transform:translate(-50%,-15px) scale(.92);opacity:0;pointer-events:none;width:min(420px,calc(100% - 40px));padding:13px 18px;border:3px solid white;border-radius:20px;background:#25345de8;color:white;text-align:center;box-shadow:0 10px 28px #10284745;transition:.2s}.adventure-feedback.visible{opacity:1;transform:translate(-50%,0) scale(1)}.adventure-feedback.success{background:#15866fed}.adventure-feedback.try-again{background:#ce5a54ed}.adventure-feedback b,.adventure-feedback span{display:block}.adventure-feedback b{font-size:19px}.adventure-feedback span{font-size:13px;margin-top:3px}.adventure-feedback em{font-family:'Noto Naskh Arabic',system-ui,sans-serif;font-style:normal;font-size:16px}.integrated-controls{position:absolute;z-index:7;left:14px;right:14px;bottom:11px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px;pointer-events:none}.integrated-controls .control-group,.integrated-controls .control,.integrated-controls .play-tip{pointer-events:auto}.integrated-controls .control{width:66px;height:62px;border:4px solid white;border-bottom:7px solid #1554a7;border-radius:50%;background:linear-gradient(180deg,#4aa5ff,#1268d2);color:white;box-shadow:0 6px 15px #0d315c42;font-size:29px}.integrated-controls .control.action{width:92px;height:72px;border-color:white;border-bottom-color:#b85511;background:linear-gradient(180deg,#ffad4f,#f16a20);font-size:15px}.integrated-controls .control.pressed{transform:translateY(4px);border-bottom-width:3px}.play-tip{align-self:center;border:2px solid #fff;background:#123d6ebd;color:#fff;border-radius:30px;padding:8px 14px;font-size:11px;font-weight:900;text-align:center;backdrop-filter:blur(5px)}.integrated-stage.is-paused .answer-gates,.integrated-stage.is-paused .integrated-controls,.integrated-stage.is-paused .learning-card{pointer-events:none}.jet .learning-words strong,.english .learning-words strong{font-family:'Nunito',system-ui,sans-serif;font-size:27px}.jet .answer-gate{border-color:#bdefff;border-bottom-color:#278ac2;background:linear-gradient(180deg,#effdff,#7cdbfa)}.english .answer-gate{border-color:#ead4ff;border-bottom-color:#7949b5;background:linear-gradient(180deg,#fdf8ff,#caa8f0)}

@media(max-width:760px){.adventure-page{padding:0;display:block}.adventure-frame{width:100%;height:100dvh;border:0;border-radius:0}.adventure-bar{height:58px;padding:6px 8px;gap:7px}.adventure-round-button{width:44px;height:44px;min-width:44px;font-size:20px}.adventure-logo{min-width:42px}.adventure-logo>span{width:39px;height:39px;border-radius:13px;font-size:16px}.adventure-logo b{display:none}.adventure-level{min-width:0;flex:1;padding:5px 8px;border-radius:13px;overflow:hidden}.adventure-level small{font-size:7px}.adventure-level strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.adventure-stars{min-width:auto;font-size:16px;letter-spacing:0}.integrated-stage{height:calc(100dvh - 58px);min-height:0}.learning-card{top:8px;width:calc(100% - 18px);padding:6px 8px 8px;border-radius:17px}.learning-card>small{font-size:7px;margin-bottom:3px}.learning-card-row{gap:7px}.learning-icon{font-size:25px}.learning-words{min-width:118px}.learning-words strong{font-size:29px}.jet .learning-words strong,.english .learning-words strong{font-size:22px}.learning-words b{font-size:11px}.learning-words span{font-size:11px}.learning-words em{font-size:14px}.learning-audios{gap:4px}.learning-audio{width:35px;height:35px;font-size:9px}.learning-audio:first-child{font-size:16px}.answer-gates{left:18%;right:2%;bottom:22%;gap:6px}.answer-gate{min-height:118px;padding:39px 3px 12px;border-width:3px;border-bottom-width:7px;border-radius:36px 36px 13px 13px}.gate-sign{top:7px;left:2px;right:2px;min-height:31px;font-size:10px;padding:5px 2px}.answer-gate small{font-size:11px}.adventure-feedback{top:31%;padding:10px 13px}.adventure-feedback b{font-size:16px}.adventure-feedback span{font-size:11px}.integrated-controls{left:7px;right:7px;bottom:7px}.integrated-controls .control{width:57px;height:55px;font-size:25px;border-width:3px;border-bottom-width:6px}.integrated-controls .control.action{width:72px;height:62px;font-size:12px}.integrated-controls .control-group{gap:6px}.play-tip{font-size:9px;padding:6px 9px;max-width:145px}.game-loading{font-size:13px}}
@media(max-width:390px){.adventure-stars{font-size:14px}.answer-gates{left:14%;bottom:23%}.answer-gate{min-height:108px}.learning-icon{display:none}.learning-words strong{font-size:27px}.learning-audio{width:33px;height:33px}.play-tip{display:none}}
@media(max-height:620px) and (orientation:landscape){.adventure-page{padding:0}.adventure-frame{height:100dvh;width:100%;max-width:none;border:0;border-radius:0}.adventure-bar{height:50px;padding:4px 10px}.adventure-round-button{width:40px;height:40px;min-width:40px}.adventure-logo>span{width:37px;height:37px}.adventure-level{padding:4px 16px}.integrated-stage{height:calc(100dvh - 50px);min-height:0}.learning-card{top:6px;width:min(470px,calc(100% - 170px));padding:4px 9px 6px}.learning-card>small{display:none}.learning-words strong{font-size:27px}.learning-icon{font-size:25px}.learning-audio{width:34px;height:34px}.answer-gates{bottom:19%;left:34%}.answer-gate{min-height:105px;padding-top:37px}.integrated-controls .control{width:53px;height:50px}.integrated-controls .control.action{height:56px}.adventure-feedback{top:30%}}

/* Player characters and Super Admin QA */
.switch.three button{font-size:12px;padding:0 5px}.character-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.character-options>label{display:block;cursor:pointer}.character-options input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}.character-options span{min-height:112px;border:2px solid #e3def3;border-radius:17px;background:#faf8ff;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px}.character-options input:checked+span{border-color:var(--purple);background:#eee9ff;box-shadow:0 0 0 3px #7158ea1f}.mini-character{display:block;width:78px;height:88px;background:url('assets/actors.webp') no-repeat;background-size:200% 200%}.mini-character.boy{background-position:0 0}.mini-character.girl{background-position:0 100%}.character-options b{font-size:15px}textarea{width:100%;min-height:125px;resize:vertical;border:1.5px solid #e2dfed;border-radius:13px;background:#fcfbff;padding:13px 15px;color:var(--ink);font:inherit}.qa-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.qa-level{min-height:104px;border:1px solid var(--line);border-radius:17px;background:#faf9ff;padding:15px;text-align:left;color:var(--ink)}.qa-level:hover{border-color:var(--purple);transform:translateY(-2px)}.qa-level span{display:inline-block;background:#e9e3ff;color:var(--purple);border-radius:8px;padding:4px 7px;font-size:10px;font-weight:1000}.qa-level b,.qa-level small{display:block}.qa-level b{font-size:14px;margin:9px 0 4px}.qa-level small{color:var(--muted);font-size:10px}.admin-two{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.bug-reports{display:grid;gap:9px;max-height:420px;overflow:auto}.bug-report{border:1px solid var(--line);border-radius:13px;padding:12px;background:#fbfaff}.bug-report>div{display:flex;justify-content:space-between;gap:10px}.bug-report b{font-size:11px;color:var(--purple)}.bug-report small{font-size:10px;color:var(--muted)}.bug-report p{font-size:12px;line-height:1.45;margin:7px 0 0}

/* Distinct mini game missions */
.gate-object{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);font-size:31px;filter:drop-shadow(0 4px 3px #173a4930)}.mission-balloons .answer-gates{bottom:30%;align-items:center}.mission-balloons .answer-gate{min-height:132px;padding:42px 7px 24px;border:4px solid #fff;border-bottom-width:4px;border-radius:50%;background:radial-gradient(circle at 35% 24%,#fff8,#ff78a8 28%,#e23f84 78%);box-shadow:inset -10px -12px 20px #8a1e6040,0 12px 22px #234f7440;animation:balloon-float 2.2s ease-in-out infinite}.mission-balloons .answer-gate:nth-child(even){background:radial-gradient(circle at 35% 24%,#fff8,#62d8ff 28%,#238ecb 78%)}.mission-balloons .answer-gate:nth-child(3n){background:radial-gradient(circle at 35% 24%,#fff8,#ffd95f 28%,#e39822 78%)}.mission-balloons .answer-gate i{left:50%;right:auto;bottom:-40px;width:2px;height:40px;border-radius:0;background:#694c60;box-shadow:none}.mission-balloons .gate-object{top:12%;font-size:25px}.mission-balloons .gate-sign{top:40px;background:#ffffffef}.mission-balloons .answer-gate:nth-child(2){animation-delay:-.5s}.mission-balloons .answer-gate:nth-child(3){animation-delay:-1s}.mission-balloons .answer-gate:nth-child(4){animation-delay:-1.5s}.mission-balloons .answer-gate.correct{animation:balloon-pop .5s ease forwards}@keyframes balloon-float{50%{transform:translateY(-12px) rotate(1deg)}}@keyframes balloon-pop{70%{transform:scale(1.16)}100%{transform:scale(.05);opacity:0}}
.mission-orchard .answer-gate{min-height:125px;border-radius:50% 50% 42% 42%;border-color:#e9ffba;border-bottom-color:#6e3f1e;background:radial-gradient(circle at 35% 30%,#ffe7a2,#ff765e 32%,#c9342e 75%);box-shadow:inset -12px -10px 18px #75181145,0 9px 0 #65401f}.mission-orchard .answer-gate:nth-child(even){background:radial-gradient(circle at 35% 30%,#ffffc2,#ffbb3d 35%,#e67221 78%)}.mission-orchard .gate-sign{top:35px}.mission-orchard .gate-object{top:11%;font-size:29px}.mission-orchard .answer-gate i{background:#754a25;box-shadow:0 7px 0 #4e8b3b}
.mission-fire .answer-gates{bottom:24%}.mission-fire .answer-gate{min-height:108px;border-radius:24px 24px 10px 10px;border-color:#ffd87c;border-bottom-color:#582f25;background:linear-gradient(#5b5260,#2e2934);color:#fff;box-shadow:0 10px 0 #1d1920,0 0 25px #ff7b29aa}.mission-fire .gate-sign{background:#fff;color:#362536;box-shadow:0 3px 0 #ef7e32}.mission-fire .answer-gate small{color:#fff}.mission-fire .gate-object{top:53%;font-size:30px}.mission-fire .answer-gate i{background:#ff7131;box-shadow:0 7px 0 #7d2e24}
.mission-monster .answer-gates{left:28%;right:27%;bottom:16%}.mission-monster .answer-gate{min-height:100px;border-radius:25px 25px 45px 45px;border-color:#f4dfff;border-bottom-color:#6234a5;background:radial-gradient(circle at 50% 20%,#fff,#cf9dff 35%,#7041bf 82%);box-shadow:0 8px 0 #432575,0 0 26px #bd83ff99}.mission-monster .gate-sign{top:10px}.mission-monster .answer-gate small{margin-top:30px;color:#fff}.mission-monster .gate-object{top:62%;font-size:28px}.mission-monster .answer-gate i{display:none}
.mission-puzzle .answer-gates{bottom:23%}.mission-puzzle .answer-gate{min-height:112px;border-radius:18px;border-color:#fff2b0;border-bottom-color:#84601e;background:linear-gradient(135deg,#ffe778,#eeb23e);box-shadow:0 8px 0 #9a6a20;clip-path:polygon(0 0,40% 0,46% 9%,54% 9%,60% 0,100% 0,100% 40%,91% 46%,91% 54%,100% 60%,100% 100%,60% 100%,54% 91%,46% 91%,40% 100%,0 100%,0 60%,9% 54%,9% 46%,0 40%)}.mission-puzzle .answer-gate:nth-child(even){background:linear-gradient(135deg,#9cecff,#3fb5dd)}.mission-puzzle .gate-object{top:60%}.mission-puzzle .answer-gate i{display:none}
.mission-rings .answer-gate{min-height:132px;border:12px solid #ffe36c;border-bottom-width:12px;border-radius:50%;background:#42c9ff3d;box-shadow:inset 0 0 25px #fff,0 0 25px #ffd95f}.mission-rings .answer-gate:nth-child(even){border-color:#77ecff}.mission-rings .gate-sign{top:38px}.mission-rings .gate-object{top:12%;font-size:24px}.mission-rings .answer-gate i{display:none}.mission-storm .answer-gate{background:linear-gradient(#f9fdff,#809db2);border-color:#e7f7ff;border-bottom-color:#354b62;box-shadow:0 8px 0 #2b3c4f,0 0 24px #ffe96f88}.mission-storm .gate-object{font-size:34px}.mission-landing .answer-gate{border-radius:50%;min-height:120px;background:radial-gradient(circle,#fff 0 17%,#ff5d5d 18% 34%,#fff 35% 52%,#48a8e8 53%);border-color:#fff;border-bottom-color:#255d88}.mission-landing .answer-gate i{display:none}.mission-magic .answer-gate{min-height:115px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff,#f0c8ff 22%,#884ed6 70%);border-color:#f7e9ff;border-bottom-color:#4a237e;box-shadow:0 8px 0 #4a237e,0 0 35px #d79aff}.mission-magic .gate-object{font-size:28px}.mission-magic .answer-gate i{display:none}

@media(max-width:900px){.qa-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-two{grid-template-columns:1fr}}
@media(max-width:760px){.character-options span{min-height:96px}.mini-character{width:63px;height:72px}.qa-grid{grid-template-columns:1fr 1fr;gap:8px}.qa-level{padding:11px;min-height:96px}.mission-balloons .answer-gates{bottom:34%;left:20%}.mission-balloons .answer-gate{min-height:98px}.mission-orchard .answer-gate,.mission-rings .answer-gate,.mission-landing .answer-gate,.mission-magic .answer-gate{min-height:94px}.mission-monster .answer-gates{left:17%;right:23%;bottom:20%}.gate-object{font-size:23px}.mission-fire .answer-gates,.mission-puzzle .answer-gates{bottom:25%}}
