/* ============================================================
   Pixelbyte styles
   All brand color lives in the token blocks below. To restyle the
   whole site, edit these variables (start with --accent).

   The brand green comes in two tokens, and the split matters:
     --accent       the literal brand green (#38FD56). Fills only:
                    button faces, tinted chips, rules, the mark.
     --accent-text  the same green stepped to a readable lightness for
                    the current theme. Anything that is *text* or a
                    thin line on the page background uses this.
   #38FD56 on the light canvas is 1.2:1, i.e. invisible, so never set it
   as a text color directly. --accent-ink is the inverse: what sits on
   top of an --accent fill.
   ============================================================ */

:root[data-theme="light"] {
  --canvas: #f5f4f1;
  --canvas-2: #efeeea;
  --surface: #ffffff;
  --ink: #15151a;
  --muted: #585b63;
  --faint: #8b8e97;
  --line: rgba(18, 18, 26, 0.09);
  --line-strong: rgba(18, 18, 26, 0.14);
  --accent: #38fd56;
  --accent-ink: #06210c;
  --accent-text: #087d19; /* 4.8:1 on --canvas */
  --accent-tint: rgba(8, 125, 25, 0.11);
  --live: #087d19;
  --scrim: rgba(245, 244, 241, 0.62);
  --shadow: 0 1px 2px rgba(18, 18, 26, 0.04), 0 14px 40px rgba(18, 18, 26, 0.07);
  --shadow-lift: 0 2px 8px rgba(18, 18, 26, 0.06), 0 30px 70px rgba(18, 18, 26, 0.12);
}

:root[data-theme="dark"] {
  --canvas: #141416;
  --canvas-2: #0f0f11;
  --surface: #1c1c20;
  --ink: #f1f0ed;
  --muted: #a2a3ab;
  --faint: #6d6e77;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #38fd56;
  --accent-ink: #06210c;
  --accent-text: #38fd56; /* 13.5:1 on --canvas, so the raw green is safe here */
  --accent-tint: rgba(56, 253, 86, 0.13);
  --live: #38fd56;
  --scrim: rgba(20, 20, 22, 0.60);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 16px 44px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 2px 10px rgba(0, 0, 0, 0.5), 0 34px 80px rgba(0, 0, 0, 0.62);
}

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --pad: clamp(1.25rem, 5vw, 3rem);
  --radius: 24px;
  --radius-sm: 16px;
  --ease: cubic-bezier(0.22, 0.68, 0.24, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The hidden attribute is only display:none at UA-stylesheet weight, so any
   later display rule (.form is display:grid) silently beats it. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }

/* The brand mark is a transparent pixel-art glyph, not a tile, so size it by
   height and let the 92:124 viewBox set the width. */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark { height: 30px; width: auto; aspect-ratio: 92 / 124; flex: none; }

