/*
 * src/styles.css — ALL styles for the public site (copied to dist/css/style.css by scripts/build.js).
 *
 * Who uses it : dist/index.html + dist/404.html (via scripts/build.js).
 * Related     : src/render.js (markup + class names), src/main.js (adds .is-open / .is-revealed /
 *               .ticker--static / .hero--offscreen / .hero--intro-done).
 *
 * Block order (fixed — keep it): TOKENS → BASE → NAV → HERO → PLATFORMS → GAMES → PUBLISH → CONTACT
 *                                → FOOTER → NOT FOUND (404) → ANIMATIONS → RESPONSIVE (tablet, mobile).
 * Breakpoints: desktop ≥1200px · tablet 810–1199px · mobile ≤809px.
 * Numbers were measured from the original Framer site at 1440 / 1000 / 390px viewports.
 * "Surface" borders are drawn with an inset box-shadow so they never change an element's size
 * (the original drew them with an overlay, not a real border).
 */

/* ======================================================================= TOKENS */
:root {
  /* colours */
  --color-bg: #000;
  --color-text: #fff;
  --color-muted: #ccc;
  --color-border: #222;
  --color-surface: rgba(13, 13, 13, 0.8);
  --color-surface-solid: rgb(13, 13, 13);
  --color-accent: #814ac8;        /* rgb(129,74,200) */
  --color-accent-light: #df7afe;  /* rgb(223,122,254) */
  --color-accent-rgb: 129 74 200; /* same purple as channels, for see-through fills: rgb(var(--color-accent-rgb) / 0.4) */

  /* typography */
  --font: "Figtree", Arial, sans-serif;

  /* radii */
  --radius-chip: 4px;
  --radius-badge: 6px;
  --radius-card: 8px;
  --radius-box: 12px;
  --radius-graphic: 18px;

  /* layout */
  --container: 1200px;
  --pad-x: 40px;               /* side padding of every section (mobile: 24px) */
  --section-pad-y: 100px;      /* games / publish / contact vertical padding (mobile: 64px) */

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: var(--ease-out);  /* upgraded to a real spring curve below when linear() is supported */

  /* reusable fills */
  --surface-border: inset 0 0 0 1px var(--color-border);
  --glow-stops: var(--color-accent-light) 13%, rgba(201, 110, 240, 0) 35%, rgba(164, 92, 219, 0) 64%, var(--color-accent) 88%;

  /* height of the fixed nav: in-page #anchor jumps stop below it (mobile: 64px) */
  --nav-height: 65px;
}

/* The original site animated with springs (no bounce). linear() samples that curve; browsers without
   linear() keep the --ease-out fallback above, which looks almost the same. */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --ease-spring: linear(0, 0.062 2%, 0.212 5%, 0.424 10%, 0.579 15%, 0.693 20%, 0.836 30%, 0.913 40%, 0.953 50%, 0.982 65%, 0.993 80%, 1);
  }
}

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

html,
body {
  margin: 0;
  background: var(--color-bg);
}

html {
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
  padding: 0;
}

ul, ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

/* Visually hidden but readable by screen readers (hero sentence behind the animated words). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Shared text styles — change a text role here once, every element using it follows. */

/* Label text 14/16.8: badges + tags, nav links, wishlist line, footer bottom strip */
.badge,
.nav__link,
.platforms__text,
.footer__bottom-text {
  font-size: 14px;
  line-height: 16.8px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Body text 16/22.4: game description, step card text, footer copyright/address, footer links */
.game-row__desc,
.step-card__text,
.footer__legal,
.footer__links {
  font-size: 16px;
  line-height: 22.4px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-title {             /* "Publish With Us", "Support Email" */
  font-size: 50px;
  line-height: 55px;
  font-weight: 550;          /* original: Figtree variable font, wght axis 550 */
  letter-spacing: -0.04em;
  color: var(--color-text);
}

.lead {                      /* publish intro, contact email line */
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-muted);
}

/* Badge: "Releases in 2026", date badges, tags, "Partnership" */
.badge {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-badge);
  background: var(--color-surface);
  box-shadow: var(--surface-border);
  color: var(--color-text);
  white-space: nowrap;
}

