/* 3AM Kickout: one hand-written stylesheet. css/art.css (generated from the game data)
   sizes every picture at a whole-number enlargement. Mobile first; the layout widens at 40rem
   and 60rem, and the pictures step up where art.css says.

   Press Start 2P is drawn on an 8-pixel grid and is only crisp at multiples of 8px, so it is set
   at 16px or more; anything smaller is set in Inter. */

@font-face {
  font-family: "Press Start 2P";
  src: url("/fonts/press-start-2p-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Night-city palette, from the game's own neon. Every text colour here is at least WCAG AA
     (4.5:1) on --bg and --panel. */
  --bg: #0b0716;
  --bg-2: #120a25;
  --panel: #1a1033;
  --panel-2: #22143f;
  --line: #3b2a66;
  --ink: #f5f0ff;
  --muted: #bdb2dc;
  --pink: #ff4fbf;
  --pink-deep: #c2177e;
  --pink-hot: #d91f8f;
  --cyan: #48e4ff;
  --yellow: #ffd84a;
  --focus: #ffd84a;
  /* A stat bar's empty track: 3:1 or more against its border, the panel and the filled part. */
  --track: #7a6aaa;

  --font-pixel: "Press Start 2P", ui-monospace, monospace;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 72rem;
  --gutter: 1rem;
  --shadow-px: 4px 4px 0 #000;
  --card-border: 3px;
  /* Screenshots: their frame, and the gap between them. */
  --shot-border: 3px;
  --shot-gap: 1.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font-body);
}

/* A faint CRT scanline over everything; it never takes a click. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0.16) 3px, rgba(0, 0, 0, 0) 4px);
  mix-blend-mode: multiply;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  /* Every picture on the site is pixel art at a whole-number enlargement: keep the pixels square. */
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

a {
  color: var(--cyan);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 2px;
}
a:hover {
  color: var(--ink);
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
/* The skip link's target: focused so the next Tab starts there, not something to operate. */
#main:focus {
  outline: none;
}

h1, h2, h3, h4 {
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
p, ul, ol, dl {
  margin: 0 0 1rem;
}
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--yellow);
  overflow-wrap: anywhere;
}
q {
  quotes: "“" "”";
  color: var(--yellow);
}

.visually-hidden,
.site-header__name {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: var(--gutter);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.preview-banner {
  margin: 0;
  padding: 0.4rem var(--gutter);
  background: var(--yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
}

/* ---- Type ---------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 0.75rem;
  font: 400 1rem/1.5 var(--font-pixel);
  color: var(--pink);
}
.h1,
.h2 {
  font-family: var(--font-pixel);
  font-weight: 400;
  text-shadow: var(--shadow-px);
}
.h1 {
  font-size: 1.5rem;
  line-height: 1.5;
}
.h2 {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}
.h3 {
  font: 400 1rem/1.5 var(--font-pixel);
  color: var(--yellow);
  margin: 2.5rem 0 0.75rem;
  scroll-margin-top: 1rem;
}
.lede {
  max-width: 40rem;
  font-size: 1.125rem;
  color: var(--ink);
}
.meta,
.section__note {
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
/* A small caption in capitals, in Inter so it stays crisp. */
.label {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.15rem 0.45rem;
  background: #000;
  color: var(--cyan);
  font: 700 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}

/* ---- Buttons and the store ----------------------------------------------- */

.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  margin: 0;
  padding: 0.9rem 1.4rem;
  background: var(--pink-deep);
  color: #fff;
  font: 400 1rem/1.25 var(--font-pixel);
  text-align: center;
  text-decoration: none;
  border: 3px solid #000;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.35), inset 4px 4px 0 rgba(255, 255, 255, 0.25), var(--shadow-px);
}
a.btn:hover {
  background: var(--pink-hot);
  color: #fff;
}
a.btn:active {
  transform: translate(2px, 2px);
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.35), inset 4px 4px 0 rgba(255, 255, 255, 0.25), 2px 2px 0 #000;
}
.btn__small {
  font: 700 0.8125rem/1.2 var(--font-body);
  letter-spacing: 0.04em;
}
.btn--store {
  min-width: 15rem;
}
.btn--apk {
  background: var(--cyan);
  color: #000;
}
a.btn--apk:hover {
  background: var(--ink);
  color: #000;
}
/* The store box's way to the install page: the APK button's colours turned inside out, so it
   can't be taken for the download itself. */
