/* ==========================================================================
   PLAYCRAFT — site styles
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  --bg: #07060e;
  --bg-2: #0c0a18;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f3ff;
  --muted: #a9a5c4;
  --dim: #75718f;

  --pink: #ff4fa3;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --amber: #ffb547;

  --grad: linear-gradient(100deg, #ffb547 0%, #ff4fa3 34%, #8b5cf6 66%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 79, 163, 0.18), rgba(139, 92, 246, 0.14) 50%, rgba(34, 211, 238, 0.12));

  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(255, 79, 163, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient__blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 26s ease-in-out infinite alternate;
}
.ambient__blob--a { width: 46vmax; height: 46vmax; left: -14vmax; top: -18vmax; background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 65%); }
.ambient__blob--b { width: 40vmax; height: 40vmax; right: -14vmax; top: 10vh; background: radial-gradient(circle, rgba(255, 79, 163, 0.42), transparent 65%); animation-duration: 32s; animation-delay: -8s; }
.ambient__blob--c { width: 38vmax; height: 38vmax; left: 20vw; bottom: -22vmax; background: radial-gradient(circle, rgba(34, 211, 238, 0.28), transparent 65%); animation-duration: 38s; animation-delay: -14s; }
.ambient__grid {
  position: absolute; inset: 0;
  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: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}
.ambient__noise {
  position: absolute; inset: -50%; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(0.94); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(9, 8, 18, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
          backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: auto; height: 46px; transition: transform 0.5s var(--ease-spring); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__word { width: auto; height: 23px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav__link {
  position: relative; padding: 10px 16px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 15px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--surface-2); }
.nav__link[aria-current='page'] { color: var(--text); }
.nav__link[aria-current='page']::after {
  content: ''; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 3px; margin-left: -8px;
  border-radius: 3px; background: var(--grad);
}
.nav__cta { margin-left: 10px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.site-header.is-open .menu-toggle span { background: transparent; }
.site-header.is-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  background: var(--btn-bg); border: 1px solid var(--line-2);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease), background 0.25s var(--ease), border-color 0.25s;
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--primary {
  border: 0; color: #fff;
  background: linear-gradient(100deg, #ff4fa3, #8b5cf6);
  box-shadow: 0 10px 30px -10px rgba(255, 79, 163, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(100deg, #ff6bb5, #a07bff);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgba(255, 79, 163, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--primary:hover::before { opacity: 1; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--surface-2); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* The official badge PNG carries ~9% transparent padding; the negative margin cancels it. */
.play-badge { display: inline-block; height: 68px; margin: -6px -7px; transition: transform 0.35s var(--ease-spring), filter 0.3s; }
.play-badge img { height: 100%; width: auto; }
.play-badge:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.5)); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted);
}
.eyebrow__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.eyebrow__dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #34d399; opacity: 0; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }

.grad-text {
  background: var(--grad); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 8s ease-in-out infinite alternate;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pink); }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(40px, 5vw, 64px); flex-wrap: wrap; }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 14px; }
.section-head p { color: var(--muted); max-width: 440px; font-size: 17px; }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Home — hero
   ========================================================================== */