/* Shared bits */
.label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 1rem;
}
.section__title {
  font-weight: 800;
  font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0;
}
.section__sub {
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  margin: 1.1rem 0 0;
  max-width: 46ch;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  backdrop-filter: saturate(1.7) blur(16px);
  -webkit-backdrop-filter: saturate(1.7) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.5s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__brand { display: inline-flex; align-items: center; gap: 0.6rem; }

/* ---------- Brand mark motion ----------
   Two layers on purpose. The <svg> owns the idle float and glow; the .brandmark
   wrapper owns the hover reaction. Splitting them means the hover transform
   doesn't have to fight the running keyframe for the transform property. */
.brandmark {
  display: inline-flex;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.32s var(--ease);
}
.brandmark .mark {
  animation: boltIdle 4s ease-in-out infinite;
  will-change: transform, filter;
}
@keyframes boltIdle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--accent) 22%, transparent));
  }
  50% {
    transform: translateY(-2.5px) rotate(-2deg);
    filter: drop-shadow(0 5px 11px color-mix(in srgb, var(--accent) 55%, transparent));
  }
}
.nav__brand:hover .brandmark,
.nav__brand:focus-visible .brandmark {
  transform: scale(1.18) rotate(7deg);
  filter: drop-shadow(0 0 13px color-mix(in srgb, var(--accent) 70%, transparent));
}
/* Speed the float up on hover so it reads as "charged up" rather than frozen. */
.nav__brand:hover .brandmark .mark { animation-duration: 1.1s; }
.nav__brand:active .brandmark { transform: scale(1.06) rotate(2deg); transition-duration: 0.09s; }
.nav__brand .nav__word { transition: color 0.25s var(--ease); }
.nav__brand:hover .nav__word { color: var(--accent-text); }
.nav__word { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.03em; }
.nav__links { margin-left: auto; display: flex; gap: 1.9rem; font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.nav__links a { transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 0.7rem; }

.theme {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.5s var(--ease);
}
.theme:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.theme__icon { width: 19px; height: 19px; position: absolute; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease); }
.theme__icon--sun { fill: none; stroke: currentColor; stroke-width: 1.8; }
.theme__icon--moon { fill: currentColor; }
:root[data-theme="light"] .theme__icon--moon { opacity: 0; transform: rotate(-40deg) scale(0.6); }
:root[data-theme="dark"] .theme__icon--sun { opacity: 0; transform: rotate(40deg) scale(0.6); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.72rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 42%, transparent); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--accent-text); color: var(--accent-text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 6rem var(--pad) 4rem;
  overflow: clip;
}
.hero__bg {
  position: absolute; inset: -18% 0 -6% 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  filter: blur(9px) saturate(0.95);
  opacity: 0.5;
  will-change: transform;
  pointer-events: none;
}
/* Each row is an infinite left-drifting marquee of game thumbnails.
   The track holds two identical tile sets, so translateX(-50%) loops seamlessly. */
.hero__row { flex: 1 0 0; display: flex; overflow: hidden; }
.hero__track {
  display: flex;
  animation: marquee var(--dur, 90s) linear infinite;
  will-change: transform;
}
.hero__track .tile {
  width: 320px; flex: none; margin-right: 14px;
  border-radius: 20px;
  background-size: cover; background-position: center;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 48% at 50% 44%, var(--canvas) 0%, color-mix(in srgb, var(--canvas) 72%, transparent) 55%, transparent 100%),
    linear-gradient(to bottom, color-mix(in srgb, var(--canvas) 55%, transparent) 0%, color-mix(in srgb, var(--canvas) 30%, transparent) 45%, var(--canvas) 94%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; max-width: 40rem; }
/* A transparent glyph, so the lift comes from a drop-shadow on the artwork
   itself. A box-shadow would draw a rectangle around empty space. */
/* ---------- Hero mark ----------
   A slow breathing pulse rather than a swing: the bolt scales up and settles
   while a soft charge aura swells behind it, both on the same 3.8s clock so
   they read as one beat. Hover speeds the beat up and pushes it forward. */
.heromark {
  --bolt: 84px;
  position: relative;
  display: inline-block;
  margin: 0 auto 1.6rem;
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1), filter 0.45s var(--ease);
}
.heromark::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: calc(var(--bolt) * 2.5);
  height: calc(var(--bolt) * 2.5);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--accent) 13%, transparent) 0%,
    color-mix(in srgb, var(--accent) 4%, transparent) 38%,
    transparent 62%
  );
  animation: heroAura 3.8s ease-in-out infinite;
  pointer-events: none;
}
.hero__mark {
  position: relative;
  z-index: 1;
  display: block;
  height: var(--bolt);
  width: auto;
  aspect-ratio: 92 / 124;
  animation: heroBolt 3.8s ease-in-out infinite;
  will-change: transform, filter;
}
@keyframes heroBolt {
  0%, 100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 8px 18px color-mix(in srgb, var(--accent) 24%, transparent));
  }
  50% {
    transform: scale(1.065) translateY(-5px);
    filter: drop-shadow(0 12px 26px color-mix(in srgb, var(--accent) 38%, transparent));
  }
}
@keyframes heroAura {
  0%, 100% { opacity: 0.28; transform: translate(-50%, -50%) scale(0.85); }
  50%      { opacity: 0.55; transform: translate(-50%, -50%) scale(1.08); }
}
.heromark:hover {
  transform: scale(1.13) translateY(-3px);
  filter: drop-shadow(0 0 22px color-mix(in srgb, var(--accent) 34%, transparent));
}
.heromark:hover .hero__mark,
.heromark:hover::before { animation-duration: 1.25s; }
.hero__title {
  font-weight: 800;
  font-size: clamp(3rem, 1.6rem + 7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0;
}
.hero__gg { color: var(--accent-text); }
.hero__tag {
  font-size: clamp(0.78rem, 0.7rem + 0.3vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 1.1rem 0 0;
}
.hero__sub {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.3rem);
  color: var(--muted);
  max-width: 34ch;
  margin: 1.4rem auto 2.2rem;
  line-height: 1.5;
}
.hero__cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint);
}
.hero__scroll-line { width: 1.5px; height: 34px; background: var(--line-strong); position: relative; overflow: hidden; border-radius: 2px; }
.hero__scroll-line i { position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--accent); animation: scrolldrop 1.9s var(--ease) infinite; }
@keyframes scrolldrop { 0% { top: -60%; } 60% { top: 110%; } 100% { top: 110%; } }

