:root {
  --black: #000000;
  --navy: #1d2b53;
  --purple: #7e2553;
  --green: #008751;
  --brown: #ab5236;
  --gray: #5f574f;
  --silver: #c2c3c7;
  --cream: #fff1e8;
  --red: #ff004d;
  --orange: #ffa300;
  --yellow: #ffec27;
  --lime: #00e436;
  --blue: #29adff;
  --lavender: #83769c;
  --pink: #ff77a8;
  --peach: #ffccaa;
  --font: "Press Start 2P", "Courier New", monospace;
  --pixel-border: 4px solid var(--navy);
  --pixel-shadow: 8px 8px 0 var(--navy);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--navy);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--navy);
  background: var(--peach);
  font-family: var(--font);
  line-height: 1.65;
}

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

a {
  text-decoration: none;
}

button {
  appearance: none;
}

img,
canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .14;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, .18) 0,
    rgba(255, 255, 255, .18) 1px,
    transparent 1px,
    transparent 4px
  );
  mix-blend-mode: overlay;
}

.topbar {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  right: 0;
  min-height: 74px;
  padding: 10px max(18px, calc((100% - 1240px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  color: var(--cream);
  background: var(--navy);
  border-bottom: 5px solid var(--black);
  box-shadow: 0 5px 0 var(--lavender);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .72rem;
  line-height: 1.3;
}

.brand img,
.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.topbar nav a {
  position: relative;
  padding: 9px 0;
  color: var(--peach);
  font-size: .53rem;
}

.topbar nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 4px;
  background: var(--yellow);
  transition: right .12s steps(3);
}

.topbar nav a:hover::after,
.topbar nav a:focus-visible::after {
  right: 0;
}

.topbar > .pixel-button {
  justify-self: end;
}

.pixel-button {
  min-height: 56px;
  padding: 15px 19px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  background: var(--navy);
  border: 4px solid var(--black);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .24), inset 4px 4px 0 rgba(255, 255, 255, .24), 0 7px 0 var(--black);
  cursor: pointer;
  font-size: .58rem;
  line-height: 1.35;
  text-align: center;
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}

.pixel-button:hover,
.pixel-button:focus-visible {
  transform: translateY(-2px);
  outline: 4px solid var(--yellow);
  outline-offset: 3px;
}

.pixel-button:active {
  transform: translateY(5px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .2), 0 2px 0 var(--black);
}

.pixel-button--small {
  min-height: 42px;
  padding: 10px 13px 8px;
  color: var(--navy);
  background: var(--yellow);
  font-size: .46rem;
}

.pixel-button--red {
  background: var(--red);
}

.pixel-button--cream {
  color: var(--navy);
  background: var(--cream);
}

.pixel-button--navy {
  background: var(--navy);
}

.pixel-button--yellow {
  color: var(--navy);
  background: var(--yellow);
}

.hero {
  position: relative;
  min-height: 820px;
  height: 100svh;
  max-height: 1050px;
  overflow: hidden;
  color: var(--cream);
  background: var(--blue);
  border-bottom: 8px solid var(--black);
}

.hero-world {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 12px rgba(29, 43, 83, .28);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(1200px, calc(100% - 42px));
  height: 100%;
  margin: 0 auto;
  padding: 145px 0 92px;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: 44px;
}

.eyebrow {
  margin: 0 0 21px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--yellow);
  font-size: .54rem;
  line-height: 1.6;
  letter-spacing: 1px;
}

.eyebrow > span,
.power-light i,
.terminal-bar i {
  width: 10px;
  height: 10px;
  display: inline-block;
  background: var(--lime);
  border: 2px solid var(--black);
  animation: blink 1.1s steps(2) infinite;
}

.eyebrow--dark {
  color: var(--red);
}

.title-lockup {
  position: relative;
  width: fit-content;
  padding-right: 88px;
}

.title-lockup h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(4.2rem, 9.2vw, 8rem);
  line-height: .88;
  letter-spacing: -8px;
  text-shadow: 8px 0 0 var(--navy), -8px 0 0 var(--navy), 0 8px 0 var(--navy), 8px 8px 0 var(--black);
}

.title-lockup h1 span {
  color: var(--red);
}