.badge--solid {              /* game tags */
  background: var(--color-surface-solid);
}

/* ======================================================================= NAV */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 10px var(--pad-x);
  background: var(--color-bg);
  box-shadow: inset 0 -1px 0 var(--color-border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  min-height: 44.8px;
  margin: 0 auto;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav__logo {
  width: 42px;
  height: 42px;
}

.nav__brand-name {
  font-size: 21px;
  line-height: 25.2px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--color-text);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 0;
}

.nav__link {
  padding: 8px 14px;
  border-radius: var(--radius-chip);
  color: var(--color-text);
  transition: opacity 0.2s ease;
}

.nav__link:hover {
  opacity: 0.7;
}

/* Hamburger (mobile only — shown in RESPONSIVE › mobile) */
.nav__toggle {
  display: none;
  position: relative;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav__toggle-line {
  position: absolute;
  left: 2.5px;
  width: 27px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease;
}

.nav__toggle-line:nth-child(1) { top: 6px; }
.nav__toggle-line:nth-child(2) { top: 15px; }
.nav__toggle-line:nth-child(3) { top: 24px; }

.nav.is-open .nav__toggle-line:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav.is-open .nav__toggle-line:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle-line:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ======================================================================= HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 640px;
  /* bottom 165px = original 100px padding + 65px empty slot under the text (keeps the text at the same height) */
  padding: 180px var(--pad-x) 165px;
  overflow: hidden;
  background: var(--color-bg);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Layer 1: star particles (drawn by initParticles in main.js) */
.hero__particles {
  position: absolute;
  inset: 0;
}

.hero__canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Black disc behind the glow so stars don't shine through the ring's centre */
.hero__void {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 410px;
  height: 410px;
  margin: -205px 0 0 -205px;
  border-radius: 50%;
  background: var(--color-bg);
}

/* Layer 2: purple swirling glow */
.hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 406px;
  height: 406px;
  margin: -203px 0 0 -203px;
  opacity: 0.6;
  filter: blur(10px);
}

.hero__circle {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
}

.hero__circle--big {
  width: 406px;
  height: 406px;
  margin: -203px 0 0 -203px;
  background: linear-gradient(229deg, var(--glow-stops));
}

.hero__circle--small {
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  background: linear-gradient(141deg, var(--glow-stops));
}

/* Text */
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__title {
  max-width: 900px;
  margin: 0 auto;
  font-size: 70px;
  line-height: 77px;
  font-weight: 600;
  letter-spacing: -2.2px;                  /* fixed px on purpose: the original keeps -2.2px at every size */
  color: var(--color-text);
}

.hero__subtitle {
  max-width: 600px;
  margin: 10px auto 0;
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-muted);
}

.hero .word {
  display: inline-block;
}

/* ======================================================================= PLATFORMS */
.platforms {
  padding: 50px var(--pad-x);
}

.platforms__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.platforms__text {
  color: var(--color-text);
  text-align: center;
}

/* Logo marquee. main.js clones .ticker__list and animates .ticker__track to the left.
   The clipped + faded box is 700×50 like the original's inner strip (its 630×45 wrapper did not clip). */
.ticker {
  position: relative;
  width: 700px;
  max-width: 100%;
  height: 50px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 25%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 25%, #000 75%, transparent 100%);
}

.ticker__track,
.ticker__list {
  display: flex;
  align-items: center;
  gap: 74px;
}

.ticker__track {
  width: max-content;
  height: 50px;              /* logos sit on the ticker's centre line */
  will-change: transform;
}

.ticker__list {
  flex-shrink: 0;
}

.ticker__item {
  flex-shrink: 0;
}

.ticker__logo {
  width: auto;
  max-width: none;
}