/* ---------- Stats band ---------- */
.stats-band { padding: clamp(3rem, 6vw, 5rem) var(--pad); }
.stats-band__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}
.statcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.statcard__icon {
  width: 46px; height: 46px; margin: 0 auto 1.1rem;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--accent-tint);
  color: var(--accent-text);
}
.statcard__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.statcard__num { font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.statcard__label { color: var(--muted); font-size: 0.95rem; margin-top: 0.5rem; }

/* Live players: reads as a live readout, not a frozen figure */
.statcard--live .statcard__num { color: var(--live); }
.statcard__icon--live { background: color-mix(in srgb, var(--live) 14%, transparent); position: relative; }
.statcard__pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 60%, transparent);
  animation: pulse 2.2s infinite;
}
.statcard__label--live { display: inline-flex; align-items: center; gap: 0.45rem; justify-content: center; flex-wrap: wrap; }
.livetag {
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--live);
  background: color-mix(in srgb, var(--live) 13%, transparent);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(4rem, 8vw, 7rem) var(--pad); }
.section__head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.8rem); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .section__sub { margin-left: auto; margin-right: auto; }

/* ---------- Featured game ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: clamp(1.5rem, 3vw, 2.2rem);
}
.feature__media, .card__media {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  background: var(--canvas-2);
}
.shot {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: blur(16px); transform: scale(1.06);
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease), transform 1.2s var(--ease);
}
.shot.loaded { opacity: 1; filter: none; transform: none; }
.feature__media:hover .shot, .card__media:hover .shot { transform: scale(1.03); }

.badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.78rem; font-weight: 600;
  padding: 0.34rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  color: var(--ink);
}
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.feature__body { padding: clamp(0.4rem, 2vw, 1.4rem) clamp(0.4rem, 2vw, 1.4rem) clamp(0.4rem, 2vw, 1.4rem) 0; }
.feature__title { font-weight: 800; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 0.8rem; }
.feature__desc { color: var(--muted); margin: 0 0 1.8rem; max-width: 42ch; }

/* Metrics */
.metrics { display: flex; gap: clamp(1.4rem, 3vw, 2.6rem); margin: 0 0 2rem; }
.metric { display: flex; flex-direction: column; }
.metric__num { font-weight: 800; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.metric__label { color: var(--faint); font-size: 0.82rem; font-weight: 500; margin-top: 0.15rem; }
.metrics--mini { gap: 1.6rem; margin-bottom: 0; }
.metrics--mini .metric__num { font-size: 1.25rem; }

/* ---------- Games grid ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 3vw, 1.8rem); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.card__media { border-radius: 0; }
.card__body { padding: clamp(1.2rem, 2.5vw, 1.7rem); }
.card__title { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.025em; margin: 0 0 0.5rem; }
.card__desc { color: var(--muted); font-size: 0.96rem; margin: 0 0 1.5rem; }

/* The lead project gets the wider column and the accent treatment. Cards are
   stretched to a shared height: the narrower column would otherwise end well
   short of the lead, since a 16/9 box gets shorter as it gets narrower. */
.grid--lead { grid-template-columns: 1.62fr 1fr; align-items: stretch; }
.grid--lead .card { display: flex; flex-direction: column; }
.grid--lead .card--soon .card__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 200px; }
.card--lead { border-color: color-mix(in srgb, var(--accent) 38%, var(--line)); }
.card--lead:hover { border-color: var(--accent); }
.card--lead .card__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 0.35rem; }
.card__tagline {
  margin: 0;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--accent-text);
}

