/* One camera, one persistent opponent. Panels move through the foreground. */
body.in-battle{background:#0a1027}.preview-label,.site-header,.site-footer,#storage-warning,#notice{position:relative;z-index:10}#app{position:relative;z-index:4;outline:none}.journey-stage{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;background:#0a1027}.journey-sky,.journey-earth,.journey-vignette{position:absolute;inset:0}.journey-sky{background:radial-gradient(ellipse at 50% 35%,#36467690,transparent 64%),radial-gradient(circle at 14% 28%,#e5f2ff 1px,transparent 2px),radial-gradient(circle at 78% 18%,#a3c9fa 1px,transparent 2px),radial-gradient(circle at 28% 62%,#edf6ff 1px,transparent 2px),radial-gradient(circle at 88% 71%,#6bc9ff 1px,transparent 2px),radial-gradient(circle at 57% 48%,#d7d9ff 1px,transparent 2px),#040917;background-size:auto,193px 241px,277px 313px,353px 401px,487px 287px,337px 503px,auto;opacity:.1;transform:scale(1.08);transition:opacity 2.2s,transform 2.4s ease}.journey-stage[data-view=quiz] .journey-sky,.journey-stage[data-view=attack] .journey-sky,.journey-stage[data-view=cinematic] .journey-sky,.journey-stage[data-view=awards] .journey-sky{opacity:1;transform:scale(1)}
.journey-earth{background:url('assets/optimized/earth-orbit.webp') center 42%/cover no-repeat;opacity:0;transform:translateY(24vh) scale(.78);transition:opacity 1.8s ease,transform 2.4s cubic-bezier(.16,.65,.2,1),filter 1.6s;max-width:900px;left:50%;width:100%;translate:-50% 0}.journey-stage[data-view=attack] .journey-earth,.journey-stage[data-view=cinematic] .journey-earth,.journey-stage[data-view=awards] .journey-earth{opacity:.92;transform:translateY(0) scale(1.06)}.journey-stage[data-view=awards] .journey-earth{filter:blur(7px);opacity:.38;transform:translateY(-3vh) scale(1.14)}.journey-vignette{background:linear-gradient(#070d2244,transparent 26%,#03091e22 55%,#04091e 100%)}
#app .enemy-stage{visibility:hidden;background:none!important}#app .enemy-stage:before{display:none}.persistent-enemy{position:fixed;z-index:3;margin:0;pointer-events:none;background:none;overflow:visible;color:#e9f5ff}.persistent-enemy:before{display:none}.persistent-enemy .enemy-sprite,.persistent-enemy .target-ring{transition:width 1.3s,height 1.3s,top 1.3s,opacity .7s}.persistent-enemy .enemy-sprite{filter:drop-shadow(0 8px 22px #8b75b650)}.persistent-enemy .enemy-hp>span{transition:none;animation:none}.persistent-enemy .damage-pop{display:none}.persistent-enemy[data-phase=hit] .damage-pop{display:block;top:130px;font-size:60px;animation:live-damage 2.5s ease-out both}.persistent-enemy.off-stage{opacity:0}.persistent-enemy[data-view=awards]{opacity:.14;filter:blur(3px);transition:opacity 1.2s,filter 1.2s;pointer-events:none}
.onboard{display:flex;flex-direction:column;gap:0;max-width:520px;margin:auto}.intro-art.target-intro{width:100%;height:225px;min-height:0;margin:0;background:none;border:0}.intro-art.target-intro:before,.intro-art.target-intro:after{display:none}.onboard .enemy-stage{height:225px;width:100%;border:0}.onboard .enemy-sprite,.persistent-enemy[data-view=onboard] .enemy-sprite{height:185px;width:185px;max-width:none;top:40px;left:50%;position:absolute}.onboard .target-ring,.persistent-enemy[data-view=onboard] .target-ring{height:180px;width:180px;top:42px}.onboard-panel{width:100%;color:#eef7ff;text-align:center;padding:12px 20px 28px}.onboard-panel h1{font-size:32px;color:#f1f7ff}.onboard-panel .sub{font-size:12px;color:#b6c9dd;margin:12px 0 22px}.onboard-panel .eyebrow{color:#a4b9d7;font-size:9px}.onboard-panel .grade-heading{text-align:left;color:#c3cfe4}.onboard-panel .grade{background:#ffffff0c;border:1px solid #c9dcff30;color:#eff8ff}.onboard-panel .grade:hover{background:#ffffff20}.onboard-panel .grade small{color:#a8bad5}.onboard-panel .other-grades button{color:#bdd3ec}.onboard-panel .footnote{color:#8298b7;font-size:9px;margin-top:14px}.onboard-panel .grade-grid{gap:8px}.onboard-panel .grade{padding:11px}.onboard .target-coordinate,.persistent-enemy[data-view=onboard] .target-coordinate{opacity:0}
.ready-battle{min-height:calc(100dvh - 100px);display:flex;flex-direction:column}.ready-battle .enemy-stage{height:225px;flex-shrink:0}.ready-battle .enemy-sprite,.persistent-enemy[data-view=attack] .enemy-sprite,.persistent-enemy[data-view=cinematic] .enemy-sprite{width:148px;height:148px;top:68px}.ready-battle .target-ring,.persistent-enemy[data-view=attack] .target-ring,.persistent-enemy[data-view=cinematic] .target-ring{width:144px;height:144px;top:70px}.persistent-enemy[data-view=attack] .target-coordinate,.persistent-enemy[data-view=cinematic] .target-coordinate{top:136px;opacity:.55}.space-console{position:relative;background:none;padding:8px 14px 20px}.space-console h1{font-size:21px}.space-console .eyebrow{font-size:8px}.charge-orb{width:210px;height:210px;margin:45px auto 4px;transform:translate(var(--drag-x,0px),var(--drag-y,0px));z-index:5}.charge-orb[data-ready=true] .orb-body{box-shadow:inset 0 0 22px #ddffdc,0 0 45px #9affc566,0 0 100px #88ffd144}.charge-orb.dragging{transition:none}.charge-orb .orb-number{transition:opacity .5s}.swipe-arrows{position:absolute;left:50%;top:65px;transform:translateX(-50%);display:flex;flex-direction:column;gap:0;pointer-events:none;z-index:6}.swipe-arrows i{display:block;width:18px;height:18px;border-top:3px solid #d9ffbd;border-left:3px solid #d9ffbd;transform:rotate(45deg);filter:drop-shadow(0 0 8px #95ffb3);animation:swipe-invite 1.8s ease-in-out infinite}.swipe-arrows i:nth-child(2){animation-delay:.15s}.swipe-arrows i:nth-child(3){animation-delay:.3s}.swipe-hint{font-size:13px;font-weight:700;color:#e7ffda;margin:14px 0 18px}.launch-accessible{display:block;margin:0 auto;padding:10px;background:transparent;border:0;text-decoration:underline;text-underline-offset:4px;color:#a5b9cd;font-size:10px;cursor:pointer;min-height:40px}.launch-accessible:disabled{opacity:.35;cursor:wait}.space-console .fire-explain{font-size:9px;color:#a7bad1;margin:0}
.cinema-v2{background:transparent;border-radius:0;overflow:visible;isolation:auto;min-height:490px;height:calc(100dvh - 100px);max-height:760px}.cinema-v2 .space-backdrop,.cinema-v2 .energy-scene{display:none}.cinema-v2 .enemy-stage{height:225px}.cinema-copy{bottom:28px;background:radial-gradient(ellipse,#050c2699,transparent 72%);padding:16px 0}.cinema-copy h1{font-size:22px}.gather-total{font-size:64px}.gather-equation{margin-top:16px}.phase-hit .cinema-copy{animation:caption-in .7s both}.flying-charge{z-index:6;pointer-events:none;touch-action:none;will-change:transform;animation:none!important;transition:none!important}.flying-charge .orb-number{animation:orb-number-away .9s ease forwards}.flying-charge .orb-specks{opacity:.5}.flying-charge .orb-body{background:radial-gradient(circle at 40% 40%,#fff,#e7ffbd 18%,#8bffd1aa 45%,#40dbec44 70%);box-shadow:0 0 35px #ccffbd99,0 0 90px #55eec866}.flying-charge.in-flight:after{content:'';position:absolute;top:55%;left:35%;width:30%;height:320%;transform-origin:top;transform:rotate(var(--flight-angle,0deg));filter:blur(6px);background:linear-gradient(#dbffe9cc,#82fce85c,transparent);border-radius:50%;animation:orb-flight-tail 3s both}.flying-charge .charge-fill{stroke:#efffd4}.journey-lights{position:absolute;inset:0;opacity:0}.journey-stage[data-view=attack] .journey-lights{opacity:1}.journey-lights i{position:absolute;left:calc(30% + var(--i)*2%);top:calc(65% + var(--i)*.8%);width:3px;height:6px;border-radius:50%;background:#d7ffd1;box-shadow:0 0 8px #adffb7;animation:national-gather 1.6s calc(var(--i)*.09s) ease-in infinite}.journey-burst{position:absolute;left:var(--hit-x,50%);top:var(--hit-y,25%);height:90px;width:90px;border-radius:50%;opacity:0;background:radial-gradient(circle,#ffffff,#f3ffc8 8%,#a3ffca80 27%,transparent 67%);border:1px solid #c8ffbbaa;translate:-50% -50%}.journey-stage[data-phase=hit] .journey-burst{animation:impact-ambient 1.8s ease-out both}.journey-stage.support-only[data-phase=hit] .journey-burst{animation:none;opacity:.4}
.awards-screen{position:relative;min-height:calc(100dvh - 100px);background:none;padding:24px 12px 0;animation:none;perspective:900px}.awards-screen h1{font-size:25px}.badge-pop-stage{height:245px;position:relative;perspective:700px;pointer-events:none}.badge-spotlight{position:absolute;inset:18px 0 0;display:flex;align-items:center;flex-direction:column;opacity:0;animation:badge-foreground 1.45s var(--delay) cubic-bezier(.18,.7,.2,1) both;transform-style:preserve-3d}.badge-spotlight .medal{width:118px;height:118px;box-shadow:0 0 0 8px #fff3a40a,0 0 80px #ffdd7e55,0 20px 45px #0008,inset 0 0 0 7px #291b1655}.badge-spotlight .medal span{font-size:55px}.badge-spotlight strong{font-size:20px;color:#fff4ca;margin-top:22px}.badge-spotlight small{font-size:11px;margin-top:8px;color:#c8d3e7}.award-window{max-height:285px;overflow:auto;border:1px solid #d5e9ff30;border-radius:20px;background:#101b35d9;box-shadow:0 15px 60px #0005,inset 0 1px #fff1;text-align:left;backdrop-filter:blur(18px);padding:0 17px 12px;animation:rewards-window 1.2s .75s cubic-bezier(.15,.8,.2,1) both;scrollbar-color:#69769b #101b35}.award-window-title{position:sticky;top:0;background:#101b35f5;padding:16px 0 13px;font-size:12px;color:#aebfd9;z-index:2;display:flex;justify-content:space-between}.award-window-title b{color:#f0ddac}.award-row{display:flex;align-items:center;gap:17px;padding:15px 2px;border-top:1px solid #ffffff13;animation:badge-land .55s var(--delay) cubic-bezier(.2,.9,.2,1) both}.award-row .medal{width:48px;height:48px;flex-shrink:0}.award-row .medal span{font-size:24px}.award-row strong{display:block;font-size:13px;color:#f4f1e4}.award-row small{display:block;font-size:10px;color:#acbed7;margin-top:7px}.award-check{margin-left:auto;color:#d8ffb2;font-size:15px}.awards-screen .badge-collection{background:#0b1427b8;border:1px solid #c8ddff1c;border-radius:20px;padding:20px 15px;margin-top:17px;backdrop-filter:blur(12px)}.awards-next{background:linear-gradient(transparent,#060d24e8 35%);z-index:2}.awards-next button:disabled{opacity:.35}.departing-panel{animation:none!important;contain:layout style;overflow:hidden}
@keyframes swipe-invite{0%,100%{opacity:.25;translate:0 9px}50%{opacity:1;translate:0 -8px}}@keyframes orb-number-away{to{opacity:0;scale:.8}}@keyframes flight-tail{0%,15%{opacity:0;scale:1 .1}60%{opacity:.9;scale:1 1}100%{opacity:.2;scale:.3 1.5}}@keyframes national-gather{from{transform:translateY(70px) scale(.4);opacity:0}30%{opacity:1}to{transform:translate(calc((10 - var(--i))*7px),-260px) scale(.3);opacity:0}}@keyframes live-impact{0%{opacity:0;transform:scale(.3)}12%{opacity:1;transform:scale(2.3)}100%{opacity:0;transform:scale(8)}}@keyframes live-damage{0%{opacity:0;translate:0 30px;scale:.5}14%{opacity:1;scale:1.2}35%{scale:1}80%{opacity:1}100%{opacity:0;translate:0 -60px}}
@keyframes badge-foreground{0%{opacity:0;transform:translateY(150px) translateZ(220px) rotateX(-25deg) scale(1.7);filter:blur(16px)}26%{opacity:1;transform:translateY(0) translateZ(0) rotateX(0) scale(1);filter:blur(0)}65%{opacity:1;transform:translateY(-9px) scale(1.04);filter:blur(0)}100%{opacity:0;transform:translateY(175px) translateZ(-150px) scale(.35);filter:blur(3px)}}@keyframes badge-land{from{opacity:0;transform:translateY(-22px) scale(.9);filter:brightness(2)}to{opacity:1;transform:translateY(0) scale(1);filter:brightness(1)}}@keyframes rewards-window{from{opacity:0;transform:translateY(90px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.onboard-panel{padding:4px 12px 20px}.onboard-panel h1{font-size:27px}.intro-art.target-intro,.onboard .enemy-stage{height:200px}.onboard .enemy-sprite,.persistent-enemy[data-view=onboard] .enemy-sprite{height:160px;width:160px;top:40px}.onboard .target-ring,.persistent-enemy[data-view=onboard] .target-ring{height:155px;width:155px;top:42px}.persistent-enemy .enemy-status{padding-top:11px}.ready-battle .enemy-stage,.cinema-v2 .enemy-stage{height:210px}.ready-battle .enemy-sprite,.persistent-enemy[data-view=attack] .enemy-sprite,.persistent-enemy[data-view=cinematic] .enemy-sprite{height:138px;width:138px;top:68px}.ready-battle .target-ring,.persistent-enemy[data-view=attack] .target-ring,.persistent-enemy[data-view=cinematic] .target-ring{width:134px;height:134px;top:70px}.badge-pop-stage{height:240px}.space-console{padding-top:8px}.space-console .charge-orb{margin-top:45px}}
@media(max-height:680px) and (max-width:700px){.intro-art.target-intro,.onboard .enemy-stage{height:145px}.onboard .enemy-sprite,.persistent-enemy[data-view=onboard] .enemy-sprite{height:110px;width:110px;top:35px}.onboard .target-ring,.persistent-enemy[data-view=onboard] .target-ring{height:105px;width:105px;top:36px}.onboard-panel h1{font-size:22px}.onboard-panel .sub{margin:7px 0 12px;font-size:10px}.onboard-panel .grade{padding:8px}.persistent-enemy[data-view=quiz] .enemy-sprite{width:62px;height:62px;top:36px}.persistent-enemy[data-view=quiz] .target-ring{width:60px;height:60px;top:36px}.persistent-enemy[data-view=quiz] .enemy-status{padding-top:4px;padding-bottom:4px}.persistent-enemy[data-view=quiz] .target-coordinate{top:60px}.ready-battle .enemy-stage,.cinema-v2 .enemy-stage{height:160px}.ready-battle .enemy-sprite,.persistent-enemy[data-view=attack] .enemy-sprite,.persistent-enemy[data-view=cinematic] .enemy-sprite{height:102px;width:102px;top:54px}.ready-battle .target-ring,.persistent-enemy[data-view=attack] .target-ring,.persistent-enemy[data-view=cinematic] .target-ring{height:100px;width:100px;top:55px}.space-console .charge-orb{width:158px;height:158px;margin:35px auto 0}.space-console h1{font-size:17px}.space-console .eyebrow{margin-bottom:6px}.swipe-arrows{top:50px}.swipe-arrows i{width:13px;height:13px}.swipe-hint{font-size:10px;margin:10px 0 5px}.launch-accessible{font-size:8px;padding:6px;min-height:30px}.space-console .fire-explain{display:none}.cinema-v2{min-height:430px}.cinema-copy{bottom:10px;padding:10px 0}.cinema-copy h1{font-size:18px}.gather-total{font-size:45px}.gather-equation b{font-size:22px}.gather-equation{margin-top:8px}.badge-pop-stage{height:205px}.badge-spotlight .medal{width:94px;height:94px}.badge-spotlight strong{font-size:16px;margin-top:14px}.awards-screen{padding-top:15px}.award-window{max-height:230px}.persistent-enemy[data-phase=hit] .damage-pop{top:90px;font-size:46px}}
body.motion-reduced .journey-stage *,body.motion-reduced .persistent-enemy,body.motion-reduced .persistent-enemy *,body.motion-reduced .badge-spotlight,body.motion-reduced .award-window,body.motion-reduced .award-row,body.motion-reduced .swipe-arrows *{animation:none!important;transition:none!important}body.motion-reduced .badge-pop-stage{display:none}body.motion-reduced .award-row{opacity:1}body.motion-reduced .journey-earth{transform:none!important}body.motion-reduced .persistent-enemy[data-phase=hit] .damage-pop{display:block;opacity:1}body.motion-reduced .flying-charge.in-flight{opacity:0}body.motion-reduced .departing-panel{display:none}body.motion-reduced .charge-orb{transition:none}

body:not(.in-battle) .journey-stage{opacity:0}.journey-stage{transition:opacity 1s}

.badge-pop-stage{transition:height .9s cubic-bezier(.2,.7,.2,1)}.awards-screen[data-revealed=true] .badge-pop-stage{height:0}body.motion-reduced .badge-pop-stage{transition:none}

/* Let the opponent retreat upward before the first question enters. */
.intro-art.target-intro,.onboard .enemy-stage{height:285px}
.onboard .enemy-sprite,.persistent-enemy[data-view=onboard] .enemy-sprite{top:100px}
.onboard .target-ring,.persistent-enemy[data-view=onboard] .target-ring{top:102px}
.persistent-enemy .enemy-sprite,.persistent-enemy .target-ring{transition:width 1.8s cubic-bezier(.4,0,.18,1),height 1.8s cubic-bezier(.4,0,.18,1),top 1.8s cubic-bezier(.4,0,.18,1),opacity .7s}
@media(max-width:700px){.intro-art.target-intro,.onboard .enemy-stage{height:260px}}
@media(max-height:680px) and (max-width:700px){.intro-art.target-intro,.onboard .enemy-stage{height:185px}.onboard .enemy-sprite,.persistent-enemy[data-view=onboard] .enemy-sprite{top:75px}.onboard .target-ring,.persistent-enemy[data-view=onboard] .target-ring{top:76px}}

/* Keep the shared target visible beside the reason to invite family. */
.final-results{animation:none;padding-top:20px}.result-boss{margin-top:16px;border:1px solid #d5e9ff25;border-radius:22px;padding:0 8px 18px}.result-boss .enemy-stage{height:185px}.persistent-enemy[data-view=result] .enemy-sprite{top:48px;width:130px;height:130px}.persistent-enemy[data-view=result] .target-ring{top:50px;width:126px;height:126px}.persistent-enemy[data-view=result] .target-coordinate{top:125px}.rally-status p{color:#d7e4f5;font-size:12px}.rally-status>strong{display:block;font-size:48px;line-height:1.35;font-weight:650;color:#ffe2a4;font-variant-numeric:tabular-nums}.rally-status strong small{font-size:13px;font-weight:500}.rally-status>span{display:block;font-size:11px;line-height:1.8;color:#adbed5;margin-top:6px}.rally-status.cleared>strong{color:#caff9f;font-size:38px}.result-rally{margin-top:14px}.result-rally .primary{font-size:13px;background:linear-gradient(110deg,#7564c2,#504b9f);min-height:55px;padding:16px}.final-results .personal-totals{margin:20px 0}.journey-stage[data-view=result] .journey-earth{opacity:.22;transform:translateY(-3vh) scale(1.14);filter:blur(7px)}
@media(max-height:680px) and (max-width:700px){.final-results{padding-top:12px}.final-results h1{font-size:19px}.result-boss{margin-top:12px;padding-bottom:12px}.result-boss .enemy-stage{height:135px}.persistent-enemy[data-view=result] .enemy-sprite{top:40px;width:88px;height:88px}.persistent-enemy[data-view=result] .target-ring{top:42px;width:84px;height:84px}.persistent-enemy[data-view=result] .target-coordinate{top:90px}.rally-status>strong{font-size:39px}.rally-status>span{font-size:10px}.result-rally .primary{font-size:12px;min-height:50px}}

/* Film-style separation: a crisp core, directional flare, slower wave, then faint debris. */
.ready-total{margin:12px auto 8px;display:flex;flex-direction:column;gap:5px;color:#d2dfed}.ready-total>span{font-size:11px}.ready-total strong{font-size:32px;line-height:1.1;color:#e7ffc7;font-variant-numeric:tabular-nums}.ready-total small{font-size:9px;color:#9cafc5}
.impact-plane{position:fixed;inset:0;z-index:7;pointer-events:none;overflow:hidden;contain:strict}.impact-plane>div,.impact-spark{position:absolute;left:var(--hit-x,50%);top:var(--hit-y,25%);opacity:0;pointer-events:none}
.impact-core{width:100px;height:100px;margin:-50px;background:radial-gradient(circle,#fff 0%,#faffd7 12%,#a0ffd9a0 32%,#64def233 52%,transparent 70%);border-radius:50%;mix-blend-mode:screen}
.impact-flare{width:280px;height:7px;margin:-3.5px -140px;background:linear-gradient(90deg,transparent,#7af0ed88,#fffedb,#fff,#fffedb,#7af0ed88,transparent);filter:blur(1px);box-shadow:0 0 14px #b3ffe288}
.impact-wave{width:130px;height:130px;margin:-65px;border-radius:50%;border:2px solid #deffcb;box-shadow:inset 0 0 9px #7dfbe7,0 0 12px #7dfbe780;filter:blur(.5px)}.impact-wave.second{border-color:#86cfff;border-width:1px}
.impact-spark{width:3px;height:18px;margin:-9px -1.5px;background:linear-gradient(#ffffe6,#9df9c6aa,transparent);border-radius:50%;transform-origin:50% 50%;box-shadow:0 0 5px #b9ffd1}
.impact-plane[data-phase=hit] .impact-core{animation:impact-core .55s cubic-bezier(.05,.7,.2,1) both}.impact-plane[data-phase=hit] .impact-flare{animation:impact-flare .8s cubic-bezier(.1,.8,.2,1) both}.impact-plane[data-phase=hit] .impact-wave{animation:impact-wave 1.35s .045s cubic-bezier(.1,.7,.15,1) both}.impact-plane[data-phase=hit] .impact-wave.second{animation-delay:.13s;animation-duration:1.65s}.impact-plane[data-phase=hit] .impact-spark{animation:impact-spark var(--life) var(--delay) cubic-bezier(.08,.65,.2,1) both}
@keyframes orb-flight-tail{0%{opacity:0;scale:1 .25}5%{opacity:.9;scale:1 1}35%{opacity:.65;scale:.8 .8}85%{opacity:.3;scale:.6 .5}100%{opacity:.12;scale:.4 .3}}
@keyframes impact-core{0%{opacity:0;transform:scale(.3)}12%{opacity:1;transform:scale(1.4)}36%{opacity:.75;transform:scale(2.1)}100%{opacity:0;transform:scale(2.7)}}
@keyframes impact-flare{0%{opacity:0;transform:scaleX(.1)}9%{opacity:.95;transform:scaleX(1)}100%{opacity:0;transform:scaleX(1.5)}}
@keyframes impact-wave{0%{opacity:.9;transform:scale(.25) rotateX(25deg)}65%{opacity:.25}100%{opacity:0;transform:scale(3.5) rotateX(25deg)}}
@keyframes impact-spark{0%{opacity:0;transform:rotate(var(--angle)) translateY(5px) scaleY(1.8)}10%{opacity:.85}100%{opacity:0;transform:rotate(var(--angle)) translateY(calc(-1 * var(--reach))) scaleY(.25)}}
@keyframes impact-ambient{0%{opacity:0;transform:scale(.5)}12%{opacity:.65;transform:scale(2.3)}100%{opacity:0;transform:scale(5)}}
body.motion-reduced .impact-plane{display:none}
@media(max-height:700px){.ready-battle .enemy-stage{height:180px}.space-console .charge-orb{width:154px;height:154px;margin-top:38px}.space-console{padding-bottom:10px}.swipe-hint{margin:8px 0}.ready-total{margin-top:4px}.ready-total strong{font-size:26px}.space-console .fire-explain{display:none}}

@media(max-height:700px){.ready-battle .enemy-stage{height:130px}.persistent-enemy[data-view=attack] .enemy-sprite{width:110px;height:110px;top:24px}.persistent-enemy[data-view=attack] .target-ring{width:106px;height:106px;top:26px}.persistent-enemy[data-view=attack] .target-coordinate{display:none}.space-console .charge-orb{width:138px;height:138px;margin-top:30px}.space-console h1{font-size:18px}.space-console .eyebrow{margin-bottom:6px}.space-console .swipe-arrows{top:53px}.ready-total strong{font-size:24px}.ready-total{gap:3px}.space-console .swipe-hint{margin:10px 0 4px}.space-console .launch-accessible{padding:7px;min-height:32px}}

.next-days{margin:23px 0 18px}.mission-calendar{display:grid;grid-template-columns:12fr 23fr 42fr 23fr;gap:5px;position:relative}.calendar-day{min-width:0;border:1px solid #b9d0ff24;background:#ffffff04;border-radius:14px;padding:10px 3px;display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center}.calendar-day small{font-size:9px;color:#9cafc9}.calendar-day time{font-size:16px;font-weight:750;font-variant-numeric:tabular-nums}.calendar-day>span{font-size:8px;color:#a6b9d1;white-space:nowrap}.calendar-day.day-today{background:#9cf3bb12;border-color:#c1f6b978}.day-today time{color:#d9ffc1}.calendar-day.day-past{opacity:.55;border-color:transparent;background:transparent}.calendar-mark{height:57px;display:grid;place-items:center;font-size:27px;color:#d6f7c2}.calendar-alien{height:57px;width:100%;position:relative}.calendar-alien img{height:100%;max-width:100%;object-fit:contain}.day-future .calendar-alien img{filter:brightness(0);opacity:.6}.calendar-alien b{position:absolute;inset:0;display:grid;place-items:center;font-size:30px;color:#bdcde8;text-shadow:0 0 15px #c8e2ff80}.day-future{background:radial-gradient(ellipse at 50% 60%,#526ca32c,transparent 85%)}.calendar-note{font-size:10px;color:#b9c9df;line-height:1.9;margin-top:14px}.tomorrow-plan{text-align:left;border:1px solid #aecffc2b;border-radius:22px;background:linear-gradient(140deg,#182d4b99,#111932);padding:23px;margin:22px 0}.tomorrow-plan .eyebrow{font-size:8px;color:#9cb6dc}.tomorrow-plan h2{font-size:21px;margin-bottom:10px;color:#e7efff}.tomorrow-plan p{font-size:12px;color:#bdcbe0;line-height:2.1}.tomorrow-plan small{display:block;font-size:9px;color:#91a5c4;line-height:1.8;margin-top:7px}.forecast-hp b{font-size:23px;color:#f6ddaa}.tomorrow-study{margin-top:18px;padding-top:18px;border-top:1px solid #bdd7ff26}.tomorrow-study>span{font-size:12px;font-weight:700;color:#daf4c5}.tomorrow-study .secondary{margin-top:12px;background:#d4e9ff10;border-color:#c2d7f650;color:#e7f1ff;font-size:12px}.tomorrow-study p{font-size:11px}.final-results>.next-days+.result-boss{margin-top:12px}

.summary-regions .region-row>span{min-width:100px;white-space:nowrap}

/* Team charge: fixed school order, not a personal ranking. */
.grade-charge{max-width:410px;margin:12px auto 0;text-align:left;color:#d5e6fa}.grade-charge>p{font-size:10px;margin:0 0 6px;display:flex;justify-content:space-between;gap:8px}.grade-charge small{font-size:8px;color:#92a8c1}.grade-charge-grid{display:grid;grid-template-columns:1fr 1fr;gap:5px 14px}.grade-charge-row{display:grid;grid-template-columns:72px 1fr 24px;gap:5px;align-items:center;font-size:9px;--fill:0}.grade-charge-row>span{white-space:nowrap}.grade-charge-row i{height:5px;background:#ffffff15;border-radius:4px;overflow:hidden}.grade-charge-row em{display:block;width:calc(var(--share)*100%);height:100%;transform:scaleX(var(--fill));transform-origin:left;background:linear-gradient(90deg,#65b3bb,#d1ffaf)}.grade-charge-row b{text-align:right;font-size:10px;font-weight:500}.grade-charge-row.charging{color:#e4ffb3}.grade-charge-row.charged em{box-shadow:0 0 9px #a7ffc1}
.gather-light,.companion-light{position:fixed;pointer-events:none;z-index:24;width:13px;height:13px;border-radius:50%;background:#f2ffdf;box-shadow:0 0 10px 4px #b8ffb8,0 0 25px 9px #7cceff88}.companion-light{width:27px;height:27px;background:#d5f9ff;box-shadow:0 0 12px 6px #c2faff,0 0 40px 18px #65baff88;z-index:21}
.ready-battle .space-console .charge-orb{width:170px;height:170px;margin:14px auto 0}.ready-battle .orb-number b{font-size:58px}.grade-charge~.swipe-arrows{display:none}.ready-battle .swipe-hint{margin-top:8px}
@media(max-width:360px){.grade-charge-grid{column-gap:8px}.grade-charge-row{grid-template-columns:66px 1fr 20px;font-size:8px}.grade-charge>p{font-size:9px}.grade-charge small{font-size:7px}}
@media(max-height:680px) and (max-width:700px){.ready-battle .enemy-stage{height:105px}.persistent-enemy[data-view=attack] .enemy-sprite{height:70px;width:70px;top:32px}.persistent-enemy[data-view=attack] .target-ring{height:68px;width:68px;top:33px}.ready-battle .space-console{padding-top:4px}.ready-battle .space-console .charge-orb{width:122px;height:122px;margin:9px auto 0}.ready-battle .orb-number b{font-size:39px}.ready-battle .orb-number small{font-size:8px}.grade-charge{margin-top:8px}.grade-charge-grid{row-gap:3px}.ready-total{margin:5px auto}.ready-total strong{font-size:24px}.ready-battle .space-console h1{font-size:16px}}
.motion-reduced .gather-light,.motion-reduced .companion-light{display:none}
.grade-charge{background:#09152bc9;border:1px solid #b9dfff20;border-radius:10px;padding:7px 8px}
@media(max-height:680px) and (max-width:700px){.ready-battle .enemy-stage{height:88px}.ready-battle .space-console .charge-orb{width:108px;height:108px;margin-top:6px}.ready-battle .space-console .ready-total{gap:2px;margin:3px auto}.ready-battle .space-console .ready-total>span{font-size:9px}.ready-battle .space-console .swipe-hint{margin:4px 0 2px}.ready-battle .space-console .eyebrow{display:none}.grade-charge{padding:5px 6px}.grade-charge>p{margin-bottom:3px}}
@media(min-height:681px) and (max-width:700px){.ready-battle .space-console{padding-top:8px;padding-bottom:8px}.ready-battle .space-console>.eyebrow{display:none}.ready-battle .space-console .charge-orb{width:154px;height:154px;margin-top:10px}.ready-battle .space-console .fire-explain{display:none}}

/* Compact results keep the next unanswered flag in the first viewport. */
.final-results{padding:10px 8px 16px}.final-results>.eyebrow{margin-bottom:7px}.final-results>h1{font-size:21px;margin:0 0 12px}
.compact-result-boss{display:grid;grid-template-columns:minmax(100px,.85fr) minmax(0,1.15fr);align-items:center;margin:0!important;padding:12px 10px;gap:8px}
.compact-result-boss .enemy-stage{height:150px}.compact-result-boss .enemy-status,.compact-result-boss .target-coordinate{display:none}.compact-result-boss .enemy-sprite{width:100px;height:100px;top:26px}.compact-result-boss .target-ring{width:100px;height:100px;top:26px}.compact-result-boss .enemy-hp{position:absolute;left:8px;right:8px;bottom:4px}
.persistent-enemy[data-view=result] .enemy-status,.persistent-enemy[data-view=result] .target-coordinate{display:none}.persistent-enemy[data-view=result] .enemy-sprite{width:100px;height:100px;top:26px}.persistent-enemy[data-view=result] .target-ring{width:100px;height:100px;top:26px}.persistent-enemy[data-view=result] .enemy-hp{position:absolute;left:8px;right:8px;bottom:4px}
.compact-result-boss .rally-status{padding:0;text-align:left}.compact-result-boss .rally-status p{font-size:10px;margin:0 0 5px}.compact-result-boss .rally-status>strong{font-size:40px;line-height:1.2}.compact-result-boss .rally-status>strong small{font-size:10px}.compact-result-boss .primary{min-height:40px;padding:9px 10px;margin-top:12px;font-size:11px;gap:5px}.compact-result-boss .arrow{font-size:17px}
.final-results .quiz-teaser{text-align:center;margin:14px 0;padding:16px;background:radial-gradient(ellipse at 50% 45%,#3a5b7355,transparent 80%),#121d34}.final-results .quiz-teaser h2{font-size:18px;margin:0 0 9px}.quiz-teaser .topic-label{display:inline-flex;align-items:center;gap:4px;border:1px solid #c8f4b638;border-radius:99px;background:#a8e49a12;color:#d6fac4;font-size:11px;padding:5px 11px}.quiz-teaser .topic-label small{display:inline;font-size:8px;margin:0;color:#9dbbaa}.teaser-question img{display:block;width:140px;height:86px;object-fit:contain;margin:14px auto 10px;filter:drop-shadow(0 5px 12px #0005)}.quiz-teaser .teaser-question p{font-size:16px;color:#edf6ff;line-height:1.6;margin:5px 0 12px}.quiz-teaser .primary{margin:0;min-height:44px;padding:10px 16px;font-size:14px}.quiz-teaser .arrow{font-size:20px}
.compact-calendar{margin:14px 0}.compact-calendar .mission-calendar{grid-template-columns:repeat(4,1fr);gap:5px}.compact-calendar .calendar-day{padding:7px 3px;gap:3px;border-radius:10px;position:relative}.compact-calendar .calendar-day small{font-size:8px}.compact-calendar .calendar-day time{font-size:12px;font-weight:500}.compact-calendar .calendar-check{position:absolute;right:5px;top:6px;font-size:9px;color:#c4f1a7}
.own-share{display:block}.team-activity{display:flex;justify-content:center;align-items:center;gap:8px;margin:10px 0 6px;color:#bceecb;font-size:10px}.team-activity small{display:block;font-size:8px;color:#8b9fb5;margin-top:3px}.activity-bars{display:flex;align-items:center;gap:3px;height:23px}.activity-bars i{width:4px;height:18px;border-radius:3px;background:#baffcb;box-shadow:0 0 7px #9efbc66b;animation:team-signal 1.8s calc(var(--i)*-.23s) ease-in-out infinite;transform-origin:center}
@keyframes team-signal{0%,100%{opacity:.3;transform:scaleY(.3)}45%{opacity:1;transform:scaleY(1)}75%{opacity:.5;transform:scaleY(.55)}}
body.motion-reduced .activity-bars i{animation:none;opacity:.65;transform:scaleY(.6)}
@media(max-width:350px){.final-results>h1{font-size:19px}.compact-result-boss{grid-template-columns:100px minmax(0,1fr);padding:8px;gap:5px}.compact-result-boss .rally-status>strong{font-size:34px}.compact-result-boss .primary{font-size:10px;padding:8px}.final-results .quiz-teaser{padding:12px}.final-results .quiz-teaser h2{font-size:16px}.teaser-question img{height:70px;margin:10px auto}.quiz-teaser .teaser-question p{font-size:14px}}

.brand-lockup{display:flex;flex-direction:column;gap:2px}.brand .brand-shoulder{font-size:9px;letter-spacing:.03em;margin:0;line-height:1.4}.brand .brand-name{display:flex;align-items:baseline;gap:0;font-size:31px;font-weight:900;letter-spacing:-.07em;line-height:1.05}.brand .brand-q{color:#d3ffac}.brand .brand-reading{display:inline;font-size:9px;letter-spacing:.08em;margin:0 0 0 9px;font-weight:500}

/* Practice is a learning scene, with no target, HP, or attack gesture. */
.persistent-enemy.off-stage{visibility:hidden}
.practice-horizon{display:flex;align-items:center;justify-content:center;gap:18px;height:154px;margin:0 auto 12px;background:radial-gradient(ellipse at 35% 50%,#929ad829,transparent 68%);border-bottom:1px solid #c7d7ff1a}
.mystery-orbit{position:relative;width:105px;height:105px;flex-shrink:0;border-radius:50%;background:radial-gradient(circle,#6a69ac33,transparent 70%)}.mystery-orbit img{width:100%;height:100%;object-fit:contain;filter:brightness(0);opacity:.7;animation:mystery-drift 5s ease-in-out infinite}.mystery-orbit>span{position:absolute;inset:0;display:grid;place-items:center;color:#e5e2ff;font-size:39px;font-weight:800;text-shadow:0 0 18px #c5afff99}
.practice-intro{display:flex;flex-direction:column;gap:8px;max-width:220px}.practice-label{font-size:10px;letter-spacing:.12em;color:#c4baf1}.practice-intro>strong{font-size:21px;font-weight:700;color:#edf4ff}.practice-intro>small{font-size:9px;color:#a7b4d0;line-height:1.6}.practice-complete .cockpit{text-align:center;padding:24px 18px}.practice-complete h1{font-size:21px}.practice-score{margin:24px 0 12px;color:#dcffba}.practice-score>b{font-size:70px;font-weight:500}.practice-score>span{font-size:13px}.practice-complete .primary{margin-top:24px}
@keyframes mystery-drift{0%,100%{transform:translateY(3px)}50%{transform:translateY(-3px)}}
body.motion-reduced .mystery-orbit img{animation:none}
@media(max-height:680px) and (max-width:700px){.practice-horizon{height:100px;margin-bottom:6px;gap:12px}.mystery-orbit{width:72px;height:72px}.mystery-orbit>span{font-size:29px}.practice-intro{gap:4px}.practice-intro>strong{font-size:17px}.practice-intro>small{font-size:8px}.practice-complete .cockpit{padding:16px}.practice-score{margin:15px 0 6px}}

.brand .brand-logo{display:block;width:132px;height:auto;object-fit:contain}.brand-lockup{gap:3px}.brand .brand-shoulder{font-size:9px}@media(max-width:350px){.brand .brand-logo{width:114px}}

/* Keep the shoulder readable in battle, where generic brand small text is 6px. */
.site-header{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:4px}
.site-header>.brand-shoulder{grid-column:1 / -1;font-size:15px;font-weight:700;line-height:1.5;letter-spacing:.02em;color:inherit;margin:0}
.site-header .brand-lockup{flex-direction:row;align-items:center;gap:10px}
.site-header .brand .brand-reading{font-size:13px;font-weight:600;letter-spacing:.08em;line-height:1.5;margin:0}
@media(max-width:700px){.site-header>.brand-shoulder{font-size:14px}}

.header-actions{display:flex;gap:8px;align-items:center}
.site-header .sound-toggle,.site-header .menu-toggle{width:44px;height:44px;min-width:44px;border:1px solid #9ba9d066;background:#171b34;color:#edf4ff;border-radius:50%}
.sound-toggle{display:grid;place-items:center;padding:10px}.sound-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sound-toggle[aria-pressed="false"]{color:#9ba9d0;background:#12152a}
#menu{color:#edf4ff;background:linear-gradient(145deg,#22233f,#111729);border:1px solid #9f9bde55;box-shadow:0 24px 90px #0009;padding:20px;border-radius:22px}
#menu::backdrop{background:#060b1dcc;backdrop-filter:blur(8px)}#menu .menu-head{color:#c6baff;letter-spacing:.14em;margin-bottom:12px}#menu .menu-head button{color:#edf4ff;border:1px solid #b8b4de44;border-radius:50%;font-size:25px}
#menu .menu-item{border:1px solid #b6b4e329;border-radius:12px;background:#ffffff05;padding:14px 12px;margin:7px 0;font-size:14px;min-height:48px}#menu .menu-item:hover{background:#aea1ff20;border-color:#ada2e777}#menu .menu-item span{color:#c4b7fa}#menu .tiny,#menu .footnote{color:#a9b5cf}#menu button:focus-visible{outline-color:#d1bdff}
.onboard-panel .preschool-grade{display:flex;justify-content:space-between;align-items:center;width:100%;margin-top:20px;padding:14px 18px;min-height:58px;font-size:16px}
.onboard-panel .grade-grid .grade{display:flex;align-items:center;justify-content:center;gap:7px;min-height:70px;padding:10px 5px}.onboard-panel .grade-number{font-size:34px;line-height:1;font-weight:800}.onboard-panel .grade-grid small{font-size:12px}.onboard-panel .grade-grid{gap:10px}
.practice-tally{text-align:right;color:#c9e8bc;font-size:12px;margin:9px 0}.practice-finish{display:block;margin:6px auto 0;color:#bec9df}
@media(max-width:350px){.site-header .brand-logo{width:100px}.site-header .brand-lockup{gap:6px}.site-header .brand .brand-reading{font-size:12px}.header-actions{gap:6px}.site-header{column-gap:8px}}

.quiz-teaser .quiz-release{font-size:12px;line-height:1.4;color:#bfcae1;margin:-3px 0 10px}.compact-calendar .calendar-day{gap:3px}.calendar-boss{position:relative;display:grid;place-items:center;width:44px;height:32px;margin:auto;border-radius:50%;background:#a9a1e322}.calendar-boss img{width:38px;height:32px;object-fit:contain;filter:brightness(0);opacity:.8}.calendar-boss i{position:absolute;color:#d8d4f9;font-size:14px;font-style:normal}.calendar-forecast{font-size:8px;color:#9ba9c5}.unknown-boss{font-size:21px;color:#99a7c4}

/* Compact mobile header, keeping 44px sound/menu targets. */
.site-header .brand-lockup{gap:6px}.site-header .brand .brand-reading{font-size:12px}
@media(max-width:700px){
 .site-header,.in-battle .site-header{padding:6px 18px;row-gap:0;column-gap:8px}
 .site-header>.brand-shoulder{font-size:13px;line-height:1.4}
 .site-header .brand-logo{width:114px}
 .site-header .brand-lockup{gap:5px}
 #menu{box-sizing:border-box;width:calc(100% - 28px);max-width:390px;max-height:calc(100dvh - 28px);padding:16px}
 #menu .menu-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
 #menu .menu-head button{width:44px;height:44px;flex-shrink:0;padding:0;line-height:1}
 #menu .menu-item{box-sizing:border-box;width:100%;white-space:normal;line-height:1.6}
}
@media(max-width:350px){.site-header .brand-logo{width:100px}.site-header .brand-lockup{gap:4px}.site-header .brand .brand-reading{font-size:11px}}

/* Question feedback stays near the flag and clears before the next question. */
.flag-stage{isolation:isolate;overflow:visible}
.quiz-battle .option{-webkit-tap-highlight-color:transparent}
.quiz-battle .option:not(.correct):not(.wrong){box-shadow:none}
.quiz-battle .option:focus-visible{outline:3px solid #d9b5ff;outline-offset:3px}
@media(hover:none){.quiz-battle .option:not(.correct):not(.wrong):hover{background:#fff;border-color:#c6d2e5;color:#202b45;transform:none}}
/* A physical arrow, placed above the ball instead of over the charge chart. */
.launch-control{position:relative;padding-top:94px}
.ready-battle .space-console .launch-control .charge-orb{margin:0 auto 4px}
.swipe-guide{position:absolute;top:4px;left:0;width:100%;display:flex;flex-direction:column;align-items:center;gap:0;pointer-events:none;opacity:0;transition:opacity .25s;color:#e4ffc1}
.swipe-guide svg{width:44px;height:51px;fill:none;stroke:currentColor;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 7px #b3ff7b);animation:swipe-guide-up 1.4s ease-in-out infinite}
.swipe-guide b{font-size:20px;line-height:1.5;text-shadow:0 2px 12px #050c24}
.charge-orb[data-ready=true]+.swipe-guide{opacity:1}.charge-orb.dragging+.swipe-guide{opacity:.3}
@keyframes swipe-guide-up{0%,100%{transform:translateY(3px)}60%{transform:translateY(-8px)}}
.space-console .swipe-hint{display:none}
/* One island for the collection and today's personal contribution. */
.adventure-record{border:1px solid #c9c5f338;background:#131d39cc;border-radius:18px;margin:14px 0;padding:14px}
.defeated-history{display:grid;grid-template-columns:88px minmax(0,1fr);align-items:center;gap:14px}
.defeated-count>span{display:block;font-size:11px;color:#c8d5ec}.defeated-count b{font-size:38px;color:#f0e4bb;line-height:1.3}.defeated-count b small{font-size:13px;margin-left:5px}
.defeated-scroll{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;padding:4px 2px 10px;scrollbar-width:thin;scrollbar-color:#8c7fbd #ffffff09}
.defeated-card{flex:0 0 68px;scroll-snap-align:start;text-align:center}.defeated-card img{width:64px;height:64px;object-fit:contain}.defeated-card small{display:block;color:#d3ddee;font-size:10px}.defeated-scroll p{font-size:12px;color:#b5c7dd;text-align:left;line-height:1.7;margin:0}
.final-results .adventure-record .personal-totals{border:0;border-top:1px solid #ffffff1c;background:none;border-radius:0;margin:10px 0 0;padding:14px 0 0}
.final-results .national-summary .national-heading{font-size:23px;font-weight:800;margin:0 0 12px;letter-spacing:.03em;color:#eef7ff}
.final-results .national-heading small{display:inline-block;font-size:11px;line-height:1.5;white-space:nowrap;vertical-align:middle;margin-left:6px}
/* Menu, family and records use the same nighttime palette. */
#menu .menu-players h2{font-size:15px;color:#d2cbea;margin:2px 0 12px}
#menu .menu-players>div{display:grid;grid-template-columns:1fr 1fr;gap:8px;max-height:230px;overflow-y:auto;padding:3px}
#menu .menu-player{background:#ffffff09;border:1px solid #b0bfe033;color:#edf5ff;border-radius:13px;padding:11px 7px;min-height:75px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:4px}
#menu .menu-player b{font-size:12px}#menu .menu-player small{font-size:10px;color:#b5c0db}#menu .menu-player[aria-pressed=true]{background:#8772d738;border-color:#c4b3ff}#menu .menu-player[aria-pressed=true] small{color:#e1d2ff}
#menu .add-player{justify-content:center;color:#decfff;border-style:dashed;margin-bottom:14px}
body[data-screen=save-status] .narrow,body[data-screen=family] .narrow,body[data-screen=records] .narrow,body[data-screen=parents] .narrow{color:#edf4ff}
.in-battle .narrow h1,.in-battle .narrow h2{color:#edf4ff}.in-battle .narrow .sub,.in-battle .narrow .tiny,.in-battle .narrow .footnote{color:#b1c2dc}
.in-battle .family-row,.in-battle .record-card,.in-battle .learn-list span{background:#1a2540;border-color:#d0c2ff38;color:#f1f4ff}.in-battle .family-row small{color:#b7c8e1}.in-battle .family-avatar{background:#514478;color:#e2ceff}
.practice-controls{border-top:1px solid #a4b8dd33;margin-top:14px;padding-top:13px;text-align:left}
.practice-controls>p{font-size:13px;color:#ecedff;margin:0 0 9px;font-weight:700}.practice-controls>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}.practice-controls label:first-child{grid-column:1/-1}
.practice-controls label{font-size:11px;color:#b8c9e1;min-width:0}.practice-controls select{display:block;width:100%;min-height:44px;font-size:13px;padding:8px;border:1px solid #ad9fd15c;border-radius:9px;background:#202c4c;color:#eff5ff;margin-top:4px;color-scheme:dark}.practice-controls>small{display:block;color:#d2c5ff;font-size:11px;margin-top:8px}
.quiz-battle .prefecture-picture{width:150px;height:110px;fill:#b7e8dd;stroke:#193d50;stroke-width:2;max-width:100%}
.quiz-battle .option .prefecture-picture{width:90px;height:70px;display:block}.quiz-battle .option img{width:76px;height:48px;object-fit:contain;display:block}.quiz-battle .name-question{height:60px}.picture-question-mark{font-size:42px;font-weight:800;color:#cbc1ec}
.motion-reduced .swipe-guide svg{animation:none}
body.motion-reduced .swipe-guide svg{animation:none}
@media(max-height:680px){.launch-control{padding-top:85px}.swipe-guide svg{height:44px}.swipe-guide b{font-size:18px}}

.quiz-battle .practice-controls{border-top-color:#9ba8c14d}.quiz-battle .practice-controls>p{color:#283753}.quiz-battle .practice-controls label{color:#526281}.quiz-battle .practice-controls>small{color:#615583}.quiz-battle .practice-tally{color:#53617b}
.quiz-battle .option .answer-symbol{min-width:14px}
/* Correct answers drain HP; the final energy ball finishes the boss. */

/* Individual quiz success, independent of the national energy total. */
body .enemy-hp{display:block}body .enemy-status>span:last-child{display:inline}
.personal-goal{text-align:center;font-size:12px;color:#d9caff;margin:8px 0}
.debug-tools{margin-top:22px;border-top:1px solid #ffffff25;padding:16px 0 0;color:#aebbd1;font-size:12px}.debug-tools summary{cursor:pointer;min-height:32px}.debug-tools p{line-height:1.7}

/* Saved players and new-player creation are different actions. */
.saved-players-heading{font-size:13px;color:#b8c9e2;margin:24px 0 12px}.saved-players{margin:0 0 22px}
.add-player-control,#menu .add-player-control{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;text-align:center;background:transparent;color:#ddd1ff;border:1px dashed #a796d36b;border-radius:18px;padding:18px 12px;cursor:pointer;margin:18px 0}
.add-player-control:hover,#menu .add-player-control:hover{background:#b79eff10;border-color:#d6c3ff}
.add-player-plus{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#8970be26;font-size:30px;line-height:1;font-weight:400}
.add-player-control b{font-size:15px}.add-player-control small{font-size:11px;color:#aab8d1}
#menu .add-player-control{padding:12px;gap:4px}#menu .add-player-plus{width:32px;height:32px;font-size:25px}
/* The release heading attaches to the frame; flag and question share one row. */
.final-results .quiz-teaser{min-inline-size:0;text-align:left;margin:24px 0 14px;padding:4px 18px 16px;border-radius:16px}
.quiz-teaser .teaser-heading{display:flex;align-items:center;gap:10px;padding:0 7px;margin-left:-7px;max-width:100%}
.final-results .quiz-teaser .teaser-heading h2{font-size:clamp(12px,2.7vw,16px);line-height:1.6;margin:0;white-space:nowrap}
.quiz-teaser .teaser-heading .quiz-release{white-space:nowrap;font-size:11px;margin:0;line-height:1.6;color:#c1cee2}
.quiz-teaser .teaser-question{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:center;gap:20px;padding-top:12px}
.quiz-teaser .teaser-question>img{width:100%;height:auto;max-height:105px;object-fit:contain;margin:0}
.quiz-teaser .teaser-content{min-width:0}.quiz-teaser .teaser-content p{font-size:16px;line-height:1.7;margin:8px 0 12px}
.quiz-teaser .teaser-content .topic-label{font-size:11px;padding:3px 8px;border-radius:6px}
.quiz-teaser .teaser-content .primary{width:100%;padding:10px 12px;font-size:13px;min-height:44px}
@media(max-width:380px){.final-results .quiz-teaser{padding:4px 12px 14px}.quiz-teaser .teaser-question{gap:12px}.quiz-teaser .teaser-content p{font-size:14px}.quiz-teaser .teaser-heading{gap:7px}.quiz-teaser .teaser-heading .quiz-release{font-size:10px}}

.compact-result-boss .rally-status>strong{font-size:clamp(22px,5vw,32px)}
.compact-result-boss .rally-status.cleared>strong{white-space:nowrap}

/* Give the win its own readable beat before badge presentation. */
.cinema-v2.phase-settle .cinema-copy{bottom:12%;padding:22px 8px;background:radial-gradient(ellipse,#546b462c,transparent 75%)}
.cinema-copy .victory-title{font-size:clamp(28px,7vw,42px);line-height:1.35;color:#fff0b8;font-weight:850;text-shadow:0 0 25px #f4ca7440}
.cinema-copy .victory-title span{display:block;font-size:1.45em;letter-spacing:.04em}
.battle-outcome{animation:outcome-arrive .7s cubic-bezier(.16,.8,.2,1) both}
.battle-outcome .outcome-detail{font-size:15px;color:#e5efdb;margin:20px 0 8px}.battle-outcome .cinema-small{font-size:13px}
.battle-outcome.retry .victory-title{color:#d5e5ff}
@keyframes outcome-arrive{from{opacity:0;transform:translateY(24px) scale(.9);filter:blur(6px)}to{opacity:1;transform:none;filter:blur(0)}}

.battle .primary.outcome-next{display:flex;justify-content:center;width:min(100%,250px);min-height:46px;margin:16px auto 0;padding:12px 18px;font-size:15px}.battle .primary.outcome-next[hidden]{display:none}

/* HP combat: compact header, visible progress, subtle white-flag edges. */
.site-header,.in-battle .site-header{row-gap:0;padding-top:5px;padding-bottom:5px}
.day-today .calendar-boss img{filter:none;opacity:1}
.quiz-battle img[src*="assets/flags/"],.quiz-teaser img[src*="assets/flags/"],.hunt-review img[src*="assets/flags/"]{filter:drop-shadow(0 0 .55px #24324d80) drop-shadow(0 2px 3px #24324d1c)}
.answer-message .answer-flag{display:inline-block;width:34px;height:23px;object-fit:contain;vertical-align:middle;flex:none;margin:0 5px}
.answer-message{flex-wrap:wrap;align-items:center}
.power-bank .combo-power{font-size:11px;line-height:1.5;margin-left:auto;color:#d8edbd}
.quiz-battle .enemy-status{padding-top:6px;padding-bottom:5px}.quiz-battle .enemy-hp{height:7px}

.quiz-battle .personal-goal{color:#586581}

.home-console .home-hunt-link{color:#5b4d91}

.compact-result-boss .result-save{display:inline-flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:44px;margin:8px 0 4px;padding:5px 8px;border:1px solid #b1c2dc66;border-radius:9px;background:#ffffff08;color:#edf4ff;text-decoration:none;font-size:13px;line-height:1.5;max-width:100%}.compact-result-boss .result-save small{font-size:10px;color:#b1c2dc}.compact-result-boss .result-save:focus-visible{outline:2px solid #caff9f;outline-offset:3px}

/* Save read-back feedback shares the game's dark, compact cards. */
.save-check-card { padding:20px; border:1px solid #515c78; border-radius:20px; background:#1b2540; color:#edf4ff; }
.save-check-card h2 { font-size:clamp(19px,5vw,24px); line-height:1.45; margin:8px 0; }
.save-check-card p { font-size:15px; line-height:1.65; margin:8px 0; }
.save-check-card small { display:block; color:#bacbe2; font-size:13px; }
.save-check-symbol { display:inline-grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#b7f0d7; color:#163d36; font-size:24px; font-weight:800; }
.save-panel .primary { min-height:48px; }

/* Free hunts show the actual sources rather than the unrelated national grade split. */
.hunt-support>p{align-items:center;font-size:12px;flex-wrap:wrap}.hunt-support>p strong{font-size:14px}.hunt-support .grade-charge-grid{grid-template-columns:1fr;gap:10px}.hunt-support .grade-charge-row{grid-template-columns:minmax(0,1fr) 64px 42px;font-size:12px;gap:8px}.hunt-support .grade-charge-row>span{white-space:normal;line-height:1.4}.hunt-support .grade-charge-row b{font-size:15px}.hunt-support .support-rule{margin:10px 0 3px;color:#d1ffaf;font-size:12px}.hunt-support .support-source{display:block;color:#aabbd1;font-size:10px;line-height:1.5}.hunt-support-summary{margin:16px 0;padding:16px;border:1px solid #b9dfff25;border-radius:16px;background:#101b32;text-align:left}.hunt-support-summary h2{font-size:16px;margin:0 0 12px}.hunt-support-summary dl{margin:0}.hunt-support-summary dl>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0}.hunt-support-summary dt{font-size:13px;color:#c5d8ed}.hunt-support-summary dd{margin:0;color:#d1ffaf;font-size:21px;font-weight:800}.hunt-support-summary p{font-size:11px;color:#aabbd1;margin:10px 0 0}

/* Target sprite stays above its gauge; projectiles and impact stay above the target. */
.persistent-enemy .enemy-sprite{z-index:3}.flying-charge{z-index:8}.impact-plane{z-index:9}

/* Layout centers the sprite even while its width changes. Percentage transform
   centering can retain the old width in mobile compositing during transitions. */
.persistent-enemy[data-view] .enemy-sprite{left:0;right:0;margin:0 auto;transform:none;animation-name:boss-hover-centered}
.persistent-enemy.enemy-defeated .enemy-sprite{transform:rotate(-15deg);animation:none}
@keyframes boss-hover-centered{50%{transform:translateY(-7px) rotate(3deg)}}

/* Keep the save action immediately below the victory title. */
.result-save-slot{display:block;min-height:38px;margin:8px 0 4px}
.compact-result-boss .result-save-invite{display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 24px;margin:0;background:#f5d267;border:1px solid #f5d267;color:#142039;font-size:15px;font-weight:700;box-shadow:0 3px 0 #a48332}
.result-save-note{display:inline-flex;align-items:center;gap:6px;min-height:32px;font-size:13px;color:#c2cde0;font-weight:500}.result-save-note.is-saved{color:#a6efd0}