.btn--manual {
  background: var(--panel);
  color: var(--cyan);
  border-color: var(--cyan);
}
a.btn--manual:hover {
  background: var(--cyan);
  color: #000;
}
.fingerprint code {
  display: block;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 2px solid var(--line);
  font-size: 1rem;
  word-break: break-all;
}
.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: var(--cyan);
  box-shadow: var(--shadow-px);
}
a.btn--ghost:hover {
  background: var(--cyan);
  color: #000;
}

/* While there's no store listing: a flat label that doesn't look pressable and never moves. */
.soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 15rem;
  margin: 0;
  padding: 0.8rem 1.25rem;
  border: 2px dashed var(--muted);
  color: var(--ink);
  font: 400 1rem/1.25 var(--font-pixel);
  text-align: center;
}
.soon__small {
  font: 700 0.8125rem/1.2 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--muted);
}

.store {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.store__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

/* ---- Header and footer --------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 10;
  background: #000;
  border-bottom: 3px solid var(--pink);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.site-header__home {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--pink);
  font: 400 1rem/1 var(--font-pixel);
  text-decoration: none;
  text-shadow: 2px 2px 0 #000;
}
/* Rings drawn outside the icon, so it keeps its own 32 pixels. */
.site-header__icon {
  box-shadow: 0 0 0 2px #000, 0 0 0 4px var(--pink);
}
/* Phones have room for the icon only: the name (.site-header__name, hidden with
   .visually-hidden above) stays for screen readers, and shows from 60rem. */
.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.875rem 0.5rem;
  color: var(--ink);
  font: 400 1rem/1 var(--font-pixel);
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-header__home[aria-current="page"] .site-header__name {
  color: var(--yellow);
}
.site-nav__store {
  display: none;
}
.site-nav a.site-nav__cta {
  margin-left: 0.5rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  color: #000;
  background: var(--yellow);
  box-shadow: 3px 3px 0 #000;
}
.site-nav a.site-nav__cta:hover {
  background: var(--ink);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  background: #000;
  border-top: 3px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer__inner > * {
  margin-bottom: 1.25rem;
}
.site-footer__rating {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  padding: 0;
  list-style: none;
}
.site-footer__links a {
  display: inline-block;
  padding: 0.7rem 0;
}
.site-footer__links--small {
  margin-top: -1rem;
}
.site-footer__small {
  max-width: 40rem;
  font-size: 0.875rem;
}

/* The game's own 18+ advice: a plain mark, not a copy of any rating board's. */
.age {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.5rem 0.5rem 0.375rem;
  border: 3px solid var(--ink);
  color: var(--ink);
  font: 400 1rem/1 var(--font-pixel);
}
.age--big {
  padding: 1rem 0.75rem 0.875rem;
  font-size: 1.5rem;
}

/* ---- Sections ------------------------------------------------------------ */

.section {
  padding: 3rem 0;
}
.section--tight {
  padding: 2.5rem 0;
}
.section + .section {
  border-top: 1px solid rgba(59, 42, 102, 0.6);
}
.section--page-head {
  padding-top: 2.5rem;
  background: radial-gradient(ellipse at 50% -20%, rgba(194, 23, 126, 0.35), rgba(11, 7, 22, 0) 60%) top / 100% 36rem no-repeat;
}
.section__more {
  margin: 2rem 0 0;
  text-align: center;
}
.prose {
  max-width: 44rem;
}
/* Long addresses (the deletion page's link, the email address) wrap rather than overflow. */
.prose a,
.site-footer a {
  overflow-wrap: anywhere;
}
.prose ul,
.prose ol {
  padding-left: 1.25rem;
}
.prose li {
  margin-bottom: 0.5rem;
}

/* A card: a panel with a black edge and an inner line. */
.feature,
.fighter,
.fighter-card,
.stage,
.foe {
  background: var(--panel);
  border: var(--card-border) solid #000;
  box-shadow: inset 0 0 0 2px var(--line), var(--shadow-px);
}

/* The page's lists of cards and pictures: laid out by their own rules below. */
.shots,
.features,
.roster,
.fighters-full,
.stages,
.foes,
.items {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--bg);
}
.hero__art {
  position: relative;
  overflow: hidden;
}
.hero__art::after {
  /* Fade the street into the page. */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(11, 7, 22, 0), var(--bg));
}
.hero__img {
  /* art.css sizes and centres it: its phone crop on narrow screens, the whole picture on wider. */
  position: absolute;
  top: 0;
  max-width: none;
  /* Where the screen is wider than the picture, its edges fade into the page. */
  mask-image: linear-gradient(to right, transparent, #000 3rem, #000 calc(100% - 3rem), transparent);
}
.hero__text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -2.5rem;
  padding-bottom: 2.5rem;
}
.hero__logo {
  margin: 0 0 0.75rem;
  filter: drop-shadow(0 0 14px rgba(255, 79, 191, 0.55));
}
.hero__tagline {
  margin: 0 0 0.75rem;
  font: 400 1rem/1.75 var(--font-pixel);
  color: var(--yellow);
  text-shadow: var(--shadow-px);
  text-transform: uppercase;
}
.hero__pitch {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
}