/* Without JS, or with reduced motion (main.js adds .ticker--static): one static, centred row */
html:not(.js) .ticker__track,
.ticker--static .ticker__track {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

/* ======================================================================= GAMES */
.games {
  padding: var(--section-pad-y) var(--pad-x);
}

.games__header {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.games__rows {
  display: flex;
  flex-direction: column;
  gap: 100px;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 100px;
}

/* One game = graphic box + text column. Even rows are mirrored (game-row--reverse). */
.game-row {
  display: grid;
  grid-template-columns: 45% 1fr;          /* 450px of 1000px on desktop, 407px on tablet */
  grid-template-areas: "graphic text";
  column-gap: 80px;
  align-items: center;
}

.game-row--reverse {
  grid-template-columns: 1fr 45%;
  grid-template-areas: "text graphic";
}

.game-row__graphic {
  --graphic-pad: 50px;                     /* top padding of the box (tablet 20px, mobile 10px) */
  --image-w: 460px;                        /* image is "contained" in this box: */
  --image-h: 228px;                        /* 1232×706 → 398×228, 460×215 → 460×215 */
  grid-area: graphic;
  position: relative;
  display: block;
  aspect-ratio: 450 / 350;
  border-radius: var(--radius-graphic);
  overflow: hidden;
  background: var(--color-surface);
}

/* Centred horizontally, and vertically inside the area below the top padding. */
.game-row__image {
  position: absolute;
  left: 50%;
  top: calc(50% + var(--graphic-pad) / 2);
  width: min(var(--image-w), 100% + 10px);  /* never more than 5px past each side of the box (as on desktop) */
  height: var(--image-h);
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.game-row__text {
  grid-area: text;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 470px;
}

.game-row__text > .badge + .game-row__title {
  margin-top: 20px;                        /* space under the date badge (no badge → no gap) */
}

.game-row__title {
  font-size: 35px;
  line-height: 38.5px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

.game-row__desc {
  max-width: 450px;
  margin-top: 10px;
  color: var(--color-muted);
}

.game-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* ======================================================================= PUBLISH */
.publish {
  padding: var(--section-pad-y) var(--pad-x);
}

.publish__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.publish__title {
  width: 100%;
  max-width: 700px;
  margin-top: 25px;
}

.publish__text {
  width: 100%;
  max-width: 600px;
  margin-top: 15px;
}

.publish__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 440px));  /* 440px columns that shrink on narrow tablets */
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 60px auto 0;
}

.step-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 156px;
  padding: 20px 30px;
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--surface-border);
}

.step-card__chip {
  display: inline-block;
  padding: 6px 9px;
  border-radius: var(--radius-chip);
  background: var(--color-surface);
  box-shadow: var(--surface-border);
  font-size: 12px;
  line-height: 12px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--color-text);
}

.step-card__title {
  margin-top: 10px;
  font-size: 23px;
  line-height: 27.6px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.step-card__text {
  margin-top: 10px;
  color: var(--color-muted);
}

/* ======================================================================= CONTACT */
.contact {
  padding: var(--section-pad-y) var(--pad-x);
}

.contact__box {
  max-width: 750px;
  margin: 0 auto;
  padding: 80px 30px;
  border-radius: var(--radius-box);
  text-align: center;
  background: linear-gradient(149deg, rgb(var(--color-accent-rgb) / 0.4) 0%, var(--color-surface) 29%, var(--color-surface) 74%, rgb(var(--color-accent-rgb) / 0.4) 100%);
}

.contact__line {
  max-width: 500px;
  margin: 15px auto 0;
}

.contact__email {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.contact__email:hover {
  color: var(--color-text);
}

/* ======================================================================= FOOTER */
.footer__main {
  padding: 64px var(--pad-x);
  background: radial-gradient(50% 50% at 50% 3.4%, rgb(var(--color-accent-rgb) / 0.3) 0%, rgba(171, 171, 171, 0) 100%);
  box-shadow: inset 0 2px 0 var(--color-border);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;          /* brand block | link columns */
  gap: 20px;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
}

.footer__brand {
  padding-bottom: 42px;                    /* original had an empty 15px + 27px slot here */
}

.footer__brand-link {
  display: flex;                           /* block-level flex: no extra line-box space under the logo */
  width: fit-content;
  align-items: center;
  gap: 4px;
}

.footer__logo {
  width: 71px;
  height: 71px;
}

.footer__brand-name {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.06em;
  color: var(--color-text);
}

.footer__legal {
  max-width: 300px;
  margin-top: 20px;
  color: var(--color-muted);
}

.footer__copyright,
.footer__address {
  display: block;
}

.footer__copyright + .footer__address {
  margin-top: 22.4px;                      /* one empty line between copyright and address, like the original */
}

.footer__columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 10px;
}

.footer__heading {
  font-size: 18px;
  line-height: 27px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 7px;
}

.footer__link {
  color: var(--color-muted);
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--color-text);
}

