:root{color-scheme:dark;--ink:#edf5ff;--muted:#afc2de;--edge:#2a4263;--base:#081123;--blue:#70d9ff;--good:#78f6b5;--bad:#ff99a9;--mono:ui-monospace,SFMono-Regular,Consolas,monospace}
*{box-sizing:border-box}
body{margin:0;background:radial-gradient(ellipse at 40% 5%,#18365d 0,transparent 58%),repeating-linear-gradient(0deg,transparent 0 33px,#6cbaff0b 33px 34px),repeating-linear-gradient(90deg,transparent 0 33px,#6cbaff0b 33px 34px),var(--base);color:var(--ink);font:1rem/1.45 system-ui,sans-serif;min-height:100vh}
p,h1,h2{margin:0}button{font:inherit;cursor:pointer}button:focus-visible{outline:3px solid #f9db72;outline-offset:4px}button:disabled{cursor:default}img{display:block;max-width:100%;object-fit:contain}
.cabinet{max-width:1150px;margin:auto;padding:22px clamp(13px,4vw,52px)}
.masthead,.titlebar,.hud,footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.masthead{padding-bottom:14px;border-bottom:1px solid var(--edge);font:700 .83rem var(--mono);letter-spacing:.1em}
.brand{color:var(--blue)}.edition,.mini,footer{color:var(--muted)}
.titlebar{margin:24px 0 20px}.titlebar p:last-child{color:var(--muted)}
.eyebrow,.mini{font:750 .86rem/1.2 var(--mono);letter-spacing:.09em}.eyebrow{color:var(--blue)}
h1{font-size:clamp(2.45rem,6.8vw,5.8rem);line-height:.94;text-transform:uppercase;letter-spacing:-.065em;font-weight:950;margin:7px 0 10px}
h1 em{font-style:normal;color:var(--blue)}
.reset{flex:none;padding:10px 14px;border:1px solid #6382aa;background:#10223e;color:var(--ink);border-radius:6px;font:800 .89rem var(--mono)}.reset:hover{background:#284c72}
.hud{padding:9px 14px;margin-bottom:12px;border:1px solid var(--edge);background:#09192c;border-radius:8px;justify-content:flex-start;min-height:47px}
.hud strong{color:#fff;margin-left:.5rem;font:800 1rem var(--mono)}.misses{margin-left:auto}.pips{display:flex;gap:5px}.pip{height:9px;width:13px;background:#253e5f;transform:skew(-14deg)}.pip.won{background:var(--good);box-shadow:0 0 8px #52fdb078}
.arena{position:relative;display:grid;grid-template-columns:minmax(0, .9fr) minmax(0, 1.65fr);gap:18px;border:1px solid #40648d;border-radius:12px;padding:14px;background:#081426df;box-shadow:0 16px 55px #0006;min-height:330px}
.hero,.foes{position:relative;min-width:0;border:1px solid var(--edge);border-radius:8px}
.hero{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;background:radial-gradient(ellipse at 50% 56%, var(--aura,#246092) 0%, #142745 50%, #0b192f 78%);overflow:hidden}
.hero-top,.loadout{z-index:2;padding:12px 8px}.hero h2{font-size:1.46rem}.hero-art{flex:1;position:relative;display:grid;place-items:center;width:100%;min-height:145px}
.target-ring{position:absolute;aspect-ratio:1;width:min(63%,201px);border:1px solid #a2d9ff4d;border-radius:50%;box-shadow:0 0 0 14px #a7d9ff0c,0 0 0 28px #9bd7ff0b}

.loadout{width:100%;min-height:57px;background:#081628e8;border-top:1px solid var(--edge)}.loadout strong{display:block;color:var(--blue);font-size:1.2rem}
.vs{position:absolute;left:35.25%;top:50%;transform:translate(-50%,-50%);z-index:3;background:#182c4a;border:1px solid #648db4;color:#dcedff;font:950 italic 1rem var(--mono);padding:7px;border-radius:50%;pointer-events:none}
.foes{padding:14px 16px;background:#0c1c32}.foes h2{font-size:clamp(1.15rem,2.8vw,1.75rem);margin:3px 0 13px}
.choices{display:grid;grid-template-columns:1fr;gap:8px}
.choice{position:relative;overflow:hidden;border:1px solid #58729a;border-radius:7px;background:radial-gradient(ellipse at 50% 48%,var(--tint,#264269),#12223a 72%);color:var(--ink);padding:27px 6px 9px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;min-height:80px;font-weight:850;line-height:1.2;text-align:center;transition:background .15s,border-color .15s,transform .15s}
.choice:hover:not(:disabled){border-color:var(--blue);transform:translateY(-3px)}
.number{position:absolute;top:6px;left:7px;border:1px solid #8fb0d488;border-radius:4px;padding:2px 5px;font:750 .75rem var(--mono);color:#dceaff;background:#0a1830}
.choice-name{min-height:2.5em;display:grid;place-items:center}.choice.wrong{border:2px solid var(--bad);box-shadow:inset 0 0 15px #f5596b60}.choice.right{border:2px solid var(--good);box-shadow:inset 0 0 19px #65f5ad66,0 0 14px #3beba95e}
.feedback{min-height:3.2em;margin:11px 0 4px;border-left:3px solid #79c9ff;padding:7px 10px;background:#0e2139;color:#dfedff;border-radius:0 5px 5px 0}.feedback[data-tone=right]{border-color:var(--good);color:var(--good)}.feedback[data-tone=wrong]{border-color:var(--bad);color:var(--bad)}
.cleared{border:1px solid #57a984;background:#102e2e;border-radius:8px;padding:17px}.cleared .eyebrow{color:var(--good)}.cleared p{margin-bottom:10px}
footer{font-size:.79rem;align-items:flex-start}
@media(max-width:660px){
.cabinet{padding-top:14px}.masthead{font-size:.7rem}.titlebar{margin:18px 0 13px;align-items:flex-start}.titlebar p:last-child{font-size:.94rem}.titlebar .reset{font-size:.76rem;padding:7px 8px;margin-top:2px}
.arena{grid-template-columns:minmax(0,.78fr) minmax(0,1.3fr);gap:7px;padding:7px;min-height:290px}.foes{padding:10px 7px}.foes h2{margin-bottom:8px}.hero{min-height:276px}.hero h2{font-size:1.19rem}.hero .mini{font-size:.68rem}.loadout strong{font-size:1rem}.vs{display:none}
.choices{grid-template-columns:1fr;gap:5px}.choice{min-height:58px;flex-direction:row;justify-content:flex-start;gap:6px;text-align:left;padding:2px 4px 2px 24px;font-size:.9rem}.number{left:4px;top:50%;transform:translateY(-50%);padding:1px 3px}.choice-name{display:block;min-height:0}.choice:hover:not(:disabled){transform:none}
.pips{gap:4px}.pip{width:9px}.hud{padding:8px;gap:10px}.hud .mini{font-size:.72rem}footer{flex-direction:column;gap:4px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}

/* Arcade layout: the Blue Bomber on the left, three targets stacked on the right. */
.hero-top{padding:17px 5px 10px}
.hero h2{font-weight:930;line-height:1;letter-spacing:-.045em;font-size:clamp(1.35rem,4vw,3.4rem)}
.hero-top .mini{margin-top:7px;color:#bddfff;letter-spacing:.105em}
.hero-art{min-height:182px;isolation:isolate}
.target-ring{width:min(63%,176px);opacity:.8}
.hero-sprite{width:min(100%,335px);min-width:0;height:clamp(130px,19vw,190px);display:grid;grid-template-columns:minmax(0,62%) minmax(0,29%);grid-template-rows:minmax(0,1fr);column-gap:3%;align-items:center;justify-content:center;position:relative;z-index:1}
.runner{width:100%;height:100%;max-height:190px;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 7px 7px #000b)}
.weapon-buster .runner{width:89%;justify-self:center}
.shot{grid-column:2;grid-row:1;width:100%;height:auto;max-height:65%;object-fit:contain;image-rendering:pixelated;position:relative;top:calc(var(--muzzle,48%) - 50%);justify-self:center;filter:drop-shadow(0 0 5px var(--weapon-glow,#81eaff))}
.weapon-hyperBomb .shot{width:86%}
.firing .shot{animation:projectile .43s ease-out both}
.load-in .runner,.load-in .shot{animation:beam-in .35s ease-out both}
@keyframes projectile{0%{opacity:.8;transform:translate(-13%,0) scale(.83)}70%{opacity:1}100%{opacity:0;transform:translate(78%,0) scale(1.1)}}
@keyframes beam-in{from{opacity:.25;filter:brightness(1.5)}to{opacity:1}}
.life{width:min(87%,305px);padding:7px 8px 8px;border:1px solid #63809c;background:#071423;border-radius:4px;box-shadow:inset 0 0 0 2px #16304b}
.life-caption{display:flex;justify-content:space-between;gap:3px;align-items:center;font:800 clamp(.55rem,1.5vw,.76rem)/1.3 var(--mono);color:#ffe991;letter-spacing:.035em;white-space:nowrap;margin-bottom:5px}
.life-caption strong{color:#fff7c1;font:inherit}
.life-track{display:grid;grid-template-columns:repeat(28,minmax(0,1fr));gap:2px;align-items:center;padding:3px;background:#2b2217;border:1px solid #96794c;border-radius:2px}
.life-track i{height:10px;background:linear-gradient(180deg,#fff9bb 0 30%,#ffdc58 32% 65%,#e9a830 68%);box-shadow:0 0 4px #ffdb5b59;transition:background .04s,box-shadow .04s}
.life-track .empty{background:#302a27;box-shadow:none}
.choices .choice{min-height:80px;display:grid;grid-template-columns:34px clamp(66px,15vw,110px) minmax(0,1fr);align-items:center;justify-items:start;padding:3px 9px;gap:9px;text-align:left;background:radial-gradient(ellipse at 25% 53%,var(--tint,#264269),#12223a 72%)}
.choices .choice:hover:not(:disabled){transform:translateX(-2px)}
.number{position:static;transform:none;justify-self:center;align-self:center;padding:2px 5px}
.enemy-pose{position:relative;display:grid;place-items:center;width:100%;height:72px}
.enemy{display:block;height:100%;width:100%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 5px 4px #000a)}
.choice-name{min-height:0;display:block;font-size:clamp(.93rem,2.1vw,1.32rem)}
.choice.replay-decoy .enemy{opacity:.68}
.burst-layer{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:4}
.foe-burst{width:45%;inset:0 auto 0 5%}
.mote{position:absolute;top:50%;left:50%;width:17px;height:17px;margin:-8.5px;border:2px solid var(--core);border-radius:50%;background:radial-gradient(circle,var(--glow) 0 28%,transparent 52%);box-shadow:0 0 8px var(--glow),inset 0 0 4px var(--glow);animation:burst-out 2.75s cubic-bezier(.12,.57,.25,1) var(--delay,0ms) both}
.core-mote{width:28px;height:28px;margin:-14px}
.foe-burst .mote{animation-duration:.91s}
.dissolve .runner,.dissolve .shot,.foe-break .enemy{opacity:0;transition:opacity .16s ease-out}
.hero.lost .hero-sprite{visibility:hidden}
@keyframes burst-out{0%{opacity:.2;transform:translate(0,0) scale(.35)}12%{opacity:1}58%{opacity:.92}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(2.22)}}
.cleared.failure{border-color:#ad6778;background:#2b182b}
.cleared.failure .eyebrow{color:var(--bad)}
.rules{margin:0 0 11px;font-size:.85rem;color:var(--muted)}
@media(max-width:660px){
  .hero-top{padding:14px 3px 7px}.hero h2{font-size:clamp(1.03rem,5.5vw,1.85rem)}.hero-top .mini{font-size:clamp(.52rem,2.35vw,.7rem)}
  .hero-art{min-height:126px}.hero-sprite{height:120px}.runner{max-height:110px}.life{width:95%;padding:4px 4px 5px}
  .life-track{gap:1px;padding:2px}.life-track i{height:8px}
  .choices .choice{grid-template-columns:15px minmax(32px,35%) minmax(0,1fr);gap:4px;padding:3px;min-height:60px}
  .choice-name{font-size:clamp(.8rem,3.5vw,1rem)}
  .enemy-pose{height:51px}.number{padding:1px 3px}
  .choices .choice:hover:not(:disabled){transform:none}
}
@media(prefers-reduced-motion:reduce){
  .mote{display:none}
}

/* Original-style vertical Life Energy: the topmost filled pip drains first. */
.hero-art{padding-left:clamp(32px,7vw,75px)}
.target-ring{left:calc(50% + clamp(16px,3.5vw,37px));transform:translateX(-50%)}
.life{position:absolute;left:clamp(4px,1.65vw,17px);top:50%;transform:translateY(-50%);width:clamp(32px,5.7vw,63px);padding:6px 3px;border:0;border-radius:0;background:none;box-shadow:none;text-align:center;z-index:2}
.life-caption{display:grid;place-items:center;justify-content:center;gap:3px;white-space:normal;font-size:clamp(.55rem,1.3vw,.74rem)}
.life-caption br{display:none}
.life-caption span{max-width:5ch}
.life-track{width:clamp(17px,3.1vw,30px);margin:auto;display:flex;flex-direction:column-reverse;gap:1px;padding:3px;border:2px solid #020609;background:#080a0d;box-shadow:0 0 0 1px #73849c,0 0 0 3px #121c2a}
.life-track i{width:100%;height:3px}
@media(max-width:660px){
  .hero-art{padding-left:30px}
  .target-ring{left:calc(50% + 15px)}
  .life{left:0;padding:2px 1px;width:31px}
  .life-caption{font-size:.49rem;letter-spacing:0}
  .life-caption br{display:inline}
  .life-track{gap:1px;padding:2px}
  .life-track i{height:2px}
}
.foe-burst{width:auto;inset:0;overflow:visible}
@media(max-width:400px){
 .choice-name{overflow-wrap:normal}
 .hero-art .mote{max-width:15px;max-height:15px}
}
.life-caption br{display:inline}
.life-caption span{max-width:none}
.enemy-pose{height:68px}
.enemy{min-height:0;max-height:68px}
@media(max-width:660px){
 .enemy-pose{height:49px}
 .enemy{max-height:49px}
}
.choice.wrong:disabled{opacity:.56}
.choice.wrong:disabled .choice-name{text-decoration:line-through}
.weapon-buster .shot{width:84%}
.weapon-hyperBomb .shot{filter:drop-shadow(0 0 4px #a4ff99) drop-shadow(0 0 2px #e7fff0)}
.weapon-hyperBomb.firing .shot,.weapon-superArm.firing .shot{animation-name:throw-shot}
.weapon-rollingCutter.firing .shot{animation-name:cutter-flight}
@keyframes throw-shot{
 0%{opacity:1;transform:translate(-12%,0) rotate(0deg)}45%{opacity:1;transform:translate(34%,-60%) rotate(18deg)}100%{opacity:0;transform:translate(83%,15%) rotate(46deg)}
}
@keyframes cutter-flight{
 0%{opacity:1;transform:translate(-12%,0) rotate(0deg)}70%{opacity:1}100%{opacity:0;transform:translate(83%,0) rotate(220deg)}
}

/* Keep the VS badge out of the projectile lane on unfolded phones and tablets. */
@media(max-width:900px){.vs{display:none}}

/* Rehearse the currently equipped weapon without health, score, or turn costs. */
.test-fire{margin-top:5px;padding:4px 8px;border:1px solid #557ca3;border-radius:4px;background:#142d48;color:#dff3ff;font:750 .72rem var(--mono);min-height:30px}
.test-fire:hover{background:#24456a}
@media(pointer:coarse){.test-fire{min-height:44px}}

/* Distinct elemental attacks in the same responsive projectile lane. */
.weapon-thunderBeam.firing .shot{animation:thunder-strike .72s ease-out both;transform-origin:20% 50%;z-index:2}
@keyframes thunder-strike{
  0%{opacity:1;transform:translateX(-19%) scale(.52,.64);filter:brightness(1.65) drop-shadow(0 0 5px #fff9bd)}
  32%{opacity:1;transform:translate(6%,-4%) scale(1.28,1.07)}
  67%{opacity:.94;transform:translate(22%,3%) scale(1.35,1);filter:brightness(1.65) drop-shadow(0 0 8px #ffdf5c)}
  100%{opacity:0;transform:translateX(45%) scale(1.24,.56)}
}
.weapon-iceSlasher.firing .shot{animation:ice-slice .7s cubic-bezier(.48,.02,.31,1) both;z-index:2}
@keyframes ice-slice{
  0%{opacity:1;transform:translateX(-25%) scale(.58);filter:drop-shadow(0 0 3px #e8fbff)}
  48%{opacity:1;transform:translateX(8%) scale(1);filter:drop-shadow(-8px 1px 1px #61c6ffad) drop-shadow(-4px 0 4px #8cf5ffee)}
  78%{opacity:1;transform:translate(29%,-3%) scale(1.14)}
  100%{opacity:0;transform:translate(58%,-3%) scale(.83)}
}
.weapon-fireStorm.firing .shot{animation:fireball-surge .76s ease-out both;z-index:2}
@keyframes fireball-surge{
  0%{opacity:.9;transform:translateX(-22%) scale(.6);filter:drop-shadow(0 0 3px #ffd35e)}
  43%{opacity:1;transform:translateX(8%) scale(1.17);filter:drop-shadow(-7px 0 4px #ec5626) drop-shadow(0 0 6px #ffb850)}
  69%{opacity:1;transform:translateX(26%) scale(1.22);filter:brightness(1.4) drop-shadow(-9px 0 6px #ec5626)}
  100%{opacity:0;transform:translateX(60%) scale(1.45,.83)}
}
.weapon-fireStorm.firing::after{
  content:"";position:absolute;pointer-events:none;left:8%;top:50%;width:52%;aspect-ratio:1;
  border:2px dashed #ffc65e;border-radius:50%;box-shadow:inset 0 0 9px #fe542f,0 0 8px #fa612a;
  animation:fire-halo .68s ease-out both;
}
@keyframes fire-halo{
  0%{opacity:0;transform:translateY(-50%) scale(.7) rotate(0)}
  26%{opacity:.9}
  64%{opacity:.7}
  100%{opacity:0;transform:translateY(-50%) scale(1.22) rotate(80deg)}
}

/* Game selector and optional strategy guide. */
.game-controls{flex:none;display:flex;align-items:end;gap:10px}
.edition-picker{display:grid;gap:5px;position:relative;min-width:155px}
.edition-picker select{appearance:none;color:var(--ink);background:#122844;border:1px solid #749cc1;border-radius:6px;padding:10px 31px 10px 11px;font:850 .92rem var(--mono);cursor:pointer;min-height:43px}
.edition-picker::after{content:"";position:absolute;bottom:18px;right:13px;border:solid var(--blue);border-width:0 2px 2px 0;display:block;width:7px;height:7px;transform:rotate(45deg);pointer-events:none}
.edition-picker select:hover{background:#204368}
.edition-picker select:focus-visible{outline:3px solid #f9db72;outline-offset:4px}
.game-controls .reset{min-height:43px}
.follow-up{display:block;color:#e0d8b2;padding:3px 5px;font-size:.75rem;line-height:1.25}
.follow-up[hidden]{display:none}
.defeated-tag{display:block;color:#b3c4dc;font:750 .65rem var(--mono);margin-top:4px}
.route-guide{margin:13px 0 14px;border:1px solid var(--edge);border-radius:8px;background:#0b1b31;color:#d7e6fb}
.route-guide summary{color:var(--blue);font:760 .94rem var(--mono);cursor:pointer;padding:12px}
.route-guide summary:focus-visible{outline:3px solid #f9db72;outline-offset:3px}
.route-body{border-top:1px solid var(--edge);padding:12px}
.route-body ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(182px,1fr));gap:8px 22px;padding-left:23px}
.route-body li{padding:1px 0 3px}.route-body li span{display:block;font-size:.84rem;color:var(--muted)}
.route-sources{font-size:.85rem;color:var(--muted)}.route-sources a[href]{color:var(--blue)}
.route-sources span{margin:0 4px}.route-sources:has(#sprite-source[hidden]) span{display:none}
@media(max-width:660px){
  .titlebar{display:grid;gap:11px}.game-controls{align-items:end}.edition-picker{min-width:140px}
  .edition-picker .mini{font-size:.73rem}.game-controls .reset{padding:7px 10px}
  .pips{gap:3px}.pip{width:8px}
}
@media(max-width:365px){.hud .mini{font-size:.65rem}.hud strong{font-size:.88rem;margin-left:.25rem}.hud{gap:7px}.pip{width:6px}}

/* Special weapons travel in the reserved projectile lane, even on a narrow phone. */
.effect-spin.firing .shot{animation:cutter-flight .66s ease-out both}
.effect-throw.firing .shot{animation:throw-shot .65s ease-out both}
.effect-beam.firing .shot{animation:thunder-strike .73s ease-out both}
.effect-charge.firing .shot{animation:charge-launch .74s ease-out both}
.effect-bubble.firing .shot{animation:bubble-launch .73s ease-in-out both}
.effect-vortex.firing .shot{animation:vortex-launch .74s ease-out both}
.effect-rapid.firing .shot{animation:rapid-launch .76s ease-out both}
.effect-ground .shot{top:19%}
.effect-ground.firing .shot{animation:ground-launch .71s steps(8,end) both}
.effect-orbit.firing .shot,.effect-field.firing .shot{animation:field-launch .74s ease-out both}
.effect-orbit.firing::after,.effect-field.firing::after{
  content:"";position:absolute;pointer-events:none;left:5%;top:50%;width:54%;aspect-ratio:1;
  border:2px solid var(--weapon-glow);border-radius:50%;box-shadow:0 0 9px var(--weapon-glow);
  animation:fire-halo .73s ease-out both
}
@keyframes charge-launch{0%{opacity:.55;transform:scale(.4) translateX(-19%)}39%{opacity:1;transform:scale(1.19);filter:brightness(1.3) drop-shadow(0 0 8px var(--weapon-glow))}100%{opacity:0;transform:translateX(66%) scale(1.25)}}
@keyframes bubble-launch{0%{transform:translate(-17%,-14%);opacity:1}55%{transform:translate(22%,20%);opacity:1}100%{transform:translate(62%,-17%);opacity:0}}
@keyframes vortex-launch{0%{transform:translate(-10%,18%) scale(.55);opacity:1}53%{transform:translate(20%,4%) scale(1.12);opacity:1}100%{transform:translate(64%,-30%) scale(1.3);opacity:0}}
@keyframes rapid-launch{0%{opacity:1;transform:translateX(-18%)}28%{transform:translateX(5%)}42%{transform:translateX(-12%)}73%{opacity:1}100%{opacity:0;transform:translateX(70%)}}
@keyframes ground-launch{0%{opacity:1;transform:translateX(-18%) scale(.88)}74%{opacity:1}100%{opacity:0;transform:translateX(65%) scale(1.04)}}
@keyframes field-launch{0%{transform:scale(.48);opacity:.45}43%{transform:scale(1.12);opacity:1}68%{transform:scale(1.2);opacity:.9}100%{transform:scale(1.35);opacity:0}}

/* Music is independent of the battle sound effects. */
.music-toggle{display:grid;place-items:center;flex:none;width:43px;height:43px;border:1px solid #6382aa;border-radius:6px;background:#10223e;color:#bce9ff}
.music-toggle:hover{background:#284c72}
.music-toggle svg{width:22px;height:22px;pointer-events:none}
.music-toggle .music-slash,.music-toggle[aria-pressed=true] .music-waves{display:none}
.music-toggle[aria-pressed=true]{color:#f1b5bc}
.music-toggle[aria-pressed=true] .music-slash{display:inline}
@media(pointer:coarse){.music-toggle{min-width:44px;min-height:44px}}

.audio-guide .route-body>label{font-weight:700}
.audio-guide .audio-note{margin:.35rem 0 .65rem}
.audio-guide .audio-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.audio-guide input{max-width:100%;color:#d7e6fb;font:inherit}
.audio-guide .route-body details>summary{padding:8px 0}
.audio-guide #audio-names{padding-left:1.4rem;overflow-wrap:anywhere}
.audio-guide #audio-import-result:empty{display:none}

/* Edition-specific title cards and ending art. */
.game-title-screen[hidden],#battle-screen[hidden],.game-title-screen img[hidden],.ending-art[hidden]{display:none}
.game-title-screen{
  position:relative;min-height:clamp(19rem,48vw,34rem);display:grid;place-items:center;
  isolation:isolate;overflow:hidden;border:1px solid #3471b4;border-radius:1.35rem;
  background:radial-gradient(ellipse at 50% 42%,#17406b,#050f23 74%);text-align:center;
  margin:0 0 1rem;color:#f4fbff;
}
.game-title-screen img{width:100%;height:auto;max-height:34rem;object-fit:contain;grid-area:1/1;align-self:start}
.game-title-copy{grid-area:1/1;align-self:end;margin:1rem auto;background:#070f22ec;border:1px solid #4475a8;border-radius:1rem;padding:1rem 1.4rem;z-index:1}
.game-title-copy h2{margin:.25rem 0 .75rem;font-size:clamp(1.5rem,5vw,2.9rem);line-height:1.05}
.game-title-copy .game-start{font-size:1rem;min-height:2.75rem}
.ending-art{display:block;max-width:100%;max-height:22rem;object-fit:contain;margin:.6rem auto}
.audio-actions #local-audio-folder{max-width:100%}
.audio-actions{display:grid;grid-template-columns:minmax(0,1fr);justify-items:start;gap:.55rem}
.audio-actions label{margin-top:.45rem}
.audio-actions input{width:100%;box-sizing:border-box}

/* Difficulty can be changed between runs; Larger lineups use the arena width. */
.difficulty-controls{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:.35rem .6rem;margin:0 auto .75rem;max-width:21rem;text-align:left}
.difficulty-controls label{font-weight:760}
.difficulty-controls select{font:inherit;color:var(--ink);border:1px solid #6382aa;border-radius:.42rem;background:#12294a;padding:.43rem .55rem;width:100%;min-height:2.55rem}
.difficulty-controls p{grid-column:1/-1;font-size:.92rem;color:var(--muted);text-align:center}
.run-mode{margin-left:.45rem}
.arena[data-mode="hard"] .choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.arena[data-mode="hard"] .choices .choice{grid-template-columns:1.5rem minmax(2rem,32%) minmax(0,1fr);padding:.3rem;gap:.35rem;min-height:4.3rem}
.arena[data-mode="hard"] .choice-name{font-size:clamp(.81rem,1.65vw,1.1rem);overflow-wrap:anywhere}
.arena[data-mode="hard"] .enemy-pose{height:3.5rem}
.arena[data-mode="hard"] .defeated-tag{font-size:.66rem}
@media(max-width:660px){
 .arena[data-mode="hard"]{grid-template-columns:minmax(0,1fr)}
 .arena[data-mode="hard"] .hero{min-height:12.7rem}
 .arena[data-mode="hard"] .hero-art{max-height:7.15rem}
 .arena[data-mode="hard"] .hero-sprite{height:105px;width:min(100%,215px)}
 .arena[data-mode="hard"] .choices .choice{min-height:3.7rem;grid-template-columns:1.05rem minmax(1.7rem,31%) minmax(0,1fr)}
 .arena[data-mode="hard"] .enemy-pose{height:2.7rem}
 .hud .misses{white-space:nowrap}
 .hud .run-mode{display:block;text-align:right;margin:0;font-size:.66rem}
}
