/* ============================================================
   Kulfi website — shared styles
   Dark mode only. Mobile-first. Cherry accents.
   ============================================================ */

@import url("tokens.css");

/* ─── Tweakable runtime vars (overridden by Tweaks panel) ─── */
:root {
  --accent-a: #ff6b8a;
  --accent-b: #ff9b78;
  --accent-grad: linear-gradient(89deg, var(--accent-a), var(--accent-b));
  --bg-tint: rgba(255, 107, 138, 0.04);  /* warm wash on body */
  --hero-treatment: "collage";             /* 'collage' | 'still' | 'minimal' */
}

* { box-sizing: border-box; }

html, body {
  background: var(--surface);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--bg-tint), transparent 60%);
  color: var(--text);
  font: var(--font-body);
  -webkit-font-smoothing: antialiased;
  margin: 0;
  overflow-x: hidden;
}

::selection { background: var(--accent-a); color: var(--cherry-1000); }

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

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

/* ─── Layout helpers ─── */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
@media (min-width: 768px) {
  .wrap { padding: 0 var(--space-8); }
}

.eyebrow {
  font: var(--font-eyebrow);
  color: var(--subtext);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: var(--fs-3xs);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px var(--accent-a);
}

.section-title {
  font: var(--fw-bold) clamp(28px, 4vw, 48px)/1.05 var(--font-ui);
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.section-sub {
  color: var(--subtext);
  font-size: var(--fs-lg);
  max-width: 560px;
  margin: 16px 0 0;
  text-wrap: pretty;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  padding: 18px 0;
  transition: background var(--duration-normal) var(--ease-standard),
              backdrop-filter var(--duration-normal) var(--ease-standard);
}
.nav.scrolled {
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  /* Cap the script wordmark; preserve PNG transparency, keep it white. */
}
.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
  /* PNG ships as ~#f5f5f5 — force to pure white. */
  filter: brightness(0) invert(1);
}
.nav-logo {
  transition: opacity var(--duration-fast);
}
.nav-logo:hover { opacity: 0.85; }
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links {
  display: none;
  gap: 32px;
  font-size: var(--fs-sm);
  color: var(--grey-200);
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color var(--duration-fast);
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--accent-grad);
  transition: right var(--duration-normal) var(--ease-standard);
}
.nav-links a:hover::after { right: 0; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-grad);
  color: var(--on-brand);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font: var(--font-button);
  font-size: var(--fs-sm);
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-cherry-glow);
}
.nav-cta svg { width: 14px; height: 14px; }

/* ─── Mobile hamburger + drawer ─── */
.nav-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--grey-100);
  z-index: calc(var(--z-sticky) + 2);
  -webkit-tap-highlight-color: transparent;
}
.nav-burger-icon,
.nav-burger-close {
  width: 26px;
  height: 26px;
  display: block;
  transition: opacity var(--duration-fast) var(--ease-standard),
              transform var(--duration-normal) var(--ease-spring);
}
.nav-burger-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}
.nav-burger { position: relative; }
.nav-burger[aria-expanded="true"] .nav-burger-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}
.nav-burger[aria-expanded="true"] .nav-burger-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

.nav-drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 88px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: calc(var(--z-sticky) + 1);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform var(--duration-normal) var(--ease-standard);
  pointer-events: none;
}
.nav-drawer.is-open {
  transform: translateY(0);
  pointer-events: auto;
}
.nd-link {
  display: block;
  padding: 14px 4px;
  font: var(--fw-regular) 18px/1.2 var(--font-ui);
  color: var(--grey-100);
  border-bottom: 1px solid var(--border);
}
.nd-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 24px;
  background: var(--accent-grad);
  color: var(--on-brand);
  border-radius: var(--radius-pill);
  font: var(--font-button);
  font-size: var(--fs-md);
  align-self: flex-start;
}
.nd-cta svg { width: 16px; height: 16px; }

/* Hide drawer + burger on desktop */
@media (min-width: 768px) {
  .nav-burger,
  .nav-drawer { display: none; }
}