.hero { position: relative; overflow-x: clip; padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(60px, 8vw, 110px); }
.hero__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: clamp(40px, 6vw, 80px); }
.hero__title { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; margin: 26px 0 24px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; animation-delay: calc(var(--i, 0) * 0.12s + 0.1s); }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; color: var(--dim); font-size: 14px; font-weight: 600; }
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 18px; height: 18px; color: var(--muted); }
.fade-up { animation: fadeUp 1s var(--ease) both; animation-delay: var(--d, 0.4s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* Hero stage with phones */
.stage { position: relative; height: clamp(460px, 48vw, 620px); perspective: 1600px; }
.stage__inner { position: absolute; inset: 0; transition: transform 0.6s var(--ease); }
.stage__glow { position: absolute; inset: 10% 5%; border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 62%); filter: blur(40px); }
.stage__ring { position: absolute; left: 50%; top: 50%; width: 118%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.08); animation: spin 80s linear infinite; }
.stage__ring--2 { width: 84%; border-style: solid; border-color: rgba(255, 255, 255, 0.05); animation-duration: 120s; animation-direction: reverse; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.phone {
  --w: 250px;
  position: absolute; width: var(--w); aspect-ratio: 9 / 19.5;
  padding: 9px; border-radius: 40px;
  background: linear-gradient(160deg, #2a2640, #0e0c1a 45%, #1b1830);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 0 2px #05040a,
    0 40px 80px -20px rgba(0, 0, 0, 0.8),
    0 30px 60px -30px var(--phone-glow, rgba(139, 92, 246, 0.7));
}
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 20px; background: #05040a; z-index: 2; }
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #140f24; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* --p (0 → 1) is set by home.js as the hero scrolls away: the phones fan out, tilt and shrink. */
/* The stage also sinks as the page scrolls, so the phones linger on screen while they fly apart. */
.stage { --fly: 44%; --fx: -92%; --bx: -6%; --sink: 45%; transform: translate3d(0, calc(var(--p, 0) * var(--sink)), 0); will-change: transform; }
.stage__slot { position: absolute; left: 50%; top: 50%; opacity: 0; animation: phoneIn 1.3s var(--ease) forwards; will-change: transform; }
.stage__slot--back {
  transform: translate(calc(var(--bx) + var(--p, 0) * var(--fly)), calc(-50% + var(--p, 0) * 6%))
             rotate(calc(9deg + var(--p, 0) * 16deg)) scale(calc(1 - var(--p, 0) * 0.3));
  animation-delay: 0.35s;
}
.stage__slot--front {
  transform: translate(calc(var(--fx) - var(--p, 0) * var(--fly)), calc(-48% - var(--p, 0) * 8%))
             rotate(calc(-7deg - var(--p, 0) * 16deg)) scale(calc(1 - var(--p, 0) * 0.3));
  animation-delay: 0.2s; z-index: 1;
}
.stage__glow, .stage__ring { opacity: calc(1 - var(--p, 0) * 0.8); }
.hero__copy { transform: translate3d(0, calc(var(--pt, 0) * -80px), 0); opacity: calc(1 - var(--pt, 0) * 1.1); will-change: transform, opacity; }
.stage__slot--back .phone { --w: clamp(190px, 17vw, 230px); }
.stage__slot--front .phone { --w: clamp(210px, 19vw, 256px); }
.stage .phone { position: relative; animation: bob 7s ease-in-out infinite; }
.stage__slot--back .phone { animation-delay: -3.5s; }
@keyframes phoneIn { from { opacity: 0; margin-top: 60px; } to { opacity: 1; margin-top: 0; } }

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

.sparkle { position: absolute; width: 14px; height: 14px; color: #fff; opacity: 0.8; animation: twinkle 3.2s ease-in-out infinite; }
.sparkle--1 { left: 12%; top: 16%; color: var(--amber); }
.sparkle--2 { right: 10%; bottom: 22%; animation-delay: -1.2s; color: var(--cyan); width: 18px; height: 18px; }
.sparkle--3 { left: 48%; top: 2%; animation-delay: -2.2s; color: var(--pink); width: 10px; height: 10px; }
@keyframes twinkle { 0%, 100% { transform: scale(0.5) rotate(0); opacity: 0.2; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; z-index: 2; padding: 22px 0; border-block: 1px solid var(--line); background: #0a0914; overflow: hidden; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2vw, 24px); color: var(--muted); white-space: nowrap; }
.marquee__item img { width: 34px; height: 34px; border-radius: 10px; }
.marquee__item .star { width: 18px; height: 18px; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

/* ==========================================================================
   Game cards
   ========================================================================== */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: clamp(20px, 3vw, 32px); }

.game-card {
  --accent: var(--pink);
  --accent2: var(--violet);
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
  isolation: isolate;
}
.game-card::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; padding: 1px;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--accent), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.game-card:hover { box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--accent) 45%, transparent); border-color: transparent; }
.game-card:hover::before { opacity: 1; }
.game-card__media { position: relative; aspect-ratio: 1024 / 500; margin: 10px 10px 0; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; background: #140f24; }
.game-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.game-card:hover .game-card__media img { transform: scale(1.06); }
.game-card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(7, 6, 14, 0.55)); }
.game-card__body { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 0 clamp(20px, 2.4vw, 30px) clamp(22px, 2.4vw, 30px); flex: 1; }
.game-card__head { display: flex; align-items: flex-end; gap: 18px; margin-top: -26px; position: relative; z-index: 1; }
.game-card__icon { width: 84px; height: 84px; flex: none; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 4px var(--bg-2), 0 16px 30px -10px rgba(0, 0, 0, 0.8); background: var(--bg-2); transition: transform 0.5s var(--ease-spring); }
.game-card:hover .game-card__icon { transform: translateY(-4px) rotate(-4deg); }
.game-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.game-card__title { padding-bottom: 4px; }
.game-card__title h3 { font-size: clamp(22px, 2.2vw, 28px); }
.game-card__title p { color: var(--dim); font-size: 14px; font-weight: 600; margin-top: 6px; }
.game-card__summary { color: var(--muted); }
.game-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.game-card__overlay { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.game-card__footer .btn { position: relative; z-index: 3; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted);
}
.tag--accent { color: #fff; background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* ==========================================================================
   Studio / values
   ========================================================================== */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value {
  position: relative; padding: 34px 30px 32px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.5s var(--ease), background 0.4s var(--ease), border-color 0.4s;
}
.value:hover { transform: translateY(-6px); background: var(--surface-2); border-color: var(--line-2); }
.value__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 26px;
  background: var(--grad-soft); border: 1px solid var(--line-2); color: #fff;
}
.value__icon svg { width: 26px; height: 26px; }
.value h3 { font-size: 21px; margin-bottom: 12px; }
.value p { color: var(--muted); }
.value__num { position: absolute; right: 24px; top: 20px; font-family: var(--font-display); font-weight: 800; font-size: 13px; color: var(--dim); letter-spacing: 0.1em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.stat { padding: 32px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__value { font-family: var(--font-display); font-size: clamp(34px, 3.8vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.stat__label { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 36px; padding: clamp(44px, 7vw, 88px) clamp(24px, 6vw, 80px);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 79, 163, 0.28), transparent 50%),
              radial-gradient(120% 140% at 100% 100%, rgba(34, 211, 238, 0.22), transparent 50%),
              linear-gradient(135deg, #16112a, #0d0b1a);
  border: 1px solid var(--line-2);
  display: grid; grid-template-columns: 1.3fr auto; align-items: center; gap: 32px;
}
.cta h2 { font-size: clamp(34px, 5vw, 64px); letter-spacing: -0.03em; }
.cta p { color: var(--muted); margin-top: 16px; font-size: 18px; max-width: 520px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__deco { position: absolute; right: -50px; top: -50px; width: 280px; opacity: 0.12; transform: rotate(14deg); pointer-events: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; padding: 64px 0 36px; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35)); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-about p { color: var(--muted); margin-top: 18px; max-width: 320px; font-size: 15px; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color 0.2s; word-break: break-word; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }

/* ==========================================================================
   Game detail page
   ========================================================================== */
.game-hero { position: relative; padding: calc(var(--header-h) + clamp(28px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.game-hero__backdrop { position: absolute; inset: -10%; z-index: -1; background-size: cover; background-position: center; filter: blur(70px) saturate(140%); opacity: 0.45; transform: scale(1.1); }
.game-hero__backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 6, 14, 0.2), var(--bg) 92%); }
.game-hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--dim); margin-bottom: 28px; }
.crumbs a { color: var(--muted); transition: color 0.2s; }
.crumbs a:hover { color: var(--text); }
.crumbs svg { width: 14px; height: 14px; }

.game-id { display: flex; align-items: center; gap: 22px; }
.game-id__icon { width: clamp(88px, 9vw, 120px); aspect-ratio: 1; flex: none; border-radius: 26%; overflow: hidden; box-shadow: 0 24px 50px -16px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.game-id__icon img { width: 100%; height: 100%; object-fit: cover; }
.game-id h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.035em; }
.game-id__meta { margin-top: 10px; color: var(--muted); font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.game-id__meta a { color: var(--text); }
.game-id__meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.game-id__meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--dim); }

.game-hero__tagline { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; margin-top: 32px; letter-spacing: -0.01em; }
.game-hero__summary { color: var(--muted); font-size: 18px; margin-top: 14px; max-width: 540px; }
.game-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.game-hero .tags { margin-top: 26px; }

.feature-frame {
  position: relative; border-radius: var(--radius-lg); padding: 10px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 100px -40px color-mix(in srgb, var(--accent) 70%, transparent), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transform: perspective(1400px) rotateY(-8deg) rotateX(3deg);
  transition: transform 0.8s var(--ease);
}
.feature-frame:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.feature-frame img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: calc(var(--radius-lg) - 8px); }

