:root{--ink:#20304e;--muted:#75819a;--blue:#4385ff;--blue2:#265ed3;--purple:#7a65f6;--green:#49c96b;--yellow:#ffd451;--pink:#ff7bac;--card:#fff;--shadow:0 15px 36px rgba(44,74,126,.15)}
*{box-sizing:border-box}html{background:#eaf3ff}body{margin:0;min-height:100vh;font-family:Inter,ui-rounded,"SF Pro Rounded",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:radial-gradient(circle at top,#dff4ff,#f7fbff 58%,#edf5ff);overscroll-behavior:none}button,input{font:inherit}.app-shell{width:min(100%,560px);min-height:100vh;margin:auto;background:linear-gradient(#f7fbff,#f1f7ff);position:relative;overflow:hidden;box-shadow:0 0 55px rgba(40,70,120,.12)}.main{padding:18px 18px 105px}.start-main{padding-bottom:34px}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);position:sticky;top:0;z-index:20;border-bottom:1px solid #eaf0f7}.brand-btn{display:flex;align-items:center;gap:9px;border:0;background:none;color:#2458b8;cursor:pointer;font-weight:950}.mini-logo{width:36px;height:36px;border-radius:12px;background:linear-gradient(145deg,#ffd84c,#ff9d45);color:#fff;display:grid;place-items:center;font-size:15px;font-weight:1000;box-shadow:0 5px 12px #ffbf5470}.stats{display:flex;gap:7px}.pill{background:#fff;border:1px solid #e8edf5;border-radius:999px;padding:7px 10px;font-weight:900;box-shadow:0 4px 10px #6480a512}.welcome-hero{height:235px;margin:-18px -18px 0;padding:28px 22px;background:linear-gradient(155deg,#65c8ff 0%,#5f91ff 54%,#7a70f5 100%);position:relative;overflow:hidden;text-align:center;color:#fff}.welcome-hero:after{content:"";position:absolute;left:-10%;right:-10%;bottom:-74px;height:135px;border-radius:50%;background:#f4f9ff}.logo-mark{font-size:44px;line-height:.86;font-weight:1000;letter-spacing:-2.5px;text-shadow:0 4px 0 #2359ac,0 7px 15px #2853a460;position:relative;z-index:2;color:#ffe16d}.logo-mark span{font-size:53px;color:#fff}.welcome-hero p{position:relative;z-index:2;background:#7452de;display:inline-block;padding:8px 15px;border-radius:999px;font-weight:900;margin:14px 0}.sky-dot{position:absolute;border-radius:50%;background:#fff5;animation:floaty 5s ease-in-out infinite}.d1{width:60px;height:22px;left:18px;top:45px}.d2{width:75px;height:24px;right:15px;top:27px;animation-delay:1.3s}.welcome-card{position:relative;z-index:4;margin-top:-13px;background:#fff;border-radius:28px;padding:18px;box-shadow:var(--shadow)}.section-title{margin:22px 0 12px;font-size:21px}.centered{text-align:center;margin:2px 0 14px}.mode-switch{display:grid;grid-template-columns:1fr 1fr;padding:5px;background:#edf3fb;border-radius:17px;gap:5px}.mode-switch button{border:0;padding:11px 7px;border-radius:13px;background:transparent;font-weight:900;color:#66758d;cursor:pointer}.mode-switch button.active{background:#fff;color:#285db6;box-shadow:0 5px 13px #48648918}.character-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px;margin-top:13px}.character{min-height:160px;border:3px solid transparent;background:#fff;border-radius:23px;padding:10px;box-shadow:0 8px 20px #4b6b9318;position:relative;cursor:pointer;transition:.2s}.character:hover{transform:translateY(-2px)}.character .avatar{height:102px;width:102px;margin:auto;border-radius:28px;overflow:hidden;background:linear-gradient(145deg,color-mix(in srgb,var(--hero),#fff 82%),#fff);border:4px solid color-mix(in srgb,var(--hero),#fff 55%)}.character .avatar svg,.player-avatar svg,.profile-avatar svg{width:100%;height:100%;display:block}.character strong{display:block;margin-top:8px;font-size:13px}.character.selected{border-color:var(--hero);transform:translateY(-2px)}.check{position:absolute;right:7px;top:7px;background:var(--hero);color:#fff;width:27px;height:27px;border-radius:50%;display:grid;place-items:center;font-weight:1000}.primary,.secondary{border:0;border-radius:18px;padding:15px 16px;font-weight:1000;cursor:pointer}.primary{width:100%;background:linear-gradient(#62dc7d,#3fbc60);color:#fff;font-size:18px;box-shadow:0 7px 0 #2b9a48,0 12px 25px #3eae5f40;margin-top:17px}.primary:active{transform:translateY(3px);box-shadow:0 4px 0 #2b9a48}.secondary{background:#e9f1ff;color:#3166c1}.secondary.full{width:100%;margin-top:12px}.text-btn{display:block;margin:17px auto 0;border:0;background:none;color:#5271a4;font-weight:800;cursor:pointer}.player-card{background:linear-gradient(135deg,#fff,#f4f7ff);border-radius:24px;padding:15px;display:grid;grid-template-columns:74px 1fr 56px;gap:12px;align-items:center;box-shadow:var(--shadow)}.player-avatar,.profile-avatar{width:72px;height:72px;border-radius:23px;overflow:hidden;background:color-mix(in srgb,var(--hero),white 80%);border:4px solid color-mix(in srgb,var(--hero),white 55%)}.player-card h2{font-size:18px;margin:2px 0 6px}.eyebrow{font-size:10px;font-weight:1000;letter-spacing:1.2px;color:#6580af}.xp-bar,.progress,.game-progress{height:9px;background:#e9eef6;border-radius:99px;overflow:hidden}.xp-bar i,.progress i,.game-progress i{height:100%;display:block;border-radius:99px;background:linear-gradient(90deg,#5ad16f,#ffd44e);transition:width .35s}.player-card small{font-size:10px;color:#8290a5}.streak{text-align:center;background:#fff6e7;border-radius:17px;padding:7px}.streak b,.streak small{display:block}.map-heading,.game-head,.mission-title,.course-head{display:flex;align-items:center;justify-content:space-between}.map-heading{margin:24px 2px 12px}.map-heading h2,.page-title h1{margin:2px 0 0}.round-btn,.audio-btn{width:43px;height:43px;border:0;border-radius:50%;background:#fff;color:#3973da;box-shadow:0 6px 16px #46668e22;cursor:pointer;font-weight:900}.world-map{display:grid;gap:14px}.world{width:100%;border:0;background:#fff;border-radius:28px;padding:0;display:grid;grid-template-columns:125px 1fr 32px;align-items:center;gap:0;text-align:left;box-shadow:var(--shadow);cursor:pointer;overflow:hidden;min-height:118px;transition:.2s}.world:hover{transform:translateY(-2px)}.world-scene{align-self:stretch;min-height:118px;position:relative;overflow:hidden;background:linear-gradient(#8fd4ff,#ddf4ff)}.world-scene:after{content:"";position:absolute;left:-20px;right:-20px;bottom:-42px;height:92px;border-radius:50%;background:#71cc73}.world-scene .sun{position:absolute;width:30px;height:30px;border-radius:50%;background:#ffe26b;right:15px;top:16px;box-shadow:0 0 0 8px #ffe26b33}.world-scene .mount{position:absolute;width:75px;height:75px;transform:rotate(45deg);background:#78a4d9;bottom:-27px;left:8px;border-radius:12px}.world-scene .mount.m2{left:55px;background:#5d8fc9;bottom:-37px}.world-scene .art{position:absolute;z-index:3;font-size:52px;left:35px;bottom:20px;filter:drop-shadow(0 6px 6px #264a6530);animation:floaty 3.7s ease-in-out infinite}.world-1 .world-scene{background:linear-gradient(#d8c4ff,#f5eaff)}.world-1 .world-scene:after{background:#8c6ad6}.world-2 .world-scene{background:linear-gradient(#0f235e,#5c55c6)}.world-2 .world-scene:after{background:#6a62c9}.world-3 .world-scene{background:linear-gradient(#68bdf6,#d5f4ff)}.world-3 .world-scene:after{background:#9ab5c6}.world-4 .world-scene{background:linear-gradient(#40cfe1,#9ef3ef)}.world-4 .world-scene:after{background:#28aead}.world-info{padding:14px 12px}.world h3{margin:4px 0 2px;font-size:20px}.world p{margin:0 0 8px;color:var(--muted);font-size:12px}.badge{font-size:11px;background:#f2f5fa;border-radius:99px;padding:5px 8px;font-weight:900}.world-arrow{font-size:30px;color:#9aa7ba}.world.locked{filter:grayscale(.45);opacity:.58}.back{border:0;background:#e8f0ff;color:#3164bd;border-radius:14px;padding:10px 13px;font-weight:900;cursor:pointer}.world-banner{margin-top:15px;border-radius:28px;background:linear-gradient(135deg,#5fc7ff,#7666ef);color:#fff;padding:20px;display:flex;gap:15px;align-items:center;box-shadow:var(--shadow);overflow:hidden;position:relative}.world-banner:after{content:"";position:absolute;width:150px;height:150px;border-radius:50%;background:#ffffff18;right:-40px;top:-55px}.world-banner-icon{font-size:62px;z-index:1}.world-banner h1{margin:2px 0}.world-banner p{margin:0;opacity:.9}.lesson-list{display:grid;gap:10px}.lesson-row{border:0;background:#fff;border-radius:20px;padding:13px;display:grid;grid-template-columns:48px 1fr auto;gap:11px;align-items:center;text-align:left;box-shadow:0 8px 22px #4e6b8d16;cursor:pointer}.lesson-row.done{background:#f0fff3}.lesson-row.locked{opacity:.55}.lesson-number{width:44px;height:44px;border-radius:14px;background:#e8f1ff;color:#376bc4;display:grid;place-items:center;font-weight:1000}.lesson-row.done .lesson-number{background:#55cd70;color:#fff}.lesson-row b,.lesson-row small{display:block}.lesson-row small{color:var(--muted);margin-top:3px}.lesson-reward{font-size:12px;font-weight:900;background:#fff7df;padding:6px 8px;border-radius:99px}.game-shell{background:linear-gradient(#eff6ff,#f7f9ff)}.game-head{gap:12px}.game-progress{flex:1;height:11px}.heart{font-size:20px}.mission-card{background:#fff;border-radius:28px;padding:18px;margin-top:15px;box-shadow:var(--shadow)}.mission-title{gap:12px;align-items:flex-start}.mission-title h1{font-size:25px;margin:4px 0 18px}.audio-btn{font-size:20px;background:#e7f1ff;box-shadow:none}.scene-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding:14px;background:linear-gradient(#fff1d6,#f7e7cb);border-radius:23px}.scene-item{min-height:132px;border:3px solid transparent;border-radius:20px;background:#fff;box-shadow:0 8px 15px #8a6e4020;cursor:pointer}.scene-item span{display:block;font-size:64px}.scene-item small{font-weight:900;color:#68768d}.scene-item.correct,.answer-btn.correct{border-color:#55cf72;background:#ecfff1}.scene-item.wrong,.answer-btn.wrong{border-color:#ff6c6c;animation:shake .35s}.question-picture{text-align:center;font-size:92px;padding:20px 0}.choice-grid,.token-grid{display:grid;gap:10px}.choice-grid{grid-template-columns:repeat(2,1fr)}.answer-btn,.token{border:2px solid #dde6f3;background:#fff;border-radius:17px;padding:14px 8px;font-weight:1000;color:#34435c;cursor:pointer}.answer-btn.correct{color:#249143}.answer-btn.wrong{color:#d94d4d}.feedback{margin-top:14px;padding:14px;border-radius:17px;background:#f2f6fb;text-align:center;font-weight:900;min-height:50px}.feedback.success{background:#e9faee;color:#258844}.feedback.error{background:#fff0f0;color:#c64a4a}.speak-stage{text-align:center}.speak-stage .question-picture{padding:8px}.wave{font-size:38px;letter-spacing:4px;color:#72a4fa;margin:2px 0 8px}.mic{border:0;border-radius:50%;background:linear-gradient(#64a5ff,#3477e4);color:#fff;box-shadow:0 8px 20px #3778df45;cursor:pointer}.big-mic{width:84px;height:84px;font-size:38px}.mic.listening{animation:pulse 1s infinite}.sentence-area{min-height:88px;border:2px dashed #cdd9ea;border-radius:18px;padding:18px;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;color:#8a96a8;margin-bottom:12px}.sentence-area b{background:#eaf2ff;color:#3169c8;padding:8px 11px;border-radius:12px}.token-grid{grid-template-columns:repeat(2,1fr)}.token.used{opacity:.35}.match-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.match-card{padding:14px 10px;border:2px solid #dfe7f2;background:#fff;border-radius:17px;font-weight:900;cursor:pointer}.match-card.active{border-color:#6b8dff;background:#edf2ff}.match-card.matched{border-color:#52c86d;background:#edfff2;color:#278942}.listen-box{text-align:center;padding:20px;border-radius:22px;background:linear-gradient(145deg,#eef5ff,#f7f2ff)}.listen-big{font-size:72px}.listen-word{font-size:25px;font-weight:1000;margin:10px 0}.hidden{display:none!important}.bottom-nav{position:absolute;left:0;right:0;bottom:0;height:82px;background:rgba(255,255,255,.97);border-top:1px solid #e6edf6;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 6px max(8px,env(safe-area-inset-bottom));z-index:15}.nav-btn{border:0;background:none;color:#77859b;font-size:11px;font-weight:800;cursor:pointer}.nav-btn i{display:block;font-style:normal;font-size:24px;margin-bottom:2px}.nav-btn.active{color:#3671df}.page-title{padding:8px 0 16px}.page-title p{color:var(--muted)}.course-progress,.wallet,.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.course-progress>div,.wallet>div,.profile-stats>div{background:#fff;border-radius:18px;padding:13px 8px;text-align:center;box-shadow:0 7px 18px #496b9012}.course-progress b,.course-progress span,.wallet b,.wallet span,.profile-stats b,.profile-stats span{display:block}.course-progress b,.wallet b,.profile-stats b{font-size:20px}.course-progress span,.wallet span,.profile-stats span{font-size:10px;color:var(--muted)}.course-block{background:#fff;border-radius:22px;padding:15px;margin-top:12px;box-shadow:var(--shadow)}.course-block.disabled-block{opacity:.58}.course-head{justify-content:flex-start;gap:12px}.course-head>span{font-size:36px}.course-head div{flex:1}.course-head h3{margin:0}.course-head small{color:var(--muted)}.lock-note{text-align:center;color:#8591a3;padding-top:12px;font-size:12px}.reward-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.reward-card{background:#fff;border-radius:22px;padding:18px;text-align:center;box-shadow:var(--shadow)}.reward-card>div{font-size:50px}.reward-card b,.reward-card small{display:block}.reward-card small{color:#398f50;margin-top:5px}.reward-card.locked{filter:grayscale(.8);opacity:.55}.profile-card{text-align:center;background:#fff;border-radius:28px;padding:24px;box-shadow:var(--shadow)}.profile-avatar{width:116px;height:116px;margin:auto;border-radius:34px}.profile-card h1{margin:10px 0 5px}.level-chip{display:inline-block;background:#e9f1ff;color:#3165be;padding:7px 12px;border-radius:999px;font-weight:900}.profile-stats{margin-top:18px}.settings-row{width:100%;border:0;background:#fff;border-radius:20px;margin-top:12px;padding:14px;display:grid;grid-template-columns:42px 1fr 20px;align-items:center;text-align:left;box-shadow:0 8px 22px #4e6b8d13;cursor:pointer}.settings-row>span{font-size:25px}.settings-row b,.settings-row small{display:block}.settings-row small{color:var(--muted);margin-top:3px}.settings-row i{font-size:28px;color:#9ca8ba}.toast{position:fixed;left:50%;bottom:100px;transform:translateX(-50%);background:#20304eea;color:#fff;padding:12px 17px;border-radius:999px;font-weight:900;z-index:100;box-shadow:0 8px 25px #0003;animation:toastin .25s}.confetti{position:fixed;width:10px;height:16px;border-radius:3px;z-index:200;pointer-events:none;animation:confetti 1.2s linear forwards}.next-btn{margin-top:15px}.name-box{display:flex;gap:8px;margin-top:12px}.name-box input{flex:1;border:2px solid #e1e8f2;border-radius:15px;padding:12px 14px;outline:none}.name-box input:focus{border-color:#78a3ff}.tiny-note{font-size:11px;color:var(--muted);text-align:center;margin:10px 0 0}
@keyframes floaty{50%{transform:translateY(-6px)}}@keyframes pulse{50%{transform:scale(1.1);box-shadow:0 0 0 14px #4a8eff22}}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}@keyframes toastin{from{opacity:0;transform:translate(-50%,10px)}}@keyframes confetti{to{transform:translate(var(--x),110vh) rotate(650deg);opacity:.2}}
@media(max-width:420px){.character-grid{grid-template-columns:1fr 1fr}.character .avatar{width:88px;height:88px}.world{grid-template-columns:108px 1fr 28px}.choice-grid{grid-template-columns:1fr 1fr}.logo-mark{font-size:39px}.logo-mark span{font-size:48px}}

/* ===== English Quest v4 visual refresh ===== */
body{background:linear-gradient(180deg,#dff4ff 0%,#eef8ff 48%,#f8fbff 100%)}
.app-shell{background:linear-gradient(180deg,#eef9ff 0%,#f9fbff 100%);border-left:1px solid #d8e7f8;border-right:1px solid #d8e7f8}
.start-main{padding:0 14px 34px}
.welcome-hero{height:245px;margin:0 -14px 0;background:linear-gradient(180deg,#74d4ff 0%,#5fb8ff 55%,#8ad9ff 100%)}
.welcome-hero:before{content:"★";position:absolute;left:32px;top:25px;color:#ffe259;font-size:30px;text-shadow:0 3px 0 #e9ad2d;animation:floaty 3s ease-in-out infinite}
.welcome-hero:after{bottom:-88px;height:160px;background:#fff}
.logo-mark{font-size:48px;line-height:.82;text-shadow:0 5px 0 #214b9d,0 8px 18px #2658aa66;color:#ffd94d;transform:rotate(-2deg)}
.logo-mark span{font-size:58px;color:#20a8ff;text-shadow:0 5px 0 #184eaf,0 8px 18px #2658aa66}
.welcome-card{margin-top:-23px;border-radius:30px;padding:16px 14px 20px;box-shadow:0 18px 40px rgba(43,85,148,.18)}
.hero-group{margin:12px 0 16px;padding:12px;border-radius:24px;background:linear-gradient(135deg,#eaf6ff,#f7fbff);border:1px solid #cfe7ff}
.hero-group.girls{background:linear-gradient(135deg,#fff0f7,#fff8fb);border-color:#ffd3e6}
.hero-group-title{display:flex;align-items:center;gap:8px;margin:0 2px 10px;font-size:18px;color:#2870ca}.hero-group.girls .hero-group-title{color:#e85599}
.character-grid.v4{grid-template-columns:repeat(4,1fr);gap:8px;margin:0}
.character-grid.v4 .character{min-height:125px;padding:7px 5px;border-radius:18px}
.character-grid.v4 .character .avatar{width:66px;height:76px;border-radius:18px;border-width:3px}
.character-grid.v4 .character strong{font-size:10.5px;line-height:1.05;min-height:25px}
.character-grid.v4 .check{width:22px;height:22px;font-size:12px;right:4px;top:4px}
.name-box{margin-top:15px}.name-box label{display:block;text-align:center;font-size:12px;font-weight:900;margin-bottom:6px}.name-box input{width:100%;border:2px solid #cfdff2;border-radius:15px;padding:12px 14px;outline:none;background:#fff}.name-box input:focus{border-color:#66a7ff;box-shadow:0 0 0 4px #66a7ff22}
.primary{background:linear-gradient(180deg,#77e34e,#41c915);box-shadow:0 7px 0 #2e9e0e,0 12px 26px #45bd2638}
.tiny-note{text-align:center;font-size:11px;line-height:1.35;color:#73839a;margin:14px 10px 0}

/* adventure map */
.adventure-map{position:relative;min-height:690px;margin:12px -8px 0;border-radius:34px;overflow:hidden;background:linear-gradient(#66cfff 0%,#63c8fa 38%,#47b7e8 100%);box-shadow:0 18px 45px #2c77ad35 inset,0 15px 35px #4a79a325}
.adventure-map:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 12%,#fff8 0 3%,transparent 3.4%),radial-gradient(circle at 82% 24%,#fff7 0 2.2%,transparent 2.6%),linear-gradient(115deg,transparent 0 72%,#ffffff22 72% 74%,transparent 74%)}
.map-cloud{position:absolute;width:100px;height:28px;border-radius:50px;background:#ffffffb8;filter:blur(.2px)}.map-cloud.c1{left:-25px;top:46px}.map-cloud.c2{right:-30px;top:155px}.map-cloud.c3{left:170px;bottom:68px;opacity:.65}
.map-path{position:absolute;inset:0;pointer-events:none}.map-path svg{width:100%;height:100%}.map-path path{stroke:#fff;stroke-width:7;stroke-linecap:round;stroke-dasharray:3 16;fill:none;opacity:.95}
.island{position:absolute;width:170px;height:128px;border:0;background:transparent;cursor:pointer;transition:.25s;z-index:3}.island:hover{transform:translateY(-4px) scale(1.02)}.island.locked{filter:grayscale(.6);opacity:.72}.island:disabled{cursor:not-allowed}
.island-base{position:absolute;left:15px;right:15px;bottom:17px;height:70px;border-radius:50% 50% 42% 42%;background:linear-gradient(#6dd05e,#369f4d);box-shadow:0 14px 0 #2d7a48,0 18px 24px #24618d55}.island-base:after{content:"";position:absolute;left:15px;right:15px;bottom:-9px;height:22px;border-radius:50%;background:#6f945d}
.island-art{position:absolute;left:0;right:0;top:2px;font-size:72px;text-align:center;filter:drop-shadow(0 8px 5px #24506945);animation:floaty 4s ease-in-out infinite}.island-label{position:absolute;left:18px;right:18px;bottom:0;background:linear-gradient(#7bd348,#49aa26);border:3px solid #fff7;color:#fff;border-radius:17px;padding:7px 5px 6px;text-align:center;font-weight:1000;font-size:14px;text-shadow:0 2px 0 #39822f;box-shadow:0 5px 0 #2e8128}.island-label small{display:block;font-size:11px;color:#fff9;margin-top:2px}
.island.pos-0{left:14px;top:40px}.island.pos-1{right:12px;top:155px}.island.pos-2{left:20px;top:300px}.island.pos-3{right:12px;top:420px}.island.pos-4{left:78px;top:545px;width:190px}
.island.pos-1 .island-base{background:linear-gradient(#88d46e,#4aa65b)}.island.pos-2 .island-base{background:linear-gradient(#a486d8,#6f50a9);box-shadow:0 14px 0 #523985,0 18px 24px #24618d55}.island.pos-3 .island-base{background:linear-gradient(#7058d8,#3b2b91);box-shadow:0 14px 0 #2f246f,0 18px 24px #24618d55}.island.pos-4 .island-base{background:linear-gradient(#38c9d6,#1793a9);box-shadow:0 14px 0 #116f83,0 18px 24px #24618d55}
.map-player{position:absolute;width:74px;height:74px;border-radius:50%;z-index:7;background:#fff;border:5px solid #61a8ff;box-shadow:0 8px 20px #234d7a55;overflow:hidden;left:238px;top:265px;animation:bob 2.2s ease-in-out infinite}.map-player svg{width:100%;height:100%}
.map-continue{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);z-index:8;width:62%;margin:0;background:linear-gradient(#29b7ff,#087be7);box-shadow:0 7px 0 #0654ad,0 12px 25px #075fae55;border:3px solid #fff7}
.map-mini-actions{display:flex;justify-content:space-between;position:absolute;left:14px;right:14px;bottom:22px;z-index:7}.map-mini{width:64px;height:64px;border:0;border-radius:18px;background:#fff9;backdrop-filter:blur(7px);font-size:31px;box-shadow:0 8px 18px #23527a33;position:relative}.map-mini span{position:absolute;right:-4px;top:-7px;background:#ef3c3c;color:#fff;border-radius:99px;font-size:11px;font-weight:1000;width:23px;height:23px;display:grid;place-items:center;border:2px solid #fff}
.topbar.v4{position:relative;border:0;background:linear-gradient(180deg,#eaf7ff,#f8fbff);height:auto;padding:12px 14px 5px}.topbar.v4 .brand-btn{display:none}.topbar.v4 .stats{width:100%;justify-content:center}.topbar.v4 .pill{padding:9px 14px;font-size:14px;border:2px solid #fff;box-shadow:0 5px 13px #33658d22}.map-title{text-align:center;padding:2px 0 7px}.map-title h1{margin:0;font-size:20px}.map-title small{color:#71839c;font-weight:700}

/* game polish */
.game-shell{background:linear-gradient(180deg,#a589ff 0,#e8e2ff 160px,#f7f9ff 420px)}
.game-shell .topbar{background:transparent;border:0;color:#fff}.game-shell .brand-btn{display:none}.game-shell .stats .pill{background:#ffffffdd}
.game-head{padding-top:4px}.game-head .round-btn{background:#ffffffdc;color:#6b50d8}.game-progress{height:14px;background:#ffffffad;border:3px solid #fff6}.game-progress i{background:linear-gradient(90deg,#ffd84f,#7fd44f)}
.mission-card{border:3px solid #fff;border-radius:30px;box-shadow:0 16px 32px #5f4b9b28}.mission-title h1{font-size:27px}.mission-title h1::first-letter{font-weight:1000}.audio-btn{background:linear-gradient(#8b69ff,#6f46e9);color:#fff}.scene-grid{padding:18px;background:linear-gradient(180deg,#fff4de,#f2d4aa);border:1px solid #e8c58f}.scene-item{background:linear-gradient(#fff,#fff8ed);border-radius:22px}.scene-item span{font-size:70px}.feedback.success{background:linear-gradient(90deg,#e9ffd9,#f8ffe9);border:2px solid #a7e67f;font-size:17px}.speak-stage{background:linear-gradient(#fff,#f3f6ff);border-radius:24px;padding:18px}.big-mic{background:linear-gradient(#31a7ff,#1766df);box-shadow:0 0 0 10px #2d8dff22,0 10px 25px #226ed055}
@keyframes bob{50%{transform:translateY(-7px)}}
@media(max-width:430px){.character-grid.v4 .character{min-height:118px}.character-grid.v4 .character .avatar{width:60px;height:70px}.character-grid.v4 .character strong{font-size:9.5px}.adventure-map{min-height:650px}.island{transform:scale(.92)}.island:hover{transform:translateY(-3px) scale(.94)}.island.pos-0{left:-2px}.island.pos-1{right:-4px}.island.pos-2{left:0}.island.pos-3{right:-2px}.island.pos-4{left:60px;top:520px}.map-player{left:58%;top:255px}}

/* v4.1 illustrated character artwork */
.hero-art{width:100%;height:100%;display:block;object-fit:cover;object-position:center top}
.character .avatar{background:#fff!important;padding:0!important}
.character-grid.v4 .character .avatar{width:78px;height:96px;border-radius:19px;box-shadow:0 5px 12px rgba(34,68,120,.16)}
.character-grid.v4 .character{min-height:151px;padding-top:8px}
.character-grid.v4 .character strong{font-size:11px;line-height:1.1;margin-top:7px}
.map-player .hero-art,.profile-avatar .hero-art,.player-avatar .hero-art{width:100%;height:100%;object-fit:cover;object-position:center top}
.map-player{background:#fff}
.profile-avatar,.player-avatar{background:#fff}
@media(max-width:430px){.character-grid.v4 .character .avatar{width:70px;height:88px}.character-grid.v4 .character{min-height:142px}}




/* v4.5 definitive */
.build-badge,.start-build-badge,.map-version{display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#263d73,#684ff0);color:#fff;border-radius:999px;font-weight:1000;box-shadow:0 5px 14px rgba(44,54,120,.25)}
.build-badge{padding:8px 12px;font-size:13px;white-space:nowrap}.start-build-badge{width:max-content;margin:-6px auto 12px;padding:8px 14px;font-size:14px}.map-version{vertical-align:middle;padding:5px 9px;font-size:11px;margin-left:6px}
.topbar.v4{display:flex!important;min-height:64px!important;height:auto!important;padding:10px 12px!important;position:relative!important}.topbar.v4 .brand-btn{display:none!important}.topbar.v4 .stats{width:100%!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important}
.map-main{padding-bottom:105px!important}.adventure-map{min-height:760px!important;margin:10px 0 0!important;overflow:hidden!important}.map-path svg{position:absolute;inset:0;width:100%;height:100%}.map-path path{fill:none;stroke:#fff;stroke-width:6;stroke-linecap:round;stroke-dasharray:8 16;opacity:.96}.island.locked{filter:none!important;opacity:.78!important}
.island.pos-0{left:14px!important;top:34px!important}.island.pos-1{right:10px!important;top:170px!important}.island.pos-2{left:18px!important;top:315px!important}.island.pos-3{right:10px!important;top:455px!important}.island.pos-4{left:78px!important;top:585px!important;width:190px!important}.map-player{left:54%!important;top:255px!important}
.map-actions-row{display:grid;grid-template-columns:64px minmax(0,1fr) 64px;align-items:center;gap:10px;margin-top:14px}.map-actions-row .map-mini{position:relative!important;width:64px!important;height:64px!important}.map-actions-row .map-continue{position:static!important;width:100%!important;margin:0!important;background:linear-gradient(#3ca8ff,#2d75ee)!important;box-shadow:0 7px 0 #2454b5,0 12px 25px rgba(58,126,235,.30)!important}
@media(max-width:430px){.build-badge{font-size:11px;padding:7px 9px}.topbar.v4 .stats{gap:5px!important}.adventure-map{min-height:710px!important}.island{transform:scale(.9)!important}.island.pos-0{left:-4px!important;top:26px!important}.island.pos-1{right:-7px!important;top:150px!important}.island.pos-2{left:-2px!important;top:282px!important}.island.pos-3{right:-7px!important;top:416px!important}.island.pos-4{left:52px!important;top:535px!important}.map-player{left:55%!important;top:230px!important}.map-actions-row{grid-template-columns:54px minmax(0,1fr) 54px;gap:8px}.map-actions-row .map-mini{width:54px!important;height:54px!important;font-size:25px!important}.map-actions-row .map-continue{font-size:16px!important;padding:14px 10px!important}}

/* v4.6 compact adventure map */
.map-main{padding-bottom:100px!important}
.adventure-map{min-height:620px!important;height:620px!important;margin:8px 0 0!important}
.island{transform:scale(.84)!important;transform-origin:center!important}
.island:hover{transform:translateY(-3px) scale(.86)!important}
.island.pos-0{left:0!important;top:8px!important}
.island.pos-1{right:-2px!important;top:105px!important}
.island.pos-2{left:6px!important;top:225px!important}
.island.pos-3{right:-2px!important;top:345px!important}
.island.pos-4{left:68px!important;top:468px!important;width:190px!important}
.map-player{left:58%!important;top:205px!important;width:68px!important;height:68px!important}
.map-actions-row{margin:12px 0 4px!important;grid-template-columns:58px minmax(0,1fr) 58px!important;gap:10px!important}
.map-actions-row .map-mini{width:58px!important;height:58px!important;font-size:27px!important}
.map-actions-row .map-continue{font-size:17px!important;padding:14px 12px!important}
.map-title{padding-bottom:3px!important}
.map-title h1{font-size:19px!important}
.map-title small{font-size:12px!important}
.map-version{display:none!important}
@media(max-width:430px){
  .adventure-map{min-height:590px!important;height:590px!important}
  .island{transform:scale(.78)!important}
  .island:hover{transform:translateY(-2px) scale(.8)!important}
  .island.pos-0{left:-10px!important;top:0!important}
  .island.pos-1{right:-13px!important;top:92px!important}
  .island.pos-2{left:-7px!important;top:203px!important}
  .island.pos-3{right:-12px!important;top:314px!important}
  .island.pos-4{left:50px!important;top:422px!important;width:188px!important}
  .map-player{left:57%!important;top:190px!important;width:62px!important;height:62px!important}
  .map-actions-row{grid-template-columns:52px minmax(0,1fr) 52px!important;gap:8px!important;margin-top:10px!important}
  .map-actions-row .map-mini{width:52px!important;height:52px!important;font-size:24px!important}
  .map-actions-row .map-continue{font-size:16px!important;padding:13px 8px!important}
}

/* v4.7 mobile start screen fix */
.start-main,.welcome-card,.hero-group,.character-grid.v4{max-width:100%}
.hero-group,.character-grid.v4,.character-grid.v4 .character{overflow:hidden}
.character-grid.v4 .character{width:100%;min-width:0}
.character-grid.v4 .character strong{word-break:break-word;overflow-wrap:anywhere}
@media (max-width: 430px){
  .main.start-main{padding:14px 12px 28px!important}
  .welcome-hero{height:210px!important;padding:24px 16px 0!important}
  .welcome-hero:after{bottom:-82px!important;height:140px!important}
  .logo-mark{font-size:37px!important;letter-spacing:-1.4px!important}
  .logo-mark span{font-size:46px!important}
  .welcome-hero p{font-size:15px!important;padding:9px 14px!important;margin-top:12px!important}
  .welcome-card{margin-top:-10px!important;padding:14px 12px 18px!important;border-radius:24px!important}
  .hero-group{margin:10px 0 14px!important;padding:10px 9px!important;border-radius:20px!important}
  .hero-group-title{font-size:16px!important;margin:0 2px 8px!important}
  .character-grid.v4{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:0!important}
  .character-grid.v4 .character{min-height:156px!important;padding:8px 6px!important;border-radius:18px!important}
  .character-grid.v4 .character .avatar{width:88px!important;height:100px!important;border-radius:18px!important}
  .character-grid.v4 .character strong{font-size:11px!important;line-height:1.08!important;min-height:30px!important;margin-top:7px!important}
  .check{right:5px!important;top:5px!important}
  .name-box{margin-top:12px!important}
  .name-box label{font-size:12px!important}
  .name-box input{font-size:16px!important;padding:12px 13px!important}
  .primary{font-size:19px!important;padding:15px 14px!important}
  .tiny-note{font-size:11px!important;margin-top:12px!important}
}
@media (max-width: 360px){
  .character-grid.v4{gap:8px!important}
  .character-grid.v4 .character{min-height:148px!important;padding:7px 5px!important}
  .character-grid.v4 .character .avatar{width:82px!important;height:94px!important}
  .character-grid.v4 .character strong{font-size:10.5px!important;min-height:28px!important}
}

/* v4.8 microphone permission UX */
.mic-permission-btn{margin:12px auto 0;display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;border-radius:14px;font-weight:900}
.feedback.error{line-height:1.45}
@media(max-width:430px){
  .mic-permission-btn{width:100%;font-size:15px}
  .feedback.error{font-size:14px;padding:14px 12px}
}

/* v4.9 mobile map actions fix */
.map-actions-row{
  width:100%!important;
  max-width:100%!important;
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) 56px!important;
  align-items:center!important;
  gap:10px!important;
  margin:12px 0 4px!important;
  padding:0!important;
  overflow:visible!important;
}
.map-actions-row .map-mini{
  position:relative!important;
  width:56px!important;
  height:56px!important;
  min-width:56px!important;
  max-width:56px!important;
  margin:0!important;
}
.map-actions-row .map-continue{
  position:static!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  transform:none!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  padding:14px 10px!important;
}
@media(max-width:430px){
  .map-main{padding-left:12px!important;padding-right:12px!important}
  .map-actions-row{
    grid-template-columns:50px minmax(0,1fr) 50px!important;
    gap:8px!important;
    padding:0 2px!important;
  }
  .map-actions-row .map-mini{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    max-width:50px!important;
    font-size:23px!important;
  }
  .map-actions-row .map-continue{
    font-size:16px!important;
    padding:13px 8px!important;
    border-radius:16px!important;
  }
}
@media(max-width:360px){
  .map-actions-row{
    grid-template-columns:46px minmax(0,1fr) 46px!important;
    gap:6px!important;
  }
  .map-actions-row .map-mini{
    width:46px!important;height:46px!important;min-width:46px!important;max-width:46px!important;
  }
  .map-actions-row .map-continue{font-size:15px!important;padding:12px 6px!important}
}

/* v5.0 — player avatar follows the highest unlocked world */
.map-player.player-stage-0{left:31%!important;top:17%!important}
.map-player.player-stage-1{left:67%!important;top:34%!important}
.map-player.player-stage-2{left:32%!important;top:52%!important}
.map-player.player-stage-3{left:70%!important;top:69%!important}
.map-player.player-stage-4{left:38%!important;top:87%!important}
@media(max-width:430px){
  .map-player.player-stage-0{left:31%!important;top:17%!important}
  .map-player.player-stage-1{left:66%!important;top:34%!important}
  .map-player.player-stage-2{left:31%!important;top:52%!important}
  .map-player.player-stage-3{left:70%!important;top:69%!important}
  .map-player.player-stage-4{left:39%!important;top:86%!important}
}

/* v5.3 safe microphone settings dialog */
.mic-help-text{display:block;margin-top:8px;line-height:1.4;color:inherit}
.settings-dialog-backdrop{position:fixed;inset:0;z-index:99999;background:rgba(22,34,60,.55);display:flex;align-items:center;justify-content:center;padding:20px}
.settings-dialog{width:min(100%,420px);background:#fff;border-radius:26px;padding:24px;box-shadow:0 24px 70px rgba(0,0,0,.28);text-align:center;color:#20304e}
.settings-dialog h2{margin:0 0 10px;font-size:24px}.settings-dialog p{margin:0 0 18px;line-height:1.45;color:#65738a}.settings-dialog small{display:block;margin-top:15px;color:#77859b;line-height:1.4}.settings-dialog-actions{display:grid;grid-template-columns:1fr 1.35fr;gap:10px}.settings-dialog-actions .primary,.settings-dialog-actions .secondary{margin:0;width:100%;padding:13px 10px}

/* v5.5 safe microphone help */
.mic-help-overlay{position:fixed;inset:0;z-index:99999;background:rgba(22,35,61,.58);display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(6px)}
.mic-help-modal{width:min(100%,420px);background:#fff;border-radius:28px;padding:24px 22px;box-shadow:0 24px 70px rgba(18,34,63,.32);color:#20304e;text-align:left}
.mic-help-icon{font-size:48px;text-align:center}.mic-help-modal h2{text-align:center;margin:6px 0 10px}.mic-help-modal p{line-height:1.45;color:#52617a}.mic-help-modal ol{padding-left:24px;line-height:1.65}.mic-help-modal li{margin:4px 0}.mic-help-extra{font-size:13px;background:#f2f6ff;border-radius:14px;padding:12px}.mic-help-close{margin-top:14px}

/* v5.6 browser / OS aware microphone help */
.mic-help-browser{display:inline-block;margin-top:10px;padding:6px 10px;border-radius:999px;background:#fff3f3;color:#c94f4f;font-weight:1000;font-size:13px}
.mic-help-text{margin-top:12px;line-height:1.48;font-size:14px}

/* v5.7 browser-specific microphone help */
.mic-help-dynamic{margin:18px 0;padding:16px;border-radius:18px;background:#f2f6ff;color:#33425d;line-height:1.5;text-align:left}
.mic-help-retry{margin-top:8px}

/* v5.8 redesigned matching exercise */
.match-instruction{display:flex;align-items:center;gap:10px;padding:11px 13px;margin:2px 0 14px;border-radius:17px;background:linear-gradient(135deg,#f7f1ff,#edf5ff);color:#53657f;font-size:13px;font-weight:850}.match-star{font-size:24px;filter:drop-shadow(0 3px 5px #f4b40055)}
.match-board{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);gap:8px;align-items:stretch;padding:4px 0 6px;isolation:isolate}.match-lines{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none;overflow:visible}.matched-line{fill:none;stroke-width:5;stroke-linecap:round;filter:drop-shadow(0 2px 3px rgba(85,65,150,.2));animation:lineDraw .35s ease-out}.match-column{display:grid;gap:12px;z-index:2}.match-center-hint{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#b2a4da;font-size:9px;font-weight:900;text-transform:uppercase;z-index:0}.match-center-hint i{font-size:24px;font-style:normal}.match-tile{position:relative;min-height:88px;border:3px solid #e5eaf3;border-radius:22px;background:#fff;box-shadow:0 8px 18px rgba(61,79,117,.10);cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s,background .18s}.match-tile:active{transform:scale(.97)}.match-tile.active{border-color:#8b5cf6;background:#faf7ff;box-shadow:0 0 0 5px #8b5cf622,0 10px 22px #6c4bd42b;transform:translateY(-1px)}.match-tile.matched{border-color:var(--pair-color,#55c934);background:color-mix(in srgb,var(--pair-color,#55c934),white 92%);box-shadow:0 0 0 4px color-mix(in srgb,var(--pair-color,#55c934),transparent 82%),0 8px 18px #3f5a7b14}.match-tile.wrong{border-color:#ff6262!important;background:#fff1f1!important;animation:shake .35s}.word-tile{padding:12px 26px 12px 10px}.picture-tile{padding:7px 10px 7px 26px}.match-text{font-size:27px;font-weight:1000;color:#1f3156;letter-spacing:-.5px}.match-emoji{font-size:48px;line-height:1;filter:drop-shadow(0 4px 5px #40506d22)}.match-dot{position:absolute;top:50%;width:17px;height:17px;border-radius:50%;background:#d7dfea;border:3px solid #fff;box-shadow:0 0 0 2px #d7dfea;transform:translateY(-50%);z-index:3}.word-tile .match-dot{right:-10px}.picture-tile .match-dot{left:-10px}.match-tile.active .match-dot{background:#8b5cf6;box-shadow:0 0 0 2px #8b5cf6,0 0 0 7px #8b5cf622}.match-tile.matched .match-dot{background:var(--pair-color,#55c934);box-shadow:0 0 0 2px var(--pair-color,#55c934)}.pulse-hint{animation:pulseTile .45s}.match-check{width:100%;margin-top:15px;border:0;border-radius:20px;padding:16px;background:linear-gradient(180deg,#9564ff,#6f3be7);color:#fff;font-size:18px;font-weight:1000;box-shadow:0 7px 0 #5427ba,0 13px 25px #7042dd35;cursor:pointer;transition:.2s}.match-check:disabled{background:#e7ebf2;color:#91a0b4;box-shadow:none;cursor:not-allowed}.match-check:not(:disabled):active{transform:translateY(3px);box-shadow:0 4px 0 #5427ba}.game-shell .mission-card:has(.match-board){padding:17px 15px 18px}.game-shell .mission-card:has(.match-board) .mission-title h1{margin-bottom:12px}.game-shell .mission-card:has(.match-board) .feedback{margin-top:13px}
@keyframes lineDraw{from{opacity:0;stroke-dasharray:8 18}to{opacity:1;stroke-dasharray:0}}
@keyframes pulseTile{50%{transform:scale(1.035);box-shadow:0 0 0 6px #8b5cf622}}
@media(max-width:430px){.match-board{grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr);gap:6px}.match-tile{min-height:82px;border-radius:19px}.match-text{font-size:24px}.match-emoji{font-size:43px}.word-tile{padding-right:22px}.picture-tile{padding-left:22px}.match-center-hint span{display:none}.match-center-hint i{font-size:20px}.match-instruction{font-size:12px;padding:9px 10px}.match-star{font-size:21px}.matched-line{stroke-width:4}.match-check{font-size:17px;padding:15px}.game-shell .mission-card:has(.match-board){padding-left:13px;padding-right:13px}}


/* v5.9 desktop adaptive layout */
@media (min-width: 1024px){
  body{padding:24px}
  .app-shell{
    width:min(100%,1220px)!important;
    min-height:calc(100vh - 48px)!important;
    border-radius:30px;
  }
  .topbar{height:auto;min-height:76px;padding:16px 28px}
  .topbar.v4 .stats{justify-content:flex-end!important}
  .pill,.build-badge{padding:10px 14px;font-size:16px}
  .main{padding:28px 34px 112px}

  /* start screen */
  .welcome-hero{height:320px;margin:-28px -34px 0;padding:40px 32px 0}
  .welcome-hero:after{bottom:-88px;height:160px}
  .logo-mark{font-size:66px;letter-spacing:-3px}
  .logo-mark span{font-size:78px}
  .welcome-hero p{font-size:20px;padding:12px 22px;margin-top:18px}
  .welcome-card{max-width:1080px;margin:-18px auto 0;padding:28px 28px 30px}
  .section-title.centered{font-size:40px;margin-bottom:22px}
  .mode-switch{max-width:560px;margin:0 auto 10px}
  .mode-switch button{font-size:18px;padding:13px 12px}
  .character-grid,.character-grid.v4{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
  .character,.character-grid.v4 .character{min-height:228px;padding:16px 12px;border-radius:24px}
  .character .avatar,.character-grid.v4 .character .avatar{width:128px!important;height:128px!important;border-radius:28px}
  .character strong,.character-grid.v4 .character strong{font-size:18px!important;line-height:1.15;min-height:unset}
  .name-box{max-width:720px;margin:18px auto 0}
  .name-box input{font-size:18px;padding:15px 16px}
  .primary{font-size:22px;padding:18px 22px}
  #startBtn{max-width:720px;display:block;margin-left:auto;margin-right:auto}
  .tiny-note{font-size:14px;max-width:780px;margin:14px auto 0}

  /* map */
  .map-main{padding-left:34px!important;padding-right:34px!important}
  .map-title{text-align:center;padding-top:4px}
  .map-title h1{font-size:40px;margin-bottom:6px}
  .map-title small{font-size:18px}
  .adventure-map{max-width:920px;margin:18px auto 0!important;min-height:720px!important;height:720px!important;border-radius:36px}
  .island{transform:scale(1)!important}
  .island:hover{transform:translateY(-3px) scale(1.02)!important}
  .island.pos-0{left:20px!important;top:28px!important}
  .island.pos-1{right:16px!important;top:165px!important}
  .island.pos-2{left:24px!important;top:320px!important}
  .island.pos-3{right:12px!important;top:480px!important}
  .island.pos-4{left:175px!important;top:610px!important;width:220px!important}
  .map-player{width:82px!important;height:82px!important}
  .map-actions-row{max-width:920px;grid-template-columns:72px minmax(0,1fr) 72px!important;gap:18px;margin:18px auto 0!important}
  .map-actions-row .map-mini{width:72px!important;height:72px!important;min-width:72px!important;max-width:72px!important;font-size:30px!important}
  .map-actions-row .map-continue{font-size:22px!important;padding:18px 18px!important}

  /* world and lesson screens */
  .back,.round-btn,.audio-btn{font-size:18px}
  .world-banner,.page-title,.course-progress,.wallet,.profile-card,.profile-stats{max-width:1040px;margin-left:auto;margin-right:auto}
  .world-banner{padding:28px 30px}
  .world-banner-icon{font-size:84px}
  .world-banner h1,.page-title h1{font-size:38px}
  .page-title p{font-size:18px}
  .lesson-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .lesson-row{padding:16px 16px 16px 14px;min-height:94px}
  .lesson-row b{font-size:19px}
  .lesson-row small,.lesson-reward{font-size:13px}
  .course-block{max-width:1040px;margin:14px auto 0;padding:18px}
  .course-head h3{font-size:24px}
  .course-head small{font-size:14px}
  .lock-note{font-size:14px}
  .reward-grid{max-width:1040px;margin:0 auto;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .reward-card{padding:22px}
  .reward-card>div{font-size:62px}
  .profile-card{max-width:860px;padding:32px}
  .profile-avatar{width:136px;height:136px}
  .profile-card h1{font-size:36px}
  .level-chip{font-size:16px;padding:10px 16px}
  .settings-row{max-width:860px;margin-left:auto;margin-right:auto;padding:18px}
  .settings-row b{font-size:20px}
  .settings-row small{font-size:14px}

  /* game screens */
  .game-head{max-width:1100px;margin:0 auto}
  .mission-card{max-width:1100px;margin:18px auto 0;padding:24px 26px}
  .mission-title h1{font-size:42px;margin-bottom:16px}
  .eyebrow{font-size:12px}
  .feedback{font-size:18px;padding:16px 18px;min-height:58px}
  .question-picture{font-size:120px;padding:24px 0}
  .scene-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:18px}
  .scene-item{min-height:180px}
  .scene-item span{font-size:84px}
  .scene-item small{font-size:16px}
  .choice-grid,.token-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
  .answer-btn,.token{padding:16px 12px;font-size:18px}
  .sentence-area{min-height:104px;padding:22px}
  .wave{font-size:46px}
  .big-mic{width:96px;height:96px;font-size:42px}

  /* matching task */
  .match-instruction{font-size:15px;padding:14px 16px;margin-bottom:18px}
  .match-star{font-size:28px}
  .match-board{grid-template-columns:minmax(0,1fr) 84px minmax(0,1fr);gap:18px;padding:8px 0 12px}
  .match-column{gap:16px}
  .match-center-hint i{font-size:30px}
  .match-center-hint span{font-size:12px}
  .match-tile{min-height:104px;border-radius:24px}
  .word-tile{padding:14px 30px 14px 14px}
  .picture-tile{padding:10px 14px 10px 30px}
  .match-text{font-size:34px}
  .match-emoji{font-size:60px}
  .word-tile .match-dot{right:-11px}
  .picture-tile .match-dot{left:-11px}
  .match-check{font-size:21px;padding:18px}

  .next-btn{max-width:1100px;display:block;margin:18px auto 0}
}


/* v6.0 desktop map refinement */
@media (min-width: 1024px){
  body{padding:0!important;overflow-x:hidden}
  .app-shell{width:min(100%,1280px)!important;min-height:100vh!important;border-radius:0!important}
  .topbar.v4{min-height:64px!important;padding:8px 24px!important}
  .topbar.v4 .stats{justify-content:flex-end!important}
  .map-main{padding:8px 40px 96px!important}
  .map-title{padding:0 0 8px!important}
  .map-title h1{font-size:32px!important;line-height:1.1}
  .map-title small{font-size:15px!important}
  .adventure-map{
    width:min(100%,1000px)!important;
    max-width:1000px!important;
    min-height:560px!important;
    height:560px!important;
    margin:8px auto 0!important;
    border-radius:30px!important;
  }
  .island{transform:scale(.88)!important}
  .island:hover{transform:translateY(-3px) scale(.91)!important}
  .island.pos-0{left:20px!important;top:12px!important}
  .island.pos-1{right:16px!important;top:96px!important}
  .island.pos-2{left:28px!important;top:205px!important}
  .island.pos-3{right:16px!important;top:322px!important}
  .island.pos-4{left:145px!important;top:428px!important;width:210px!important}
  .map-player{width:70px!important;height:70px!important}
  .map-player.player-stage-0{left:26%!important;top:18%!important}
  .map-player.player-stage-1{left:73%!important;top:34%!important}
  .map-player.player-stage-2{left:31%!important;top:53%!important}
  .map-player.player-stage-3{left:73%!important;top:70%!important}
  .map-player.player-stage-4{left:42%!important;top:84%!important}
  .map-actions-row{
    width:min(100%,1000px)!important;
    max-width:1000px!important;
    grid-template-columns:64px minmax(0,1fr) 64px!important;
    gap:14px!important;
    margin:12px auto 0!important;
  }
  .map-actions-row .map-mini{width:64px!important;height:64px!important;min-width:64px!important;max-width:64px!important}
  .map-actions-row .map-continue{font-size:20px!important;padding:16px 18px!important}
  .bottom-nav{height:72px!important;padding:7px 10px!important}
  .nav-btn i{font-size:22px!important}
  .nav-btn{font-size:11px!important}
}
@media (min-width: 1400px){
  .adventure-map{width:1040px!important;max-width:1040px!important}
  .map-actions-row{width:1040px!important;max-width:1040px!important}
}
