/* ==========================================================
   LANZAWARE — NEON RIFT OVERDRIVE
   Demo extrema de UI/UX para minijuegos.
   ========================================================== */

:root {
  --bg: #020611;
  --panel: rgba(3, 13, 30, 0.66);
  --panel-strong: rgba(2, 9, 23, 0.9);
  --line: rgba(102, 232, 255, 0.22);
  --line-strong: rgba(102, 232, 255, 0.48);
  --text: #f5fbff;
  --muted: #9bb0c4;
  --cyan: #6cecff;
  --cyan-strong: #12cdf4;
  --violet: #9a7dff;
  --pink: #ff4fa3;
  --red: #ff496f;
  --green: #70ffbd;
  --yellow: #ffe679;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.46);
  --pointer-x: 50%;
  --pointer-y: 50%;
  --shake-x: 0px;
  --shake-y: 0px;
  --fx-opacity: 1;
  --ui-scale: 1;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overscroll-behavior: none;
  user-select: none;
  -webkit-user-select: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 10px;
  color: #001117;
  background: var(--cyan);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.app {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: #020611;
  transform: translate3d(var(--shake-x), var(--shake-y), 0);
}

.ambient-video,
.ambient-fallback,
.chromatic-layer,
.screen-noise,
.scanlines,
.vignette,
.flash-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ambient-video {
  z-index: -9;
  object-fit: cover;
  object-position: center;
  opacity: 0.38;
  filter: saturate(1.28) contrast(1.12) brightness(0.64) hue-rotate(8deg);
  transform: scale(1.045);
}

.ambient-fallback {
  z-index: -10;
  background:
    radial-gradient(circle at 18% 20%, rgba(63, 86, 255, 0.26), transparent 29%),
    radial-gradient(circle at 82% 74%, rgba(0, 220, 255, 0.18), transparent 34%),
    radial-gradient(circle at 50% 55%, rgba(255, 50, 160, 0.08), transparent 34%),
    linear-gradient(145deg, #07142b, #020611 66%);
}

.chromatic-layer {
  z-index: 9;
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 120ms ease;
}

.chromatic-layer--a {
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), transparent 0 18%, rgba(0, 225, 255, 0.15) 38%, transparent 64%);
  transform: translateX(-4px);
}

.chromatic-layer--b {
  background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), transparent 0 20%, rgba(255, 30, 140, 0.13) 40%, transparent 68%);
  transform: translateX(4px);
}

.app.is-glitching .chromatic-layer {
  opacity: calc(0.9 * var(--fx-opacity));
}

.screen-noise {
  z-index: 10;
  opacity: calc(0.13 * var(--fx-opacity));
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.72'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  animation: noiseShift 180ms steps(2) infinite;
}

.scanlines {
  z-index: 11;
  opacity: calc(0.1 * var(--fx-opacity));
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(101, 231, 255, 0.36) 4px);
  animation: scanDrift 9s linear infinite;
}

.vignette {
  z-index: 12;
  background:
    radial-gradient(circle at center, transparent 45%, rgba(0, 2, 9, 0.56) 87%, rgba(0, 0, 0, 0.9) 100%);
}

.flash-layer {
  z-index: 100;
  opacity: 0;
  background: white;
  mix-blend-mode: screen;
  transition: opacity 80ms linear;
}

.flash-layer.is-active {
  opacity: 0.55;
}

.boot-screen {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 16px;
  padding: 24px;
  color: var(--text);
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(48, 206, 255, 0.17), transparent 35%),
    #01040b;
  transition: opacity 620ms ease, visibility 620ms ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-core {
  position: relative;
  width: 120px;
  height: 120px;
}

.boot-core__ring,
.boot-core__orb {
  position: absolute;
  border-radius: 50%;
}

.boot-core__ring {
  border: 1px solid rgba(108, 236, 255, 0.34);
}

.boot-core__ring--1 {
  inset: 0;
  animation: orbit 4.8s linear infinite;
}

.boot-core__ring--2 {
  inset: 17px;
  border-color: rgba(154, 125, 255, 0.5);
  animation: orbitReverse 3.5s linear infinite;
}

.boot-core__ring--3 {
  inset: 35px;
  border-color: rgba(255, 79, 163, 0.42);
  animation: pulseRing 1.6s ease-in-out infinite;
}

.boot-core__ring::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.boot-core__orb {
  inset: 47px;
  background: white;
  box-shadow: 0 0 18px var(--cyan), 0 0 45px rgba(108, 236, 255, 0.72);
  animation: corePulse 1.1s ease-in-out infinite;
}

