/* Rescue Mission website: retro 16-bit arcade, volcanic cave palette.
   Pixel frames use hard box-shadows (no blur) so corners stay notched like sprites. */
:root {
  --k: #180c12;
  --bg: #170d12;
  --bg-2: #22121a;
  --panel: #2b1820;
  --panel-2: #3a2129;
  --stone: #7c6e7c;
  --stone-hi: #b0a4ac;
  --stone-lo: #524656;
  --lava-deep: #c2261b;
  --lava: #ff5a1f;
  --lava-hi: #ffb03a;
  --lava-glow: #ffe066;
  --sky: #5fd0ff;
  --leaf: #56c460;
  --ink: #fff3e4;
  --muted: #dcc6b4;
  --line: #5a4450;
  --font-pixel:
    ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
    "Courier New", monospace;
  --font-body:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  --frame:
    -4px 0 0 0 var(--k), 4px 0 0 0 var(--k), 0 -4px 0 0 var(--k),
    0 4px 0 0 var(--k);
  --bevel:
    inset 4px 4px 0 0 rgb(255 255 255 / 0.07),
    inset -4px -4px 0 0 rgb(0 0 0 / 0.32);
  --drop: 10px 10px 0 0 rgb(0 0 0 / 0.42);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.018) 2px, transparent 2px),
    linear-gradient(90deg, rgb(255 255 255 / 0.018) 2px, transparent 2px);
  background-size: 32px 32px;
}

img {
  max-width: 100%;
  height: auto;
}

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

a {
  color: var(--lava-hi);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--lava-glow);
}

:focus-visible {
  outline: 3px solid var(--lava-glow);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-pixel);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 3px 3px 0 var(--k);
}

h2 {
  margin: 0 0 0.6em;
  font-size: clamp(1.7rem, 4.4vw, 2.7rem);
}

h3 {
  margin: 0 0 0.4em;
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  color: var(--k);
  font-weight: 700;
  background: var(--lava-glow);
}

.skip-link:focus {
  top: 1rem;
}

.mono,
.eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--lava-hi);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  margin: 4px;
  padding: 0.7rem 1.25rem;
  color: var(--k);
  font-family: var(--font-pixel);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.05em;
  border: 0;
  background: var(--lava-hi);
  box-shadow:
    var(--frame),
    var(--bevel),
    6px 6px 0 4px rgb(0 0 0 / 0.45);
  cursor: pointer;
}

.btn small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.btn:hover {
  color: var(--k);
  background: var(--lava-glow);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow:
    var(--frame),
    var(--bevel),
    3px 3px 0 4px rgb(0 0 0 / 0.45);
}

.btn-stone {
  color: var(--ink);
  background: var(--stone-lo);
}

.btn-stone:hover {
  color: var(--ink);
  background: var(--stone);
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(23 13 18 / 0.94);
  border-bottom: 4px solid var(--k);
  box-shadow: 0 4px 0 0 var(--panel-2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  display: block;
}

.brand-word {
  width: 170px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links {
  display: flex;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.45rem 0.6rem;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--lava-glow);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.nav-shop {
  margin-left: 0.6rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.nav-menu {
  display: none;
  position: relative;
}

.nav-menu summary {
  list-style: none;
  padding: 0.5rem 0.9rem;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--stone-lo);
  box-shadow: var(--frame), var(--bevel);
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu[open] summary {
  background: var(--stone);
}

.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  display: grid;
  min-width: 13rem;
  padding: 0.5rem;
  background: var(--panel);
  box-shadow: var(--frame), var(--drop);
}

.nav-menu-panel a {
  padding: 0.6rem 0.75rem;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.06em;
}

.nav-menu-panel a:hover,
.nav-menu-panel a[aria-current="page"] {
  color: var(--k);
  background: var(--lava-hi);
}

/* ---------- attract screen (home hero) ---------- */
.attract {
  position: relative;
  border-bottom: 4px solid var(--k);
  background: #1e0e20;
}

.hud {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 3vw, 2rem);
  color: var(--ink);
  font-family: var(--font-pixel);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 var(--k);
  pointer-events: none;
}

.hud span:nth-child(2) {
  color: var(--lava-glow);
}

.attract-screen {
  position: relative;
  height: clamp(560px, 82vh, 760px);
  overflow: hidden;
}

.attract-screen .scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}

