.ngs-echo {
  --black: #050805;
  --ink: #0d1711;
  --panel: #101d16;
  --panel-2: #172a20;
  --olive: #667050;
  --olive-dark: #384330;
  --cream: #ffe8b5;
  --paper: #fff4d3;
  --amber: #e99c2d;
  --red: #df5032;
  --cyan: #27e2e1;
  --cyan-dark: #087b83;
  --blue: #2984e8;
  --sans: Avenir, "Avenir Next", "Segoe UI", Arial, sans-serif;
  --pixel: "Courier New", Courier, monospace;
  width: 100%;
  color: var(--cream);
  font-family: var(--sans);
}

.ngs-echo,
.ngs-echo *,
.ngs-echo *::before,
.ngs-echo *::after {
  box-sizing: border-box;
}

.ngs-echo button,
.ngs-echo summary {
  font: inherit;
}

.ngs-echo button {
  -webkit-tap-highlight-color: transparent;
}

.ngs-echo .ngs-echo__page-intro,
.ngs-echo .ngs-echo__care {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  color: #29463b;
}

.ngs-echo .ngs-echo__page-intro {
  padding: 34px 0 22px;
  text-align: center;
}

.ngs-echo .ngs-echo__page-intro h1 {
  max-width: 900px;
  margin: 0 auto;
  color: #123b2c;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
}

.ngs-echo .ngs-echo__page-intro p {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.ngs-echo .ngs-echo__care {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.5fr);
  gap: 28px;
  margin-top: 28px;
  margin-bottom: 52px;
  padding: 26px 28px;
  border: 1px solid #e4d6bd;
  border-radius: 18px;
  background: #fffdf6;
}

.ngs-echo .ngs-echo__care h2,
.ngs-echo .ngs-echo__care p {
  margin-top: 0;
}

.ngs-echo .ngs-echo__care h2 {
  margin-bottom: 8px;
  color: #123b2c;
  font-family: "Iowan Old Style", Baskerville, Georgia, serif;
}

.ngs-echo .ngs-echo__care p {
  margin-bottom: 0;
}

.ngs-echo .ngs-echo__links {
  display: grid;
  align-content: center;
  gap: 10px;
}

.ngs-echo .ngs-echo__links a {
  color: #a63e25;
  font-weight: 800;
}

.ngs-echo .preview-page {
  width: 100%;
  padding: clamp(8px, 1.4vw, 22px) clamp(6px, 1.4vw, 22px) 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, #263328 0, transparent 40%),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(39, 226, 225, 0.025) 4px 5px),
    #070b08;
}

.ngs-echo .game-console {
  width: min(1400px, 100%);
  margin: 0 auto;
}

.ngs-echo .arcade-stage {
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: clamp(4px, 0.55vw, 8px) solid #778064;
  outline: clamp(2px, 0.3vw, 4px) solid #11170f;
  outline-offset: -9px;
  background: #09100c;
  box-shadow:
    0 clamp(5px, 0.7vw, 10px) 0 #020302,
    0 20px 50px rgba(0, 0, 0, 0.65),
    inset 0 0 0 2px #aab18b;
  isolation: isolate;
}

.ngs-echo .arcade-stage::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px);
  content: "";
  pointer-events: none;
}

.ngs-echo .game-canvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  user-select: none;
}

.ngs-echo .game-canvas:focus-visible {
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 8px var(--cyan-dark);
}

.ngs-echo .game-hud {
  position: absolute;
  z-index: 5;
  inset: 9px 10px auto;
  display: grid;
  grid-template-columns: 2.8fr repeat(5, minmax(0, 1fr));
  gap: 7px;
  height: clamp(48px, 7.2cqw, 87px);
  pointer-events: none;
}