.boot-screen__title {
  margin: 10px 0 0;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.boot-screen__status {
  margin: 0;
  color: var(--muted);
  font: 700 10px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.13em;
}

.boot-progress {
  width: min(290px, 70vw);
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}

.boot-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green));
  box-shadow: 0 0 18px var(--cyan);
  animation: bootLoad 2.8s cubic-bezier(.2,.8,.2,1) forwards;
}

.topbar,
.footer {
  position: relative;
  z-index: 40;
  display: flex;
  width: min(1500px, calc(100% - 36px));
  margin-inline: auto;
  align-items: center;
}

.topbar {
  height: 76px;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 0 15px rgba(108, 236, 255, 0.48));
}

.brand > span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 13px;
  letter-spacing: 0.15em;
}

.brand small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.2em;
}

.signal-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(224, 244, 255, 0.67);
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.16em;
}

.signal-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 15px var(--green);
  animation: statusPulse 1.2s ease-in-out infinite;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(3, 12, 28, 0.58);
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, opacity 180ms ease;
}

.icon-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(10, 38, 56, 0.7);
}

.icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-off {
  display: none;
}

#soundButton[aria-pressed="false"] .sound-on {
  display: none;
}

#soundButton[aria-pressed="false"] .sound-off {
  display: block;
}

.stage {
  position: relative;
  z-index: 5;
  width: min(1500px, calc(100% - 36px));
  height: calc(100vh - 126px);
  height: calc(100dvh - 126px);
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(105, 232, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(10, 58, 83, 0.12), transparent 48%),
    rgba(1, 6, 17, 0.52);
  box-shadow: var(--shadow), inset 0 0 100px rgba(15, 103, 136, 0.06);
  backdrop-filter: blur(5px);
  touch-action: none;
}

#gameCanvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
}

.arena-frame {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.36);
}

.corner {
  position: absolute;
  width: 64px;
  height: 64px;
  opacity: .7;
}

.corner--tl {
  top: 11px;
  left: 11px;
  border-top: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
}

.corner--tr {
  top: 11px;
  right: 11px;
  border-top: 1px solid var(--cyan);
  border-right: 1px solid var(--cyan);
}

.corner--bl {
  bottom: 11px;
  left: 11px;
  border-bottom: 1px solid var(--cyan);
  border-left: 1px solid var(--cyan);
}

.corner--br {
  right: 11px;
  bottom: 11px;
  border-right: 1px solid var(--cyan);
  border-bottom: 1px solid var(--cyan);
}

.hud {
  position: absolute;
  z-index: 22;
  pointer-events: none;
}

.hud--top {
  top: 14px;
  left: 50%;
  display: grid;
  grid-template-columns: 150px 142px 150px;
  gap: 10px;
  transform: translateX(-50%);
}

.hud-card {
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(105, 232, 255, 0.16);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(5, 19, 39, 0.78), rgba(2, 8, 21, 0.58));
  box-shadow: 0 15px 42px rgba(0, 0, 0, .2);
  backdrop-filter: blur(15px);
}

.hud-label {
  display: block;
  color: rgba(167, 202, 217, .62);
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .16em;
}

.hud-card--score,
.hud-card--timer {
  display: grid;
  align-content: center;
  gap: 6px;
}

.hud-card--score strong,
.hud-card--timer strong {
  color: var(--text);
  font: 900 22px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
}

.hud-card--score small,
.hud-card--timer small {
  color: var(--cyan);
  font: 750 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
}

.hud-card--timer {
  text-align: right;
}

.hud-card--charge {
  position: relative;
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 0;
  margin-top: -6px;
  border-radius: 50%;
  background: rgba(2, 10, 24, 0.76);
}

.charge-ring {
  width: 112px;
  height: 112px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 9px rgba(108,236,255,.26));
}

.charge-ring__track,
.charge-ring__progress {
  fill: none;
  stroke-width: 6;
}

.charge-ring__track {
  stroke: rgba(255,255,255,.08);
}

.charge-ring__progress {
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-dasharray: 301.59;
  stroke-dashoffset: 301.59;
  transition: stroke-dashoffset 260ms ease, stroke 220ms ease;
}

.charge-ring__value {
  position: absolute;
  display: grid;
  place-items: center;
}

