﻿:root{--navy:#172d4c;--ink:#213651;--blue:#1766ad;--teal:#10a9a1;--gold:#ffc84f;--paper:#fffef6;--muted:#66788c;--radius:24px;font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:var(--ink);font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:#142b46}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible{outline:4px solid #ffbf39;outline-offset:4px}button{touch-action:manipulation}#game{height:100dvh;min-height:640px;display:flex;flex-direction:column;position:relative;overflow:hidden}#screen{flex:1;min-height:0;position:relative;overflow:hidden;background:#d1eff7}.topbar{height:78px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 28px;background:linear-gradient(110deg,#162943,#234467);color:white;z-index:30;border-bottom:3px solid #e5bb60;box-shadow:0 3px 20px #071c3430}.brand{display:flex;align-items:center;gap:10px;background:none;border:0;color:#fff;text-align:left;font-weight:900;font-size:21px;letter-spacing:1px;white-space:nowrap}.brand-symbol{color:var(--gold);font-size:42px}.brand small{display:block;font-size:12px;font-weight:400;opacity:.75;letter-spacing:2px;margin-top:3px}.tools{display:flex;gap:8px}.tools button{border:1px solid #ffffff40;background:#ffffff10;border-radius:10px;color:white;padding:9px 12px;min-height:40px;white-space:nowrap}.tools button:hover{background:#ffffff28}.progress{display:flex;gap:8px;align-items:center}.fragment-slot{width:34px;height:34px;display:grid;place-items:center;border:1px solid #ffffff4d;border-radius:9px;background:#ffffff08;color:#c4d3df;font-size:15px}.fragment-slot.found{background:linear-gradient(140deg,#fff0a0,#f3ac20);color:#694d12;border-color:#ffde72;box-shadow:0 0 12px #ffc83342}.progress-label{font-size:13px;color:#e3e9ee;margin-left:4px;white-space:nowrap}.world{background-image:linear-gradient(0deg,#163c6012,#c6e7f900),url('assets/stadium.png');background-size:cover;background-position:center;position:relative}.eyebrow{font-size:14px;letter-spacing:3px;font-weight:800;color:var(--blue)}.btn{border:0;border-radius:14px;padding:14px 25px;font-size:19px;font-weight:800;min-height:55px;box-shadow:0 5px 0 #062c5014;transition:transform .15s,filter .15s}.btn:hover{filter:brightness(1.06);transform:translateY(-2px)}.btn:active{transform:translateY(1px)}.primary{background:linear-gradient(135deg,#087eb8,#065294);color:#fff}.gold{background:linear-gradient(135deg,#ffe782,#ffc34e);color:#43300c}.light{background:#fffdf3;color:var(--ink);border:1px solid #d5e1e9}.ghost{background:#ffffffd9;color:var(--navy);border:1px solid #ffffffb3}.button-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.quiet{background:none;border:0;text-decoration:underline;text-underline-offset:4px;color:var(--muted);padding:9px;font-size:15px}.pill{display:inline-block;border-radius:100px;padding:7px 16px;background:#e9f4f5;color:#0b7a7d;font-weight:800;font-size:15px}.scene-mark{position:absolute;z-index:2;top:26px;left:32px;background:#ffffffe8;padding:9px 17px;border-radius:100px;font-size:14px;letter-spacing:2px;box-shadow:0 5px 20px #17335417}.home{height:100%;display:flex;align-items:center;justify-content:center}.home:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0b345c55,#e8f6ff22 45%,#10365144),linear-gradient(0deg,#0c3448a8,transparent 65%)}.home-copy{position:relative;text-align:center;z-index:6;width:min(760px,62%);margin-top:-30px}.home .eyebrow{color:#fff5cc;text-shadow:0 1px 5px #193c53;letter-spacing:6px}.home h1{font-size:clamp(38px,5vw,77px);line-height:1.24;margin:12px 0;color:white;text-shadow:0 4px 0 #183858,0 8px 30px #072c5190;letter-spacing:3px}.home h1 span{color:#ffe299}.home-lead{font-size:22px;color:white;line-height:1.8;text-shadow:0 2px 8px #17394e}.home .button-row{justify-content:center;margin-top:25px}.home-caption{position:absolute;bottom:22px;left:0;right:0;text-align:center;color:#f1f5f5;font-size:14px;z-index:6;letter-spacing:1px}.home-hero{position:absolute;width:32%;left:-3%;bottom:2%;z-index:3;filter:drop-shadow(0 15px 15px #17365b44)}.home-villain{position:absolute;width:37%;right:-6%;bottom:1%;z-index:3;filter:drop-shadow(0 15px 15px #17365b44)}.home-sprite{position:absolute;width:13%;right:22%;top:3%;z-index:5;animation:hovering 3s ease-in-out infinite}.home-emblem{width:146px;height:163px;margin:0 auto -10px;filter:drop-shadow(0 6px 16px #ffd45578)}.home-emblem svg{width:100%;height:100%}.intro{height:100%;isolation:isolate}.intro:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#172a4ea8,transparent 42%);z-index:3;pointer-events:none}.intro-actor{position:absolute;bottom:12%;z-index:4;will-change:left,transform;filter:drop-shadow(0 12px 10px #14385c44)}.intro-hero{width:32%;left:-38%}.intro-villain{width:40%;left:110%}.intro-guide{position:absolute;width:15%;left:14%;top:10%;z-index:5;animation:hovering 2.4s ease-in-out infinite}.intro-emblem{position:absolute;width:230px;height:260px;left:calc(50% - 115px);top:10%;z-index:2;filter:drop-shadow(0 0 26px #ffce42aa)}.intro-emblem svg,.intro-piece svg{width:100%;height:100%}.intro-piece{position:absolute;width:230px;height:260px;left:calc(50% - 115px);top:10%;z-index:5;transition:transform 2.6s cubic-bezier(.18,.68,.17,1),opacity 1s;pointer-events:none}.portal{position:absolute;right:-9%;top:4%;width:31%;height:72%;border-radius:50%;background:radial-gradient(ellipse,#100c39 35%,#522c9f 56%,#973fe247 64%,transparent 70%);opacity:0;transform:scale(.5);filter:drop-shadow(0 0 35px #6838a3);transition:opacity .4s,transform 1s;z-index:1}.portal.open{opacity:.96;transform:scale(1)}.collision{position:absolute;left:46%;top:35%;width:100px;height:100px;background:radial-gradient(circle,#fff9b4,#ffc53376 30%,transparent 70%);opacity:0;z-index:7;pointer-events:none}.collision.on{animation:shieldPulse .65s ease-in-out infinite;opacity:1}.intro-caption{position:absolute;bottom:30px;left:10%;right:10%;z-index:10;background:#fffef4f5;border:2px solid #f7d886;border-radius:20px;padding:18px 24px;box-shadow:0 10px 36px #071a3f3d;display:flex;gap:16px;align-items:center}.speaker{font-size:15px;display:block;color:#1b83a0;margin-bottom:5px;font-weight:900}.intro-caption p{font-size:clamp(19px,2.2vw,31px);font-weight:800;margin:0;line-height:1.5}.intro-controls{position:absolute;right:26px;top:26px;z-index:10;display:flex;gap:10px}.intro-step{position:absolute;left:32px;top:75px;z-index:6;color:var(--ink);font-size:15px;background:#ffffffd9;border-radius:99px;padding:8px 16px}.shake{animation:shake .42s ease-out}.lesson-screen{height:100%;padding:26px 4% 20px;display:flex;flex-direction:column;gap:18px;background:linear-gradient(135deg,#edf8fb,#dceef7 55%,#f2f9fb)}.chapter-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.chapter-heading h1{font-size:30px;margin:5px 0 0}.chapter-count{font-weight:800;color:#367390;background:#fff;padding:10px 20px;border-radius:100px}.lesson-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,.9fr);gap:26px;flex:1;min-height:0}.lesson-art{background:#fff;border:1px solid #cfe4eb;border-radius:26px;box-shadow:0 10px 32px #264c6710;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;position:relative;padding:18px}.lesson-art svg{width:100%;max-height:100%}.lesson-art .visual-holder{width:100%;flex:1;display:grid;place-items:center;min-height:0}.lesson-art .visual-holder svg{height:100%}.example-label{color:#6b7c8e;font-size:12px;position:absolute;bottom:10px;left:20px}.lesson-notes{display:flex;flex-direction:column;justify-content:center;position:relative;padding:4px 0}.guide-portrait{width:125px;align-self:flex-start;max-height:120px;object-fit:contain;filter:drop-shadow(0 8px 10px #2c6b6b22);animation:hovering 3s ease-in-out infinite}.lesson-notes h2{font-size:26px;line-height:1.5;margin:4px 0 12px}.lesson-notes p{font-size:20px;line-height:1.9;margin:0 0 12px}.note-list{list-style:none;margin:5px 0;padding:0}.note-list li{font-size:19px;line-height:1.7;padding:10px 0;border-top:1px solid #c9dde8;display:flex;gap:10px}.note-list li:before{content:"✦";color:#089caa}.lesson-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex:none}.lesson-dots{display:flex;gap:8px}.lesson-dots button{width:12px;height:12px;min-height:12px;padding:0;border-radius:99px;background:#accbd7;border:0}.lesson-dots button.active{background:var(--blue);width:32px}.brief-screen{height:100%;display:grid;place-items:center;padding:28px;background-image:linear-gradient(#122f5885,#123957af),url('assets/stadium.png');background-size:cover;background-position:center}.brief-card{width:min(1060px,95%);background:#fffef5;border-radius:30px;border:3px solid #f3d786;box-shadow:0 22px 90px #09173566;padding:32px;display:grid;grid-template-columns:1.2fr .85fr;gap:28px;align-items:center}.brief-card h1{font-size:36px;margin:12px 0}.brief-card p{font-size:24px;line-height:1.8}.brief-art svg{width:100%}.brief-guide{width:125px;float:left;margin:-30px 10px 0 -20px}.brief-card .button-row{margin-top:25px}.quiz-screen{height:100%;display:flex;flex-direction:column;padding:18px 2% 12px;gap:13px;background-image:linear-gradient(#9ed2ed38,#28527940),url('assets/stadium.png');background-size:cover;background-position:center}.question-banner{background:#fffdf2f5;border:2px solid #e6bc60;border-radius:18px;padding:12px 20px;text-align:center;width:min(1120px,94%);margin:auto;box-shadow:0 6px 18px #31527820;flex:none}.question-banner .eyebrow{font-size:12px;letter-spacing:2px}.question-banner h1{font-size:clamp(20px,2.1vw,32px);line-height:1.45;margin:4px 0}.quiz-arena{display:grid;grid-template-columns:minmax(240px,1fr) minmax(270px,1.25fr) minmax(240px,1fr);gap:18px;flex:1;min-height:0;align-items:stretch}.option-card{background:#fffef8f5;border-radius:24px;border:2px solid #ecce8f;padding:15px;box-shadow:0 8px 28px #15365a2b;display:flex;flex-direction:column;align-items:stretch;min-height:0;transition:transform .2s,box-shadow .2s}.option-card:hover{box-shadow:0 10px 32px #0c487641}.option-letter{font-size:26px;font-weight:900;background:var(--navy);border-radius:12px;align-self:center;color:white;min-width:82px;text-align:center;padding:4px 15px;flex:none}.option-art{flex:1;min-height:60px;max-height:235px;display:grid;place-items:center;margin:8px 0;overflow:hidden}.option-art svg{width:100%;height:100%;max-height:220px}.option-text{font-size:clamp(21px,1.9vw,29px);font-weight:800;line-height:1.5;text-align:center;margin:6px 2px 12px;flex:none}.option-card .btn{width:100%;padding:12px 15px;min-height:54px;font-size:24px;flex:none;background:linear-gradient(135deg,#177bb4,#155392);color:white}.option-card.is-correct{border-color:#19a98d;box-shadow:0 0 0 4px #19b79a44}.battle{position:relative;overflow:visible;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;min-height:0}.battle-label{background:#143251d9;border:1px solid #ffffff3d;border-radius:100px;color:white;font-size:13px;padding:7px 12px;margin:8px 0;white-space:nowrap}.battle-guide{width:29%;max-width:140px;position:absolute;top:5%;left:28%;animation:hovering 3s ease-in-out infinite;filter:drop-shadow(0 8px 6px #15365a20)}.battle-hero{position:absolute;bottom:4%;left:-9%;width:70%;filter:drop-shadow(0 13px 10px #17365b44);animation:breath 4s ease-in-out infinite}.battle-villain{position:absolute;bottom:2%;right:-13%;width:82%;filter:drop-shadow(0 13px 10px #17365b44);animation:breath 4s ease-in-out infinite reverse}.shield-bridge{position:absolute;left:45%;bottom:23%;width:9%;height:30%;border-radius:50%;background:#ffe36445;box-shadow:0 0 25px #ffda3a88;pointer-events:none;animation:shieldPulse 3s infinite}.loot-fly{position:absolute;left:40%;top:40%;font-size:58px;z-index:15;color:#ffd550;animation:loot 1s ease-out both;filter:drop-shadow(0 0 15px #fff3ab)}.dialogue-bar{border:1px solid #e4c17c;border-radius:18px;background:#fffef4f7;box-shadow:0 5px 20px #183a5a25;min-height:82px;display:flex;align-items:center;gap:12px;padding:9px 18px;flex:none;margin:0 auto;width:min(1250px,96%)}.dialogue-bar img{width:72px;height:72px;object-fit:contain;margin-top:-10px;margin-bottom:-5px}.dialogue-copy{flex:1;min-width:0}.dialogue-copy .speaker{font-size:12px;margin-bottom:3px}.dialogue-copy p{font-size:19px;line-height:1.5;margin:0}.dialogue-bar .btn{font-size:17px;padding:10px 17px;min-height:45px}.repair{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:22px;background-image:linear-gradient(#d3edf280,#e6f2f1c9),url('assets/stadium.png');background-size:cover;background-position:center}.repair h1{font-size:34px;margin:4px}.repair-emblem{height:min(40vh,340px);width:300px;filter:drop-shadow(0 12px 20px #577b8129)}.repair-emblem svg{width:100%;height:100%}.repair-caption{background:#fffef3;border:1px solid #e7ce91;border-radius:20px;padding:16px 25px;width:min(920px,96%);display:flex;align-items:center;gap:18px}.repair-caption img{width:100px}.repair-caption p{font-size:22px;line-height:1.8;margin:0}.repair-pieces{position:absolute;inset:0;pointer-events:none}.repair-piece{position:absolute;top:20%;left:calc(50% - 120px);width:240px;height:270px;animation:pieceIn 2s cubic-bezier(.2,.7,.2,1) both}.repair-piece svg{width:100%;height:100%}.repair .button-row{z-index:2}.task-screen{height:100%;padding:25px 4%;background:linear-gradient(120deg,#eaf7f8,#f1f6fb);display:flex;flex-direction:column;gap:18px}.task-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.task-head h1{font-size:32px;margin:5px 0}.task-grid{display:grid;grid-template-columns:1.2fr .85fr;gap:24px;flex:1;min-height:0}.task-card{background:white;border:1px solid #d1e3ea;border-radius:24px;padding:23px 28px;overflow:auto}.task-card h2{font-size:25px;line-height:1.6;margin:4px 0 14px}.task-card p{font-size:20px;line-height:1.8}.task-steps{counter-reset:step;list-style:none;padding:0;margin:0}.task-steps li{padding:14px 0 14px 48px;position:relative;border-bottom:1px solid #dce8ee;font-size:19px;line-height:1.7}.task-steps li:before{counter-increment:step;content:counter(step);position:absolute;left:0;top:17px;background:#e5f4f5;color:#078f94;width:32px;height:32px;text-align:center;border-radius:50%;font-weight:900}.task-aside{display:flex;flex-direction:column;gap:16px;min-height:0}.timer-card{border-radius:24px;background:var(--navy);color:white;padding:23px;text-align:center}.timer-value{font-size:55px;letter-spacing:4px;font-weight:900;font-variant-numeric:tabular-nums;margin:6px 0}.timer-card p{font-size:14px;color:#d2e1ee}.timer-card .btn{font-size:16px;min-height:43px;padding:10px 20px}.criteria{flex:1;background:#fffcf0;border:1px solid #eeddae;border-radius:24px;padding:18px 24px;overflow:auto}.criteria h2{font-size:21px;margin:4px 0 10px}.criteria p{font-size:17px;line-height:1.8;margin:8px 0}.gallery-screen{height:100%;background:linear-gradient(135deg,#e4f5f8,#f4f7f8);padding:24px 4%;display:flex;flex-direction:column;gap:16px}.gallery-screen h1{font-size:32px;margin:5px 0}.works{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;flex:1;min-height:0}.work{background:white;border:1px solid #d2e4ed;border-radius:22px;overflow:hidden;display:flex;flex-direction:column}.work-picture{flex:1;min-height:100px;display:grid;place-items:center;background:linear-gradient(135deg,#f3fafb,#eaf4f5);overflow:hidden;padding:18px}.work-picture img{width:100%;height:100%;object-fit:contain}.work-picture svg{width:70%;height:90%}.work-caption{padding:14px 18px}.work-caption strong{font-size:20px}.work-caption p{font-size:16px;line-height:1.7;color:var(--muted);margin:7px 0}.work-caption .btn{font-size:15px;min-height:40px;padding:9px 16px}.gallery-note{font-size:15px;color:var(--muted);margin:0}.ending{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;isolation:isolate;background-image:linear-gradient(#183d6270,#0f3e5ca8),url('assets/stadium.png');background-size:cover;background-position:center;color:white;padding:20px;overflow:hidden}.ending h1{font-size:clamp(42px,5vw,73px);color:#ffe394;margin:10px 0;text-shadow:0 5px 20px #163553}.ending p{font-size:24px;line-height:1.8;margin:8px 0}.ending-emblem{width:185px;height:205px;filter:drop-shadow(0 0 30px #ffe672);animation:hovering 3s infinite}.ending-emblem svg{width:100%;height:100%}.ending .button-row{margin-top:20px;justify-content:center}.ending-sprite{position:absolute;width:160px;left:8%;top:16%;animation:hovering 3s infinite;z-index:-1}.ending-hero{position:absolute;width:29%;right:-2%;bottom:4%;z-index:-1;filter:drop-shadow(0 10px 15px #15365b66)}.confetti{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}.confetti i{position:absolute;top:-20px;left:var(--x);width:12px;height:23px;background:var(--c);animation:confetti var(--d) linear infinite;animation-delay:var(--delay);transform:rotate(35deg)}dialog{max-width:min(1000px,94vw);width:900px;max-height:91dvh;overflow:auto;border:0;border-radius:27px;padding:0;color:var(--ink);box-shadow:0 25px 100px #06152f66;background:#fffef6}dialog::backdrop{background:#0a234a99;backdrop-filter:blur(4px)}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:20px 25px;background:#e8f4f5;border-bottom:1px solid #d5e6e9}.modal-head h2{font-size:24px;margin:0}.close-modal{border:0;background:white;border-radius:50%;width:37px;height:37px;font-size:26px;color:var(--muted)}.modal-body{padding:23px 28px}.hint-layout{display:grid;grid-template-columns:110px 1fr;gap:14px;align-items:center}.hint-layout img{width:110px}.hint-layout p{font-size:23px;line-height:1.8;margin:0}.hint-visual{max-height:260px;display:grid;place-items:center;padding:10px 35px;margin:12px 0;background:#f2f7f8;border-radius:18px;overflow:hidden}.hint-visual svg{width:100%;max-height:225px}.modal-actions{display:flex;justify-content:flex-end;gap:12px;padding:5px 28px 24px;flex-wrap:wrap}.teacher-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.teacher-section h3{font-size:20px;margin:4px 0 14px}.form-label{display:block;font-size:16px;margin:14px 0}.form-label input[type=text]{width:100%;padding:11px 13px;border-radius:10px;border:1px solid #b8ccd7;margin-top:6px;background:white}.toggle-label{display:flex;align-items:center;gap:10px;margin:16px 0;font-size:16px}.toggle-label input{width:19px;height:19px}.teacher-nav{display:grid;gap:8px}.teacher-nav button{text-align:left;padding:10px 14px;border:1px solid #ccdfe7;border-radius:10px;background:#fff;font-size:16px}.teacher-note{font-size:14px;line-height:1.9;color:var(--muted)}.teacher-footer{border-top:1px solid #d7e6eb;padding-top:14px;margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:10px}.status-chip{font-size:13px;padding:7px 12px;border-radius:9px;background:#eef6f5;color:#36756e}.critical{color:#ad3b30}.error-screen{padding:50px;background:white;height:100%;font-size:22px}.pause-overlay{position:absolute;inset:78px 0 0;z-index:45;display:grid;place-items:center;background:#123353d9;backdrop-filter:blur(10px);text-align:center;color:white}.pause-overlay[hidden]{display:none}.pause-overlay h1{font-size:42px}.pause-overlay p{font-size:20px}.pause-overlay .eyebrow{color:#ffe09b}.paused *{animation-play-state:paused!important}.reduced-motion *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}.toast{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);border-radius:12px;padding:12px 22px;background:#173252ec;color:white;z-index:80;font-size:17px;box-shadow:0 8px 30px #06172c33}.repair-piece:nth-child(1){--px:-420px;--py:-70px}.repair-piece:nth-child(2){--px:400px;--py:50px}.repair-piece:nth-child(3){--px:-300px;--py:260px}.repair-piece:nth-child(4){--px:330px;--py:-170px}.repair-piece:nth-child(5){--px:180px;--py:260px}.repair-piece:nth-child(6){--px:-90px;--py:300px}@keyframes hovering{50%{transform:translateY(-12px) rotate(2deg)}}@keyframes breath{50%{transform:translateY(-3px)}}@keyframes shieldPulse{50%{opacity:.6;filter:brightness(1.4)}}@keyframes loot{to{transform:translate(70px,-230px) scale(.15);opacity:0}}@keyframes shake{20%,60%{transform:translateX(-5px)}40%,80%{transform:translateX(5px)}}@keyframes pieceIn{from{transform:translate(var(--px),var(--py)) rotate(20deg);opacity:0}to{transform:translate(0,0);opacity:1}}@keyframes confetti{to{top:110%;transform:rotate(360deg) translateX(60px)}}
@media(min-width:1700px){.topbar{height:88px;padding:0 38px}.brand{font-size:25px}.brand small{font-size:14px}.tools button{font-size:17px;padding:10px 16px}.fragment-slot{width:40px;height:40px}.lesson-screen{padding-top:32px}.lesson-notes h2{font-size:32px}.lesson-notes p{font-size:25px}.note-list li{font-size:24px}.guide-portrait{width:150px;max-height:150px}.btn{font-size:22px;padding:16px 30px}.dialogue-copy p{font-size:24px}.dialogue-bar{min-height:98px}.dialogue-bar img{width:90px;height:90px}.option-art{max-height:330px}.option-art svg{max-height:310px}.option-text{font-size:31px}.option-card{padding:20px}.option-card .btn{font-size:28px;min-height:64px}.question-banner h1{font-size:35px}.task-card p{font-size:25px}.task-steps li{font-size:25px}.criteria p{font-size:23px}.pause-overlay{inset-block-start:88px}}
@media(max-height:790px) and (min-width:1000px){.topbar{height:65px}.brand{font-size:18px}.brand-symbol{font-size:33px}.tools button{padding:7px 10px;min-height:34px;font-size:13px}.lesson-screen{padding:16px 3% 13px;gap:10px}.chapter-heading h1{font-size:25px}.guide-portrait{width:85px;max-height:85px}.lesson-notes h2{font-size:22px;margin-bottom:8px}.lesson-notes p{font-size:18px;line-height:1.7}.note-list li{font-size:16px;padding:7px 0}.btn{min-height:46px;font-size:17px;padding:11px 20px}.quiz-screen{gap:9px;padding-top:10px}.question-banner{padding:8px 15px}.question-banner h1{font-size:24px;margin:2px 0}.option-letter{font-size:22px;min-width:65px}.option-art{max-height:175px;margin:2px 0}.option-text{font-size:22px;margin:3px 1px 8px}.option-card{padding:10px}.option-card .btn{font-size:21px;min-height:47px;padding:8px}.dialogue-bar{min-height:69px;padding:6px 13px}.dialogue-bar img{width:62px;height:62px}.dialogue-copy p{font-size:17px}.home h1{font-size:57px}.home-emblem{width:105px;height:117px}.home-lead{font-size:19px}.home-copy{margin-top:-15px}.home .button-row{margin-top:16px}.brief-card{padding:25px}.brief-card h1{font-size:30px}.brief-card p{font-size:21px}.task-screen,.gallery-screen{padding:16px 3%;gap:12px}.task-head h1,.gallery-screen h1{font-size:27px}.task-card{padding:17px 23px}.task-card h2{font-size:22px}.task-card p{font-size:18px}.task-steps li{font-size:17px;padding-top:10px;padding-bottom:10px}.timer-card{padding:15px}.timer-value{font-size:43px}.criteria p{font-size:16px}.pause-overlay{inset-block-start:65px}.repair-emblem{height:220px}.repair h1{font-size:29px}.repair-caption p{font-size:19px}.ending-emblem{height:155px;width:140px}.ending h1{font-size:53px}.ending p{font-size:20px}}
@media(max-width:1000px){#game{min-height:700px;overflow:auto}#screen{overflow:auto}.topbar{padding:0 13px;height:68px;gap:8px}.brand{font-size:16px}.brand-symbol{font-size:30px}.brand small{font-size:10px;letter-spacing:1px}.tools{gap:4px}.tools button{padding:7px;font-size:12px;min-height:34px}.progress{gap:4px}.fragment-slot{width:23px;height:25px;font-size:11px;border-radius:6px}.progress-label{display:none}.quiz-arena{grid-template-columns:minmax(180px,1fr) minmax(100px,.65fr) minmax(180px,1fr);gap:10px}.option-text{font-size:20px}.battle-label{font-size:10px;white-space:normal;text-align:center}.lesson-grid{grid-template-columns:1.1fr 1fr;gap:15px}.lesson-notes p{font-size:17px}.note-list li{font-size:16px}.guide-portrait{width:90px;max-height:90px}.task-grid{grid-template-columns:1.1fr 1fr}.task-card{padding:16px}.task-card h2{font-size:22px}.task-steps li{font-size:17px}.task-head h1{font-size:26px}.teacher-grid{grid-template-columns:1fr}.pause-overlay{inset-block-start:68px}.home-hero{width:36%;left:-10%}.home-villain{width:42%;right:-13%}.home-copy{width:75%}.home h1{font-size:49px}.home-lead{font-size:19px}.home-emblem{width:120px;height:135px}}
@media(max-width:640px){#game{height:auto;min-height:100dvh}.topbar{flex-wrap:wrap;height:103px;padding:8px 10px;justify-content:space-between}.brand{font-size:15px}.brand small{font-size:9px}.tools{width:100%;justify-content:center}.tools button{flex:1}#screen{min-height:680px}.progress{gap:3px}.fragment-slot{width:21px;height:23px}.lesson-screen{padding:18px;min-height:740px}.chapter-heading h1{font-size:23px}.lesson-grid{display:flex;flex-direction:column}.lesson-art{height:240px;flex:none;padding:10px}.lesson-notes h2{font-size:21px}.guide-portrait{display:none}.lesson-notes p{font-size:17px;margin-bottom:5px}.note-list li{font-size:15px;padding:5px 0}.lesson-footer{flex-wrap:wrap}.lesson-footer .button-row{width:100%;justify-content:flex-end}.lesson-dots{margin:auto}.quiz-screen{min-height:750px;padding:12px;gap:10px}.question-banner{width:100%;padding:10px}.question-banner h1{font-size:21px}.quiz-arena{grid-template-columns:1fr 1fr;gap:10px;flex:none;min-height:410px}.battle{display:none}.option-art{height:160px;flex:none}.option-letter{font-size:24px}.option-card{padding:9px}.option-text{font-size:19px;flex:1}.option-card .btn{font-size:21px;padding:10px}.dialogue-bar{width:100%;flex-wrap:wrap;padding:10px}.dialogue-bar img{width:50px;height:50px}.dialogue-copy p{font-size:16px}.dialogue-bar .button-row{width:100%;justify-content:flex-end}.brief-screen{min-height:680px;padding:18px}.brief-card{display:flex;flex-direction:column;padding:23px;width:100%;gap:12px}.brief-art{height:200px;width:100%}.brief-art svg{height:100%}.brief-card h1{font-size:29px}.brief-card p{font-size:20px}.brief-guide{width:90px}.task-screen{padding:18px;min-height:940px}.task-head{align-items:flex-start}.task-head h1{font-size:25px}.task-grid{display:flex;flex-direction:column}.task-aside{display:grid;grid-template-columns:1fr 1fr}.timer-card{padding:15px 8px}.timer-value{font-size:36px}.criteria{padding:14px}.criteria p{font-size:14px}.task-card{overflow:visible}.task-screen .lesson-footer .button-row{justify-content:center}.works{display:flex;flex-direction:column}.gallery-screen{min-height:1350px;padding:18px}.work{min-height:315px}.work-picture{height:190px;flex:none}.work-caption p{font-size:15px}.gallery-screen h1{font-size:27px}.gallery-screen .lesson-footer{flex-direction:column}.ending{min-height:680px}.ending h1{font-size:42px}.ending p{font-size:19px}.ending-sprite{width:100px;left:-3%;top:8%}.ending-hero{width:47%;right:-15%;bottom:3%}.home{min-height:680px}.home-copy{width:94%}.home h1{font-size:43px}.home-hero{width:53%;left:-19%;bottom:5%}.home-villain{width:60%;right:-24%;bottom:5%}.home-sprite{width:24%;right:2%;top:6%}.home .button-row{flex-direction:column}.home-caption{font-size:11px;padding:0 14px}.home-lead{font-size:18px}.intro{min-height:680px}.intro-emblem{top:20%;width:170px;height:190px;left:calc(50% - 85px)}.intro-guide{top:15%;width:23%}.intro-actor{bottom:24%}.intro-hero{width:49%}.intro-villain{width:58%}.intro-caption{left:4%;right:4%;bottom:55px;padding:15px}.intro-caption p{font-size:21px}.intro-piece{top:20%;width:170px;height:190px;left:calc(50% - 85px)}.scene-mark{font-size:12px;left:17px;top:17px}.intro-controls{top:65px;right:15px}.intro-controls .btn{font-size:14px;min-height:38px;padding:8px 14px}.intro-step{top:65px;left:17px;font-size:12px}.repair{min-height:680px;padding:20px 12px}.repair h1{font-size:27px}.repair-caption{padding:16px;gap:8px}.repair-caption img{width:66px}.repair-caption p{font-size:18px}.hint-layout{grid-template-columns:65px 1fr;gap:9px}.hint-layout img{width:65px}.hint-layout p{font-size:19px}.modal-body{padding:20px}.hint-visual{padding:6px;max-height:220px}.modal-head{padding:17px}.modal-head h2{font-size:21px}.pause-overlay{inset-block-start:103px}.pause-overlay h1{font-size:30px}}
.hint-open .battle *{animation-play-state:paused!important}
/* 角力姿势按两张透明图的实际手掌/护盾位置对齐。 */
.battle{overflow:hidden}.battle-hero{left:0;width:50%;bottom:4%}.battle-villain{left:35%;right:auto;width:79%;bottom:4%}.shield-bridge{left:40%;bottom:25%;height:22%;width:8%}.intro-actor{bottom:21%}.intro-villain{width:50%}.collision{left:40%;top:40%}
@media(max-width:640px){.intro-actor{bottom:28%}.intro-hero{width:49%}.intro-villain{width:64%}}
/* v2：生图角色、会标、教学卡和道具；CSS只负责排版及已有图片的运动。 */
.brand-symbol{width:44px;height:48px;display:grid;place-items:center}.brand-symbol img{width:100%;height:100%;object-fit:contain}.home-emblem{width:165px;height:155px}.emblem-art{width:100%;height:100%;object-fit:contain;display:block}.home-lead{max-width:650px;margin:16px auto;font-size:21px;line-height:1.8}.home h1{font-size:clamp(38px,4.6vw,70px)}.fragment-slot img{width:100%;height:100%;object-fit:contain}.fragment-slot.found{background:#fff8de;border-color:#e5b250}.lesson-raster{display:block;max-width:100%;max-height:100%;object-fit:contain;min-width:0;min-height:0}.visual-holder>.lesson-raster{width:100%;height:100%;object-fit:contain}.wide-raster{width:100%;height:100%;object-fit:contain}.option-art>.lesson-raster{width:100%;height:100%;object-fit:contain}.option-art{max-height:260px}.raster-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px;width:100%;height:100%;max-height:100%;min-height:0}.raster-pair figure{margin:0;display:flex;align-items:center;justify-content:center;flex-direction:column;min-width:0;min-height:0;overflow:hidden}.raster-pair .lesson-raster{width:100%;height:calc(100% - 40px);min-height:0}.raster-pair figcaption{font-size:17px;line-height:1.5;margin:8px 0;text-align:center;color:#304b63;flex:none}.raster-check{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:100%;width:100%;min-height:0}.raster-check .check-large{width:65%;height:60%;min-height:0;object-fit:contain}.raster-check .check-small{width:76px!important;height:76px!important;flex:none;object-fit:contain}.raster-check>span{font-size:14px;color:#506e83}.raster-pair .raster-check{flex:1}.workflow-raster{display:flex;width:100%;gap:14px;align-items:center;height:100%;min-height:0}.workflow-raster figure{width:33.33%;margin:0;display:flex;flex-direction:column;min-width:0}.workflow-raster img{width:100%;height:210px;object-fit:contain}.workflow-raster figcaption{font-size:17px;line-height:1.7;margin-top:12px;text-align:center}.workflow-raster b{color:#0b8793;margin-right:8px}.official-examples{width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.official-examples h3{font-size:22px;margin:6px;text-align:center;flex:none}.official-case-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px;flex:1;min-height:0}.official-case-pair figure{margin:0;padding:10px;background:#f4f8fa;border-radius:18px;min-height:0;display:flex;flex-direction:column;align-items:center}.official-case-pair img{width:100%;height:calc(100% - 65px);min-height:0;object-fit:contain}.official-case-pair figcaption{text-align:center;font-size:16px;line-height:1.8;flex:none;margin-top:8px}.official-case-pair strong,.official-case-pair span{display:block}.official-case-pair span{font-size:14px}.brief-art{height:100%;max-height:420px;min-height:0;display:grid;place-items:center}.brief-art>.lesson-raster{width:100%;height:100%;object-fit:contain}.hint-visual .lesson-raster{width:100%;height:225px;object-fit:contain}.hint-visual .raster-pair{height:225px}.hint-visual .raster-pair .lesson-raster{height:180px}.note-list li:before{content:'';display:inline-block;flex:none;width:26px;height:26px;background:url('assets-v2/ui-brush.png') center/contain no-repeat;margin-top:3px}.portal{border-radius:0;background:none;box-shadow:none;filter:none;object-fit:contain;right:-3%;width:37%;height:78%;top:1%}.collision{background:none;object-fit:contain;width:160px;height:160px;left:35%;top:30%}.shield-bridge{background:none;box-shadow:none;object-fit:contain;width:18%;height:28%;left:35%;bottom:22%;opacity:.7}.intro-dust{position:absolute;bottom:17%;width:27%;height:15%;object-fit:contain;z-index:3;opacity:.75}.intro-dust[hidden]{display:none}.intro-emblem,.intro-piece{height:230px}.repair-stage{position:relative;aspect-ratio:1;width:300px;height:300px;flex:none;filter:drop-shadow(0 12px 20px #577b8129)}.repair-emblem{position:absolute;inset:0;width:100%;height:100%;filter:none}.repair-pieces{position:absolute;inset:0}.repair-piece{inset:0;top:0;left:0;width:100%;height:100%}.loot-fly{width:86px;height:112px;object-fit:contain;color:initial;font-size:initial}.inline-prop{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin-right:8px}.backup-word-card{position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.backup-word-card img{width:85%;height:75%;object-fit:contain}.backup-word-card strong{font-size:20px;line-height:1.6;text-align:center}.work-picture>.lesson-raster{width:100%;height:100%;object-fit:contain}.work-picture .raster-pair{height:100%}.ending-display{display:flex;flex-direction:column;align-items:center;justify-content:center}.ending-display>img{width:200px;height:200px;object-fit:contain}.ending-display>p{font-size:18px;margin:0}.ending-selected{display:flex;gap:12px;align-items:center;justify-content:center;max-width:65%;height:250px}.ending-selected img{max-width:32%;height:100%;object-fit:contain;border:6px solid #fff;border-radius:12px;background:white;box-shadow:0 10px 30px #0b2a44aa}.confetti img{position:absolute;top:-40px;left:var(--x);width:28px;height:28px;object-fit:contain;animation:confetti var(--d) linear infinite;animation-delay:var(--delay)}
@media(min-width:1700px){.brand-symbol{width:52px;height:58px}.home-emblem{width:190px;height:180px}.home-lead{font-size:24px;max-width:760px}.option-art{max-height:330px}.raster-check .check-small{width:90px!important;height:90px!important}.raster-pair figcaption{font-size:22px}.workflow-raster figcaption{font-size:23px}.workflow-raster img{height:260px}.official-examples h3{font-size:28px}.official-case-pair figcaption{font-size:21px}.official-case-pair span{font-size:18px}.official-case-pair img{height:calc(100% - 80px)}.repair-stage{width:340px;height:340px}}
@media(max-height:790px) and (min-width:1000px){.home-emblem{width:120px;height:110px}.home-lead{font-size:18px;line-height:1.7;max-width:600px}.home h1{font-size:50px}.home-copy{margin-top:-20px}.raster-check .check-large{height:48%}.raster-check .check-small{width:65px!important;height:65px!important}.option-art{max-height:195px}.repair-stage{width:240px;height:240px}.official-examples h3{font-size:19px}.official-case-pair figcaption{font-size:15px}.official-case-pair span{font-size:12px}.workflow-raster img{height:170px}.workflow-raster figcaption{font-size:15px}.ending-display>img{height:150px;width:150px}.ending-selected{height:180px}}
@media(max-width:640px){.brand-symbol{width:32px;height:38px}.home-emblem{width:130px;height:125px}.home h1{font-size:36px}.home-lead{padding:0 20px;font-size:17px;max-width:100%}.raster-pair{gap:8px}.raster-pair figcaption{font-size:13px}.official-examples h3{font-size:16px}.official-case-pair{gap:8px}.official-case-pair figure{padding:4px}.official-case-pair figcaption{font-size:11px}.official-case-pair span{font-size:10px}.official-case-pair img{height:calc(100% - 50px)}.workflow-raster{gap:7px}.workflow-raster img{height:110px}.workflow-raster figcaption{font-size:12px}.repair-stage{width:220px;height:220px}.intro-emblem,.intro-piece{height:170px}.intro-dust{width:35%;bottom:24%}.ending-display>img{height:160px;width:160px}.ending-selected{max-width:90%;height:170px}.ending-selected img{max-width:32%}}
/* 收集槽固定画布边界；两种投影分辨率使用相同的小图尺寸。 */
.fragment-slot{position:relative;overflow:hidden;line-height:1;flex:none}.fragment-slot img{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);max-width:100%;max-height:100%;min-width:0;min-height:0;object-fit:contain}.raster-check .check-small{width:72px!important;height:72px!important}
/* 单件学生作品按实际图片比例展示。 */
.ending-selected{width:65vw}.ending-selected img:only-child{width:auto;max-width:100%;height:100%;object-fit:contain}.ending-selected:has(img:nth-child(2):last-child) img{max-width:48%}
@media(max-width:640px){.ending-selected{width:90vw}}

/* 首页会标与副标题之间留出空隙，1366 与 1920 投影都不再压字。 */
.home-emblem{width:150px;height:142px;margin:0 auto 8px}
.home .eyebrow{display:block;margin-top:8px;line-height:1.7}
@media(min-width:1700px){.home-emblem{width:172px;height:162px}}
@media(max-height:790px) and (min-width:1000px){.home-emblem{width:112px;height:104px;margin-bottom:6px}}
@media(max-width:1000px){.home-emblem{width:116px;height:110px}}
@media(max-width:640px){.home-emblem{width:110px;height:104px}}

/* 答对/答错时角色台词气泡，贴在角力区两侧。 */
.reaction{position:absolute;z-index:40;display:flex;gap:10px;align-items:center;width:max-content;max-width:min(330px,66%);background:#fffdf3;border:3px solid #f2c455;border-radius:18px;padding:10px 15px;box-shadow:0 14px 32px #0b23403d;animation:reactIn .24s ease-out;pointer-events:none}
.reaction img{width:68px;height:68px;flex:none;object-fit:contain;border-radius:50%;background:#fff6e0;border:2px solid #fff;box-shadow:0 3px 8px #12315a33}
.reaction b{display:block;font-size:13px;letter-spacing:1px;color:#b0700f;margin-bottom:2px}
.reaction p{margin:0;font-size:19px;line-height:1.45;font-weight:800;color:#1f364b;max-width:250px}
.reaction.hero{left:0;top:22%}
.reaction.villain{right:0;top:22%;background:#fbf6ff;border-color:#9a6fd6}
.reaction.villain img{background:#efe4ff}
.reaction.villain b{color:#6b3fa8}
@keyframes reactIn{from{transform:translateY(12px) scale(.94)}to{transform:none}}
@media(max-height:790px) and (min-width:1000px){.reaction img{width:50px;height:50px}.reaction p{font-size:16px}.reaction{padding:8px 12px;max-width:50%}}
@media(max-width:640px){.reaction{max-width:88%;padding:8px 11px}.reaction img{width:44px;height:44px}.reaction p{font-size:15px}.reaction.hero{left:1%;top:8%}.reaction.villain{right:1%;top:8%}}
