/* 课堂双人战斗：美术来自生成PNG；CSS负责排版、光波轨迹及碎片运动。 */
.emblem-battle-host{min-height:100%;color:#17314e}.ob-screen{min-height:calc(100dvh - 94px);padding:22px 28px 20px;position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(180deg,#edf9fc,#e6f3f3)}.ob-heading{text-align:center;position:relative;z-index:2}.ob-heading h1{font-size:clamp(27px,2.6vw,43px);line-height:1.25;margin:5px 0 12px;color:#17314e}.ob-heading p{margin:6px;font-size:20px}.ob-heading .eyebrow{font-size:15px;letter-spacing:2px}.ob-footer{display:flex;justify-content:center;align-items:center;gap:16px;position:relative;z-index:3;margin:18px auto 0}.ob-footer p{font-size:19px;margin:0 20px 0 0}.ob-footer .btn{min-height:58px;font-size:21px}.ob-scene{position:relative;min-height:320px;overflow:hidden;background:linear-gradient(180deg,#c6edf340 0%,#f8e8b842 70%,#d8edbf44),url('assets/stadium.png') center/cover;border:1px solid #a6d5dc;border-radius:28px;box-shadow:inset 0 -16px 35px #ac762923,0 8px 24px #203f5312}.ob-scene:after{content:'';position:absolute;left:9%;right:9%;height:11%;bottom:4%;background:radial-gradient(ellipse,#2d53652b,transparent 68%);pointer-events:none}.ob-scene-caption{position:absolute;left:0;right:0;text-align:center;top:14px;font-size:14px;color:#3a6b79;letter-spacing:3px;z-index:1}.ob-scene-challenge{height:clamp(290px,39vh,450px);max-width:1100px;margin:14px auto}.ob-boss{position:absolute;width:51%;aspect-ratio:1;left:24.5%;bottom:9%;z-index:3;transform-origin:50% 95%;filter:drop-shadow(0 16px 8px #192b4233)}.ob-boss-art{width:100%;height:100%;background:url('assets-v3/boss-sheet.png') 0 0/300% 100% no-repeat}.ob-scene-challenge .ob-boss{width:min(43%,360px);left:50%;transform:translateX(-50%);bottom:0}.ob-boss-bubble{position:absolute;left:50%;bottom:92%;transform:translateX(-50%);min-width:115px;max-width:250px;background:#fffaf1;border:3px solid #ba78c9;border-radius:17px 17px 17px 3px;padding:11px 15px;font-size:21px;font-weight:800;text-align:center;white-space:nowrap;color:#5b326b;box-shadow:0 8px 15px #3b254122;z-index:7}.ob-boss-bubble[hidden]{display:none}.ob-rally-sprite{position:absolute;width:25%;max-width:210px;left:9%;top:10%;object-fit:contain;animation:obSpriteFloat 2s ease-in-out infinite;z-index:4}.ob-story{max-width:1100px;margin:12px auto 0;display:flex;gap:20px;align-items:center;border:2px solid #d7e5e6;background:#ffffffed;border-radius:22px;padding:14px 24px;min-height:110px;box-shadow:0 7px 0 #c5dadd55;position:relative;z-index:3}.ob-story>img{width:85px;height:85px;object-fit:contain;flex:none}.ob-story b{font-size:17px;color:#008b9a}.ob-story p{font-size:clamp(21px,2vw,30px);line-height:1.5;margin:5px 0;font-weight:700}.ob-selection{background:radial-gradient(ellipse at 50% 35%,#fff9df66,transparent 65%),linear-gradient(160deg,#e2f7fa,#f2f5ed)}.ob-selection-grid{display:grid;grid-template-columns:1fr 1fr;gap:26px;max-width:1500px;margin:24px auto 0}.ob-player-choice{border:2px solid #b4e0e4;background:#ffffffa8;border-radius:25px;padding:18px 22px 22px;box-shadow:0 10px 25px #33536610}.ob-choice-1{border-color:#f0d5a2}.ob-side-name{display:inline-block;background:#d8f5f5;color:#007f8e;border-radius:20px;padding:7px 16px;font-weight:800;font-size:16px}.ob-choice-1 .ob-side-name{background:#fff0cc;color:#9e610c}.ob-player-choice h2{font-size:clamp(20px,1.7vw,28px);margin:13px 0 17px}.ob-choice-options{display:grid;grid-template-columns:1fr 1fr;gap:15px}.ob-character{border:3px solid #dae3e9;border-radius:20px;background:#f9fcff;color:#17314e;padding:10px 8px 12px;cursor:pointer;min-width:0;min-height:285px;touch-action:manipulation;transition:border-color .15s,box-shadow .15s,transform .15s;font:inherit}.ob-character:hover{border-color:#8bbfc9}.ob-character.is-selected{border-color:#00a0b4;background:#edffff;box-shadow:0 0 0 4px #00a0b41c}.ob-choice-1 .ob-character.is-selected{border-color:#e6a02d;background:#fff9ec;box-shadow:0 0 0 4px #e6a02d1c}.ob-character-art{display:block;width:100%;aspect-ratio:1;height:auto;max-height:240px;margin:auto;overflow:hidden}.ob-character-art>img,.ob-fighter-art>img{display:block;width:100%;height:100%;object-fit:contain}.ob-character strong{display:block;font-size:24px;margin:5px 0}.ob-character small{display:block;font-size:15px;line-height:1.5;color:#5a7383}.ob-choice-check{display:inline-block;border-radius:20px;background:#e4edf1;color:#4e6c7b;font-size:15px;padding:5px 18px;margin-top:10px}.is-selected .ob-choice-check{background:#00a0b4;color:white}.ob-choice-1 .is-selected .ob-choice-check{background:#cb8517}.ob-actor-sheet{width:100%;height:100%;background-repeat:no-repeat}.ob-girl-run{background-image:url('assets-v3/girl-run-sheet.png');background-size:300% 200%;background-position:0 0}.ob-hero-attack{background-image:url('assets-v3/hero-attack-sheet.png');background-size:300% 100%;animation:obAttackFrames .4s steps(1,end) forwards}.ob-girl-attack{background-image:url('assets-v3/girl-attack-sheet.png');background-size:300% 100%;animation:obAttackFrames .4s steps(1,end) forwards}.ob-battle-heading{display:flex;align-items:center;justify-content:space-between;text-align:left;gap:20px;max-width:2300px;margin:0 auto 16px}.ob-battle-heading h1{margin-bottom:0;font-size:clamp(25px,2.3vw,36px)}.ob-team-progress{font-size:19px;font-weight:700;padding:12px 18px;background:#fff8df;border:1px solid #efdfac;border-radius:15px;white-space:nowrap}.ob-team-progress b{color:#d0760c;font-size:27px}.ob-arena{display:grid;grid-template-columns:minmax(260px,1fr) minmax(350px,1.35fr) minmax(260px,1fr);gap:18px;align-items:stretch;max-width:2300px;margin:0 auto}.ob-question{border-radius:23px;border:2px solid #b9dce5;background:#fff;box-shadow:0 8px 0 #b3d7df55;padding:18px;min-width:0;display:flex;flex-direction:column;min-height:540px}.ob-question-1{border-color:#ead6af;box-shadow:0 8px 0 #ead6af55}.ob-side-title{display:flex;align-items:center;justify-content:space-between;font-weight:800;color:#007e91;font-size:17px;margin-bottom:12px}.ob-side-title b{background:#dcf6f6;padding:7px 12px;border-radius:12px;white-space:nowrap}.ob-question-1 .ob-side-title{color:#9e6515}.ob-question-1 .ob-side-title b{background:#fff1d8}.ob-topic{font-size:13px;color:#56717e;letter-spacing:1px}.ob-question h2{font-size:clamp(21px,1.7vw,29px);line-height:1.45;margin:8px 0 10px;min-height:3em}.ob-question-art{height:clamp(85px,14vh,170px);display:flex;justify-content:center;align-items:center;min-height:0;flex:1;border-radius:15px;background:#f4f8fa;margin-bottom:13px;padding:6px}.ob-question-art img{display:block;max-width:100%;max-height:100%;object-fit:contain}.ob-options{display:flex;flex-direction:column;gap:12px}.ob-answer{display:flex;align-items:center;gap:11px;border:2px solid #c3dae2;background:#f3fbfc;border-radius:15px;min-height:83px;padding:13px 14px;text-align:left;font:inherit;font-weight:700;color:#193950;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.ob-answer strong{display:grid;place-items:center;background:#007e99;border-radius:10px;color:#fff;width:37px;height:37px;font-size:22px;flex:none}.ob-answer span{font-size:clamp(19px,1.5vw,26px);line-height:1.4}.ob-question-1 .ob-answer{background:#fffbf1;border-color:#e8d7b3}.ob-question-1 .ob-answer strong{background:#b57d1d}.ob-answer:hover:enabled{border-color:#008fa7;background:#e5f8fb}.ob-question-1 .ob-answer:hover:enabled{border-color:#c78f2a;background:#fff1cc}.ob-answer:disabled{cursor:default;opacity:.65}.ob-answer.is-correct{opacity:1;border-color:#24a174;background:#e8fbef}.ob-answer.is-correct strong{background:#159f6f}.ob-feedback{font-size:17px;font-weight:700;text-align:center;min-height:27px;margin:13px 0 0;color:#69808d}.ob-feedback.ob-try-again{color:#b57417}.ob-feedback.ob-success{color:#0c8c61}.ob-side-complete{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#127d7b}.ob-side-complete img{width:120px;height:120px;object-fit:contain}.ob-side-complete h2{font-size:31px;min-height:0;margin:15px 0 8px}.ob-side-complete p{font-size:23px;line-height:1.7}.ob-middle{min-width:0;display:flex;flex-direction:column;padding-top:3px}.ob-health{background:#18324cec;border:1px solid #2a526e;border-radius:17px;padding:13px 18px;box-shadow:0 5px 0 #0d233a1a;color:white;z-index:3}.ob-health>div:first-child{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;font-size:17px}.ob-health-track{height:22px;background:#0c1f33;border:2px solid #50677a;border-radius:15px;overflow:hidden}.ob-health-track>span{display:block;height:100%;background:linear-gradient(0deg,#cc365e,#ff7088);box-shadow:inset 0 3px 0 #ffb2bd88;transition:width .38s ease}.ob-middle .ob-scene{flex:1;min-height:390px;margin-top:14px}.ob-team-tip{font-size:17px;line-height:1.7;text-align:center;color:#547081;font-weight:700;margin:13px 0 0}.ob-fighter{position:absolute;z-index:4;width:40%;aspect-ratio:1;bottom:8%;filter:drop-shadow(0 10px 6px #29435e33)}.ob-fighter-0{left:-4%}.ob-fighter-1{right:-4%}.ob-fighter-art{width:100%;height:100%;transform-origin:50% 88%}.ob-fighter-1 .ob-fighter-art{transform:scaleX(-1)}.ob-fighter-art.ob-attacking{animation:obLunge .55s ease-out}.ob-fighter-1 .ob-fighter-art.ob-attacking{animation:obLungeRight .55s ease-out}.ob-fighter-label{position:absolute;bottom:-23px;left:50%;transform:translateX(-50%);font-size:12px;padding:6px 10px;background:#007e95ec;color:white;border:1px solid #a8f1fa;border-radius:12px;white-space:nowrap;font-weight:700}.ob-fighter-1 .ob-fighter-label{background:#af7318ec;border-color:#ffe5a5}.ob-wave{position:absolute;z-index:6;width:30%;height:25%;bottom:23%;pointer-events:none}.ob-wave img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 10px #5ffbff)}.ob-wave-0{left:14%;animation:obWaveLeft .62s linear forwards}.ob-wave-1{right:14%;transform:scaleX(-1);animation:obWaveRight .62s linear forwards}.ob-wave-1 img{filter:hue-rotate(135deg) drop-shadow(0 0 10px #ffd76c)}.ob-impact{position:absolute;z-index:6;left:30%;width:40%;aspect-ratio:1;bottom:15%;pointer-events:none;animation:obImpact .3s ease-out}.ob-impact[hidden]{display:none}.ob-impact img{width:100%;height:100%;object-fit:contain}.ob-hit .ob-boss-art{background-position:50% 0;animation:obHit .18s ease-in-out 2}.ob-defeated .ob-boss-art{background-position:100% 0;animation:obBossWobble .8s ease-in-out infinite}.ob-dissolving .ob-boss-art{visibility:hidden}.ob-dissolving .ob-boss-bubble{opacity:0;transition:opacity .4s}.ob-boss-tiles{position:absolute;inset:0;pointer-events:none}.ob-boss-tiles>span{position:absolute;left:calc(var(--col)*12.5%);top:calc(var(--row)*12.5%);width:12.6%;height:12.6%;background-image:url('assets-v3/boss-sheet.png');background-size:2400% 800%;background-position:calc(var(--col)*100%/23) calc(var(--row)*100%/7);animation:obPixelAway 1.8s ease-in var(--delay) both}.ob-victory{display:flex;align-items:center;flex-direction:column;justify-content:center;text-align:center;background:radial-gradient(ellipse at 50% 35%,#216c87,#12334f 75%);color:white;min-height:calc(100dvh - 94px);padding-top:15px}.ob-victory-badge{position:relative;width:clamp(260px,34vw,480px);height:clamp(210px,30vh,340px);z-index:3;animation:obVictoryPop .7s cubic-bezier(.16,1.3,.4,1) both;display:flex;flex-direction:column;justify-content:center;align-items:center}.ob-victory-badge>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:-1}.ob-victory-badge h1{font-size:clamp(46px,5vw,78px);color:#fff6c5;text-shadow:0 3px 0 #a1691d,0 7px 10px #5b3c20;letter-spacing:12px;margin:18px 0 0;padding-left:12px}.ob-victory-badge p{font-size:clamp(15px,1.5vw,21px);font-weight:800;color:#ffefb2;text-shadow:0 2px 5px #122b44;margin:9px 0 0}.ob-victory-heroes{display:flex;justify-content:center;align-items:flex-end;width:530px;max-width:70%;height:clamp(130px,23vh,240px);position:relative;z-index:2;margin-top:0}.ob-victory-hero{width:48%;height:100%;position:relative;display:flex;align-items:center;flex-direction:column}.ob-victory-hero>img,.ob-victory-hero>.ob-actor-sheet{height:calc(100% - 30px);width:auto;aspect-ratio:1;object-fit:contain}.ob-victory-hero strong{font-size:17px;color:#ecf8fb;line-height:30px;flex:none}.ob-victory-message{font-size:20px;line-height:1.6;position:relative;z-index:2;margin:18px 0}.ob-victory .btn{position:relative;z-index:3;min-height:58px;font-size:22px}.ob-victory-rays{position:absolute;width:95vw;height:95vw;left:50%;top:35%;transform:translate(-50%,-50%);background:repeating-conic-gradient(from 0deg,#f6d88c0b 0deg 12deg,transparent 12deg 30deg);border-radius:50%;animation:obRays 40s linear infinite;mask-image:radial-gradient(ellipse,#000 0%,transparent 65%);pointer-events:none}.ob-paused *{animation-play-state:paused!important}.ob-reduced *{animation:none!important;transition:none!important}.ob-reduced .ob-wave{animation:none;left:40%;right:auto;opacity:.85}.ob-reduced .ob-boss-tiles>span{animation:obReducedFade .8s linear both!important}.ob-reduced .ob-health-track>span{transition:none}.ob-answer:focus-visible,.ob-character:focus-visible{outline:4px solid #2d8bdd;outline-offset:4px}.ob-screen button{touch-action:manipulation}
@keyframes obSpriteFloat{50%{transform:translateY(-10px)}}
@keyframes obAttackFrames{0%,32%{background-position:0 0}33%,65%{background-position:50% 0}66%,100%{background-position:100% 0}}
@keyframes obLunge{45%{transform:translateX(12px) rotate(-3deg)}}
@keyframes obLungeRight{45%{transform:scaleX(-1) translateX(12px) rotate(-3deg)}}
@keyframes obWaveLeft{from{left:11%;opacity:0;scale:.55}15%{opacity:1}to{left:44%;opacity:1;scale:1}}
@keyframes obWaveRight{from{right:11%;opacity:0;scale:.55}15%{opacity:1}to{right:44%;opacity:1;scale:1}}
@keyframes obImpact{from{transform:scale(.65);opacity:.5}65%{transform:scale(1.2);opacity:1}to{transform:scale(1);opacity:.7}}
@keyframes obHit{25%{transform:translateX(7px) rotate(3deg)}75%{transform:translateX(-5px) rotate(-2deg)}}
@keyframes obBossWobble{30%{transform:rotate(-5deg)}65%{transform:rotate(5deg)}}
@keyframes obPixelAway{0%{transform:translate(0,0) rotate(0);opacity:1;filter:blur(0)}40%{opacity:.85}100%{transform:translate(var(--tx),var(--ty)) rotate(var(--turn));opacity:0;filter:blur(5px)}}
@keyframes obReducedFade{to{opacity:0}}
@keyframes obVictoryPop{from{transform:scale(.5);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes obRays{to{transform:translate(-50%,-50%) rotate(360deg)}}
.ob-fighter .ob-girl-run{animation:obGirlRun .72s steps(1,end) 1 both}
.ob-fighter-0{animation:obEnterLeft .72s ease-out both}.ob-fighter-1{animation:obEnterRight .72s ease-out both}
@keyframes obGirlRun{0%,15%{background-position:0 0}16%,32%{background-position:50% 0}33%,49%{background-position:100% 0}50%,65%{background-position:0 100%}66%,82%{background-position:50% 100%}83%,99%{background-position:100% 100%}100%{background-position:0 0}}
@keyframes obEnterLeft{from{translate:-75% 0;opacity:0}to{translate:0 0;opacity:1}}
@keyframes obEnterRight{from{translate:75% 0;opacity:0}to{translate:0 0;opacity:1}}
@media(min-width:1800px){.ob-screen{padding:30px 40px}.ob-arena{gap:28px;grid-template-columns:1fr 1.45fr 1fr}.ob-question{padding:25px;min-height:650px}.ob-side-title{font-size:22px}.ob-topic{font-size:17px}.ob-question-art{max-height:215px}.ob-answer{min-height:100px;padding:16px}.ob-answer strong{width:45px;height:45px;font-size:27px}.ob-feedback{font-size:22px}.ob-health>div:first-child{font-size:23px}.ob-health-track{height:29px}.ob-team-tip{font-size:22px}.ob-middle .ob-scene{min-height:490px}.ob-fighter-label{font-size:16px}.ob-boss-bubble{font-size:27px}.ob-character-art{max-height:300px}.ob-character{min-height:380px}.ob-character strong{font-size:30px}.ob-character small{font-size:19px}}
@media(max-height:790px) and (min-width:1000px){.ob-screen{padding:14px 20px}.ob-heading h1{font-size:29px}.ob-battle-heading{margin-bottom:11px}.ob-question{padding:13px;min-height:475px}.ob-question h2{font-size:21px;min-height:3em;line-height:1.4;margin:7px 0}.ob-question-art{height:90px;max-height:110px;margin-bottom:10px}.ob-answer{min-height:73px;padding:10px}.ob-answer span{font-size:19px}.ob-side-title{margin-bottom:8px;font-size:15px}.ob-feedback{font-size:16px;margin-top:10px}.ob-middle .ob-scene{min-height:325px}.ob-team-tip{font-size:15px;margin-top:9px}.ob-health{padding:10px 13px}.ob-scene-challenge{height:285px;min-height:250px}.ob-story{padding:10px 18px;min-height:90px}.ob-story>img{width:67px;height:67px}.ob-story p{font-size:22px}.ob-footer{margin-top:13px}.ob-footer .btn{min-height:48px;font-size:19px}.ob-selection-grid{margin-top:15px}.ob-character{min-height:245px}.ob-character-art{max-height:175px}.ob-player-choice{padding:13px 17px}.ob-player-choice h2{margin:9px 0 12px;font-size:21px}.ob-victory-badge{height:210px}.ob-victory-heroes{height:150px}.ob-victory-message{margin:10px 0;font-size:18px}}
@media(max-width:1050px){.ob-arena{grid-template-columns:minmax(225px,1fr) minmax(260px,1.05fr) minmax(225px,1fr);gap:10px}.ob-screen{padding:15px 10px}.ob-question{padding:12px}.ob-answer{padding:10px 8px;gap:7px}.ob-answer span{font-size:18px}.ob-answer strong{width:30px;height:32px;font-size:19px}.ob-question h2{font-size:20px}.ob-choice-options{gap:8px}.ob-player-choice{padding:15px}.ob-character strong{font-size:21px}.ob-character small{font-size:13px}.ob-fighter-label{font-size:10px;padding:5px 7px}.ob-team-tip{font-size:14px}.ob-boss-bubble{font-size:17px}.ob-health>div:first-child{font-size:15px}}
@media(max-width:760px){.ob-screen{min-width:730px}.emblem-battle-host{overflow-x:auto}.ob-arena{grid-template-columns:225px 250px 225px;gap:9px}.ob-selection-grid{gap:12px}.ob-footer p{font-size:16px;margin:0}.ob-heading h1{font-size:26px}.ob-heading p{font-size:17px}.ob-team-progress{font-size:15px;padding:9px}.ob-question{min-height:510px}.ob-middle .ob-scene{min-height:370px}.ob-victory-heroes{max-width:80%}}