/* Hide desktop CTA in nav-right on mobile (drawer has its own CTA) */
@media (max-width: 767px) {
  .nav-right .nav-cta { display: none; }
  .nav-right { gap: 12px; }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  /* padding-bottom controls gap to Arcade (Arcade has 0 top padding) */
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px clamp(80px, 10vw, 120px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  /* On-brand fallback shown while the hero video is loading, or if a
     silent-video power-save policy ever pauses playback. Sits behind
     the <video> so the moment it has frames, they cover this up. */
  background:
    radial-gradient(ellipse 90% 70% at 50% 35%, rgba(255, 107, 138, 0.35), transparent 70%),
    radial-gradient(ellipse 80% 60% at 70% 90%, rgba(255, 155, 120, 0.28), transparent 70%),
    linear-gradient(180deg, #1a0506 0%, #0a0202 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
}

.hero-title {
  font-family: var(--font-brand);                    /* Fugaz One */
  font-weight: 400;
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--grey-100);
  margin: 0;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-ui);                       /* Inria Sans */
  font-weight: var(--fw-regular);
  font-size: clamp(16px, 2.2vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--grey-200);
  margin: 0;
  max-width: none;
}
@media (min-width: 480px) {
  .hero-sub { white-space: nowrap; }
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 18px 36px;
  border-radius: var(--radius-pill);
  background: var(--gradient-cherry);
  color: var(--on-brand);
  font: var(--font-button);
  font-size: var(--fs-md);
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast);
}
.hero-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: var(--shadow-cherry-glow);
}

/* ─── Generic section spacing ─────────────────────────────
   Unified rhythm: each section owns its TOP padding only.
   Adjacent-section gap = lower section's top padding.
   Target gap between sections: ~80–120px (fluid).
   ─────────────────────────────────────────────────────── */
section.block {
  padding: clamp(80px, 10vw, 120px) 0 0;
  position: relative;
}

/* ─── GAMES SECTION ─────────────────────────────────────── */
.games-section { padding: clamp(80px, 10vw, 120px) 0 0; }

.games-head {
  text-align: center;
  /* Tightened: header now reads as part of the rows below it */
  margin-bottom: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.games-title {
  font-family: var(--font-brand);                  /* Fugaz One */
  font-weight: 400;
  font-size: clamp(32px, 5.5vw, 48px);             /* spec: 48 */
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: balance;
  margin: 0;
}
.games-sub {
  font-family: var(--font-ui);                     /* Inria Sans */
  font-size: clamp(20px, 3.4vw, 34px);             /* spec: 34 */
  line-height: 1.25;
  color: var(--grey-300);
  margin: 0;
}
.games-sub em {
  font-style: italic;
  font-weight: 300;
  background: var(--gradient-cherry);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ─── Row layout — alternating sides ─── */
.games-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  /* Distinct but related — each row is its own subsection */
  margin-bottom: clamp(60px, 8vw, 88px);
}
.games-row:last-child { margin-bottom: 0; }

@media (min-width: 1024px) {
  .games-row {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 48px;
  }
  .games-row.reverse {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  }
  .games-row.reverse .row-text  { order: 2; }
  .games-row.reverse .row-cards { order: 1; }
}

.row-text h3 {
  font-family: var(--font-ui);                      /* Inria Sans */
  font-weight: var(--fw-bold);
  font-size: clamp(24px, 3.4vw, 32px);              /* spec: 32 */
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0 0 16px;
}
.row-text p {
  font-family: var(--font-ui);
  font-size: clamp(18px, 2.6vw, 26px);              /* spec: 26 */
  line-height: 1.35;
  color: var(--grey-300);
  text-wrap: pretty;
  margin: 0;
  max-width: 38ch;
}
@media (min-width: 1024px) {
  .games-row.reverse .row-text { text-align: right; }
  .games-row.reverse .row-text p { margin-left: auto; }
}

/* ─── Carousel ─── */
.row-cards {
  position: relative;
  min-width: 0;
}

.carousel-viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 60px 0;            /* room for scaled-up center card */
  /* Mask edges so peek cards fade out softly */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, black 6%, black 94%, transparent 100%);
}
.carousel-viewport::-webkit-scrollbar { display: none; }

.carousel-track {
  display: flex;
  align-items: center;
  /* Big side padding lets first/last card sit centered when snapped */
  padding: 0 calc(50% - var(--card-w) / 2);
  gap: 24px;
  width: max-content;
  --card-w: 280px;
}
@media (min-width: 768px)  { .carousel-track { --card-w: 320px; gap: 32px; } }
@media (min-width: 1280px) { .carousel-track { --card-w: 360px; gap: 36px; } }