.charge-ring__value strong {
  font: 900 20px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.charge-ring__value span {
  margin-top: 5px;
  color: var(--muted);
  font: 800 7px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .15em;
}

.side-hud {
  position: absolute;
  z-index: 21;
  top: 118px;
  display: grid;
  width: 248px;
  gap: 10px;
  pointer-events: none;
}

.side-hud--left {
  left: 14px;
}

.side-hud--right {
  right: 14px;
}

.mission-card,
.lives-card,
.radar-card,
.telemetry-card {
  border: 1px solid rgba(105, 232, 255, .15);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(5, 19, 39, .73), rgba(2, 8, 21, .56));
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  backdrop-filter: blur(14px);
}

.mission-card {
  padding: 16px;
}

.mission-card strong {
  display: block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: .08em;
}

.mission-card p {
  margin: 9px 0 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.mission-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.07);
}

.mission-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan), var(--green));
  box-shadow: 0 0 13px var(--cyan);
  transition: width 260ms ease;
}

.lives-card {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.lives {
  display: flex;
  gap: 8px;
}

.lives span {
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
  border: 1px solid var(--cyan);
  background: rgba(108,236,255,.2);
  box-shadow: 0 0 12px rgba(108,236,255,.42);
  transition: opacity 200ms ease, transform 200ms ease, background 200ms ease;
}

.lives span.is-lost {
  opacity: .15;
  transform: rotate(45deg) scale(.72);
  background: transparent;
  box-shadow: none;
}

.radar-card {
  padding: 14px;
}

.radar-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(181, 214, 226, .68);
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .13em;
}

.radar-card__head b {
  color: var(--green);
}

.radar-svg {
  display: block;
  width: min(100%, 190px);
  margin: 9px auto 0;
  overflow: visible;
  filter: drop-shadow(0 0 9px rgba(108,236,255,.12));
}

.radar-grid {
  fill: rgba(4,19,34,.42);
  stroke: rgba(108,236,255,.18);
  stroke-width: 1;
}

.radar-axis {
  fill: none;
  stroke: rgba(108,236,255,.14);
  stroke-width: 1;
}

.radar-sweep {
  fill: url("#none");
  fill: rgba(108,236,255,.1);
  transform-origin: 120px 120px;
  animation: radarSpin 3.3s linear infinite;
}

.radar-player {
  fill: white;
  stroke: var(--cyan);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.radar-blip--shard {
  fill: var(--cyan);
  filter: drop-shadow(0 0 4px var(--cyan));
}

.radar-blip--hazard {
  fill: var(--red);
  filter: drop-shadow(0 0 5px var(--red));
}

.telemetry-card {
  padding: 14px;
}

.sparkline {
  width: 100%;
  height: 62px;
  margin-top: 8px;
  overflow: visible;
}

.sparkline__area {
  fill: rgba(108,236,255,.08);
}

.sparkline__line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  filter: drop-shadow(0 0 5px rgba(108,236,255,.72));
}

.telemetry-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(172,204,218,.62);
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .11em;
}

.telemetry-row b {
  color: var(--text);
}

.combo-display {
  position: absolute;
  z-index: 24;
  top: 49%;
  left: 50%;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.68) rotate(-5deg);
  transition: opacity 180ms ease, transform 240ms cubic-bezier(.2,1.3,.3,1);
}

.combo-display.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) rotate(0);
}

.combo-display span {
  color: rgba(218, 245, 255, .72);
  font: 900 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .22em;
}

.combo-display strong {
  color: transparent;
  background: linear-gradient(90deg, white, var(--cyan), var(--violet), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(54px, 8vw, 120px);
  line-height: .9;
  letter-spacing: -.08em;
  text-shadow: 0 0 35px rgba(108,236,255,.2);
}

.pulse-status {
  position: absolute;
  z-index: 24;
  right: 17px;
  bottom: 17px;
  display: grid;
  grid-template-columns: auto 100px auto;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(105,232,255,.14);
  border-radius: 999px;
  color: rgba(203,230,241,.7);
  background: rgba(2,10,24,.68);
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.pulse-status > div {
  width: 100px;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}

.pulse-status i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 10px var(--cyan);
  transform-origin: left;
}

.pulse-status b {
  min-width: 44px;
  color: var(--green);
}

.screen {
  position: absolute;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 50px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(18, 118, 151, .16), transparent 40%),
    rgba(1, 5, 14, .64);
  backdrop-filter: blur(9px);
  transition: opacity 360ms ease, visibility 360ms ease;
}