/* Bottom strip under the footer */
.footer__bottom {
  min-height: 67px;
  padding: 25px var(--pad-x);
  background: var(--color-bg);
  box-shadow: inset 0 2px 0 var(--color-border);
  text-align: center;
}

.footer__bottom-text {
  color: var(--color-muted);
}

/* ======================================================================= NOT FOUND (404) */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 24px;
  text-align: center;
  background: radial-gradient(50% 50% at 50% 30%, rgb(var(--color-accent-rgb) / 0.25) 0%, rgba(0, 0, 0, 0) 100%);
}

.not-found__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
}

.not-found__brand {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
}

.not-found__title {
  margin-top: 25px;
}

.not-found__text {
  margin-top: 15px;
}

.not-found__home {
  margin-top: 30px;
  padding: 10px 18px;
  border-radius: var(--radius-card);
  background: var(--color-accent);
  font-size: 16px;
  line-height: 22.4px;
  font-weight: 500;
  color: var(--color-text);
  transition: opacity 0.2s ease;
}

.not-found__home:hover {
  opacity: 0.85;
}

/* ======================================================================= ANIMATIONS */
/* Nav slides down together with the hero title (original: spring damping 60 / stiffness 320, delay 1.2s) */
.nav {
  animation: nav-intro 1.1s var(--ease-spring) 1.2s both;
}

/* Stars fade in */
.hero__particles {
  animation: fade-in 2s var(--ease-out) 0.6s both;
}

/* Glow circles rotate in opposite directions */
.hero__circle--big {
  animation: spin-reverse 10s linear infinite;
}

.hero__circle--small {
  animation: spin 12s linear infinite;
}

/* main.js › initGlowPause adds .hero--offscreen while the hero is scrolled out of view */
.hero--offscreen .hero__circle {
  animation-play-state: paused;
}

/* Hero words blur in one by one (original: Framer text effect, spring damping 100 / stiffness 400).
   --i (set in render.js) is the word's index in its own line: title words start at 1.2s,
   subtitle words at 1.3s, each word 50ms after the previous one. */
.hero .word {
  animation: word-in 1.5s var(--ease-spring) both;
  animation-delay: calc(var(--words-start) + var(--i, 0) * 0.05s);
}

.hero__title {
  --words-start: 1.2s;
}

.hero__subtitle {
  --words-start: 1.3s;
}

.hero--intro-done .word {
  animation: none;                         /* frees the blur layers once the intro is over */
}

/* Scroll reveal (main.js › initReveal adds .is-revealed). Hidden start state only when JS runs.
   Used on: platforms block, games badge, publish header, step cards, contact box (same as the original). */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.3s var(--ease-spring), transform 1.3s var(--ease-spring);
  transition-delay: var(--reveal-delay, 0ms);
}

html.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Ticker has its own slower intro that starts on page load (original: delay .4s, 2s) */
.ticker {
  animation: ticker-in 2s var(--ease-out) 0.4s both;
}