/* ---- Screenshots --------------------------------------------------------- */

.shots {
  display: grid;
  grid-template-columns: minmax(0, max-content);
  justify-content: center;
  gap: var(--shot-gap);
}
.shot {
  margin: 0;
}
.shot__img {
  box-sizing: content-box;
  max-width: calc(100% - 2 * var(--shot-border));
  border: var(--shot-border) solid #000;
  box-shadow: 0 0 0 2px var(--line), var(--shadow-px);
  background: #000;
  /* Phones shrink the shot below its own size, where square pixels would look ragged. */
  image-rendering: auto;
}
.shot__caption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.shot--solo {
  margin: 2.5rem auto 0;
  width: fit-content;
  max-width: 100%;
}

/* ---- Features ------------------------------------------------------------ */

.features {
  display: grid;
  gap: 1rem;
}
.feature {
  padding: 1.25rem 1rem;
}
.feature > :last-child {
  margin-bottom: 0;
}
.feature__title {
  font: 400 1rem/1.5 var(--font-pixel);
  color: var(--cyan);
}
.feature__big {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: var(--pink);
  text-shadow: var(--shadow-px);
}
.moves-list {
  display: grid;
  gap: 0.5rem 1.5rem;
  margin: 0;
}
.moves-list__row {
  break-inside: avoid;
}
.moves-list dt {
  font-weight: 700;
  color: var(--yellow);
}
.moves-list dd {
  margin: 0;
  color: var(--ink);
}
/* The items shown, in one row as long as the longest list (art.css's --items). */
.items {
  display: grid;
  grid-template-columns: repeat(var(--items), minmax(0, 8.5rem));
  justify-content: center;
  gap: 0.5rem;
}
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 0.9rem 0.375rem;
  background: var(--bg-2);
  border: 2px solid var(--line);
  text-align: center;
}
/* Every icon sits on the same line in a slot as tall as the tallest (a pickup, 19 pixels three
   times over), so a caption on two lines can't lift one. */
.item__icon {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 3.75rem;
  margin-bottom: 0.35rem;
}
.item__name {
  font-weight: 700;
  font-size: 0.9375rem;
}
.item__what {
  color: var(--muted);
  font-size: 0.8125rem;
}
.items__more {
  margin: 0.75rem 0 0;
  color: var(--muted);
  text-align: center;
}

/* ---- Roster -------------------------------------------------------------- */