.screen.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.screen--menu {
  grid-template-columns: minmax(270px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(24px, 5vw, 74px);
  padding:
    clamp(18px, 3.2vh, 34px)
    clamp(24px, 6vw, 100px);
  background:
    linear-gradient(90deg, rgba(1,6,16,.78), rgba(1,7,18,.34) 50%, rgba(1,6,15,.58)),
    radial-gradient(circle at 28% 48%, rgba(25,180,225,.11), transparent 35%);
}

.menu-visual {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
}

.menu-visual .mode-selector {
  justify-content: center;
  margin: 0 0 clamp(10px, 2vh, 18px);
}

.menu-orbit {
  position: relative;
  width: min(28vw, 360px, 43vh);
  aspect-ratio: 1;
  justify-self: center;
}

.menu-orbit__ring,
.menu-orbit__planet {
  position: absolute;
}

.menu-orbit__ring {
  z-index: 3;
  border-radius: 50%;
}

.menu-orbit::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,.2), rgba(108,236,255,.12) 22%, rgba(154,125,255,.08) 47%, transparent 72%);
  filter: blur(18px);
  animation: pulseRing 2.8s ease-in-out infinite;
}

.menu-orbit__ring {
  border: 1px solid rgba(108,236,255,.28);
  box-shadow: inset 0 0 35px rgba(108,236,255,.05);
}

.menu-orbit__ring::before,
.menu-orbit__ring::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.menu-orbit__ring::before {
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  box-shadow: 0 0 20px var(--cyan);
}

.menu-orbit__ring::after {
  right: 8%;
  bottom: 20%;
  width: 6px;
  height: 6px;
  background: var(--pink);
  box-shadow: 0 0 15px var(--pink);
}

.menu-orbit__ring--1 {
  inset: 0;
  animation: orbit 9s linear infinite;
}

.menu-orbit__ring--2 {
  inset: 15%;
  border-color: rgba(154,125,255,.42);
  animation: orbitReverse 6.5s linear infinite;
}

.menu-orbit__ring--3 {
  inset: 31%;
  border-style: dashed;
  border-color: rgba(255,79,163,.36);
  animation: orbit 4.4s linear infinite;
}

.menu-orbit__planet {
  z-index: 2;
  inset: 16%;
  width: 68%;
  height: 68%;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 0 16px rgba(255,255,255,.18))
    drop-shadow(0 0 42px rgba(108,236,255,.34))
    drop-shadow(0 0 90px rgba(154,125,255,.26));
  animation: planetFloat 5.4s ease-in-out infinite;
}

.menu-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  max-width: 720px;
}

.menu-kicker {
  margin: 0 0 clamp(6px, 1vh, 12px);
  color: var(--cyan);
  font: 850 9px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .18em;
}

.game-title {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: visible;
}

.game-title__image {
  display: block;
  width: min(100%, 720px);
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  filter:
    drop-shadow(0 16px 32px rgba(0,0,0,.28))
    drop-shadow(0 0 26px rgba(255,79,163,.13))
    drop-shadow(0 0 34px rgba(108,236,255,.12));
}

.menu-lead {
  max-width: 650px;
  margin: clamp(8px, 1.7vh, 17px) 0 0;
  color: rgba(214,233,242,.74);
  font-size: clamp(13px, 1.25vw, 16px);
  line-height: 1.58;
}

.mode-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.mode-selector button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(108,236,255,.15);
  border-radius: 9px;
  color: rgba(213,236,246,.64);
  background: rgba(3,14,29,.62);
  cursor: pointer;
  font: 850 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.mode-selector button:hover {
  transform: translateY(-2px);
  border-color: rgba(108,236,255,.48);
  color: white;
}

.mode-selector button.is-selected {
  color: #021117;
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(108,236,255,.22);
}

.menu-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(12px, 2vh, 20px);
}

.primary-button,
.secondary-button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 0 19px;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.primary-button {
  border: 1px solid var(--cyan);
  color: #011117;
  background: linear-gradient(90deg, #baf8ff, var(--cyan));
  box-shadow: 0 18px 46px rgba(18,205,244,.2);
}

.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-130%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent);
  transition: transform 560ms ease;
}

.primary-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 55px rgba(18,205,244,.32);
}

.primary-button:hover::after {
  transform: translateX(130%) skewX(-18deg);
}

.primary-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secondary-button {
  border: 1px solid rgba(108,236,255,.24);
  color: var(--text);
  background: rgba(3,14,30,.65);
}

.secondary-button:hover {
  transform: translateY(-2px);
  border-color: rgba(108,236,255,.62);
}