.title-lockup > strong {
  position: absolute;
  right: 0;
  bottom: -23px;
  padding: 10px 12px 8px;
  color: var(--navy);
  background: var(--yellow);
  border: 4px solid var(--black);
  box-shadow: 5px 5px 0 var(--red);
  font-size: .75rem;
  transform: rotate(-3deg);
}

.hero-text {
  width: min(620px, 100%);
  margin: 46px 0 28px;
  padding: 18px 20px;
  color: var(--navy);
  background: var(--cream);
  border: 4px solid var(--navy);
  box-shadow: 7px 7px 0 var(--orange);
  font-family: "Courier New", monospace;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
}

.ca-display {
  width: min(640px, 100%);
  margin-top: 25px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: var(--cream);
  background: var(--navy);
  border: 4px solid var(--black);
  box-shadow: 5px 5px 0 var(--lavender);
}

.ca-display span {
  padding: 6px;
  color: var(--navy);
  background: var(--yellow);
  font-size: .47rem;
}

.ca-display code {
  overflow: hidden;
  font-family: var(--font);
  font-size: .47rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-links {
  width: min(640px, 100%);
  margin-top: 21px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.portal-button {
  position: relative;
  min-height: 54px;
  padding: 8px 10px 7px 50px;
  display: grid;
  align-content: center;
  gap: 4px;
  color: var(--cream);
  background: var(--navy);
  border: 4px solid var(--black);
  box-shadow: 0 6px 0 var(--black);
  font-size: .38rem;
  line-height: 1.2;
  transition: transform .08s steps(2), box-shadow .08s steps(2);
}

.portal-button b {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--cream);
  border: 3px solid var(--black);
  font-size: .64rem;
}

.portal-button--x {
  background: var(--black);
}

.portal-button--pump {
  color: var(--navy);
  background: var(--lime);
}

.portal-button--pump b {
  color: var(--green);
  background: var(--yellow);
  border-radius: 50%;
}

.portal-button--dex {
  background: var(--purple);
}

.portal-button--dex b {
  color: var(--cream);
  background: var(--red);
}

.portal-button:hover,
.portal-button:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.portal-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--black);
}

.portal-button.is-disabled {
  filter: saturate(.55);
}

.hero-character {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: end center;
}

.hero-sprite-wrap {
  position: relative;
  z-index: 4;
  width: min(430px, 42vw);
  height: min(520px, 62vh);
  display: grid;
  place-items: end center;
  animation: catBounce 1.1s steps(3) infinite;
}

.hero-sprite {
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(12px 12px 0 rgba(29, 43, 83, .42));
}

.hero-platform {
  position: absolute;
  z-index: 2;
  left: 5%;
  right: 5%;
  bottom: 2%;
  height: 74px;
  background: var(--gray);
  border: 8px solid var(--navy);
  box-shadow: inset 0 10px 0 var(--lavender), 10px 10px 0 var(--black);
}

.hero-platform::before {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: -18px;
  height: 17px;
  background: repeating-linear-gradient(90deg, var(--lime) 0 17px, var(--green) 17px 34px);
  border: 5px solid var(--navy);
  border-bottom: 0;
}

.hero-score {
  position: absolute;
  z-index: 6;
  top: 10%;
  right: 3%;
  padding: 11px 12px 8px;
  color: var(--cream);
  background: var(--red);
  border: 4px solid var(--black);
  box-shadow: 5px 5px 0 var(--yellow);
  font-size: .65rem;
}

.press-start {
  position: absolute;
  z-index: 7;
  left: 4%;
  bottom: 22%;
  padding: 10px 12px 8px;
  color: var(--navy);
  background: var(--cream);
  border: 4px solid var(--black);
  font-size: .47rem;
  transform: rotate(-3deg);
}

.press-start i {
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-left: 6px;
  background: var(--red);
  animation: blink .7s steps(2) infinite;
}

.scroll-cue {
  position: absolute;
  z-index: 7;
  left: 50%;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--cream);
  font-size: .43rem;
  transform: translateX(-50%);
}

.scroll-cue span {
  color: var(--yellow);
  animation: cueDrop 1s steps(3) infinite;
}

.origin-section,
.game-section,
.dex-section {
  position: relative;
  padding: 112px max(20px, calc((100% - 1180px) / 2));
}

.origin-section {
  min-height: 640px;
  display: grid;
  grid-template-columns: auto 1fr minmax(380px, .85fr);
  align-items: center;
  gap: 42px;
  background: var(--peach);
  border-bottom: 8px solid var(--navy);
}