.attract-screen::after,
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgb(0 0 0 / 0.16) 3px 4px
  );
}

.title-card {
  position: absolute;
  z-index: 3;
  left: max(1.25rem, calc((100% - 1180px) / 2));
  top: clamp(4rem, 12%, 6.5rem);
  width: min(470px, 44%);
  padding: 1.5rem 1.6rem 1.4rem;
  background: rgb(24 12 18 / 0.9);
  box-shadow: var(--frame), var(--drop);
}

.title-card h1 {
  margin: 0 0 0.9rem;
  line-height: 0;
  text-shadow: none;
}

.title-card h1 img {
  display: block;
  width: min(100%, 360px);
  height: auto;
}

.tagline {
  margin-bottom: 0.4rem;
  color: var(--lava-glow);
  font-family: var(--font-pixel);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.2rem 0 1rem;
}

.press-start {
  animation: blink 1.1s steps(1) infinite;
}

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

.facts {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.facts span + span::before {
  content: " / ";
  color: var(--stone);
}

/* ---------- sections ---------- */
.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-head p:last-child {
  color: var(--muted);
}

.lava-edge {
  height: 16px;
  background: linear-gradient(
    to bottom,
    var(--lava-glow) 0 4px,
    var(--lava-hi) 4px 8px,
    var(--lava) 8px 12px,
    var(--lava-deep) 12px
  );
  -webkit-mask: repeating-linear-gradient(
    90deg,
    #000 0 24px,
    transparent 24px 28px
  );
  mask: repeating-linear-gradient(90deg, #000 0 24px, transparent 24px 28px);
}

/* mission briefing: dialogue box */
.briefing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.dialog {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.2rem;
  margin: 4px;
  padding: 1.4rem;
  background: #10204a;
  box-shadow:
    var(--frame),
    inset 0 0 0 4px #e8f0ff,
    inset 0 0 0 8px #10204a,
    var(--drop);
}

.dialog .portrait {
  width: 72px;
  height: 96px;
  padding: 6px;
  object-fit: contain;
  background: #1a3170;
  box-shadow: 0 0 0 4px #e8f0ff;
}

.dialog p {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  color: #f2f6ff;
}

.dialog-next {
  position: absolute;
  right: 1.3rem;
  bottom: 1rem;
  width: 0;
  height: 0;
  border-inline: 7px solid transparent;
  border-top: 9px solid #e8f0ff;
  animation: blink 0.9s steps(1) infinite;
}

.objectives {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.objectives li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 4px;
  padding: 0.85rem 1rem;
  font-weight: 650;
  background: var(--panel);
  box-shadow: var(--frame), var(--bevel);
}

.objectives b {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--k);
  font-family: var(--font-pixel);
  background: var(--lava-hi);
  box-shadow: inset -3px -3px 0 0 rgb(0 0 0 / 0.3);
}

/* crew: character select */
.crew {
  background: linear-gradient(to bottom, transparent, rgb(0 0 0 / 0.25));
}

.crew-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.crew-card {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  margin: 4px;
  padding: 1.4rem 1rem 1.2rem;
  text-align: center;
  background: var(--panel);
  box-shadow: var(--frame), var(--bevel);
}

.crew-card img {
  width: 96px;
  height: 128px;
}

.crew-card .pedestal {
  width: 70%;
  height: 14px;
  background: var(--stone);
  box-shadow:
    inset 0 4px 0 0 var(--stone-hi),
    inset 0 -4px 0 0 var(--stone-lo),
    0 0 0 4px var(--k);
}

.crew-card strong {
  font-family: var(--font-pixel);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crew-card:first-child strong {
  color: var(--lava-glow);
}

.crew-note {
  margin-top: 1.6rem;
  color: var(--muted);
}

/* features: arcade high-score table */
.scoreboard {
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  list-style: none;
  background: #07040a;
  box-shadow:
    var(--frame),
    inset 0 0 0 4px var(--panel-2),
    var(--drop);
}

.scoreboard li {
  display: grid;
  grid-template-columns: 4.2rem minmax(9rem, 15rem) 1fr;
  align-items: baseline;
  gap: 0.4rem 1.2rem;
  padding: 0.85rem 0.4rem;
  border-bottom: 2px dashed #3a2a34;
}

.scoreboard li:last-child {
  border-bottom: 0;
}

.scoreboard .rank {
  color: var(--lava-glow);
  font-family: var(--font-pixel);
  font-weight: 800;
}

.scoreboard li:nth-child(2) .rank {
  color: var(--lava-hi);
}

.scoreboard li:nth-child(n + 3) .rank {
  color: var(--sky);
}

.scoreboard .name {
  font-family: var(--font-pixel);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scoreboard .desc {
  color: var(--muted);
}

.scores-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.boss-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 4px;
  padding: 1.6rem;
  text-align: center;
  background: linear-gradient(
    to bottom,
    #3a0f14,
    #6b1a17 70%,
    var(--lava-deep)
  );
  box-shadow: var(--frame), var(--bevel);
}

.boss-card img {
  width: min(240px, 80%);
}

.boss-card p {
  margin: 0;
  color: #ffd9c4;
}

/* gallery: CRT frames (illustrations now, real screenshots can replace the img) */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.8rem);
  margin: 0;
}