.section--roster {
  background:
    linear-gradient(to bottom, rgba(11, 7, 22, 0.2), var(--bg)),
    repeating-linear-gradient(90deg, rgba(72, 228, 255, 0.05) 0 1px, transparent 1px 48px),
    var(--bg-2);
}
.roster {
  display: grid;
  gap: 1rem;
}
.fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1rem 1.25rem;
  text-align: center;
}
.fighter__img {
  margin-bottom: 0.75rem;
}
.fighter__name {
  margin: 0 0 0.5rem;
  font: 400 1rem/1.5 var(--font-pixel);
  color: var(--yellow);
  text-shadow: 3px 3px 0 #000;
  text-transform: uppercase;
}
.fighter__type {
  margin: 0 0 0.5rem;
  color: var(--pink);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fighter__blurb {
  margin: 0 0 1rem;
}
/* Every card's special on one line across the row, however long the blurbs. */
.fighter__special {
  margin: auto 0 0;
  font-size: 0.9375rem;
}

.fighters-full {
  display: grid;
  gap: 1.25rem;
}
.fighter-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem 1rem;
  scroll-margin-top: 1rem;
}
.fighter-card__art {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.5rem;
  background: var(--bg-2);
  border: 2px solid #000;
}
/* Each pose stands on its own strip of pavement. */
.fighter-card__art img {
  background: linear-gradient(to bottom, transparent 78%, #2a2a36 78%);
}
.fighter-card__text > :last-child {
  margin-bottom: 0;
}
.moves {
  margin: 0 0 1rem;
}
.moves dt {
  margin-top: 0.5rem;
  color: var(--cyan);
  font: 700 0.8125rem/1.5 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.moves__how {
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
}
.moves dd {
  margin: 0.1rem 0 0;
}
.stats {
  display: grid;
  gap: 0.4rem;
  margin: 0;
}
.stats__row {
  display: grid;
  grid-template-columns: 4.5rem auto;
  align-items: center;
  justify-content: start;
}
.stats dt {
  color: var(--muted);
  font: 700 0.8125rem/1 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stats dd {
  margin: 0;
}
/* A bar of pips: the empty track, the fill (art.css sets its length) and the dividers over both. */
.pips {
  display: block;
  width: 10rem;
  height: 1rem;
  border: 2px solid #000;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--segment) - 3px), #000 calc(var(--segment) - 3px) var(--segment)),
    linear-gradient(90deg, var(--yellow) var(--fill, 0%), transparent var(--fill, 0%)),
    var(--track);
}

/* ---- Stages -------------------------------------------------------------- */

/* The shown stage across the top, the locked ones under it: two to a row, then all of them in
   one (art.css's --locked-stages). */
.stages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.stage {
  display: grid;
  align-content: start;
  overflow: hidden;
}
.stage--shown {
  grid-column: 1 / -1;
}
/* A window onto the middle of the stage's picture, which art.css places. */
.stage__art {
  position: relative;
  overflow: hidden;
  background: #000;
  border-bottom: 3px solid #000;
}
.stage__art .pic--stage {
  position: absolute;
  max-width: none;
}
.stage__text {
  padding: 1.1rem 1.25rem 1.25rem;
}
/* The stage's number over its name, in one heading. */
.stage__number,
.stage__name {
  display: block;
}
.stage__number {
  margin: 0 0 0.5rem;
  color: var(--pink);
  font: 700 0.875rem/1.5 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.stage__name {
  font: 400 1rem/1.5 var(--font-pixel);
  color: var(--yellow);
  text-shadow: 3px 3px 0 #000;
  text-transform: uppercase;
}
.stage__text > :last-child {
  margin-bottom: 0;
}
/* A locked stage: a shutter pulled down over its picture, with its number on it. */
.stage__lock {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 5rem;
  background: repeating-linear-gradient(to bottom, var(--panel-2) 0 10px, #000 10px 12px);
  border-bottom: 3px solid #000;
  color: var(--pink);
  font: 400 3rem/1 var(--font-pixel);
  text-shadow: 4px 4px 0 #000;
}
.stage__hint {
  color: var(--muted);
  font-style: italic;
}

/* ---- Foes ---------------------------------------------------------------- */

.section--foes {
  background: var(--bg-2);
}
/* The named enemies: two to a row on phones where the longest name fits (one on the narrowest),
   then all of them in one (art.css's --named-foes). */
.foes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.5rem;
}
.foe {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.25rem 1rem;
  text-align: center;
}
.foe img {
  margin-bottom: 0.5rem;
}
.foe__name {
  margin: 0 0 0.4rem;
  font: 400 1rem/1.5 var(--font-pixel);
  color: var(--yellow);
  text-transform: uppercase;
}
.foe__blurb {
  margin: 0;
  font-size: 0.875rem;
}
/* The line that stands in for everyone the site keeps back. */
.foes__more {
  margin: 1.75rem 0 0;
  font: 400 1rem/1.75 var(--font-pixel);
  color: var(--pink);
  text-align: center;
  text-shadow: var(--shadow-px);
}

/* ---- Rating and call to action ------------------------------------------ */

/* The 18+ mark above the words on phones, beside them wider. */
.rating {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}
.rating .h2 {
  margin-bottom: 0.75rem;
}
.rating__text p {
  max-width: 40rem;
}
.rating__note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.section--cta {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(194, 23, 126, 0.45), rgba(11, 7, 22, 0) 65%),
    var(--bg);
}
.cta__title {
  margin: 0 0 1rem;
  font: 400 2rem/1.25 var(--font-pixel);
  color: var(--pink);
  text-shadow: 4px 4px 0 #000, 0 0 24px rgba(255, 79, 191, 0.5);
}
.cta__text {
  margin: 0 auto 1.75rem;
  max-width: 30rem;
  font-size: 1.0625rem;
}

/* ---- Policy pages -------------------------------------------------------- */

.toc {
  margin: 1.5rem 0 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--panel);
  border: 2px solid var(--line);
}
.toc ol {
  margin: 0;
  columns: 2 13rem;
  column-gap: 2rem;
}
.toc li {
  break-inside: avoid;
  margin: 0;
}
.toc a {
  display: block;
  padding: 0.6rem 0;
}
.data dt {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
}
.data dd {
  margin: 0.35rem 0 0;
}
.data dd p:last-child {
  margin-bottom: 0;
}
.steps {
  counter-reset: step;
  padding: 0 !important;
  list-style: none;
}
.steps li {
  position: relative;
  counter-increment: step;
  min-height: 2.25rem;
  margin-bottom: 0.9rem;
  padding: 0.35rem 0 0 3.25rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding-top: 2px;
  background: var(--pink-deep);
  border: 2px solid #000;
  color: #fff;
  font: 400 1rem/1 var(--font-pixel);
  box-shadow: 3px 3px 0 #000;
}

/* ---- 404 ----------------------------------------------------------------- */

.lost {
  text-align: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.lost .lede {
  margin-left: auto;
  margin-right: auto;
}
.lost__code {
  margin: 0 0 1rem;
  font: 400 4rem/1 var(--font-pixel);
  color: var(--pink);
  text-shadow: 6px 6px 0 #000, 0 0 30px rgba(255, 79, 191, 0.5);
}
.lost__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.lost__links a {
  display: inline-block;
  padding: 0.7rem 0;
}

/* ---- Wider screens ------------------------------------------------------- */

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }
  .site-nav a {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .site-nav__store {
    display: block;
  }
  .hero__text {
    margin-top: -4rem;
  }
  .shot__img {
    /* Once over or twice: whole screen pixels from here up. */
    image-rendering: crisp-edges;
    image-rendering: pixelated;
  }
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feature--online,
  .feature--moves,
  .feature--specials,
  .feature--items,
  .feature--music {
    grid-column: 1 / -1;
  }
  .moves-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stages {
    gap: 1.25rem;
  }
  .stage__lock {
    height: 7rem;
  }
  .stage--shown {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .stage--shown .stage__text {
    align-self: center;
  }
  .stage__art {
    border-bottom: 0;
    border-right: 3px solid #000;
  }
  .foes {
    grid-template-columns: repeat(var(--named-foes), minmax(0, 1fr));
    gap: 1rem;
  }
  .foe {
    padding: 0.75rem 0.75rem 1rem;
  }
  .rating {
    flex-direction: row;
    gap: 1.25rem;
  }
  .h1 {
    font-size: 2rem;
  }
  .cta__title {
    font-size: 3rem;
  }
  .lost__code {
    font-size: 6rem;
  }
}

@media (min-width: 60rem) {
  .section {
    padding: 5rem 0;
  }
  .section--tight {
    padding: 3rem 0;
  }
  .site-header__name {
    position: static !important;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
  }
  .hero__text {
    margin-top: -6rem;
  }
  .hero__tagline {
    font-size: 1.5rem;
  }
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .feature--offline,
  .feature--bosses {
    grid-column: auto;
  }
  .feature--online,
  .feature--items {
    grid-column: span 2;
  }
  /* The weapons and the pickups side by side, their words, items and last lines level. */
  .feature--items {
    display: grid;
    grid-row: span 4;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .moves-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .roster {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .fighter-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .stages {
    grid-template-columns: repeat(var(--locked-stages), minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* A screen as short as a phone on its side: the hero's picture is small (art.css), so the logo
   overlaps it less. */
@media (max-height: 30rem) {
  .hero__text {
    margin-top: -1.5rem;
  }
}

/* ---- Motion -------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