.section-number {
  align-self: start;
  padding: 12px 13px 9px;
  color: var(--cream);
  background: var(--red);
  border: 4px solid var(--navy);
  box-shadow: 5px 5px 0 var(--navy);
  font-size: .64rem;
}

.origin-section h2,
.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.4rem, 5.4vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -5px;
  text-shadow: 6px 6px 0 var(--pink);
}

.origin-card {
  padding: 30px;
  color: var(--cream);
  background: var(--navy);
  border: 6px solid var(--black);
  box-shadow: 11px 11px 0 var(--red);
}

.origin-card img {
  width: 128px;
  height: 128px;
  float: right;
  margin: -66px -10px 12px 22px;
}

.origin-card p {
  margin: 0 0 28px;
  font-family: "Courier New", monospace;
  font-size: 1.08rem;
  font-weight: 700;
}

.origin-card .pixel-button {
  width: 100%;
  color: var(--navy);
  background: var(--yellow);
  font-size: .48rem;
}

.game-section {
  background: var(--cream);
  border-bottom: 8px solid var(--navy);
}

.section-heading {
  margin-bottom: 46px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}

.section-heading > p {
  max-width: 450px;
  margin: 0 0 7px;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.arcade-shell {
  padding: 12px;
  color: var(--cream);
  background: var(--navy);
  border: 8px solid var(--black);
  box-shadow: 13px 13px 0 var(--red);
}

.arcade-top,
.terminal-bar {
  min-height: 48px;
  padding: 10px 12px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--yellow);
  background: var(--purple);
  border: 4px solid var(--black);
  font-size: .47rem;
}

.power-light,
.terminal-bar span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.game-hud {
  padding: 15px 17px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  color: var(--navy);
  background: var(--peach);
  border: 4px solid var(--black);
  border-top: 0;
}

.game-hud div {
  display: grid;
  gap: 7px;
}

.game-hud small,
.chart-meta small,
.terminal-ca small {
  color: var(--purple);
  font-size: .41rem;
}

.game-hud strong {
  font-size: .69rem;
}

.screen-frame {
  position: relative;
  overflow: hidden;
  background: var(--black);
  border: 8px solid var(--black);
  box-shadow: inset 0 0 0 5px var(--lavender);
}

#gameCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--peach);
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  padding: 24px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  color: var(--cream);
  background: rgba(29, 43, 83, .94);
  text-align: center;
}

.game-overlay.is-hidden {
  display: none;
}

.game-overlay img {
  width: 96px;
  height: 96px;
}

.game-overlay > p {
  margin: 0;
  color: var(--yellow);
  font-size: .52rem;
}

.game-overlay h3 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(1.45rem, 4vw, 3.4rem);
  line-height: 1.1;
  text-shadow: 5px 5px 0 var(--red);
}

.game-overlay small {
  font-size: .39rem;
  line-height: 1.8;
}

.mobile-controls {
  min-height: 82px;
  padding: 13px 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: var(--cream);
  background: var(--gray);
  border: 4px solid var(--black);
  border-top: 0;
}

.mobile-controls > div {
  display: flex;
  gap: 13px;
}

.mobile-controls button {
  width: 62px;
  height: 54px;
  color: var(--cream);
  background: var(--navy);
  border: 4px solid var(--black);
  box-shadow: 0 6px 0 var(--black);
  cursor: pointer;
}

.mobile-controls button:active,
.mobile-controls button.is-pressed {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--black);
}

.mobile-controls > span {
  font-size: .44rem;
}

.mobile-controls .jump-control {
  justify-self: end;
  border-radius: 50%;
  color: var(--cream);
  background: var(--red);
  font-size: 1rem;
}

.asset-credit {
  margin: 31px 0 0;
  color: var(--gray);
  font-size: .43rem;
  text-align: right;
}

.dex-section {
  color: var(--cream);
  background: var(--navy);
}

.section-heading--light h2 {
  color: var(--cream);
  text-shadow: 6px 6px 0 var(--red);
}

.section-heading--light > p {
  color: var(--peach);
}

.section-heading--light code {
  color: var(--yellow);
  font-family: var(--font);
  font-size: .73em;
}

.dex-terminal {
  background: var(--gray);
  border: 8px solid var(--black);
  box-shadow: 13px 13px 0 var(--pink);
}