.facts { display: grid; grid-template-columns: repeat(5, 1fr); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(12, 10, 24, 0.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); margin-top: clamp(40px, 5vw, 64px); }
.fact { padding: 20px 22px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; }
.fact__label { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.fact__value { margin-top: 6px; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.fact__value svg { width: 18px; height: 18px; color: var(--accent); }

/* Screenshots */
.shots { position: relative; }
.shots__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 260px); gap: clamp(16px, 2vw, 24px);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 10px var(--gutter) 30px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none; cursor: grab;
}
.shots__track::-webkit-scrollbar { display: none; }
.shots__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.shots__track.is-dragging .shot { pointer-events: none; }
.shot {
  position: relative; scroll-snap-align: start; aspect-ratio: 851 / 1847; border-radius: 26px; overflow: hidden;
  background: #140f24; border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.9s var(--ease); }
.shot:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 40px 70px -30px color-mix(in srgb, var(--accent) 60%, transparent); }
.shot:hover img { transform: scale(1.03); }
.shot__zoom { position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 6, 14, 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--line-2); opacity: 0; transform: scale(0.8); transition: opacity 0.3s, transform 0.3s var(--ease-spring); }
.shot__zoom svg { width: 18px; height: 18px; }
.shot:hover .shot__zoom, .shot:focus-visible .shot__zoom { opacity: 1; transform: none; }

