/* ==========================================================================
   While You Wait Games
   ========================================================================== */

/* Molia Bold, the logo typeface (Limitype). Self-hosted. */
@font-face {
  font-family: "Molia";
  src: url("../assets/fonts/Molia-Bold.woff2") format("woff2"),
       url("../assets/fonts/Molia-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #171e26;
  --ink-2: #1e2731;
  --ink-3: #28333e;
  --slate: #2b3642;
  --lime: #9bfc00;
  --lime-deep: #7ccc00;
  --paper: #f3f1ea;
  --paper-2: #e6e3d8;

  /* Animated by JS as sections come into view */
  --bg: #171e26;
  --fg: #f3f1ea;

  --muted: color-mix(in srgb, var(--fg) 64%, transparent);
  --line: color-mix(in srgb, var(--fg) 16%, transparent);

  --font-display: "Molia", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;
  --font-keys: "JetBrains Mono", ui-monospace, monospace; /* arrow keys and value-card numbers */

  --gutter: clamp(16px, 3.89vw, 56px);
  --max: 1440px;
  --nav-h: 76px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ul { margin: 0; }
ul { padding: 0; list-style: none; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  border-radius: 6px;
}
[data-theme-now="lime"] :focus-visible { outline-color: var(--ink); }

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

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  background: var(--lime); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; font-weight: 700;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

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

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 4.17vw, 60px);
  line-height: .98;
  letter-spacing: -.018em;
  text-transform: uppercase;
}

.label {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(20px, 2.5vw, 36px);
}
.label b {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 400;
  letter-spacing: .08em;
}

/* Split text helpers */
.split-mask-line-mask, .split-line { display: block; }
.split-line { padding-bottom: .08em; margin-bottom: -.08em; }

/* Letter roll on hover */
[data-roll] { display: inline-flex; overflow: hidden; vertical-align: top; }
.roll { position: relative; display: inline-block; white-space: pre; }
.roll > span { position: relative; display: inline-block; transition: transform .55s var(--ease); transition-delay: calc(var(--i) * 14ms); }
.roll > span::after {
  content: attr(data-c);
  position: absolute; left: 0; top: 100%;
}
a:hover .roll > span, button:hover .roll > span,
[data-roll]:hover .roll > span { transform: translateY(-100%); }

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

.btn {
  --btn-bg: var(--lime);
  --btn-fg: var(--ink);
  --btn-hover: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 30px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700; letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; left: var(--mx, 50%); top: var(--my, 50%);
  width: 0; height: 0; z-index: -1;
  border-radius: 50%;
  background: var(--btn-hover);
  transform: translate(-50%, -50%);
  transition: width .6s var(--ease), height .6s var(--ease);
}
.btn:hover::before { width: 260%; height: 600%; }
.btn--sm { height: 44px; padding: 0 20px; }
.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--ink); --btn-hover: var(--paper); }
/* lime buttons are domed like the gamepad buttons */
.btn--lime::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .35), inset 0 0 2px #b7ff09, inset 4px 5px 16px #fff;
}
.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--lime); --btn-hover: var(--paper); }
.btn--ink:hover { color: var(--ink); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--fg); --btn-hover: var(--fg);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { color: var(--bg); }
.btn--outline-ink {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-hover: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(23, 30, 38, .35);
}
.btn--outline-ink:hover { color: var(--paper); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1;
  letter-spacing: .01em; text-transform: uppercase;
  padding: 10px 0;
}
/* the little lime triangle from Figma, turned to point right */
.arrow { width: 11.5px; height: 10px; flex: none; transform: rotate(-90deg); transition: transform .5s var(--ease); }
.link-arrow:hover .arrow { transform: translateX(6px) rotate(-90deg); }

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */

.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background: var(--ink);
  color: var(--paper);
}
.loader__inner { display: grid; justify-items: center; gap: 22px; }
.loader__pad { width: 96px; height: 96px; overflow: visible; }
.loader__base { fill: #2a353f; }
.loader__fill, .loader__hub { fill: #b7ff09; }
.loader__mark { fill: #10212c; }
.loader__hand { stroke: #489b00; }
.loader__count {
  font-family: var(--font-display); font-weight: 700;
  font-size: 56px; line-height: 1; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: flex-start;
}
.loader__pct { font-size: 20px; margin-left: 4px; margin-top: 6px; color: var(--lime); }
.loader__line { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 241, 234, .6); }
.loader__bar { width: 180px; height: 3px; border-radius: 3px; background: rgba(243, 241, 234, .12); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* --------------------------------------------------------------------------
   Cursor, grain, toast
   -------------------------------------------------------------------------- */

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.has-cursor, html.has-cursor * { cursor: none !important; }
  html.has-cursor input { cursor: text !important; }
  .has-cursor .cursor { display: block; }
}
.cursor { position: fixed; inset: 0 auto auto 0; z-index: 1200; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; left: 0; top: 0; border-radius: 50%; }
.cursor__dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px;
  background: var(--fg);
  transition: opacity .2s, background-color .3s;
}
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1.5px solid color-mix(in srgb, var(--fg) 45%, transparent);
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s;
}
.cursor__label {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  color: var(--ink); opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .45s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--fg); }
.cursor.is-label .cursor__ring {
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  background: var(--lime); border-color: var(--lime);
}
.cursor.is-label .cursor__label { opacity: 1; transform: none; }
.cursor.is-label .cursor__dot { opacity: 0; }
[data-theme-now="lime"] .cursor.is-label .cursor__ring { background: var(--ink); border-color: var(--ink); }
[data-theme-now="lime"] .cursor.is-label .cursor__label { color: var(--lime); }
.cursor.is-hidden { opacity: 0; }

.grain {
  position: fixed; inset: 0; z-index: 1100; pointer-events: none;
  opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 950;
  visibility: hidden;
  background: var(--lime); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5);
  white-space: nowrap;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 800;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 30px;
  padding: 0 var(--gutter);
  color: var(--fg);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { position: relative; display: flex; align-items: center; margin-right: auto; }