.shot {
  margin: 4px;
}

.crt {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  box-shadow:
    var(--frame),
    inset 0 0 0 6px #2a2a30,
    var(--drop);
}

.crt img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot figcaption {
  margin-top: 0.9rem;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery-note {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

/* how to play: handheld controls */
.controls {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.pad {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 4px;
  padding: 2rem clamp(1.4rem, 4vw, 2.6rem);
  background: var(--stone-lo);
  box-shadow: var(--frame), var(--bevel), var(--drop);
}

.dpad {
  position: relative;
  width: 108px;
  height: 108px;
  flex: none;
}

.dpad::before,
.dpad::after {
  content: "";
  position: absolute;
  background: var(--k);
  box-shadow: inset 3px 3px 0 0 #3a3a44;
}

.dpad::before {
  left: 36px;
  top: 0;
  width: 36px;
  height: 108px;
}

.dpad::after {
  left: 0;
  top: 36px;
  width: 108px;
  height: 36px;
}

.ab {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.ab span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--ink);
  font-family: var(--font-pixel);
  font-weight: 800;
  border-radius: 50%;
  background: var(--lava-deep);
  box-shadow:
    0 0 0 4px var(--k),
    inset -4px -4px 0 0 rgb(0 0 0 / 0.35);
}

.ab span:last-child {
  transform: translateY(-14px);
}

.pad-caption {
  position: absolute;
  left: 50%;
  bottom: 0.7rem;
  transform: translateX(-50%);
  color: var(--stone-hi);
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  white-space: nowrap;
}

/* download: insert coin */
.insert-coin {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.2rem, 4vw, 2.5rem);
  align-items: center;
  margin: 4px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  background: linear-gradient(135deg, var(--panel-2), var(--panel) 60%);
  box-shadow: var(--frame), var(--bevel), var(--drop);
}

.coin-slot {
  display: grid;
  place-items: center;
  width: 92px;
  height: 120px;
  background: var(--k);
  box-shadow: inset 0 0 0 4px var(--stone-lo);
}

.coin-slot span {
  width: 10px;
  height: 64px;
  background: var(--lava-glow);
  box-shadow: 0 0 0 4px var(--lava-deep);
}

.insert-coin h2 {
  margin-bottom: 0.3em;
}

.insert-coin p {
  margin: 0;
  color: var(--muted);
}

.insert-actions {
  display: grid;
  gap: 0.7rem;
  justify-items: stretch;
}

.insert-actions .btn {
  align-items: center;
}

/* support */
.support-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  margin: 4px;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--panel);
  box-shadow: var(--frame), var(--bevel);
}

