/* Self-hosted latin subsets. Keeping the fonts in the repo means the game has
   no third-party runtime dependency and renders identically offline. */
@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/chakra-petch-500.woff2") format("woff2");
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/chakra-petch-600.woff2") format("woff2");
}

@font-face {
  font-family: "Chakra Petch";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/chakra-petch-700.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-mono-400.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/dm-mono-500.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: #100d1b;
  --paper: #fff1c7;
  --orange: #ff5d3d;
  --orange-soft: #ffc15a;
  --blue: #35e3c1;
  --blue-soft: #a5ffe8;
  --line: rgba(255, 241, 199, 0.3);
  font-family: "DM Mono", monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  min-width: 760px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--paper);
  background-color: #0b0813;
  background-image:
    linear-gradient(#241734 1px, transparent 1px),
    linear-gradient(90deg, #241734 1px, transparent 1px);
  background-size: 32px 32px;
}

button, kbd { font: inherit; }

.game-shell {
  width: min(1540px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 16px 0 12px;
}

.masthead, footer {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: #8ba2bc;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.masthead { border-bottom: 3px solid #30213f; }

.masthead p { margin: 0; }
.masthead .edition { text-align: right; }

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font: 600 16px/1 "Chakra Petch", sans-serif;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark b { color: var(--blue); }
.wordmark-mark {
  width: 30px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--blue);
  color: var(--blue);
  font-size: 11px;
  clip-path: polygon(16% 0, 84% 0, 100% 25%, 100% 75%, 84% 100%, 16% 100%, 0 75%, 0 25%);
}

.live-dot {
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 6px;
  border-radius: 50%;
  background: #78ffb0;
  box-shadow: 0 0 8px #78ffb0;
  animation: pulse 1.5s infinite;
}

.arena {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 210px);
  min-height: 460px;
  margin: 4px auto 0;
  overflow: hidden;
  isolation: isolate;
  border: 4px solid var(--paper);
  border-radius: 0;
  background: #07142d;
  image-rendering: pixelated;
  box-shadow: 8px 8px 0 #000, 12px 12px 0 #352045;
  contain: layout paint style;
}

.arena::before, .arena::after {
  content: "";
  position: absolute;
  z-index: 20;
  width: 28px; height: 28px;
  border: solid rgba(84, 215, 255, .75);
  pointer-events: none;
}
.arena::before { inset: 12px auto auto 12px; border-width: 1px 0 0 1px; }
.arena::after { inset: auto 12px 12px auto; border-width: 0 1px 1px 0; }

.space-backdrop {
  position: absolute; inset: -5%; z-index: 0;
  background: url("assets/cosmic-arena.webp") center / cover no-repeat;
  pointer-events: none;
  will-change: transform;
  animation: backdrop-parallax 28s ease-in-out infinite alternate;
}

.star-parallax {
  position: absolute; inset: -8%; z-index: 0;
  opacity: .42;
  background-image:
    radial-gradient(circle, #d9f7ff 0 1px, transparent 1.5px),
    radial-gradient(circle, #77dfff 0 1px, transparent 1.5px);
  background-position: 0 0, 24px 38px;
  background-size: 83px 79px, 127px 113px;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform, background-position;
  animation: starfield-parallax 18s linear infinite alternate;
}

.arena-vignette {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(4, 9, 28, .28), transparent 22%, transparent 78%, rgba(4, 9, 28, .28));
  pointer-events: none;
}

.scanlines {
  position: absolute; inset: 0; z-index: 18;
  opacity: .045;
  background: repeating-linear-gradient(0deg, transparent 0 5px, #b3ebff 6px);
  pointer-events: none;
}

/* Announced to screen readers only. The HUD itself cannot be a live region:
   it contains the countdown, which would be read aloud every second. */
.sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.hud {
  position: absolute;
  inset: 0 0 auto;
  z-index: 15;
  height: 150px;
  display: grid;
  grid-template-columns: 1fr 190px 1fr;
  align-items: start;
  padding: 18px 32px;
  background: linear-gradient(#100d1be8 0 64%, transparent 100%);
}

.pilot-hud {
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px 10px;
  background: #100d1be8;
  border: 3px solid var(--orange);
  box-shadow: 5px 5px 0 #000;
}
.pilot-hud--blue { align-items: flex-end; }
.pilot-hud--blue { border-color: var(--blue); }
.pilot-meta { display: flex; align-items: baseline; gap: 13px; }
.pilot-hud--blue .pilot-meta { flex-direction: row-reverse; }
.pilot-meta span { color: #8ba2bc; font-size: 9px; letter-spacing: .14em; }
.pilot-meta b { font: 600 clamp(15px, 1.5vw, 22px)/1 "Chakra Petch", sans-serif; letter-spacing: .12em; }
.pilot-hud--orange .pilot-meta b { color: var(--orange-soft); }
.pilot-hud--blue .pilot-meta b { color: var(--blue-soft); }

.health-track { width: min(270px, 28vw); display: flex; gap: 5px; }
.pilot-hud--blue .health-track { flex-direction: row-reverse; }
.health-track i {
  flex: 1; height: 7px;
  border: 1px solid rgba(255, 255, 255, .22);
  transform: skewX(-18deg);
  background: rgba(255, 255, 255, .05);
}
.pilot-hud--orange .health-track i.active { background: var(--orange); border-color: #ffb88d; }
.pilot-hud--blue .health-track i.active { background: var(--blue); border-color: #bceeff; }
.pilot-hud--orange .health-track i.partial { background: linear-gradient(90deg, var(--orange) 50%, rgba(255, 255, 255, .05) 50%); border-color: #ffb88d; }
.pilot-hud--blue .health-track i.partial { background: linear-gradient(90deg, var(--blue) 50%, rgba(255, 255, 255, .05) 50%); border-color: #bceeff; }

.combat-stats { display: flex; align-items: center; gap: 8px; min-height: 21px; }
.pilot-hud--blue .combat-stats { justify-content: flex-end; }
.combat-stats > span { color: #687f98; font-size: 7px; letter-spacing: .15em; }
.combat-stats > b {
  min-width: 92px; padding: 4px 7px;
  color: #9bacc0; border: 2px solid #445a73;
  font: 700 clamp(9px, .9vw, 13px)/1 "Chakra Petch", sans-serif;
  letter-spacing: .08em; text-align: center;
  background: #071127cc;
}
.pilot-hud--orange .combat-stats > b { color: var(--orange-soft); }
.pilot-hud--blue .combat-stats > b { color: var(--blue-soft); }
.ammo-track { display: flex; gap: 3px; }
.ammo-track i { width: 5px; height: 12px; border: 1px solid #536a82; background: #13223a; }
.ammo-track i.active { background: #eef7ff; border-color: #fff; }
.pilot-hud--orange .ammo-track i.active { background: var(--orange); border-color: var(--orange-soft); }
.pilot-hud--blue .ammo-track i.active { background: var(--blue); border-color: var(--blue-soft); }
.ammo-track.empty { animation: empty-ammo .25s steps(2); }

.round-display {
  margin: 0 12px; padding: 5px 8px;
  text-align: center; background: #100d1b;
  border: 3px solid var(--paper); box-shadow: 5px 5px 0 #000;
}
.round-display > span { color: #6e839c; font-size: 8px; letter-spacing: .18em; }
.round-display > strong { display: block; margin-top: 3px; font: 600 14px "Chakra Petch", sans-serif; letter-spacing: .1em; }
.score { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; }
.score b { min-width: 22px; font: 700 28px "Chakra Petch", sans-serif; }
.score b:first-child { color: var(--orange); }
.score b:last-child { color: var(--blue); }
.score i { color: #536b86; font-style: normal; }
.score time { min-width: 55px; color: #edf8ff; font: 700 19px "Chakra Petch", sans-serif; letter-spacing: .04em; }
.score time.warning { color: #ff4e45; text-shadow: 0 0 12px #ff4e45; animation: pulse .55s steps(2) infinite; }

.danger-line {
  position: absolute; z-index: 2;
  left: 50%; top: 49%; bottom: 9%;
  border-left: 1px dashed rgba(130, 214, 255, .17);
}
.danger-line span {
  position: absolute; top: 50%; left: 7px;
  color: rgba(151, 207, 232, .35);
  font-size: 7px; letter-spacing: .15em; white-space: nowrap;
  transform: rotate(90deg);
  transform-origin: left top;
}

.replay-hud {
  position: absolute; z-index: 13;
  right: 22px; top: 142px;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px 10px 11px;
  color: #fff; background: #120b18e8;
  border: 3px solid #ff4e45;
  box-shadow: 4px 4px 0 #050208;
  font-family: "Chakra Petch", sans-serif;
  letter-spacing: .12em;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  pointer-events: none;
  transition: opacity .12s, transform .12s, visibility 0s .12s;
}
.replay-banner { display: grid; gap: 1px; min-width: 128px; }
.replay-banner b { color: #ff7068; font-size: 13px; }
.replay-banner span { color: #d9cbd9; font-size: 7px; }
.replay-hud.active { opacity: 1; visibility: visible; transform: translateX(0); transition-delay: 0s; }
.replay-toggle {
  position: relative; width: 31px; height: 31px;
  padding: 0; border: 2px solid #ff8c85;
  background: #29101d; cursor: pointer;
  pointer-events: auto;
}
.replay-toggle:hover { background: #431626; }
.replay-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.replay-icon, .replay-icon::before, .replay-icon::after { position: absolute; display: block; }
.replay-icon { inset: 0; }
.replay-icon::before, .replay-icon::after {
  content: ""; top: 7px; width: 4px; height: 13px; background: #fff;
}
.replay-icon::before { left: 8px; }
.replay-icon::after { right: 8px; }
.replay-toggle.paused .replay-icon::before {
  left: 10px; top: 6px; width: 0; height: 0;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  border-left: 11px solid #fff; background: transparent;
}
.replay-toggle.paused .replay-icon::after { display: none; }
.replay-progress {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; overflow: hidden; background: #4e1c2a;
}
.replay-progress i {
  display: block; width: 100%; height: 100%; background: #ff7068;
  transform: scaleX(0); transform-origin: left center;
}

.obstacle-layer, .pickup-layer, .meteor-layer { position: absolute; inset: 0; pointer-events: none; }
.obstacle-layer { z-index: 5; }
.pickup-layer { z-index: 8; }
.meteor-layer { z-index: 10; }
.platform { position: absolute; display: block; background: #372348; border: 0; box-shadow: inset 0 5px #f6c85f, inset 0 -5px #140d21, 5px 5px 0 #04030a; }
.platform::before {
  content: ""; position: absolute; inset: 5px 8px;
  background: repeating-linear-gradient(90deg, #21152e 0 12px, #6c3b68 12px 18px, #120b1d 18px 23px);
}
.platform--ground { background: #171022; box-shadow: inset 0 7px #f6c85f, inset 0 12px #7d4b55; }
.platform--ground::before { inset: 13px 0 0; background: repeating-linear-gradient(90deg, #171022 0 26px, #33203f 26px 36px, #0c0813 36px 42px); }
.platform--cover { background: #39254b; box-shadow: inset 5px 0 #a06478, inset -6px 0 #0e0817, inset 0 6px #f6c85f, 6px 0 0 #04030a; }
.platform--cover::before { inset: 13px; background: repeating-linear-gradient(0deg, #1c1229 0 12px, #6b3c65 12px 17px); }
.arena.platforms-disabled .platform--left,
.arena.platforms-disabled .platform--right,
.arena.platforms-disabled .platform--high {
  opacity: .14;
  filter: saturate(.2) brightness(1.35);
  box-shadow: inset 0 3px var(--blue), 0 0 8px #35e3c155;
  animation: platform-phase-out .24s steps(2) infinite;
}

.pickup {
  position: absolute; width: 64px; height: 42px;
  display: grid; place-items: center;
  transform: translate(-50%, -50%);
  animation:
    pickup-float .8s steps(2) infinite,
    pickup-expire var(--pickup-life, 10s) linear var(--pickup-age, 0s) 1 forwards;
}
.pickup small { position: absolute; top: calc(100% + 4px); color: currentColor; font: 700 6px "Chakra Petch", sans-serif; letter-spacing: .06em; text-shadow: 2px 2px #071127; white-space: nowrap; }
.pickup-model { position: relative; display: block; border: 3px solid #0a0711; box-shadow: 4px 4px 0 #0009; }
.pickup--ammo .pickup-model { width: 48px; height: 23px; border: 0; background: url("assets/weapons/ammo-cell.png") center / contain no-repeat; box-shadow: none; }
.pickup--magazine .pickup-model { width: 52px; height: 30px; border: 0; background: url("assets/weapons/8mag-pickup.png") center / contain no-repeat; box-shadow: none; }
.pickup--laser .pickup-model { width: 66px; height: 20px; border: 0; background: url("assets/weapons/laser-pickup.png") center / contain no-repeat; box-shadow: none; }
.pickup--missile .pickup-model { width: 54px; height: 29px; border: 0; background: url("assets/weapons/homing-pickup.png") center / contain no-repeat; box-shadow: none; }
.pickup--shield .pickup-model {
  width: 34px; height: 34px;
  border: 3px solid #aeb8c2; border-radius: 50%;
  background: radial-gradient(circle, #e8eef2 0 10%, #687582 11% 21%, #1c2530 22% 52%, #66727e 53% 58%, #171e27 59%);
  box-shadow: inset 0 0 0 3px #303b46, 3px 3px 0 #02040aaa;
  image-rendering: pixelated;
}
.pickup--shield .pickup-model::before {
  content: ""; position: absolute; inset: 5px;
  border: 2px solid #d9e1e7; border-radius: 50%;
  clip-path: polygon(0 0, 100% 0, 100% 32%, 68% 32%, 68% 100%, 32% 100%, 32% 32%, 0 32%);
}
.pickup--shield .pickup-model::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 11px; background: #dce5ea;
  clip-path: polygon(50% 0, 100% 18%, 88% 76%, 50% 100%, 12% 76%, 0 18%);
  transform: translate(-50%, -50%);
}
.pickup--gravity .pickup-model {
  width: 38px; height: 38px;
  border: 3px solid #9faab5; border-radius: 50%;
  background: radial-gradient(circle, #eef3f6 0 10%, #77838e 11% 19%, #17202a 20% 48%, #4f5d69 49% 55%, #111821 56%);
  box-shadow: inset 0 0 0 3px #293540, 3px 3px 0 #02040aaa;
  animation: gravity-pickup-spin 1.2s steps(8) infinite;
}
.pickup--gravity .pickup-model::before,
.pickup--gravity .pickup-model::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 30px; height: 11px;
  border: 2px solid #dbe3e8; border-radius: 50%;
  transform: translate(-50%, -50%) rotate(28deg);
}
.pickup--gravity .pickup-model::after { transform: translate(-50%, -50%) rotate(-28deg); }
.pickup--ammo .pickup-model, .pickup--magazine .pickup-model, .pickup--laser .pickup-model, .pickup--missile .pickup-model {
  filter: drop-shadow(3px 3px 0 #02040aaa);
  image-rendering: pixelated;
}
.pickup--ammo .pickup-model::before, .pickup--ammo .pickup-model::after,
.pickup--magazine .pickup-model::before, .pickup--magazine .pickup-model::after,
.pickup--laser .pickup-model::before, .pickup--laser .pickup-model::after,
.pickup--missile .pickup-model::before, .pickup--missile .pickup-model::after,
.pickup--ammo .pickup-model i, .pickup--magazine .pickup-model i, .pickup--laser .pickup-model i, .pickup--missile .pickup-model i { display: none; }
.pickup--health .pickup-model { width: 28px; height: 28px; border: 0; background: transparent; box-shadow: none; filter: drop-shadow(3px 3px 0 #063a1b); }
.pickup--health .pickup-model::before, .pickup--health .pickup-model::after { content: ""; position: absolute; left: 50%; top: 50%; background: #22dc66; transform: translate(-50%, -50%); }
.pickup--health .pickup-model::before { width: 26px; height: 8px; } .pickup--health .pickup-model::after { width: 8px; height: 26px; }

.meteor-warning {
  position: absolute; left: 0; top: 0; width: 52px; height: 14px;
  border: 3px solid #ff4e45;
  border-top: 0;
  transform: translate(-50%, -100%);
  box-shadow: 5px 5px 0 #2a0810, inset 0 -4px #ff4e4555;
  animation: meteor-warning .22s steps(2) infinite;
}
.meteor-warning::before {
  content: ""; position: absolute; left: 50%; bottom: 100%;
  width: 2px; height: 190px;
  background: repeating-linear-gradient(0deg, #ff4e45 0 7px, transparent 7px 14px);
  opacity: .55;
}
.meteor-warning::after {
  content: "!"; position: absolute; left: 50%; bottom: 3px;
  color: #fff; font: 700 12px "Chakra Petch", sans-serif;
  transform: translateX(-50%);
}
.meteor {
  position: absolute; left: 0; top: 0; width: 36px; height: 36px;
  border: 5px solid #35172d;
  border-radius: 45% 55% 50% 40%;
  background: repeating-linear-gradient(135deg, #ffcf62 0 7px, #ff6b2b 7px 14px, #9b3146 14px 20px);
  box-shadow: -8px -9px 0 #ff6b2b, -15px -17px 0 #ffb143, -22px -25px 0 #ff4e45;
  transform: translate(-50%, -50%) rotate(45deg);
  animation: meteor-spin .18s steps(2) infinite;
}
.arena.meteor-storm .meteor-layer::before {
  content: "⚠ METEOR STORM";
  position: absolute; top: 142px; left: 50%;
  padding: 7px 14px;
  color: #fff; background: #c52c36;
  border: 3px solid #ffb0a9;
  font: 700 11px "Chakra Petch", sans-serif; letter-spacing: .14em;
  transform: translateX(-50%);
  animation: pulse .5s steps(2) infinite;
}
.arena.low-gravity-active .meteor-layer::after {
  content: "⇧ ANTI-GRAVITY";
  position: absolute; top: 180px; left: 50%;
  padding: 7px 14px;
  color: #e9ffff; background: #115f70;
  border: 3px solid #70efff;
  font: 700 11px "Chakra Petch", sans-serif; letter-spacing: .14em;
  transform: translateX(-50%);
  animation: pulse .65s steps(2) infinite;
}

.fighter {
  position: absolute; left: 0; top: 0;
  z-index: 7;
  will-change: transform;
  contain: layout style;
  overflow: visible;
  user-select: none;
}
.fighter--orange { --weapon-main: #ff613f; --weapon-light: #ffd073; --weapon-dark: #8f2e2b; --glove-shade: #bd7f4c; }
.fighter--blue { --weapon-main: #28dccc; --weapon-light: #b7fff1; --weapon-dark: #11758a; --glove-shade: #6e9fa5; }
.gravity-aura {
  display: none; position: absolute; z-index: 4;
  left: 14%; bottom: 9%; width: 72%; height: 4px;
  background: linear-gradient(90deg, transparent 0%, var(--weapon-light) 18%, var(--weapon-light) 82%, transparent 100%);
  filter: drop-shadow(0 0 5px var(--weapon-main));
  opacity: .8;
  pointer-events: none;
}
.gravity-aura::before,
.gravity-aura::after {
  content: ""; position: absolute; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--weapon-main) 20%, var(--weapon-main) 80%, transparent 100%);
}
.gravity-aura::before {
  left: 13%; bottom: 24px; width: 74%;
  animation: gravity-lift-line .7s steps(4) infinite;
}
.gravity-aura::after {
  left: 28%; bottom: 48px; width: 44%; opacity: .62;
  animation: gravity-lift-line .7s steps(4) .2s infinite;
}
.fighter.low-gravity .gravity-aura { display: block; animation: gravity-aura-float .8s steps(4) infinite; }
.fighter.low-gravity-expiring .gravity-aura { animation: shield-expire .18s steps(2) infinite; }
.shield-bubble {
  display: none; position: absolute; z-index: 5;
  left: 4%; top: 2%; width: 92%; height: 94%;
  border: 2px solid var(--weapon-light); border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #ffffff22 0 7%, transparent 8% 58%, var(--weapon-main) 59% 62%, transparent 63%);
  box-shadow: inset 0 0 0 3px #ffffff24, 0 0 9px var(--weapon-main);
  pointer-events: none;
}
.fighter.shielded .shield-bubble { display: block; animation: shield-pulse .7s steps(2) infinite; }
.fighter.shield-expiring .shield-bubble { animation: shield-expire .18s steps(2) infinite; }
.fighter.shield-breaking .shield-bubble { display: block; animation: shield-break .3s steps(4) forwards; }
.sprite-motion { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; }
.fighter img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: contain; pointer-events: none; image-rendering: pixelated; transform: scaleX(var(--flip, 1)); transform-origin: 50% 100%; }
.fighter .crouch-sprite, .fighter .run-sprite, .fighter .death-sprite { display: none; }
.fighter.crouching .standing-sprite, .fighter.crouching .run-sprite { display: none; }
.fighter.crouching .crouch-sprite { display: block; animation: crouch-settle .1s steps(3); }
.fighter:not(.crouching) .standing-sprite { animation: stand-settle .12s steps(2); }
.fighter--orange.weapon-blaster:not(.weapon-expanded) .standing-sprite { content: url("assets/orange-astronaut.png"); }
.fighter--blue.weapon-blaster:not(.weapon-expanded) .standing-sprite { content: url("assets/blue-astronaut.png"); }
.fighter--orange.weapon-blaster:not(.weapon-expanded) .crouch-sprite { content: url("assets/orange-astronaut-crouch-v4.png"); }
.fighter--blue.weapon-blaster:not(.weapon-expanded) .crouch-sprite { content: url("assets/blue-astronaut-crouch-v4.png"); }
.fighter .run-sprite {
  position: absolute; inset: 0; z-index: 2;
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 400% 100%;
  image-rendering: pixelated;
  transform: scaleX(var(--flip, 1));
  transform-origin: 50% 100%;
}
.fighter--orange .run-sprite { background-image: url("assets/orange-astronaut-run-unarmed.png"); }
.fighter--blue .run-sprite { background-image: url("assets/blue-astronaut-run-unarmed.png"); }
.fighter--orange.weapon-blaster:not(.weapon-expanded) .run-sprite { background-image: url("assets/orange-astronaut-run-base.png"); }
.fighter--blue.weapon-blaster:not(.weapon-expanded) .run-sprite { background-image: url("assets/blue-astronaut-run-base.png"); }
.fighter.moving:not(.crouching) .standing-sprite { display: none; }
.fighter.moving:not(.crouching) .run-sprite { display: block; animation: run-cycle .44s linear infinite; }
.fighter .death-sprite {
  position: absolute; inset: 0; z-index: 4;
  background-position: 0 0; background-repeat: no-repeat; background-size: 400% 100%;
  image-rendering: pixelated;
  transform: scaleX(var(--flip, 1)); transform-origin: 50% 100%;
}
.fighter--orange .death-sprite { background-image: url("assets/orange-astronaut-death.png"); }
.fighter--blue .death-sprite { background-image: url("assets/blue-astronaut-death.png"); }
.fighter.dead .standing-sprite,
.fighter.dead .crouch-sprite,
.fighter.dead .run-sprite,
.fighter.dead .weapon-rig,
.fighter.dead .melee-arc,
.fighter.dead .thruster-flare,
.fighter.dead .gravity-aura,
.fighter.dead .shield-bubble { display: none !important; }
.fighter.dead .death-sprite { display: block; animation: death-cycle .72s linear forwards; }
.fighter.dead.death-rocket .death-sprite,
.fighter.dead.death-laser .death-sprite { display: none; }
.weapon-rig { position: absolute; inset: 0; z-index: 3; transform-origin: var(--grip-x, 66%) 50%; }
.held-weapon {
  position: absolute; z-index: 1; display: none;
  left: var(--weapon-x, 78%); top: 45%;
  width: 50px; height: 18px;
  border: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  transform: translate(-50%, -50%) scaleX(var(--facing, 1));
  transform-origin: center;
  filter: drop-shadow(2px 2px 0 #02040a);
  image-rendering: pixelated;
}
.held-weapon::before, .held-weapon::after { content: none; }
.fighter.weapon-blaster .held-weapon {
  display: block; left: var(--weapon-x); top: 37%; width: 44px; height: 19px;
}
.fighter--orange.weapon-blaster .held-weapon { background-image: url("assets/weapons/blaster-orange.png"); }
.fighter--blue.weapon-blaster .held-weapon { background-image: url("assets/weapons/blaster-blue.png"); }
.fighter.weapon-laser .held-weapon {
  display: block; left: var(--laser-x); top: 41%; width: 64px; height: 19px;
}
.fighter--orange.weapon-laser .held-weapon { background-image: url("assets/weapons/laser-orange.png"); }
.fighter--blue.weapon-laser .held-weapon { background-image: url("assets/weapons/laser-blue.png"); }
.fighter.weapon-missile .held-weapon {
  display: block; left: var(--homing-x); top: 37%; width: 58px; height: 31px;
}
.fighter--orange.weapon-missile .held-weapon { background-image: url("assets/weapons/homing-orange.png"); }
.fighter--blue.weapon-missile .held-weapon { background-image: url("assets/weapons/homing-blue.png"); }
.fighter.weapon-expanded .held-weapon {
  display: block; left: var(--magazine-x); top: 39%; width: 54px; height: 31px;
}
.fighter--orange.weapon-expanded .held-weapon { background-image: url("assets/weapons/8mag-orange.png"); }
.fighter--blue.weapon-expanded .held-weapon { background-image: url("assets/weapons/8mag-blue.png"); }
.fighter.crouching.weapon-blaster .held-weapon { top: 49.5%; }
.fighter.crouching.weapon-laser .held-weapon { top: 49.5%; }
.fighter.crouching.weapon-missile .held-weapon { top: 45.5%; }
.fighter.crouching.weapon-expanded .held-weapon { top: 47.5%; }
.weapon-hand {
  position: absolute; z-index: 2; display: block;
  left: var(--grip-x, 66%); top: 48%;
  width: 9px; height: 8px;
  border: 2px solid #17131a;
  background: #f4deba;
  box-shadow: inset 0 -3px var(--glove-shade), 2px 2px 0 #02040a;
  clip-path: polygon(0 20%, 25% 0, 100% 12%, 100% 78%, 72% 100%, 0 82%);
  transform: translate(-50%, -50%) scaleX(var(--facing, 1));
  transform-origin: center;
}
.fighter.crouching .weapon-hand { top: 56.5%; }
.fighter.weapon-blaster:not(.weapon-expanded) .held-weapon,
.fighter.weapon-blaster:not(.weapon-expanded) .weapon-hand { display: none; }
.fighter .shadow { display: none; }
.fighter.recoil .sprite-motion { animation: weapon-recoil .16s ease-out; }
.fighter.crouching.recoil .sprite-motion { animation: none; }
.fighter.hit .sprite-motion { animation: hit-flash .28s steps(2); }
.fighter.moving:not(.recoil):not(.hit):not(.dead) .sprite-motion { animation: run-body .44s steps(4) infinite; }
.fighter.airborne:not(.recoil):not(.hit):not(.dead) .sprite-motion { animation: jump-tilt .3s steps(2) infinite alternate; }
.fighter:not(.moving):not(.airborne):not(.recoil):not(.hit):not(.dead) .sprite-motion { animation: idle-bob .9s steps(2) infinite; }
.fighter.bash-windup .sprite-motion { animation: bash-windup .1s steps(2) forwards !important; }
.fighter.bash-dashing .sprite-motion { animation: bash-dash .14s steps(3) infinite !important; }
.fighter.bash-recovery .sprite-motion { animation: bash-recovery .3s ease-out forwards !important; }
.thruster-flare {
  display: none; position: absolute; z-index: 1;
  left: var(--thruster-x, 10%); top: 49%;
  width: 54px; height: 18px;
  border: 3px solid #fff3bd;
  background: linear-gradient(90deg, transparent 0 8%, #ff4e45 30%, #ffd073 58%, #fff 100%);
  clip-path: polygon(0 50%, 24% 8%, 100% 24%, 100% 76%, 24% 92%);
  transform: translate(-50%, -50%) scaleX(var(--facing));
  transform-origin: center;
  filter: drop-shadow(0 0 5px var(--weapon-main));
  pointer-events: none;
}
.fighter.bash-windup .thruster-flare { display: block; animation: thruster-windup .1s steps(3) forwards; }
.fighter.bash-dashing .thruster-flare { display: block; animation: thruster-burn .08s steps(2) infinite; }
.melee-arc {
  display: none; position: absolute; z-index: 6;
  left: 50%; top: 38%; width: 116px; height: 36px;
  border: 4px solid var(--weapon-light);
  border-left-color: transparent; border-bottom-color: transparent;
  border-radius: 50%;
  transform-origin: 0 50%; pointer-events: none;
  filter: drop-shadow(3px 3px 0 var(--weapon-dark));
}
.fighter.bash-dashing .melee-arc { display: block; animation: bash-arc .14s steps(3) infinite; }
.fighter.crouching .melee-arc { top: 49.5%; }
.fighter.charging-laser .sprite-motion { animation: laser-charge .12s steps(2) infinite !important; }
.fighter.charging-laser .held-weapon::after {
  content: ""; position: absolute; right: -19px; top: 50%;
  width: 12px; height: 12px; border: 3px solid #fff;
  background: var(--weapon-main); transform: translateY(-50%);
  box-shadow: 5px 0 0 var(--weapon-light);
}
.fighter.dead .sprite-motion { animation: none !important; }

.death-fragment {
  position: absolute; left: 0; top: 0; z-index: 18;
  display: block; overflow: hidden;
  transform-origin: center;
  filter: drop-shadow(2px 2px 0 #02040a);
  will-change: transform;
}
.death-fragment img {
  position: absolute; max-width: none;
  object-fit: contain; image-rendering: pixelated;
  transform-origin: center;
  pointer-events: none; user-select: none;
}
.death-fragment--rocket:not(.death-fragment--torso)::after {
  content: ""; position: absolute; inset: 42% 2px auto;
  height: 4px; background: #fff3bd;
  box-shadow: 0 0 5px #ff613f;
}
.death-fragment--laser::after {
  content: ""; position: absolute; left: 50%; width: 30px;
  height: 3px; background: #eaffff;
  box-shadow: 0 0 2px #fff, 0 0 5px #28dccc;
  transform: translateX(-50%);
}
.death-fragment--upper::after { bottom: 0; }
.death-fragment--lower::after { top: 0; }

.projectile-layer, .impact-layer { position: absolute; inset: 0; z-index: 9; pointer-events: none; }
.plasma {
  position: absolute; left: 0; top: 0;
  width: 42px; height: 7px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
}
.plasma::after { content: ""; position: absolute; inset: 2px -14px; border-radius: 0; }
.plasma--one { box-shadow: -10px 0 0 #ff5d3d88; }
.plasma--one::after { background: #ff5d3d66; }
.plasma--two { box-shadow: 10px 0 0 #35e3c188; }
.plasma--two::after { background: #35e3c166; }
.plasma--laser { width: 90px; height: 5px; border-radius: 0; box-shadow: 0 4px 0 #087a9b; }
.plasma--laser::after { inset: -4px -16px; background: #41f6ff88; }
.plasma--missile {
  width: 28px; height: 10px;
  border: 3px solid #090b13; border-radius: 2px 8px 8px 2px;
  background: #d7e0df;
  box-shadow: inset 5px 0 #303746, inset -5px 0 #f5f0d8;
}
.plasma--one.plasma--missile { border-left-color: #8f2e2b; box-shadow: inset 6px 0 #ff613f, inset -5px 0 #ffd073; }
.plasma--two.plasma--missile { border-left-color: #11758a; box-shadow: inset 6px 0 #28dccc, inset -5px 0 #b7fff1; }
.plasma--missile::before {
  content: ""; position: absolute; left: 2px; top: -7px;
  width: 9px; height: 5px; background: #3d4658; border: 2px solid #090b13;
  box-shadow: 0 16px 0 -2px #3d4658, 0 16px 0 0 #090b13;
}
.plasma--missile::after {
  content: ""; position: absolute; left: -14px; top: 2px;
  width: 12px; height: 4px; background: #fff4c2;
  box-shadow: -5px 0 0 #ff9f3d, -10px 0 0 #ff4f45;
}

.laser-beam {
  position: absolute; z-index: 14; height: 14px;
  transform: translateY(-50%);
  animation: laser-beam-fire .2s steps(3) forwards;
  pointer-events: none;
}
.laser-beam::before { content: ""; position: absolute; inset: 4px 0; background: #fff; }
.laser-beam::after {
  content: ""; position: absolute; top: 50%; width: 16px; height: 16px;
  border: 3px solid #fff; background: currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.laser-beam--right::after { left: -5px; }
.laser-beam--left::after { right: -5px; }
.laser-beam--one { color: var(--orange); background: #ff613f; box-shadow: 0 3px 0 #ffd073, 0 -3px 0 #8f2e2b; }
.laser-beam--two { color: var(--blue); background: #28dccc; box-shadow: 0 3px 0 #b7fff1, 0 -3px 0 #11758a; }

.missile-explosion {
  position: absolute; z-index: 16; width: 22px; height: 22px;
  border: 4px solid #fff3bd; border-radius: 3px;
  background: #fff3bd;
  transform: translate(-50%, -50%);
  box-shadow: none;
  pointer-events: none;
  animation: missile-explosion .38s steps(4) forwards;
}
.missile-explosion::before, .missile-explosion::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 44px; height: 6px; background: #fff3bd;
  transform: translate(-50%, -50%);
}
.missile-explosion::after { transform: translate(-50%, -50%) rotate(90deg); }
.missile-explosion--one { background: #ff613f; box-shadow: 0 0 0 5px #ffad3d, 0 0 0 9px #8f2e2b; filter: drop-shadow(0 0 6px #ff613f); }
.missile-explosion--two { background: #28dccc; box-shadow: 0 0 0 5px #8cffe9, 0 0 0 9px #11758a; filter: drop-shadow(0 0 6px #28dccc); }

.impact {
  position: absolute; width: 18px; height: 18px;
  border: 3px solid white; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 25px currentColor;
  animation: impact .38s ease-out forwards;
}
.impact--one { color: var(--orange); --impact-color: var(--orange); }
.impact--two { color: var(--blue); --impact-color: var(--blue); }
.impact--meteor { color: #ff4e45; }
.impact--thruster {
  z-index: 19; width: 28px; height: 28px;
  border-width: 5px; color: #fff3bd;
  box-shadow: 0 0 0 5px var(--impact-color), 0 0 28px #fff;
  animation: thruster-impact .42s steps(4) forwards;
}

.boot-dust {
  position: absolute; z-index: 8;
  width: 5px; height: 5px;
  background: #b99c79;
  box-shadow: -7px 1px 0 #735d51, 7px -1px 0 #d6bd8d, 12px 2px 0 #745768;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: boot-dust .32s steps(4) forwards;
}
.boot-dust--one { color: var(--orange); }
.boot-dust--two { color: var(--blue); }
.boot-dust--land, .boot-dust--burst {
  width: 7px; height: 6px;
  box-shadow: -13px 1px 0 #735d51, -6px -3px 0 currentColor, 8px -2px 0 #d6bd8d, 15px 2px 0 #745768;
  animation-duration: .42s;
}

.game-message {
  position: absolute; z-index: 14;
  left: 50%; top: 54%;
  width: min(510px, 50%);
  padding: 28px 38px 25px;
  text-align: center;
  background: #171022;
  border: 4px solid var(--paper);
  box-shadow: 9px 9px 0 #000, 13px 13px 0 var(--orange);
  clip-path: none;
  transform: translate(-50%, -50%);
  transition: opacity .2s, transform .2s;
}
.game-message.hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -46%) scale(.98); }
.message-eyebrow { color: var(--blue); font-size: 9px; letter-spacing: .25em; }
.game-message h1 {
  margin: 8px 0 5px;
  font: 700 clamp(36px, 4.2vw, 70px)/.78 "Chakra Petch", sans-serif;
  letter-spacing: -.045em;
  text-shadow: 0 4px 0 #071127;
}
.game-message h1 em { color: var(--orange); font-style: normal; }
.game-message h1.countdown-number { font-size: clamp(90px, 11vw, 150px); line-height: .75; }
.game-message h1.countdown-number em { color: var(--blue); text-shadow: 6px 6px 0 #0b2947; }
.game-message p { max-width: 370px; margin: 18px auto 20px; color: #9eb0c3; font-size: 10px; line-height: 1.6; }
.game-message button {
  padding: 10px 17px 10px 20px;
  border: 1px solid #77dfff;
  color: #071127; background: var(--blue);
  font: 700 11px "Chakra Petch", sans-serif;
  letter-spacing: .14em;
  cursor: pointer;
  box-shadow: 0 0 25px #25c9ff33;
}
.game-message button:hover { background: #b5efff; transform: translateY(-1px); }
.game-message button:disabled { color: #586777; background: #182637; border-color: #40566b; cursor: not-allowed; transform: none; box-shadow: none; }
.game-message button span { margin-left: 12px; }
.game-message small { display: block; margin-top: 10px; color: #667d96; font-size: 8px; }

.status-strip {
  position: absolute; z-index: 12; inset: auto 22px 12px;
  display: flex; justify-content: space-between;
  color: rgba(170, 213, 232, .5); font-size: 7px; letter-spacing: .12em;
}

.control-deck {
  height: 104px;
  display: grid;
  grid-template-columns: 1fr 260px 1fr;
  margin-top: 10px;
  border: 4px solid var(--paper);
  background: #171022;
  box-shadow: 7px 7px 0 #000;
}
.control-card { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 14px 24px; }
.control-card--orange { border-right: 3px solid #4d304e; background: #20142c; }
.control-card--blue { border-left: 3px solid #294a4d; background: #11292a; }
.control-pilot { display: flex; align-items: center; gap: 12px; }
.control-pilot > span { font: 700 34px "Chakra Petch", sans-serif; color: #3a4a5e; }
.control-pilot div, .control-action span { display: flex; flex-direction: column; }
.control-pilot small, .control-action small { color: #71869f; font-size: 7px; letter-spacing: .14em; }
.control-pilot b, .control-action b { font: 600 14px "Chakra Petch", sans-serif; letter-spacing: .1em; }
.control-card--orange b { color: var(--orange-soft); }
.control-card--blue b { color: var(--blue-soft); }

kbd {
  min-width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border: 1px solid #50637a; border-bottom-width: 3px; border-radius: 3px;
  color: #d8e5ef; background: #132139;
  font-size: 11px; font-weight: 500;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
}
.key-cluster { width: 92px; display: grid; grid-template-columns: repeat(3, 28px); gap: 3px; }
.key-cluster .key-up { grid-column: 2; grid-row: 1; }
.key-cluster kbd:nth-child(2) { grid-column: 1; grid-row: 2; }
.key-cluster kbd:nth-child(3) { grid-column: 2; grid-row: 2; }
.key-cluster kbd:nth-child(4) { grid-column: 3; grid-row: 2; }
.arrows kbd { font-size: 15px; }
.control-action { display: flex; align-items: center; gap: 9px; }
.control-action kbd { width: 36px; height: 36px; border-color: #7c8fa5; }
.action-stack { display: grid; gap: 5px; }
.action-stack .control-action kbd { width: 31px; height: 29px; }
.control-action--melee b { color: #f2d87c; font-size: 11px; }
.mission-copy { display: grid; place-items: center; align-content: center; border-top: 5px solid #f6c85f; text-align: center; background: #0c0914; }
.mission-copy p { margin: 7px 0 2px; font: 600 13px "Chakra Petch", sans-serif; letter-spacing: .12em; }
.mission-copy small { color: #60758e; font-size: 6px; }
.mission-copy small b { color: #b5eaff; font-weight: 500; }
.crosshair { width: 18px; height: 18px; border: 1px solid var(--orange); border-radius: 50%; position: relative; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: var(--orange); }
.crosshair::before { width: 26px; height: 1px; left: -5px; top: 8px; }
.crosshair::after { width: 1px; height: 26px; left: 8px; top: -5px; }

footer { min-height: 30px; color: #4d6178; font-size: 7px; }
footer span:nth-child(2) { color: #6e829a; }
footer span:last-child { text-align: right; }
footer kbd { min-width: 18px; height: 18px; margin: 0 3px; font-size: 8px; }
.rotate-notice { display: none; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes backdrop-parallax {
  from { transform: translate3d(-1.5%, -.5%, 0) scale(1.055); }
  to { transform: translate3d(1.5%, .5%, 0) scale(1.055); }
}
@keyframes starfield-parallax {
  from { transform: translate3d(-1%, 0, 0); background-position: 0 0, 24px 38px; }
  to { transform: translate3d(1%, -.6%, 0); background-position: 90px 18px, -54px 56px; }
}
@keyframes weapon-recoil { 50% { transform: translateX(var(--recoil-x)) rotate(var(--recoil-angle)); } }
@keyframes bash-windup { to { transform: translateX(var(--melee-windup-x)) rotate(-3deg); } }
@keyframes bash-dash { 50% { transform: translateX(var(--melee-half-x)) rotate(7deg); filter: brightness(1.3); } }
@keyframes bash-recovery { from { transform: translateX(var(--melee-x)) rotate(8deg); } to { transform: translateX(0) rotate(0); } }
@keyframes thruster-windup { from { opacity: .2; width: 12px; } to { opacity: 1; width: 34px; } }
@keyframes thruster-burn { 50% { opacity: .62; width: 64px; filter: drop-shadow(0 0 9px var(--weapon-main)); } }
@keyframes bash-arc { from { opacity: .45; transform: scaleX(var(--facing)) scale(.72); } to { opacity: 1; transform: scaleX(var(--facing)) scale(1.08); } }
@keyframes thruster-impact { to { opacity: 0; width: 130px; height: 130px; border-width: 1px; transform: translate(-50%, -50%) rotate(45deg); } }
@keyframes shield-pulse { 50% { opacity: .72; transform: scale(.98); } }
@keyframes shield-expire { 50% { opacity: .25; } }
@keyframes shield-break { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.32); } }
@keyframes gravity-pickup-spin { to { transform: rotate(360deg); } }
@keyframes gravity-aura-float { 50% { opacity: .45; transform: translateY(-6px); } }
@keyframes gravity-lift-line { 50% { opacity: .25; transform: translateY(-8px) scaleX(.78); } }
@keyframes platform-phase-out { 50% { opacity: .04; } }
@keyframes laser-charge { 50% { transform: translateX(var(--recoil-x)); filter: brightness(1.35); } }
@keyframes laser-beam-fire { 0% { opacity: 0; height: 2px; } 20% { opacity: 1; height: 14px; } 72% { opacity: 1; height: 10px; } 100% { opacity: 0; height: 4px; } }
@keyframes missile-explosion { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.15) rotate(0); } 24% { opacity: 1; } 72% { opacity: .9; transform: translate(-50%, -50%) scale(1.15) rotate(22deg); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55) rotate(45deg); } }
@keyframes hit-flash { 50% { filter: brightness(3) saturate(.3) drop-shadow(6px 0 0 white); transform: translateX(8px); } }
@keyframes impact { to { opacity: 0; width: 100px; height: 100px; border-width: 1px; } }
@keyframes boot-dust {
  to { opacity: 0; transform: translate(calc(-50% + var(--dust-drift)), calc(-50% - 11px)) scale(1.5); }
}
@keyframes shake { 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
@keyframes idle-bob { 50% { opacity: .9; } }
@keyframes run-cycle {
  0%, 24.99% { background-position: 0 0; }
  25%, 49.99% { background-position: 33.333% 0; }
  50%, 74.99% { background-position: 66.667% 0; }
  75%, 100% { background-position: 100% 0; }
}
@keyframes death-cycle {
  0%, 24.99% { background-position: 0 0; }
  25%, 49.99% { background-position: 33.333% 0; }
  50%, 74.99% { background-position: 66.667% 0; }
  75%, 100% { background-position: 100% 0; }
}
@keyframes run-body { 0%, 50%, 100% { transform: translateY(0); } 25%, 75% { transform: translateY(-1px); } }
@keyframes jump-tilt { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes crouch-settle { 0% { transform: scaleX(var(--flip)) translateY(-7px); } 68% { transform: scaleX(var(--flip)) translateY(2px); } 100% { transform: scaleX(var(--flip)); } }
@keyframes stand-settle { from { transform: scaleX(var(--flip)) translateY(4px); } to { transform: scaleX(var(--flip)); } }
@keyframes pickup-float { 50% { transform: translate(-50%, calc(-50% - 6px)); } }
@keyframes pickup-expire {
  0%, 65% { opacity: 1; filter: none; }
  74% { opacity: .72; filter: saturate(.8); }
  80% { opacity: .32; }
  84% { opacity: .82; }
  89% { opacity: .2; }
  93% { opacity: .62; filter: saturate(.25); }
  97% { opacity: .12; }
  100% { opacity: 0; filter: saturate(0); }
}
@keyframes empty-ammo { 50% { filter: brightness(3); transform: translateX(4px); } }
@keyframes meteor-warning { 50% { opacity: .35; } }
@keyframes meteor-spin { 50% { transform: translate(-50%, -50%) rotate(60deg) scale(.92); } }
.arena.shake { animation: shake .16s linear; }

@media (max-width: 1050px) {
  .game-shell { width: calc(100vw - 20px); }
  .control-deck { grid-template-columns: 1fr 190px 1fr; }
  .control-card { padding-inline: 15px; gap: 12px; }
  .control-pilot > span { display: none; }
  .arena { min-height: 430px; }
}

@media (max-width: 759px) {
  body { min-width: 0; display: grid; place-items: center; }
  .game-shell { display: none; }
  .rotate-notice { display: flex; flex-direction: column; gap: 8px; padding: 30px; text-align: center; }
  .rotate-notice b { font: 600 24px "Chakra Petch", sans-serif; color: var(--blue); }
  .rotate-notice span { color: #8ba2bc; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