.nav__brand img { width: 52px; height: auto; transition: transform .6s var(--ease); }
.nav__brand .nav__logo-gap { position: absolute; left: 0; top: 0; height: 100%; opacity: 0; }
.nav__brand:hover img { transform: rotate(-12deg) scale(1.06); }
.nav__word {
  font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.05; letter-spacing: -.005em;
  display: flex; flex-direction: column;
}
.nav__word small { font-family: var(--font-mono); font-weight: 400; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; box-shadow: inset 0 0 0 1.5px var(--line); }
.nav__toggle i {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__toggle i:nth-of-type(1) { top: 18px; }
.nav__toggle i:nth-of-type(2) { top: 26px; }
.menu-open .nav__toggle i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.menu-open .nav__toggle i:nth-of-type(2) { top: 22px; transform: rotate(-45deg); }
.nav__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; }
.nav__progress i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }
[data-theme-now="lime"] .nav__progress i { background: var(--ink); }
[data-theme-now="lime"] .nav__cta { --btn-bg: var(--ink); --btn-fg: var(--lime); }
[data-theme-now="lime"] .nav__cta::after { box-shadow: none; }

.menu {
  position: fixed; inset: 0; z-index: 790;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 10vw, 64px); line-height: 1.08; letter-spacing: -.015em;
  overflow: hidden; display: block;
}
.menu__links a span { display: inline-block; }
.menu__links a:last-child { color: var(--lime); }
.menu__foot { margin-top: 40px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(243, 241, 234, .55); }
.menu-open .nav { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-open .nav .nav__word small { color: rgba(243, 241, 234, .6); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--nav-h) + 40px) var(--gutter) clamp(28px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}
/* Background texture from the Figma hero: grainy green gradient, lime glow and a fade into the page */
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--ink);
  background-image: url("../assets/hero-bg.webp");
  background-image: image-set(url("../assets/hero-bg-sm.webp") 1x, url("../assets/hero-bg.webp") 2x);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