/* ---------- Byline (studio attribution on games) ---------- */
.byline {
  color: var(--faint);
  font-size: 0.85rem;
  font-weight: 500;
  margin: -0.2rem 0 0.9rem;
}

/* ---------- Studio / story ---------- */
.studio__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.studio__visual { display: grid; place-items: center; overflow: clip; padding: 12px; }
/* Brand plate. Deliberately still: the nav and hero marks already carry the
   motion, and a third animated bolt would be noise. */
.studiomark {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--canvas-2);
  box-shadow: var(--shadow);
}
/* Pixel grid backdrop, dialled well below the .pat used on game cards so it
   sits behind the mark instead of competing with it. */
.studiomark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 20%, transparent) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: center;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 22%, transparent 78%);
          mask-image: radial-gradient(circle at 50% 50%, #000 22%, transparent 78%);
}
.studiomark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 62%);
}
.studiomark__bolt {
  position: relative;
  z-index: 1;
  height: 46%;
  width: auto;
  aspect-ratio: 92 / 124;
  filter: drop-shadow(0 10px 26px color-mix(in srgb, var(--accent) 32%, transparent));
}
.studio__text { color: var(--muted); font-size: 1.08rem; max-width: 46ch; margin: 1.4rem 0 2rem; }
.studio__text strong { color: var(--ink); font-weight: 700; }
.ministats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); }
.ministat { display: flex; flex-direction: column; }
.ministat__num { font-weight: 800; font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); letter-spacing: -0.04em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.ministat__label { color: var(--muted); font-size: 0.9rem; margin-top: 0.2rem; }

/* ---------- Join / open roles ---------- */
.join__grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.join__text { color: var(--muted); font-size: 1.08rem; max-width: 44ch; margin: 1.4rem 0 1.8rem; }
.join__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.join__points li {
  position: relative;
  padding-left: 1.85rem;
  color: var(--muted);
  font-size: 0.98rem;
}
/* Brand-green check, drawn in CSS so it needs no icon font or extra markup. */
.join__points li::before {
  content: "";
  position: absolute; left: 0; top: 0.42em;
  width: 0.5rem; height: 0.85rem;
  border: solid var(--accent-text);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Form ---------- */
.form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  display: grid;
  gap: 1.25rem;
}
/* Honeypot: hidden from people, still fillable by bots. Not display:none,
   which some bots detect and skip. */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: grid; gap: 0.5rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label {
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  display: flex; align-items: baseline; gap: 0.5rem; padding: 0;
}
.req { font-size: 0.72rem; font-weight: 600; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }

.input {
  width: 100%;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.3s var(--ease);
}
.input::placeholder { color: var(--faint); }
.input:hover { border-color: var(--faint); }
.input:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.input--area { resize: vertical; min-height: 5.5rem; line-height: 1.5; }