.carousel-nav { display: flex; gap: 10px; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line-2);
  transition: background 0.25s, transform 0.3s var(--ease-spring), opacity 0.25s;
}
.icon-btn:hover:not(:disabled) { background: var(--surface-3); transform: scale(1.06); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.icon-btn svg { width: 20px; height: 20px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose > p { color: var(--muted); font-size: 18px; }
.prose > p + p { margin-top: 18px; }
.prose > p:first-child { color: var(--text); font-size: 20px; }
.chapters { margin-top: 44px; display: grid; gap: 14px; }
.chapter { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: background 0.3s, border-color 0.3s; }
.chapter:hover { background: var(--surface-2); border-color: var(--line-2); }
.chapter__num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: color-mix(in srgb, var(--accent) 70%, #fff); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.chapter h3 { font-size: 18px; margin: 2px 0 8px; }
.chapter p { color: var(--muted); }

.side-card { position: sticky; top: calc(var(--header-h) + 24px); padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)); border: 1px solid var(--line-2); }
.side-card h3 { font-size: 20px; margin-bottom: 20px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.checklist li:first-child { border-top: 0; padding-top: 0; }
.checklist svg { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.side-card__cta { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.side-card__cta small { color: var(--dim); font-size: 13px; }

.trailer { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(4, 3, 10, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); transform: scale(0.94); transition: transform 0.45s var(--ease); }
.lightbox.is-open .lightbox__figure { transform: none; }
.lightbox__figure img { width: auto; height: auto; max-height: min(86vh, 900px); max-width: calc(100vw - 32px); }
.lightbox__close { position: absolute; top: 20px; right: 20px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; margin-top: -24px; }
.lightbox__prev { left: max(20px, calc(50% - 360px)); }
.lightbox__next { right: max(20px, calc(50% - 360px)); }
.lightbox__count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; }

/* Not found */
.empty-state { min-height: 78vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) 0 60px; }
.empty-state__code { font-family: var(--font-display); font-size: clamp(96px, 18vw, 200px); font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.empty-state h1 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 14px; }
.empty-state p { color: var(--muted); max-width: 460px; margin: 16px auto 0; font-size: 17px; }
.empty-state .hero__actions { justify-content: center; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.page-hero { padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(40px, 5vw, 64px); }
.page-hero h1 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.04em; margin-top: 24px; }
.page-hero p { color: var(--muted); font-size: clamp(17px, 1.6vw, 20px); max-width: 600px; margin-top: 22px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform 0.5s var(--ease), background 0.3s, border-color 0.3s;
}
.contact-card:hover { transform: translateY(-6px); background: var(--surface-2); border-color: var(--line-2); }
.contact-card__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); }
.contact-card__icon svg { width: 24px; height: 24px; }
.contact-card h2 { font-size: 20px; margin-top: 10px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card__value { font-weight: 700; font-size: 17px; word-break: break-all; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.panel { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 14px 0 14px; }
.panel > p { color: var(--muted); }
.steps { margin-top: 24px; counter-reset: step; display: grid; gap: 14px; }
.steps li { position: relative; padding-left: 46px; color: var(--muted); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--surface-3); border: 1px solid var(--line-2); }
.steps strong { color: var(--text); }
.panel .btn { margin-top: 28px; }

.faq details { border-top: 1px solid var(--line); }
.faq details:first-of-type { border-top: 0; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-size: 20px; font-weight: 500; transition: transform 0.35s var(--ease), background 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--surface-3); }
.faq details p { color: var(--muted); padding: 0 48px 22px 0; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, 20px); padding: 12px 20px; border-radius: 999px; background: #fff; color: #0b0916; font-weight: 700; font-size: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-spring); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__grid, .game-hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__title { font-size: clamp(34px, 7.4vw, 64px); }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__proof { justify-content: center; }
  .stage { height: 520px; max-width: 560px; width: 100%; margin: 0 auto; }
  .stage__slot--back .phone { --w: 210px; }
  .stage__slot--front .phone { --w: 232px; }
  .values { grid-template-columns: 1fr; }
  .value { display: grid; grid-template-columns: 56px 1fr; column-gap: 22px; }
  .value__icon { margin-bottom: 0; grid-row: span 2; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .feature-frame { transform: none; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(4) { border-left: 0; }
  .fact:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 16px var(--gutter) 24px;
    background: #0b0916;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.35s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }
  .site-header.is-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 16px; font-size: 17px; border-radius: 14px; }
  .nav__link[aria-current='page'] { background: var(--surface-2); }
  .nav__link[aria-current='page']::after { display: none; }
  .nav__cta { margin: 10px 0 0; height: 52px; }

  .stage { height: 440px; }
  .stage__slot--back .phone { --w: 172px; }
  .stage__slot--front .phone { --w: 190px; }
  .stage { --fly: 26%; --fx: -84%; --bx: -12%; --sink: 30%; }

  .game-id { flex-direction: column; align-items: flex-start; gap: 18px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .fact:nth-child(-n + 2) { border-top: 0; }
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .chapter { grid-template-columns: 1fr; gap: 14px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; margin: 0; }
  .lightbox__prev { left: 20px; }
  .lightbox__next { right: 20px; }
  .lightbox__figure img { max-height: 76vh; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .game-card__footer .btn { flex: 1; }
  .faq details p { padding-right: 0; }
}

@media (max-width: 420px) {
  .site-header .brand__mark { height: 38px; }
  .site-header .brand__word { height: 19px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0 !important; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