.install-button {
  display: none;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(112,255,189,.4);
  border-radius: 4px;
  color: #02150e;
  background: linear-gradient(90deg, #c6ffe3, var(--green));
  box-shadow: 0 14px 35px rgba(112,255,189,.16);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}
.install-button svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.install-button:disabled { opacity:.55; cursor:default; }
.install-dialog {
  position:absolute; z-index:120; inset:0; display:grid; place-items:center; padding:20px; color:var(--text);
  background:rgba(1,5,14,.8); opacity:0; visibility:hidden; pointer-events:none; backdrop-filter:blur(12px);
  transition:opacity 220ms ease, visibility 220ms ease;
}
.install-dialog.is-active { opacity:1; visibility:visible; pointer-events:auto; }
.install-dialog__card h2 { font-size:clamp(32px,7vw,58px); }
.install-dialog__card p { max-width:470px; margin-inline:auto; }

.instructions-panel {
  display: grid;
  grid-template-rows: 0fr;
  margin-top: 0;
  opacity: 0;
  transition: grid-template-rows 420ms cubic-bezier(.2,.8,.2,1), opacity 260ms ease, margin-top 420ms ease;
}

.instructions-panel > * {
  overflow: hidden;
}

.instructions-panel.is-open {
  grid-template-rows: 1fr;
  margin-top: 22px;
  opacity: 1;
}

.instructions-panel {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.instructions-panel div {
  min-height: 115px;
  padding: 15px;
  border: 1px solid rgba(108,236,255,.14);
  border-radius: 12px;
  background: rgba(3,14,30,.58);
}

.instructions-panel strong {
  color: var(--cyan);
  font-size: 9px;
  letter-spacing: .13em;
}

.instructions-panel p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.modal-card {
  width: min(580px, 100%);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(108,236,255,.22);
  border-radius: 24px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(7,24,48,.91), rgba(2,8,22,.92));
  box-shadow: 0 35px 110px rgba(0,0,0,.56), 0 0 80px rgba(108,236,255,.08);
  backdrop-filter: blur(23px);
}

.modal-code {
  color: var(--cyan);
  font: 850 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .2em;
}

.modal-card h2 {
  margin: 18px 0 13px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: .92;
  letter-spacing: -.06em;
}

.modal-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.modal-card .modal-actions {
  justify-content: center;
}

.result-burst {
  position: absolute;
  width: min(76vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(108,236,255,.16) 0 2deg, transparent 2deg 9deg);
  mask: radial-gradient(circle, transparent 0 28%, black 30% 100%);
  animation: orbit 13s linear infinite;
}

.modal-card--result {
  position: relative;
  z-index: 2;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
}

.result-grid div {
  padding: 16px 10px;
  border: 1px solid rgba(108,236,255,.14);
  border-radius: 12px;
  background: rgba(2,10,24,.56);
}

.result-grid span {
  display: block;
  color: var(--muted);
  font: 800 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .13em;
}

.result-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font: 900 20px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.mobile-controls {
  position: absolute;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  left: 24px;
  display: none;
  align-items: end;
  justify-content: space-between;
  pointer-events: none;
}

.joystick,
.pulse-button {
  pointer-events: auto;
  touch-action: none;
}

.joystick {
  position: relative;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(108,236,255,.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(9,40,59,.44), rgba(2,10,24,.66));
  box-shadow: inset 0 0 30px rgba(108,236,255,.08), 0 18px 50px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
}

.joystick__rings {
  position: absolute;
  inset: 22px;
  border: 1px dashed rgba(108,236,255,.22);
  border-radius: 50%;
}

.joystick i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(190,249,255,.72);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, white, var(--cyan) 16%, #234a75 72%);
  box-shadow: 0 0 22px rgba(108,236,255,.44);
}

.pulse-button {
  position: relative;
  display: grid;
  width: 106px;
  height: 106px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(108,236,255,.46);
  border-radius: 50%;
  color: white;
  background:
    radial-gradient(circle, rgba(108,236,255,.22), rgba(8,22,45,.72) 65%);
  box-shadow: 0 0 30px rgba(108,236,255,.14), inset 0 0 30px rgba(108,236,255,.1);
  cursor: pointer;
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  backdrop-filter: blur(12px);
}

.pulse-button i {
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(108,236,255,.38);
  border-radius: 50%;
  animation: orbit 6s linear infinite;
}

.pulse-button.is-ready {
  color: #021117;
  background: radial-gradient(circle, white, var(--cyan) 44%, rgba(19,85,105,.88));
  box-shadow: 0 0 34px rgba(108,236,255,.52);
}

.pulse-button:active {
  transform: scale(.94);
}