/* ─── Card ─── */
.game-card {
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  aspect-ratio: 350 / 480;
  position: relative;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  cursor: pointer;
  perspective: 1200px;
  /* These vars get driven by JS based on distance from viewport center */
  --d: 1;                       /* 0 at center, 1 at edges */
  transform: scale(calc(1 - var(--d) * 0.18)) rotate(calc(var(--d-signed, 0) * 8deg));
  transition: transform 380ms var(--ease-standard);
  will-change: transform;
  z-index: calc(100 - var(--d) * 50);
}

.gc-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  transition: transform 700ms var(--ease-standard);
}
.game-card:hover .gc-inner,
.game-card.is-flipped .gc-inner { transform: rotateY(180deg); }

.gc-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04);
}

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

.gc-back {
  background: var(--card);
  color: var(--text);
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  display: flex; flex-direction: column;
  align-items: stretch; justify-content: center;
  gap: 10px;
  padding: 26px 24px;
  text-align: left;
  border: 1px solid var(--border);
  overflow: hidden;
}
.gc-back h4 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
}
.gc-back p {
  font-family: var(--font-ui);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.45;
  color: var(--grey-100);
  margin: 0;
  text-wrap: pretty;
}
.gc-back .gc-lede {
  font-weight: 600;
  color: var(--text);
}

/* Dark overlay applied to peek cards. Sits above the front face,
   but inside the perspective wrapper so it flips with the card. */
.gc-overlay {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(10, 10, 10, calc(var(--d) * 0.55));
  pointer-events: none;
  transition: background 380ms var(--ease-standard);
  z-index: 2;
}
/* Hide overlay on the active center card AND on the hovered card so the
   back face reads cleanly when flipped. */
.game-card:hover .gc-overlay,
.game-card.is-active .gc-overlay { background: rgba(10, 10, 10, 0); }

/* ─── Carousel nav ─── */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.cn-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--raised);
  border: 1px solid var(--border);
  color: var(--text);
  display: grid; place-items: center;
  cursor: pointer;
  min-height: 44px;
  padding: 0;
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
.cn-btn:hover { background: var(--grey-700); border-color: var(--cherry-300); }
.cn-btn:active { transform: scale(0.95); }
.cn-btn svg { width: 18px; height: 18px; }

/* ═══════════════════════════════════════════════════════════════════════
   GAME ARCADE — drifting card wall (Rockstar-style)
   Two horizontal rows of game cards, slowly panning in opposite
   directions. Heavy dark vignette so the bottom-left copy reads
   cleanly. Pure CSS keyframes; no JS.
   ══════════════════════════════════════════════════════════════════════ */
.arcade-section {
  position: relative;
  width: 100%;
  height: clamp(560px, 80vh, 800px);
  overflow: hidden;
  background: var(--surface);
  isolation: isolate;
  margin: 0;
}

.arcade-wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 2vw, 24px);
  padding: 32px 0;
}

.arcade-row {
  width: 100%;
  overflow: hidden;
}
/* First row — lift its own clip so the full card art shows.
   Second row keeps overflow:hidden, peeks as before. */
.arcade-row:first-child {
  overflow: visible;
  flex-shrink: 0;
}

.arcade-track {
  display: flex;
  gap: clamp(16px, 1.8vw, 24px);
  width: max-content;
  animation: arcade-drift 90s linear infinite;
  will-change: transform;
}
.arcade-track--right { animation-direction: reverse; }
.arcade-row:nth-child(2) .arcade-track { animation-duration: 110s; }

@keyframes arcade-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.arcade-card {
  flex: 0 0 auto;
  width: clamp(180px, 18vw, 260px);
  aspect-ratio: 350 / 480;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.04);
}

/* First row: show the full card art — no crop, no rounded mask.
   Cards keep the same width but their height follows the natural
   image aspect, and object-fit:contain prevents any cropping. */
.arcade-row:first-child .arcade-card {
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
}

.arcade-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(10,10,10,0.55) 0%,
      rgba(10,10,10,0.35) 30%,
      rgba(10,10,10,0.60) 70%,
      rgba(10,10,10,0.96) 100%),
    radial-gradient(ellipse 120% 100% at 50% 50%,
      transparent 30%,
      rgba(10,10,10,0.45) 75%,
      rgba(10,10,10,0.85) 100%);
}

