/* Illustrated, full-scene game skin. 1280 × 720 stage uses the original game's scale-to-fit pattern. */
:root{color:#573113;background:#102e38;--green:#138b43;--gold:#ffd550;--muted:#725237;font-family:"Microsoft JhengHei","PingFang TC",sans-serif;font-weight:700}
body{overflow:hidden;background:#102e38}.world{position:absolute;left:50%;top:50%;width:1280px;height:720px;min-height:0;max-width:none;padding:0 28px;overflow:hidden;transform:translate(-50%,-50%);transform-origin:center;background:linear-gradient(#073e6720,#0b63411a),url('assets/images/fantasy-world.png') center/cover no-repeat;box-shadow:0 0 80px #0008}.world:after{content:"";pointer-events:none;position:absolute;inset:0;box-shadow:inset 0 0 35px #062c3844;z-index:8}.topbar{height:91px;position:relative;z-index:10;border:0;align-items:center}.brand{color:#fff03a;font-size:31px;letter-spacing:1px;line-height:1.15;filter:drop-shadow(0 3px 0 #143d5c);text-shadow:-2px -2px 0 #165b91,2px -2px 0 #165b91,-2px 2px 0 #165b91,2px 2px 0 #165b91,0 4px 0 #103b64}.brand small{color:#fffbe4;font-size:12px;letter-spacing:3px;text-shadow:0 2px 3px #163c26;margin-top:5px}.brand-icon{background:linear-gradient(#fff995,#ffad16);color:#fffceb;border:3px solid #fff6b0;box-shadow:0 3px 0 #b96818;border-radius:50%;width:48px;height:48px;font-size:31px;text-shadow:0 2px 2px #cf740d}.tools{gap:9px}.tools button{background:linear-gradient(#39c4ff,#087ce1);border:3px solid #fff8dd;color:white;border-radius:19px;box-shadow:0 4px 0 #0a5da4,0 5px 12px #001e3944;text-shadow:0 2px 2px #08559e;font-size:15px;padding:10px 14px;min-height:48px}.tools button[aria-pressed=true]{background:linear-gradient(#52d98e,#159b51)}.scene{min-height:0;height:596px;position:relative;animation:appear .3s ease}footer{height:33px;position:relative;z-index:3;justify-content:center;color:#fffde7;text-shadow:0 2px 4px #123723;letter-spacing:1px;font-size:12px;border:0;padding:7px 0;gap:40px;background:#124e4b88;border-radius:12px}.primary{background:linear-gradient(#81ef66 0%,#28b745 45%,#098a36 85%);color:#fff;border:4px solid #fff6b0;border-radius:22px;box-shadow:inset 0 2px 0 #ffffffa6,0 6px 0 #086730,0 9px 15px #05291f55;text-shadow:0 2px 2px #1a7425;font-weight:900;font-size:25px;min-height:64px;gap:16px;padding:14px 30px}.primary:hover{background:linear-gradient(#b4ff7e,#33c857 55%,#0c963c);box-shadow:inset 0 2px 0 #fff9,0 6px 0 #086730,0 0 22px #fff397}.secondary,.back,.pause{background:linear-gradient(#48caff,#0879e4);color:white;border:3px solid #fff6cc;border-radius:17px;box-shadow:inset 0 2px 0 #ffffff8a,0 4px 0 #125c94;text-shadow:0 2px 2px #075483;min-height:46px;padding:9px 16px;font-size:17px}.secondary:hover,.back:hover,.pause:hover{background:linear-gradient(#77ddff,#198bee);border-radius:17px}.tag{background:linear-gradient(#ffe3a1,#f4bc60);border:2px solid #b98037;border-radius:9px;color:#764620;font-size:14px;padding:6px 13px;box-shadow:inset 0 1px 0 #fff8}.ribbon{display:inline-block;border-radius:8px;background:linear-gradient(#eaaa4c,#ad5e26);color:#fff8da;box-shadow:0 3px 0 #78451c,0 0 0 2px #f4d38b;text-shadow:0 2px 1px #7b3f17;letter-spacing:3px;padding:9px 25px;font-size:17px}
.fantasy-home{height:100%;position:relative}.home-banner{position:absolute;top:20px;left:270px;right:70px;text-align:center}.game-title{font-size:91px;font-weight:1000;letter-spacing:4px;line-height:1.2;margin:18px 0 8px;color:#ffdf3f;-webkit-text-stroke:2px #8d4c11;text-shadow:0 5px 0 #ba751a,0 8px 0 #5e3b19,4px 0 0 white,-4px 0 0 white,0 -4px 0 white,0 0 20px #fff9}.game-title span{color:#53d8ff;-webkit-text-stroke:2px #075d98;text-shadow:0 5px 0 #1686b8,0 8px 0 #124d75,4px 0 0 white,-4px 0 0 white,0 -4px 0 white}.home-banner p{display:inline-block;background:#164e3cbb;color:#fffee2;padding:8px 22px;border-radius:20px;font-size:20px;letter-spacing:2px;border:1px solid #ffefa677}.home-explorer{position:absolute;height:520px;width:355px;object-fit:contain;bottom:-35px;left:5px;filter:drop-shadow(0 10px 8px #0b3a3766);animation:explorer-idle 5s ease-in-out infinite}.home-start{position:absolute;left:430px;top:332px;text-align:center;width:600px}.home-start .primary{font-size:34px;min-width:330px;min-height:85px;background:linear-gradient(#ffe769,#ffb51e 45%,#ec8013);border-color:#fff6c8;box-shadow:inset 0 2px 0 #fff9,0 7px 0 #a84c17,0 10px 20px #25291466;text-shadow:0 2px 2px #a54d0d}.welcome-bubble{display:block;color:#285e36;font-size:22px;background:#fffdec;border:3px solid #85a34c;border-radius:22px;padding:12px 25px;width:max-content;margin:0 auto 23px;box-shadow:0 4px 0 #496c2944}.adventure-badges{display:flex;gap:12px;justify-content:center;margin-top:30px}.adventure-badges span{border:2px solid #fff4ba;border-radius:12px;background:linear-gradient(#fffdf0,#ffe0a2);padding:10px 15px;color:#835027;box-shadow:0 3px 0 #94713c66;font-size:15px}
.adventure-game{height:100%}.game-top{height:76px;padding:0 8px 11px;gap:17px;display:flex}.back,.pause{font-size:15px;padding:9px 13px;min-height:44px}.stage-sign{background:linear-gradient(#f5d28e,#d49a4e);border:3px solid #9b622c;border-radius:11px;min-width:135px;text-align:center;transform:rotate(-2deg);box-shadow:inset 0 0 0 2px #fff4b5,0 4px 8px #42351655;padding:4px 13px}.stage-sign small{font-size:13px;display:block;letter-spacing:3px}.stage-sign b{display:block;font-size:19px}.progress-group{background:#fff8dbe8;padding:8px 15px;border:3px solid #c08a40;box-shadow:inset 0 0 0 2px white,0 3px 5px #28452e55;border-radius:25px;flex:1}.progress-group>div{font-size:12px;margin-bottom:5px;color:#865629}.progress-group progress{height:15px;border:2px solid #8eab48;background:#afd18f;border-radius:12px;accent-color:#50dc58}progress::-webkit-progress-bar{background:#c3dc97}progress::-webkit-progress-value{background:linear-gradient(#9aff7d,#2bce69)}.game-stat{background:linear-gradient(#386b72,#204e60);color:white;border:3px solid #fff2a4;border-radius:25px;padding:7px 14px;gap:13px;box-shadow:0 3px 5px #11392e55}.game-stat>span:first-child{color:#ffdd36;font-size:27px;text-shadow:0 2px 2px #a67410}.clock{color:white;font-size:14px}.game-stage{height:505px;display:grid;grid-template-columns:220px 1fr;gap:16px;position:relative}.companion{position:relative;height:100%;text-align:center;align-self:end;z-index:2}.companion>img{position:absolute;bottom:0;left:-24px;width:260px;height:410px;object-fit:contain;filter:drop-shadow(0 8px 6px #173c3155);animation:explorer-idle 5s ease-in-out infinite}.speech-bubble{position:absolute;left:7px;top:15px;width:205px;transform:rotate(-4deg);font-size:20px;line-height:1.45;color:#96501d;background:#fff9df;border:3px solid #b88b44;border-radius:45% 45% 43% 38%;padding:18px 10px;box-shadow:0 4px 0 #64823c55}.speech-bubble:after{content:"";position:absolute;bottom:-14px;right:45px;border-width:15px 8px 0;border-style:solid;border-color:#b88b44 transparent transparent;transform:rotate(-20deg)}.companion-name{position:absolute;bottom:0;left:8px;width:195px;color:#fff8cc;font-size:17px;background:linear-gradient(#b7813b,#855220);border:3px solid #f7d895;border-radius:13px;padding:6px;box-shadow:0 3px 0 #583c1b}.question-panel{width:auto;max-width:none;margin:0;padding:15px 22px 16px;height:505px;position:relative;background:linear-gradient(100deg,#f8e0a5e8,#fff9e9f5 25%,#fff5d5f5 75%,#edca7be8);border:7px solid #b8772a;border-radius:24px;box-shadow:inset 0 0 0 3px #ffe4a3,0 0 0 3px #ffe7a7,0 9px 0 #654316,0 15px 22px #17412f66;text-align:center}.question-panel:before,.question-panel:after{content:"✦";position:absolute;color:#ffeaa1;text-shadow:0 2px 0 #8b4e10;font-size:25px;top:3px;pointer-events:none}.question-panel:before{left:3px}.question-panel:after{right:3px}.question-heading{height:43px;display:flex;justify-content:space-between}.question-tools .secondary{font-size:15px;min-height:41px;padding:7px 14px}.question-tools .secondary:last-child{background:linear-gradient(#ffe870,#f9af24);box-shadow:0 4px 0 #ae6b15;text-shadow:0 2px 1px #b07713}.question-scroll{height:87px;display:flex;gap:20px;align-items:center;justify-content:center;margin:6px 0 13px;border:2px solid #dfb973;border-radius:13px;background:linear-gradient(#fffdf1,#f9e4b6);box-shadow:inset 0 2px 0 white,0 3px 0 #c49a5c33}.question-panel h1{font-size:28px;margin:0;letter-spacing:1px;font-weight:900;color:#583b1d}.question-panel h1 em{font-style:normal;color:#0575d1;font-size:38px;text-shadow:0 2px 0 #fff}.listen-target{margin:0;padding:8px 16px;min-height:49px;background:linear-gradient(#56cdff,#0b8cdd);color:white;border:3px solid #fff6cc;box-shadow:0 3px 0 #246795;border-radius:15px;font-size:19px;font-weight:800}.action-art{display:block;background-size:500% 200%;background-repeat:no-repeat;aspect-ratio:1;width:100%;background-color:#fff}.question-picture{width:76px;height:76px;flex:none;border:2px solid #d1b678;border-radius:10px}.choices{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;max-width:none;margin:auto}.choice{min-height:0;height:210px;position:relative;overflow:visible;border:4px solid #d3a85e;border-radius:19px;padding:9px;background:linear-gradient(#fffdfa,#fff6df);box-shadow:inset 0 0 0 2px #fff,0 6px 0 #93682e,0 8px 8px #5a4a2733;display:flex;align-items:center;justify-content:center}.choice .action-art{height:181px;width:181px;border-radius:12px;flex:none}.choice:not(:disabled):hover{border-color:#ffa900;background:#fff9e9;transform:translateY(-4px);box-shadow:0 6px 0 #bd7f24,0 0 25px #ffdf70}.choice-number{z-index:1;width:28px;height:28px;top:5px;left:6px;background:linear-gradient(#fff9e2,#f0d39a);border:2px solid #c9a368;font-size:14px;color:#986a27}.choice-word{font-size:43px;padding:30px 10px;color:#51391f}.choice.correct{border:5px solid #ffc900;box-shadow:inset 0 0 0 2px white,0 5px 0 #d39217,0 0 0 4px #fff29b,0 0 30px 10px #ffe548a8;background:#fffdf0;animation:star-pop .5s ease}.choice.correct .choice-number{background:#39ad47;border-color:#f9ffc1;color:white}.reward-sparkles{position:absolute;inset:-22px -14px auto;color:#fff335;font-size:31px;text-shadow:0 2px 0 #eaa40b,0 0 10px white;pointer-events:none;letter-spacing:38px;animation:sparkle 1.8s ease-in-out infinite;white-space:nowrap}.choice.tried{opacity:.5;border-style:dashed;box-shadow:0 3px 0 #a99b76}.feedback{min-height:51px;height:51px;margin:12px 0 5px;padding:5px 9px;color:#886a42;font-size:14px;gap:1px 12px}.feedback strong{font-size:18px}.feedback.success{background:#edf7cb;border:1px solid #aaca6c;color:#38752e}.feedback.encourage{background:#ffe8b9;border:1px solid #e4b468;color:#9e5c24}.game-bottom{height:43px;min-height:0;display:flex;justify-content:space-between}.next{font-size:20px;min-height:43px;height:43px;padding:4px 29px;border-width:3px;border-radius:16px}.next:disabled{color:#7b835b;background:linear-gradient(#e7eac8,#ced7af);border-color:#f5efca;box-shadow:0 4px 0 #8a9c76;text-shadow:none}.game-bottom>span{font-size:12px;max-width:55%}
.fantasy-level{height:100%;position:relative}.wood-title{position:absolute;top:8px;left:390px;right:230px;text-align:center;background:linear-gradient(#f7da97,#e9b85c);border:5px solid #a76827;box-shadow:inset 0 0 0 2px #fff3c4,0 5px 0 #70501d;border-radius:16px;padding:10px}.wood-title small{letter-spacing:5px;font-size:13px}.wood-title h1{font-size:27px;margin:3px 0}.fantasy-level>.companion{position:absolute;width:270px;height:445px;left:23px;bottom:25px}.fantasy-level .companion>img{height:365px;width:270px;left:0}.fantasy-level .speech-bubble{top:0;left:45px}.fantasy-level .companion-name{left:45px}.level-route{position:absolute;top:300px;left:300px;font-size:47px;letter-spacing:18px;color:#ffe266;text-shadow:0 3px 3px #5f641c;transform:rotate(-15deg)}.level-card{position:absolute;width:390px;right:205px;top:140px;background:linear-gradient(#fffaf0,#ffebb7);border:6px solid #b57b32;border-radius:23px;padding:21px 23px;box-shadow:inset 0 0 0 3px #fff8d9,0 8px 0 #795020,0 12px 20px #12372d77}.level-number{position:absolute;top:-30px;left:-25px;width:67px;height:67px;background:linear-gradient(#ffe87e,#fdb420);border:4px solid #fff7c7;border-radius:50%;box-shadow:0 4px 0 #ad721d;display:grid;place-items:center;color:#fff;font-size:39px;text-shadow:0 2px 2px #bd7415}.level-card h2{font-size:35px;margin:11px 0}.level-sample{display:flex;justify-content:center;gap:12px;margin:6px auto 15px}.level-sample .action-art{width:103px;height:103px;border:2px solid #d9bb7c;border-radius:14px}.mode-tags{justify-content:center}.mode-tags span{background:#e5f7df;color:#44853c;border:1px solid #b1ce8d;padding:6px;font-size:12px}.record{margin-top:15px;padding:12px 0;color:#9b6f23;border-color:#cfb17b}.level-card .primary{min-height:53px;height:53px;font-size:23px}.map-caption{position:absolute;bottom:0;right:232px;background:#124d3899;color:#fff9cb;padding:5px 18px;border-radius:13px;font-size:15px}.fantasy-result{height:100%;position:relative}.fantasy-result>.companion{position:absolute;left:0;bottom:0;width:265px;height:470px}.fantasy-result .companion>img{height:390px;width:290px;left:-10px}.fantasy-result .speech-bubble{left:35px}.result-board{position:absolute;left:290px;right:70px;top:10px;padding:22px 30px;text-align:center;background:linear-gradient(#fff5d8ef,#ffe6a8f5);border:6px solid #b77929;border-radius:28px;box-shadow:inset 0 0 0 3px #fff4ba,0 8px 0 #754d1d,0 12px 20px #1a482877}.result-stars{font-size:51px;letter-spacing:17px;color:#ffd522;text-shadow:0 3px 0 #d87c13,0 0 12px #fff;line-height:1;margin-top:12px}.result-board h1{font-size:43px;margin:8px 0;color:#dc5730;text-shadow:0 2px 0 white}.result-board>p{font-size:16px;margin:0}.result-board .treasure{height:105px;margin:0}.result-stats{background:#fffbeb;border:2px solid #dab571;margin:10px 0 20px;padding:15px 6px;border-radius:18px}.result-stats strong{font-size:29px;color:#b17820}.result-stats span{font-size:13px;margin-top:5px}.result-stats small{font-size:15px}.result-actions .primary{font-size:21px;min-height:52px;padding:9px 23px}.result-actions .secondary{font-size:20px}.modal{background:linear-gradient(#fff8df,#ffe9b2);border:6px solid #b97c34;box-shadow:inset 0 0 0 3px #fff5c9,0 10px 0 #65491f,0 20px 80px #0007}.modal-shade{background:#082b43bb}.modal h2{color:#71451e}.modal-star{color:#ffc62e;text-shadow:0 2px 0 #af721c}.modal .primary{font-size:22px}.modal p{color:#775634}
.question-panel:has(.question-picture) .question-scroll{height:140px}.question-panel:has(.question-picture) .question-picture{width:125px;height:125px}.question-panel:has(.question-picture) .choice{height:157px}
.feedback-fx{position:fixed;z-index:150;pointer-events:none;white-space:nowrap;font-size:31px;font-weight:900;color:#fff34c;text-shadow:0 3px 0 #b65d19,0 0 8px white;animation:feedback-burst .9s ease both}.feedback-fx.wrong{color:#fff9d8;font-size:25px;text-shadow:0 2px 3px #795833}.feedback-fx.correct{background:none}.feedback-fx.wrong{background:none}@keyframes feedback-burst{0%{opacity:0;transform:translate(-50%,-20%) scale(.3)}35%{opacity:1;transform:translate(-50%,-70%) scale(1.2)}75%{opacity:1}100%{opacity:0;transform:translate(-50%,-180%) scale(1)}}
@keyframes explorer-idle{50%{transform:translateY(-5px) rotate(.4deg)}}@keyframes sparkle{50%{opacity:.4;transform:translateY(-5px) scale(1.05)}}
@media(max-width:680px){body{overflow:auto}.world{position:relative;left:auto;top:auto;width:100%;height:auto;min-height:100dvh;padding:0 12px;transform:none!important;background-attachment:fixed}.topbar{height:auto;min-height:118px;padding:12px 0;gap:13px}.brand{font-size:25px}.brand-icon{width:38px;height:38px;font-size:25px}.brand small{font-size:10px}.tools button{font-size:12px;padding:8px 10px;min-height:42px;border-width:2px}.scene{height:auto;min-height:calc(100dvh - 163px)}footer{height:auto;min-height:33px;gap:8px;font-size:9px}.fantasy-home{height:740px}.home-banner{top:25px;left:0;right:0}.ribbon{font-size:12px;letter-spacing:1px;padding:8px 14px}.game-title{font-size:49px;letter-spacing:1px;-webkit-text-stroke:1px #8d4c11}.game-title span{-webkit-text-stroke:1px #075d98}.home-banner p{font-size:14px;letter-spacing:0;padding:7px 10px}.home-explorer{height:390px;width:270px;left:50%;transform:translateX(-50%);bottom:115px;animation:none}.home-start{left:0;top:auto;bottom:24px;width:100%}.welcome-bubble{font-size:16px;padding:8px 12px;margin-bottom:12px}.home-start .primary{font-size:25px;min-width:260px;min-height:63px}.adventure-badges{gap:5px;margin-top:20px}.adventure-badges span{font-size:10px;padding:6px 9px}.game-top{height:auto;gap:8px;flex-wrap:wrap;padding:8px 0 15px}.stage-sign{min-width:100px;flex:1}.stage-sign b{font-size:16px}.stage-sign small{font-size:10px}.progress-group{order:4;flex-basis:100%}.game-stat{gap:7px;padding:6px 9px}.game-stat>span:first-child{font-size:22px}.clock{font-size:12px}.back,.pause{font-size:12px;padding:7px 10px;min-height:42px}.game-stage{display:block;height:auto}.game-stage>.companion{display:none}.question-panel{height:auto;min-height:470px;padding:14px 10px;border-width:5px;border-radius:19px;margin-bottom:22px}.question-panel h1{font-size:22px;letter-spacing:0}.question-panel h1 em{font-size:29px}.question-heading{height:40px}.question-heading .tag{font-size:11px;padding:6px}.question-tools{gap:5px}.question-tools .secondary{font-size:12px;padding:6px 8px;min-height:37px}.question-scroll{height:auto;min-height:96px;padding:11px 5px;margin-bottom:18px;flex-wrap:wrap;gap:10px}.question-picture{width:96px;height:96px}.choices{gap:8px}.choice{height:auto;min-height:112px;padding:4px;border-width:3px;border-radius:12px}.choice .action-art{width:100%;height:auto;aspect-ratio:1}.choice-word{font-size:27px;padding:35px 0 20px}.choice-number{width:22px;height:22px;font-size:10px;top:2px;left:2px}.feedback{height:auto;min-height:85px;font-size:13px;margin:17px 0 10px}.feedback strong{font-size:16px}.game-bottom{height:auto;min-height:46px}.next{font-size:18px;padding:6px 21px;min-height:46px}.reward-sparkles{font-size:19px;letter-spacing:3px;inset:-15px -7px auto}.fantasy-level{height:850px}.wood-title{left:10px;right:10px;top:20px}.wood-title h1{font-size:24px}.fantasy-level>.companion{height:230px;width:170px;left:0;bottom:0}.fantasy-level .companion>img{height:220px;width:150px}.fantasy-level .companion-name,.fantasy-level .speech-bubble,.level-route{display:none}.level-card{top:165px;left:50%;transform:translateX(-50%);right:auto;width:calc(100% - 25px);padding:25px 17px}.map-caption{bottom:115px;right:0;font-size:11px;max-width:190px}.fantasy-result{min-height:740px}.fantasy-result>.companion{display:none}.result-board{left:3px;right:3px;top:20px;padding:24px 12px}.result-stars{font-size:43px}.result-board h1{font-size:34px}.result-stats strong{font-size:24px}.result-stats small{font-size:12px}.result-actions{gap:10px}.result-actions .primary,.result-actions .secondary{font-size:17px;padding:9px 13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