.announcement {
  position: absolute;
  z-index: 55;
  top: 20%;
  left: 50%;
  max-width: min(90%, 700px);
  padding: 9px 16px;
  transform: translate(-50%, -18px);
  border: 1px solid rgba(108,236,255,.22);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(2,10,24,.76);
  opacity: 0;
  font: 900 10px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .16em;
  text-align: center;
  pointer-events: none;
  backdrop-filter: blur(12px);
  transition: opacity 220ms ease, transform 260ms ease;
}

.announcement.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.turbo-status {
  position: absolute;
  z-index: 25;
  left: 17px;
  bottom: 17px;
  display: grid;
  grid-template-columns: auto 112px auto;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(255,157,84,.3);
  border-radius: 999px;
  color: rgba(255,235,218,.82);
  background: rgba(25,8,4,.75);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  font: 850 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  pointer-events: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(255,137,58,.12);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.turbo-status.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.turbo-status > span,
.turbo-status > b {
  color: #ffb16e;
}

.turbo-status > div {
  width: 112px;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.08);
}

.turbo-status i {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, #ff6c37, #ffe36c, #ffffff);
  box-shadow: 0 0 12px rgba(255,164,71,.78);
}

body.intensity-insane .turbo-status.is-active {
  animation: turboStatusPulse .72s ease-in-out infinite alternate;
}

@keyframes turboStatusPulse {
  from {
    box-shadow: 0 0 18px rgba(255,137,58,.12);
  }
  to {
    box-shadow: 0 0 38px rgba(255,137,58,.35);
  }
}

.level-transition {
  position: absolute;
  z-index: 90;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 11px;
  padding: 24px;
  overflow: hidden;
  color: var(--text);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(108,236,255,.19), transparent 34%),
    rgba(1,5,15,.5);
  backdrop-filter: blur(5px);
  transition: opacity 260ms ease, visibility 260ms ease;
}

.level-transition.is-active {
  opacity: 1;
  visibility: visible;
}

.level-transition__energy {
  position: absolute;
  width: min(78vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(108,236,255,.22) 0 2deg,
      transparent 2deg 8deg,
      rgba(154,125,255,.16) 8deg 10deg,
      transparent 10deg 17deg
    );
  mask: radial-gradient(circle, transparent 0 23%, black 25% 100%);
  filter: drop-shadow(0 0 30px rgba(108,236,255,.18));
  animation: orbit 7s linear infinite;
}

.level-transition span,
.level-transition strong,
.level-transition small {
  position: relative;
  z-index: 2;
}

.level-transition span {
  color: var(--cyan);
  font: 900 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .24em;
}

.level-transition strong {
  color: transparent;
  background: linear-gradient(90deg, white, var(--cyan), var(--violet), var(--pink));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(46px, 9vw, 120px);
  line-height: .88;
  letter-spacing: -.07em;
  text-shadow: 0 0 40px rgba(108,236,255,.2);
}

.level-transition small {
  padding: 8px 13px;
  border: 1px solid rgba(108,236,255,.28);
  border-radius: 999px;
  color: var(--green);
  background: rgba(2,10,24,.68);
  font: 850 9px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .16em;
}

.footer {
  height: 50px;
  gap: 14px;
  color: rgba(178,208,220,.48);
  font: 750 8px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em;
}

.footer i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(108,236,255,.4), transparent);
}


/* Perfil de rendimiento automático para móviles */
body.mobile-performance .screen-noise,
body.mobile-performance .scanlines,
body.mobile-performance .chromatic-layer { display:none; }
body.mobile-performance .ambient-video { opacity:.4; filter:none; transform:scale(1.02) translateZ(0); }
body.mobile-performance.intensity-insane .ambient-video { opacity:.76; filter:none; transform:scale(1.01) translateZ(0); }
body.mobile-performance .stage, body.mobile-performance .hud-card, body.mobile-performance .mission-card,
body.mobile-performance .lives-card, body.mobile-performance .radar-card, body.mobile-performance .telemetry-card,
body.mobile-performance .pulse-status, body.mobile-performance .turbo-status, body.mobile-performance .icon-button,
body.mobile-performance .modal-card, body.mobile-performance .install-dialog { -webkit-backdrop-filter:none; backdrop-filter:none; }
body.mobile-performance .vignette { background:radial-gradient(circle at center,transparent 59%,rgba(0,2,9,.26) 92%,rgba(0,0,0,.55) 100%); }
body.mobile-performance.mobile-lite .ambient-video { opacity:.33; }
body.mobile-performance.mobile-lite.intensity-insane .ambient-video { opacity:.66; }