/* Mobile dropdown menu */
.nav.is-open .nav__links {
  animation: menu-in 0.25s var(--ease-out) both;
}

@keyframes nav-intro {
  from { transform: translateY(-150px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

@keyframes word-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(10px); }
  to   { opacity: 1; filter: blur(0); transform: none; }
}

@keyframes ticker-in {
  from { opacity: 0; transform: perspective(1200px) translateY(80px) scale(0.9); }
  to   { opacity: 1; transform: none; }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}

/* Everything simply visible for people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  .nav,
  .hero__particles,
  .hero__circle--big,
  .hero__circle--small,
  .hero .word,
  .ticker,
  .nav.is-open .nav__links {
    animation: none;
  }

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .nav__toggle-line {
    transition: none;
  }
}

/* Printing: sections that were never scrolled into view must not print blank */
@media print {
  html.js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ======================================================================= RESPONSIVE › tablet (810–1199px) */
@media (max-width: 1199.98px) {
  .hero__title {
    font-size: 56px;
    line-height: 61.6px;
  }

  .hero__subtitle {                        /* measured from the original at 1000px: 16/24 (not 18/27) */
    font-size: 16px;
    line-height: 24px;
  }

  .section-title {
    font-size: 40px;
    line-height: 44px;
  }

  .lead {                                  /* measured from the original at 1000px */
    font-size: 16px;
    line-height: 24px;
  }

  .game-row__graphic {
    --graphic-pad: 20px;
  }
}

/* ======================================================================= RESPONSIVE › mobile (≤809px) */
@media (max-width: 809.98px) {
  :root {
    --pad-x: 24px;
    --section-pad-y: 64px;
    --nav-height: 64px;
  }

  /* NAV */
  .nav {
    height: 64px;
    padding: 16px 20px 14px;
  }

  .nav__inner {
    min-height: 34px;
  }

  .nav__logo {
    width: 34px;
    height: 34px;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }

  .nav.is-open .nav__links {
    display: flex;
  }

  .nav__link {
    padding: 0;
    font-size: 16px;
    line-height: 19.2px;
  }

  /* Without JS the menu button cannot work: hide it and show the links as a wrapped row under the brand */
  html:not(.js) .nav__toggle {
    display: none;
  }

  html:not(.js) .nav {
    height: auto;
  }

  html:not(.js) .nav__inner {
    flex-wrap: wrap;
  }

  html:not(.js) .nav__links {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: 100%;
    padding: 12px 0 0;
    border: 0;
  }

  /* HERO */
  .hero {
    height: auto;
    min-height: 0;
    padding: 180px var(--pad-x) 165px;
  }

  .hero__title {
    font-size: 45px;
    line-height: 49.5px;
  }

  /* PLATFORMS */
  .platforms {
    padding: 35px var(--pad-x);
  }

  /* GAMES — always graphic first, then text */
  .games__rows {
    padding-bottom: 0;
  }

  .game-row,
  .game-row--reverse {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "graphic" "text";
    row-gap: 20px;
  }

  .game-row__graphic {
    --graphic-pad: 10px;
    aspect-ratio: auto;
    height: 238px;
  }

  .game-row__image {                       /* fully visible, fitted to the box */
    left: 10px;
    top: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 10px);
    transform: none;
  }

  .game-row__text,
  .game-row__desc {
    max-width: none;
  }

  /* PUBLISH */
  .publish__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .step-card {
    min-height: 0;
    padding: 10px;
  }

  .section-title {
    font-size: 28px;
    line-height: 30.8px;
  }

  /* FOOTER */
  .footer__main {
    padding: 40px var(--pad-x) 35px;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
  }

  .footer__brand {
    padding-bottom: 47px;
  }

  .footer__brand-name {
    font-size: 26px;
    line-height: 31.2px;
  }

  .footer__columns {
    gap: 20px;
    padding-bottom: 20px;
  }
}
