@font-face{font-family:system;src:local("Inter"),local("Arial")}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent} :root{color-scheme:dark;--bg:#10161d;--panel:#1b252e;--ink:#f0f4f1;--muted:#8c9ca5;--line:#33414a;--blue:#74dbed;--lime:#def0ac;--yellow:#f5cd70}html,body{margin:0;width:100%;height:100%;background:var(--bg);color:var(--ink);font-family:system,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overscroll-behavior:none}body{display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 30%,#263039 0%,#141c24 42%,#0a1016 100%);overflow:hidden}button,input{font:inherit}button{cursor:pointer;color:inherit;border:0;touch-action:manipulation}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:2px solid var(--lime);outline-offset:4px}button:active{transform:translateY(1px)}[hidden]{display:none!important}svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0}.app{height:100dvh;max-height:1120px;width:100%;max-width:490px;display:flex;flex-direction:column;padding:calc(env(safe-area-inset-top) + 14px) 20px calc(env(safe-area-inset-bottom) + 10px);background:linear-gradient(155deg,#1b252e,#141c24 65%);position:relative;isolation:isolate}.topbar{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;height:42px}.wordmark{font-size:17px;font-weight:900;letter-spacing:2px;display:flex;align-items:center;gap:6px;position:relative;white-space:nowrap}.brand-symbol{color:var(--lime);font-family:Arial,sans-serif;font-weight:900;font-size:34px;line-height:1;display:inline-block;transform:skew(-8deg)}.brand-sub{position:absolute;font-size:7px;letter-spacing:2.6px;color:var(--muted);left:28px;top:29px;font-weight:500}.top-actions{display:flex;gap:5px}.icon-btn{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:transparent;color:#b8c5cb}.icon-btn:hover{background:#ffffff0c}.icon-btn.muted{color:#5c707b;position:relative}.icon-btn.muted:after{content:"";position:absolute;width:25px;height:2px;background:currentColor;transform:rotate(-45deg)}.hud{display:flex;justify-content:space-between;align-items:center;flex-shrink:0;height:82px}.level-button{background:none;padding:0;text-align:left}.eyebrow{font-size:9px;letter-spacing:2.3px;color:var(--muted);font-weight:700;display:block}.level-name{display:block;font-size:23px;font-weight:750;letter-spacing:-.7px;margin-top:5px}.level-name span{font-size:18px;margin-left:7px;color:var(--muted)}.status-right{display:flex;flex-direction:column;align-items:flex-end;gap:7px}.health{display:flex;gap:4px;color:var(--blue)}.health svg{width:17px;height:17px;fill:currentColor;stroke-width:0}.health .empty{color:#354751}.health.practice{font-size:10px;letter-spacing:1px;font-weight:800}.targets{display:flex;gap:6px;align-items:center;font-size:9px;letter-spacing:1.1px;color:#aebbc2;font-weight:700}.targets svg{width:15px;height:15px;color:var(--yellow)}.arena-wrap{min-height:0;position:relative;flex:1;border-radius:15px;overflow:hidden;border:1px solid #45515a;box-shadow:0 5px 0 #0a0f14,0 10px 25px #0004,inset 0 0 0 3px #141c24;background:#263039;touch-action:none;user-select:none;-webkit-user-select:none}#arena{display:block;width:100%;height:100%;touch-action:none;outline:none}.arena-top,.arena-bottom{position:absolute;left:20px;right:18px;display:flex;justify-content:space-between;align-items:center;pointer-events:none}.arena-top{top:14px;color:#91a4ad;font-size:7px;font-weight:700;letter-spacing:1.7px}.arena-btn{pointer-events:auto;width:29px;height:29px;display:flex;align-items:center;justify-content:center;background:#172028c9;border:1px solid #41515b;border-radius:7px;color:#c1cdd1}.arena-btn svg{width:15px;height:15px}.arena-bottom{bottom:13px;color:#617782;font-size:6px;letter-spacing:1.2px;font-weight:650}.round-mark{font-family:monospace;font-size:8px}.toast{position:absolute;left:50%;top:23%;transform:translate(-50%,8px);background:#101a22e6;border:1px solid #52646f;border-radius:20px;padding:9px 16px;font-size:11px;font-weight:700;color:var(--lime);opacity:0;transition:.2s;pointer-events:none;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}.game-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:linear-gradient(180deg,#10192012,#1019207d 35%,#10192099 75%,#10192022)}.game-overlay.result-mode{background:#101820ad;backdrop-filter:blur(3px)}.panel{text-align:center;width:100%;max-width:325px}.intro{padding:14px 4px 0}.badge{display:inline-flex;align-items:center;gap:7px;background:#23323ad9;border:1px solid #4e6268;border-radius:5px;padding:7px 9px;font-size:7px;letter-spacing:1.8px;color:#d9e4d5;font-weight:750}.badge span{width:5px;height:5px;border-radius:50%;background:var(--lime);box-shadow:0 0 10px #def0ac55}h1{font-size:clamp(42px,7.8vh,76px);font-weight:850;line-height:.99;letter-spacing:-3px;margin:21px 0 16px;text-shadow:0 3px 24px #091219aa}h1 em{font-style:normal;color:var(--lime)}.panel p{color:#c1cbd0;font-size:12px;line-height:1.7;margin:0 0 23px;text-shadow:0 2px 7px #172028}button.primary{background:var(--lime);color:#1b2927;border:1px solid #ecf7ce;border-radius:10px;min-height:49px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;width:100%;font-size:11px;font-weight:850;letter-spacing:1.3px;box-shadow:0 4px 0 #9fae7c}.primary:hover{background:#ebf6cb}.primary svg{width:21px}.intro-foot{display:flex;justify-content:space-between;gap:8px;margin-top:20px;font-size:8px;color:#a7b9bf}.intro-foot span+span{padding-left:10px;border-left:1px solid #53636b}.controls{flex-shrink:0;padding-top:15px}.tool-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.weapon-btn{display:flex;align-items:center;gap:9px;background:none;text-align:left;padding:0 5px 0 0}.weapon-btn>svg{width:28px;height:28px;color:var(--blue)}.weapon-btn small{display:block;font-size:7px;letter-spacing:1.6px;color:var(--muted)}.weapon-btn b{display:block;font-size:12px;font-weight:650;margin-top:2px}.chevron{color:var(--muted);font-size:14px;margin-left:6px}.shots{font-size:7px;letter-spacing:1px;color:#748b96;margin-left:auto;margin-right:12px;font-family:monospace}.tool-row>.icon-btn{width:32px;height:32px;background:#222e37;border:1px solid #37454e;border-radius:8px}.tool-row>.icon-btn svg{width:17px;height:17px}.fire-btn{width:100%;height:52px;display:flex;align-items:center;justify-content:center;gap:11px;background:#273940;border:1px solid #577780;border-bottom:3px solid #0c161d;border-radius:10px;font-size:12px;font-weight:800;letter-spacing:2.7px;color:var(--blue);box-shadow:inset 0 1px 0 #ffffff0b;touch-action:none;user-select:none}.fire-btn:hover{background:#2b424b}.fire-btn.firing{background:#41626a;border-bottom-width:1px;transform:translateY(2px)}.fire-btn svg{width:20px;height:20px;fill:#74dbed15}.keycap{font-size:7px;border:1px solid #587079;color:#96b0b9;padding:4px 5px;border-radius:4px;letter-spacing:1px;margin-left:auto}.fire-btn>svg{margin-right:auto}.bottom-note{font-size:7px;color:#80929d;text-align:center;display:flex;align-items:center;justify-content:center;gap:8px;padding-top:9px;letter-spacing:.2px}.online-dot{width:4px;height:4px;border-radius:50%;background:#5f7781}.online-dot.ready{background:var(--lime)}.result{background:linear-gradient(145deg,#28363ff5,#17242df5);padding:25px 20px 18px;border-radius:17px;border:1px solid #52616a;box-shadow:0 18px 70px #0005}.result .eyebrow{color:var(--lime);font-size:8px}.result-glyph{font-size:53px;line-height:1;color:var(--lime);margin:18px 0 8px;font-weight:200}.panel h2{font-size:36px;letter-spacing:-1.5px;line-height:1.05;margin:10px 0 7px}.stars{font-size:23px;letter-spacing:8px;color:var(--yellow);margin:12px 0 13px;padding-left:8px}.stars span{color:#4a5760}.result p{font-size:10px;margin-bottom:17px}.round-stats{display:flex;justify-content:space-around;margin:0 0 24px;padding:14px 0;border-top:1px solid #43525a;border-bottom:1px solid #43525a}.round-stats b{display:block;font-size:20px;letter-spacing:-.5px;font-weight:650}.round-stats span{display:block;font-size:6px;letter-spacing:1.2px;color:var(--muted);margin-top:6px}.text-btn{background:none;color:#9fb3bc;font-size:10px;padding:18px 10px 0;letter-spacing:.3px}.pause-panel{padding:30px 20px;border-radius:15px;background:#202e37f5;border:1px solid #4c626c}.pause-panel h2{margin:17px 0}.modal-backdrop{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:20px;background:#080f16bb;backdrop-filter:blur(7px)}.sheet{background:linear-gradient(145deg,#26343e,#17232d);border:1px solid #4a5e6a;border-radius:23px;padding:25px;width:100%;max-width:430px;max-height:calc(100dvh - 50px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 20px 80px #0007}.sheet-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.sheet h2{font-size:27px;font-weight:750;letter-spacing:-1px;margin:8px 0 0}.sheet-header .icon-btn{background:#101b2455;border:1px solid #3c505c;align-self:flex-start}.sheet .eyebrow{font-size:7px;letter-spacing:1.6px;color:var(--blue)}.setting{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 0;border-top:1px solid #364955;position:relative;cursor:pointer}.setting b{display:block;font-size:12px;font-weight:650}.setting small{display:block;font-size:9px;line-height:1.5;color:#99acb8;margin-top:5px}.setting input{position:absolute;opacity:0;right:0;width:44px;height:32px;margin:0;cursor:pointer}.setting i{width:35px;height:21px;border-radius:20px;background:#3e515c;border:1px solid #5a6d77;position:relative;pointer-events:none;flex-shrink:0}.setting i:after{content:"";position:absolute;left:3px;top:3px;width:13px;height:13px;border-radius:50%;background:#9aaeb8;transition:transform .15s}.setting input:checked+i{background:#7d9b73;border-color:#bdd69d}.setting input:checked+i:after{background:#e1f0ca;transform:translateX(14px)}.setting input:focus-visible+i{outline:2px solid var(--lime);outline-offset:3px}.setting input:disabled+i{opacity:.35}.volume-row{display:flex;align-items:center;gap:24px;font-size:10px;color:var(--muted);padding:0 0 16px}.volume-row input{width:100%;accent-color:var(--blue);height:12px}.sheet-buttons{display:flex;gap:10px;padding-top:15px}.secondary{background:#2a3d47;border:1px solid #536773;border-radius:8px;font-size:10px;padding:12px;flex:1}.howto{border:1px solid #435762;border-radius:8px;margin-top:20px;font-size:11px;padding:13px;color:#c5d0d5}.howto summary{cursor:pointer;font-weight:650;color:var(--blue)}.howto p{font-size:10px;line-height:1.8;color:#a4b8c3}.fineprint{font-size:8px;line-height:1.8;color:#839ba8;margin:20px 0 0}.fineprint a{color:#b8d2dc;text-decoration-color:#597885;text-underline-offset:2px}.weapon-card{display:flex;align-items:center;gap:15px;width:100%;text-align:left;border:1px solid #405561;background:#1c2c36;padding:16px 14px;border-radius:12px;margin-bottom:11px;position:relative}.weapon-card.selected{border-color:var(--lime);background:#34483c}.weapon-art{width:75px;height:60px;flex-shrink:0}.weapon-card b{display:block;font-size:16px;letter-spacing:-.3px}.weapon-card p{font-size:10px;color:#a6bac6;margin:6px 0;line-height:1.6}.weapon-card small{font-size:7px;letter-spacing:1px;color:var(--lime)}.sheet-description{font-size:11px;color:#a4b7c2;margin:-10px 0 22px}.level-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.level-card{min-height:80px;background:#1b2b35;border:1px solid #3d5360;border-radius:9px;text-align:left;padding:11px;position:relative}.level-card b{display:block;font-size:22px;letter-spacing:-1px;color:#d6e4ea;font-weight:650}.level-card small{display:block;font-size:7px;color:#a0b5c1;margin-top:6px;white-space:nowrap;letter-spacing:-.1px}.level-card .level-stars{position:absolute;right:6px;top:10px;font-size:7px;color:var(--yellow);letter-spacing:0}.level-card.current{border-color:var(--blue);background:#2d444d}.level-card.complete b{color:var(--lime)}.loading{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:15px;background:#141d25;z-index:50}.loading .brand-symbol{font-size:60px;animation:loadpulse 1s infinite alternate}.loading b{font-size:23px;letter-spacing:5px}.loading>span:last-child{font-size:11px;color:var(--muted);max-width:280px;text-align:center;line-height:1.8}.loading a{color:var(--blue)}@keyframes loadpulse{to{opacity:.35;transform:translateY(-5px) skew(-8deg)}}@media(hover:none){.keycap{display:none}.fire-btn>svg{margin-right:0}.fire-btn{font-size:13px}.app{padding-left:16px;padding-right:16px}}@media(min-width:650px){.app{height:min(96dvh,1080px);border:1px solid #3c4952;border-radius:26px;padding:18px 24px 14px;box-shadow:0 25px 100px #0007}.arena-wrap{min-height:200px}}@media(max-height:740px){.topbar{height:32px}.hud{height:65px}.controls{padding-top:10px}.tool-row{margin-bottom:7px}.fire-btn{height:45px}.topbar .wordmark{font-size:15px}.brand-sub{top:25px}.level-name{font-size:21px}.app{padding-top:calc(env(safe-area-inset-top) + 8px);padding-bottom:calc(env(safe-area-inset-bottom) + 7px)}.intro h1{font-size:clamp(38px,8.5vh,60px);margin:15px 0 12px}.intro p{font-size:10px;margin-bottom:16px}.intro-foot{margin-top:13px;font-size:7px}.badge{font-size:6px}.intro .primary{min-height:42px}.result{padding:18px 17px 13px}.result-glyph{font-size:34px;margin:12px 0 5px}.result h2{font-size:29px}.result .round-stats{margin-bottom:16px;padding:11px 0}.stars{margin:8px 0;font-size:20px}.result p{font-size:9px;margin-bottom:12px}}@media(max-height:530px) and (orientation:landscape){body{overflow:auto}.app{height:700px;max-height:none;width:420px;flex-shrink:0}.modal-backdrop{padding:10px}.sheet{max-height:calc(100dvh - 20px)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}} 
/* Full viewport arena. Controls float over the playfield in every orientation. */
html,body{width:100%;height:100%;overflow:hidden;background:#1c2832}
body{display:block;overscroll-behavior:none}
.app{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:none;padding:0;border:0;border-radius:0;background:#1c2832;box-shadow:none;display:block}
.arena-wrap{position:absolute;inset:0;width:100%;height:100%;min-height:0;border:0;border-radius:0;box-shadow:none}
.topbar{position:absolute;top:calc(env(safe-area-inset-top) + 16px);left:calc(env(safe-area-inset-left) + 24px);right:calc(env(safe-area-inset-right) + 24px);height:36px;z-index:5;pointer-events:none}
.wordmark{font-size:14px;letter-spacing:1.7px;gap:5px;text-shadow:0 2px 9px #061019}
.wordmark .brand-symbol{font-size:27px}.brand-sub{display:none}
.top-actions{gap:7px;pointer-events:auto}.top-actions .icon-btn{width:36px;height:36px;border:1px solid #60778055;background:#16242ccf;border-radius:9px;color:#d4e2e3}.top-actions svg{width:19px;height:19px}#soundQuick{display:none}
.hud{position:absolute;top:calc(env(safe-area-inset-top) + 66px);left:calc(env(safe-area-inset-left) + 25px);right:calc(env(safe-area-inset-right) + 25px);height:auto;z-index:4;pointer-events:none;align-items:flex-start;text-shadow:0 2px 9px #061019}
.level-button{pointer-events:auto}.eyebrow{font-size:9px}.level-name{font-size:22px;margin-top:4px}.status-right{padding-top:1px}.health svg{width:16px;height:16px}.targets{font-size:8px}
.arena-top{top:calc(env(safe-area-inset-top) + 122px);left:calc(env(safe-area-inset-left) + 26px);right:26px;font-size:7px;opacity:.65}
.arena-bottom{display:none}
.controls{position:absolute;bottom:calc(env(safe-area-inset-bottom) + 25px);left:calc(env(safe-area-inset-left) + 24px);right:calc(env(safe-area-inset-right) + 24px);display:flex;gap:12px;justify-content:center;align-items:center;padding:0;z-index:5;pointer-events:none}
.tool-row{display:contents}.controls button{pointer-events:auto}
.weapon-btn{order:0;background:#15232cde;border:1px solid #5c768173;border-radius:11px;height:48px;padding:0 11px;gap:8px;flex-shrink:0;box-shadow:0 3px 10px #06101933}.weapon-btn>svg{width:24px;height:24px}.weapon-btn small{font-size:6px;letter-spacing:1px}.weapon-btn b{font-size:11px}.weapon-btn .chevron{margin-left:0}
.fire-btn{order:1;width:auto;flex:1;max-width:220px;min-width:80px;height:48px;border-radius:11px;font-size:11px;letter-spacing:1.7px;background:#23404aeb;box-shadow:0 3px 10px #06101933}.fire-btn>svg{margin-right:0;width:17px;height:17px}.keycap{display:none}
.tool-row>#retryBtn{order:2;flex-shrink:0;width:44px;height:48px;border:1px solid #5c768173;border-radius:11px;background:#15232cde;box-shadow:0 3px 10px #06101933}.shots{display:none}
.bottom-note{position:absolute;bottom:-15px;left:0;right:0;font-size:7px;padding:0;pointer-events:none;text-shadow:0 1px 4px #061019}
.game-overlay{padding:145px 24px 105px;z-index:2}.panel{max-width:325px}.intro h1{font-size:clamp(42px,9dvh,82px);margin:20px 0}.intro p{font-size:12px}.intro-foot{font-size:8px}
@media(max-width:380px){.topbar{left:18px;right:18px}.hud{left:20px;right:20px}.controls{left:18px;right:18px;gap:8px}.weapon-btn{padding:0 9px}.fire-btn{font-size:10px;letter-spacing:1.2px}.fire-btn svg{display:none}}
@media(max-height:720px){.game-overlay{padding-top:120px;padding-bottom:100px}.intro h1{font-size:clamp(35px,8dvh,57px);margin:12px 0}.intro p{font-size:10px;margin-bottom:16px}.intro-foot{margin-top:15px}.intro .primary{min-height:44px}.badge{font-size:6px}}
@media(orientation:landscape) and (max-height:550px){.topbar{top:14px;left:22px;right:22px}.hud{top:59px;left:24px;right:24px}.level-name{font-size:18px}.arena-top{top:105px}.controls{bottom:20px}.bottom-note{display:none}.game-overlay{padding:24px 160px 50px}.intro h1{font-size:36px;line-height:1;margin:10px 0}.intro h1 br{display:none}.intro h1 br:after{content:' '}.intro .badge{font-size:6px;padding:5px}.intro p{font-size:10px;margin-bottom:10px}.intro-foot{display:none}.intro .primary{min-height:39px}.result{padding:13px 17px 10px}.result-glyph{display:none}.result h2{font-size:26px}.result p{display:none}.result .stars{margin:7px 0;font-size:17px}.round-stats{margin-bottom:12px;padding:8px 0}.round-stats b{font-size:18px}.result .primary{min-height:39px}.result .text-btn{padding-top:12px}.pause-panel{padding:17px}.pause-panel h2{font-size:27px;margin:10px}.pause-panel p{margin-bottom:12px}}
/* The app stays fullscreen; the battlefield ends above a separate thumb area. */
:root{--tap-bay-height:clamp(128px,18dvh,166px)}
.app .arena-wrap{inset:0 0 calc(var(--tap-bay-height) + env(safe-area-inset-bottom));width:100%;height:auto}
.controls.touch-deck{left:0;right:0;bottom:0;height:calc(var(--tap-bay-height) + env(safe-area-inset-bottom));padding:10px max(20px,env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-right));display:grid;grid-template-columns:auto minmax(100px,260px) auto;grid-template-rows:1fr 48px;gap:0 12px;justify-content:center;align-items:center;background:radial-gradient(ellipse at 50% 0,#233944,#14232d 75%);border-top:1px solid #5a7d8980;box-shadow:inset 0 2px 0 #9ed9e90b;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none}
.touch-caption{grid-column:1/-1;grid-row:1;text-align:center;pointer-events:none;padding-bottom:3px}.touch-caption b{display:block;font-size:8px;letter-spacing:2.5px;color:#bad7d4;font-weight:650}.touch-caption span{display:block;font-size:9px;color:#7e9faa;margin-top:8px;letter-spacing:.1px}
.touch-deck .weapon-btn{grid-column:1;grid-row:2;max-width:135px}.touch-deck .fire-btn{grid-column:2;grid-row:2;max-width:none;width:100%;height:48px}.touch-deck .tool-row>#retryBtn{grid-column:3;grid-row:2}.touch-deck .bottom-note{display:none}.touch-deck .fire-btn.firing{background:#3d6570}.touch-deck.firing{border-top-color:#a9e7df}
.feedback-tests{display:flex;gap:9px;margin:0 0 12px}.feedback-tests .secondary{font-size:9px;padding:10px}
.game-overlay{padding:115px 22px 30px}.intro h1{font-size:clamp(42px,8dvh,66px);margin:18px 0}.intro p{font-size:11px}.intro-foot{margin-top:18px}.toast{max-width:85%;white-space:normal;text-align:center;line-height:1.6;top:23%;font-size:10px}
.level-card .mechanic-tag{display:block;color:var(--blue);font-size:6px;letter-spacing:.45px;margin-top:7px;font-weight:650}.level-card{min-height:88px}
@media(pointer:fine) and (min-width:900px){:root{--tap-bay-height:112px}}
@media(max-width:380px){.controls.touch-deck{padding-left:16px;padding-right:16px;column-gap:8px}.touch-caption span{font-size:8px}.touch-caption b{font-size:7px}}
@media(max-height:740px){.game-overlay{padding:110px 22px 25px}.intro h1{font-size:clamp(35px,7.3dvh,54px);margin:12px 0}.intro p{font-size:10px;margin-bottom:16px}.intro-foot{display:none}.intro .primary{min-height:42px}.result{padding-top:15px;padding-bottom:10px}.result-glyph{font-size:28px;margin:8px}.result p{margin-bottom:12px}}
@media(orientation:landscape) and (max-height:550px){:root{--tap-bay-height:88px}.controls.touch-deck{padding-top:4px;padding-bottom:11px;grid-template-rows:25px 44px;column-gap:12px}.touch-caption{display:flex;justify-content:center;align-items:center;gap:12px;padding:0}.touch-caption b{font-size:6px;letter-spacing:1.6px}.touch-caption span{font-size:7px;margin:0}.touch-deck .fire-btn,.touch-deck .weapon-btn,.touch-deck .tool-row>#retryBtn{height:44px}.game-overlay{padding:14px 170px 10px}.intro h1{font-size:31px;margin:6px 0}.intro h1 br{display:none}.intro h1 em:before{content:' '}.intro p{font-size:9px;margin-bottom:10px}.intro .badge{font-size:5px;padding:5px}.intro .primary{min-height:34px}.result .eyebrow{font-size:6px}.result h2{font-size:21px}.result .stars{font-size:14px;margin:5px 0}.result .round-stats{padding:6px 0;margin-bottom:8px}.result .round-stats b{font-size:15px}.result .primary{min-height:32px}.result .text-btn{padding-top:9px}}
/* Rule reminders live in the thumb area as well, leaving combat unobscured. */
.touch-deck .toast{top:15px;max-width:min(88%,510px);padding:0;background:transparent;border:0;box-shadow:none;border-radius:0;font-size:10px;line-height:1.6;z-index:2}.touch-deck.show-message .touch-caption{visibility:hidden}.feedback-tests button:disabled{opacity:.4;cursor:default}
@media(orientation:landscape) and (max-height:550px){.touch-deck .toast{top:7px;font-size:8px;max-width:80%;line-height:1.3}}
/* v8: the whole bottom deck is the fire control; loadout and restart live in the top bar, away from the thumb. */
.controls.touch-deck{grid-template-columns:1fr;grid-template-rows:1fr;cursor:pointer}
.touch-caption{grid-row:1;padding:0}.touch-caption b{font-size:10px;letter-spacing:3px}.touch-caption span{font-size:11px;margin-top:9px}
.touch-deck.firing{background:radial-gradient(ellipse at 50% 0,#2c4c58,#162a35 75%)}
.top-actions{gap:6px}
@media(max-width:380px){.top-actions{gap:4px}.top-actions .icon-btn{width:33px;height:33px}.wordmark{font-size:12px;letter-spacing:1.2px}}
@media(orientation:landscape) and (max-height:550px){.controls.touch-deck{grid-template-rows:1fr;padding-top:6px}}
/* v12: no wordmark or arena title; status sits at the left of the icon row and arenas open from the grid icon. */
.topbar .status-right{flex-direction:column;align-items:flex-start;gap:5px;pointer-events:none;text-shadow:0 2px 9px #061019}
.topbar .health svg{width:15px;height:15px}
@media(max-width:380px){.topbar .health svg{width:13px;height:13px}.topbar .targets{font-size:7px}}
/* v14: lives, passives and gauntlet progress sit faintly in the tap zone; stored power-ups are tappable buttons at its edges. */
.deck-status{position:absolute;top:12px;left:0;right:0;display:flex;justify-content:center;align-items:center;gap:14px;pointer-events:none;opacity:.55}
.deck-status .health{gap:5px}.deck-status .health svg{width:14px;height:14px}
.deck-status .health.practice{font-size:8px;letter-spacing:1.4px;font-weight:700}
.passives{display:flex;gap:5px}.passives svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.stage-dots{display:flex;gap:5px}.stage-dots i{width:7px;height:7px;border-radius:50%;border:1px solid #9fc4cf}.stage-dots i.done{background:#9fc4cf}.stage-dots i.now{background:#ffd27a;border-color:#ffd27a}
.touch-caption{opacity:.7}
.power-btn{position:absolute;top:50%;transform:translateY(-38%);width:64px;height:64px;border-radius:18px;border:1.5px solid var(--pc,#74dbed);background:#0e1b23e6;color:var(--pc,#74dbed);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;box-shadow:0 0 18px -6px var(--pc,#74dbed);pointer-events:auto;cursor:pointer;z-index:3;animation:powerIn .35s ease-out}
.power-btn[hidden]{display:none}
.power-btn.left{left:max(14px,env(safe-area-inset-left))}.power-btn.right{right:max(14px,env(safe-area-inset-right))}
.power-btn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.power-btn small{font-size:7px;letter-spacing:.6px;text-transform:uppercase;font-weight:700;max-width:58px;text-align:center;line-height:1.1}
.power-btn:active{transform:translateY(-38%) scale(.94)}
@keyframes powerIn{from{transform:translateY(-38%) scale(.6);opacity:0}}
@media(orientation:landscape) and (max-height:550px){.power-btn{width:52px;height:52px;transform:translateY(-45%)}.deck-status{top:4px}}
.touch-deck.show-message .deck-status{visibility:hidden}
.grid-divider{grid-column:1/-1;margin:14px 0 2px;font-size:11px;letter-spacing:2px;color:var(--gold,#f0ca68);font-weight:700;border-top:1px solid #33414a;padding-top:12px}
.reset-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0 0;margin-top:15px;border-top:1px solid #364955}.reset-row b{display:block;font-size:12px;font-weight:650}.reset-row small{display:block;font-size:9px;line-height:1.5;color:#99acb8;margin-top:5px}.reset-row .secondary{flex:0 0 auto;min-width:86px}.secondary.danger{color:#f0b49a;border-color:#7a5548;background:#3a2c2a}.secondary.danger.armed{background:#c9634a;color:#fff;border-color:#f0a58e}
.reset-actions{display:flex;gap:8px;flex-shrink:0}.reset-actions .secondary{flex:0 0 auto;min-width:78px}.reset-row.armed small{color:#f0b49a}.level-reset{margin:0 0 18px;padding:13px 14px;border:1px solid #4a3b38;border-radius:10px;background:#221c1d55}
.reset-row.armed{flex-wrap:wrap}.reset-row.armed>span{flex-basis:100%}.reset-row.armed .reset-actions{width:100%}.reset-row.armed .reset-actions .secondary{flex:1}
/* Centered powers preserve both sides of the dedicated firing deck. */
.power-btn.left{left:calc(50% - 68px)}.power-btn.right{left:calc(50% + 5px);right:auto}.touch-deck.one-power .power-btn{left:calc(50% - 31px)}
.power-btn{width:62px;height:57px;top:43%;transform:translateY(-25%);border-radius:13px}.power-btn svg{width:23px;height:23px}.power-btn small{font-size:7px}.power-btn.selected{background:#435660;border-color:#fff;box-shadow:0 0 20px #d5f2ff88}.power-count{position:absolute;right:-5px;top:-7px;font-size:13px;background:#dbe6e9;color:#15222b;border-radius:12px;min-width:19px;padding:2px}.power-count:empty{display:none}.power-btn:active{transform:translateY(-25%) scale(.94)}
.has-powers .touch-caption{position:absolute;bottom:10px;width:100%}.has-powers .touch-caption b{font-size:8px;letter-spacing:1.2px}.has-powers .touch-caption span{font-size:8px;margin-top:3px}.has-powers.show-message .toast{top:auto;bottom:8px;font-size:9px;line-height:1.3;max-width:94%}
.passives>span{display:flex;align-items:center;gap:2px}.passives small{font-size:8px}.deck-status{gap:8px;top:9px}.targeting{cursor:crosshair}
@media(orientation:landscape) and (max-height:550px){.power-btn{top:30%;width:49px;height:44px}.power-btn.left{left:calc(50% - 54px)}.power-btn.right{left:calc(50% + 4px)}.touch-deck.one-power .power-btn{left:calc(50% - 24px)}.power-btn svg{width:20px;height:20px}.has-powers .touch-caption{bottom:2px}.has-powers .touch-caption b{font-size:7px}.has-powers .touch-caption span{display:none}.has-powers .deck-status{left:12px;right:auto;top:12px;max-width:30%;flex-wrap:wrap}.has-powers.show-message .toast{max-width:45%;left:75%;bottom:12px;font-size:8px}}

.level-card.locked{background:#151f27;border-color:#27353f;cursor:default}.level-card.locked b{color:#56687380}.level-card.locked small{color:#56687399;letter-spacing:.6px}.level-card .level-lock{position:absolute;right:8px;top:10px;width:12px;height:12px;color:#566873}
.tip-card{position:absolute;left:50%;top:calc(env(safe-area-inset-top) + 62px);z-index:3;width:max-content;max-width:min(92vw,520px);transform:translate(-50%,-8px);opacity:0;pointer-events:none;padding:12px 16px 13px;border-radius:14px;background:linear-gradient(180deg,#0c141bcc,#101a22b8);border:1px solid #5b707cb3;box-shadow:0 8px 26px #0008,inset 0 1px 0 #ffffff14;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);text-align:left;transition:opacity .22s cubic-bezier(.3,0,1,1),transform .22s cubic-bezier(.3,0,1,1)}
.tip-card.show{opacity:1;transform:translate(-50%,0);transition:opacity .3s cubic-bezier(.05,.7,.1,1),transform .3s cubic-bezier(.05,.7,.1,1)}
.tip-card b{display:block;font-size:11px;letter-spacing:1.6px;text-transform:uppercase;color:var(--yellow);margin-bottom:5px;font-weight:750}
.tip-card p{margin:0;font-size:16.5px;line-height:1.38;color:#f3f7f2;font-weight:560;text-wrap:pretty}
@media(orientation:landscape) and (max-height:550px){.tip-card{top:calc(env(safe-area-inset-top) + 52px);max-width:min(70vw,520px);padding:9px 14px 10px}.tip-card p{font-size:14px;line-height:1.32}.tip-card b{font-size:10px;margin-bottom:3px}}
@media(prefers-reduced-motion:reduce){.tip-card,.tip-card.show{transform:translate(-50%,0);transition:opacity .2s linear}}
.block-head{font-size:10px;letter-spacing:1.6px;text-transform:uppercase}
.level-card small{font-size:9px}

/* V30: nothing small or paragraph-long during play. Debut rooms flash one big label; the tap zone only speaks when it must. */
.debut-label{position:absolute;left:50%;top:30%;z-index:3;transform:translate(-50%,-50%) scale(.9);opacity:0;pointer-events:none;width:max-content;max-width:92vw;text-align:center;font-size:clamp(34px,10.5vw,56px);font-weight:900;line-height:1;letter-spacing:.5px;color:#ffe08a;text-shadow:0 0 2px #0b1218,0 3px 0 #0b1218,0 0 22px #0b1218,0 0 40px #0b121899}
.debut-label.low{top:66%}
.debut-label.show{animation:debutflash 1.5s cubic-bezier(.2,.7,.2,1) forwards}
@keyframes debutflash{0%{opacity:0;transform:translate(-50%,-50%) scale(.86)}10%{opacity:1;transform:translate(-50%,-50%) scale(1.04)}18%{transform:translate(-50%,-50%) scale(1)}78%{opacity:1}100%{opacity:0;transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){.debut-label.show{animation:none;opacity:1;transform:translate(-50%,-50%)}}
.tip-card{display:none!important}
.touch-caption{opacity:.9}
.touch-caption b{font-size:22px;letter-spacing:2px;font-weight:850;color:#d8f0ec}
.touch-caption span{display:none}
.touch-deck.no-caption .touch-caption{visibility:hidden}
.deck-status{opacity:.92;top:14px;gap:18px}
.deck-status .health{gap:7px}
.deck-status .health svg{width:24px;height:24px}
.deck-status .health.practice{font-size:15px;letter-spacing:1.5px;font-weight:800}
.passives svg{width:22px;height:22px}
.stage-dots{gap:8px}
.stage-dots i{width:12px;height:12px;border-width:2px}
.touch-deck .toast,.has-powers.show-message .toast{font-size:21px;font-weight:850;letter-spacing:1px;text-transform:uppercase;line-height:1.2;top:12px;bottom:auto;left:50%;max-width:94%;white-space:nowrap}
.toast{font-size:15px}
.power-btn{width:100px;height:72px;gap:4px;top:auto;bottom:calc(22px + env(safe-area-inset-bottom));transform:none}
.power-btn:active{transform:scale(.94)}
.power-btn.left{left:calc(50% - 106px)}
.power-btn.right{left:calc(50% + 6px)}
.touch-deck.one-power .power-btn{left:calc(50% - 50px)}
.power-btn svg{width:26px;height:26px}
.power-btn small{font-size:13px;letter-spacing:0;max-width:96px;line-height:1.05;font-weight:800}
.power-count{font-size:15px;min-width:22px}
.field-guide .guide-list{display:grid;gap:12px;margin-top:12px}
.guide-item b{display:inline;font-size:14px;letter-spacing:.8px;color:var(--yellow)}
.guide-item small{margin-left:8px;font-size:11px;color:var(--muted)}
.guide-item p{margin:4px 0 0;font-size:13px;line-height:1.5;color:#c9d6dc}
@media(orientation:landscape) and (max-height:550px){.debut-label{font-size:34px}.touch-deck .toast{font-size:16px;top:8px}.power-btn{width:70px;height:56px}.power-btn small{font-size:11px}}

.level-card.gauntlet{border-color:#d4a84e88;background:linear-gradient(180deg,#25231b,#191c22)}.level-card.gauntlet b{color:var(--yellow)}.level-card.gauntlet small{color:#e6c97a}