/* Role picker: real checkboxes, restyled as pills. The input stays in the
   accessibility tree and keeps keyboard behaviour; only the <span> is painted. */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { margin: 0; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.chip span {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.92rem; font-weight: 500;
  color: var(--muted);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.chip span:hover { border-color: var(--faint); color: var(--ink); }
.chip input:checked + span {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.chip input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.chip input:active + span { transform: scale(0.97); }

.form__submit { justify-content: center; width: 100%; }
.form__note { margin: 0; font-size: 0.85rem; color: var(--faint); line-height: 1.5; text-align: center; }
.form__note a { color: var(--accent-text); font-weight: 600; }

/* Success panel, swapped in for the form after a successful submit. */
.form__done {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.1rem);
  text-align: center;
}
.form__check {
  width: 46px; height: 46px; margin: 0 auto 1rem;
  display: block;
  fill: none; stroke: var(--accent-text); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.form__done-title { font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; margin: 0 0 0.5rem; }
.form__done-text { color: var(--muted); margin: 0; max-width: 34ch; margin-inline: auto; }

/* ---------- Community ---------- */
/* auto-fit so the row stays balanced whatever the link count is: two cards
   split the width, three would each take a third. */
.links {
  max-width: min(var(--wrap), 780px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(1rem, 2.5vw, 1.4rem);
}
.link {
  position: relative;
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.6rem 1.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.link:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.link__label { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.link__meta { color: var(--faint); font-size: 0.9rem; }
.link__arrow { position: absolute; top: 1.5rem; right: 1.7rem; color: var(--faint); transition: transform 0.25s var(--ease), color 0.25s var(--ease); }
.link:hover .link__arrow { transform: translate(3px, -3px); color: var(--accent-text); }

/* ---------- Footer ---------- */
.foot {
  max-width: var(--wrap); margin: 0 auto;
  padding: 3rem var(--pad) 4rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.5rem;
}
.foot__brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.foot__brand .mark { height: 26px; }
.foot__note { color: var(--muted); font-size: 0.9rem; margin: 0; }
.foot__note a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.foot__copy { margin: 0 0 0 auto; color: var(--faint); font-size: 0.85rem; }

/* ---------- Reveal (only when JS present) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .stats-band__inner { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__body { padding: 0.4rem 0.4rem 1rem; }
  .grid, .grid--lead { grid-template-columns: 1fr; }
  .studio__grid { grid-template-columns: 1fr; }
  .studio__visual { order: 2; }
  .join__grid { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
}

/* iOS zooms the page in on any input whose text is under 16px. */
@media (max-width: 640px) {
  .input { font-size: 16px; }
}

/* ============================================================
   PLACEHOLDER STATE
   Everything below styles the "nothing announced yet" version of the site:
   unannounced game cards, em-dash stats, and the brand pixel pattern that
   stands in for game thumbnails. Delete this block once real games return.
   ============================================================ */

/* Brand pixel pattern: the stand-in for any missing artwork. */
.pat {
  background-color: var(--canvas-2);
  background-image: radial-gradient(color-mix(in srgb, var(--accent-text) 26%, transparent) 1.6px, transparent 1.7px);
  background-size: 18px 18px;
  background-position: center;
}
/* Both of these lose to the .cover rules on their parents, so restate them. */
.hero__track .tile.pat { background-size: 18px 18px; }

/* The hero backdrop is tuned to sit behind photographic thumbnails, and a 9px
   blur erases a dot grid entirely. When it's holding the pattern instead,
   ease off the blur and scale the dots up so the tile mosaic still reads. */
.hero__bg--pat { filter: blur(1.5px); opacity: 0.9; }
.hero__bg--pat .tile.pat { background-size: 46px 46px; }

/* Fills a .card__media box that has no <img> in it. */
.card__media .pat { position: absolute; inset: 0; }

/* Unannounced game cards: not links, so no lift-on-hover affordance. */
.card--soon { box-shadow: var(--shadow); }
.card--soon:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.badge--soon {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
}
.card--soon .card__desc { margin-bottom: 0; }

/* Placeholder figures read as "not yet", not as a broken number. */
.statcard__num--soon, .ministat__num--soon { color: var(--faint); letter-spacing: -0.01em; }
.statcard__num--soon { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.ministat__num--soon { font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.6rem); }

/* A community card with nowhere to go yet. */
.link--soon { cursor: default; opacity: 0.62; }
.link--soon:hover { transform: none; border-color: var(--line); box-shadow: var(--shadow); }
.link--soon:hover .link__arrow { transform: none; color: var(--faint); }

@media (min-width: 901px) {
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shot { opacity: 1; filter: none; transform: none; transition: opacity 0.3s; }
  .badge__dot, .hero__scroll-line i, .statcard__pulse { animation: none; }
  .brandmark .mark { animation: none; }
  .brandmark { transition-duration: 0.01ms; }
  .hero__mark, .heromark::before { animation: none; }
  .heromark { transition-duration: 0.01ms; }
  .hero__track { animation: none; }
  * { scroll-behavior: auto !important; }
}