/* scaled up a little so it can pan with the cursor without showing an edge */
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { transform: scale(1.12); will-change: transform; }
}
.hero__canvas { display: none; position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-3d .hero__canvas { display: block; }
.hero-3d .hero__art { display: none; }

.hero__art { position: absolute; inset: 0; z-index: -1; }

/* The D-pad from the logo (default hero art). The SVG has some padding round
   the tilted plus, so the box is a little bigger than the D-pad itself. */
.hero__logo {
  position: absolute; left: 76.8%; top: 46.37%;
  width: min(28.5vw, 45.5vh, 440px);
  aspect-ratio: 1;
  translate: -50% -50%;
}
.hero__logo img { width: 100%; height: 100%; }
.logo-fly { display: none; }
.logo-flying .hero__logo { visibility: hidden; }
.logo-flying .logo-fly {
  display: block;
  position: fixed; left: 0; top: 0; z-index: 810;
  pointer-events: none;
  will-change: transform;
}
.logo-fly__inner { position: relative; width: 100%; height: 100%; }
.logo-fly__inner img { width: 100%; height: 100%; }

/* The hero D-pad in 3D: plain CSS 3D transforms, no WebGL. A stack of darker
   plus shapes behind the face gives it thickness; the arrows, ring and hand
   sit a few pixels proud of the face. Built by hero-logo.js. */
.dpad3d { position: absolute; inset: 0; perspective: 1400px; --depth: 34px; }
.dpad3d__body { position: absolute; inset: 0; transform-style: preserve-3d; }
.dpad3d__body > * { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dpad3d__edge {
  fill: color-mix(in srgb, #92dc00 calc(100% - var(--k) * 4.5%), #243f00);
  transform: translateZ(calc(var(--k) * var(--depth) / -16));
}
.dpad3d__shadow {
  fill: #000; opacity: .5;
  filter: blur(18px);
  transform: translateZ(calc(var(--depth) * -1 - 50px)) translateY(34px) scale(.94);
}
.dpad3d__face { fill: #b7ff09; }
.dpad3d__gloss { fill: url(#dpadGloss); transform: translateZ(.5px); }
.dpad3d__marks { transform: translateZ(4px); }
.dpad3d__hand { transform: translateZ(9px); }
/* While the O is out flying, the nav shows the badge with a gap. It fades in
   as the O heads up (see hero-logo.js), since the hero has its own logo. */
.logo-flying:not(.logo-docked) .nav__logo { opacity: 0; }
.logo-docked .nav__logo-gap { visibility: hidden; }
.logo-docked .logo-fly, .menu-open .logo-fly { visibility: hidden; }
.menu-open .nav__logo { opacity: 1 !important; }
.menu-open .nav__logo-gap { opacity: 0 !important; }

/* Flat D-pad (data-hero="pad") */
.hero__pad { display: none; }
.hero-pad .hero__pad { display: block; }
.hero-pad .hero__logo { display: none; }
.hero__pad {
  position: absolute; left: 75%; top: 47%;
  width: min(34vw, 58vh, 560px);
  aspect-ratio: 72 / 76;
  translate: -50% -50%;
}
.js .hero__pad { translate: none; }
.hero__pad::after {
  content: ""; position: absolute; z-index: -1;
  left: 10%; right: 10%; bottom: -10%; height: 16%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .5), transparent);
}
.hero__pad-spin, .hero__pad-float, .hero__pad-inner { width: 100%; height: 100%; }
.hero__pad-inner { position: relative; }
.pad { width: 100%; height: 100%; overflow: visible; }
.pad__side { fill: url(#padSide); }
.pad__face { fill: url(#padFace); stroke: rgba(255, 255, 255, .4); stroke-width: .45; }
.pad__shine { fill: url(#padShine); }
.pad__tri { fill: var(--ink); }
.hero__ring {
  position: absolute; left: 50%; top: 24%;
  width: 22%; aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--paper);
  opacity: 0;
  pointer-events: none;
}
.hero__bits { position: absolute; inset: 0; }
.bit {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  opacity: var(--o);
  animation: drift var(--t) ease-in-out var(--d) infinite alternate;
}
.bit svg { width: 100%; height: 100%; --dp-disc: var(--lime); --dp-mark: var(--ink); }
.bit--tri b {
  display: block; width: 100%; height: 100%;
  background: var(--paper);
  clip-path: polygon(50% 6%, 96% 92%, 4% 92%);
}
.hero__art.is-paused .bit { animation-play-state: paused; }

/* Floating 3D app icons. Plain CSS 3D transforms, no WebGL: each icon is a
   face, a back and a stack of edge layers that give it thickness. */
.icon3d {
  --size: var(--s);
  --step: calc(var(--size) * .018);
  position: absolute; left: var(--x); top: var(--y);
  width: var(--size); height: var(--size);
  opacity: var(--o, 1);
  perspective: 600px;
  animation: iconFloat var(--ft, 8s) ease-in-out var(--d, 0s) infinite alternate;
}
.icon3d__spin {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateZ(var(--rz)) rotateY(-24deg);
  animation: iconSpin var(--st, 28s) linear var(--d, 0s) infinite;
  animation-direction: var(--dir, normal);
}
.icon3d__spin > * { position: absolute; inset: 0; border-radius: 23%; }
.icon3d__edge {
  background: color-mix(in srgb, var(--edge) calc(100% - var(--k) * 6%), #000);
  transform: translateZ(calc(var(--k) * var(--step) * -1));
}
.icon3d__face {
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
}
.icon3d__face::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(140deg, rgba(255, 255, 255, .32), transparent 42%);
}
.icon3d__face svg, .icon3d__face img { width: 100%; height: 100%; }
.icon3d__face img { object-fit: cover; border-radius: inherit; }
.icon3d__back {
  display: grid; place-items: center;
  background: var(--back);
  transform: translateZ(calc(var(--step) * -8)) rotateY(180deg);
  backface-visibility: hidden;
  --dp-mark: var(--ink);
}
.icon3d__back svg { width: 62%; height: 62%; }
.hero__art.is-paused .icon3d, .hero__art.is-paused .icon3d__spin { animation-play-state: paused; }
@keyframes iconSpin {
  from { transform: rotateX(var(--rx)) rotateZ(var(--rz)) rotateY(0deg); }
  to { transform: rotateX(var(--rx)) rotateZ(var(--rz)) rotateY(360deg); }
}
@keyframes iconFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(10px, -22px, 0); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(var(--r0)); }
  to { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--r1)); }
}
@media (max-aspect-ratio: 21/20) {
  .hero__logo { left: 50%; top: 25%; width: min(60vw, 36vh); }
  .hero__pad { left: 54%; top: 28%; width: min(60vw, 40vh); }
  .bit--wide, .icon3d--far { display: none; }
  .icon3d { --size: var(--ms, var(--s)); left: var(--mx, var(--x)); top: var(--my, var(--y)); }
  .hero__bg { background-position: 22% top; }
}

.hero__inner {
  position: relative;
  width: 100%; max-width: var(--max); margin-inline: auto;
  pointer-events: none;
}
.hero__inner a, .hero__inner button { pointer-events: auto; }
.hero__brand { margin-bottom: clamp(20px, 3vw, 36px); }
.hero__mark { width: clamp(96px, min(13.9vw, 22.3vh), 200px); height: auto; flex: none; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 7.5vw, 108px);
  line-height: .94;
  letter-spacing: -.04em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__bottom {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 52px);
  padding-right: clamp(0px, 12.4vw, 179px);
}
.hero__lede { max-width: 630px; font-size: clamp(16px, 1.67vw, 24px); line-height: 1.5; color: var(--muted); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }

.hero__hud {
  position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 28px);
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hud__keys {
  display: grid; grid-template-columns: repeat(3, 22px); grid-template-rows: repeat(2, 22px); gap: 3px;
}
.hud__keys .key {
  display: grid; place-items: center;
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-keys); font-size: 11px; letter-spacing: 0; color: var(--muted);
  transition: background-color .25s, color .25s, transform .15s;
}
.hud__keys [data-key="up"] { grid-column: 2; grid-row: 1; }
.hud__keys [data-key="left"] { grid-column: 1; grid-row: 2; }
.hud__keys [data-key="down"] { grid-column: 2; grid-row: 2; }
.hud__keys [data-key="right"] { grid-column: 3; grid-row: 2; }
.hud__keys [data-key="up"], .hud__keys [data-key="down"] { font-weight: 700; }
.hud__keys .key.is-on { background: var(--lime); color: var(--ink); transform: translateY(2px); box-shadow: none; }
.hint--touch { display: none; }
@media (hover: none) {
  .hint--fine { display: none; }
  .hint--touch { display: inline; }
  .hud__keys { display: none; }
}
.hud__combo {
  position: absolute; right: 0; top: 100%; margin-top: 10px; white-space: nowrap;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 0; text-transform: none;
  color: var(--lime); opacity: 0; transform: translateY(6px);
}
.hud__combo span { color: var(--muted); font-size: 11px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }

.hero__badge {
  position: absolute; right: var(--gutter); bottom: clamp(28px, 4vw, 48px);
  width: clamp(104px, 9.45vw, 136px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__badge text { font-family: var(--font-mono); font-size: 13.2px; letter-spacing: .14em; fill: var(--muted); }
.hero__badge-btn {
  position: relative; width: 45.6%; height: auto;
  animation: bob 2.4s var(--ease-io) infinite;
}
@keyframes bob { 50% { transform: translateY(6px); } }

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

.ticker {
  position: relative;
  padding-block: clamp(60px, 10.04vw, 144.6px) clamp(70px, 11.17vw, 160.8px);
  overflow: hidden;
}
.ticker__row {
  position: relative;
  width: 110%; margin-left: -5%;
  padding: clamp(14px, 1.67vw, 24px) 0;
  overflow: hidden;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.084vw, 30px); line-height: 1; letter-spacing: -.03em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.ticker__row--lime { background: var(--lime); color: var(--ink); transform: rotate(-3deg); z-index: 2; }
.ticker__row--paper { background: var(--paper); color: var(--ink); transform: rotate(2deg); width: 113.2%; margin: -3.4px 0 0 -6.6%; }
.ticker__track { display: inline-flex; align-items: center; gap: 1.0667em; padding-right: 1.0667em; will-change: transform; }
/* one gamepad button between each phrase, 36px at full size */
.ticker__track .wywg { width: 1.2em; height: 1.2em; flex: none; }

/* --------------------------------------------------------------------------
   Games
   -------------------------------------------------------------------------- */

.games { position: relative; }
.games__pin {
  position: relative;
  height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.games__track {
  display: flex; align-items: center;
  gap: clamp(28px, 4.03vw, 58px);
  padding: 0 var(--gutter);
  will-change: transform;
}
.games__intro {
  flex: 0 0 auto;
  width: min(36vw, 520px);
}
.games__intro .label { margin-bottom: clamp(20px, 2.22vw, 32px); }
.games__lede { margin-top: 28px; max-width: 420px; color: var(--muted); }
.games__hint {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.games__hint .arrow { animation: nudge 1.6s var(--ease-io) infinite; }
.hint--narrow { display: none; }
@keyframes nudge { 0%, 100% { transform: rotate(-90deg); } 50% { transform: translateX(8px) rotate(-90deg); } }

.game {
  --accent: var(--lime);
  position: relative;
  flex: 0 0 auto;
  width: min(68vw, 820px);
  height: min(78vh, 700px);
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: clamp(28px, 4.44vw, 64px);
  padding: clamp(24px, 3.47vw, 50px);
  border-radius: 32px;
  background:
    radial-gradient(55.6% 45.5% at 61.1% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent),
    var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.game__num {
  position: absolute; right: 42px; top: 26px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(90px, 13.2vw, 190px); line-height: .9; letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(243, 241, 234, .08);
  pointer-events: none;
}

.phone {
  --accent: var(--lime);
  position: relative;
  display: block;
  aspect-ratio: 9 / 19.3;
  border-radius: 14% / 6.6%;
  background: linear-gradient(115deg, #3b4552 8.33%, #0d1217 41.67%, #212b33 91.67%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    0 40px 40px rgba(0, 0, 0, .55);
  transform-style: preserve-3d;
  will-change: transform;
}
.phone__screen {
  position: absolute; inset: 1.17% 2.5%;
  border-radius: 11.28% / 5.12%;
  overflow: hidden;
  background: #05080b;
}
.phone__screen canvas { width: 100%; height: 100%; }
.phone__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone__video[hidden], .modal__canvas[hidden] { display: none; }
.phone__island {
  position: absolute; z-index: 2; top: 3.43%; left: 50%;
  width: 30%; height: 3.68%;
  transform: translateX(-50%);
  border-radius: 999px; background: #000;
}
.phone__glare {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 40% at var(--gx, 30%) var(--gy, 15%), rgba(255, 255, 255, .22), transparent 70%);
  mix-blend-mode: soft-light;
  opacity: .8;
}
.game__phone { height: 100%; max-height: 640px; }

.game__info { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 380px; }
.game__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-weight: 400;
  letter-spacing: .08em;
}
@keyframes blink { 50% { opacity: .2; } }
.game__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 3.61vw, 52px); line-height: 1; letter-spacing: 0;
}
.game__icon { width: 117px; height: 117px; border-radius: 20.9px; object-fit: cover; outline: 2px solid #b7ff09; outline-offset: -2px; }
.game__blurb { color: var(--muted); font-size: 18px; line-height: 1.75; margin-bottom: 12px; }
.game__stores { display: flex; gap: 8.66px; align-items: center; }
.game__stores img { height: 48.5px; width: auto; }
.game__stores a:last-child img { height: 47.47px; }
.game__platforms { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.game__platforms span { margin: 0 .74em; }

.games__outro {
  flex: 0 0 auto;
  width: min(40vw, 520px);
  height: min(78vh, 700px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
  padding: clamp(28px, 3.33vw, 48px);
  border-radius: 32px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: var(--ink);
}
.games__outro-pad { width: 84px; height: 84px; }
.games__outro h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.06vw, 44px); letter-spacing: -.02em; line-height: 1; }
.games__outro p { color: var(--muted); max-width: 360px; }

.games__progress {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px;
  display: flex; align-items: center; gap: 20px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.games__count b { color: inherit; font-weight: 400; }
.games__bar { flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.games__bar i { display: block; height: 100%; background: var(--lime); transform-origin: left; transform: scaleX(0); }

/* --------------------------------------------------------------------------
   Studio
   -------------------------------------------------------------------------- */

.studio { padding-block: clamp(110px, 15.28vw, 220px) clamp(90px, 12.5vw, 180px); }
.statement {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.75vw, 54px); line-height: 1.14; letter-spacing: -.018em;
  max-width: 1200px;
  text-wrap: pretty;
}
.statement mark {
  color: inherit;
  background: linear-gradient(var(--lime), var(--lime)) no-repeat 0 88% / 100% .42em;
  padding: 0 .06em;
  margin: 0 -.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.js:not(.reduced) .statement mark { background-size: 0% .42em; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(72px, 10.42vw, 150px);
  border-top: 1.5px solid var(--line);
}
.stat { padding: 32px 28px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1.5px solid var(--line); }
.stat__num {
  display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(54px, 6.67vw, 96px); line-height: 1; letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-family: var(--font-body); font-size: clamp(16px, 1.67vw, 24px); font-weight: 400; line-height: 1.5; letter-spacing: 0; color: var(--muted); }
.stat__text { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Values
   -------------------------------------------------------------------------- */

.values { padding-block: clamp(110px, 13.89vw, 200px) clamp(60px, 8.33vw, 120px); }
.values__head { margin-bottom: clamp(48px, 7vw, 100px); }
.values__lede { margin-top: 24px; color: var(--muted); max-width: 460px; }

.stack { display: grid; gap: 0; }
.vcard {
  position: sticky;
  top: calc(var(--nav-h) + 4vh + var(--i) * 26px);
  min-height: min(68vh, 560px);
  margin-bottom: 9vh;
  display: grid; grid-template-columns: 1fr minmax(0, 380px); align-items: center; gap: 40px;
  padding: clamp(28px, 5.56vw, 80px);
  border-radius: 36px;
  overflow: hidden;
  transform-origin: 50% 0;
  will-change: transform;
}
.vcard:last-child { margin-bottom: 0; }
.vcard--lime { --vc: var(--ink); background: var(--lime); color: var(--ink); }
.vcard--paper { --vc: var(--ink); background: var(--paper); color: var(--ink); }
.vcard--slate { --vc: var(--paper); background: var(--slate); color: var(--paper); }
.vcard--ink { --vc: var(--paper); background: #0f141a; color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--lime); }
.vcard__num {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-keys); font-size: 13px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: clamp(24px, 3.89vw, 56px);
}
.vcard__num span {
  padding: 4px 10px; border-radius: 999px;
  color: color-mix(in srgb, var(--vc) 80%, transparent);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--vc) 70%, transparent);
}
.vcard h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 4.44vw, 64px); line-height: .98; letter-spacing: -.022em;
  text-wrap: balance;
}
.vcard__text p:last-child { margin-top: 24px; font-size: clamp(17px, 1.67vw, 24px); line-height: 1.5; max-width: 520px; opacity: .78; }
.vcard__shade { position: absolute; inset: 0; border-radius: inherit; background: #0b0f14; opacity: 0; pointer-events: none; }
.vcard__pad { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1; justify-self: end; }
/* the artwork includes its drop shadow, so it spills past the 380px box */
.vcard__pad img { position: absolute; left: -11.84%; top: -10.79%; width: 123.68%; height: 123.68%; max-width: none; }

/* --------------------------------------------------------------------------
   Beyond (phone to TV)
   -------------------------------------------------------------------------- */

.beyond__pin {
  position: relative;
  height: 100vh;
  display: grid; grid-template-rows: auto 1fr;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  overflow: hidden;
}
.beyond__copy {
  display: grid; grid-template-columns: 1fr minmax(0, 460px); align-items: end; gap: 24px 48px;
  width: 100%; max-width: var(--max); margin-inline: auto;
}
.beyond__copy .label { grid-column: 1 / -1; margin-bottom: 0; }
.beyond__copy .h2 { max-width: 760px; }
.beyond__lede { color: var(--muted); max-width: 460px; }
.beyond__stage {
  position: relative;
  display: grid; place-items: center;
  min-height: 0;
  padding-bottom: 44px;
}
.device {
  position: relative;
  width: 260px; height: 540px;
  border-radius: 40px;
  padding: 10px;
  background: linear-gradient(150.6deg, #3b4552 8.33%, #0d1217 41.67%, #212b33 91.67%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .12),
    0 0 140px -30px rgba(153, 252, 0, .18),
    0 50px 90px -30px rgba(0, 0, 0, .6);
  will-change: width, height;
}
.device__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #0d1218;
}
.device__screen canvas {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  max-width: none;
}
.device__island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 24px; border-radius: 999px; background: #000;
}
.device__stand {
  position: absolute; left: 50%; top: 50%;
  width: 150px; height: 64px;
  margin-left: -75px;
  transform-origin: top center;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
}
.device__stand::before { content: ""; width: 28px; flex: 1; background: #3a4651; }
.device__stand i { width: 100%; height: 10px; border-radius: 10px; background: #56636f; }
.beyond__pad { position: absolute; width: 110px; margin: -37px 0 0 -55px; left: 50%; top: 50%; opacity: 0; pointer-events: none; }
.beyond__states {
  position: absolute; left: 0; bottom: 0;
  display: grid;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.state { grid-area: 1 / 1; display: flex; gap: 12px; align-items: center; }
.state b { padding: 5px 10px; border-radius: 6px; background: var(--lime); color: var(--ink); font-weight: 400; letter-spacing: .08em; }

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

.cta { padding-block: clamp(110px, 14.58vw, 210px) clamp(90px, 11.11vw, 160px); position: relative; overflow: hidden; }
.cta .label { color: rgba(23, 30, 38, .6); margin-bottom: clamp(20px, 1.94vw, 28px); }
.cta .label b { background: var(--ink); color: var(--lime); }
.cta__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(48px, 10.56vw, 152px); line-height: .88; letter-spacing: -.03em;
  perspective: 800px;
}
.cta__title > span { display: inline-block; white-space: nowrap; }
.cta__title .char { display: inline-block; transform-origin: 50% 100%; }
.cta__grid {
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 660px); justify-content: space-between; gap: 32px 64px; align-items: end;
  margin-top: clamp(40px, 6.25vw, 90px);
}
.cta__lede { font-size: clamp(18px, 1.53vw, 22px); max-width: 520px; line-height: 1.5; }
.signup__row {
  display: flex; gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink-2), 0 30px 60px -30px rgba(23, 31, 38, .45);
  transition: box-shadow .3s;
}
.signup__row:focus-within { box-shadow: inset 0 0 0 2px var(--ink-2), 0 0 0 3px var(--ink), 0 30px 60px -30px rgba(23, 31, 38, .45); }
.signup input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 0 20px;
  font: inherit; font-size: 18px; color: var(--ink);
}
.signup input::placeholder { color: rgba(23, 30, 38, .45); }
.signup { position: relative; }
/* sits under the field so it doesn't push the row out of line */
.signup__msg { position: absolute; left: 0; top: 100%; margin-top: 14px; padding-left: 22px; font-weight: 500; }
.signup__msg.is-error { color: #8a1c00; }
.cta__contact {
  margin-top: clamp(70px, 9.03vw, 130px);
  padding-top: 32px;
  border-top: 1.5px solid rgba(23, 30, 38, .2);
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px;
}
.cta__contact p { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(23, 30, 38, .65); }
.big-link {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 3.19vw, 46px); letter-spacing: -.02em; line-height: 1.1;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0% 3px;
  transition: background-size .7s var(--ease);
  overflow-wrap: anywhere;
}
.big-link:hover { background-position: 0 100%; background-size: 100% 3px; }

/* --------------------------------------------------------------------------
   Text sections, added in the editor
   -------------------------------------------------------------------------- */

.text-sec { padding-block: clamp(110px, 13.89vw, 200px); }
.text-sec__body { margin-top: 28px; max-width: 640px; color: var(--muted); }
.text-sec__body p + p { margin-top: 1em; }
.text-sec__body strong { color: var(--fg); }
.text-sec__body .page-link { color: inherit; }
[data-theme="ink"] .text-sec__body .page-link { color: var(--lime); }
.text-sec__btn { margin-top: 40px; }

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

.footer {
  position: relative; isolation: isolate;
  padding-top: clamp(80px, 9.72vw, 140px);
  overflow: hidden;
  /* from Figma: the grainy photo, a green gradient in soft light over it, then 80% ink */
  background:
    linear-gradient(rgba(23, 30, 38, .8), rgba(23, 30, 38, .8)),
    linear-gradient(226.94deg, #004302 24.08%, #111c08 50.92%, #72fe00 76.25%),
    url("../assets/footer-bg.jpg") center bottom / cover no-repeat;
  background-blend-mode: normal, soft-light, normal;
}
/* The footer is always dark (its own grainy background), so its text stays
   light whatever colour the section above it left the page in. */
.footer {
  --fg: var(--paper);
  --muted: color-mix(in srgb, var(--fg) 64%, transparent);
  --line: color-mix(in srgb, var(--fg) 16%, transparent);
  color: var(--fg);
}
.footer__top {
  display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 40px;
  padding-bottom: clamp(60px, 8vw, 110px);
}
.footer__brand { display: flex; flex-direction: column; gap: 22px; }
.footer__brand img { width: 156px; height: auto; margin: 5px 0 0 5px; transform: rotate(-4deg); transition: transform .8s var(--ease); }
.footer__brand img:hover { transform: rotate(3deg) scale(1.04); }
.footer__brand p { display: none; color: var(--muted); max-width: 300px; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer__head { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__col a { font-size: 15px; font-weight: 500; line-height: 1.4; }
/* the big wordmark is only in the mobile design */
.footer__word {
  display: none;
  font-family: var(--font-display); font-weight: 700;
  line-height: .8; letter-spacing: -.03em;
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  color: var(--lime);
  padding: 0 var(--gutter);
  font-size: 12vw;
}
.footer__word span { display: inline-block; }
.footer__word .char { display: inline-block; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  max-width: none;
  padding-block: 28px;
  border-top: 2px solid #b7ff09;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.to-top { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-transform: inherit; letter-spacing: inherit; }
.to-top img { width: 24px; height: 24px; transition: transform .5s var(--ease); }
.footer__legal { max-width: none; padding-bottom: 28px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.footer__bottom + .footer__legal { margin-top: -8px; }
.to-top:hover img { transform: translateY(-4px); }

/* --------------------------------------------------------------------------
   Info pages: privacy and support
   -------------------------------------------------------------------------- */

.page { --page-max: 1328px; }
.page-link {
  color: var(--lime);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em;
  overflow-wrap: anywhere;
  transition: text-decoration-thickness .2s;
}
.page-link:hover { text-decoration-thickness: 3px; }

/* header sits over the top band */
.page-nav {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; gap: 30px;
  height: var(--nav-h); padding: 0 var(--gutter);
}
.page-nav__brand { margin-right: auto; }
.page-nav__brand img { width: 52px; height: auto; transition: transform .6s var(--ease); }
.page-nav__brand:hover img { transform: rotate(-12deg) scale(1.06); }
.page-nav__links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.page-nav__links a { position: relative; padding: 6px 0; }
.page-nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.page-nav__links a:hover::after, .page-nav__links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.page-nav__links a[aria-current="page"] { color: var(--lime); }

/* top band: the hero's grain and a D-pad */
.doc-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(48px, 6.94vw, 100px)) var(--gutter) clamp(56px, 6.25vw, 90px);
}
.doc-hero__bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--ink) url("../assets/hero-bg-sm.webp") center top / cover no-repeat;
}
.doc-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 30, 38, .25) 0%, rgba(23, 30, 38, .7) 60%, var(--ink) 100%); }
.doc-hero__art {
  position: absolute; z-index: -1; pointer-events: none;
  right: clamp(-90px, 1vw, 40px); top: 50%;
  width: clamp(240px, 30vw, 440px); max-width: none;
  translate: 0 -44%; rotate: 12deg;
}
.doc-hero__inner { max-width: 820px; }
.doc-hero .label { margin-bottom: 24px; }
.doc-hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 6.25vw, 90px); line-height: .94; letter-spacing: -.035em;
  text-transform: uppercase;
}
.doc-hero__title em { font-style: normal; color: var(--lime); }
.doc-hero__lede { margin-top: 28px; max-width: 640px; font-size: clamp(18px, 1.53vw, 22px); line-height: 1.5; }
.doc-hero__meta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.doc-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 99px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase;
  background: color-mix(in srgb, var(--lime) 16%, transparent); color: var(--lime);
}
.doc-chip--plain { background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.doc-hero__game { display: flex; align-items: center; gap: clamp(16px, 1.67vw, 24px); }
.doc-hero__game img, .game-icon {
  flex: none; width: clamp(72px, 6.94vw, 100px); aspect-ratio: 1; height: auto;
  border-radius: 21%; object-fit: cover;
  outline: 2px solid #b7ff09; outline-offset: -2px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
}
.doc-back {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.doc-back .arrow { transform: rotate(90deg); }
.doc-back:hover { color: var(--fg); }
.doc-back:hover .arrow { transform: translateX(-4px) rotate(90deg); }

/* the short version */
.doc-short { padding: 0 var(--gutter); }
.doc-short__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--page-max); }
.doc-short__item {
  padding: clamp(24px, 2.22vw, 32px);
  border-radius: 24px;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
}
.doc-short__item .doc-num { margin-bottom: 22px; }
.doc-short__item h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 1.81vw, 26px); line-height: 1.1; letter-spacing: -.01em; }
.doc-short__item p { margin-top: 10px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.doc-num {
  display: inline-block; padding: 3px 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .08em;
  background: var(--fg); color: var(--bg);
}

/* the full text, with a contents list beside it */
.doc-body {
  display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(40px, 6.94vw, 100px);
  max-width: calc(var(--page-max) + var(--gutter) * 2);
  padding: clamp(80px, 8.33vw, 120px) var(--gutter) 0;
}
.doc-toc { position: sticky; top: 32px; align-self: start; }
.doc-toc__head { margin-bottom: 14px; font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.doc-toc ol { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.doc-toc a {
  display: flex; gap: 12px; align-items: baseline;
  padding: 7px 0;
  font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--muted);
  transition: color .3s;
}
.doc-toc a span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; }
.doc-toc a:hover, .doc-toc a.is-active { color: var(--fg); }
.doc-toc a.is-active span { color: var(--lime); }
.doc-sec { scroll-margin-top: 32px; }
.doc-sec + .doc-sec { margin-top: clamp(48px, 4.44vw, 64px); padding-top: clamp(48px, 4.44vw, 64px); border-top: 1.5px solid var(--line); }
.doc-sec__title {
  display: flex; gap: 16px; align-items: flex-start;
  margin-bottom: 18px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -.015em;
}
.doc-sec__title .doc-num { flex: none; margin-top: .3em; }
.doc-sec p { color: color-mix(in srgb, var(--fg) 82%, transparent); }
.doc-sec p + p, .doc-sec .doc-services + p { margin-top: 14px; }

/* the outside services this site uses */
.doc-services { margin: 22px 0 24px; border-top: 1px solid var(--line); }
.doc-services li {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 6px 24px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.doc-services strong { font-weight: 700; }
.doc-services span { font-size: 16px; line-height: 1.5; color: var(--muted); }
.doc-services a { font-family: var(--font-mono); font-size: 12px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

/* lime call-out, used for "ask us" */
.doc-ask {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  margin-top: 28px; padding: clamp(24px, 2.5vw, 36px);
  border-radius: 28px;
  background: var(--lime); color: var(--ink);
}
.doc-ask p { max-width: 380px; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 1.81vw, 26px); line-height: 1.15; color: var(--ink) !important; }

/* game by game */
.doc-games { padding: clamp(100px, 10.42vw, 150px) var(--gutter) clamp(100px, 10.42vw, 150px); }
.doc-games__head { max-width: 760px; margin-bottom: clamp(36px, 4.17vw, 60px); }
.doc-games__head p:last-child { margin-top: 20px; max-width: 520px; color: var(--muted); }
.doc-games__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); gap: 20px; max-width: var(--page-max); }
.policy-card {
  --accent: var(--lime);
  position: relative; display: flex; flex-direction: column;
  border-radius: 32px;
  background:
    radial-gradient(80% 70% at 22% 18%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .4s var(--ease), transform .6s var(--ease);
}
.policy-card:hover { box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-4px); }
.policy-card__main {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px; flex: 1;
  min-height: clamp(380px, 31.94vw, 460px); padding: clamp(28px, 2.78vw, 40px);
}
/* the button or link stretches over the whole card, so the card is the target */
.policy-card__open {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px; padding: 10px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1; letter-spacing: .01em; text-transform: uppercase;
}
.policy-card__open::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.policy-card__open:focus-visible { outline: none; }
.policy-card:has(.policy-card__open:focus-visible) { outline: 2px solid var(--lime); outline-offset: 4px; }
.policy-card .game-icon { width: 117px; }
.policy-card__name { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 3.06vw, 44px); line-height: 1; letter-spacing: -.02em; }
.policy-card__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.policy-card__summary { max-width: 360px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.policy-card:hover .arrow { transform: translateX(6px) rotate(-90deg); }
.policy-card--soon {
  justify-content: center; gap: 18px; padding: clamp(28px, 2.78vw, 40px);
  min-height: clamp(380px, 31.94vw, 460px);
  background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
.policy-card--soon:hover { box-shadow: inset 0 0 0 1.5px var(--line); transform: none; }
.policy-card--soon img { width: 84px; }
.policy-card--soon h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 2.5vw, 36px); line-height: 1; letter-spacing: -.02em; }
.policy-card--soon p { max-width: 320px; font-size: 16px; line-height: 1.5; color: var(--muted); }
/* the full policy lives in the card; with JS it opens full screen instead */
.policy-card__full { padding: 0 clamp(28px, 2.78vw, 40px) clamp(28px, 2.78vw, 40px); }
.policy-card__full .modal__status, .policy-card__full .modal__title, .policy-card__full .modal__ctas { display: none; }
.js .policy-card__full { display: none; }
html:not(.js) .policy-card button.policy-card__open { display: none; }