.arcade-content {
  position: absolute;
  left: clamp(24px, 6vw, 96px);
  bottom: clamp(40px, 8vw, 88px);
  z-index: 2;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.arcade-title {
  font-family: var(--font-ui);
  font-weight: var(--fw-bold);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--grey-100);
  margin: 0;
  text-wrap: balance;
}
.arcade-sub {
  font-family: var(--font-ui);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
  color: var(--grey-300);
  margin: 0 0 12px;
  max-width: 38ch;
}
.arcade-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--grey-100);
  color: var(--grey-1000);
  border-radius: var(--radius-pill);
  font: var(--font-button);
  font-size: var(--fs-sm);
  transition: transform var(--duration-fast) var(--ease-spring),
              background var(--duration-fast);
}
.arcade-cta:hover {
  background: #fff;
  transform: translateY(-1px);
}
.arcade-cta::after {
  content: "";
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 6l6 6-6 6'/></svg>") center/contain no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .arcade-track { animation: none; }
}

/* ─── Marquee / Carousel (legacy — kept for any leftover refs) ─── */
.library-head { text-align: center; margin-bottom: 64px; }
.library-head .section-title { max-width: 720px; margin-left: auto; margin-right: auto; }
.library-head .section-sub   { margin-left: auto; margin-right: auto; }

.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 60s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.game-card {
  flex: 0 0 280px;
  height: 360px;
  border-radius: var(--radius-xl);
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-normal) var(--ease-spring),
              border-color var(--duration-normal);
}
.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,138,0.35);
}
.game-card .top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.game-card .kind {
  font-size: var(--fs-3xs); font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtext);
}
.game-card .new {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  color: var(--on-brand);
}
.game-card h4 {
  font: var(--fw-bold) 26px/1.05 var(--font-ui);
  letter-spacing: -0.015em;
  margin-top: 8px;
}
.game-card .tagline {
  margin-top: 8px;
  color: var(--subtext);
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.game-card .visual {
  flex: 1;
  margin: 16px -22px -22px;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.game-card .footer {
  position: absolute;
  bottom: 16px; left: 22px; right: 22px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--grey-300);
  z-index: 2;
}
.game-card .footer .plays {
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(8px);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 6px;
}

/* Per-card art variants */
.viz-1 { background: radial-gradient(80% 80% at 50% 40%, rgba(255,107,138,0.6), rgba(255,107,138,0.05) 70%), #1a0d12; }
.viz-2 { background: radial-gradient(80% 80% at 50% 60%, rgba(255,155,120,0.55), rgba(255,155,120,0.05) 70%), #1a1410; }
.viz-3 { background: linear-gradient(135deg, rgba(255,107,138,0.4), rgba(255,155,120,0.4)), #170d10; }
.viz-4 { background: radial-gradient(40% 40% at 30% 30%, rgba(255,107,138,0.5), transparent 70%), radial-gradient(40% 40% at 70% 70%, rgba(255,155,120,0.5), transparent 70%), #120c10; }
.viz-5 { background: conic-gradient(from 200deg at 50% 50%, rgba(255,107,138,0.3), rgba(255,155,120,0.3), rgba(255,107,138,0.3)), #1a0e12; }
.viz-6 { background: linear-gradient(90deg, rgba(255,107,138,0.5) 0 50%, rgba(255,155,120,0.5) 50% 100%), #120c10; }
.viz-7 { background: radial-gradient(70% 70% at 70% 30%, rgba(255,155,120,0.6), rgba(0,0,0,0) 60%), #150d11; }
.viz-8 { background: linear-gradient(180deg, rgba(255,107,138,0.5), rgba(255,155,120,0.05)), #100a0e; }

/* Saturday tag */
.sat-line {
  display: inline-flex; align-items: center; gap: 14px;
  margin-top: 32px;
  font-size: var(--fs-sm);
  color: var(--grey-300);
}
.sat-line .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,107,138,0.1);
  border: 1px solid rgba(255,107,138,0.25);
  color: var(--accent-a);
  font-weight: 600;
  font-size: var(--fs-xs);
}
.sat-line .pill::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent-a);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════════════
   TESTIMONIALS — dark grey cards on a subtle cherry-tinted dark wash.
   Header centered, cards in a swipeable horizontal rail that bleeds
   off both edges. Floating cherry quote pill on each card.
   ══════════════════════════════════════════════════════════════════════ */
.tm-section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 10vw, 100px);
  overflow: hidden;
  isolation: isolate;
}

.tm-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 80%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%,
      rgba(173, 24, 24, 0.18) 0%,
      rgba(87, 10, 10, 0.10) 35%,
      transparent 70%);
}

.tm-head {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: clamp(48px, 8vw, 88px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.tm-title {
  font-family: var(--font-brand);                 /* Fugaz One */
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--grey-100);
  margin: 0;
  text-wrap: balance;
}
.tm-title em {
  font-style: italic;
  color: var(--cherry-200);
  display: inline-block;
}
.tm-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--grey-300);
  margin: 0;
  max-width: 540px;
  text-wrap: pretty;
}

/* Swipeable rail — full bleed */
.tm-rail {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 28px 0 12px;
  scroll-snap-type: x mandatory;
}
.tm-rail::-webkit-scrollbar { display: none; }

.tm-track {
  display: flex;
  gap: clamp(20px, 2.5vw, 32px);
  width: max-content;
  padding: 0 clamp(24px, 8vw, 120px);
}

/* Card */
.tm-card {
  flex: 0 0 clamp(280px, 28vw, 340px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 26px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  scroll-snap-align: center;
  transition: transform var(--duration-normal) var(--ease-standard),
              border-color var(--duration-normal);
}
.tm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 138, 0.35);
}