body.intensity-balanced {
  --fx-opacity: .52;
}

body.intensity-insane {
  --fx-opacity: 1.45;
}

body.intensity-insane .stage {
  box-shadow:
    0 26px 90px rgba(0,0,0,.46),
    inset 0 0 100px rgba(15,103,136,.09),
    0 0 55px rgba(108,236,255,.08);
}

body.intensity-insane .ambient-video {
  opacity: .92;
  filter: none;
  transform: scale(1.015);
}

body.intensity-insane .stage {
  background:
    radial-gradient(circle at 50% 50%, rgba(10,58,83,.05), transparent 52%),
    rgba(1,6,17,.12);
  backdrop-filter: none;
}

body.intensity-insane .screen--menu {
  background:
    linear-gradient(90deg, rgba(1,6,16,.46), rgba(1,7,18,.12) 50%, rgba(1,6,15,.28)),
    radial-gradient(circle at 28% 48%, rgba(25,180,225,.06), transparent 38%);
  backdrop-filter: blur(2px);
}

body.intensity-insane .vignette {
  background:
    radial-gradient(circle at center, transparent 62%, rgba(0,2,9,.25) 91%, rgba(0,0,0,.48) 100%);
}

body.intensity-insane .screen-noise {
  opacity: .065;
}

body.intensity-insane .scanlines {
  opacity: .075;
}

body.intensity-insane .charge-ring,
body.intensity-insane .radar-svg {
  filter: drop-shadow(0 0 13px rgba(108,236,255,.44));
}