/* the policy opened full screen (shares the home page's game overlay styles) */
.policy-modal .modal__visual { width: min(100%, 340px); }
.policy-modal__icon { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; object-fit: cover; box-shadow: 0 50px 90px -30px rgba(23, 30, 38, .55); }
.policy-modal .modal__facts { grid-template-columns: repeat(3, auto); }
.policy-modal .modal__desc p + p { margin-top: 14px; }
/* Links in an open game policy take the panel's ink, since the lime won't read on every game's colour. */
.policy-modal .modal__desc .page-link { color: inherit; }
.policy-modal .modal__content { max-width: 680px; }

/* support */
.doc-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: calc(var(--page-max) + var(--gutter) * 2); padding: clamp(80px, 8.33vw, 120px) var(--gutter) 0; }
.doc-faq__item { padding: clamp(24px, 2.5vw, 36px); border-radius: 24px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.doc-faq__item h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 1.94vw, 28px); line-height: 1.1; letter-spacing: -.01em; }
.doc-faq__item p { margin-top: 12px; font-size: 17px; line-height: 1.6; color: color-mix(in srgb, var(--fg) 82%, transparent); }
.doc-end { max-width: calc(var(--page-max) + var(--gutter) * 2); padding: 16px var(--gutter) clamp(100px, 10.42vw, 150px); }
.doc-end .doc-ask { margin-top: 0; }
.doc-end__note { margin-top: 28px; color: var(--muted); }

