:root{--ink:#293b4b;--navy:#324b64;--paper:#fff6df;--sky:#d1edf1;--line:#d7cfb9;--green:#82b9a0;--orange:#f4bf66;--muted:#829087;--blue:#5e8e9c}*{box-sizing:border-box}html{min-height:100%;background:#c4dbdf}body{margin:0;background:#c4dbdf;color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}button,input,select{font:inherit;color:inherit}button,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b08bce;outline-offset:4px}svg{display:block;width:100%;height:100%}.app-screen{max-width:480px;margin:auto;min-height:100svh;background:var(--paper);padding-bottom:calc(82px + env(safe-area-inset-bottom));overflow:clip;box-shadow:0 0 75px #36556818}.h5-header{height:calc(73px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 22px 0;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:7px;font-size:16px;letter-spacing:.4px;font-weight:800}.brand>span>small{display:block;font:7px monospace;letter-spacing:.6px;margin-top:4px;font-weight:400;color:#778b8f}.brand-mark{width:37px;height:40px;display:block;transform:rotate(-10deg)}.header-tools{display:flex;gap:7px}.header-side,.sound,.motion-switch{height:29px;width:29px;border-radius:50%;border:1.5px solid #5f7984;background:#fff9e7;display:grid;place-items:center;box-shadow:0 2px 0 #a8bfc0;font:14px monospace;padding:0}.sound[aria-pressed=true]{background:#f5d58c}.motion-switch{font-size:12px}.main{padding:18px 23px 28px;animation:page-arrive .3s ease-out}.page-home{background:var(--sky)}.page-home .main{padding:0}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);max-width:480px;width:100%;height:calc(69px + env(safe-area-inset-bottom));padding:7px 26px calc(7px + env(safe-area-inset-bottom));display:flex;gap:15px;justify-content:space-around;background:#fffaeaf5;border-top:2px solid #677f8250;backdrop-filter:blur(10px);z-index:30}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;gap:3px;color:#a2b0a7;font-size:10px;position:relative;font-weight:600}.bottom-nav a>svg{width:27px;height:27px;transition:transform .2s}.bottom-nav .active{color:var(--orange)}.bottom-nav .active span{color:var(--ink)}.bottom-nav .active svg{transform:translateY(-2px)}.bottom-nav i{height:6px;width:6px;border-radius:50%;background:#eb9788;position:absolute;top:4px;right:20px;border:1px solid var(--ink)}.cartoon-cover{text-align:center;position:relative;padding:7px 23px 12px;overflow:hidden}.cover-sticker{display:inline-flex;align-items:center;gap:10px;background:#fff8dc;border:1.5px solid #48616e;border-radius:20px;box-shadow:0 3px 0 #91b4bd;padding:7px 15px;font-size:10px;letter-spacing:1px;transform:rotate(-3deg)}.cover-sticker>span{color:#de9e49;font-size:12px}.cartoon-cover h1{font-size:38px;font-weight:900;letter-spacing:1px;line-height:1.18;margin:21px 0 11px;position:relative;z-index:2;color:#fff7dd;-webkit-text-stroke:1.5px #304d62;paint-order:stroke fill;text-shadow:0 3px 0 #304d62,2px 3px 0 #304d62;transform:rotate(-2deg)}.cartoon-cover h1>span{font-size:54px;color:#f3bf69;letter-spacing:3px}.cartoon-cover h1>i{font-size:61px;font-style:normal;display:inline-block;transform:rotate(12deg);color:#ed9a84}.cover-subtitle{font-size:11px;color:#627f87;letter-spacing:.3px;margin:14px 0 0}.island-stage{height:290px;position:relative;margin:0 -23px}.island-scenery{position:absolute;left:0;top:0;width:100%;height:100%}.hero-mascot{position:absolute;left:50%;transform:translateX(-50%) rotate(-6deg);bottom:61px;width:178px;height:178px;background:transparent;border:0;padding:0;cursor:pointer;z-index:4;filter:drop-shadow(0 6px 0 #486d5920);animation:hero-land .8s cubic-bezier(.2,.75,.2,1) both}.hero-mascot:hover{filter:drop-shadow(0 7px 0 #486d5940)}.hero-mascot .wave-arm{transform-origin:84px 51px;animation:wave 3.7s ease-in-out infinite}.eyes{transform-box:fill-box;transform-origin:center;animation:blink 5.4s ease-in-out infinite}.hero-mascot.greeting{animation:greet-hop .65s ease-in-out}.hero-mascot.greeting .wave-arm{animation:fast-wave .18s ease-in-out 4 alternate}.speech{position:absolute;left:24px;top:18px;max-width:225px;background:#fff9e8;border:2px solid #435c69;border-radius:15px 15px 15px 3px;box-shadow:3px 3px 0 #97bbc1;padding:10px 15px;text-align:left;font-size:11px;line-height:1.8;z-index:6;transform:rotate(-3deg)}.speech:after{content:'';position:absolute;width:12px;height:12px;bottom:-8px;right:24px;transform:rotate(45deg);background:#fff9e8;border-right:2px solid #435c69;border-bottom:2px solid #435c69}.friend{position:absolute;z-index:3;width:70px;height:70px;bottom:44px}.friend-one{left:14%;transform:rotate(-13deg);animation:friend-arrive .7s .2s both}.friend-two{right:14%;transform:rotate(14deg);animation:friend-arrive .7s .35s both}.cloud-one{animation:cloud-drift 13s ease-in-out infinite}.cloud-two{animation:cloud-drift 17s ease-in-out infinite reverse}.tap-hint{position:absolute;right:18px;bottom:19px;font-size:9px;color:#65838a;transform:rotate(-5deg)}.stage-spark{position:absolute;color:#c38b46;z-index:2}.spark-one{right:22%;top:30%;font-size:22px;animation:twinkle 3s ease-in-out infinite}.spark-two{left:20%;top:46%;font-size:20px;animation:twinkle 3s 1s ease-in-out infinite}.adventure-ticket{display:flex;align-items:center;justify-content:center;gap:16px;border:1.5px dashed #809b9f;border-radius:13px;background:#e6f3ed;margin:0 0 19px;padding:13px 9px;font-size:10px;color:#648084}.adventure-ticket b{font:700 22px Georgia,serif;color:var(--navy);margin-right:4px}.adventure-ticket i{width:1px;height:21px;background:#bdd0c7}.btn{display:inline-flex;align-items:center;justify-content:center;gap:13px;border:2px solid var(--navy);border-radius:14px;min-height:47px;padding:12px 18px;background:var(--orange);color:var(--navy);box-shadow:0 4px 0 var(--navy);font-size:13px;font-weight:700;transition:transform .15s,box-shadow .15s}.btn:active{transform:translateY(3px);box-shadow:0 1px 0 var(--navy)}.btn:disabled{background:#d8dfd0;color:#98a292;border-color:#a4b1a0;box-shadow:0 3px 0 #a4b1a0}.btn.secondary{background:#fff9e8;border-color:#728b89;box-shadow:0 3px 0 #91a7a1;color:#506c72}.btn.small{min-height:38px;padding:8px 12px;font-size:11px;border-radius:10px}.primary-cta{display:flex;justify-content:center;position:relative;width:100%;min-height:55px;font-size:17px;letter-spacing:.8px;background:#f6c76c;border-radius:17px;box-shadow:0 5px 0 #334d63;overflow:hidden}.primary-cta:before{content:'';position:absolute;top:4px;left:16px;right:16px;height:2px;background:#fff0bd;border-radius:5px}.primary-cta>b{position:absolute;right:18px;font-size:25px}.watch-link{display:flex;gap:10px;align-items:center;justify-content:center;margin-top:16px;font-size:12px;min-height:36px}.watch-link>span:last-child{font-size:20px}.play-circle{display:grid;place-items:center;width:23px;height:23px;border:1.5px solid #5d7a83;background:#fff4d7;border-radius:50%;font-size:14px}.cover-note{font-size:9px;color:#809b9f;margin:10px 0 0;letter-spacing:.2px}.crew-strip{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:22px;padding-top:15px;border-top:1px dashed #a1bdbe}.crew-strip>span{font-size:9px;color:#7a969b}.crew-strip>div{display:flex;gap:5px}.crew-strip>div>span{width:30px;height:33px;display:block;animation:crew-pop .5s var(--delay) backwards}.campaign-credit{font-size:8px;color:#91a8a8;margin:15px 0 2px}.page-title{margin:5px 0 24px}.eyebrow{font-size:10px;color:#8b9a7d;letter-spacing:1px}.page-title h1{font-size:27px;font-weight:850;line-height:1.5;margin:12px 0 9px;letter-spacing:-.5px}.page-title p{font-size:11px;line-height:1.9;color:#899783;margin:0}.center{text-align:center}.page-map{background:#dcefe4}.page-map .h5-header{background:#d1e8dd}.map-status{display:flex;align-items:center;gap:10px;padding:15px;background:#fffae8;border:2px solid #75948a;border-radius:17px;box-shadow:0 3px 0 #afc9b5}.status-star{font-size:26px;color:#e8b559;-webkit-text-stroke:1px #566c64}.map-status>div:nth-child(2){display:flex;align-items:baseline;gap:8px;flex:1}.map-status>div>span{font-size:9px;color:#879681}.map-status strong{font-size:24px}.map-status small{font-size:11px;font-weight:400;color:#8e9b84}.map-medals{display:flex;gap:2px}.map-medals>span{display:block;width:22px;height:25px;opacity:.3;filter:grayscale(1)}.map-medals .earned{filter:none;opacity:1}.map-settings{display:flex;justify-content:space-between;align-items:center;margin:20px 2px 8px;font-size:10px;color:#7b927f;gap:10px}.select{font-size:10px;border:1.5px solid #9ab2a0;border-radius:10px;background:#f8f9e9;padding:8px;max-width:70%}.adventure-map{position:relative;padding:17px 0 0;margin:0 -3px}.map-trail{position:absolute;left:0;top:17px;width:100%;height:900px;pointer-events:none}.trail-edge{stroke:#8eaf99;stroke-width:16;fill:none;stroke-linecap:round}.trail-line{stroke:#f2dfab;stroke-width:12;fill:none;stroke-linecap:round;stroke-dasharray:1 18}.map-stop{height:150px;display:flex;align-items:center;gap:17px;position:relative}.map-stop.right{flex-direction:row-reverse;text-align:right}.stop-land{position:relative;width:45%;height:130px;flex-shrink:0;display:grid;place-items:center}.stop-character{width:107px;height:107px;position:relative;z-index:3;border:0;padding:0;background:none;transform:translateY(-12px);transition:transform .2s}.stop-character:hover:not(:disabled){transform:translateY(-17px)}.stop-character:disabled{opacity:.65;filter:grayscale(.75)}.island-base{position:absolute;bottom:12px;width:112px;height:40px;background:#a6c993;border:2px solid #5d8474;border-radius:50%;box-shadow:0 7px 0 #7ea87c,0 9px 0 #5d8474;z-index:1}.stop-marker{position:absolute;left:50%;transform:translateX(-50%);bottom:-2px;border:2px solid var(--navy);background:#7caf91;color:white;min-width:29px;height:25px;border-radius:10px;font-size:10px;font-weight:800;padding:4px 6px;z-index:4;white-space:nowrap}.current .stop-marker{background:#f5c56b;color:var(--navy)}.current .island-base{background:#edd68d;box-shadow:0 7px 0 #d5b86c,0 9px 0 #6f8767}.current .stop-character{animation:current-bounce 3s ease-in-out infinite}.locked .island-base{background:#c2d4c1;box-shadow:0 7px 0 #b4c6b4,0 9px 0 #869c88;border-color:#869c88}.locked .stop-marker{background:#c7d3c0;color:#7f967d;border-color:#8b9f8b}.you-are-here{position:absolute;top:-11px;left:50%;transform:translateX(-50%) rotate(-5deg);padding:4px 8px;background:#fff6da;border:1.5px solid #728b73;border-radius:7px;white-space:nowrap;font-size:8px;z-index:5}.stop-detail{flex:1;min-width:0}.stop-number{font-size:9px;color:#8ba087;letter-spacing:1px}.stop-detail h2{font-size:14px;line-height:1.6;margin:7px 0}.stop-cta{background:#fff4cf;border:1.5px solid #79927c;border-radius:10px;box-shadow:0 2px 0 #9bb18c;padding:8px 12px;font-size:10px;min-height:31px}.current .stop-cta{background:#f2c56c;border-color:#607d6c;box-shadow:0 3px 0 #74947d;font-weight:700}.stop-detail>a{display:block;font-size:9px;color:#7b9882;margin-top:9px}.stop-detail>p{font-size:9px;color:#a0b19b;margin:6px 0}.locked .stop-detail h2{color:#8fa08c}.treasure-chest{display:flex;align-items:center;gap:14px;padding:20px 16px;border:2px solid #9b936e;background:#f9e4ac;border-radius:18px;margin:24px 0 17px;box-shadow:0 4px 0 #bdb382}.treasure-chest>span{width:44px;height:48px;color:#eeb64e}.treasure-chest>div{flex:1}.treasure-chest strong{font-size:14px}.treasure-chest p{font-size:10px;margin:6px 0 0;color:#998e67}.treasure-chest>b{font-size:27px;font-weight:400}.review-entry{display:flex;justify-content:space-between;padding:17px;background:#f6f9e8;border:1px dashed #9db392;border-radius:12px;font-size:11px}.review-entry>span{color:#8da283;font-size:10px}.video-list{display:grid;gap:14px;margin:20px 0 24px}.video-ticket{display:flex;align-items:center;gap:14px;padding:13px;background:#fffcf0;border:1.5px solid #d1c5a1;border-radius:15px;box-shadow:0 3px 0 #e2d7b9}.video-thumb{width:81px;height:81px;background:#e5ecda;border-radius:12px;position:relative;display:grid;place-items:center;flex-shrink:0}.video-ticket:nth-child(2n) .video-thumb{background:#f1dbcc}.video-ticket:nth-child(3n) .video-thumb{background:#dbdced}.video-thumb>span{height:72px;width:72px}.video-thumb>i{position:absolute;right:3px;bottom:3px;border:1px solid #6d8585;border-radius:50%;width:21px;height:21px;text-align:center;background:#fff5db;font-style:normal}.video-copy{flex:1}.video-copy small{font-size:8px;color:#9ba38d}.video-copy h3{font-size:13px;line-height:1.6;margin:7px 0}.video-copy p{font-size:9px;color:#8d9984;line-height:1.6;margin:0}.ticket-arrow{font-size:20px;color:#8c9d89}.back{font-size:10px;color:#8e9e8a;display:block;margin-bottom:18px}.quiz-coach{display:flex;align-items:center;gap:12px;margin-bottom:20px}.quiz-coach>span{height:61px;width:61px;flex-shrink:0;transform:rotate(-7deg)}.quiz-coach p{margin:0;background:#fffdf1;border:1.5px solid #b7c4a6;border-radius:13px 13px 13px 3px;font-size:11px;padding:12px 14px;line-height:1.7;position:relative}.quiz-coach.cheering>span{animation:coach-cheer .45s ease-in-out 2}.quiz-coach.cheering p{background:#eaf1cc}.quiz-coach.thinking>span{animation:coach-think .45s ease-in-out}.quiz-coach.thinking .smile{transform:rotate(180deg);transform-box:fill-box;transform-origin:center}.quiz-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;margin-bottom:12px}.quiz-top strong{display:flex;align-items:center;gap:6px;font-weight:500}.quiz-top strong svg{width:21px;height:23px;flex-shrink:0}.quiz-top>span{font-weight:700;color:#87a17a;white-space:nowrap}.bar{height:9px;border:1px solid #9eae8b;border-radius:8px;overflow:hidden;background:#e4e8d4}.bar i{display:block;height:100%;border-radius:6px;background:#9fc385;transition:width .3s}.question-card{background:#fffdf1;border:2px solid #b4bd9a;border-radius:21px;padding:23px 18px;margin:20px 0;box-shadow:0 5px 0 #d5d9b7;position:relative}.question-card h2{font-size:19px;line-height:1.8;margin:18px 0 24px;font-weight:650}.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;font-size:9px;border-radius:15px;border:1px solid #c0cdae;background:#eef2dc;color:#8a9c76}.overline{font-size:9px;color:#95a283;letter-spacing:1px}.options{display:grid;gap:11px}.option{display:flex;align-items:center;gap:11px;text-align:left;width:100%;min-height:56px;background:#fafbf0;border:1.5px solid #c5cfb4;border-radius:13px;padding:14px 12px;font-size:12px;line-height:1.75;box-shadow:0 2px 0 #e1e5cd;transition:transform .15s,background .15s}.option>span{display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;border:1px solid #bbcaab;background:#eaf1da;border-radius:50%;font-size:11px}.option:active:not(:disabled){transform:translateY(2px);box-shadow:none}.option.correct{border-color:#85af79;background:#e8f1cb;box-shadow:0 3px 0 #b6d098;animation:answer-pop .3s ease-out}.option.correct>span{background:#83b278;border-color:#5e9057;color:white}.option.wrong{border-color:#d9a386;background:#fae8d6;box-shadow:0 3px 0 #e9c6ab;animation:answer-wiggle .25s ease-in-out}.option.wrong>span{background:#e8b696;border-color:#c68c68}.feedback{padding:16px;background:#edf3db;border:1px dashed #a7c089;border-radius:12px;font-size:11px;line-height:1.9;margin-top:20px;animation:page-arrive .3s ease-out}.feedback.wrong{background:#faf0dd;border-color:#d7b691}.feedback strong{display:block;font-size:14px;margin-bottom:8px}.feedback summary{cursor:pointer;font-size:10px}.question-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;bottom:calc(80px + env(safe-area-inset-bottom));padding:13px 0;background:#fff6dfed;backdrop-filter:blur(10px);z-index:8}.question-bottom .hint{font-size:9px}.question-bottom .btn{min-width:130px}.hint{font-size:10px;color:#94a087;line-height:1.9}.flex{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.actions{display:flex;flex-wrap:wrap;gap:12px}.actions .btn{flex:1;min-width:120px}.result-symbol{width:145px;height:150px;margin:25px auto;background:#f6e4ab;border:2px solid #9f9b74;border-radius:50%;padding:12px;box-shadow:0 6px 0 #dfce91;animation:trophy-pop .7s cubic-bezier(.17,.8,.32,1.3)}.center h1{font-size:27px!important;line-height:1.5}.score{font-size:64px;font-weight:850;color:#7da38a;letter-spacing:-2px}.confetti{position:absolute;left:0;right:0;height:400px;pointer-events:none;overflow:hidden;z-index:7}.confetti i{position:absolute;left:var(--x);top:-20px;width:9px;height:15px;background:var(--c);border:1px solid #42575266;border-radius:3px;animation:confetti-fall 1.5s var(--delay) ease-in both;transform:rotate(var(--turn))}.review-item{border-bottom:1px dashed #d5d4b4;padding:18px 0;text-align:left;font-size:12px;line-height:1.9}.review-item strong{display:block;font-size:14px;margin:9px 0}.video-stage{aspect-ratio:4/3;background:#e8eedb;border:2px solid #b2bf9e;border-radius:20px;display:flex;align-items:center;justify-content:center;padding:18px;text-align:center}.video-stage>div>div{height:82px;width:82px;margin:auto}.video-stage video{width:100%;max-height:100%;border-radius:14px}.video-stage h3{font-size:14px}.video-stage p{font-size:11px;line-height:1.8;color:#93a082}.section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:28px 0 16px}.section-head h2{font-size:18px;margin:0 0 8px}.section-head p{font-size:10px;line-height:1.8;color:#97a186;margin:0}.knowledge{padding:17px;background:#fffbee;border:1px solid #ded6b8;border-radius:12px;margin-top:12px}.knowledge summary{font-size:13px;line-height:1.7;font-weight:500;cursor:pointer}.knowledge p{font-size:11px;line-height:1.95;color:#8c9a7d}.knowledge h3{font-size:14px}.badge-layout{display:flex;flex-direction:column;gap:25px}.badge-preview{background:#f6e7b9;border:2px solid #b9a97e;border-radius:22px;padding:23px;position:relative;width:100%;box-shadow:0 5px 0 #dfd0a5}.badge-preview:before,.badge-preview:after{content:'✦';position:absolute;top:28px;color:#d8ab52;font-size:23px}.badge-preview:before{left:22px}.badge-preview:after{right:22px;top:60px;font-size:15px}.badge-preview img{max-width:100%;display:block;position:relative;z-index:1;border-radius:13px;box-shadow:0 8px 20px #81764c20}.badge-empty{padding:12px 0;text-align:center}.certificate-symbol{width:118px;height:126px;color:#efbf60;margin:auto;animation:medal-sway 4s ease-in-out infinite}.badge-empty h2{font-size:24px;margin:15px 0}.badge-empty p{font-size:11px;line-height:1.9;color:#9c9470}.badge-symbols{display:flex;justify-content:center;gap:6px;margin:19px 0 5px}.badge-symbols span{height:39px;width:35px;display:block}.badge-locked{opacity:.35;filter:grayscale(1)}.badge-layout>div:last-child{width:100%}.badge-layout>div>h2{font-size:17px;margin:0 0 9px}.badge-preview:has(img){order:2}.overview{border:1.5px solid #c6cfab;border-radius:15px;background:#fffbed;padding:17px;margin:20px 0}.overview>div+div{margin-top:16px}.overview>div:last-child{display:none}.stat-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;margin-bottom:12px}.minimedals{display:flex;justify-content:space-between;margin-top:12px}.minimedal{height:36px;width:34px;opacity:.35;filter:grayscale(1)}.minimedal.earned{filter:none;opacity:1}.form-label{display:block;font-size:11px;margin:20px 0 10px}input{max-width:100%;width:100%;padding:15px;background:#fffdf1;border:1.5px solid #bbc8a3;border-radius:12px;font-size:13px}.error{font-size:10px;color:#b9785c;min-height:24px;padding:4px 0}.badge-layout form>.btn{width:100%}.badge-layout .actions{margin-bottom:15px}.textlink{display:inline-block;font-size:10px;color:#658d86;padding:8px 0;border:0;background:none}.notice{background:#f0eacb;border:1px dashed #c4b889;border-radius:12px;padding:15px;font-size:11px;line-height:1.9;margin:15px 0 22px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.admin-stat{border:1px solid #d8d3b3;background:#fffbed;border-radius:12px;padding:17px}.admin-stat strong{display:block;font-size:28px;margin-top:8px}.table-wrap{max-width:100%;overflow:auto;border:1px solid #d8d3b3;border-radius:12px;margin:20px 0}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:10px}th,td{padding:14px;border-bottom:1px solid #dedcc1;text-align:left}.callout{background:#eaf0d6;border:1px solid #ced7ad;padding:20px;border-radius:16px;margin:24px 0;display:flex;flex-direction:column;gap:15px}.callout strong{font-size:13px}.callout p{font-size:10px;line-height:1.8;color:#93a17d;margin:8px 0 0}.loading{text-align:center;padding:60px 20px}#toast{position:fixed;bottom:104px;left:50%;transform:translateX(-50%);background:#334f60f5;border:2px solid #23404f;color:#fff4da;padding:12px 17px;border-radius:14px;z-index:50;display:none;max-width:min(85%,400px);font-size:11px;line-height:1.8;text-align:center}.motion-paused *{animation:none!important;transition:none!important}.page-about h1,.page-admin h1{font-size:25px}.page-quiz .main{padding-bottom:16px}@keyframes page-arrive{from{translate:0 8px}to{translate:0 0}}@keyframes hero-land{0%{translate:0 -25px;scale:.9}65%{translate:0 4px;scale:1.04 .96}100%{translate:0 0;scale:1}}@keyframes friend-arrive{from{translate:0 30px;opacity:0}to{translate:0 0;opacity:1}}@keyframes wave{0%,35%,100%{rotate:0deg}10%,25%{rotate:14deg}17%{rotate:-8deg}}@keyframes fast-wave{from{rotate:-12deg}to{rotate:20deg}}@keyframes blink{0%,43%,47%,100%{scale:1 1}45%{scale:1 .12}}@keyframes cloud-drift{0%,100%{translate:0 0}50%{translate:12px 0}}@keyframes twinkle{0%,100%{scale:1;opacity:.5}50%{scale:1.2;opacity:1}}@keyframes greet-hop{0%,100%{translate:0 0;scale:1}25%{translate:0 3px;scale:1.07 .93}55%{translate:0 -16px;scale:.97 1.03}80%{translate:0 1px;scale:1.03 .97}}@keyframes crew-pop{from{scale:0}to{scale:1}}@keyframes current-bounce{0%,80%,100%{translate:0 0}90%{translate:0 -7px}}@keyframes coach-cheer{0%,100%{translate:0 0}50%{translate:0 -8px}}@keyframes coach-think{0%,100%{rotate:0}50%{rotate:10deg}}@keyframes answer-pop{from{scale:.97}to{scale:1}}@keyframes answer-wiggle{25%{translate:-3px 0}75%{translate:3px 0}}@keyframes trophy-pop{from{scale:.5;rotate:-20deg}to{scale:1;rotate:0}}@keyframes confetti-fall{0%{translate:0 0;opacity:1}90%{opacity:1}100%{translate:10px 420px;rotate:220deg;opacity:0}}@keyframes medal-sway{0%,100%{rotate:-5deg}50%{rotate:5deg}}@media(min-width:600px){.cartoon-cover h1{font-size:43px}.cartoon-cover h1>span{font-size:61px}.island-stage{height:330px}.hero-mascot{width:195px;height:195px;bottom:76px}.speech{left:44px;top:25px}.friend{bottom:54px;width:77px;height:77px}.adventure-ticket{margin-top:4px}.crew-strip{margin-top:27px}}@media(max-width:360px){.h5-header{padding-left:16px;padding-right:16px;height:66px}.brand{font-size:14px;gap:4px}.brand-mark{width:30px;height:34px}.brand>span>small{font-size:6px}.header-tools{gap:5px}.header-side,.sound,.motion-switch{width:26px;height:26px}.main{padding:15px 18px 25px}.cartoon-cover{padding:5px 20px 12px}.cartoon-cover h1{font-size:32px;margin-top:20px}.cartoon-cover h1>span{font-size:46px}.cartoon-cover h1>i{font-size:50px}.cover-subtitle{font-size:9px}.island-stage{height:259px;margin:0 -20px}.hero-mascot{width:150px;height:150px;bottom:59px}.speech{font-size:9px;padding:8px 12px;max-width:190px;left:22px;top:17px}.friend{height:58px;width:58px;bottom:45px}.tap-hint{font-size:8px;bottom:13px}.adventure-ticket{gap:9px;font-size:9px;margin-bottom:16px;padding:11px 6px}.adventure-ticket b{font-size:20px}.primary-cta{font-size:15px;min-height:51px}.crew-strip{gap:8px;margin-top:17px}.crew-strip>div{gap:2px}.crew-strip>div>span{width:26px;height:28px}.crew-strip>span{font-size:8px}.map-status{padding:12px;gap:6px}.status-star{font-size:21px}.map-medals>span{width:18px}.map-status>div:nth-child(2){gap:6px}.stop-detail h2{font-size:13px}.map-stop{gap:12px}.stop-character{width:95px;height:95px}.island-base{width:100px}.question-card{padding:20px 14px}.question-card h2{font-size:18px}.quiz-coach p{font-size:10px;padding:10px}.page-title h1{font-size:25px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.page-entry { padding-bottom: env(safe-area-inset-bottom); }
.entry-scene {
  --entry-scene-height: clamp(210px, 32svh, 286px);
  position: relative;
  isolation: isolate;
  overflow: clip;
  height: var(--entry-scene-height);
  border-radius: 21px;
  border: 2px solid #a0b7a2;
  background:
    radial-gradient(ellipse at 56% 24%, #ecf3d2 0, #e1f1d499 24%, transparent 62%),
    linear-gradient(163deg, #d1edf1 2%, #b8dcd0 55%, #8dbfae 100%);
  box-shadow: 0 4px #d5d9b7;
}
.entry-landscape {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100%, calc(var(--entry-scene-height) * 1.34));
  aspect-ratio: 420 / 310;
  transform: translateX(-50%);
}
.entry-water {
  position: absolute;
  inset: 67% -14% -6%;
  pointer-events: none;
  background: radial-gradient(ellipse, #3d746538 8%, transparent 66%);
}
.entry-water i {
  position: absolute;
  left: 50%;
  top: 49%;
  width: 76%;
  height: 73%;
  border: 1.5px solid #e4fcdd8c;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: entry-ripple 6s ease-in-out infinite;
}
.entry-water i:nth-child(2) { width: 85%; height: 90%; animation-delay: -.9s; }
.entry-water i:nth-child(3) { width: 94%; height: 108%; animation-delay: -1.8s; }
.entry-character, .entry-friend {
  position: absolute;
  z-index: 1;
  padding: 0;
  border: 0;
  background: none;
  aspect-ratio: 1;
  transform-origin: 50% 85%;
  filter: drop-shadow(0 5px 0 #3e56451c);
}
.entry-character {
  width: 43%;
  left: 50%;
  bottom: 27%;
  transform: translateX(-50%);
  animation: entry-land .82s cubic-bezier(.18,.66,.31,1) both;
}
.entry-character .wave-arm {
  transform-origin: 84px 51px;
  animation: wave 4s .32s ease-in-out infinite;
}
.entry-friend {
  width: 19%;
  bottom: 20%;
  animation: entry-friend-in .65s .25s ease-out both;
}
.entry-ladybug { left: 16%; transform: rotate(-9deg); }
.entry-sprout { right: 15%; transform: rotate(7deg); animation-delay: .4s; }
.entry-sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.entry-sparks i {
  position: absolute;
  color: #fff8d5;
  font: normal clamp(17px, 4vw, 28px)/1 sans-serif;
  text-shadow: 0 2px #a4794655;
  animation: twinkle 3s ease-in-out infinite;
}
.entry-sparks i:nth-child(1) { top: 23%; left: 27%; }
.entry-sparks i:nth-child(2) { bottom: 45%; right: 19%; animation-delay: -.8s; }
.entry-sparks i:nth-child(3) { top: 12%; right: 33%; font-size: 14px; animation-delay: -1.6s; }
.entry-hello {
  position: absolute;
  z-index: 2;
  left: 62%;
  bottom: 69%;
  padding: 6px 12px;
  border: 1.5px solid #375552;
  border-radius: 13px 13px 13px 3px;
  background: #fff4ce;
  color: #294945;
  font-weight: 800;
  transform: rotate(8deg);
  animation: entry-friend-in .32s ease-out both;
  pointer-events: none;
}
.entry-landscape.is-greeting .entry-character { animation: entry-hop .65s ease both; }
.entry-landscape.is-greeting .entry-character .wave-arm { animation: fast-wave .16s ease-in-out 4 alternate; }
.entry-landscape.is-greeting .entry-sparks i { animation: entry-spark-pop .75s ease-out both; }
.entry-landscape.is-greeting .entry-sparks i:nth-child(2) { animation-delay: .08s; }
.entry-landscape.is-greeting .entry-sparks i:nth-child(3) { animation-delay: .14s; }
.entry-panel { margin-top: 22px; }
.entry-panel h1 { margin: 0 0 12px; font-size: 25px; line-height: 1.4; }
.entry-form { display: grid; margin: 0; }
.entry-form .form-label { margin: 0 0 8px; font-size: 13px; font-weight: 650; }
.entry-form .form-label:not(:first-child) { margin-top: 13px; }
.entry-form input { font-size: 16px; }
.entry-form input::placeholder { color: #667264; }
.entry-help { margin: 8px 0 0; color: #52644e; font-size: 12px; line-height: 1.65; }
.entry-help:first-child { margin-top: 0; }
.entry-form .error { min-height: 23px; font-size: 12px; color: #903d2d; }
.entry-action { width: 100%; font-size: 14px; }
.entry-arrow { font-size: 16px; transition: transform .15s; }
.entry-action:hover:not(:disabled) .entry-arrow { transform: translateX(3px); }
.entry-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 15px;
  margin-top: 8px;
}
.entry-links .textlink, #copy-recovery {
  min-height: 42px;
  align-content: center;
  color: #416760;
  font-size: 12px;
  text-align: left;
  text-underline-offset: 4px;
}
.entry-links .textlink:hover, #copy-recovery:hover { text-decoration: underline; }
.entry-links .textlink[href="#admin"] { margin-left: auto; }
@keyframes entry-land {
  0% { opacity: 0; translate: 0 -34px; scale: .86; }
  55% { opacity: 1; translate: 0 3px; scale: 1.04 .94; }
  78% { translate: 0 -5px; scale: .98 1.02; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}
@keyframes entry-friend-in {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes entry-ripple {
  0%, 100% { opacity: .48; scale: 1; }
  50% { opacity: .88; scale: 1.04; }
}
@keyframes entry-hop {
  0%, 100% { translate: 0 0; scale: 1; }
  20%, 75% { translate: 0 2px; scale: 1.07 .93; }
  46% { translate: 0 -16px; scale: .98 1.03; }
}
@keyframes entry-spark-pop {
  0%, 100% { opacity: .65; scale: 1; }
  42% { opacity: 1; translate: 0 -10px; scale: 1.45; }
}
@media (max-height: 640px) {
  .entry-scene { --entry-scene-height: clamp(174px, 32svh, 205px); }
  .entry-panel { margin-top: 17px; }
}
@media (max-width: 360px) {
  .entry-panel h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #entry-motion { display: none; }
}
#activity-admin:not(:empty) { padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid #d8d3b3; }
.activity-tabs { margin: 16px 0; }
.activity-tabs [aria-pressed="true"] { background: #dbe9c4; border-color: #637c55; }
.activity-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.activity-filters label { font-size: 12px; line-height: 1.5; min-width: 0; }
.activity-filters label[hidden] { display: none; }
.activity-filters input, .activity-filters select {
  display: block; width: 100%; min-width: 0; min-height: 42px; margin-top: 4px; padding: 8px;
  background: #fffdf1; color: inherit; border: 1px solid #bbc8a3; border-radius: 8px; font: inherit;
}
.activity-filters .btn { align-self: end; min-height: 42px; }
.activity-results { font-size: 13px; }
.activity-results .table-wrap { margin-block: 12px; }
.activity-results table { font-size: 12px; }
.activity-results td:first-child { min-width: 105px; max-width: min(46vw, 250px); white-space: normal; }
.activity-link { font-size: 13px; text-align: left; color: #335f58; text-decoration: underline; text-underline-offset: 3px; }
.activity-round summary > span, .activity-round summary > time { display: block; margin-top: 4px; color: #54664c; }
.activity-round ol { margin: 14px 0 0; padding-left: 20px; }
.activity-round li { padding: 12px 0; border-top: 1px solid #dedcc1; line-height: 1.65; }
.activity-round li > strong { display: block; margin: 5px 0; }
.activity-question-state { color: #3e654e; font-weight: 700; }
.activity-meta { color: #56694e; font-size: 12px; }
.activity-options { padding: 0; list-style: none; }
.activity-options li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #dedcc1; }
.activity-options strong { white-space: nowrap; }
.activity-pagination { justify-content: space-between; }
@media (min-width: 760px) {
  .page-admin { max-width: min(1100px, calc(100% - 48px)); padding-bottom: 16px; }
  .page-admin .main { padding-inline: 32px; }
  .page-admin .bottom-nav { display: none; }
  .activity-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .activity-results td:first-child { max-width: 350px; }
}
.account-shortcut {
  display: grid; place-items: center; min-width: 39px; height: 29px; padding-inline: 7px;
  background: #fff9e7; border: 1.5px solid #5f7984; border-radius: 14px; color: #405a5f;
  font-size: 12px; font-weight: 650; box-shadow: 0 2px 0 #a8bfc0;
}
.recovery-code {
  margin-block: 14px 6px; padding: 12px; border: 1px dashed #637c55; border-radius: 8px;
  color: #304d5b; background: #eef2dc; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere;
}
#copy-recovery { margin-bottom: 8px; }
.logout-actions { margin-top: 10px; }

.stop-marker.starred { background: #f6d17c; color: #40554b; border-color: #6c7550; }
.practice-invite { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 14px; margin-top: 15px; }
.practice-invite span, .quiz-episode-link { color: #526950; font-size: 11px; }
.quiz-episode-link { margin-top: 7px; }
.practice-panel {
  margin-top: 16px;
  padding: 15px;
  border: 1.5px solid #a9bc99;
  border-radius: 13px;
  background: #f1f5e6;
}
.practice-panel h3 { margin: 0; font-size: 15px; }
.practice-panel > p { margin: 9px 0 13px; font-size: 13px; line-height: 1.65; }
.practice-panel .option { min-height: 46px; }
.page-quiz .feedback p { margin: 7px 0; }
.page-quiz .feedback details { margin-top: 7px; }
.score > span { font-size: 24px; color: #74866b; }
.perfect-star {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border: 1px solid #bc9b5a;
  border-radius: 20px; background: #f9e4a6; color: #5f481f; font-weight: 700;
}
.perfect-star span { color: #9b6613; }
.island-clue {
  text-align: left; padding: 14px 16px; margin: 17px 0 0; border: 1px dashed #aabe9b;
  border-radius: 13px; background: #eff3dd; color: #3f5947; font-size: 12px; line-height: 1.65;
}
.island-clue p { margin: 4px 0 0; }
.result-actions { justify-content: center; margin: 23px 0; }
.activity-practice {
  border-left: 2px solid #b3c69e; margin-top: 8px; padding: 3px 0 3px 9px; color: #466247;
}

.admin-mode-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 17px 0 24px; }
.admin-mode-links a[aria-current="page"] { background: #dcecd0; border-color: #718f78; }
.test-workbench-form {
  border: 1px solid #d0d5b5; border-radius: 15px; background: #fffbed; padding: 18px;
}
.test-scenarios { margin: 0; padding: 0; border: 0; min-width: 0; }
.test-scenarios legend { margin-bottom: 12px; font-size: 15px; font-weight: 700; }
.test-scenario-grid, .test-field-grid {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px;
}
.test-scenario {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: 1px solid #b9c7a7; border-radius: 9px; background: #fffdf3;
  min-height: 44px; color: #364f45; font-size: 13px; cursor: pointer;
}
.test-scenario input { width: 15px; height: 15px; padding: 0; margin: 0; accent-color: #4f7659; flex: none; }
.test-scenario:has(input:checked) { color: #294d34; font-weight: 650; background: #e6f1d9; border-color: #759478; }
#test-scenario-description { margin: 12px 0 16px; color: #4b634e; font-size: 13px; line-height: 1.65; }
.test-field-grid label { display: grid; gap: 6px; min-width: 0; color: #3d5847; font-size: 13px; }
.test-field-grid input, .test-field-grid select {
  width: 100%; min-width: 0; min-height: 43px; padding: 7px 9px;
  background: #fffdf1; border: 1px solid #bbc8a3; border-radius: 8px; color: inherit; font: inherit;
}
.test-run-result:not(:empty) {
  margin: 14px 0; padding: 13px 15px; background: #e9f0d8;
  color: #345647; border: 1px solid #a9bd99; border-radius: 11px;
}
.test-run-result p { margin: 0 0 9px; }
.test-run-list { list-style: none; padding: 0; margin: 0; }
.test-run-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #d8d3b3; color: #345047;
}
.test-run-list p { margin: 4px 0 0; font-size: 12px; line-height: 1.55; color: #56694e; }
.test-run-list a { flex: none; font-size: 12px; text-decoration: underline; }
@media(min-width:760px) {
  .test-scenario-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .test-field-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

/* Episode metadata and original viewing links */
.video-copy small { font-size: 11px; color: #596c58; }
.page-video .page-title h1 { text-wrap: balance; }
.episode-source { margin-top: 14px; }
.episode-source-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.episode-source-actions .primary-cta { flex: 1 1 190px; min-height: 48px; font-size: 15px; }
.episode-source-actions .secondary { flex: 1 0 auto; min-height: 48px; font-size: 14px; }
.episode-source .hint { margin: 10px 0 0; font-size: 13px; color: #596c58; }
