/* ==========================================================================
   Reactor games website. Plain CSS, no frameworks.
   ========================================================================== */

@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Lilita One";
  src: url("../fonts/lilita-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0a0f1d;
  --bg-2: #0f1628;
  --surface: #151d33;
  --surface-2: #1b2541;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2fb;
  --muted: #9ba7c4;
  --faint: #6c7896;

  --yellow: #ffc933;
  --yellow-ink: #1a1405;
  --green: #4cc574;
  --blue: #4f74ff;
  --red: #ff5d5d;
  --violet: #9b7bff;

  --radius-s: 10px;
  --radius: 18px;
  --radius-l: 28px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);

  --font-body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Lilita One", "Roboto", system-ui, sans-serif;

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --hazard: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, #141414 14px 28px);

  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img,
video {
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-s);
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 29, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 15, 29, 0.88);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}

.brand svg {
  width: 30px;
  height: 30px;
  color: var(--yellow);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover svg {
  transform: rotate(90deg);
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav .nav-cta {
  margin-left: 8px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-weight: 700;
}

.nav .nav-cta:hover {
  background: #ffd75e;
  color: var(--yellow-ink);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: rgba(10, 15, 29, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }

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

  .nav a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .nav .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.07);
}

.btn-ghost svg {
  width: 18px;
  height: 18px;
}

/* "Get it on Google Play" button */
.play-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 22px 8px 16px;
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  text-decoration: none;
  line-height: 1.1;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.play-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.9);
}

.play-btn svg {
  width: 30px;
  height: 30px;
  flex: none;
}

