/* Giganoob landing page v6 — built from Figma "giganoob home v6" (130:8336).
   Desktop (1024px and up): sections are laid out at the 1512px design size and the whole page is
   scaled to the viewport via --z (see main.js), so it matches Figma exactly.
   Mobile and tablet (below 1024px): sections reflow into a single column with real type sizes;
   each illustration keeps its design geometry and is scaled as one unit with `zoom` (--s). */

/* Giganoob custom face (one weight). Declared across the weight range so the bold weight headers ask for
   uses it as drawn instead of a synthesized bold; Balsamiq Sans (bold) still fills in missing glyphs. */
@font-face {
  font-family: "Giganoob";
  src: url("assets/fonts/Giganoob-Regular.woff2") format("woff2"), url("assets/fonts/Giganoob-Regular.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --z: 1;
  --vw: 390;                                   /* viewport width, unitless (set by main.js) */
  --u: calc(min(var(--vw), 600) / 390);        /* mobile scale unit: 1 at 390px wide */
  --dark: #1b171b;
  --ink: #32292f;
  --cream: #f7f2e9;
  --sand: #f3e6d0;
  --blue: #3970e4;
  --sky: #98d2f6;
  --peach: #f6aa7c;
  --pink: #fe89a3;
  /* Headers: Balsamiq Sans */
  --display: "Balsamiq Sans", "Nunito", system-ui, sans-serif;
  /* The custom Giganoob face, kept where Figma still uses it: product labels, 1st Edition badge, Discord captions,
     wallpaper hint and the 404 page. It has no apostrophe, so that falls back to Balsamiq Sans. */
  --giga: "Giganoob", "Balsamiq Sans", "Nunito", system-ui, sans-serif;
  --balsamiq: "Balsamiq Sans", "Nunito", system-ui, sans-serif;
  /* Secondary text, nav and buttons */
  --sub: "Nunito", system-ui, sans-serif;
  --ui: "Nunito", system-ui, sans-serif;
  --nav: "Nunito", system-ui, sans-serif;

  /* Springy easings (overshoot then settle) */
  --spring: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017 19.4%,
    1.077 22.3%, 1.104 25.1%, 1.111 28.3%, 1.097 32.5%, 1.023 43%, 1.002 49.2%, 0.989 55.8%, 0.996 70.6%, 1);
  --spring-soft: linear(0, 0.034 1.5%, 0.13 3.2%, 0.507 9.4%, 0.721 13.5%, 0.865 17.6%, 0.957 22%,
    1.008 26.5%, 1.032 31.3%, 1.035 37.5%, 1.009 52.6%, 0.998 66.9%, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #000; /* v9: the site is black with pixel stars; light sections set their own colours */
  font-family: var(--ui);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* v9 cursor (Figma 349:7405): hand-drawn ring, used everywhere including links and buttons */
*, *::before, *::after { cursor: url("assets/cursor-v9.svg?v=9.15") 9 9, auto !important; }
img { display: block; }

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

/* ---------- layout primitives (illustration internals) ---------- */
.a { position: absolute; display: block; }
.a > img, .c > * > img { width: 100%; height: 100%; max-width: none; }
.c { position: absolute; display: flex; align-items: center; justify-content: center; }
.c > * { flex: none; position: relative; display: block; }
.flip-x { transform: scaleX(-1); }
.row { display: flex; align-items: flex-start; }
.art { zoom: var(--s, 1); }

/* Hand-drawn outline, matching Figma's dynamic stroke: main.js draws one continuous, centred SVG stroke
   along each .ds element's edge, wobbled at points every (--ds-f × --ds-w) px and smoothed.
   --ds-w / --ds-c / --ds-f set its width, colour and frequency. Elements that clip their content do it
   on an inner layer so the outer half of the stroke stays visible. */
.ds { position: relative; --ds-w: 2px; --ds-c: var(--ink); --ds-f: 1.75; } /* reset so outlines never inherit a parent's */
.ds-svg { position: absolute; left: 0; top: 0; z-index: 3; overflow: visible; pointer-events: none; }
.ds-svg path { fill: none; stroke: var(--ds-c); stroke-width: var(--ds-w); stroke-linejoin: round; }

/* ---------- type ---------- */
.h-display {
  font-family: var(--display);
  font-size: 64px;
  line-height: 72px;
  font-weight: 700;
  letter-spacing: -2.56px;
  color: inherit;
}
.body { font-family: var(--sub); font-size: 16px; line-height: 36px; font-weight: 600; }
.body-n { font-family: var(--ui); font-size: 16px; line-height: 36px; font-weight: 500; }
.one-line { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.head-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  text-align: center;
  color: inherit;
}

/* v9.1: text over the star sky sits on a tight black box so the pixel stars never run through it.
   The shadow pads the box without moving the text. */
.head-block > .h-display, .head-block > .body, .head-block > .body-n,
.plush-copy .h-display, .gl-title, .pill, .quotes-sub { width: fit-content; }
.head-block > .h-display, .head-block > .body, .head-block > .body-n,
.plush-copy .h-display, .plush-desc, .gl-title, .gl-desc, .pill, .quotes-sub { background-color: #000; box-shadow: 0 0 0 6px #000; }
.gl-label .c:first-child > span { background: #000; box-shadow: 0 0 0 2px #000; }

/* ---------- reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- spring interactions (all buttons) ---------- */
.spring { transition: transform .6s var(--spring); will-change: transform; }
@media (hover: hover) {
  .spring:hover { transform: translateY(-3px) scale(1.04); }
}
.spring:active {
  transform: translateY(2px) scale(.95);
  transition-duration: .12s;
  transition-timing-function: ease-out;
}

/* =====================================================================
   DESKTOP LAYOUT (1512px design coordinates, scaled by --z at 1024px+)
   ===================================================================== */
@media (min-width: 1024px) {
  .zoomed { zoom: var(--z); }
}

.page { display: block; position: relative; width: 1512px; overflow: clip; background: #000; }
.sec { position: relative; width: 1512px; overflow: clip; scroll-margin-top: 84px; }

/* ---------- header (121:6151) ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  transition: background-color .3s ease, box-shadow .3s ease;
}
.header.is-scrolled { background: #000; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.header-inner { position: relative; width: 1512px; height: 84px; }
.header-logo { position: absolute; left: 96px; top: 16px; }
.header-logo { line-height: 0; }
.header-logo img { width: 187px; height: 42px; }
/* v10.3: two hand-drawn logo frames swap 13 times a second for a jittery "boil" (header, hero, footer) */
.boil .lf2 { position: absolute; left: 0; top: 0; }
.boil .lf1, .boil .lf2 { animation: logo-boil calc(2s / 13) steps(1, end) infinite; }
.boil .lf1 { animation-delay: calc(-1s / 13); }
@keyframes logo-boil { 0% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .boil .lf1, .boil .lf2 { animation: none; }
  .boil .lf2 { opacity: 0; }
}
.header-nav { position: absolute; left: calc(50% + 0.5px); top: 21px; translate: -50% 0; }
.menu-btn { position: absolute; right: 96px; top: 19px; width: 36px; height: 36px; }
.menu-btn img { width: 100%; height: 100%; }

.nav {
  display: flex;
  align-items: center;
  gap: 48px;
  font-family: var(--nav);
  font-size: 16px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: -0.32px;
  color: #fff;
  white-space: nowrap;
}
.nav a { transition: opacity .15s ease; }
.nav a:hover { opacity: .65; }

.menu {
  position: fixed;
  right: 16px;
  top: calc(84px * var(--z) + 8px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  min-width: 220px;
  background: #000;
  color: #fff;
  border: 2px solid rgba(255,255,255,.18);
  border-radius: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  font-size: 20px;
  font-weight: 700;
  transform-origin: top right;
  animation: menu-in .45s var(--spring);
}
.menu[hidden] { display: none; }
.menu a { padding: 8px 16px; border-radius: 14px; }
.menu a { color: #fff; }
.menu a:hover { background: rgba(255,255,255,.12); }
@keyframes menu-in { from { opacity: 0; transform: scale(.85) translateY(-8px); } }

/* ---------- small 3D buttons ---------- */
.btn-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 58px;
  gap: 12px;
  padding-bottom: 6px;
  border-radius: 2px;
  --face: #59a8e7;
  --lip: #4689bf;
  background: var(--face);
  box-shadow: inset 0 -6px 0 var(--lip);
  --ds-c: var(--ink);
  color: #fff;
  font-family: var(--ui);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.36px;
  white-space: nowrap;
}
.btn-green { --face: #1ebc73; --lip: #188f67; }
.btn-discord { --face: #ad92b1; --lip: #8b6790; }
.btn-dark { --face: #393a48; --lip: #212229; }
.btn-light { --face: #fff; --lip: #b9b9b9; --ds-c: #1b171b; color: #1b171b; } /* v9 plush buttons */
.btn-grey { --face: #454545; --lip: #242424; --ds-c: #000; color: #fff; }
/* v10 (Figma 382:9540): greyed-out "Waitlist Opening Soon" for games that aren't live yet; it never presses */
.btn-wait { --face: #888; --lip: #585858; --ds-c: #1b171b; color: #fff; width: 238px; }
.btn-wait:disabled:active, .gl-slide.is-active .gl-copy > .btn-wait:disabled:active { background-color: var(--face); box-shadow: inset 0 -6px 0 var(--lip); padding-bottom: 6px; }

/* Press and release (Figma "green button" 158:865). Pressing fills the face down over the lip in the lip colour and
   drops the label ~1.8px (100ms ease-in); letting go restores it (300ms linear). Hover keeps its spring lift. */
.btn-sm, .store-sm, .sb {
  transition: transform .6s var(--spring), background-color .3s linear, box-shadow .3s linear, padding .3s linear;
}
.btn-sm:active, .store-sm:active, .sb:active {
  background-color: var(--lip);
  box-shadow: inset 0 0 0 var(--lip);
  transform: none;
  transition: transform .1s ease-in, background-color .1s ease-in, box-shadow .1s ease-in, padding .1s ease-in;
}
.btn-sm:active, .sb:active { padding-bottom: 2.46px; }
.store-sm:active { padding-bottom: .46px; }

.store-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 180px;
  height: 56px;
  padding: 0 8px 4px;
  border-radius: 2px;
  --face: #454545;
  --lip: #242424;
  background: var(--face);
  box-shadow: inset 0 -4px 0 var(--lip);
  --ds-c: #000;
  color: #fff;
}
.store-sm img { object-fit: cover; flex: none; }
.ss-text { display: flex; flex-direction: column; text-align: left; } /* store button labels stay left-aligned (phones centre the copy) */
.ss-small { font-size: 12px; line-height: 14px; font-weight: 600; letter-spacing: -0.24px; }
.ss-big { font-size: 18px; line-height: 18px; font-weight: 800; letter-spacing: -0.36px; white-space: nowrap; }

/* ---------- 1 · hero ---------- */
/* v9: black sky with the twinkling pixel-star tile (Figma pattern 226:2303), repeated down every dark section */
.stars-bg { background: #000 url("assets/pixel-stars.svg?v=9.15") 0 0 / 1512px 1104px repeat; }
.hero { height: calc(1104px * var(--hk, 1)); background: #000 url("assets/pixel-stars.svg?v=9.15") 0 0 / 1512px 1104px repeat; }
.hero-stage {
  position: absolute;
  left: 0; top: 0;
  width: 1512px; height: 1104px;
  transform: scale(var(--hk, 1));
  transform-origin: 50% 0;
}
/* Slow bob with a little pendulum sway, used by the floating characters */
@keyframes suspend {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-18px) rotate(1.2deg); }
}
/* Space objects (your images, cut out): screen-blended so their black backgrounds vanish into the sky.
   Each flies along its own straight path (--x0,--y0 → --x1,--y1) and loops; delays are negative so the sky starts populated. */
.hero-space { position: absolute; left: 0; top: 0; width: 1512px; height: 1104px; transform: scale(var(--hk, 1)); transform-origin: 50% 0; pointer-events: none; } /* scales with .hero-stage so the lanes keep clear of the logo; .sec clips it */
.space-obj {
  position: absolute; left: 0; top: 0;
  max-width: none;
  mix-blend-mode: screen;
  will-change: transform;
  animation: space-fly var(--dur) linear var(--delay) infinite;
}
@keyframes space-fly {
  from { transform: translate(var(--x0), var(--y0)) rotate(var(--r0, 0deg)) scale(var(--sc, 1)); }
  to   { transform: translate(var(--x1), var(--y1)) rotate(var(--r1, 0deg)) scale(var(--sc, 1)); }
}
/* v9.2: every object rides its own lane: parallel lines (slope .3) spaced wider than any two objects put together,
   so no two paths ever meet. All lanes pass above the logo (min clearance 33px) and run well off both edges, so they
   still start and end off-screen when the hero shrinks. Each object has its own speed; the UFO is the slowest. */
.so-star-b        { --x0: 1790px; --y0: 246px; --x1: -380px; --y1: -405px; --sc: .25; --r0: 0deg; --r1: 360deg; --dur: 25s; --delay: -11.6s; } /* 92px/s */
.so-ufo           { --x0: -562px; --y0: -243px; --x1: 1608px; --y1: 408px; --sc: .29; --r0: -3deg; --r1: 3deg; --dur: 60s; --delay: -23.8s; mix-blend-mode: normal; } /* 38px/s; real transparency, so no screen blend */
.so-satellite     { --x0: 1703px; --y0: 545px; --x1: -467px; --y1: -106px; --sc: .31; --r0: 0deg; --r1: 38deg; --dur: 37s; --delay: -7.8s; } /* 61px/s */
.so-meteor        { --x0: -449px; --y0: 25px; --x1: 1721px; --y1: 676px; --sc: .35; --r0: 0deg; --r1: -30deg; --dur: 31s; --delay: -24.3s; } /* 74px/s */
.so-planet-stripe { --x0: 1703px; --y0: 800px; --x1: -467px; --y1: 149px; --sc: .37; --r0: 0deg; --r1: 24deg; --dur: 45s; --delay: -4.8s; } /* 50px/s */
.so-star-a        { --x0: -378px; --y0: 906px; --x1: 226px; --y1: 1087px; --sc: .275; --r0: 0deg; --r1: -360deg; --dur: 7.4s; --delay: -3.1s; } /* 85px/s; low lane, left of and below the logo */
/* The comet streaks top-left to bottom-right along its lane (about 750px/s), then waits off-screen before the next pass */
.so-comet { --x0: -403px; --y0: -341px; --x1: 1767px; --y1: 310px; --sc: .5; animation: comet 15s linear -2s infinite; }
@keyframes comet {
  0%   { transform: translate(var(--x0), var(--y0)) scale(var(--sc)); opacity: 0; }
  2%   { opacity: 1; }
  20%  { transform: translate(var(--x1), var(--y1)) scale(var(--sc)); opacity: 1; }
  21%, 100% { transform: translate(var(--x1), var(--y1)) scale(var(--sc)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .space-obj { animation-play-state: paused; } }

/* Hero character (Figma "Frame 427321551": 720×540 at 396,220). main.js crops each GIF to its character and fits it. */
.hero-char { position: absolute; left: 396px; top: 220px; width: 720px; height: 540px; }
.hero-gif { position: absolute; max-width: none; transform-origin: 50% 100%; }
.hero-gif.is-hidden { opacity: 0; } /* the waiting layer of the two-image swap */
.hero-burst { position: absolute; left: 50%; top: 52%; width: 640px; height: 640px; translate: -50% -50%; overflow: visible; pointer-events: none; opacity: 0; scale: 0; }
.hero-burst path { fill: #fff; stroke: #000; stroke-width: 6; stroke-linejoin: round; }
.hero-logo-pos { position: absolute; left: 535px; top: 792px; }
.hero-logo { position: relative; width: 443px; height: 100px; background: #000; box-shadow: 0 0 0 12px #000; } /* black pad: no stars through the logo, clear of the character above */
.hero-logo > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.hero-wave { position: absolute; left: 0; bottom: -3px; width: 100%; height: calc(180px * var(--hk, 1)); }
.hero-wave img, .plush-wave-top img, .plush-wave-bottom img, .frens-wave img, .frens-ground img { width: 100%; height: 100%; }

.twinkle, .stars-svg path {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle var(--tw, 3s) ease-in-out var(--td, 0s) infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.8); }
}

.scroll-cue {
  position: absolute;
  left: 50%; top: 943px;
  width: 64px; height: 64px;
  translate: -50% 0;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 4px 0 rgba(0,0,0,.1);
  --ds-c: #fff;
}
.scroll-cue img {
  position: absolute;
  left: 50%; top: calc(50% + 3px);
  width: 34px; height: 24px;
  translate: -50% -50%;
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(4px); }
}

/* ---------- 2 · doomscroll feed ---------- */
.feed-sec { height: 1000px; }
.feed-head { position: absolute; left: 96px; top: 48px; width: 1320px; }
.feed-grid {
  position: absolute;
  left: 246px; top: 240px;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  column-gap: 20px;
  align-items: start;
}
.col { display: flex; flex-direction: column; gap: 24px; width: 240px; }
.media {
  position: relative;
  width: 240px; height: 420px;
  border-radius: 2px;
  background: #fff;
  --ds-c: #fff; /* v9: white outlines on the black page */
}
.media-clip { position: absolute; inset: 1px; overflow: hidden; border-radius: 1px; background: #fff; }
.feed { display: flex; flex-direction: column; will-change: transform; }
.reel { position: relative; flex: none; width: 100%; overflow: hidden; background: #111; }
.reel video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reel-open { position: absolute; inset: 0; z-index: 2; }
.feed.is-moving { transition: transform .75s var(--spring-soft); }

.social-card {
  position: relative;
  display: block;
  width: 240px; height: 188px;
  border-radius: 2px;
  color: #fff;
  text-align: center;
}
.sc-top { position: absolute; left: 0; right: 0; top: 7.5px; font-family: var(--ui); font-size: 20px; line-height: 36px; font-weight: 600; letter-spacing: -0.4px; }
.sc-icon { position: absolute; left: 50%; top: 48px; width: 92px; height: 92px; translate: -50% 0; }
.sc-icon > img, .sc-icon .a > img { width: 100%; height: 100%; display: block; }
.sc-ring { position: absolute; left: 11px; top: 12px; width: 70px; height: 70px; }
.sc-ring img { position: absolute; inset: -12.86%; width: 125.72%; height: 125.72%; max-width: none; }
.sc-name { position: absolute; left: 0; right: 0; top: 143px; font-family: var(--balsamiq); font-size: 24px; line-height: 36px; font-weight: 700; letter-spacing: -0.48px; }

/* ---------- 3 · stat banner ---------- */
.banner-sec { position: relative; z-index: 2; width: 1512px; height: 180.77px; }
.banner-strip { position: absolute; left: 0; top: 94px; width: 100%; height: 87px; background: #000; }
.banner-pos {
  position: absolute;
  left: -40px; top: 0;
  width: 1591.063px; height: 184.622px;
  display: flex; align-items: center; justify-content: center;
}
.banner {
  width: 1587.829px;
  rotate: -2.92deg;
  background: #fff; /* v9: white band, dark type */
  overflow: hidden;
  padding: 14px 0;
}
.banner-track { display: flex; width: max-content; animation: marquee 36s linear infinite; }
.banner-set { display: flex; align-items: center; gap: 24px; padding-right: 24px; flex: none; }
.banner-set span:not(.b-spark) {
  font-family: var(--display);
  font-size: 48px;
  line-height: 76px;
  font-weight: 700;
  letter-spacing: -0.96px;
  color: #1b171b;
  /* Figma: 0.5px blue edge outside the letters */
  -webkit-text-stroke: 1px #5f9dbe;
  paint-order: stroke fill;
  white-space: nowrap;
}
.b-spark { display: flex; align-items: center; justify-content: center; flex: none; }
.b-spark img { width: 42.157px; height: 39.198px; }
@keyframes marquee { to { transform: translateX(-25%); } }

/* ---------- 4 · meet your new best frens ---------- */
.frens-sec { height: 1136px; }
.frens-ground { position: absolute; left: -135px; top: 828.23px; width: 1821px; height: 723px; }
.frens-cloud { position: absolute; }
/* v9.1 pixel-edged clouds (Figma 319:6360, 319:6369); boxes include the pixel overlay's overhang */
.frens-cloud img { width: 100%; height: 100%; }
.fc1 { left: 18.87px; top: 83.75px; width: 260px; height: 186px; }
.fc2 { left: 410.3px; top: 50px; width: 195px; height: 139.5px; }
.moon {
  position: absolute;
  left: 1184px; top: -17.77px; /* v9.1 moon (Figma 319:6349), box includes its pixel overlay */
  width: 286px; height: 294px;
  transform-origin: 60% 45%;
  animation: moon-float 7s ease-in-out infinite;
}
.moon img { width: 100%; height: 100%; }
@keyframes moon-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(-4deg); }
}
.fstar { width: 12.948px; height: 13.716px; }
.fs1 { left: 580px; top: 51.23px; }
.fs2 { left: 105px; top: 54.23px; }
.fs3 { left: 1103px; top: 106.23px; }
.fs4 { left: 1434px; top: 9.23px; }
.fs5 { left: 1309px; top: 351.23px; }
.fs6 { left: 69px; top: 331.23px; }
.frens-head { position: absolute; left: 241px; top: 261.5px; width: 1030px; }
.frens-head .h-display, .frens-head .body { color: #fff1fa; }
/* A slow, endless drift of character cards; hovering pauses it */
.frens-viewport { position: absolute; left: 0; top: 453.5px; width: 1512px; height: 440px; }
.frens-track {
  position: absolute;
  left: -240px; top: 0;
  display: flex;
  width: max-content;
  animation: frens-drift 54s linear infinite;
}
.frens-viewport:hover .frens-track { animation-play-state: paused; }
@keyframes frens-drift { to { transform: translateX(-1632px); } } /* one set: 4 cards × (360 + 48) */
.frens-set { display: flex; gap: 48px; padding-right: 48px; flex: none; }
.fren {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 360px; height: 420px;
  padding: 32px;
  border-radius: 2px;
  background: #000; /* v9 (Figma 268:4764): black cards, white hand-drawn outline */
  text-align: center;
  --ds-w: 3px;
  --ds-c: #fff;
  filter: drop-shadow(0 8px 0 #0f0e0f);
  flex: none;
}
.fren-art {
  position: relative; z-index: 4; flex: 1 0 0; min-height: 1px; border-radius: 2px;
  /* black with a fine 20% white dot grid (Figma pattern: 2.6×3px dot, repeating 4.45×5.17px) */
  background: #000 radial-gradient(ellipse 1.31px 1.52px, rgba(255,255,255,.2) 95%, transparent 100%) 0 0 / 4.45px 5.17px;
} /* above the card outline (.ds-svg, z 3) so the character overlaps it */
/* Characters may spill past the left, right and top of the frame, but sit flush with its bottom edge */
.fren-art { clip-path: inset(-400px -400px 0 -400px); }
.fren-art img { width: 100%; height: 100%; max-width: none; }
.fren-art span { display: block; }
.fren-art .c { display: flex; }
.fren-name {
  height: 104px;
  flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  color: #fff;
  white-space: nowrap;
}
/* v7: card titles are vector wordmarks (white, 3px black outline, 3/4px drop shadow), drawn from Figma */
.fren-name h3 { display: block; }
.fren-name h3 img { display: block; margin: -3px 0 0 -3px; max-width: none; }
/* Placeholder character: Figma's 355×292 clip frame at (-28, -64) and its crop of the source image */
.fren-crop { left: -28px; top: -64px; width: 355px; height: 292px; overflow: hidden; }
.fren-frame { left: 0; top: 0; width: 342px; height: 565px; overflow: hidden; }
/* Cyclops (Figma 198:58): 299×311 box at (-5, -82.77), showing the top 82% of the art */
.fren-cyclops { left: -5px; top: -82.77px; width: 299px; height: 311px; overflow: hidden; }
.fren-cyclops img { position: absolute; left: -.19px; top: 0; width: 299.38px; height: 379.43px; max-width: none; }
.fren-frame img { position: absolute; left: -242.84px; top: -910.31px; width: 837.2px; height: 1475.3px; max-width: none; }
.fren-name p { font-family: var(--ui); font-size: 16px; line-height: 32px; font-weight: 700; letter-spacing: -0.4px; }

/* ---------- 5 · game library ---------- */
.games-sec { height: 1252px; color: #fff; overflow: visible; z-index: 1; } /* v9: star sky (stars-bg), no panel */
.frens-wave { position: absolute; left: 0; top: -89.77px; width: 1512px; height: 180px; } /* black arc over the frens ground (Figma 219:839) */
.games-head { position: absolute; left: 241px; top: 128px; width: 1030px; }

/* "big" swells once, then springs back */
.grow { display: inline-block; }
.is-in .grow { animation: grow 1.5s ease-in-out .9s 1; }
@keyframes grow {
  0%       { font-size: 1em; }
  32%, 48% { font-size: 1.34em; }
  66%      { font-size: .92em; }
  80%      { font-size: 1.05em; }
  91%      { font-size: .98em; }
  100%     { font-size: 1em; }
}

.gl-thumbs-scroll { position: absolute; left: 420px; top: 320px; }
.gl-thumbs-wrap { position: relative; width: 672px; height: 148px; } /* labels sit 10px clear of the icons so a hovered icon never touches them */
.gl-thumbs { position: absolute; left: 0; top: 32.23px; display: flex; gap: 24px; }
.gl-thumb {
  position: relative;
  display: block;
  width: 92px; height: 92px;
  border-radius: 2px;
  --ds-c: #000;
  transition: transform .6s var(--spring);
}
.thumb-clip { position: absolute; inset: 1px; overflow: hidden; border-radius: 1px; background: inherit; }
.gl-thumb.is-active { --ds-w: 4px; --ds-c: #fff; } /* v9: white highlight for every game */
.gl-alert {
  position: absolute;
  left: 76px; top: -10.23px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 99px;
  background: var(--pink);
  box-shadow: 0 2px 0 rgba(0,0,0,.25);
  color: #fefefe;
  font-family: var(--ui);
  font-size: 21.333px;
  line-height: 26.667px;
  font-weight: 900;
  pointer-events: none;
  animation: alert-pop 2.4s ease-in-out infinite;
}
@keyframes alert-pop {
  0%, 70%, 100% { transform: scale(1); }
  80%           { transform: scale(1.18) rotate(8deg); }
  90%           { transform: scale(.96) rotate(-4deg); }
}
.gl-label {
  font-family: var(--giga);
  font-size: 11px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: -0.22px;
  color: #d9d9d9;
  pointer-events: none;
}
.gl-label img { width: 100%; height: 100%; }
.gl-l1 { left: -1px;  top: 138px; width: 86.979px; height: 21.056px; }
.gl-l2 { left: 127px; top: -10px;   width: 69.006px; height: 30.031px; }
.gl-l3 { left: 235px; top: 138px; width: 86.979px; height: 21.056px; }
.gl-l4 { left: 353px; top: -11px; width: 80px;     height: 30px; }
.gl-l5 { left: 473px; top: 138px; width: 86.979px; height: 21.056px; }
.gl-l6 { left: 601px; top: -10px;   width: 49px;     height: 30px; }

.gl-panel {
  position: absolute;
  left: 96px; top: 516px;
  width: 1320px; height: 608px;
}
.gl-stage { position: absolute; left: 0; top: 48px; width: 1320px; height: 512px; display: grid; }
.gl-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px; /* v9.2 (Figma 335:6688): 416px copy + 64px gap + 464px art, centred */
  padding: 0;
  visibility: hidden;
}
.gl-slide.is-active { visibility: visible; }
.gl-copy {
  flex: 0 0 416px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 48px;
  padding: 36px 0;
}
.gl-text { display: flex; flex-direction: column; gap: 36px; }
.gl-title-row { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.gl-tags { display: flex; gap: 24px; }
.gl-title { font-family: var(--display); font-size: 48px; line-height: 48px; font-weight: 700; letter-spacing: -0.96px; white-space: nowrap; }
.gl-copy .row { gap: 32px; } /* store buttons */
.gl-desc { width: max-content; font-family: var(--sub); font-size: 20px; line-height: 36px; font-weight: 600; letter-spacing: -0.4px; }
/* Line breaks follow Figma 335:6688 exactly (<br class="d-br">); phones let the copy wrap freely */
.gl-art { position: relative; flex: 0 0 540px; height: 512px; margin: 0 -38px; } /* art is laid out on a 540px box; Figma's 464px frame is its middle */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0;
  border-radius: 999px; /* v9.2 (Figma 335:6688): black tag with a hand-drawn white outline (.ds) */
  --ds-c: #fff;
  --ds-w: 2px;
  color: #fefefe;
  font-family: var(--ui);
  font-size: 16px;
  line-height: 25.714px;
  font-weight: 900;
  letter-spacing: -0.32px;
  white-space: nowrap;
}

/* Slide change: copy slides in from the side, art pops in with a spring */
.gl-slide .gl-copy > *, .gl-slide .gl-art { opacity: 0; transition: opacity .35s ease, transform .6s var(--spring-soft); }
.gl-slide .gl-copy > * { transform: translateX(calc(var(--dir, 1) * 40px)); }
.gl-slide .gl-art { transform: scale(.9) rotate(calc(var(--dir, 1) * 3deg)); }
.gl-slide.is-active .gl-copy > *, .gl-slide.is-active .gl-art {
  opacity: 1;
  transform: none;
  transition: opacity .45s ease, transform .8s var(--spring);
}
.gl-slide.is-active .gl-copy > :nth-child(2) { transition-delay: .06s; }
.gl-slide.is-active .gl-art { transition-delay: .05s; }
/* Slide buttons keep their entrance timing and still press and release like every other button */
.gl-slide.is-active .gl-copy > .btn-sm {
  transition: opacity .45s ease, transform .8s var(--spring), background-color .3s linear, box-shadow .3s linear, padding .3s linear;
  transition-delay: .06s, .06s, 0s, 0s, 0s;
}
@media (hover: hover) {
  .gl-slide.is-active .gl-copy > .spring:hover { transform: translateY(-3px) scale(1.04); }
}
.gl-slide.is-active .gl-copy > .btn-sm:active {
  background-color: var(--lip);
  box-shadow: inset 0 0 0 var(--lip);
  padding-bottom: 2.46px;
  transform: none;
  transition: transform .1s ease-in, background-color .1s ease-in, box-shadow .1s ease-in, padding .1s ease-in;
  transition-delay: 0s;
}

/* drop-shadow follows each phone's rounded silhouette (box-shadow would be square) */
.phone-shadow { filter: drop-shadow(6.265px 6.265px 0 rgba(0,0,0,.25)); }
.phone-back  { animation: phone-a 6.5s ease-in-out infinite; }
/* 6pt inner strokes on the Pocket Noob phones */
.gl-art .phone-shadow > .phone-back:not(.phone-blank) { border: 6px solid #000; }
.gl-art .phone-shadow > .phone-front:not(.phone-blank) { border: 6px solid #000; border-radius: 24px; overflow: hidden; }
.phone-front { animation: phone-b 7.5s ease-in-out -2s infinite; }
@keyframes phone-a {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-12px) rotate(1.2deg); }
}
@keyframes phone-b {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-16px) rotate(-1.4deg); }
}
.phone-blank {
  width: 223.973px; height: 473.302px;
  border: 6px solid #000;
  border-radius: 24px;
  background: #fff;
  overflow: hidden;
  box-shadow: 6.265px 6.265px 0 rgba(0,0,0,.25);
}
.phone-blank img { width: 100%; height: 100%; object-fit: cover; }
/* v7 phones: sized by their wrapper, 4px inner outline (Figma) */
.phone-blank.phone-v7 { width: 100%; height: 100%; border-width: 4px; }

/* Yoink! cards */
.y-card {
  width: 258.016px; height: 360.403px;
  border-radius: 14.744px;
  background: #fff;
  overflow: hidden;
  box-shadow: 6.265px 6.265px 0 rgba(0,0,0,.25);
}
.y-card img { width: 100%; height: 100%; max-width: none; }
.y-label {
  display: flex; flex-direction: column; align-items: center;
  gap: 1.638px;
  padding: 9.829px;
  background: #000;
  border: 1.638px solid #fff;
  border-radius: 6.553px;
  color: #fff;
  text-align: center;
}
.y-label-title { font-family: "Freeman", var(--display); font-size: 19.658px; line-height: 26.211px; letter-spacing: -0.82px; }
.y-label-body { font-family: "Fredoka", var(--ui); font-weight: 500; font-size: 11.467px; line-height: 14.744px; letter-spacing: -0.34px; opacity: .6; }
.yoink-slot:not(.yoink-mini) > .c:last-child { animation: card-tilt 6s ease-in-out infinite; }
.yoink-slot:not(.yoink-mini) > .c:first-child { animation: card-tilt 7s ease-in-out -2s infinite reverse; }
@keyframes card-tilt {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-10px) rotate(1.5deg); }
}
.yoink-mini { transform: scale(.1995); transform-origin: 0 0; }
.yoink-mini .y-card { box-shadow: none; }

.arrow {
  position: absolute;
  top: 286px;
  display: flex;
  width: max-content; /* #gl-next sits past the panel's right edge; without this it shrinks to the 24px left over */
  z-index: 4;
  padding: 10px;
  border-radius: 32px;
  background: #fff;
  filter: drop-shadow(0 4px 0 rgba(0,0,0,.2));
}
#gl-prev { left: -18px; }
#gl-next { left: 1296px; }
.arrow img { width: 32px; height: 32px; }
.arrow:disabled { --ds-c: rgba(50,41,47,.5); cursor: default; }
.arrow:disabled img { opacity: .5; }
.arrow:disabled:hover, .arrow:disabled:active { transform: none; }

/* ---------- 6 · plush ---------- */
.plush-sec { height: 1286px; color: #fff; overflow: visible; z-index: 2; } /* v9: star sky (stars-bg) */
.plush-sky { position: absolute; left: 0; top: 154.23px; width: 1512px; height: 1132px; overflow: hidden; }
.plush-cloud { position: absolute; }
/* v9 pixel-edged clouds (Figma 268:4744/4734/4754); boxes include the pixel overlay's overhang */
.plush-cloud img { width: 100%; height: 100%; }
.pc1 { left: 1215px; top: 45px; width: 520px; height: 372px; }
.pc2 { left: -45px; top: 4px; width: 489px; height: 350px; }
.pc3 { left: 761px; top: 70px; width: 260px; height: 186px; }
.cloud-float { animation: drift var(--cd, 9s) ease-in-out var(--cdl, 0s) infinite alternate; }
@keyframes drift {
  from { transform: translate(-14px, 0); }
  to   { transform: translate(16px, -8px); }
}
.plush-wave-top { position: absolute; left: 0; top: -25.77px; width: 100%; height: 180px; }
.plush-wave-top img { height: 104.3%; }
/* <balloon-noob-single> (balloon-noob-single.js): his arms, legs and balloon sway on their own and he blinks */
/* v9.2: pixel-line balloon Noob (Figma 259:3290), placed as in the v9 frame */
.plush-peeker-pos { position: absolute; left: 997.16px; top: -54.77px; z-index: 2; }
.plush-peeker { position: relative; width: 374.8px; height: 523.38px; max-width: none; }
.plush-wave-bottom { position: absolute; left: 0; bottom: -114.23px; width: 100%; height: 180px; z-index: 1; }
.plush-copy { position: absolute; left: 845px; top: 493.4px; width: 608px; }
.plush-copy .h-display { margin-top: 36px; line-height: 74px; }
.plush-desc { width: 537px; margin-top: 36px; }
.plush-cta { margin-top: 48px; display: flex; gap: 32px; }
.plush-solo-pos { position: absolute; left: 191px; top: 392.23px; width: 501px; height: 739px; } /* Figma 354:7416: short enough to fit a laptop screen */
.plush-solo { position: relative; display: block; width: 100%; height: 100%; transition: transform .6s var(--spring); }
.plush-note { position: absolute; height: auto; max-width: none; pointer-events: none; } /* behind the plushie, so its hover pop sits on top */
@media (hover: hover) {
  .plush-solo:hover { transform: scale(1.05); }
}

/* "squeezable" squishes once, then releases */
.squish { display: inline-block; transform-origin: left 80%; }
.is-in .squish { animation: squish 1.6s ease-in-out .9s 1; }
@keyframes squish {
  0%       { letter-spacing: -.04em;  transform: scale(1, 1); }
  30%, 45% { letter-spacing: -.19em;  transform: scale(.9, 1.1); }
  62%      { letter-spacing: .023em;  transform: scale(1.05, .95); }
  76%      { letter-spacing: -.063em; transform: scale(.99, 1.02); }
  88%      { letter-spacing: -.031em; transform: scale(1.005, .995); }
  100%     { letter-spacing: -.04em;  transform: scale(1, 1); }
}

.badge { position: relative; animation: wobble 5s ease-in-out infinite; }
@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  50%      { transform: rotate(4deg) scale(1.03); }
}
.badge-star { position: absolute; display: flex; align-items: center; justify-content: center; container-type: size; }
.badge-star > div {
  position: relative;
  flex: none;
  width: hypot(92.0356cqw, -16.1486cqh);
  height: hypot(7.96444cqw, 83.8514cqh);
  rotate: -7.36deg;
}
.badge-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  translate: -1.22px -15.8px;
  rotate: -9.39deg;
  color: #000;
  font-family: var(--giga);
  font-size: 24px;
  line-height: 40.696px;
  font-weight: 700;
  white-space: nowrap; /* v9.2: plain text, no outline */
}

/* ---------- 7 · testimonials ---------- */
.quotes-sec { height: 1128px; color: #fff; } /* v9: star sky (stars-bg) */
.quotes-head { position: absolute; left: 96px; top: 128px; width: 1320px; }
.quotes-head .h-display { letter-spacing: -1.28px; line-height: 74px; }
.quotes { position: absolute; left: 0; top: 300px; width: 1512px; height: 480px; overflow: hidden; } /* 10px slack keeps the outline unclipped */
.q-row { position: absolute; left: 0; width: 100%; height: 212px; }
.q-row-1 { top: 10px; }
.q-row-2 { top: 258px; }
.q-track { position: absolute; left: 0; top: 0; display: flex; gap: 36px; will-change: transform; }
.q-track.is-moving { transition: transform .9s var(--spring-soft); }
/* v9 card (Figma 336:6808): white with a fine grey dot grid, chunky wobbly black outline; width per card */
.quote {
  position: relative;
  flex: none;
  width: var(--qw, 360px); height: 212px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 36px;
  padding: 36px 48px;
  border-radius: 2px;
  background: #fff radial-gradient(circle 1.32px, rgba(0,0,0,.09) 95%, transparent 100%) 0 0 / 5.28px 5.28px;
  color: var(--ink);
  --ds-w: 8px;
  --ds-c: #000;
  --ds-f: .75;
}
.q-who { font-family: var(--sub); font-size: 18px; line-height: 20px; font-weight: 700; letter-spacing: -0.36px; color: rgba(0,0,0,.8); }
.quote blockquote { min-height: 84px; display: flex; align-items: center; justify-content: center; font-family: var(--ui); font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.96px; }

.q-dots { position: absolute; left: 50%; top: 806px; translate: -50% 0; display: flex; align-items: center; gap: 14px; height: 24px; }
.q-dot {
  width: 12px; height: 12px;
  border-radius: 99px;
  box-shadow: inset 0 0 0 2px #fff;
  transition: width .4s var(--spring), height .4s var(--spring), background-color .3s ease;
}
.q-dot.is-active { width: 24px; height: 24px; background: #fff; box-shadow: inset 0 0 0 1px #000; }
.quotes-sub { position: absolute; left: 50%; top: 866px; translate: -50% 0; text-align: center; }
.sb-row { position: absolute; left: 422px; top: 938px; display: flex; gap: 32px; } /* v10: five buttons (Figma 382:9296) */
.sb {
  display: flex; align-items: center; justify-content: center;
  width: 104px; height: 58px;
  padding-bottom: 6px;
  border-radius: 2px;
  --face: #454545; /* v9: one dark grey for every social button */
  --lip: #242424;
  background: var(--face);
  box-shadow: inset 0 -6px 0 var(--lip, rgba(0,0,0,.25));
  --ds-w: 3px;
  --ds-c: #000;
}
.sb img { flex: none; }

/* ---------- 8 · socials ---------- */
.socials-sec { height: 880px; color: #fff; overflow: visible; z-index: 2; } /* v9: star sky (stars-bg) */
.socials-row { position: absolute; left: 96px; top: 128px; display: flex; gap: 48px; align-items: center; }
.sp-pos { flex: none; }
/* v9 panels (Figma 219:1741, 219:783): black with a 5px hand-drawn white outline, nothing clipped */
.sp { position: relative; width: 636px; height: 540px; border-radius: 2px; background: #000; --ds-w: 5px; --ds-c: #fff; --ds-f: 1.75; }
/* The noob, its white head and body backing scale up together (×1.351 of the v7 art) */
.sp-noob { scale: 1.351; transform-origin: 0 0; z-index: 4; animation: phone-a 6s ease-in-out infinite; }
/* Each caption bobs on its own timing, out of step with the noob and with each other */
.sp-caption { position: absolute; z-index: 5; transform-origin: 0 0; pointer-events: none; }
.sp-caption-meet { --cf-dur: 4.6s; --cf-delay: -1.2s; --cf-y: -9px; }
.sp-caption-win  { --cf-dur: 3.7s; --cf-delay: -2.9s; --cf-y: -7px; }
@keyframes caption-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(var(--cf-y)); }
}
.sp-caption span {
  display: block;
  animation: caption-float var(--cf-dur) ease-in-out var(--cf-delay) infinite;
  font-family: var(--giga);
  font-size: 36px;
  line-height: 37px;
  font-weight: 400;
  letter-spacing: -0.72px;
  text-align: center;
  color: #fff;
}
.btn-discord { position: absolute; left: 50%; bottom: 78px; translate: -50% 0; z-index: 6; }
.btn-discord img { flex: none; object-fit: contain; }
.sp-signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 121px 94px 0;
  text-align: center;
}
.sp-title { width: 367px; font-family: var(--display); font-size: 48px; line-height: 52px; font-weight: 700; letter-spacing: -0.96px; }
.sp-text { width: 312px; margin-top: 36px; font-family: var(--ui); font-size: 16px; line-height: 24px; font-weight: 500; }
.signup { display: flex; align-items: center; gap: 16px; width: 448px; margin-top: 97px; }
.signup-field { flex: 1 0 0; min-width: 0; border-radius: 2px; --ds-w: 3px; --ds-c: #fff; --ds-f: .75; }
.signup-input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,.1);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 500;
}
.signup-input::placeholder { color: rgba(50,41,47,.3); }
.signup-input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.btn-in { width: 86px; height: 58px; flex: none; --ds-c: #32292f; }
.signup-note { min-height: 0; margin-top: 12px; font-family: var(--ui); font-size: 15px; font-weight: 700; color: #1ebc73; }
.signup-note:empty { display: none; }
.signup-note.is-error { color: #ff7a84; }
/* Bouquet (Figma 219:801): same GIF and crop as v7, ×1.0966, poking out above the panel */
.sp-bouquet { left: 189px; top: -192px; width: 250.428px; height: 275.234px; z-index: 4; scale: 1.0966; transform-origin: 0 0; animation: card-tilt 6.5s ease-in-out infinite; }
.sp-hint { position: absolute; left: 318px; top: 336px; width: 211px; height: 47px; pointer-events: none; }
.sp-hint-text { position: absolute; left: 0; top: 3.25px; width: 180px; transform-origin: 0 0; rotate: -1.03deg; font-family: var(--giga); font-size: 18px; line-height: 28px; font-weight: 400; letter-spacing: -0.36px; color: #fff; white-space: nowrap; }
.sp-hint-arrow { position: absolute; left: 188.2px; top: 9px; width: 30.138px; height: 25.864px; transform-origin: 0 0; transform: matrix(-.4379, .899, .899, .4379, 0, 0); } /* Figma's rotate + mirror (219:797) */
.socials-wave { position: absolute; left: 0; bottom: -129.23px; width: 100%; height: 180px; z-index: 1; } /* white arc into the footer (Figma 219:804) */
.socials-wave img { width: 100%; height: 100%; }

/* ---------- footer ---------- */
.footer { height: 479px; background: #fff; overflow: visible; z-index: 3; } /* v9: inverted, white with dark ink */
.footer-nav { color: #000; }
.peeker-pos { position: absolute; left: 1131px; top: -242.77px; }
.peeker-art { position: relative; width: 306.69px; height: 561px; }
.peeker { transform-origin: 70% 0; animation: suspend 8s ease-in-out -3s infinite; }
.footer-logo { position: absolute; left: 524px; top: 94px; width: 461.375px; height: 103.7px; }
.footer-logo img { width: 100%; height: 100%; filter: brightness(0); } /* white logo frames drawn black on the white footer */
.footer-nav { position: absolute; left: calc(50% - 1px); top: 221px; translate: -50% 0; } /* Nunito Bold 16 like the header, per Figma */
.footer-social { position: absolute; left: 50%; top: 286px; translate: -50% 0; display: flex; gap: 32px; } /* v10: five icons (Figma 382:9395) */
.footer-social a { position: relative; display: block; width: 48px; height: 48px; }
.footer-social img { width: 100%; height: 100%; }

/* =====================================================================
   MOBILE + TABLET LAYOUT (below 1024px): single-column flow
   ===================================================================== */
@media (max-width: 1023px) {
  .page { width: 100%; }
  .sec { width: 100%; height: auto; scroll-margin-top: 64px; }

  /* type */
  .h-display { font-size: clamp(32px, 8.6vw, 48px); line-height: 1.12; letter-spacing: -.04em; }
  .one-line { white-space: normal; }
  .body, .body-n { font-size: 15px; line-height: 26px; }
  .head-block { gap: 14px; padding: 0 20px; }
  .head-block .body, .head-block .body-n { max-width: 520px; }

  /* header */
  .header-inner { width: 100%; height: 64px; }
  .header-logo { left: 16px; top: 17px; }
  .header-logo img { width: 133px; height: 30px; }
  .header-nav { display: none; }
  .menu-btn { right: 16px; top: 14px; width: 36px; height: 36px; }
  .menu { left: 16px; right: 16px; top: 72px; min-width: 0; }

  /* hero */
  .hero { height: calc(640px * var(--u) * var(--hk, 1)); }
  .hero-stage { width: 100%; height: calc(640px * var(--u)); }
  .hero { background-size: calc(1512px * var(--u) * .6) calc(1104px * var(--u) * .6); }
  /* zoom (not transform) keeps the space objects' screen blend working against the sky */
  .hero-space { inset: auto; left: 0; top: 0; width: 1512px; height: 1104px; transform: none; zoom: calc(var(--u) * .6); }
  .hero-char { left: 50%; top: calc(150px * var(--u)); transform-origin: 50% 0; transform: translateX(-50%) scale(calc(var(--u) * .54)); }
  .hero-logo-pos { left: 50%; top: calc(452px * var(--u)); translate: -50% 0; }
  .hero-logo { --s: calc(var(--u) * .6); }
  .scroll-cue { top: auto; bottom: calc(40px * var(--u)); width: 52px; height: 52px; }
  .scroll-cue img { width: 28px; height: 20px; }

  /* doomscroll: tiles in two columns (four on tablets) */
  .feed-sec { padding: 40px 0 64px; }
  .feed-head { position: static; width: auto; }
  .feed-grid {
    position: static;
    margin-top: 32px;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 14px;
    row-gap: 22px;
  }
  .col { --s: calc((min(var(--vw), 600) - 54) / 480); }

  /* stat banner */
  .banner-sec { width: 100%; height: calc(100px * var(--u)); }
  .banner-strip { top: calc(52px * var(--u)); height: calc(50px * var(--u)); }
  .banner-pos { left: 50%; top: calc(6px * var(--u)); width: auto; height: auto; translate: -50% 0; }
  .banner { --s: calc(var(--u) * .55); }

  /* frens */
  .frens-sec { padding: calc(88px * var(--u)) 0 calc(150px * var(--u)); }
  .frens-head { position: relative; z-index: 1; left: auto; top: auto; width: auto; }
  .frens-viewport { position: relative; left: auto; top: auto; width: 100%; height: calc(440px * var(--u) * .62); margin-top: calc(56px * var(--u)); }
  .frens-track { --s: calc(var(--u) * .62); left: -40px; }
  .frens-ground { left: 50%; top: auto; bottom: calc(-170px * var(--u)); translate: -50% 0; width: calc(1000px * var(--u)); height: calc(397px * var(--u)); }
  .moon { left: auto; right: calc(-5px * var(--u)); top: calc(-4px * var(--u)); width: calc(96px * var(--u)); height: calc(99px * var(--u)); }
  .fc1 { left: 1%; top: calc(22px * var(--u)); width: calc(116px * var(--u)); height: calc(83px * var(--u)); }
  .fc2 { left: 40%; top: calc(10px * var(--u)); width: calc(78px * var(--u)); height: calc(56px * var(--u)); }
  .fs1 { left: 30%; top: calc(70px * var(--u)); }
  .fs2 { left: 8%; top: calc(150px * var(--u)); }
  .fs3 { left: 64%; top: calc(122px * var(--u)); }
  .fs4 { left: 90%; top: calc(190px * var(--u)); }
  .fs5 { left: 80%; top: calc(320px * var(--u)); }
  .fs6 { left: 4%; top: calc(300px * var(--u)); }

  /* game library */
  .games-sec { padding: calc(72px * var(--u)) 0 64px; overflow: visible; }
  .frens-wave { top: calc(-36px * var(--u)); width: 100%; height: calc(76px * var(--u)); }
  .games-head { position: relative; left: auto; top: auto; width: auto; }
  .gl-thumbs-scroll {
    position: relative; left: auto; top: auto;
    margin-top: 10px;
    padding: 14px 20px; /* room for the tags above and below the icons inside the scroll box */
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gl-thumbs-scroll::-webkit-scrollbar { display: none; }
  .gl-thumbs-wrap { --s: .86; margin: 0 auto; }
  .gl-panel {
    position: relative; left: auto; top: auto;
    width: auto; height: auto;
    margin: 12px 16px 0;
    padding: 24px 16px 32px;
    border-radius: 32px;
  }
  .gl-stage { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .gl-slide { flex-direction: column; align-items: stretch; gap: 20px; padding: 0; }
  .gl-art {
    order: -1;
    flex: none;
    align-self: center;
    width: 540px; height: 512px;
    margin: 0;
    zoom: calc((min(var(--vw), 600) - 64) / 540);
  }
  .gl-copy { flex: none; gap: 24px; padding: 0 4px; align-items: center; text-align: center; }
  .gl-title-row { align-items: center; }
  .gl-copy .row { justify-content: center; gap: 12px; } /* store buttons centred in the panel on phones */
  .gl-text { gap: 16px; }
  .gl-title-row { gap: 12px; }
  .gl-tags { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .d-br { display: none; }
  .gl-title { font-size: 32px; line-height: 36px; white-space: normal; }
  .gl-desc { width: auto; font-size: 16px; line-height: 28px; }
  .pill { width: auto !important; height: 28px; padding: 0 12px; font-size: 13px; }
  .gl-copy .row { flex-wrap: wrap; gap: 12px; }
  .gl-copy .row { gap: 10px; }
  .store-sm { width: 142px; height: 50px; gap: 6px; padding: 0 6px 4px; }
  .store-sm img { zoom: .85; }
  .ss-big { font-size: 15px; }
  .ss-small { font-size: 11px; }
  .arrow { top: calc(24px + (min(var(--vw), 600) - 64) * 256px / 540 - 22px); padding: 6px; border-radius: 999px; }
  .arrow img { width: 24px; height: 24px; }
  #gl-prev { left: 6px; }
  #gl-next { left: auto; right: 6px; }

  /* plush */
  .plush-sec { padding-top: calc(96px * var(--u)); }
  .plush-sky { inset: 0; width: auto; height: auto; }
  /* v9.3: clouds sit in the side gutters, clear of the badge and title; none behind the plushie notes */
  .pc1 { left: calc(50% + max(106px * var(--u), 100px)); top: 158px; width: min(calc(208px * var(--u)), 280px); height: min(calc(149px * var(--u)), 200.6px); }
  .pc2 { display: none; }
  .pc3 { left: calc(50% - 92px - min(104px * var(--u), 130px)); top: calc(108px * var(--u)); width: min(calc(104px * var(--u)), 130px); height: min(calc(74px * var(--u)), 92.5px); }
  .plush-copy { position: relative; z-index: 1; left: auto; top: auto; width: auto; padding: 0 20px; text-align: center; }
  .badge-pos { width: max-content; margin: 0 auto; }
  .plush-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; }
  .plush-peeker-pos { left: auto; right: calc(-6px * var(--u)); top: calc(-34px * var(--u)); }
  .plush-peeker { --s: calc(var(--u) * .31); }
  .badge-pos { --s: .72; }
  .plush-copy .h-display { margin: 10px auto 0; line-height: 1.12; }
  .plush-desc { width: auto; max-width: 520px; margin: 14px auto 0; }
  .plush-cta { margin-top: 22px; }
  .plush-solo-pos { position: relative; left: auto; top: auto; width: min(calc(var(--vw) * .72px), 420px); height: auto; margin: 24px auto 0; }
  .plush-solo { height: auto; }

  /* testimonials: full-width cards that still slide as one track */
  .quotes-sec { padding: 64px 0 80px; }
  .quotes-head { position: relative; left: auto; top: auto; width: auto; }
  .quotes-head .h-display { line-height: 1.12; letter-spacing: -.04em; }
  .quotes { position: relative; left: auto; top: auto; width: auto; height: calc(2 * 200px + 32px); margin-top: 20px; }
  .q-row { height: 200px; }
  .q-row-1 { top: 8px; }
  .q-row-2 { top: 224px; }
  .q-track { gap: 16px; }
  .quote { width: calc(var(--qw, 360px) * .78); height: 200px; gap: 20px; padding: 24px 28px; --ds-w: 6px; align-items: center; text-align: center; }
  .quote blockquote { min-height: 0; justify-content: center; font-size: 19px; line-height: 26px; letter-spacing: -0.5px; margin: 0 !important; }
  .q-who { font-size: 15px; line-height: 18px; }
  .q-dots { position: relative; left: auto; top: auto; translate: none; justify-content: center; margin: 22px auto 0; width: max-content; }
  .quotes-sub { position: static; translate: none; max-width: calc(100% - 40px); margin: 20px auto 0; }
  .sb-row { position: static; justify-content: center; gap: 10px; margin-top: 12px; padding: 0 16px; }
  .sb { flex: 0 1 72px; width: auto; min-width: 0; height: 50px; --ds-w: 2px; } /* v10: five buttons shrink to fit inside the gutter */
  .sb img { zoom: .75; }

  /* socials: the Discord panel scales as a unit; the sign-up panel reflows at real size */
  .socials-sec { height: auto; padding: calc(56px * var(--u)) 0 calc(80px * var(--u)); }
  .socials-row {
    --sps: calc((min(var(--vw), 600) - 32) / 636);
    position: static;
    flex-direction: column;
    gap: 24px;
    padding-top: calc(120px * var(--sps));
  }
  .sp-discord { --s: var(--sps); }
  .btn-discord { zoom: calc(.82 / var(--sps)); bottom: calc(78px * var(--sps) / .82); } /* keep the button tappable while the panel shrinks */
  .sp-pos-signup { width: calc(min(var(--vw), 600) * 1px - 32px); margin-top: 150px; }
  .sp-signup { width: auto; height: auto; padding: 110px 20px 36px; }
  .sp-bouquet { left: calc(50% - 120px); top: -150px; scale: .88; }
  .sp-title, .sp-text { width: auto; max-width: 312px; }
  .sp-title { max-width: none; }
  .sp-title { font-size: 36px; line-height: 40px; }
  .sp-text { margin-top: 16px; }
  .sp-hint { position: relative; left: auto; top: auto; margin-top: 22px; }
  .signup { width: 100%; margin-top: 8px; }
  .signup-input { padding: 0 14px; }
  .socials-wave { bottom: calc(-40px * var(--u)); height: calc(70px * var(--u)); }

  /* footer */
  .footer { height: auto; padding: calc(96px * var(--u)) 20px 56px; text-align: center; }
  .footer-logo { position: relative; left: auto; top: auto; display: block; margin: 0 auto; width: 240px; height: 54px; }
  .footer-nav { position: static; translate: none; justify-content: center; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: 16px; }
  .footer-social { position: static; translate: none; justify-content: center; gap: 28px; margin-top: 22px; }
  .footer-social a { width: 40px; height: 40px; }
  .footer-social a { zoom: .84; }
}

/* Tablets: four doomscroll columns side by side */
@media (min-width: 700px) and (max-width: 1023px) {
  .feed-grid { grid-template-columns: repeat(4, max-content); column-gap: 16px; }
  .col { --s: calc((var(--vw) - 88) / 960); }
}

/* ---------- focus & motion ---------- */
:focus-visible { outline: 4px solid var(--blue); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .spring, .feed.is-moving, .q-track, .quote, .gl-slide * { transition: none !important; }
  .hero-stage { transition: none; }
}

/* ---------- Loading screen (Figma 168:1797) ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: #000;
  transition: opacity .45s ease, visibility .45s;
}
.js .loader.is-done { opacity: 0; visibility: hidden; }
.is-loading body { overflow: hidden; }
.loader-stack { display: flex; flex-direction: column; align-items: center; gap: 36px; width: 394px; }
/* The GIF is a 576×1024 canvas; Figma crops it to the miner */
.loader-gif { position: relative; width: 182px; height: 232px; overflow: hidden; }
.loader-gif img { position: absolute; left: -52px; top: -175.8px; width: 234px; height: 414.8px; max-width: none; }
.loader-bar { position: relative; width: 394px; height: 19px; border-radius: 2px; --ds-w: 2px; --ds-c: #f0f0f0; }
.loader-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 1px; background: #fff; transition: width .35s var(--ease-out); }
.loader-logo { width: 188px; height: 57px; }
@media (max-width: 480px) { .loader-stack { zoom: .8; } }

/* ---------- 404 page (Figma 158:1718) ---------- */
.page-404 { min-height: 100vh; background: #000; }
.nf { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 84px 16px 40px; }
.nf-stack { display: flex; flex-direction: column; align-items: center; width: 394px; max-width: 100%; color: #fff; text-align: center; }
.nf-title { font-family: var(--giga); font-size: 128px; line-height: 146px; font-weight: 700; letter-spacing: -5.12px; }
.nf-text { font-family: var(--giga); font-size: 16px; line-height: 37px; font-weight: 700; letter-spacing: -0.64px; }
/* The thumbs-up GIF is a 576×1024 canvas (character at 95,555, 297×233). Scaled to 83% and centred in Figma's
   262×208 slot; left unclipped so the waggling thumb never gets cut off (the rest of the canvas is transparent). */
.nf-gif { position: relative; width: 262px; height: 208px; }
.nf-gif img { position: absolute; left: -70.7px; top: -453px; width: 478.08px; height: 849.92px; max-width: none; pointer-events: none; }

/* Hidden wallpaper page (wallpaper.html): linked from emails only */
.wall-stack { display: flex; flex-direction: column; align-items: center; width: 760px; max-width: 100%; color: #fff; text-align: center; }
.wall-title { font-family: var(--balsamiq); font-size: 48px; line-height: 1.15; font-weight: 700; letter-spacing: -1px; }
.wall-text { margin-top: 12px; max-width: 460px; font-family: var(--sub); font-size: 18px; line-height: 1.45; font-weight: 600; color: rgba(255,255,255,.8); }
.wall-preview { display: block; width: 100%; height: auto; margin-top: 32px; border-radius: 12px; border: 2px solid rgba(255,255,255,.18); }
.wall-btn { margin-top: 32px; width: auto; padding: 0 28px 6px; }
.wall-meta { margin-top: 12px; font-family: var(--sub); font-size: 14px; font-weight: 600; color: rgba(255,255,255,.55); }
@media (max-width: 1023.98px) {
  .wall-title { font-size: 34px; }
  .wall-text { font-size: 16px; }
  .wall-preview { margin-top: 24px; }
  .wall-btn { margin-top: 24px; }
}