.terminal-bar {
  color: var(--cream);
  background: var(--purple);
  border: 0;
  border-bottom: 5px solid var(--black);
}

.dex-layout {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, .7fr);
  gap: 14px;
}

.chart-panel,
.token-panel {
  background: var(--navy);
  border: 5px solid var(--black);
}

.chart-panel {
  position: relative;
  padding: 17px;
}

.chart-meta {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.chart-meta div {
  display: grid;
  gap: 8px;
}

.chart-meta div:last-child {
  text-align: right;
}

.chart-meta strong {
  color: var(--yellow);
  font-size: .57rem;
}

#dexCanvas {
  width: 100%;
  height: 250px;
  display: block;
  background: var(--black);
  border: 4px solid var(--lavender);
}

.dex-frame {
  position: absolute;
  inset: 78px 16px 28px;
  width: calc(100% - 32px);
  height: calc(100% - 106px);
  border: 0;
  background: var(--black);
  z-index: 3;
}

.chart-panel.has-live-dex .chart-labels {
  display: none;
}

.chart-labels {
  margin-top: 11px;
  display: flex;
  justify-content: space-between;
  color: var(--silver);
  font-size: .38rem;
}

.token-panel {
  padding: 23px;
  text-align: center;
}

.token-avatar {
  width: 132px;
  height: 132px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  background: var(--blue);
  border: 5px solid var(--black);
  box-shadow: 6px 6px 0 var(--red);
}

.token-avatar img {
  width: 112px;
  height: 112px;
}

.token-panel > p {
  margin: 23px 0 5px;
  color: var(--peach);
  font-size: .48rem;
}

.token-panel h3 {
  margin: 0 0 20px;
  color: var(--yellow);
  font-size: 1.35rem;
}

.token-panel dl {
  margin: 0 0 18px;
  display: grid;
  gap: 7px;
}

.token-panel dl div {
  padding: 9px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 3px dashed var(--lavender);
}

.token-panel dt,
.token-panel dd {
  margin: 0;
  font-size: .4rem;
}

.token-panel dd {
  color: var(--yellow);
  text-align: right;
}

.terminal-ca {
  margin: 17px 0;
  padding: 12px;
  display: grid;
  gap: 9px;
  color: var(--cream);
  background: var(--black);
  border: 3px solid var(--lavender);
  text-align: left;
}