.play-btn small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.play-btn strong {
  display: block;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.play-btn.is-small {
  min-height: 48px;
  padding: 6px 16px 6px 12px;
  border-radius: 12px;
  gap: 10px;
}

.play-btn.is-small svg {
  width: 22px;
  height: 22px;
}

.play-btn.is-small small {
  font-size: 0.6rem;
}

.play-btn.is-small strong {
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   Shared section bits
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(72px, 10vw, 128px);
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 8px;
  border-radius: 2px;
  background: var(--hazard);
  background-size: 28px 28px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  letter-spacing: 0.005em;
  line-height: 1.04;
}

.section-lead {
  margin-top: 18px;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
}

.section-head {
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-head.is-center {
  text-align: center;
}

.section-head.is-center .section-lead {
  margin-inline: auto;
}

.hl {
  color: var(--yellow);
}

/* Reveal on scroll (enabled by JS only, so content is visible without it) */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   Hero (Pushing Machine)
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 96px) clamp(64px, 9vw, 120px);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  /* Blueprint grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 900px;
  height: 900px;
  right: -260px;
  top: -260px;
  background:
    radial-gradient(circle at 40% 40%, rgba(79, 116, 255, 0.35), transparent 55%),
    radial-gradient(circle at 65% 65%, rgba(76, 197, 116, 0.22), transparent 55%);
  filter: blur(20px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-badge img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.hero-badge b {
  color: var(--text);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 7.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: 0.005em;
}

.hero h1 .stripe {
  color: var(--yellow);
  white-space: nowrap;
}

.hero-lead {
  margin-top: 26px;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 12px 36px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.stats li {
  position: relative;
}

.stats li + li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--line-strong);
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.1;
}

.stats span {
  color: var(--faint);
  font-size: 0.86rem;
}

.stats .star {
  color: var(--yellow);
  font-size: 0.8em;
}

/* Phone mockup */
.phone {
  position: relative;
  width: min(100%, 330px);
  margin-inline: auto;
  padding: 12px;
  border-radius: 46px;
  background: linear-gradient(145deg, #2a3350, #0e1322 60%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 50px 100px -30px rgba(0, 0, 0, 0.85),
    0 30px 60px -40px rgba(79, 116, 255, 0.6);
}

.phone::before {
  /* camera notch */
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #05070d;
  box-shadow: 0 0 0 2px #1b2236;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 36px;
  background: #121a33;
}

.phone-screen video,
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-visual {
  position: relative;
}

.hero-visual .tag {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(21, 29, 51, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: 0.88rem;
  line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}

.hero-visual .tag b {
  display: block;
  font-size: 0.98rem;
}

.hero-visual .tag span {
  color: var(--muted);
}

.hero-visual .tag-1 {
  top: 14%;
  left: -6%;
}

.hero-visual .tag-2 {
  bottom: 16%;
  right: -4%;
  animation-delay: -3s;
}

.tag-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: none;
}

.tag-icon svg {
  width: 20px;
  height: 20px;
}

.tag-icon.is-yellow {
  background: rgba(255, 201, 51, 0.16);
  color: var(--yellow);
}

.tag-icon.is-green {
  background: rgba(76, 197, 116, 0.16);
  color: var(--green);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

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

  .stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 420px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .stats {
    grid-template-columns: repeat(2, auto);
    gap: 20px 40px;
  }

  .stats li:nth-child(3)::before {
    display: none;
  }

  .hero-visual .tag-1 {
    left: -2%;
  }

  .hero-visual .tag-2 {
    right: -2%;
  }

  .phone {
    width: min(100%, 290px);
  }
}

/* --------------------------------------------------------------------------
   Hazard divider
   -------------------------------------------------------------------------- */

.hazard-band {
  height: 14px;
  background: var(--hazard);
  background-size: 28px 28px;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   How to play
   -------------------------------------------------------------------------- */

.rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: rule;
}

.rule {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  counter-increment: rule;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rule:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.rule h3::before {
  content: "0" counter(rule);
  margin-right: 10px;
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 400;
}

.rule-art {
  margin-bottom: 22px;
}

.rule-art img {
  /* Same cell size on every card: 5 cells fill the width, 4 cells take 4/5 of it. */
  width: min(calc(100% * var(--cells) / 5), calc(60px * var(--cells)));
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0 0 3px #3d5a3d, 0 0 0 4px rgba(204, 255, 204, 0.35), 0 12px 24px -12px rgba(0, 0, 0, 0.8);
}

.rule h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.rule p {
  color: var(--muted);
  font-size: 0.96rem;
}

@media (max-width: 1020px) {
  .rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .rules {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.gallery-section {
  background: linear-gradient(180deg, var(--bg) 0%, #0d1530 50%, var(--bg) 100%);
}

.gallery-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.gallery-controls {
  display: flex;
  gap: 10px;
  flex: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(200px, 22vw, 260px);
  gap: 20px;
  margin: 0;
  padding: 8px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 28px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery li {
  scroll-snap-align: start;
}

.gallery img {
  width: 100%;
  aspect-ratio: 788 / 1400;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform 0.25s ease;
}

.gallery li:hover img {
  transform: translateY(-6px);
}

@media (max-width: 640px) {
  .gallery-controls {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Difficulty ladder
   -------------------------------------------------------------------------- */

.ladder-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.ladder {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  height: 340px;
  margin: 0;
  padding: 24px 22px 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px) 0 0 / 100% 25%,
    var(--bg-2);
  overflow: hidden;
}

.ladder li {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.ladder .bar {
  width: 100%;
  height: var(--h);
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 55%, #000));
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--i) * 60ms);
}

.js .ladder:not(.is-visible) .bar {
  transform: scaleY(0.04);
}

.ladder .label {
  position: absolute;
  bottom: calc(var(--h) + 10px);
  left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  transition: opacity 0.6s ease;
  transition-delay: calc(var(--i) * 60ms + 300ms);
}

.js .ladder:not(.is-visible) .label {
  opacity: 0;
}

.ladder-notes {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ladder-notes li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--muted);
}

.ladder-notes b {
  color: var(--text);
}

.dot {
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 3px;
}

@media (max-width: 900px) {
  .ladder-wrap {
    grid-template-columns: 1fr;
  }

  .ladder {
    height: 300px;
    gap: 5px;
    padding-inline: 14px;
  }

  .ladder .label {
    font-size: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   Feature grid
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.feature:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c, var(--yellow)) 16%, transparent);
  color: var(--c, var(--yellow));
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.96rem;
}

.feature.is-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(155, 123, 255, 0.18), transparent 55%),
    var(--bg-2);
}

.feature.is-wide img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .features {
    grid-template-columns: 1fr;
  }

  .feature.is-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .feature.is-wide img {
    max-width: 200px;
  }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 7vw, 72px) clamp(24px, 6vw, 72px);
  border-radius: var(--radius-l);
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.25), transparent 40%),
    linear-gradient(135deg, #ffcf47, #ffb21c);
  color: var(--yellow-ink);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  background: repeating-linear-gradient(-45deg, #1a1405 0 14px, transparent 14px 28px);
  opacity: 0.85;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.02;
}

.cta-band p {
  margin-top: 12px;
  max-width: 48ch;
  font-size: 1.08rem;
  opacity: 0.85;
}

.cta-band .cta-icon {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  box-shadow: 0 20px 40px -16px rgba(60, 40, 0, 0.6);
}

.cta-band-side {
  display: flex;
  align-items: center;
  gap: 22px;
}

@media (max-width: 820px) {
  .cta-band {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-band p {
    margin-inline: auto;
  }

  .cta-band-side {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --------------------------------------------------------------------------
   Pushing Machine 3D
   -------------------------------------------------------------------------- */

.pm3d {
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(76, 197, 116, 0.16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 20%, rgba(79, 116, 255, 0.14), transparent 70%),
    #080c18;
  border-block: 1px solid var(--line);
}

.pm3d-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.app-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.app-title img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.app-title .eyebrow {
  margin-bottom: 6px;
}

.app-title h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 28px 0 34px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.checklist svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--green);
}

.checklist span {
  color: var(--muted);
}

.checklist b {
  color: var(--text);
  font-weight: 600;
}

.fan {
  position: relative;
  height: clamp(420px, 48vw, 560px);
}

.fan img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(170px, 19vw, 240px);
  aspect-ratio: 788 / 1400;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fan img:nth-child(1) {
  transform: translate(-115%, -46%) rotate(-9deg);
}

.fan img:nth-child(2) {
  z-index: 2;
  transform: translate(-50%, -54%);
}

.fan img:nth-child(3) {
  transform: translate(15%, -46%) rotate(9deg);
}

.fan:hover img:nth-child(1) {
  transform: translate(-128%, -46%) rotate(-12deg);
}

.fan:hover img:nth-child(3) {
  transform: translate(28%, -46%) rotate(12deg);
}

@media (max-width: 900px) {
  .pm3d-grid {
    grid-template-columns: 1fr;
  }

  .fan {
    order: -1;
    height: 400px;
  }

  .fan img {
    width: 180px;
  }
}

@media (max-width: 480px) {
  .fan {
    height: 330px;
  }

  .fan img {
    width: 140px;
    border-radius: 18px;
  }
}

/* --------------------------------------------------------------------------
   More games
   -------------------------------------------------------------------------- */

.more-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.game-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}

.game-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}