.ngs-echo .logo-panel,
.ngs-echo .hud-panel {
  min-width: 0;
  border: clamp(2px, 0.32cqw, 4px) solid #687154;
  outline: clamp(1px, 0.18cqw, 2px) solid #050805;
  background: rgba(5, 9, 6, 0.94);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.62);
  font-family: var(--pixel);
  text-transform: uppercase;
}

.ngs-echo .logo-panel {
  display: flex;
  align-items: center;
  gap: clamp(5px, 0.75cqw, 10px);
  padding: clamp(3px, 0.5cqw, 8px) clamp(7px, 0.9cqw, 13px);
}

.ngs-echo .logo-panel__leaf {
  color: #8aa36a;
  font-size: clamp(20px, 3.2cqw, 43px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 3px 3px 0 #263421;
  rotate: -22deg;
}

.ngs-echo .logo-panel p,
.ngs-echo .logo-panel span,
.ngs-echo .hud-panel span,
.ngs-echo .hud-panel strong {
  display: block;
  overflow: hidden;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ngs-echo .logo-panel p {
  color: var(--cream);
  font-size: clamp(14px, 2.3cqw, 32px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.84;
  text-shadow: 3px 3px 0 #382c16;
}

.ngs-echo .logo-panel div > span {
  margin-top: 3px;
  color: var(--amber);
  font-size: clamp(8px, 1.1cqw, 15px);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.ngs-echo .hud-panel {
  display: grid;
  align-content: center;
  padding: clamp(3px, 0.55cqw, 8px) clamp(4px, 0.65cqw, 10px);
}

.ngs-echo .hud-panel > span {
  color: #aab89a;
  font-size: clamp(6px, 0.83cqw, 12px);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ngs-echo .hud-panel strong {
  margin-top: 2px;
  color: var(--cream);
  font-size: clamp(10px, 1.58cqw, 22px);
  letter-spacing: 0.02em;
  line-height: 1;
}

.ngs-echo .hud-panel--carry strong {
  color: var(--amber);
}

.ngs-echo .hud-panel--echo strong,
.ngs-echo .hud-panel--loop strong {
  color: var(--cyan);
}

.ngs-echo .coach {
  position: absolute;
  z-index: 7;
  top: clamp(65px, 8.5cqw, 111px);
  left: 50%;
  display: flex;
  align-items: center;
  width: min(650px, 68%);
  min-height: clamp(35px, 4.3cqw, 55px);
  translate: -50% 0;
  border: clamp(2px, 0.25cqw, 3px) solid var(--cream);
  background: rgba(9, 18, 13, 0.94);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.65);
  color: var(--paper);
  font-family: var(--pixel);
  pointer-events: none;
}

.ngs-echo .coach[hidden] {
  display: none;
}

.ngs-echo .coach__step {
  align-self: stretch;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 4px clamp(7px, 1cqw, 14px);
  background: var(--amber);
  color: #1d150a;
  font-size: clamp(7px, 0.85cqw, 12px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.ngs-echo .coach p {
  margin: 0;
  padding: 6px clamp(7px, 1cqw, 15px);
  font-size: clamp(8px, 1.12cqw, 16px);
  font-weight: 700;
  line-height: 1.25;
}

.ngs-echo .toast {
  position: absolute;
  z-index: 10;
  top: 31%;
  left: 50%;
  max-width: min(520px, 76%);
  padding: 7px 13px;
  translate: -50% -8px;
  border: 3px solid #0a120d;
  background: var(--cream);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.65);
  color: #173329;
  font-family: var(--pixel);
  font-size: clamp(9px, 1.15cqw, 16px);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
}

.ngs-echo .toast.is-visible {
  translate: -50% 0;
  opacity: 1;
}

.ngs-echo .toast.is-alert {
  background: #ffe1a3;
  color: #7a2419;
}

.ngs-echo .control-panel {
  position: absolute;
  z-index: 8;
  right: 10px;
  bottom: 8px;
  left: 10px;
  display: grid;
  grid-template-columns: clamp(115px, 15cqw, 190px) minmax(180px, 1fr) clamp(250px, 30cqw, 390px);
  align-items: center;
  gap: clamp(8px, 1.2cqw, 18px);
  min-height: clamp(70px, 10cqw, 125px);
  padding: clamp(4px, 0.6cqw, 8px) clamp(5px, 0.8cqw, 11px);
  border: clamp(2px, 0.28cqw, 4px) solid #697253;
  outline: 2px solid #070b08;
  background: linear-gradient(180deg, rgba(17, 31, 23, 0.96), rgba(6, 12, 8, 0.98));
  box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.55);
}

.ngs-echo .arcade-button,
.ngs-echo .quick-button,
.ngs-echo .pixel-button {
  border: clamp(2px, 0.3cqw, 4px) solid #7b8466;
  outline: 2px solid #070a07;
  background: #17291f;
  box-shadow: 3px 3px 0 #030503;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--pixel);
  font-weight: 900;
  text-transform: uppercase;
}

.ngs-echo .arcade-button:hover:not(:disabled),
.ngs-echo .quick-button:hover,
.ngs-echo .pixel-button:hover {
  background: #223a2c;
  filter: brightness(1.12);
}

.ngs-echo .arcade-button:active:not(:disabled),
.ngs-echo .quick-button:active,
.ngs-echo .pixel-button:active {
  translate: 2px 2px;
  box-shadow: 1px 1px 0 #020302;
}

.ngs-echo .arcade-button:focus-visible,
.ngs-echo .quick-button:focus-visible,
.ngs-echo .pixel-button:focus-visible,
.ngs-echo summary:focus-visible {
  outline: 3px solid var(--paper);
  outline-offset: 3px;
}

.ngs-echo .arcade-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.6) brightness(0.63);
  opacity: 0.75;
}

.ngs-echo .dpad {
  display: grid;
  grid-template: repeat(3, minmax(28px, 1fr)) / repeat(3, minmax(28px, 1fr));
  width: 100%;
  aspect-ratio: 1;
}

.ngs-echo .dpad .arcade-button {
  min-width: 0;
  min-height: 0;
  padding: 0;
  font-size: clamp(12px, 2cqw, 26px);
}

.ngs-echo .dpad__up { grid-area: 1 / 2; }
.ngs-echo .dpad__left { grid-area: 2 / 1; }
.ngs-echo .dpad__right { grid-area: 2 / 3; }
.ngs-echo .dpad__down { grid-area: 3 / 2; }

.ngs-echo .dpad__center {
  grid-area: 2 / 2;
  display: grid;
  place-items: center;
  border: 2px solid #070b08;
  background: #102018;
  color: #56664e;
  font-family: var(--pixel);
  font-size: clamp(9px, 1.2cqw, 17px);
}

.ngs-echo .mission-strip {
  min-width: 0;
  padding: clamp(5px, 0.8cqw, 11px);
  border: 2px solid #3d4b38;
  background: rgba(3, 7, 4, 0.72);
  font-family: var(--pixel);
  text-align: center;
  text-transform: uppercase;
}

.ngs-echo .mission-strip span,
.ngs-echo .mission-strip strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ngs-echo .mission-strip__label {
  color: #9aa98f;
  font-size: clamp(6px, 0.75cqw, 11px);
  letter-spacing: 0.08em;
}

.ngs-echo .mission-strip strong {
  margin: 3px 0;
  color: var(--cyan);
  font-size: clamp(10px, 1.45cqw, 20px);
}

.ngs-echo .mission-strip span:last-child {
  color: #d9d9bd;
  font-size: clamp(6px, 0.72cqw, 10px);
}

.ngs-echo .action-pad {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 1fr;
  gap: clamp(5px, 0.65cqw, 9px);
  height: clamp(54px, 7.7cqw, 96px);
}

.ngs-echo .action-button {
  min-width: 0;
  padding: clamp(3px, 0.5cqw, 7px);
  font-size: clamp(7px, 0.9cqw, 13px);
  line-height: 1.05;
}

.ngs-echo .action-button span {
  display: block;
}

.ngs-echo .action-button__icon {
  margin-bottom: 3px;
  color: var(--cyan);
  font-size: clamp(14px, 2.2cqw, 29px);
  line-height: 0.9;
}

.ngs-echo .action-button--record {
  color: var(--cyan);
}

.ngs-echo .action-button--action {
  color: var(--amber);
}

.ngs-echo .action-button--action .action-button__icon {
  color: var(--amber);
}

.ngs-echo .is-highlighted {
  border-color: var(--paper) !important;
  background: #175455 !important;
  box-shadow: 0 0 0 4px var(--cyan-dark), 5px 5px 0 #020302 !important;
  animation: control-pulse 0.9s steps(2, end) infinite;
}

.ngs-echo .quick-tools {
  position: absolute;
  z-index: 9;
  top: clamp(66px, 8.6cqw, 112px);
  right: 11px;
  display: flex;
  gap: 5px;
}

.ngs-echo .quick-button {
  display: grid;
  place-items: center;
  width: clamp(44px, 3.1cqw, 48px);
  min-width: 44px;
  min-height: 44px;
  aspect-ratio: 1;
  padding: 0;
  color: var(--cyan);
  font-size: clamp(11px, 1.35cqw, 18px);
}

.ngs-echo .game-overlay {
  position: absolute;
  z-index: 15;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(55px, 8cqw, 108px) 18px clamp(78px, 11cqw, 140px);
  background: rgba(2, 6, 3, 0.63);
}

.ngs-echo .game-overlay[hidden] {
  display: none;
}

.ngs-echo .overlay-card {
  width: min(620px, 78%);
  padding: clamp(12px, 2cqw, 26px);
  border: clamp(3px, 0.42cqw, 5px) solid var(--cream);
  outline: clamp(2px, 0.3cqw, 4px) solid #091009;
  background: linear-gradient(#173126, #0d1c15);
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.7);
  font-family: var(--pixel);
  text-align: center;
}

.ngs-echo .overlay-card__eyebrow,
.ngs-echo .overlay-card h1,
.ngs-echo .overlay-card h2,
.ngs-echo .overlay-card__copy,
.ngs-echo .overlay-card__hint {
  margin: 0;
}

.ngs-echo .overlay-card__eyebrow {
  color: var(--cyan);
  font-size: clamp(7px, 0.85cqw, 12px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ngs-echo .overlay-card h1,
.ngs-echo .overlay-card h2 {
  margin-top: 4px;
  color: var(--cream);
  font-family: var(--pixel);
  font-size: clamp(25px, 4.5cqw, 60px);
  letter-spacing: -0.08em;
  line-height: 0.92;
  text-shadow: 4px 4px 0 #3d2c14;
  text-transform: uppercase;
}

.ngs-echo .overlay-card__copy {
  max-width: 53ch;
  margin: clamp(7px, 1cqw, 14px) auto 0;
  color: #dce4ca;
  font-family: var(--sans);
  font-size: clamp(9px, 1.1cqw, 15px);
  line-height: 1.4;
}

.ngs-echo .overlay-card__steps {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 0.8cqw, 11px);
  margin-top: clamp(8px, 1.2cqw, 16px);
}

.ngs-echo .overlay-card__steps span {
  padding: 5px 8px;
  border: 2px solid #58634b;
  color: var(--paper);
  font-size: clamp(6px, 0.78cqw, 11px);
  text-transform: uppercase;
}

.ngs-echo .overlay-card__steps b {
  color: var(--amber);
}

.ngs-echo .overlay-card__actions {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1cqw, 14px);
  margin-top: clamp(10px, 1.4cqw, 19px);
}

.ngs-echo .pixel-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px clamp(12px, 1.6cqw, 22px);
  font-size: clamp(9px, 1.1cqw, 15px);
}

.ngs-echo .pixel-button--play {
  min-width: clamp(130px, 20cqw, 260px);
  border-color: var(--cream);
  background: #173d2d;
  color: var(--cream);
  font-size: clamp(14px, 1.9cqw, 26px);
}

.ngs-echo .overlay-card__hint {
  margin-top: 9px;
  color: #a7b498;
  font-size: clamp(6px, 0.73cqw, 10px);
  text-transform: uppercase;
}

.ngs-echo .mobile-controls {
  display: none;
}

.ngs-echo .instructions {
  margin-top: clamp(14px, 2vw, 24px);
  border: 2px solid #59624d;
  background: #101912;
  box-shadow: 5px 5px 0 #020302;
}

.ngs-echo .instructions summary {
  padding: 13px 16px;
  color: var(--cream);
  cursor: pointer;
  font-family: var(--pixel);
  font-size: clamp(12px, 1.4vw, 17px);
  font-weight: 900;
  text-transform: uppercase;
}

.ngs-echo .instructions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid #59624d;
  background: #59624d;
}

