[hidden]{display:none!important}
:root{color-scheme:dark;--mint:#a8f46a;--muted:#8793a9}*{box-sizing:border-box}body{margin:0;background:#080e19;color:#f2f5fa;font-family:Inter,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;overflow:hidden}canvas{position:fixed;inset:0;width:100%;height:100%;touch-action:none}header{position:fixed;top:0;left:0;right:0;height:100px;padding:0 5.4%;display:flex;align-items:center;justify-content:space-between;z-index:5;border-bottom:1px solid #ffffff09}.brand{font-weight:850;letter-spacing:2px;font-size:19px;color:white;text-decoration:none;display:flex;align-items:center;gap:4px}.brand>span:last-child{color:var(--mint)}.brand-icon{font-size:35px!important;color:var(--mint);margin-right:12px}.header-right{display:flex;gap:19px;align-items:center;color:var(--muted);font-size:11px;letter-spacing:2px}.live-dot{display:inline-block;width:6px;height:6px;background:var(--mint);border-radius:50%;box-shadow:0 0 12px #a8f46666}.icon-button{width:36px;height:36px;background:#ffffff04;border:1px solid #ffffff15;border-radius:50%;color:#b8c4d5;cursor:pointer;font-size:18px}button{font:inherit;cursor:pointer;transition:transform .18s,background .18s}button:hover{transform:translateY(-2px)}button:focus-visible{outline:2px solid white;outline-offset:5px}#home{position:absolute;inset:100px 5.4% 0}.intro{position:absolute;top:11%;max-width:560px}.eyebrow{display:flex;align-items:center;gap:11px;font-size:11px;letter-spacing:4px;color:var(--mint)}.eyebrow>span{width:23px;height:1px;background:var(--mint)}h1{font-size:clamp(48px,5.6vw,82px);font-weight:850;line-height:1.18;letter-spacing:-4px;margin:25px 0}h1>span{color:var(--mint)}.description{font-size:14px;line-height:1.95;color:var(--muted);letter-spacing:1px;margin-bottom:29px}.primary{background:var(--mint);color:#162317;border:0;padding:18px 25px;min-width:240px;border-radius:5px;font-weight:750;font-size:15px;display:flex;justify-content:space-between;align-items:center;gap:50px;box-shadow:0 6px 30px #a8f46a0c}.primary>span{font-size:24px;font-weight:400}.start-note{font-size:10px;color:#69788c;margin:13px 0 33px;letter-spacing:2px}.record{display:flex;align-items:center;gap:16px;max-width:310px;border-top:1px solid #ffffff12;padding-top:21px}.record-icon{font-size:29px;color:#a3afc4}.record small{font-size:10px;color:#7e8da2;display:block;margin-bottom:5px}.record strong{font-size:22px;font-family:monospace;letter-spacing:3px}.record-tag{margin-left:auto;color:#5d6b80;font-size:8px;letter-spacing:2px}.hero-label{position:absolute;left:66%;top:64%;display:flex;align-items:center;gap:16px;font-size:13px;letter-spacing:2px}.hero-number{color:var(--mint);font-size:10px}.hero-label small{display:block;font-size:10px;color:#718097;margin-top:8px}.ship-line{height:1px;width:60px;background:#586a8344}.hero-caption{position:absolute;top:77%;left:67%;color:#687a92;font-size:10px;letter-spacing:2px;display:flex;align-items:center;gap:12px}.hero-caption>span:nth-child(2){color:#324054}.home-bottom{position:absolute;bottom:35px;left:0;right:0;border-top:1px solid #ffffff12;padding-top:26px;display:flex;gap:40px}.home-bottom>div{display:flex;align-items:center;gap:12px}.key{border:1px solid #ffffff22;padding:7px 10px;border-radius:4px;color:#b1bdd0;font-size:10px;letter-spacing:2px}.home-bottom small{color:#697b92;font-size:11px}.mobile-note{display:none}#hud{position:fixed;inset:120px 5.4% 24px;pointer-events:none}.hud-left{position:absolute;left:0}.hud-left small,.hud-right small{font-size:10px;color:#8090a7;letter-spacing:2px}#health{display:flex;gap:5px;margin:10px 0}#health i{width:27px;height:6px;background:var(--mint);border-radius:1px}#health i.empty{background:#ffffff18}#level{font:12px monospace;color:var(--mint)}.hud-center{text-align:center;position:absolute;left:50%;transform:translateX(-50%)}.hud-center span{display:block;font:11px monospace;color:var(--mint);letter-spacing:4px}.hud-center strong{display:block;font:30px monospace;margin-top:9px}.hud-right{right:0;position:absolute;text-align:right}.hud-right strong{display:block;font:25px monospace;letter-spacing:3px;margin-top:8px}#combo{display:block;color:var(--mint);font-size:11px;margin-top:8px}.xp{position:absolute;top:-21px;height:2px;background:#ffffff10;left:0;right:0}#xp-fill{height:100%;width:0;background:var(--mint);transition:width .2s}.game-bottom{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;font-size:11px;color:#6c7e96;letter-spacing:1px}#dash{display:none;position:absolute;right:0;bottom:55px;pointer-events:auto;width:65px;height:65px;background:#a8f46a22;border:1px solid #a8f46a88;border-radius:50%;font-size:24px;color:var(--mint);touch-action:none}#dash small{display:block;font-size:10px}.overlay{position:fixed;inset:0;background:#050b16ca;backdrop-filter:blur(12px);z-index:10;display:grid;place-items:center}.overlay[hidden],#hud[hidden],#home[hidden]{display:none}.modal-panel{text-align:center;max-width:850px;padding:32px;width:100%}.modal-panel .eyebrow{justify-content:center}.modal-panel h2{font-size:42px;margin:19px 0 15px;letter-spacing:-1px}.modal-panel p{font-size:14px;color:#91a0b5;line-height:1.7;white-space:pre-line}.modal-panel .primary{margin:27px auto 12px}.secondary{padding:12px 25px;background:#ffffff07;border:1px solid #ffffff22;border-radius:4px;color:white;min-width:240px}.text-button{display:block;margin:17px auto 0;background:none;border:0;color:#71839b;font-size:12px}#choices{display:flex;gap:15px;margin:32px 0}.upgrade{flex:1;text-align:left;padding:24px;border:1px solid #ffffff20;border-radius:8px;background:#121e30;color:white}.upgrade:hover{border-color:var(--mint);background:#1c2d31}.upgrade b{display:block;font-size:18px;margin:18px 0 10px}.upgrade span{color:var(--mint);font-size:27px}.upgrade small{font-size:12px;color:#899bb5;line-height:1.8}.upgrade em{font-size:9px;letter-spacing:2px;color:var(--mint);font-style:normal;display:block;margin-top:20px}#toast{position:fixed;top:26%;left:50%;transform:translateX(-50%);font-size:15px;letter-spacing:3px;color:var(--mint);pointer-events:none;opacity:0;transition:opacity .3s;text-align:center}#toast.show{opacity:1}@media(max-height:740px) and (min-width:701px){.intro{top:6%}h1{font-size:58px;margin:18px 0}.description{margin-bottom:18px}.start-note{margin-bottom:20px}.record{padding-top:14px}.home-bottom{bottom:20px;padding-top:18px}}@media(max-width:700px){header{height:75px;padding:0 6%}.brand{font-size:13px;letter-spacing:1px}.brand-icon{font-size:27px!important;margin-right:4px}.header-right{gap:10px}.arcade-label,.header-right>.live-dot{display:none}#home{inset:75px 7% 0}.intro{top:9%;z-index:2}h1{font-size:50px;letter-spacing:-2px}.description{font-size:12px}.hero-label,.hero-caption{display:none}.home-bottom{bottom:24px;padding-top:19px;gap:10px}.home-bottom>div{display:none}.mobile-note{display:block;font-size:11px;color:#7c8ea6}#hud{inset:98px 6% 25px}.hud-center strong{font-size:23px}.hud-right strong{font-size:19px;letter-spacing:1px}#health i{width:18px}#dash{display:block}#dash-status{display:none}.modal-panel{padding:24px}.modal-panel h2{font-size:30px}#choices{flex-direction:column;gap:10px;margin:20px 0}.upgrade{padding:14px 18px}.upgrade span{float:left;margin-right:18px}.upgrade b{font-size:16px;margin:0 0 5px}.upgrade em{margin-top:7px}.record{max-width:260px}}
/* Campaign art direction: deep-space flight console / acid green accents. */
:root{--mint:#bcfa80;--muted:#93a4ba}header{height:88px;background:linear-gradient(#080e1955,transparent)}.campaign-badge{font:10px monospace;letter-spacing:2px;color:#8a9db6;border-left:1px solid #ffffff20;padding-left:20px}#home{inset:88px 6% 0}.intro{top:8%;max-width:630px}h1{font-size:clamp(68px,7.8vw,116px);line-height:.95;letter-spacing:-6px;font-weight:800;margin:29px 0 25px}h1 span{background:linear-gradient(120deg,#e4ffd3,#a8e95e);background-clip:text;-webkit-background-clip:text;color:transparent}.description{font-size:15px;line-height:1.8;letter-spacing:0;max-width:405px}.primary{min-width:260px;min-height:57px;letter-spacing:1.5px;font-size:12px;border-radius:3px;background:linear-gradient(120deg,#d0ff9c,#a6ea65);box-shadow:0 8px 38px #a5e96518}.primary:disabled{opacity:.5;cursor:wait}button:hover{filter:brightness(1.08)}.secondary{letter-spacing:1px;font-size:12px}.continue-button{margin-top:12px;min-width:260px}.stage-select{margin:17px 0 24px;font-size:11px;letter-spacing:1.4px;color:#9bacc1;padding:0;text-align:left}.stage-select span{margin-left:22px}.record{max-width:330px;padding-top:17px}.record small{font:10px monospace;letter-spacing:2px}.record-tag{font:9px monospace;letter-spacing:1px}.save-row{display:flex;gap:8px;align-items:center;margin-top:15px;color:#7b91aa;font:10px monospace;max-width:425px;flex-wrap:wrap}.save-row .text-button{display:inline;margin:0;padding:0 4px;font:10px monospace;color:#afc887}.save-error{color:#ffae7c}.hero-label{top:68%;left:66%}.hero-caption{top:81%;left:67%;font:10px monospace;letter-spacing:2px}.home-bottom{gap:32px;bottom:25px;padding-top:20px}.hud-center small{display:block;font:9px monospace;color:#7387a3;letter-spacing:2px;margin-top:7px}.stage-meter{position:absolute;top:-25px;height:3px;left:0;right:0;background:#ffffff0d}.stage-meter>div{height:100%;background:#79d3ef;box-shadow:0 0 12px #79d3ef66;transition:width .2s}.xp{top:-18px}.game-bottom{font:11px monospace}.modal-panel{background:radial-gradient(ellipse at top,#21364d88,transparent 75%);max-height:95vh;overflow-y:auto}.modal-panel h2{font-size:48px}.upgrade{border-radius:4px;background:linear-gradient(150deg,#17273b,#0c1424);position:relative;overflow:hidden}.upgrade:before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:var(--mint);opacity:.35}.upgrade b{font-size:17px}.upgrade small{font-size:13px}#boss-bar{position:absolute;top:103px;left:50%;transform:translateX(-50%);width:min(360px,65vw);text-align:center}#boss-bar>span{font:9px monospace;letter-spacing:3px;color:#ffbb76}#boss-bar>div{height:5px;background:#ffffff10;margin-top:7px}#boss-fill{height:100%;display:block;background:linear-gradient(90deg,#fa747c,#ffce82)}#choices.stage-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:8px}.stage-tile{aspect-ratio:1;padding:8px;border:1px solid #8092a233;border-radius:4px;background:#122137;color:#a7bad4;font:17px monospace;position:relative}.stage-tile small{display:block;font-size:8px;margin-top:6px;color:#7386a1}.stage-tile.cleared{border-color:#b1ed6c66;color:var(--mint)}.stage-tile.boss{background:#392922}.stage-tile:disabled{opacity:.3;cursor:not-allowed}.sector-legend{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.sector-legend span{font:10px monospace;color:#9cb2cb;border:1px solid #ffffff16;padding:7px}.modal-panel .primary{justify-content:center}#next-stage span{margin-left:20px}#toast{background:#07101bc9;padding:12px 20px;border:1px solid #a8f46a22;backdrop-filter:blur(6px);font:12px monospace;letter-spacing:2px;white-space:nowrap}header .brand{font-size:17px}.home-bottom small{font-size:12px}@media(max-height:800px) and (min-width:701px){.intro{top:5%}h1{font-size:80px;margin:21px 0}.description{margin:14px 0 21px}.record{padding-top:13px}.stage-select{margin:12px 0 17px}.save-row{margin-top:11px}.home-bottom{bottom:18px;padding-top:14px}.continue-button{margin-top:8px}}@media(max-width:700px){header{height:70px}.campaign-badge{display:none}header .brand{font-size:13px}#home{inset:70px 7% 0}.intro{top:6%;max-width:90%}h1{font-size:76px;letter-spacing:-4px;line-height:.98}.description{font-size:13px;max-width:280px}.primary,.continue-button{min-width:240px}.hero-caption{display:none}.save-row{max-width:320px;font-size:9px}.home-bottom{bottom:20px}.record{max-width:290px}.hero-label{display:none}#choices.stage-grid{grid-template-columns:repeat(5,1fr);gap:7px;margin:17px 0}.modal-panel h2{font-size:32px}.stage-tile{font-size:15px;padding:7px}.upgrade small{font-size:12px}.sector-legend span{font-size:9px}.hud-center small{font-size:8px;letter-spacing:1px}.hud-center span{letter-spacing:2px;font-size:10px}.hud-left small,.hud-right small{font-size:9px}.modal-panel{padding:23px 18px}#toast{font-size:10px;max-width:94%;white-space:normal;width:max-content}.home-bottom small{font-size:11px}}@media(max-height:720px) and (max-width:700px){.intro{top:4%}h1{font-size:61px;margin:19px 0}.description{margin-bottom:17px}.primary{min-height:46px;padding:12px 20px}.record{padding-top:12px}.stage-select{margin:13px 0 17px}.save-row{margin-top:10px}.home-bottom{bottom:15px}}
.primary>span{display:inline-block;font-size:0;width:14px;height:14px;position:relative}.primary>span:before{content:'';position:absolute;right:0;top:0;width:10px;height:10px;border-top:1.5px solid currentColor;border-right:1.5px solid currentColor}.primary>span:after{content:'';position:absolute;right:0;top:0;width:16px;height:1.5px;background:currentColor;transform:rotate(-45deg);transform-origin:right top}#pause{font-size:0}#pause:before{content:'';display:inline-block;width:10px;height:12px;border-left:3px solid #b8c4d5;border-right:3px solid #b8c4d5}#dash{font-size:0}#dash:before{content:'';display:block;margin:0 auto 8px;width:12px;height:12px;border-top:2px solid var(--mint);border-right:2px solid var(--mint)}
.flight-save{font:9px monospace;color:#92ad86;max-width:36%;text-align:center}.flight-save button{pointer-events:auto;background:none;border:0;color:#ffae7c;font:10px monospace;text-decoration:underline;margin-left:7px}#hud-save.save-error{color:#ffae7c}@media(max-width:700px){.game-bottom{gap:12px;align-items:end;font-size:9px}.flight-save{max-width:48%;font-size:8px;text-align:right}}
@media(min-width:701px) and (max-height:600px){header{height:60px}#home{inset:60px 6% 0}.intro{top:15px}h1{font-size:48px;margin:12px 0;letter-spacing:-2px}.description{font-size:12px;line-height:1.5;margin:10px 0 15px}.intro>.primary{min-height:40px;padding:10px 20px}.continue-button{padding:10px 20px;margin-top:8px}.record,.home-bottom{display:none}.stage-select{margin:10px 0 12px}.save-row{margin-top:8px}.hero-label{top:80%}.hero-caption{display:none}#hud{inset:85px 5.4% 20px}.hud-center strong{font-size:23px}#boss-bar{top:80px}.modal-panel{padding:20px}.modal-panel h2{font-size:30px;margin:12px 0}.modal-panel p{font-size:12px}#choices{margin:15px 0}.upgrade{padding:14px}.upgrade b{margin:8px 0}.upgrade em{margin-top:10px}#choices.stage-grid{grid-template-columns:repeat(10,1fr)}.stage-tile{aspect-ratio:auto;padding:8px}}
/* Flight report: earned medals, tangible rewards, and a readable campaign path. */
.result-mode{background:radial-gradient(ellipse at 50% 25%,#22483877,#050b16e8 70%);backdrop-filter:blur(9px)}.result-mode .modal-panel{max-width:740px;padding:24px 34px 22px;border:1px solid #c5f78833;border-radius:12px;background:linear-gradient(145deg,#152936f7,#0a1422fa 70%);box-shadow:0 30px 120px #0009,0 0 55px #b2f6770b;text-align:left;position:relative;animation:report-enter .45s ease-out}.result-mode .modal-panel:before{content:'';position:absolute;top:-1px;left:28%;right:28%;height:2px;background:linear-gradient(90deg,transparent,#c9ff98,transparent)}.result-mode .eyebrow{justify-content:center;font-size:10px;letter-spacing:3px}.result-mode #modal-title{text-align:center;font-size:26px;letter-spacing:3px;margin:13px 0 23px}.report-hero{display:flex;gap:29px;align-items:center;padding-bottom:22px}.grade-medal{width:125px;height:130px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;border:1px solid #d4ef9077;background:linear-gradient(135deg,#dffba823,#85ae5910 55%,#dffba823);clip-path:polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%)}.grade-medal:before{content:'';position:absolute;inset:5px;border:1px solid #c9e79333;pointer-events:none}.grade-medal small{font:8px monospace;letter-spacing:2px;color:#bacda5}.grade-medal strong{font:700 64px monospace;line-height:1.12;color:#dcffa9;text-shadow:0 0 22px #bded7044}.medal-stars{display:flex;gap:6px;margin-top:4px}.medal-stars i{height:10px;width:10px;background:#d5f79f;clip-path:polygon(50% 0,61% 35%,98% 35%,68% 57%,80% 95%,50% 72%,20% 95%,32% 57%,2% 35%,39% 35%)}.report-headline{flex:1;min-width:0}.report-headline>span{font:10px monospace;letter-spacing:1.5px;color:#88a6bb}.report-headline h3{font-size:32px;letter-spacing:-1px;margin:11px 0 8px;color:#f1ffec}.report-headline p{font-size:12px!important;line-height:1.6;margin:0;color:#94aabd}.report-score{border-top:1px solid #b4cae118;border-bottom:1px solid #b4cae118;padding:17px 0;display:flex;align-items:center;justify-content:space-between}.report-score small{display:block;font:9px monospace;letter-spacing:2px;color:#8199b0}.report-score strong{display:block;font:700 43px monospace;letter-spacing:2px;color:#e4ffd0;margin-top:5px}.report-score>span{font:10px monospace;color:#c4e697;letter-spacing:1px;padding:8px 10px;background:#adf0770b;border:1px solid #adf07722;border-radius:4px}.report-stats{display:grid;grid-template-columns:repeat(4,1fr);padding:20px 0;gap:10px}.report-stats>div{border-right:1px solid #ffffff10}.report-stats>div:last-child{border:0}.report-stats strong{display:block;font:26px monospace;color:#e5edf5}.report-stats small{display:block;font:8px monospace;letter-spacing:1.2px;color:#8197ae;margin-top:7px}.report-awards{display:flex;flex-wrap:wrap;gap:7px;min-height:24px}.report-awards span{font:8px monospace;letter-spacing:1px;color:#e6cc92;background:#eec6850a;border:1px solid #eec68533;padding:7px 9px;border-radius:3px}.report-progress{margin-top:19px;padding:16px;background:#ffffff03;border:1px solid #ffffff09;border-radius:4px}.report-progress>div:first-child{display:flex;justify-content:space-between;gap:10px;align-items:center}.report-progress span{font:10px monospace;color:#c3ef94;letter-spacing:1px}.report-progress small{font:9px monospace;color:#7f98ad}.report-progress-track{height:4px;background:#728ca124;margin-top:11px;border-radius:2px}.report-progress-track i{display:block;height:100%;background:linear-gradient(90deg,#81d0c6,#c4f687);box-shadow:0 0 15px #b8f17a44;transition:width 1s ease-out}.result-mode .primary{margin:20px auto 10px;min-width:290px}.result-mode .text-button{margin-top:12px}.failure-mode{background:radial-gradient(ellipse at 50% 25%,#462c3a77,#050b16e8 70%)}.failure-mode .modal-panel{border-color:#ff809833}.failure-mode .grade-medal{border-color:#b39faa44;background:linear-gradient(135deg,#907c881b,#242030)}.failure-mode .grade-medal strong{color:#bcaab3;text-shadow:none}.failure-mode .medal-stars{opacity:.2}.failure-mode .report-headline h3{color:#f6e6e9}.failure-mode .secondary{display:block;margin:18px auto 10px;background:#d9e6f3;color:#112338;font-weight:700}.failure-mode .modal-panel:before{background:linear-gradient(90deg,transparent,#ffa5b6,transparent)}#buffs{position:absolute;top:87px;left:0;color:#ffd399;font:10px monospace;letter-spacing:1px;min-height:15px}#celebration{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:11}.confetti{position:absolute;left:var(--x);top:-20px;width:5px;height:11px;border-radius:1px;opacity:0;animation:confetti-fall 2.5s var(--delay) cubic-bezier(.18,.67,.51,1) forwards}@keyframes confetti-fall{0%{opacity:0;transform:translateY(-20px) rotate(0)}10%{opacity:.9}75%{opacity:.8}100%{opacity:0;transform:translate(var(--drift),100vh) rotate(var(--spin))}}@keyframes report-enter{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}@media(max-width:700px){.result-mode .modal-panel{padding:22px 20px;margin:0 12px;width:calc(100% - 24px)}.result-mode #modal-title{font-size:18px;letter-spacing:2px;margin:12px 0 20px}.report-hero{gap:17px;padding-bottom:17px}.grade-medal{width:87px;height:103px}.grade-medal strong{font-size:48px}.grade-medal small{font-size:7px;letter-spacing:1px}.report-headline>span{font-size:8px;letter-spacing:.6px}.report-headline h3{font-size:24px;margin:8px 0}.report-headline p{font-size:10px!important}.report-score{padding:15px 0}.report-score strong{font-size:34px}.report-score>span{font-size:8px;padding:7px;letter-spacing:.2px}.report-stats{grid-template-columns:repeat(2,1fr);padding:17px 0;gap:17px 12px}.report-stats>div:nth-child(2){border:0}.report-stats strong{font-size:24px}.report-stats small{font-size:8px;letter-spacing:1px}.report-awards span{font-size:7px;padding:6px 7px}.report-progress{padding:12px;margin-top:15px}.report-progress span{font-size:9px}.report-progress small{font-size:8px}.result-mode .primary{min-width:240px;font-size:10px;margin-top:17px}#buffs{font-size:8px;top:82px;max-width:100px}}@media(max-height:650px) and (min-width:701px){.result-mode .modal-panel{padding:17px 25px;max-width:720px}.result-mode #modal-title{font-size:21px;margin:8px 0 14px}.grade-medal{width:90px;height:95px}.grade-medal strong{font-size:44px}.report-hero{padding-bottom:14px}.report-headline h3{font-size:26px}.report-score{padding:11px 0}.report-score strong{font-size:31px}.report-stats{padding:14px 0}.report-stats strong{font-size:21px}.report-progress{margin-top:13px;padding:11px}.result-mode .primary{min-height:43px;padding:10px 18px;margin-top:13px}}@media(prefers-reduced-motion:reduce){.confetti,.result-mode .modal-panel{animation:none}.report-progress-track i{transition:none}}

#report[data-rank="A"] .medal-stars i:last-child,#report[data-rank="B"] .medal-stars i:nth-child(n+2),#report[data-rank="C"] .medal-stars i{opacity:.2}

.revive-button{margin-top:20px!important}.revive-note{font-size:11px!important;color:#92a6b8!important;line-height:1.6!important;margin:10px 0 16px!important}

.gsap-ui .motion-button{transition:background .18s,color .18s,border-color .18s}.gsap-ui .motion-button:hover{transform:none}.gsap-ui .result-mode .modal-panel{animation:none}#supply-notice{position:fixed;left:50%;top:155px;translate:-50% 0;opacity:0;pointer-events:none;font:9px monospace;letter-spacing:2px;padding:9px 15px;border:1px solid currentColor;border-radius:4px;background:#0b1828e8;z-index:4}@media(max-width:700px){#supply-notice{top:190px;font-size:8px}}

/* Short labels teach through matching shapes rather than paragraphs. */
.result-mode #modal-label{display:none}.result-mode .report-stats{grid-template-columns:repeat(2,1fr);padding:15px 0}.result-mode .report-stats strong{font-size:30px}.result-mode .report-headline h3{font-size:28px}.result-mode .report-awards:empty{display:none}.result-mode .report-awards{margin-top:12px}.result-mode .report-hero{padding-bottom:16px}.result-mode #modal-title{margin:5px 0 20px}.guide-details{color:#9eafc1;font-size:11px;border-top:1px solid #ffffff12;text-align:left}.guide-details summary{cursor:pointer;padding:13px 0;color:#97b1c1;min-height:42px}.guide-details p{font-size:11px!important;line-height:1.8!important;margin:0 0 12px!important;color:#9eafc1}.extra-stats{display:flex;gap:35px;padding:0 0 12px}.extra-stats strong{font:21px monospace;color:#e4edf5}.extra-stats small{display:block;font:8px monospace;letter-spacing:1px;margin-top:5px}.pause-mode .modal-panel{max-width:570px;padding:24px 30px;background:linear-gradient(145deg,#162938,#091321);border:1px solid #abcce322;border-radius:12px}.pause-mode #modal-label{display:none}.pause-mode #modal-title{font-size:28px;margin:0 0 24px}.control-guide,#pause-supplies{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.control-guide>div,.supply-guide{display:flex;flex-direction:column;align-items:center;min-width:0;padding:13px 5px;background:#ffffff03;border:1px solid #ffffff0b;border-radius:8px}.control-symbol{font:28px sans-serif;height:37px;color:#daefcc}.control-guide b,.supply-guide b{font:10px monospace;letter-spacing:1.2px;margin:8px 0}.control-guide small,.supply-guide small{font-size:10px;color:#92a8bc;line-height:1.5}.supply-symbol{color:var(--supply);display:grid;place-items:center;width:46px;height:46px;background:#102033;border:1px solid var(--supply);border-radius:11px}.supply-symbol svg{height:30px;width:30px}.supply-guide b{color:var(--supply)}.guide-caption{font:10px monospace!important;color:#8eabc0!important;margin:20px 0 12px!important;letter-spacing:1px}.touch-help{display:none}.pause-mode .guide-details{margin-top:16px}.pause-mode #resume{margin-top:15px}.pause-mode #restart{margin-top:12px}.pause-mode #back{margin-top:12px}@media(pointer:coarse){.desktop-help{display:none}.touch-help{display:block}}@media(max-width:700px){.pause-mode .modal-panel{padding:22px 18px;margin:0 12px;width:calc(100% - 24px)}.control-guide,#pause-supplies{gap:7px}.control-guide small,.supply-guide small{font-size:9px}.control-guide b,.supply-guide b{font-size:9px;letter-spacing:.7px}.result-mode .report-headline h3{font-size:24px}.result-mode .report-stats{gap:10px}.pause-mode #modal-title{font-size:25px;margin-bottom:18px}}

.brand-wordmark{display:block;position:relative;font-size:18px;line-height:1.15;color:#f2f5fa!important;letter-spacing:1.5px}.brand-wordmark>span{color:var(--mint);margin-left:4px}.brand-wordmark>small{display:block;margin-top:4px;font:8px monospace;letter-spacing:3px;color:#96aabd}@media(max-width:700px){.brand-wordmark{font-size:14px;letter-spacing:1px}.brand-wordmark>small{font-size:7px;letter-spacing:2px}}
/* Viewport-bound dialogs with a separate action bar. */
.overlay{padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));height:100dvh;overflow:hidden}.overlay .modal-panel{display:flex;flex-direction:column;width:100%;max-height:100%;overflow:hidden;padding:20px 24px;margin:0}.modal-content{min-height:0;position:relative;overflow:hidden}.modal-actions{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px}.modal-actions button{margin:0!important;min-width:0!important;min-height:40px}.modal-actions .primary{width:100%;min-height:46px;padding:12px 18px}.modal-actions .secondary,.modal-actions .text-button{flex:1;padding:10px 12px;font-size:11px}.modal-actions .revive-note{width:100%;margin:0!important;font-size:10px!important;line-height:1.4!important;text-align:center}.result-mode .modal-panel{max-width:680px}.result-mode #modal-title{font-size:22px;margin:0 0 14px}.result-mode .report-hero{gap:18px;padding-bottom:12px}.result-mode .grade-medal{width:88px;height:88px}.result-mode .grade-medal strong{font-size:46px}.result-mode .report-headline h3{font-size:25px;margin:6px 0}.result-mode .report-score{padding:10px 0}.result-mode .report-score strong{font-size:34px}.result-mode .report-stats{padding:12px 0}.result-mode .report-stats strong{font-size:25px}.result-mode .report-awards{margin-top:7px;min-height:0}.result-mode .report-progress{margin-top:10px;padding:10px}.guide-details summary{padding:10px 0;min-height:34px}.modal-content .guide-details[open]{position:absolute;inset:0;background:#102131;border:1px solid #7aa2bb55;border-radius:8px;z-index:3;padding:16px;text-align:left;margin:0}.modal-content .guide-details[open] summary{color:#d9efc3;font-size:12px;padding:0 0 16px}.modal-content .guide-details[open] summary:after{content:' × CLOSE';float:right;font:10px monospace;color:#a8f46a}.modal-content .guide-details[open] p{font-size:12px!important;line-height:1.8!important}.modal-content .guide-details[open] .extra-stats{padding:4px 0 16px}.pause-mode .modal-panel{max-width:550px}.pause-mode #modal-title{font-size:26px;margin:0 0 16px}.pause-mode .guide-caption{margin:14px 0 10px!important}.pause-mode .guide-details{margin-top:12px}#choices:empty{display:none}
@media(max-width:700px){.overlay{padding:10px;padding-top:max(10px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom))}.overlay .modal-panel{padding:16px;width:100%;margin:0}.result-mode #modal-title{font-size:19px;letter-spacing:1.5px;margin-bottom:12px}.result-mode .report-headline h3{font-size:23px}.result-mode .report-score strong{font-size:31px}.modal-actions{margin-top:12px;gap:7px}.modal-actions .primary{min-height:44px;font-size:11px}.modal-actions .secondary,.modal-actions .text-button{min-height:36px}.modal-content #choices{margin:14px 0 0}.modal-content .upgrade{padding:12px}.modal-content .upgrade small{font-size:11px}.modal-content .upgrade em{display:none}.modal-content #choices.stage-grid{grid-template-columns:repeat(5,1fr);gap:5px}.modal-content .stage-tile{aspect-ratio:auto;min-height:36px;padding:5px}.modal-content .stage-tile small{font-size:6px}}
@media(max-height:650px){.overlay .modal-panel{padding:12px 16px}.result-mode #modal-title{font-size:17px;margin-bottom:8px}.result-mode .report-hero{padding-bottom:8px;gap:12px}.result-mode .grade-medal{width:72px;height:72px}.result-mode .grade-medal strong{font-size:38px}.result-mode .grade-medal small{font-size:6px}.result-mode .report-headline h3{font-size:21px;margin:4px 0}.result-mode .report-score{padding:7px 0}.result-mode .report-score strong{font-size:27px}.result-mode .report-stats{padding:8px 0}.result-mode .report-stats strong{font-size:21px}.result-mode .report-progress{margin-top:7px;padding:8px}.result-mode .report-awards span{padding:5px;font-size:7px}.modal-actions{margin-top:9px;gap:6px}.modal-actions .primary{min-height:42px;padding:10px}.modal-actions .secondary,.modal-actions .text-button{min-height:34px;padding:8px}.pause-mode #modal-title{font-size:22px;margin-bottom:12px}.pause-mode .control-guide>div,.pause-mode .supply-guide{padding:9px 4px}.pause-mode .guide-caption{margin:10px 0 8px!important}.modal-content #choices{margin:12px 0}.modal-content .upgrade{padding:10px}.modal-content h2{font-size:26px;margin:10px 0}.modal-content #modal-description{font-size:11px;margin:8px 0}.modal-content .stage-tile{aspect-ratio:auto;min-height:32px;padding:4px}}
@media(max-height:480px) and (min-width:600px){.overlay{padding:8px}.overlay .modal-panel{max-width:900px;padding:12px 18px}.result-mode #report{display:grid;grid-template-columns:1fr 1.15fr;gap:6px 20px}.result-mode .report-hero{grid-column:1;grid-row:1 / span 3;align-self:center;padding:0}.result-mode .report-score{grid-column:2;grid-row:1;padding:6px 0}.result-mode .report-stats{grid-column:2;grid-row:2;padding:4px 0}.result-mode .guide-details{grid-column:1;grid-row:4}.result-mode .report-awards{grid-column:1;grid-row:5;margin:0}.result-mode .report-progress{grid-column:2;grid-row:3 / span 3;margin:0;align-self:center}.result-mode .report-headline>span{font-size:8px}.result-mode #modal-title{text-align:left;margin-bottom:8px}.modal-actions{align-items:center;flex-wrap:nowrap}.modal-actions .primary{width:auto;flex:2;min-height:40px}.modal-actions .secondary,.modal-actions .text-button{flex:1}.modal-actions .revive-note{width:auto;flex:1;max-width:160px;font-size:8px!important}.pause-mode #pause-guide{display:grid;grid-template-columns:1fr 1fr;gap:8px 18px}.pause-mode .control-guide{grid-column:1;grid-row:1 / span 2}.pause-mode .guide-caption{display:none}.pause-mode #pause-supplies{grid-column:2;grid-row:1}.pause-mode .guide-details{grid-column:2;grid-row:2;margin:0}.pause-mode .control-guide>div,.pause-mode .supply-guide{padding:7px 4px}.pause-mode .supply-symbol{width:35px;height:35px}.pause-mode .supply-symbol svg{width:24px;height:24px}.modal-content #choices:not(.stage-grid){flex-direction:row;margin:10px 0}.modal-content .upgrade{min-width:0}.modal-content .upgrade span{float:none;font-size:18px}.modal-content .upgrade b{font-size:13px;margin:6px 0}.modal-content #choices.stage-grid{grid-template-columns:repeat(10,1fr);gap:5px;margin:10px 0}.modal-content .guide-details[open]{display:block;grid-column:1 / -1;grid-row:1 / -1;inset:0}.modal-content .guide-details[open] p{font-size:11px!important}}

/* Battle HUD: separate status columns with a quieter secondary layer. */
#hud{inset:132px 5.4% 26px}.hud-left{width:28%;max-width:230px}.hud-center{width:34%}.hud-right{width:28%;max-width:230px}.hud-left small,.hud-right small{letter-spacing:1.4px}#health{gap:4px;max-width:180px}#health i{flex:1;min-width:0;max-width:24px}.hud-center span{position:absolute;top:-27px;left:0;right:0;white-space:nowrap;font-size:10px;letter-spacing:2px}.hud-center strong{margin-top:19px;font-size:29px}.hud-center small{margin-top:14px;font-size:8px;letter-spacing:1.3px}.hud-right strong{margin-top:12px;font-size:25px;letter-spacing:1px}.stage-meter{top:-40px}.xp{top:-34px}.game-bottom{gap:20px;align-items:center;font-size:10px;letter-spacing:1px}.flight-save{flex-shrink:0;max-width:none;white-space:nowrap;font-size:8px;letter-spacing:1px}.flight-save:before{content:'';display:inline-block;height:4px;width:4px;margin-right:6px;border-radius:50%;background:#92ad86;vertical-align:middle}#buffs{top:80px;font-size:9px}#boss-bar{top:107px}
@media(max-width:700px){header{height:66px;padding:0 6%}.header-right{gap:12px}.brand-icon{margin-right:7px!important}.brand-wordmark{font-size:13px}.brand-wordmark>small{font-size:6px;letter-spacing:2.7px;margin-top:5px}.icon-button{width:32px;height:32px}#hud{inset:118px 6% 22px}.hud-left{width:29%;max-width:none}.hud-center{width:34%;left:50%}.hud-right{width:29%;max-width:none}.hud-left small,.hud-right small{font-size:8px;letter-spacing:1px}.hud-center span{font-size:9px;letter-spacing:1.5px;top:-25px}.hud-center strong{font-size:25px;letter-spacing:0;margin-top:17px}.hud-center small{font-size:7px;letter-spacing:.5px;margin-top:13px}#health{gap:3px;margin:12px 0 14px;max-width:100%}#health i{max-width:16px;height:5px}#level{font-size:10px;letter-spacing:1px}.hud-right strong{font-size:19px;letter-spacing:0;margin-top:12px}#combo{font-size:8px;letter-spacing:0}.stage-meter{top:-41px}.xp{top:-35px}.game-bottom{gap:12px;align-items:center;font-size:8px;letter-spacing:.6px}#objective{white-space:nowrap}.flight-save{font-size:7px;letter-spacing:.5px;max-width:none}#dash{right:0;bottom:65px;width:58px;height:58px}#dash small{font-size:8px}#buffs{top:73px;font-size:7px;max-width:95px}#boss-bar{top:99px}#boss-bar>span{font-size:8px}#supply-notice{top:220px}}
@media(max-width:350px){.hud-center strong{font-size:22px}.hud-right strong{font-size:17px}.hud-left small,.hud-right small{font-size:7px;letter-spacing:.5px}.hud-center small{font-size:6px}.brand-wordmark{font-size:12px}.header-right{gap:8px}}
@media(max-height:480px) and (min-width:600px){header{height:48px;padding:0 4%}.brand-icon{font-size:25px!important}.brand-wordmark{font-size:12px}.brand-wordmark>small{font-size:6px;margin-top:2px}.campaign-badge{display:none}.icon-button{width:29px;height:29px}.header-right{gap:12px}#hud{inset:91px 4% 14px}.hud-left,.hud-right{width:24%}.hud-center{width:30%}.hud-center span{top:-20px;font-size:8px}.hud-center strong{font-size:21px;margin-top:14px}.hud-center small{margin-top:5px;font-size:7px}.hud-right strong{font-size:19px;margin-top:9px}.hud-left small,.hud-right small{font-size:7px}#health{margin:9px 0;max-width:140px}#health i{max-width:16px}#level{font-size:9px}.stage-meter{top:-35px}.xp{top:-29px}#buffs{top:59px;font-size:7px}#boss-bar{top:71px;width:36%;left:32%}#dash{bottom:36px;width:48px;height:48px}#dash small{font-size:7px}.game-bottom{font-size:8px}#supply-notice{top:140px}}