.support-box ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.mail-link {
  font-family: var(--font-pixel);
  font-weight: 800;
  font-size: clamp(1rem, 3.4vw, 1.3rem);
  overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: 0 0 2rem;
  background: #100810;
  border-top: 4px solid var(--k);
}

.site-footer .lava-edge {
  margin-bottom: 2.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
}

.footer-brand img {
  display: block;
  margin-bottom: 1rem;
}

.site-footer address {
  font-style: normal;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer address strong {
  color: var(--ink);
}

.site-footer h2 {
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-shadow: none;
  color: var(--lava-hi);
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--ink);
}

.footer-links a[aria-current="page"] {
  color: var(--lava-glow);
}

.stripe-badge img {
  display: block;
}

.payment-networks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.payment-networks li {
  display: grid;
  place-items: center;
  padding: 4px;
  background: #fff;
  box-shadow: 0 0 0 3px var(--k);
}

.payment-networks img {
  display: block;
  width: 56px;
  height: 32px;
}

.footer-note {
  margin: 2.4rem 0 0;
  padding-top: 1.2rem;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 2px dashed #3a2a34;
}

/* ---------- policy pages ---------- */
.policy-page {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.policy {
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  background: var(--panel);
  box-shadow: var(--frame), var(--bevel), var(--drop);
}

.policy h1 {
  margin: 0.2rem 0 0.6rem;
  font-size: clamp(2rem, 6vw, 3rem);
}

.policy h2 {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--lava-hi);
  text-shadow: 2px 2px 0 var(--k);
}

.policy .mono {
  margin: 0;
  color: var(--lava-hi);
}

.policy-updated {
  color: var(--muted);
  font-size: 0.92rem;
}

.policy-intro {
  font-size: 1.12rem;
}

.policy address {
  font-style: normal;
  line-height: 1.7;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links,
  .header-nav > .nav-shop {
    display: none;
  }

  .nav-menu {
    display: block;
  }

  .title-card {
    width: min(470px, 62%);
  }

  .briefing-grid,
  .scores-grid,
  .controls {
    grid-template-columns: 1fr;
  }

  .boss-card {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
  }

  .boss-card img {
    width: 150px;
  }

  .insert-coin {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .insert-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-payments {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .attract-screen {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .attract-screen .scene {
    object-position: 100% 100%;
  }

  .hud {
    font-size: 0.66rem;
    letter-spacing: 0.08em;
  }

  .hud span:nth-child(3) {
    display: none;
  }

  .title-card {
    position: static;
    width: auto;
    margin: 0;
    padding: 1.5rem 1.25rem 1.6rem;
    background: var(--bg-2);
    box-shadow: none;
    border-top: 4px solid var(--k);
  }

  .crew-row {
    grid-template-columns: 1fr;
  }

  .boss-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .boss-card img {
    width: min(180px, 70%);
  }

  .crew-card {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .crew-card img {
    grid-row: span 2;
    width: 60px;
    height: 80px;
  }

  .crew-card .pedestal {
    display: none;
  }

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

  .scoreboard li {
    grid-template-columns: 3.2rem 1fr;
  }

  .scoreboard .desc {
    grid-column: 2;
  }

  .support-box {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .insert-coin {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .coin-slot {
    width: 70px;
    height: 84px;
  }

  .coin-slot span {
    height: 42px;
  }

  .insert-actions {
    width: 100%;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  .wrap {
    width: min(1180px, 100% - 1.6rem);
  }

  .brand-word {
    width: 128px;
  }

  .brand > img:first-child {
    width: 32px;
    height: 32px;
  }

  .dialog {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .dialog .portrait {
    width: 54px;
    height: 72px;
  }

  .pad {
    padding-inline: 1rem;
  }

  .dpad {
    width: 84px;
    height: 84px;
  }

  .dpad::before {
    left: 28px;
    width: 28px;
    height: 84px;
  }

  .dpad::after {
    top: 28px;
    width: 84px;
    height: 28px;
  }

  .ab span {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .press-start,
  .dialog-next {
    animation: none;
  }

  .btn:active {
    transform: none;
  }
}