.game-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.game-card:hover .game-card-media img {
  transform: scale(1.04);
}

.game-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 14px;
  padding: 24px 26px 26px;
}

.game-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.game-card-head img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
}

.game-card h3 {
  font-size: 1.32rem;
}

.game-card .genre {
  color: var(--faint);
  font-size: 0.88rem;
}

.game-card p {
  color: var(--muted);
  font-size: 0.97rem;
}

.game-card-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.text-link {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

@media (max-width: 760px) {
  .more-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--line);
  background: #070b16;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding-block: 56px 40px;
}

.footer-grid h2 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-grid a {
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-about p {
  margin-top: 14px;
  max-width: 34ch;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-block: 22px 32px;
  background: linear-gradient(var(--line), var(--line)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  color: var(--faint);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

/* --------------------------------------------------------------------------
   Legal pages (privacy policies)
   -------------------------------------------------------------------------- */

.legal-hero {
  padding-block: clamp(48px, 8vw, 88px) clamp(28px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 100% at 80% 0%, rgba(79, 116, 255, 0.16), transparent 70%),
    var(--bg);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--faint);
  font-size: 0.9rem;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--faint);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

.legal-title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.legal-title img {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  flex: none;
}

.legal-title h1 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
}

.legal-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(36px, 5vw, 56px);
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 0.9rem;
}

.toc h2 {
  margin-bottom: 12px;
  color: var(--faint);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line);
}

.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
}

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

.toc a.is-active {
  color: var(--text);
  border-left-color: var(--yellow);
}

.prose {
  max-width: 74ch;
  color: #cfd6e8;
  line-height: 1.75;
}

.prose h2 {
  margin: 52px 0 14px;
  color: var(--text);
  font-size: 1.45rem;
  scroll-margin-top: 96px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 30px 0 10px;
  color: var(--text);
  font-size: 1.12rem;
}

.prose p,
.prose ul,
.prose ol,
.prose table {
  margin: 0 0 16px;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--faint);
}

.prose a {
  color: var(--yellow);
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--text);
}

.prose code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.88em;
}

.summary-card {
  margin: 0 0 40px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 201, 51, 0.3);
  border-radius: var(--radius);
  background: rgba(255, 201, 51, 0.06);
}

.summary-card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.summary-card ul {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.prose table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.93rem;
  line-height: 1.55;
}

.prose th,
.prose td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}

.prose tr:last-child td {
  border-bottom: 0;
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-2);
  }

  .legal-title img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
}

/* Privacy index */
.policy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-block: clamp(36px, 5vw, 56px);
}

.policy-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.policy-card:hover {
  border-color: var(--line-strong);
  background: var(--surface);
  transform: translateY(-3px);
}

.policy-card img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  flex: none;
}

.policy-card h2 {
  font-size: 1.12rem;
}

.policy-card p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-card .arrow {
  margin-left: auto;
  color: var(--faint);
  transition: transform 0.2s ease, color 0.2s ease;
}

.policy-card:hover .arrow {
  color: var(--yellow);
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .policy-list {
    grid-template-columns: 1fr;
  }
}

/* 404 */
.not-found {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.not-found h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(4rem, 14vw, 9rem);
  color: var(--yellow);
}

.not-found p {
  margin: 8px auto 28px;
  max-width: 40ch;
  color: var(--muted);
}