.terminal-ca code {
  overflow: hidden;
  color: var(--yellow);
  font-family: var(--font);
  font-size: .38rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.token-panel .pixel-button {
  width: 100%;
}

footer {
  min-height: 150px;
  padding: 34px max(20px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  color: var(--cream);
  background: var(--black);
  border-top: 6px solid var(--red);
}

footer p,
footer a {
  margin: 0;
  font-size: .4rem;
  line-height: 1.8;
}

footer p {
  color: var(--silver);
  text-align: center;
}

footer > a {
  justify-self: end;
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 24px;
  bottom: 24px;
  padding: 16px 17px 13px;
  color: var(--navy);
  background: var(--yellow);
  border: 4px solid var(--black);
  box-shadow: 7px 7px 0 var(--red);
  font-size: .5rem;
  transform: translateY(150px);
  transition: transform .14s steps(3);
}

.toast.is-visible {
  transform: translateY(0);
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes catBounce {
  50% { transform: translateY(-12px); }
}

@keyframes cueDrop {
  50% { transform: translateY(7px); }
}

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

  .hero {
    min-height: 1100px;
    height: auto;
    max-height: none;
  }

  .hero-inner {
    padding-top: 130px;
    grid-template-columns: 1fr;
    align-content: start;
    text-align: center;
  }

  .eyebrow,
  .title-lockup,
  .hero-text {
    margin-left: auto;
    margin-right: auto;
  }

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

  .ca-display {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .hero-character {
    min-height: 510px;
  }

  .hero-sprite-wrap {
    width: min(410px, 72vw);
    height: 430px;
  }

  .origin-section {
    grid-template-columns: auto 1fr;
  }

  .origin-card {
    grid-column: 1 / -1;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .dex-layout {
    grid-template-columns: 1fr;
  }

  .token-panel {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 10px 22px;
    text-align: left;
  }

  .token-avatar {
    grid-row: 1 / 4;
    margin: 0;
  }

  .token-panel > p,
  .token-panel h3 {
    margin: 0;
  }

  .token-panel dl,
  .terminal-ca,
  .token-panel .pixel-button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  .topbar {
    min-height: 66px;
    padding: 8px 12px;
    gap: 10px;
  }

  .brand {
    gap: 8px;
    font-size: .48rem;
  }

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

  .topbar .pixel-button {
    min-height: 38px;
    padding: 8px 9px 6px;
    font-size: .36rem;
  }

  .hero {
    min-height: 960px;
  }

  .hero-inner {
    width: min(100% - 24px, 1200px);
    padding: 104px 0 86px;
    gap: 18px;
  }

  .eyebrow {
    font-size: .4rem;
  }

  .title-lockup {
    padding-right: 20px;
  }

  .title-lockup h1 {
    font-size: clamp(3.3rem, 21vw, 5.7rem);
    letter-spacing: -6px;
    text-shadow: 5px 0 0 var(--navy), -5px 0 0 var(--navy), 0 5px 0 var(--navy), 6px 6px 0 var(--black);
  }

  .title-lockup > strong {
    right: auto;
    left: 55%;
    bottom: -20px;
    font-size: .55rem;
  }

  .hero-text {
    margin-top: 38px;
    padding: 14px;
    font-size: .88rem;
  }

  .hero-actions {
    display: grid;
  }

  .portal-links {
    grid-template-columns: 1fr;
  }

  .pixel-button {
    min-height: 50px;
    font-size: .46rem;
  }

  .ca-display {
    grid-template-columns: 1fr;
  }

  .hero-character {
    min-height: 390px;
  }

  .hero-sprite-wrap {
    width: min(330px, 88vw);
    height: 330px;
  }

  .hero-platform {
    height: 58px;
  }

  .hero-score {
    top: 5%;
    font-size: .48rem;
  }

  .press-start {
    left: 0;
    bottom: 23%;
    font-size: .37rem;
  }

  .scroll-cue {
    font-size: .34rem;
  }

  .origin-section,
  .game-section,
  .dex-section {
    padding: 82px 12px;
  }

  .origin-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-number {
    width: fit-content;
  }

  .origin-section h2,
  .section-heading h2 {
    font-size: clamp(2rem, 12vw, 3.4rem);
    letter-spacing: -3px;
  }

  .origin-card {
    grid-column: auto;
    padding: 22px 17px;
  }

  .origin-card img {
    width: 94px;
    height: 94px;
    margin: -46px -4px 9px 14px;
  }

  .origin-card p,
  .section-heading > p {
    font-size: .84rem;
  }

  .origin-card .pixel-button {
    font-size: .38rem;
  }

  .arcade-shell,
  .dex-terminal {
    padding: 6px;
    border-width: 5px;
    box-shadow: 8px 8px 0 var(--red);
  }

  .arcade-top,
  .terminal-bar {
    font-size: .34rem;
  }

  .game-hud {
    padding: 10px 7px 8px;
    gap: 3px;
  }

  .game-hud small {
    font-size: .28rem;
  }

  .game-hud strong {
    font-size: .43rem;
  }

  .screen-frame {
    border-width: 4px;
  }

  .game-overlay {
    padding: 10px;
    gap: 8px;
  }

  .game-overlay img {
    width: 66px;
    height: 66px;
  }

  .game-overlay small {
    font-size: .29rem;
  }

  .game-overlay .pixel-button {
    min-height: 43px;
  }

  .mobile-controls {
    min-height: 67px;
    padding: 9px;
  }

  .mobile-controls button {
    width: 48px;
    height: 44px;
  }

  .mobile-controls > span {
    display: none;
  }

  .asset-credit {
    font-size: .32rem;
    text-align: left;
  }

  .dex-layout {
    padding: 6px;
  }

  .chart-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .chart-meta div:last-child {
    text-align: left;
  }

  .chart-meta strong {
    font-size: .43rem;
  }

  #dexCanvas {
    height: 190px;
  }

  .token-panel {
    padding: 17px;
    grid-template-columns: 90px 1fr;
  }

  .token-avatar {
    width: 84px;
    height: 84px;
  }

  .token-avatar img {
    width: 72px;
    height: 72px;
  }

  .token-panel h3 {
    font-size: .92rem;
  }

  footer {
    padding: 30px 18px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  footer > a {
    justify-self: center;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    text-align: center;
  }
}