@keyframes bootLoad {
  to { width: 100%; }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes orbitReverse {
  to { transform: rotate(-360deg); }
}

@keyframes pulseRing {
  0%,100% { transform: scale(.86); opacity: .35; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes corePulse {
  0%,100% { transform: scale(.78); opacity: .72; }
  50% { transform: scale(1.16); opacity: 1; }
}

@keyframes menuCore {
  0%,100% { transform: scale(.9); filter: hue-rotate(0deg); }
  50% { transform: scale(1.1); filter: hue-rotate(25deg); }
}

@keyframes planetFloat {
  0%, 100% {
    transform: translateY(5px) scale(.98) rotate(-1deg);
  }
  50% {
    transform: translateY(-9px) scale(1.025) rotate(1deg);
  }
}

@keyframes statusPulse {
  0%,100% { opacity: .45; transform: scale(.72); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes radarSpin {
  to { transform: rotate(360deg); }
}

@keyframes noiseShift {
  0% { transform: translate(0,0); }
  25% { transform: translate(-1%,1%); }
  50% { transform: translate(1%,-1%); }
  75% { transform: translate(.5%,1%); }
  100% { transform: translate(0,0); }
}

@keyframes scanDrift {
  to { transform: translateY(18px); }
}

@media (max-width: 1120px) {
  .side-hud {
    width: 210px;
  }

  .radar-svg {
    width: 155px;
  }

  .screen--menu {
    grid-template-columns: minmax(235px, .72fr) minmax(0, 1.28fr);
    gap: clamp(20px, 4vw, 48px);
    padding-inline: clamp(20px, 4vw, 58px);
  }

  .menu-orbit {
    width: min(31vw, 320px, 40vh);
  }

  .game-title__image {
    width: min(100%, 650px);
    height: auto;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .signal-status {
    display: none;
  }

  .screen--menu {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 8px;
    overflow-y: auto;
    padding: 18px 22px 22px;
  }

  .menu-visual {
    order: 1;
  }

  .menu-copy {
    order: 2;
    justify-items: center;
    max-width: 760px;
    margin-inline: auto;
    text-align: center;
  }

  .menu-orbit {
    display: none;
  }

  .menu-visual .mode-selector {
    margin: 0 0 6px;
  }

  .game-title__image {
    width: min(100%, 590px);
    height: auto;
    max-height: none;
    object-position: center;
  }

  .menu-lead {
    max-width: 620px;
  }

  .menu-actions {
    justify-content: center;
  }

  .side-hud {
    display: none;
  }

  .hud--top {
    grid-template-columns: 126px 112px 126px;
  }

  .hud-card--charge {
    min-height: 94px;
  }

  .charge-ring {
    width: 92px;
    height: 92px;
  }

  .pulse-status {
    right: 50%;
    bottom: 14px;
    transform: translateX(50%);
  }

  .instructions-panel {
    grid-template-columns: 1fr;
    width: min(100%, 620px);
  }
}

@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  .topbar,
  .stage,
  .footer {
    width: calc(100% - 20px);
  }

  .topbar {
    height: 64px;
  }

  .brand small {
    display: none;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 11px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
  }

  #fullscreenButton {
    display: none;
  }

  .stage {
    height: calc(100dvh - 104px);
    min-height: 470px;
    border-radius: 18px;
  }

  .footer {
    height: 40px;
  }

  .footer span:first-child,
  .footer i {
    display: none;
  }

  .footer {
    justify-content: center;
  }

  .hud--top {
    top: 8px;
    grid-template-columns: 1fr 86px 1fr;
    width: calc(100% - 16px);
    gap: 6px;
  }

  .hud-card {
    min-height: 58px;
    padding: 9px 10px;
    border-radius: 10px;
  }

  .hud-card--score strong,
  .hud-card--timer strong {
    font-size: 16px;
  }

  .hud-card--score small,
  .hud-card--timer small {
    font-size: 7px;
  }

  .hud-card--charge {
    min-height: 76px;
    margin-top: -3px;
  }

  .charge-ring {
    width: 75px;
    height: 75px;
  }

  .charge-ring__value strong {
    font-size: 15px;
  }

  .combo-display {
    top: 42%;
  }

  .pulse-status {
    display: none;
  }

  .turbo-status {
    left: 50%;
    bottom: 132px;
    grid-template-columns: auto 82px auto;
    transform: translate(-50%, 8px);
  }

  .turbo-status.is-active {
    transform: translate(-50%, 0);
  }

  .turbo-status > div {
    width: 82px;
  }

  .mobile-controls {
    display: flex;
  }

  .screen--menu {
    align-content: start;
    justify-content: center;
    gap: 4px;
    padding: max(8px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
  }

  .menu-kicker {
    margin-bottom: 3px;
    font-size: 7px;
    letter-spacing: .13em;
  }

  .game-title__image {
    width: min(100%, 470px);
    height: auto;
    max-height: none;
  }

  .menu-lead {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45;
  }

  .menu-visual .mode-selector {
    width: min(100%, 500px);
    margin-bottom: 2px;
  }

  .mode-selector {
    flex-wrap: nowrap;
    width: 100%;
  }

  .mode-selector button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding-inline: 5px;
    font-size: 7px;
    letter-spacing: .07em;
  }

  .menu-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    width: min(100%, 500px);
    margin-top: 9px;
  }

  .install-button {
    display: inline-flex;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 44px;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    font-size: 9px;
    letter-spacing: .08em;
  }

  .primary-button svg {
    width: 17px;
    height: 17px;
  }

  .instructions-panel div {
    min-height: auto;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    max-height: 88dvh;
    overflow-y: auto;
  }

  .announcement {
    top: 18%;
    font-size: 8px;
  }

  .hud-card, .mission-card, .lives-card, .radar-card, .telemetry-card, .joystick, .pulse-button { box-shadow:none; }
}

@media (max-height: 690px) and (min-width: 901px) {
  .screen--menu {
    padding-block: 12px;
  }

  .menu-orbit {
    width: min(26vw, 300px, 38vh);
  }

  .game-title__image {
    width: min(100%, 590px);
    height: auto;
    max-height: none;
  }

  .menu-lead {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.45;
  }

  .menu-actions {
    margin-top: 10px;
  }

  .primary-button,
  .secondary-button {
    min-height: 43px;
  }
}

@media (max-height: 620px) and (max-width: 900px) {
  .screen--menu {
    align-content: start;
    padding-top: 7px;
  }

  .menu-kicker {
    display: none;
  }

  .game-title__image {
    width: min(100%, 405px);
    height: auto;
    max-height: none;
  }

  .menu-lead {
    font-size: 11px;
    line-height: 1.35;
  }

  .mode-selector button {
    min-height: 34px;
  }

  .menu-actions {
    margin-top: 6px;
  }

  .primary-button,
  .secondary-button {
    min-height: 40px;
  }
}

@media (max-width: 390px) {
  .brand span {
    display: none;
  }

  .joystick {
    width: 108px;
    height: 108px;
  }

  .pulse-button {
    width: 94px;
    height: 94px;
  }

  .mobile-controls {
    right: 15px;
    bottom: 15px;
    left: 15px;
  }

  .hud-card--score small {
    display: none;
  }
}

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

  .screen-noise,
  .scanlines,
  .chromatic-layer {
    display: none;
  }
}