/* Cherry pill with quote glyph — sits floating top-left of card */
.tm-quote-mark {
  position: absolute;
  top: -22px;
  left: -22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-cherry);
  color: var(--cherry-1000);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-cherry-glow);
}
.tm-quote-mark svg {
  width: 28px;
  height: 28px;
}

/* Avatar — circular portrait, ringed in a subtle cherry glow */
.tm-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--raised);
  position: relative;
  margin-bottom: 14px;
  box-shadow: 0 0 0 3px var(--grey-1000), 0 0 0 4px rgba(255, 107, 138, 0.25);
}
.tm-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.tm-name {
  font: var(--fw-bold) 18px/1.2 var(--font-ui);
  letter-spacing: -0.005em;
  color: var(--grey-100);
  margin: 0 0 6px;
}
.tm-stars {
  font-size: 16px;
  color: #fbbf24;             /* warm star — uses --warning token's hue */
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.tm-quote {
  font: var(--fw-regular) 15px/1.5 var(--font-ui);
  color: var(--grey-200);
  margin: 0;
  text-wrap: pretty;
}

@media (min-width: 768px) {
  .tm-card  { padding: 32px 28px 36px; }
  .tm-quote { font-size: 16px; line-height: 1.55; }
  .tm-name  { font-size: 20px; }
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER — final CTA + downloads + links + copyright.
   Dark with a soft warm cherry tint from top → fading to grey-1000.
   ══════════════════════════════════════════════════════════════════════ */
.footer-final {
  position: relative;
  /* Matches unified section rhythm — ~80–120px gap from Social above */
  padding: clamp(80px, 10vw, 120px) 0 clamp(32px, 5vw, 56px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,
      rgba(87, 10, 10, 0.55) 0%,
      rgba(44, 5, 5, 0.30) 30%,
      rgba(10, 10, 10, 0.0) 70%),
    linear-gradient(180deg,
      rgba(44, 5, 5, 0.25) 0%,
      var(--surface) 80%,
      var(--surface) 100%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-logo {
  display: inline-flex;
  margin-bottom: clamp(24px, 5vw, 56px);
}
.footer-logo img {
  height: clamp(48px, 6vw, 64px);
  width: auto;
  display: block;
}

.footer-title {
  font-family: var(--font-brand);                 /* Fugaz One */
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--grey-100);
  margin: 0;
  text-wrap: balance;
}
.footer-title em {
  font-style: normal;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: inherit;
  display: inline;
}

.footer-tag {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.5;
  color: var(--grey-300);
  margin: 0;
  max-width: 520px;
  text-wrap: pretty;
}

.footer-download {
  margin-top: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-download-label {
  font: var(--fw-bold) clamp(16px, 1.6vw, 20px)/1.2 var(--font-ui);
  color: var(--grey-100);
  margin: 0;
}
.footer-badges {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.store-badge {
  display: inline-block;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16),
              0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform var(--duration-fast) var(--ease-spring),
              opacity var(--duration-fast),
              box-shadow var(--duration-fast);
}
.store-badge svg { display: block; height: 48px; width: auto; }
/* Lift the badge off the dark footer by lightening its fill so it
   no longer blends with the surface. */
.store-badge svg rect { fill: #1c1c1c; }
.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28),
              0 12px 28px rgba(0, 0, 0, 0.45);
}

.footer-links {
  margin-top: clamp(48px, 7vw, 80px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 36px;
  max-width: 900px;
}
.footer-links a {
  font: var(--fw-regular) var(--fs-sm)/1 var(--font-ui);
  color: var(--grey-200);
  transition: color var(--duration-fast);
}
.footer-links a:hover { color: var(--cherry-200); }

.footer-copy {
  margin-top: 24px;
  font-size: var(--fs-2xs);
  color: var(--grey-500);
}

/* ─── CTA strip ─── */
.cta-strip {
  padding: 80px 0;
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(255,107,138,0.15), transparent 70%);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-strip .big {
  font-family: var(--font-brand);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.cta-strip p {
  color: var(--subtext);
  font-size: var(--fs-lg);
  max-width: 480px; margin: 0 auto 32px;
  text-wrap: pretty;
}
.cta-strip .stores-row {
  display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border-radius: var(--radius-pill);
  background: var(--grey-1000);
  border: 1px solid var(--border);
  color: var(--text);
  font: var(--fw-bold) 14px/1 var(--font-ui);
  transition: border-color var(--duration-fast), background var(--duration-fast);
}
.store-btn:hover { border-color: var(--accent-a); background: var(--grey-900); }
.store-btn svg { width: 22px; height: 22px; }
.store-btn .small { display: block; font-weight: 400; font-size: 10px; color: var(--subtext); margin-bottom: 2px; letter-spacing: 0.04em; }

/* ─── Footer ─── */
footer.site-footer {
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 64px; }
}
.footer-brand .word {
  font-family: var(--font-brand);
  font-size: 42px;
  letter-spacing: -0.02em;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--subtext);
  font-size: var(--fs-sm);
  max-width: 280px;
}
.footer-col h5 {
  font-size: var(--fs-3xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--grey-500);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col a {
  color: var(--grey-200);
  font-size: var(--fs-sm);
  transition: color var(--duration-fast);
}
.footer-col a:hover { color: var(--accent-a); }
.footer-bot {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  color: var(--grey-500);
  font-size: var(--fs-2xs);
}
.footer-bot .socials {
  display: inline-flex; gap: 12px;
}
.footer-bot .socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--grey-300);
  transition: all var(--duration-fast);
}
.footer-bot .socials a:hover {
  border-color: var(--accent-a);
  color: var(--accent-a);
  transform: translateY(-2px);
}
.footer-bot .socials svg { width: 16px; height: 16px; }

/* ─── Scroll-reveal helper ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms var(--ease-standard), transform 800ms var(--ease-standard);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ─── About page specific ─── */
.about-hero {
  padding: 180px 0 80px;
  position: relative;
}
.about-hero .lockup {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .about-hero .lockup { grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
}
.about-hero h1 {
  font: var(--fw-bold) clamp(40px, 6vw, 80px)/0.98 var(--font-ui);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.about-hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-brand);
  font-weight: 400;
  font-style: italic;
}
.about-hero .lead {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  color: var(--grey-300);
  text-wrap: pretty;
  margin-top: 24px;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  overflow: hidden;
}
.about-stats .stat {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-stats .stat:nth-child(2n) { border-right: 0; }
.about-stats .stat:nth-last-child(-n+2) { border-bottom: 0; }
.about-stats .num {
  font-family: var(--font-brand);
  font-size: 42px;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-stats .label {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--subtext);
}

/* Mission / story */
.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .story-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.story-card {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  gap: 12px;
}
.story-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,107,138,0.12);
  color: var(--accent-a);
  margin-bottom: 12px;
}
.story-card h3 { font: var(--fw-bold) 22px/1.2 var(--font-ui); letter-spacing: -0.015em; }
.story-card p  { color: var(--subtext); font-size: var(--fs-md); line-height: 1.5; }

/* Team */
.team-head { text-align: center; margin-bottom: 64px; }
.team-grid {
  display: grid; grid-template-columns: 1fr; gap: 24px;
}
@media (min-width: 700px)  { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }

/* (Old .team-card / .photo / .name / .role / .bio / .links rules
   removed — about.css now owns the Meet-the-Minions styling.) */

/* Investor section */
.investor-block {
  padding: clamp(60px, 8vw, 100px) 48px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 80% at 0% 100%, rgba(255,107,138,0.18), transparent 60%),
    radial-gradient(60% 60% at 100% 0%, rgba(255,155,120,0.12), transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  text-align: center;
}
.investor-block .eyebrow { justify-content: center; }
.investor-block .lead {
  font: var(--fw-bold) clamp(28px, 4vw, 40px)/1.15 var(--font-ui);
  letter-spacing: -0.02em;
  margin-top: 16px;
  text-wrap: balance;
}
.spc-mark {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 40px;
  padding: 24px 36px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.spc-mark .logo-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--text);
  color: var(--grey-1000);
  display: grid; place-items: center;
  font: var(--fw-bold) 18px/1 var(--font-ui);
  letter-spacing: -0.04em;
}
.spc-mark .name {
  font: var(--fw-bold) 22px/1 var(--font-ui);
  letter-spacing: -0.01em;
}
.spc-mark .tag {
  margin-top: 6px;
  font-size: var(--fs-2xs); color: var(--subtext);
  text-transform: uppercase; letter-spacing: 0.14em;
}