.ngs-echo .instructions__grid section {
  padding: clamp(13px, 2vw, 22px);
  background: #111d16;
}

.ngs-echo .instructions h2,
.ngs-echo .instructions p {
  margin: 0;
}

.ngs-echo .instructions h2 {
  color: var(--cyan);
  font-family: var(--pixel);
  font-size: clamp(12px, 1.4vw, 17px);
  text-transform: uppercase;
}

.ngs-echo .instructions p {
  margin-top: 7px;
  color: #cad3bf;
  font-size: 14px;
  line-height: 1.55;
}

.ngs-echo kbd {
  padding: 1px 5px;
  border: 1px solid #718066;
  border-bottom-width: 3px;
  border-radius: 3px;
  background: #0b120d;
  color: var(--paper);
  font-family: var(--pixel);
}

.ngs-echo .privacy-note {
  margin: 15px auto 0;
  color: #8f9a89;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.ngs-echo .visually-hidden {
  position: absolute !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@keyframes control-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45); }
}

@media (max-width: 720px) {
  .ngs-echo .ngs-echo__care {
    grid-template-columns: 1fr;
  }

  .ngs-echo .preview-page {
    padding: 5px 5px 24px;
  }

  .ngs-echo .arcade-stage {
    aspect-ratio: 4 / 5;
    overflow: visible;
    background: #0a120d;
  }

  .ngs-echo .game-canvas {
    inset: 0 0 auto;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .ngs-echo .game-hud {
    inset: 5px 5px auto;
    grid-template-columns: 2.2fr repeat(5, 1fr);
    gap: 2px;
    height: 36px;
  }

  .ngs-echo .logo-panel,
  .ngs-echo .hud-panel {
    border-width: 1px;
    outline-width: 1px;
    box-shadow: 2px 2px 0 #000;
  }

  .ngs-echo .logo-panel {
    gap: 2px;
    padding: 2px 3px;
  }

  .ngs-echo .logo-panel__leaf {
    font-size: 13px;
  }

  .ngs-echo .logo-panel p {
    font-size: 9px;
    text-shadow: 1px 1px 0 #382c16;
  }

  .ngs-echo .logo-panel div > span,
  .ngs-echo .hud-panel > span {
    font-size: 4.5px;
  }

  .ngs-echo .hud-panel {
    padding: 2px;
  }

  .ngs-echo .hud-panel strong {
    font-size: 7px;
  }

  .ngs-echo .coach {
    top: 45px;
    width: 78%;
    min-height: 26px;
    border-width: 1px;
  }

  .ngs-echo .coach__step {
    padding: 2px 4px;
    font-size: 5px;
  }

  .ngs-echo .coach p {
    padding: 3px 5px;
    font-size: 6px;
  }

  .ngs-echo .quick-tools {
    top: 43px;
    right: 5px;
    flex-direction: column;
    gap: 2px;
  }

  .ngs-echo .quick-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border-width: 1px;
    outline-width: 1px;
    font-size: 12px;
  }

  .ngs-echo .toast {
    top: 25%;
    font-size: 7px;
  }

  .ngs-echo .control-panel {
    top: 47%;
    right: 7px;
    bottom: auto;
    left: 7px;
    grid-template: auto 1fr / minmax(118px, 0.8fr) minmax(172px, 1.2fr);
    gap: 7px;
    min-height: 0;
    padding: 7px;
  }

  .ngs-echo .mission-strip {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .ngs-echo .mission-strip__label {
    font-size: 7px;
  }

  .ngs-echo .mission-strip strong {
    font-size: 12px;
  }

  .ngs-echo .mission-strip span:last-child {
    font-size: 7px;
  }

  .ngs-echo .dpad {
    align-self: center;
    justify-self: center;
    grid-column: 1;
    grid-row: 2;
    width: min(130px, 100%);
  }

  .ngs-echo .dpad .arcade-button {
    min-width: 44px;
    min-height: 44px;
    font-size: 15px;
  }

  .ngs-echo .action-pad {
    align-self: center;
    grid-column: 2;
    grid-row: 2;
    grid-template: repeat(2, minmax(56px, 1fr)) / repeat(2, 1fr);
    height: auto;
  }

  .ngs-echo .action-button {
    min-height: 56px;
    font-size: 7px;
  }

  .ngs-echo .action-button--record {
    grid-column: 1 / -1;
  }

  .ngs-echo .action-button__icon {
    font-size: 17px;
  }

  .ngs-echo .game-overlay {
    inset: 0 0 auto;
    height: 45%;
    padding: 43px 8px 8px;
  }

  .ngs-echo .overlay-card {
    width: 84%;
    padding: 8px;
    border-width: 2px;
  }

  .ngs-echo .overlay-card__eyebrow,
  .ngs-echo .overlay-card__steps,
  .ngs-echo .overlay-card__hint {
    display: none;
  }

  .ngs-echo .overlay-card h1,
  .ngs-echo .overlay-card h2 {
    font-size: 22px;
  }

  .ngs-echo .overlay-card__copy {
    margin-top: 4px;
    font-size: 8px;
    line-height: 1.25;
  }

  .ngs-echo .overlay-card__actions {
    margin-top: 6px;
  }

  .ngs-echo .pixel-button {
    min-width: 44px;
    min-height: 44px;
    padding: 4px 8px;
    border-width: 2px;
    font-size: 8px;
  }

  .ngs-echo .pixel-button--play {
    min-width: 100px;
    font-size: 12px;
  }

  .ngs-echo .mobile-controls {
    display: block;
    margin: 8px 4px 0;
    color: #95a18f;
    font-size: 11px;
    text-align: center;
  }

  .ngs-echo .instructions__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ngs-echo,
  .ngs-echo .preview-page,
  .ngs-echo .game-console {
    max-width: 100%;
    overflow-x: clip;
  }

  .ngs-echo .arcade-stage {
    max-width: 100%;
    overflow: hidden;
  }

  .ngs-echo .control-panel {
    right: 4px;
    left: 4px;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 6px;
    width: auto;
    max-width: calc(100% - 8px);
    padding: 5px;
  }

  .ngs-echo .mission-strip,
  .ngs-echo .dpad,
  .ngs-echo .action-pad,
  .ngs-echo .action-button {
    min-width: 0;
    max-width: 100%;
  }

  .ngs-echo .mission-strip,
  .ngs-echo .action-pad,
  .ngs-echo .action-button {
    overflow: hidden;
  }

  .ngs-echo .action-pad {
    gap: 4px;
  }

  .ngs-echo .action-button {
    padding-right: 2px;
    padding-left: 2px;
    overflow-wrap: anywhere;
  }
}

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