@media (max-width: 899px) {
  .doc-body { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
  .doc-short__list { grid-template-columns: 1fr; }
  .doc-faq { grid-template-columns: 1fr; }
  .doc-hero__art { width: 260px; right: -110px; top: 30%; opacity: .55; }
  .policy-modal .modal__visual { width: min(46%, 200px); }
}
@media (max-width: 600px) {
  .doc-hero__art { display: none; }
}
@media (max-width: 520px) {
  .page-nav__links { gap: 18px; }
  .page-nav__brand img { width: 46px; }
  .doc-services li { grid-template-columns: 1fr; }
  .policy-modal .modal__facts { grid-template-columns: 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 1000; color: var(--ink); }
.modal[hidden] { display: none; }
.modal__bg {
  position: absolute; inset: 0;
  background: var(--accent, var(--lime));
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%));
}
.modal__inner {
  position: absolute; inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(80px, 8vw, 110px) var(--gutter) 60px;
}
.modal__close {
  position: fixed; top: 22px; right: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: 12px;
  height: 48px; padding: 0 8px 0 20px;
  border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
}
.modal__close i { font-style: normal; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent, var(--lime)); color: var(--ink); transition: transform .5s var(--ease); }
.modal__close:hover i { transform: rotate(90deg); }
.modal__grid {
  max-width: 1200px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(36px, 6vw, 100px); align-items: center;
  min-height: calc(100vh - 170px);
}
.modal__visual { width: min(100%, calc((100vh - 200px) * 9 / 19.3)); justify-self: center; }
.modal__phone { --accent: var(--ink); width: 100%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .12), 0 60px 100px -30px rgba(23, 30, 38, .55); }
.modal__status { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--accent, var(--lime)); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.modal__title { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(48px, 7vw, 120px); line-height: .9; letter-spacing: -.028em; }
.modal__tagline { margin-top: 22px; font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.25; letter-spacing: -.01em; max-width: 620px; }
.modal__facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; padding: 22px 0; border-block: 1.5px solid rgba(23, 30, 38, .2); }
.modal__facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.modal__facts dd { font-weight: 700; margin-top: 4px; }
.modal__desc { margin-top: 28px; font-size: 18px; max-width: 620px; }
.modal__features { margin-top: 24px; display: grid; gap: 10px; max-width: 620px; }
.modal__features li { display: flex; gap: 14px; align-items: baseline; }
.modal__features li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--ink); transform: translateY(-1px) rotate(45deg); }
.modal__ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .nav__links { gap: 22px; font-size: 14px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { margin-top: 40px; border-top: 1.5px solid var(--line); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  :root { --nav-h: 68px; }
  body { font-size: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__brand img { width: 46px; }

  .hero { padding-bottom: 32px; }
  .hero__bottom { padding-right: 0; }
  .hero__hud { top: auto; bottom: auto; right: auto; left: var(--gutter); top: calc(var(--nav-h) + 16px); }
  .hero__badge { display: none; }

  .games__pin { height: auto; display: block; overflow: visible; }
  .games__track { flex-direction: column; align-items: stretch; padding: clamp(80px, 14vw, 120px) var(--gutter) 40px; gap: 28px; }
  .games__intro { width: 100%; padding: 0 0 16px; }
  .hint--wide { display: none; }
  .hint--narrow { display: inline; }
  .games__hint .arrow { transform: none; animation: none; }
  .game {
    width: 100%; height: auto;
    grid-template-columns: 1fr; justify-items: center;
    padding: 36px 22px 30px;
    border-radius: 26px;
  }
  .game__phone { width: min(62%, 260px); height: auto; }
  .game__info { max-width: none; width: 100%; }
  .games__outro { width: 100%; height: auto; min-height: 360px; border-radius: 26px; }
  .games__progress { display: none; }

  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding-right: 16px; }
  .stat + .stat { padding-left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }

  .vcard {
    grid-template-columns: 1fr; gap: 24px;
    min-height: 0;
    top: calc(var(--nav-h) + 12px + var(--i) * 14px);
    border-radius: 26px;
    margin-bottom: 6vh;
  }
  .vcard__pad { max-width: 120px; justify-self: start; order: -1; }

  .beyond__copy { grid-template-columns: 1fr; }
  .beyond__states { left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .state { justify-content: center; }

  .cta__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__brand p { display: block; }
  .footer__word { display: block; }
  .footer__bottom { margin-top: 28px; }

  .modal__grid { grid-template-columns: 1fr; justify-items: center; min-height: 0; }
  .modal__visual { width: min(58%, 250px, calc((100vh - 220px) * 9 / 19.3)); }
  .modal__content { width: 100%; }
  .modal__facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .signup__row { flex-direction: column; border-radius: 26px; padding: 8px; }
  .signup input { height: 52px; }
  .signup .btn { width: 100%; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0 0; border-left: 0; }
  .stat:nth-child(n+2) { margin-top: 28px; border-top: 1.5px solid var(--line); }
  .hero__ctas .btn { flex: 1 1 auto; padding: 0 22px; font-size: 14px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion: show everything in its final state */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
}