.coming-soon-marquee {
  margin-top: 48px;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.coming-soon-marquee .track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  font-family: var(--font-brand);
  font-size: 22px;
  color: var(--grey-500);
  letter-spacing: -0.01em;
}
.coming-soon-marquee .track span {
  display: inline-flex; align-items: center; gap: 48px;
}
.coming-soon-marquee .track span::after {
  content: "✦";
  color: var(--accent-a);
  font-size: 18px;
}

/* ─── Tweaks panel ─── */
#tweaks-mount { position: fixed; right: 16px; bottom: 16px; z-index: var(--z-popover); }
.tw-panel {
  width: 280px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: var(--raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font: var(--font-body-sm);
  color: var(--text);
  display: flex; flex-direction: column; gap: 14px;
}
.tw-panel header {
  display: flex; align-items: center; justify-content: space-between;
  margin: -2px 0 4px;
}
.tw-panel h6 {
  font: var(--fw-bold) 13px/1 var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.tw-panel .close {
  background: transparent;
  color: var(--subtext);
  border: 0;
  cursor: pointer;
  min-height: auto;
  width: 24px; height: 24px;
  padding: 0; border-radius: 50%;
  display: grid; place-items: center;
}
.tw-panel .close:hover { background: var(--grey-700); color: var(--text); }
.tw-panel .row { display: flex; flex-direction: column; gap: 8px; }
.tw-panel .row label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.tw-panel .swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tw-panel .swatch {
  flex: 1 1 0;
  height: 36px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  min-height: auto;
  padding: 0;
  transition: transform var(--duration-fast);
}
.tw-panel .swatch:hover { transform: translateY(-2px); }
.tw-panel .swatch.on { border-color: var(--text); }
.tw-panel .segmented {
  display: flex;
  background: var(--grey-1000);
  border-radius: var(--radius-md);
  padding: 3px;
  border: 1px solid var(--border);
}
.tw-panel .segmented button {
  flex: 1;
  padding: 8px 6px;
  background: transparent;
  color: var(--subtext);
  border: 0;
  border-radius: var(--radius-sm);
  font: var(--fw-bold) 11px/1 var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 30px;
  cursor: pointer;
}
.tw-panel .segmented button.on {
  background: var(--card);
  color: var(--text);
}

.tw-open {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: var(--on-brand);
  display: grid; place-items: center;
  cursor: pointer;
  border: 0;
  box-shadow: var(--shadow-cherry-glow);
  font-size: 18px;
}

/* Hero treatment variants — no-op now (hero is a static video). Kept so the
   Tweaks panel's hero buttons don't crash if toggled. */

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE LAYER — mobile <480 / tablet 480–900 / desktop 900+
   Desktop layout is preserved exactly; only smaller screens change.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tablet & below (≤900px) ───────────────────────────────────── */
@media (max-width: 900px) {
  /* Hero: tighter padding, smaller CTA */
  .hero {
    padding: 100px 20px clamp(64px, 9vw, 100px);
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-title { font-size: clamp(34px, 7vw, 48px); }
  .hero-sub   { font-size: clamp(15px, 2.6vw, 22px); }
  .hero-cta   { padding: 16px 28px; font-size: 15px; }

  /* Arcade: trim height + reposition copy block */
  .arcade-section { height: clamp(440px, 70vh, 620px); }
  .arcade-content {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: clamp(28px, 5vw, 56px);
    left: 0;
    right: 0;
    max-width: none;
  }
  .arcade-title { font-size: clamp(36px, 6vw, 54px); }

  /* Games section — text always ABOVE cards on tablet/mobile */
  .games-row,
  .games-row.reverse {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .games-row .row-text { text-align: center; }
  .games-row.reverse .row-text { text-align: center; }
  .games-row .row-text p,
  .games-row.reverse .row-text p {
    margin-left: auto;
    margin-right: auto;
    max-width: 38ch;
  }
  /* Force row-text BEFORE row-cards even in reverse layout */
  .games-row.reverse .row-text { order: 0; }
  .games-row.reverse .row-cards { order: 1; }

  /* Footer: stack vertically with reduced sizes */
  .footer-final { padding: clamp(64px, 10vw, 96px) 0 clamp(28px, 5vw, 48px); }
  .footer-title { font-size: clamp(38px, 7.4vw, 56px); }
  .footer-tag   { font-size: clamp(14px, 2.2vw, 17px); }
  .footer-badges { gap: 10px; }
  .footer-links {
    flex-direction: column;
    gap: 14px;
    margin-top: clamp(36px, 6vw, 56px);
  }
  .footer-links a { padding: 6px 0; }
}

/* ── Mobile (≤480px) ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }

  /* Nav */
  .nav { padding: 14px 0; }
  .nav-logo img { height: 32px; }

  /* Hero */
  .hero {
    padding: 96px 16px 64px;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero-title { font-size: clamp(30px, 9vw, 40px); }
  .hero-sub   {
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;          /* allow wrap on small screens */
    max-width: 28ch;
  }
  .hero-cta {
    padding: 14px 24px;
    font-size: 14px;
    margin-top: 8px;
  }

  /* Arcade */
  .arcade-section { height: 380px; }
  .arcade-wall { gap: 12px; padding: 16px 0; }
  .arcade-card { height: 140px; width: auto; }
  .arcade-title { font-size: 38px; line-height: 1.05; }
  .arcade-sub   { font-size: 14px; }
  .arcade-cta   { padding: 12px 22px; font-size: 13px; }

  /* Games section */
  .games-section { padding: clamp(56px, 14vw, 80px) 0 0; }
  .games-head { margin-bottom: 24px; }
  .games-title { font-size: clamp(28px, 8vw, 36px); }
  .games-sub   { font-size: clamp(16px, 4vw, 20px); }
  .games-row { margin-bottom: 48px; }
  .row-text h3 { font-size: clamp(22px, 6vw, 28px); }
  .row-text p  { font-size: 14px; }

  /* Footer */
  .footer-final { padding: 56px 0 24px; }
  .footer-logo img { height: 36px; }
  .footer-title { font-size: clamp(28px, 8vw, 36px); }
  .footer-tag   { font-size: 13px; max-width: 32ch; }
  .footer-download { margin-top: 28px; }
  .footer-download-label { font-size: 14px; }
  .footer-badges {
    flex-direction: column;
    align-items: center;
  }
  .footer-links { margin-top: 32px; font-size: 13px; }
  .footer-copy { font-size: 11px; margin-top: 16px; }
}

/* ── Small phones (≤360px) — extra-tight overrides ────────────── */
@media (max-width: 360px) {
  .wrap { padding: 0 14px; }
  .hero-title { font-size: 28px; }
  .arcade-title { font-size: 32px; }
  .games-title { font-size: 26px; }
  .footer-title { font-size: 26px; }
}
