/* Tiful Games, beautiful games.
   Layout first, as a plain page. Everything that moves with the scroll lives under html.motion,
   which the boot script only sets when the visitor's system does not ask for reduced motion. */

@font-face {
  font-family: 'Bricolage';
  src: url('/assets/fonts/bricolage-grotesque.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/figtree.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ink: #0c0806;
  --ink-2: #150e0a;
  --ink-3: #1d1510;
  --ink-4: #2b2018;
  --line: rgba(255, 236, 214, 0.12);
  --line-2: rgba(255, 236, 214, 0.22);
  --cream: #fff3e6;
  --muted: #d0bca8;
  --dim: #9c8774;
  --orange: #ff6b1a;
  --orange-2: #ff8a3d;
  --amber: #ffb547;
  --ember: #e2410f;
  --brown: #6e3712;
  --brown-2: #934d1d;
  --display: 'Bricolage', 'Arial Black', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
  --r-lg: clamp(24px, 3vw, 36px);
  --r-md: 22px;
  --r-sm: 14px;
  --pad: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --hdr-h: 68px;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
  color: var(--cream);
  color-scheme: dark;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* clip (not hidden): keeps the phone's layout viewport at the screen width without breaking sticky */
main, .ftr { overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3 { overflow-wrap: break-word; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }
::selection { background: var(--orange); color: var(--ink); }
em { font-style: normal; color: var(--orange-2); }
strong { font-weight: 800; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; }
.i { width: 1.2em; height: 1.2em; flex: none; }

html.i18n-pending body { visibility: hidden; animation: i18n-safety 0s 1.5s forwards; }
@keyframes i18n-safety { to { visibility: visible; } }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--orange); color: var(--ink); padding: 12px 18px; border-radius: 14px;
  font-weight: 800; text-decoration: none; transition: top 0.2s;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ fluid background */

.fluid, .fluid-fallback { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fluid { z-index: -1; opacity: 0; transition: opacity 1.4s ease; }
.fluid.is-on { opacity: 1; }
.fluid-fallback {
  z-index: -2;
  background:
    radial-gradient(60% 45% at 80% 12%, rgba(255, 107, 26, 0.32), transparent 70%),
    radial-gradient(55% 40% at 8% 85%, rgba(147, 77, 29, 0.42), transparent 70%),
    radial-gradient(40% 30% at 50% 50%, rgba(226, 65, 15, 0.12), transparent 70%),
    var(--ink);
}
.is-flat .fluid-fallback {
  background:
    radial-gradient(70% 40% at 85% 0%, rgba(255, 107, 26, 0.26), transparent 70%),
    radial-gradient(50% 30% at 0% 30%, rgba(147, 77, 29, 0.3), transparent 70%),
    var(--ink);
}

/* ------------------------------------------------------------------- header */

.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--hdr-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.4s, transform 0.6s var(--out), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.hdr.is-solid {
  background: rgba(12, 8, 6, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.hdr.is-away { transform: translateY(-110%); }
.hdr__brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em;
  border-radius: 14px;
}
.hdr__brand .logo-mark { width: 40px; height: 40px; transition: transform 0.6s var(--spring); }
.hdr__brand:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }
.hdr__word span { font-weight: 400; color: var(--muted); }
.logo-mark { width: 40px; height: 40px; flex: none; }

.hdr__nav { display: none; margin-left: auto; gap: 2px; }
.hdr__link {
  position: relative;
  padding: 10px 15px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted);
  transition: color 0.25s, background-color 0.25s;
}
.hdr__link:hover { color: var(--cream); background: rgba(255, 243, 230, 0.07); }
.hdr__link[aria-current] { color: var(--cream); }
.hdr__link[aria-current]::after {
  content: ''; position: absolute; left: 50%; bottom: 3px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--orange);
  transform: translateX(-50%);
}
.hdr__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr__menu {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(255, 243, 230, 0.06); cursor: pointer;
}
.hdr__menu .i { width: 22px; height: 22px; }
.hdr__discord { display: none; }
/* without JavaScript there is no menu and no switch: the links stay in the header at every width */
.no-js .hdr__menu, .no-js .lang { display: none; }
.no-js .hdr__nav { display: flex; }
@media (max-width: 939px) {
  .no-js .hdr__word { display: none; }
  .no-js .hdr__link { padding: 10px 8px; font-size: 14px; }
}
@media (min-width: 940px) {
  .hdr__nav { display: flex; }
  .hdr__tools { margin-left: 8px; }
  .hdr__menu { display: none; }
  .hdr__discord { display: inline-flex; }
}

.lang {
  position: relative; display: flex; padding: 3px;
  border-radius: 999px; background: rgba(255, 243, 230, 0.07); border: 1px solid var(--line-2);
}
.lang__btn {
  position: relative; z-index: 1;
  width: 42px; height: 34px; border: 0; background: none; border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted);
  cursor: pointer; transition: color 0.3s;
}
.lang__btn[aria-pressed='true'] { color: var(--ink); }
.lang__pill {
  position: absolute; z-index: 0; top: 3px; left: 3px; width: 42px; height: 34px;
  border-radius: 999px; background: var(--orange);
  transition: transform 0.5s var(--spring);
}
html[data-lang='fr'] .lang__pill { transform: translateX(42px); }

/* menu (phones) */
.menu { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; padding: calc(var(--hdr-h) + 24px) var(--pad) 32px; color: var(--ink); }
.menu__bg {
  position: absolute; inset: 0; background: var(--orange);
  clip-path: circle(0 at calc(100% - var(--pad) - 23px) calc(var(--hdr-h) / 2));
  transition: clip-path 0.7s var(--out);
}
.menu.is-open .menu__bg { clip-path: circle(160% at calc(100% - var(--pad) - 23px) calc(var(--hdr-h) / 2)); }
.menu__close {
  position: absolute; top: calc((var(--hdr-h) - 46px) / 2); right: var(--pad); z-index: 1;
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; cursor: pointer;
}
.menu__close .i { width: 22px; height: 22px; }
.menu__nav { position: relative; }
.menu__nav ul { list-style: none; margin: 0; padding: 0; }
.menu__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 2px solid rgba(12, 8, 6, 0.16);
  font-family: var(--display); font-weight: 800; font-size: clamp(42px, 12vw, 80px); line-height: 1.02; letter-spacing: -0.04em;
  text-decoration: none; color: var(--ink);
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.5s calc(0.12s + var(--i) * 0.07s), transform 0.7s var(--out) calc(0.12s + var(--i) * 0.07s);
}
.menu__nav li { --i: 0; }
.menu__nav a .i { width: 0.6em; height: 0.6em; transition: transform 0.4s var(--spring); }
.menu__nav a:hover .i { transform: translateX(6px); }
.menu__nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu__foot { position: relative; margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; opacity: 0; transition: opacity 0.5s 0.4s; }
.menu.is-open .menu__foot { opacity: 1; }
.menu__foot p { margin: 0; }
.menu__peek { position: absolute; left: 0; right: 0; bottom: 0; height: 30vh; display: flex; justify-content: space-evenly; align-items: flex-end; pointer-events: none; overflow: hidden; }
.menu__peek .ch { width: min(30vw, 150px); height: auto; transform: translateY(70%); transition: transform 0.8s var(--spring) calc(0.3s + var(--d, 0s)); }
.menu__peek .ch:nth-child(2) { --d: 0.1s; width: min(34vw, 170px); }
.menu__peek .ch:nth-child(3) { --d: 0.2s; }
.menu.is-open .menu__peek .ch { transform: translateY(38%); }
.menu__foot { z-index: 1; padding-bottom: 18vh; }
.menu .btn--discord { --bg: var(--ink); --fg: var(--cream); display: inline-flex; }
html.menu-open { overflow: hidden; }

/* ------------------------------------------------------------------ buttons */

.btn {
  --bg: var(--orange); --fg: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-family: var(--body); font-weight: 800; font-size: 16px; line-height: 1.1; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.45s var(--spring), box-shadow 0.45s var(--out), border-color 0.3s, background-color 0.3s;
}
.btn .i { width: 20px; height: 20px; }
.btn--primary { box-shadow: 0 14px 34px -14px rgba(255, 107, 26, 0.85), inset 0 -3px 0 rgba(12, 8, 6, 0.18); }
.btn--primary::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, 0.5) 50%, transparent 75%);
  transform: translateX(-130%); transition: transform 0.9s var(--out);
}
.btn--primary:hover::before { transform: translateX(130%); }
.btn--primary .i-arrow { transition: transform 0.4s var(--spring); }
.btn--primary:hover .i-arrow { transform: translateX(5px); }
.btn:hover { transform: translateY(-2px) scale(1.03); }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn--ghost {
  --bg: rgba(255, 243, 230, 0.06); --fg: var(--cream);
  border: 1.5px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: var(--orange); --bg: rgba(255, 107, 26, 0.12); }
.btn--xl { min-height: 66px; padding: 0 36px; font-size: 20px; }
.btn--xl .i { width: 24px; height: 24px; }
.btn--discord { min-height: 40px; padding: 0 16px; font-size: 14px; --bg: rgba(255, 243, 230, 0.08); --fg: var(--cream); border: 1px solid var(--line-2); }

.link-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; text-decoration: none; color: var(--cream);
  padding: 8px 0; border-bottom: 2px solid var(--orange);
}
.link-more .i { transition: transform 0.4s var(--spring); }
.link-more:hover .i-arrow { transform: translateX(5px); }

/* -------------------------------------------------------------------- marks */
/* Never alike: Human-made is a warm filled pill with a hand; AI-made is a dark, square,
   outlined tag in monospace capitals with sparks. */

.mark {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  font-weight: 800; font-size: 13px; line-height: 1; white-space: nowrap; vertical-align: middle;
  width: max-content;
}
.mark__i { width: 16px; height: 16px; flex: none; }
.mark--human {
  padding: 7px 13px 7px 9px; border-radius: 999px;
  background: var(--orange); color: var(--ink);
  box-shadow: inset 0 -2px 0 rgba(12, 8, 6, 0.2), 0 0 0 2px rgba(12, 8, 6, 0.55);
}
.mark--ai {
  padding: 7px 11px 7px 8px; border-radius: 3px;
  background: var(--ink); color: var(--cream);
  border: 1.5px solid var(--cream);
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
}
.mark--ai .mark__i { color: var(--amber); }
.mark--lg { font-size: 15px; }
.mark--lg.mark--ai { font-size: 13px; }
.mark--lg .mark__i { width: 18px; height: 18px; }
.mark--xl { font-size: clamp(18px, 3vw, 26px); gap: 10px; }
.mark--xl.mark--human { padding: 12px 22px 12px 16px; }
.mark--xl.mark--ai { font-size: clamp(14px, 2.2vw, 20px); padding: 12px 18px 12px 14px; border-width: 2px; }
.mark--xl .mark__i { width: 1.2em; height: 1.2em; }

/* --------------------------------------------------------------- typography */

.giant {
  margin: 0;
  font-family: var(--display); font-weight: 800; font-stretch: 82%;
  font-size: clamp(64px, 17vw, 210px); line-height: 0.86; letter-spacing: -0.028em;
}
.giant--xl { font-size: clamp(120px, 38vw, 400px); line-height: 0.8; }
.sec-title {
  margin: 0 0 0.45em;
  font-family: var(--display); font-weight: 800; font-stretch: 88%;
  font-size: clamp(40px, 8.4vw, 92px); line-height: 0.95; letter-spacing: -0.035em;
}
.sec-title--sm { font-size: clamp(32px, 5vw, 56px); }
.lede {
  margin: 0 0 0.7em;
  font-family: var(--display); font-weight: 600; font-stretch: 94%;
  font-size: clamp(26px, 5.2vw, 54px); line-height: 1.08; letter-spacing: -0.025em;
  max-width: 24ch;
}
.body-l { margin: 0 0 1em; font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--muted); max-width: 42ch; }
.body-l strong, .lede strong { color: var(--cream); }
.note { margin: 1.2em 0 0; padding-left: 16px; border-left: 3px solid var(--orange); color: var(--cream); font-weight: 700; max-width: 40ch; }

/* split giant words into letters (JS) */
.spl .wd { display: inline-block; white-space: nowrap; }
.spl .c { display: inline-block; }

/* ------------------------------------------------------------- fighter cards */

.fcard {
  --bg-a: #ffcf9a; --bg-b: #ff6b1a;
  width: 100%;
  padding: 10px 10px 12px;
  border-radius: 24px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 0 0 3px var(--ink), 0 30px 60px -24px rgba(0, 0, 0, 0.9), inset 0 2px 0 #fff;
}
.fcard__art {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 38%, var(--bg-a), var(--bg-b) 72%);
  box-shadow: inset 0 0 0 2px rgba(12, 8, 6, 0.12);
}
.fcard__art::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 8px, transparent 8px 16px);
}
.fcard__art .ch { width: 88%; height: 88%; position: relative; z-index: 1; }
.fcard__body { padding: 10px 4px 0; }
.fcard__name { margin: 0 0 8px; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.05; letter-spacing: -0.015em; }
.fcard__stats { display: flex; gap: 6px; }
.stat {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px 4px 7px; border-radius: 999px; background: rgba(12, 8, 6, 0.08);
  font-weight: 800; font-size: 15px; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat .i { width: 15px; height: 15px; }
.stat--str .i { color: var(--ember); }
.stat--hp .i { color: #c81e4a; fill: rgba(200, 30, 74, 0.2); }
.fcard__ability { display: flex; align-items: center; gap: 6px; margin: 9px 0 0; font-size: 13px; font-weight: 800; color: var(--brown); line-height: 1.2; }
.fcard__ability .i { width: 15px; height: 15px; color: var(--orange); fill: rgba(255, 107, 26, 0.25); }

.fcard--cat { --bg-a: #ffb370; --bg-b: #ff6b1a; }
.fcard--duck { --bg-a: #b8662b; --bg-b: #5a2a0e; }
.fcard--croissant { --bg-a: #ff7d4a; --bg-b: #b3270a; }
.fcard--cone { --bg-a: #4a362a; --bg-b: #1b120d; }
.fcard--toaster { --bg-a: #ffd27a; --bg-b: #ff8a3d; }
.fcard--sock { --bg-a: #a85a28; --bg-b: #4a220b; }

/* idle life in the drawings */
.ch__eyes, .ch__tail, .ch__anger, .ch__steam circle, .ch__beak, .ch__toast { transform-box: fill-box; transform-origin: center; }
.motion .ch__eyes { animation: blink 5.5s infinite; }
.motion .ch--duck .ch__eyes { animation-delay: 1.4s; }
.motion .ch--cone .ch__eyes { animation-delay: 2.6s; }
.motion .ch--toaster .ch__eyes { animation-delay: 3.3s; }
.motion .ch--sock .ch__eyes { animation-delay: 0.7s; }
.motion .ch__tail { transform-origin: 0% 100%; animation: wag 2.6s ease-in-out infinite; }
.motion .ch__anger { animation: throb 0.8s ease-in-out infinite; }
.motion .ch__steam circle { animation: puff 2.2s ease-in-out infinite; }
.motion .ch__steam circle:nth-child(2) { animation-delay: 0.5s; }
.motion .ch__steam circle:nth-child(3) { animation-delay: 1.1s; }
.motion .ch__toast { animation: pop-toast 3.4s var(--spring) infinite; }
.motion .ch__eyes { translate: calc(var(--ex, 0) * 4px) calc(var(--ey, 0) * 3px); transition: translate 0.25s ease-out; }
[data-poke] { cursor: pointer; }
.is-poked > .fcard { animation: poke 0.7s var(--spring) !important; }
.is-poked .ch--croissant .ch__anger { animation: throb 0.2s 4; }
@keyframes poke { 0% { translate: 0 0; scale: 1; } 25% { translate: 0 6px; scale: 1.06 0.92; } 55% { translate: 0 -28px; scale: 0.96 1.05; rotate: -4deg; } 80% { translate: 0 0; scale: 1.03 0.97; } 100% { translate: 0 0; scale: 1; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes wag { 50% { transform: rotate(-9deg); } }
@keyframes throb { 50% { transform: scale(1.25); } }
@keyframes puff { 0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; } 50% { transform: translateY(-8px) scale(1.25); opacity: 0.4; } }
@keyframes pop-toast { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-14px); } }

/* -------------------------------------------------------------- pinned scenes */

.pin { position: relative; }
.pin__stage { position: relative; }
.motion .pin { height: calc(var(--len, 2) * 100vh); }
.motion .pin__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* ===================================================================== HOME */

.hero__stage {
  display: grid; align-content: center; gap: 26px;
  min-height: 100svh;
  padding: calc(var(--hdr-h) + 18px) var(--pad) 40px;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.4vh, 24px); }
.hero__title { margin: 0; display: flex; flex-direction: column; gap: 0.06em; }
.hero__name {
  font-family: var(--display); font-weight: 800; font-stretch: 78%;
  font-size: clamp(64px, 18.5vw, 180px); line-height: 0.84; letter-spacing: -0.042em;
}
.hero__tag {
  font-family: var(--display); font-weight: 300; font-stretch: 90%;
  font-size: clamp(38px, 10.5vw, 104px); line-height: 0.95; letter-spacing: -0.04em;
}
.hero__tag em { font-weight: 800; color: var(--orange); }
.hero__text { margin: 0; max-width: 33ch; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__new {
  display: inline-flex; align-items: center; gap: 12px; width: max-content; max-width: 100%;
  padding: 6px 8px 6px 6px; border-radius: 18px; text-decoration: none;
  background: rgba(255, 243, 230, 0.06); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.5s var(--spring);
}
.hero__new:hover { border-color: var(--orange); transform: translateY(-2px); }
.hero__new img { width: 64px; height: 40px; object-fit: cover; border-radius: 10px; }
.hero__new-body { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hero__new-body .mark { font-size: 10px; padding: 4px 7px 4px 6px; }
.hero__new-body .mark__i { width: 12px; height: 12px; }
.hero__new-body b { font-family: var(--display); font-size: 17px; line-height: 1; }
.hero__new-play { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); margin-left: 6px; }
.hero__new-play .i { width: 16px; height: 16px; margin-left: 2px; }
.hero__cards { position: relative; height: clamp(300px, 92vw, 560px); }
.hero__card { position: absolute; top: 50%; left: 50%; width: clamp(150px, 44vw, 250px); }
.hero__card--1 { transform: translate(-112%, -46%) rotate(-11deg); }
.hero__card--2 { transform: translate(-50%, -56%) rotate(2deg); z-index: 2; }
.hero__card--3 { transform: translate(12%, -44%) rotate(12deg); z-index: 1; }
.hero__hint { display: none; }
@media (min-width: 940px) {
  .hero__stage { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; align-content: safe center; padding-top: var(--hdr-h); }
  /* sized from the column, so "Tiful Games" always holds on one line beside the cards */
  .hero__name { font-size: min(180px, calc(13vw - 22px), 21vh); }
  .hero__tag { font-size: min(104px, calc(7.4vw - 10px), 12vh); }
  .hero__cards { height: min(76vh, 640px); }
  .hero__card { width: clamp(190px, 16vw, 260px); }
}

.motion .hero__copy {
  transform: translateY(calc(var(--p, 0) * -18vh));
  opacity: clamp(0, 1 - var(--p, 0) * 1.4, 1);
}
.motion .hero__card { transition: none; }
.motion .hero__card > .fcard { animation: float 6s ease-in-out infinite; }
.motion .hero__card--2 > .fcard { animation-delay: -2s; }
.motion .hero__card--3 > .fcard { animation-delay: -4s; }
.motion .hero__card--1 { transform: translate(calc(-112% - var(--p, 0) * 40%), calc(-46% - var(--p, 0) * 30%)) rotate(calc(-11deg - var(--p, 0) * 14deg)); }
.motion .hero__card--2 { transform: translate(-50%, calc(-56% - var(--p, 0) * 42%)) rotate(calc(2deg + var(--p, 0) * 4deg)) scale(calc(1 + var(--p, 0) * 0.12)); }
.motion .hero__card--3 { transform: translate(calc(12% + var(--p, 0) * 40%), calc(-44% - var(--p, 0) * 22%)) rotate(calc(12deg + var(--p, 0) * 14deg)); }
.motion .hero__hint {
  display: flex; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  opacity: clamp(0, 1 - var(--p, 0) * 6, 1);
}
.motion .hero__hint i { width: 2px; height: 34px; background: linear-gradient(var(--orange), transparent); animation: hint 1.8s var(--out) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes float { 50% { translate: 0 -12px; rotate: 1.5deg; } }
@media (max-width: 939px) {
  .motion .hero__hint { display: none; }
  .motion .hero.pin { height: 135vh; }
  .motion .hero__stage { align-content: start; }
  .motion .hero__copy { transform: translateY(calc(var(--p, 0) * -8vh)); opacity: clamp(0, 1 - var(--p, 0) * 0.9, 1); }
  .motion .hero__cards { margin-top: -6px; transform: translateY(calc(var(--p, 0) * -16vh)) scale(calc(1 + var(--p, 0) * 0.06)); }
  .split.sab { padding-top: 2vh; }
}

/* SAB battle: the copy stays (desktop) while the arena plays */
.sab__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sab__title { color: var(--orange); font-size: clamp(110px, 30vw, 260px); text-shadow: 0 0 80px rgba(255, 107, 26, 0.35); }
@media (min-width: 960px) { .sab__title { font-size: min(260px, 30vw, 30vh); } }
.sab__text { margin: 0 0 6px; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.5; max-width: 32ch; color: var(--muted); }
.sab__text em { color: var(--cream); font-weight: 700; }
.sab__stage { display: grid; place-items: center; padding: 6vh var(--pad); }
.motion .sab__stage { padding: calc(var(--hdr-h) + 6px) var(--pad) 20px; }
@media (min-width: 960px) { .sab .split__sticky { max-width: 460px; } }

.arena {
  --win: 0;
  position: relative;
  width: min(100%, 600px);
  display: grid; gap: clamp(8px, 1.6vh, 16px);
  padding: clamp(14px, 2vw, 22px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 45% at 50% 50%, rgba(255, 107, 26, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(43, 32, 24, 0.9), rgba(21, 14, 10, 0.92));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 243, 230, 0.08);
}
.arena__side { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.4vw, 14px); }
.arena__label { grid-column: 1 / -1; margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.arena__side--you .arena__label { text-align: right; color: var(--amber); }
.arena__vs {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.2vw, 38px); line-height: 1; color: var(--orange);
  opacity: calc(1 - var(--win));
}
.arena__vs::before, .arena__vs::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 107, 26, 0.6), transparent); }
.mini {
  --hp: 1;
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 6px 6px 8px; border-radius: 18px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 0 0 2.5px var(--ink), 0 10px 0 -3px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.mini__art { width: 100%; aspect-ratio: 1; border-radius: 13px; background: radial-gradient(circle at 50% 40%, #ffcf9a, #ff8a3d); display: grid; place-items: center; overflow: hidden; }
.mini__art .ch { width: 90%; height: 90%; }
.mini__info { display: grid; gap: 5px; min-width: 0; }
.mini__name { font-family: var(--display); font-weight: 800; font-size: clamp(11px, 1.05vw, 13px); line-height: 1.05; text-align: center; min-height: 2.1em; display: grid; place-items: center; }
.mini__bar { display: block; height: 8px; border-radius: 4px; background: rgba(12, 8, 6, 0.14); overflow: hidden; }
.mini__bar i { display: block; height: 100%; width: calc(var(--hp) * 100%); border-radius: 4px; background: linear-gradient(90deg, var(--ember), var(--orange)); transition: width 0.25s var(--out); }
.mini__stats { display: flex; justify-content: center; gap: 4px; }
.mini .stat { font-size: 12px; padding: 3px 6px 3px 5px; gap: 3px; }
.mini .stat .i { width: 12px; height: 12px; }
.mini__dmg {
  position: absolute; top: 18%; left: 50%; z-index: 2;
  font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); color: var(--amber);
  -webkit-text-stroke: 3px var(--ink); paint-order: stroke;
  opacity: 0; pointer-events: none; transform: translateX(-50%);
}
.mini[data-f='duck'] .mini__art { background: radial-gradient(circle at 50% 40%, #b8662b, #5a2a0e); }
.mini[data-f='croissant'] .mini__art { background: radial-gradient(circle at 50% 40%, #ff7d4a, #b3270a); }
.mini[data-f='cone'] .mini__art { background: radial-gradient(circle at 50% 40%, #4a362a, #1b120d); }
.mini[data-f='sock'] .mini__art { background: radial-gradient(circle at 50% 40%, #a85a28, #4a220b); }
.mini.is-ko { filter: grayscale(1) brightness(0.55); }
.mini.is-ko .mini__art .ch { opacity: 0.45; transform: rotate(-90deg) scale(0.8); transition: transform 0.4s var(--spring); }
.mini.is-atk { z-index: 5; box-shadow: 0 0 0 2.5px var(--ink), 0 0 0 7px rgba(255, 107, 26, 0.55), 0 20px 30px -10px rgba(0, 0, 0, 0.6); }
.arena__side--you .mini { translate: 0 calc(var(--win) * -10px); }
.arena__banner {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 6; margin: 0; text-align: center;
  font-family: var(--display); font-weight: 800; font-size: clamp(52px, 9vw, 110px); line-height: 1; letter-spacing: -0.04em;
  color: var(--amber); -webkit-text-stroke: 4px var(--ink); paint-order: stroke;
  text-shadow: 0 8px 0 var(--ink), 0 0 60px rgba(255, 181, 71, 0.6);
  opacity: var(--win); transform: translateY(-50%) scale(calc(0.4 + var(--win) * 0.6)) rotate(calc(-12deg + var(--win) * 8deg));
  pointer-events: none;
}
@media (max-width: 380px) { .mini__name { display: none; } }
@media (max-height: 760px) and (max-width: 959px) { .mini__name { display: none; } .arena { width: min(100%, 340px); } }

/* play now rail */
.playnow { padding: 14vh 0 6vh; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head .sec-title { margin: 0; }
.rail {
  list-style: none; margin: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 330px); gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 10px var(--pad) 30px; scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
@media (min-width: 1000px) {
  .rail {
    grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible;
    width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto; padding-inline: 0;
  }
}

/* game cards */
.gcard-wrap { list-style: none; }
.gcard {
  --rx: 0; --ry: 0;
  position: relative;
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--r-md); overflow: hidden;
  background: var(--ink-3); border: 1px solid var(--line);
  text-decoration: none;
  transform: perspective(900px) rotateX(calc(var(--ry) * 1deg)) rotateY(calc(var(--rx) * 1deg));
  transition: transform 0.6s var(--out), border-color 0.3s, box-shadow 0.6s var(--out);
}
.gcard:hover, .gcard:focus-visible {
  transform: perspective(900px) rotateX(calc(var(--ry) * 1deg)) rotateY(calc(var(--rx) * 1deg)) translateY(-6px);
  border-color: rgba(255, 107, 26, 0.65);
  box-shadow: 0 34px 60px -30px rgba(255, 107, 26, 0.65);
}
.gcard__cover { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-2); }
.gcard__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--out); }
.gcard:hover .gcard__cover img { transform: scale(1.07); }
.gcard__play {
  position: absolute; right: 12px; bottom: 12px;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--ink);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.8);
  transform: scale(0.5); opacity: 0;
  transition: transform 0.5s var(--spring), opacity 0.3s;
}
.gcard__play .i { width: 20px; height: 20px; margin-left: 3px; }
.gcard:hover .gcard__play, .gcard:focus-visible .gcard__play { transform: none; opacity: 1; }
@media (hover: none) { .gcard__play { transform: none; opacity: 1; width: 40px; height: 40px; } }
.gcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 14px 16px 16px; }
.gcard__title { font-family: var(--display); font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: -0.025em; }
.gcard__line { color: var(--muted); font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard__meta { margin-top: auto; padding-top: 4px; width: 100%; display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--dim); }
.gcard__langs { font-family: var(--mono); letter-spacing: 0.05em; }

/* two kinds */
.kinds { padding: 16vh 0 10vh; }
.kinds__intro { max-width: 20ch; }
.kinds__grid { display: grid; gap: 16px; margin-top: 8vh; }
@media (min-width: 860px) { .kinds__grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.kpanel {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px;
  min-height: clamp(300px, 46vh, 440px); padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg); text-decoration: none;
  transition: transform 0.6s var(--out), box-shadow 0.6s var(--out);
}
.kpanel:hover { transform: translateY(-6px); }
.kpanel__text { margin: auto 0 0; max-width: 22ch; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.12; letter-spacing: -0.02em; }
.kpanel__go {
  position: absolute; top: clamp(20px, 3vw, 32px); right: clamp(20px, 3vw, 32px);
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  transition: transform 0.5s var(--spring), background-color 0.3s;
}
.kpanel__go .i { width: 24px; height: 24px; }
.kpanel:hover .kpanel__go { transform: rotate(-45deg) scale(1.1); }
.kpanel--human {
  background: radial-gradient(120% 90% at 100% 100%, #ff7a26 0%, #c4531a 45%, #6e3712 100%);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 190, 0.2);
}
.kpanel--human .kpanel__text strong { color: #fff; }
.kpanel--human .kpanel__go { background: var(--cream); color: var(--ink); }
.kpanel__doodle { position: absolute; z-index: -1; right: -30px; bottom: -40px; width: 70%; color: rgba(255, 243, 230, 0.16); }
.kpanel--ai { background: var(--ink-2); color: var(--cream); box-shadow: inset 0 0 0 1px var(--line-2); }
.kpanel--ai .kpanel__go { background: rgba(255, 243, 230, 0.1); }
.kpanel__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(circle at 85% 15%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 85% 15%, #000, transparent 75%);
}
.motion .kpanel--human { transform: translateX(calc((1 - var(--enter, 1)) * -36%)) rotate(calc((1 - var(--enter, 1)) * -7deg)); opacity: calc(0.2 + var(--enter, 1) * 0.8); }
.motion .kpanel--ai { transform: translateX(calc((1 - var(--enter, 1)) * 36%)) rotate(calc((1 - var(--enter, 1)) * 7deg)); opacity: calc(0.2 + var(--enter, 1) * 0.8); }
.motion .kinds__grid { --enter: 0; }

/* Discord call to action (only built when an invite is set) */
.discord-cta { padding: 10vh 0; }
.discord-cta__panel {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg);
  background: radial-gradient(100% 120% at 0% 0%, rgba(255, 107, 26, 0.35), transparent 60%), var(--ink-3);
  border: 1px solid var(--line-2);
}
.discord-cta__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--orange); color: var(--ink); }
.discord-cta__icon .i { width: 32px; height: 32px; }
.discord-cta__text { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.1; max-width: 26ch; }
.discord-cta__panel { position: relative; overflow: hidden; }
.crowd { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.crowd__f { position: relative; width: clamp(54px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #ffcf9a, #ff8a3d); box-shadow: 0 0 0 3px var(--ink-3), 0 12px 24px -12px rgba(0, 0, 0, 0.8); }
.crowd__f .ch { width: 86%; }
.crowd__bubble { position: absolute; top: -10px; right: -12px; display: flex; gap: 3px; padding: 6px 8px; border-radius: 12px 12px 12px 3px; background: var(--cream); opacity: 0; }
.crowd__bubble b { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.crowd__f:nth-child(3n + 1) .crowd__bubble { opacity: 1; }
.motion .crowd__f { animation: bob 3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.5s); }
.motion .crowd__bubble b { animation: typing 1.2s infinite; }
.motion .crowd__bubble b:nth-child(2) { animation-delay: 0.15s; }
.motion .crowd__bubble b:nth-child(3) { animation-delay: 0.3s; }
@keyframes bob { 50% { translate: 0 -8px; } }
@media (min-width: 900px) {
  .crowd { position: absolute; right: clamp(24px, 5vw, 64px); top: 50%; transform: translateY(-50%); width: 300px; margin: 0; justify-content: center; }
  .discord-cta__panel { padding-right: 380px; }
}

/* =============================================================== HUMAN GAMES */

.hhero__stage {
  display: grid; align-content: center; gap: 24px;
  min-height: 100svh; padding: calc(var(--hdr-h) + 16px) var(--pad) 32px;
}
.hhero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hhero__title { font-size: clamp(68px, 19vw, 200px); }
.hhero__line { margin: 6px 0 0; }
.hhero__text { margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
@media (min-width: 960px) {
  .hhero__stage { grid-template-columns: 1.15fr 0.85fr; align-items: center; align-content: safe center; }
  .hhero__title { font-size: min(200px, calc(19vw - 30px), 24vh); }
}

.sketch { display: grid; place-items: center; }
.sketch__paper {
  position: relative; width: min(78vw, 440px); aspect-ratio: 1;
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 243, 230, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 243, 230, 0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    rgba(21, 14, 10, 0.75);
  border: 1px solid var(--line-2);
  transform: rotate(-3deg);
}
.sketch__lines, .sketch__color, .sketch__marks { position: absolute; inset: 9%; }
.sketch__lines .ch, .sketch__color .ch { width: 100%; height: 100%; }
.sketch__lines .ch * { fill: none !important; stroke: var(--cream) !important; stroke-width: 2.5 !important; stroke-linecap: butt !important; stroke-dasharray: 1; stroke-dashoffset: 0; }
.sketch__marks { inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; opacity: 0.8; }
.sketch__color { opacity: 1; }
/* the pencil starts on its own (a third of the drawing), then the scroll finishes it and colours it in */
@property --intro { syntax: '<number>'; inherits: true; initial-value: 0; }
.motion .hhero { animation: sketch-intro 2.2s var(--out) 0.35s both; --draw: clamp(0, var(--intro) + var(--p, 0) * 2.1, 1); --fill: clamp(0, (var(--p, 0) - 0.48) * 3.2, 1); }
@keyframes sketch-intro { from { --intro: 0; } to { --intro: 0.34; } }
.motion .sketch__lines .ch * { stroke-dashoffset: calc(1 - var(--draw)); }
.motion .sketch__color { opacity: var(--fill); transform: scale(calc(0.96 + var(--fill) * 0.04)); }
.motion .sketch__lines { opacity: calc(1 - var(--fill) * 0.7); }
.motion .sketch__paper { transform: rotate(calc(-3deg + var(--p, 0) * 5deg)); }
.motion .hhero__copy { transform: translateY(calc(var(--p, 0) * -6vh)); }

.hsab { padding: 14vh 0 8vh; }
.hsab__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 4vh; }
.hsab .giant--xl { color: var(--orange); }
.lineup { margin-top: 8vh; overflow-x: auto; scrollbar-width: none; padding: 10px 0 30px; }
.lineup::-webkit-scrollbar { display: none; }
.lineup__track { display: flex; gap: clamp(14px, 2vw, 24px); width: max-content; padding: 0 var(--pad); }
.lineup__item { width: clamp(160px, 42vw, 240px); flex: none; }
.lineup__item:nth-child(odd) { transform: rotate(-3deg); }
.lineup__item:nth-child(even) { transform: rotate(3deg) translateY(16px); }
.motion .lineup { overflow: visible; }
.motion .lineup__track { transform: translateX(calc(12vw - var(--through, 0) * (100% - 76vw))); }

/* split: copy that stays while the pinned visual plays */
.split { position: relative; padding: 10vh 0 0; }
.split__copy { padding: 0 var(--pad); }
.split__sticky { max-width: 560px; }
@media (min-width: 960px) {
  .split { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
  .split__copy { grid-column: 1; grid-row: 1; padding-left: max(var(--pad), (100vw - var(--maxw)) / 2); padding-right: 24px; }
  .split__sticky { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: safe center; padding: 96px 0 48px; }
  .split__pin { grid-column: 2; grid-row: 1; }
  .split--rev .split__copy { grid-column: 2; padding-left: 24px; padding-right: max(var(--pad), (100vw - var(--maxw)) / 2); }
  .split--rev .split__pin { grid-column: 1; }
  html:not(.motion) .split__pin { display: grid; align-content: center; min-height: 100vh; }
}

/* make your own fighters: three steps */
.make__stage { display: grid; place-items: center; padding: 6vh var(--pad); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; width: 100%; max-width: 420px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.step__label { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.02em; }
.step__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-size: 17px; }
.step__vis { position: relative; width: 100%; display: grid; place-items: center; }
.polaroid {
  margin: 0; width: min(74vw, 300px); padding: 12px 12px 4px; background: #fffaf2; color: var(--ink);
  border-radius: 6px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9); transform: rotate(-4deg);
}
.polaroid__pic { aspect-ratio: 1; display: grid; place-items: center; background: linear-gradient(160deg, #9fd0e8, #e6f2f0 55%, #c7a27a 56%, #a7825a); border-radius: 2px; }
.polaroid__pic .ch { width: 82%; }
.polaroid__cap { margin: 0; padding: 10px 2px; font-family: var(--mono); font-size: 14px; color: #6d5a4a; }
.forge {
  width: min(78vw, 320px); padding: 16px; border-radius: 22px; display: grid; gap: 12px;
  background: var(--ink-3); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9);
}
.forge__pic { width: 96px; aspect-ratio: 1; margin: 0 auto 4px; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #b8662b, #5a2a0e); }
.forge__pic .ch { width: 88%; }
.forge__row { display: grid; grid-template-columns: 112px 1fr 22px; align-items: center; gap: 10px; font-weight: 800; }
.forge__row b { text-align: right; font-variant-numeric: tabular-nums; }
.forge__k { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.forge__k .i { width: 16px; height: 16px; color: var(--orange); }
.forge__bar { height: 10px; border-radius: 5px; background: var(--ink-4); overflow: hidden; }
.forge__bar i { display: block; height: 100%; width: calc(var(--v) * 100% * var(--fill-bars, 1)); border-radius: 5px; background: linear-gradient(90deg, var(--ember), var(--amber)); }
.forge__row--ab { grid-template-columns: 112px 1fr; }
.forge__chip { justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 14px; transform: scale(var(--chip, 1)); }
.fcard--hero { width: min(64vw, 270px); }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; left: 50%; top: 45%; width: 10px; height: 14px; border-radius: 2px; background: var(--orange); opacity: 0; }
.confetti i:nth-child(3n) { background: var(--amber); }
.confetti i:nth-child(3n + 1) { background: var(--cream); width: 8px; height: 8px; border-radius: 50%; }
@media (min-width: 640px) and (max-width: 959px) {
  html:not(.motion) .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  html:not(.motion) .polaroid, html:not(.motion) .forge, html:not(.motion) .fcard--hero { width: 100%; }
}

.motion .make__stage { padding: calc(var(--hdr-h) + 8px) var(--pad) 40px; }
.motion .steps { position: relative; height: min(100%, 600px); max-width: 440px; }
.motion .step {
  position: absolute; inset: 0; justify-content: center;
  opacity: var(--o); transform: translateY(calc((1 - var(--o)) * 36px)) scale(calc(0.92 + var(--o) * 0.08));
  pointer-events: none;
}
.motion .step--1 { --o: clamp(0, 1 - (var(--p, 0) - 0.27) * 9, 1); }
.motion .step--2 { --o: clamp(0, min((var(--p, 0) - 0.3) * 9, 1 - (var(--p, 0) - 0.62) * 9), 1); --fill-bars: clamp(0, (var(--p, 0) - 0.36) * 6, 1); --chip: clamp(0, (var(--p, 0) - 0.48) * 8, 1); }
.motion .step--3 { --o: clamp(0, (var(--p, 0) - 0.66) * 9, 1); }
.motion .step--1 .polaroid { transform: rotate(calc(-4deg + var(--p, 0) * 10deg)); }
.motion .step--3 .fcard { transform: rotate(calc((1 - var(--o)) * 10deg)); }
.motion .step--3 .confetti i {
  opacity: clamp(0, var(--o) * 1.4 - 0.2, 1);
  transform: translate(calc(cos(var(--a)) * var(--o) * 170px), calc(sin(var(--a)) * var(--o) * 200px)) rotate(calc(var(--o) * 400deg));
}
.motion .make__stage::after {
  content: ''; position: absolute; left: 50%; bottom: 26px; width: 140px; height: 4px; border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--orange) calc(var(--p, 0) * 100%), var(--line-2) 0);
}
.confetti i:nth-child(1) { --a: 0deg; } .confetti i:nth-child(2) { --a: 30deg; } .confetti i:nth-child(3) { --a: 60deg; }
.confetti i:nth-child(4) { --a: 90deg; } .confetti i:nth-child(5) { --a: 120deg; } .confetti i:nth-child(6) { --a: 150deg; }
.confetti i:nth-child(7) { --a: 180deg; } .confetti i:nth-child(8) { --a: 210deg; } .confetti i:nth-child(9) { --a: 240deg; }
.confetti i:nth-child(10) { --a: 270deg; } .confetti i:nth-child(11) { --a: 300deg; } .confetti i:nth-child(12) { --a: 330deg; }

/* rating */
.rating__stage { display: grid; place-items: center; padding: 6vh var(--pad); }
.meter { display: none; }
.snaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; width: 100%; max-width: 520px; }
.snap {
  display: grid; grid-template-columns: 64px 1fr 110px; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 12px 16px 12px 12px; border-radius: 20px; background: var(--ink-3); border: 1px solid var(--line);
}
.snap__art { grid-row: span 2; width: 64px; aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #ff7d4a, #b3270a); }
.snap__art .ch { width: 90%; }
.snap__stats { display: flex; gap: 6px; }
.snap__stats .stat { background: rgba(255, 243, 230, 0.08); color: var(--cream); }
.snap .gauge { grid-row: span 2; grid-column: 3; width: 110px; }
.snap__value { font-family: var(--display); font-size: 20px; }
.snap:last-child .snap__value { color: var(--orange); }

.gauge { width: 100%; overflow: visible; }
.gauge path { fill: none; stroke-linecap: round; }
.gauge__track { stroke: var(--ink-4); stroke-width: 22; }
.gauge__zone { stroke-width: 18; }
.gauge__zone--fair { stroke: #e9d6bf; }
.gauge__zone--strong { stroke: var(--amber); }
.gauge__zone--too { stroke: var(--ember); }
.gauge__needle { transform-box: view-box; transform-origin: 120px 124px; transform: rotate(calc(var(--needle, -70) * 1deg)); transition: transform 0.2s var(--out); }
.gauge__needle path { stroke: var(--cream); stroke-width: 7; }
.gauge__needle circle { fill: var(--cream); stroke: var(--ink); stroke-width: 4; }

.motion .snaps { display: none; }
.motion .meter {
  --heat: 0;
  display: grid; justify-items: center; gap: 18px; width: 100%; max-width: 440px;
}
.motion .rating__stage { padding: calc(var(--hdr-h) + 8px) var(--pad) 24px; }
.meter__card { width: min(56vw, 250px); }
.meter__card .fcard { width: 100%; transform: rotate(calc(var(--heat) * 4deg)); }
.meter__card .fcard__art .ch { transform: scale(calc(0.9 + var(--heat) * 0.22)); transition: transform 0.2s var(--out); }
.meter__card .fcard__art { background: radial-gradient(circle at 50% 38%, #ff7d4a, color-mix(in srgb, #b3270a calc(100% - var(--heat) * 60%), #ff1a00)); }
.meter.is-too .meter__card .fcard { animation: shake 0.35s linear infinite; }
.meter.is-too .meter__card .fcard__stats .stat { background: var(--ember); color: var(--cream); }
.meter.is-too .meter__card .fcard__stats .stat .i { color: var(--cream); fill: none; }
.meter__card .stat b { display: inline-block; min-width: 1.2em; text-align: center; }
.meter__gauge { width: min(70vw, 300px); text-align: center; }
.meter__label { margin: 0; font-weight: 700; color: var(--muted); display: flex; justify-content: center; gap: 8px; align-items: baseline; }
.meter__value { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); color: var(--cream); }
.meter.is-too .meter__value { color: var(--orange); }
@keyframes shake { 0%, 100% { translate: 0 0; } 25% { translate: -3px 1px; } 75% { translate: 3px -1px; } }
@media (max-height: 700px) { .meter__card { width: min(44vw, 200px); } .meter__gauge { width: min(56vw, 240px); } }

/* online */
.online { display: grid; gap: 40px; padding: 16vh 0 10vh; align-items: center; }
@media (min-width: 960px) { .online { grid-template-columns: 1fr 1fr; gap: 64px; } }
.online__claim { margin-top: 0.6em; }
.lobby {
  padding: 20px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 243, 230, 0.05), transparent), var(--ink-3);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.lobby__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lobby__room { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.lobby__room .i { color: var(--orange); }
.lobby__room b { font-family: var(--mono); color: var(--cream); letter-spacing: 0.06em; }
.lobby__dots { display: flex; gap: 6px; }
.lobby__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-4); }
.lobby__dots i:first-child { background: var(--orange); }
.lobby__pack { display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 107, 26, 0.12); color: var(--muted); font-weight: 600; }
.lobby__pack .i { color: var(--amber); }
.lobby__pack b { color: var(--cream); }
.lobby__players { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lobby__p { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 243, 230, 0.05); }
.lobby__p > b { font-family: var(--display); font-size: 19px; }
.lobby__av { width: 48px; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #ffcf9a, #ff8a3d); flex: none; }
.lobby__av .ch { width: 90%; }
.lobby__ready { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 800; color: var(--dim); }
.lobby__ready.is-ready { color: var(--amber); }
.lobby__ready .i { width: 18px; height: 18px; }
.lobby__ready i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.motion .lobby__ready i { animation: typing 1.2s infinite; }
.motion .lobby__ready i:nth-child(2) { animation-delay: 0.15s; }
.motion .lobby__ready i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
.motion .lobby { --enter: 0; }
.motion .lobby__p { --k: clamp(0, var(--enter) * 5 - var(--i) - 0.4, 1); opacity: var(--k); transform: translateX(calc((1 - var(--k)) * 40px)) scale(calc(0.9 + var(--k) * 0.1)); }

/* tiles that slide sideways */
.tiles__stage { display: flex; align-items: center; padding: 8vh 0; }
.tiles__track { display: grid; gap: 16px; padding: 0 var(--pad); width: 100%; }
@media (min-width: 900px) { html:not(.motion) .tiles__track { grid-template-columns: repeat(3, 1fr); max-width: calc(var(--maxw) + 2 * var(--pad)); margin-inline: auto; } }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 300px; padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg); background: var(--ink-3); border: 1px solid var(--line-2);
}
.tile__art { position: absolute; top: 22px; right: 22px; left: 22px; height: 52%; pointer-events: none; }
.tile__art--chips { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 10px; }
.tchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: var(--orange); color: var(--ink); font-weight: 800; font-size: clamp(13px, 1.3vw, 16px);
  transform: rotate(calc((var(--i) - 2.5) * 3deg));
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.8);
}
.tchip:nth-child(3n + 2) { background: var(--amber); }
.tchip:nth-child(3n) { background: var(--cream); }
.tchip .i { width: 15px; height: 15px; }
.tile__art--blocks { display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 6px; padding-right: 10px; }
.tile__art--blocks i { display: block; height: clamp(22px, 3.2vh, 34px); width: calc(clamp(90px, 12vw, 170px) - var(--i) * 14px); border-radius: 8px; background: var(--amber); box-shadow: inset 0 -4px 0 rgba(12, 8, 6, 0.25), 0 0 0 2px var(--ink); }
.tile__art--blocks i:nth-child(even) { transform: translateX(-14px); }
.tile__art--blocks i:nth-child(2n) { background: var(--orange); }
.tile__art--blocks i:nth-child(3) { background: var(--cream); }
.tile__art--coin { display: grid; justify-items: end; align-items: start; }
.tile__art--coin svg { width: clamp(110px, 14vw, 170px); transform: rotate(-10deg); }
.motion .tchip { translate: 0 calc((1 - var(--p, 0)) * (var(--i) - 2) * 14px); }
.motion .tile__art--blocks i { translate: 0 calc(clamp(0, 1 - var(--p, 0) * 3 + var(--i) * 0.28, 1) * -60px); opacity: clamp(0, var(--p, 0) * 3.4 - var(--i) * 0.3, 1); }
.motion .tile__art--coin svg { transform: rotate(calc(-10deg + var(--p, 0) * 30deg)); }
.motion .tile__slash { stroke-dasharray: 120; stroke-dashoffset: calc(120 - clamp(0, (var(--p, 0) - 0.55) * 4, 1) * 120); }
.tile__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4.6vw, 60px); line-height: 0.95; letter-spacing: -0.03em; max-width: 12ch; }
.tile__text { margin: 0; color: var(--muted); font-size: clamp(17px, 1.8vw, 21px); max-width: 30ch; }
.tile--free .tile__title { color: var(--orange); }
.motion .tiles__stage { padding: calc(var(--hdr-h) + 8px) 0 24px; }
.motion .tiles__track { display: flex; width: max-content; will-change: transform; }
.motion .tile { width: min(84vw, 620px); min-height: min(64svh, 520px); flex: none; }

/* status */
.status { padding: 12vh 0; }
.status__panel {
  padding: clamp(28px, 5vw, 64px); border-radius: var(--r-lg);
  background: var(--ink-2); border: 1px solid var(--line-2);
}
.status__chip { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border-radius: 999px; background: rgba(255, 181, 71, 0.12); color: var(--amber); font-weight: 800; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255, 181, 71, 0.7); }
.motion .pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255, 181, 71, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); } }
.status__text { max-width: 28ch; }
.status__bar { height: 14px; border-radius: 7px; overflow: hidden; background: var(--ink-4); margin-top: 18px; }
.status__bar i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(-45deg, var(--orange) 0 14px, var(--ink) 14px 28px); background-size: 40px 40px; opacity: 0.9; }
.motion .status__bar i { animation: stripes 1.4s linear infinite; }
@keyframes stripes { to { background-position: 40px 0; } }

/* SAG */
.sag { padding: 18vh 0 12vh; position: relative; }
.sag::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 40% at 50% 20%, rgba(226, 65, 15, 0.18), transparent 70%), linear-gradient(transparent, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0.55) 70%, transparent); }
.sag__head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 4vh; }
.sag__title { color: #1f120b; text-shadow: 0 0 1px var(--orange), 0 0 2px var(--orange), 0 0 46px rgba(255, 107, 26, 0.5); }
.locked { list-style: none; margin: 8vh 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 860px) { .locked { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.lcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  aspect-ratio: 3 / 4; padding: 16px; border-radius: 22px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 107, 26, 0.07) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, var(--ink-4), var(--ink-2));
  border: 1.5px solid rgba(255, 107, 26, 0.35);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.lcard__art { position: absolute; inset: 14% 18% auto; aspect-ratio: 1; display: grid; place-items: center; color: var(--orange); filter: blur(5px); opacity: 0.55; }
.lcard__art .i { width: 70%; height: 70%; stroke-width: 1.5; }
.lcard__lock { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line-2); font-size: 12px; font-weight: 800; color: var(--amber); }
.lcard__lock .i { width: 14px; height: 14px; }
.lcard__hint { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(18px, 2vw, 24px); line-height: 1.1; letter-spacing: -0.015em; }
.lcard:hover { animation: jiggle 0.45s; }
@keyframes jiggle { 20% { rotate: -3deg; } 40% { rotate: 3deg; } 60% { rotate: -2deg; } 80% { rotate: 1deg; } }
.motion .locked { --enter: 0; }
.motion .lcard { --k: clamp(0, var(--enter) * 3 - var(--i) * 0.4, 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 120px)) rotate(calc((1 - var(--k)) * (var(--i) - 1.5) * 14deg)); }

/* ===================================================================== ABOUT */

.ahero__stage { display: grid; place-items: center; align-content: center; gap: 28px; min-height: 100svh; padding: calc(var(--hdr-h) + 16px) var(--pad) 40px; text-align: center; }
.ahero__logo .logo-mark { width: clamp(84px, 14vw, 132px); height: auto; }
.ahero__title { margin: 0; display: flex; flex-direction: column; align-items: center; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: clamp(54px, 14vw, 180px); line-height: 0.92; letter-spacing: -0.05em; }
.ahero__l2 { display: flex; }
.ahero__beau { color: var(--orange); display: inline-block; white-space: nowrap; }
.ahero__tiful { display: inline-block; }
.motion .ahero { --a: clamp(0, (var(--p, 0) - 0.04) * 4, 1); --b: clamp(0, (var(--p, 0) - 0.34) * 3.2, 1); }
.motion .ahero__tiful { transform: translateY(calc((1 - var(--a)) * -90%)); opacity: var(--a); }
.motion .ahero__beau { max-width: calc(var(--b) * 3em); transform: translateX(calc((1 - var(--b)) * -70vw)) rotate(calc((1 - var(--b)) * -30deg)); }
.motion .ahero__logo { transform: rotate(calc(var(--p, 0) * 360deg)) scale(calc(1 + var(--b) * 0.15)); }

.chapters { padding: 4vh 0 6vh; }
.chapter { display: grid; gap: 24px; padding: 10vh 0; align-items: center; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; }
@media (min-width: 900px) { .chapter { grid-template-columns: 4fr 7fr; gap: clamp(40px, 6vw, 96px); } .chapter__cta { grid-column: 2; } }
.chapter__text { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(27px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -0.022em; }
.chapter__vis { display: grid; place-items: center; min-height: 180px; }
.logo-mark--xl { width: clamp(130px, 26vw, 240px); height: auto; }
.motion .chapter__vis--logo .logo-mark--xl { transform: rotate(calc(var(--through, 0.5) * 90deg - 45deg)) scale(calc(0.8 + var(--enter, 1) * 0.2)); }
.since { display: grid; gap: 12px; width: min(100%, 360px); }
.since__year { font-family: var(--display); font-weight: 800; font-size: clamp(84px, 16vw, 160px); line-height: 0.9; letter-spacing: -0.05em; color: var(--orange); font-variant-numeric: tabular-nums; }
.since__track { height: 10px; border-radius: 5px; background: var(--ink-4); overflow: hidden; }
.since__track i { display: block; height: 100%; width: calc(var(--since, 1) * 100%); border-radius: 5px; background: linear-gradient(90deg, var(--brown-2), var(--orange)); }
.since__ends { display: flex; justify-content: space-between; font-family: var(--mono); color: var(--dim); font-size: 14px; }
.duo { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.duo--center { margin-bottom: 6vh; }
.motion .chapter__vis--marks .mark--human { transform: translateX(calc((1 - var(--enter, 1)) * -60px)) rotate(calc((1 - var(--enter, 1)) * -12deg)); }
.motion .chapter__vis--marks .mark--ai { transform: translateX(calc((1 - var(--enter, 1)) * 60px)) rotate(calc((1 - var(--enter, 1)) * 12deg)); }
.tool { position: relative; width: 180px; height: 180px; }
.tool__hand { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: var(--ink); }
.tool__hand .i { width: 52%; height: 52%; stroke-width: 1.6; }
.tool__spark { position: absolute; right: -6px; top: -6px; width: 64px; height: 64px; border-radius: 6px; display: grid; place-items: center; background: var(--ink); border: 2px solid var(--cream); color: var(--amber); }
.tool__spark .i { width: 60%; height: 60%; }
.motion .tool__spark { transform: rotate(calc(var(--through, 0.5) * 180deg)) translate(calc((1 - var(--enter, 1)) * 40px), calc((1 - var(--enter, 1)) * -40px)); }

.takepart { padding: 10vh 0 6vh; }
.tp { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 860px) { .tp { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 18px; } }
.tp__card {
  height: 100%; position: relative;
  display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: var(--r-lg);
  background: var(--ink-3); border: 1px solid var(--line-2); text-decoration: none;
  transition: transform 0.5s var(--out), border-color 0.3s;
}
a.tp__card:hover { transform: translateY(-6px) rotate(-1deg); border-color: var(--orange); }
.tp__icon { width: 60px; height: 60px; border-radius: 20px; display: grid; place-items: center; background: var(--orange); color: var(--ink); }
.tp__icon .i { width: 30px; height: 30px; }
.tp__text { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; letter-spacing: -0.015em; }
.tp__go { position: absolute; top: 26px; right: 26px; }
.tp__go .i { width: 26px; height: 26px; transition: transform 0.4s var(--spring); }
a.tp__card:hover .tp__go .i { transform: translateX(5px); }

/* ================================================================== POSITION */

.phero { padding: calc(var(--hdr-h) + 12vh) 0 6vh; }
.phero__title { margin: 22px 0 0; font-family: var(--display); font-weight: 800; font-stretch: 84%; font-size: clamp(52px, 11vw, 150px); line-height: 0.9; letter-spacing: -0.045em; max-width: 12ch; }
.pstory { padding: 6vh 0 10vh; }
.story-p { margin: 0 0 1.4em; max-width: 30ch; font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3.4vw, 40px); line-height: 1.18; letter-spacing: -0.018em; }
.story-p--big { font-weight: 700; font-size: clamp(30px, 5vw, 62px); line-height: 1.06; max-width: 22ch; }
.timebars { display: grid; gap: 14px; margin-bottom: 8vh; max-width: 760px; }
.timebar { display: grid; gap: 8px; }
.timebar__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--muted); }
.timebar__label .i { width: 20px; height: 20px; color: var(--orange); }
.timebar--ai .timebar__label .i { color: var(--amber); }
.timebar__track { height: 16px; border-radius: 8px; background: var(--ink-4); overflow: hidden; }
.timebar__track i { display: block; height: 100%; border-radius: 8px; }
.timebar--human .timebar__track i { width: 100%; background: linear-gradient(90deg, var(--brown-2), var(--orange)); }
.timebar--ai .timebar__track i { width: 1.2%; min-width: 8px; background: var(--cream); }
.motion .timebars { --enter: 0; }
.motion .timebar--human .timebar__track i { width: calc(clamp(0, var(--enter) * 1.25 - 0.1, 1) * 100%); }
.motion .timebar--ai .timebar__track i { opacity: clamp(0, var(--enter) * 4 - 3, 1); }

.diagram__stage { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 10vh 0; }
.diagram__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.diagram__title { margin: 0; font-size: clamp(30px, 5vw, 60px); max-width: 18ch; }
.who-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; font-weight: 700; font-size: 14px; color: var(--muted); }
.who-legend__k { color: var(--dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 800; }
.who-legend__p, .who-legend__a { display: inline-flex; align-items: center; gap: 6px; }
.who-legend__p .i { color: var(--orange); width: 18px; height: 18px; }
.who-legend__a .i { color: var(--amber); width: 18px; height: 18px; }
.diagram__viewport { padding: 0 var(--pad); }
.diagram__track { list-style: none; margin: 0 auto; padding: 0; position: relative; display: grid; gap: 14px; max-width: var(--maxw); }
@media (min-width: 700px) { html:not(.motion) .diagram__track { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { html:not(.motion) .diagram__track { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.diagram__line { display: none; }
.dstep {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 58px 18px 18px; border-radius: var(--r-md);
  background: var(--ink-2); border: 1px solid var(--line-2);
  transition: border-color 0.4s, background-color 0.4s, opacity 0.4s, transform 0.5s var(--out);
}
.dstep__dot { position: absolute; top: 16px; left: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-weight: 800; font-size: 15px; transition: background-color 0.4s, color 0.4s, transform 0.5s var(--spring); }
.dstep__name { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.05; letter-spacing: -0.02em; }
.dstep__cap { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.who { margin-top: auto; padding-top: 12px; display: grid; gap: 8px; }
.who__bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--ink-4); }
.who__p { width: calc((1 - var(--ai)) * 100%); background: var(--orange); }
.who__a { width: calc(var(--ai) * 100%); background: repeating-linear-gradient(-45deg, var(--cream) 0 3px, #cdbfae 3px 6px); }
.who__icons { display: flex; justify-content: space-between; }
.who__icons .i { width: calc(14px + (1 - var(--ai)) * 14px); height: auto; color: var(--orange); }
.who__ai .i { width: calc(14px + var(--ai) * 14px); color: var(--amber); }
.dstep__pin { position: absolute; top: 14px; right: 14px; padding: 6px 10px; border-radius: 3px; background: var(--ink); border: 1.5px solid var(--cream); font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.diagram__closing { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); line-height: 1.2; max-width: 36ch; }

.motion .diagram__stage { padding: calc(var(--hdr-h) + 4px) 0 20px; gap: clamp(12px, 2.4vh, 24px); }
.motion .diagram__viewport { overflow: visible; }
.motion .diagram__track { display: flex; width: max-content; gap: 16px; padding-top: 0; will-change: transform; max-width: none; margin: 0; }
.motion .dstep { width: min(76vw, 300px); flex: none; opacity: 0.38; }
.motion .dstep.is-on { opacity: 1; border-color: rgba(255, 107, 26, 0.7); background: var(--ink-3); }
.motion .dstep.is-now { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(255, 107, 26, 0.6); }
.motion .dstep:not(.is-on) .dstep__dot { background: var(--ink-4); color: var(--muted); }
.motion .dstep.is-now .dstep__dot { transform: scale(1.18); }
.motion .dstep .who__p, .motion .dstep .who__a { transition: width 0.6s var(--out); }
.motion .dstep:not(.is-on) .who__p, .motion .dstep:not(.is-on) .who__a { width: 0; }
.motion .diagram__line { display: block; position: absolute; left: 34px; right: 34px; top: 31px; height: 3px; background: var(--ink-4); z-index: 0; border-radius: 2px; }
.motion .diagram__line i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--orange); border-radius: 2px; }
.motion .dstep { z-index: 1; }
@media (min-width: 1200px) {
  .motion .dstep { width: calc((min(100vw, var(--maxw) + 2 * var(--pad)) - 2 * var(--pad) - 5 * 16px) / 6); }
  .motion .diagram__track { margin-inline: auto; }
}
@media (max-height: 720px) { .motion .dstep__cap { font-size: 14px; } .motion .dstep { padding: 52px 14px 14px; } .motion .diagram__title { font-size: clamp(26px, 4vw, 44px); } }

.pcta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4vh; }

/* ================================================================= CATALOGUE */

.cat-hero { position: relative; padding: calc(var(--hdr-h) + 4vh) 0 4vh; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cat-hero__title { margin: 4px 0 0; font-size: clamp(68px, 15vw, 160px); }
.cat-hero__line { margin: 0 0 6px; max-width: 30ch; font-size: clamp(22px, 3.4vw, 38px); }
.cat-hero__deco { position: absolute; inset: 0; pointer-events: none; }
.cat-hero__spark { position: absolute; color: var(--amber); }
.cat-hero__spark--1 { width: 54px; height: 54px; right: 6%; top: 28%; }
.cat-hero__spark--2 { width: 26px; height: 26px; right: 22%; top: 18%; color: var(--orange); }
.cat-hero__spark--3 { width: 36px; height: 36px; right: 14%; top: 52%; color: var(--cream); opacity: 0.6; }
.motion .cat-hero__spark { animation: twinkle 3.6s ease-in-out infinite; }
.motion .cat-hero__spark--2 { animation-delay: -1.2s; }
.motion .cat-hero__spark--3 { animation-delay: -2.4s; }
@keyframes twinkle { 50% { transform: rotate(45deg) scale(0.7); opacity: 0.4; } }

.catalogue { padding-bottom: 10vh; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 20px; margin: 0 -2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: rgba(255, 243, 230, 0.04);
  font-weight: 800; font-size: 15px; cursor: pointer; white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--spring);
}
.chip:hover { border-color: var(--orange); }
.chip:active { transform: scale(0.95); }
.chip[aria-pressed='true'] { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chip__n { font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: rgba(255, 243, 230, 0.1); }
.chip[aria-pressed='true'] .chip__n { background: rgba(12, 8, 6, 0.12); }
.grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 680px) { .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; } }
@media (max-width: 679px) {
  .grid .gcard__body { padding: 10px 11px 12px; gap: 6px; }
  .grid .gcard__title { font-size: 19px; }
  .grid .gcard__line { font-size: 13px; -webkit-line-clamp: 3; }
  .grid .gcard__meta { flex-direction: column; gap: 2px; font-size: 12px; }
  .grid .mark { font-size: 11px; padding: 5px 9px 5px 7px; }
  .grid .mark--ai { font-size: 10px; }
  .grid .mark__i { width: 13px; height: 13px; }
  .grid .gcard__play { width: 34px; height: 34px; right: 8px; bottom: 8px; }
  .grid .gcard__play .i { width: 15px; height: 15px; }
}
.motion .grid .gcard-wrap { animation: card-in 0.8s var(--out) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(26px) scale(0.97); } }
.pitch { margin-top: 8vh; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: var(--ink-3); border: 1px dashed var(--line-2); }
.pitch__q { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.03em; }

/* game page */
.gpage { padding: calc(var(--hdr-h) + 20px) 0 6vh; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--muted); font-weight: 800; text-decoration: none; padding: 6px 0; }
.back:hover { color: var(--cream); }
.back .i { transition: transform 0.4s var(--spring); }
.back:hover .i { transform: translateX(-4px); }
.gpage__grid { display: grid; gap: 26px; }
@media (min-width: 940px) { .gpage__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; } }
.gpage__cover { margin: 0; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); box-shadow: 0 0 0 1px var(--line-2), 0 50px 90px -50px rgba(255, 107, 26, 0.65); }
.gpage__cover img { width: 100%; height: 100%; object-fit: cover; }
.motion .gpage__cover { animation: cover-in 1.1s var(--out) both; }
@keyframes cover-in { from { opacity: 0; transform: scale(0.94) rotate(-1.5deg); } }
.gpage__info { display: flex; flex-direction: column; align-items: flex-start; }
.gpage__title { margin: 14px 0 10px; font-family: var(--display); font-weight: 800; font-stretch: 82%; font-size: clamp(56px, 11vw, 116px); line-height: 0.9; letter-spacing: -0.03em; }
.gpage__line { margin: 0; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.5; color: var(--muted); max-width: 38ch; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 22px 0 26px; }
.facts__item dt { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.facts__item dt .i { width: 15px; height: 15px; color: var(--orange); }
.facts__item dd { margin: 4px 0 0; font-weight: 800; font-size: 17px; }
.gpage__actions { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gpage__discord { margin-top: 26px; }
.toast {
  position: absolute; left: 0; top: calc(100% + 12px);
  padding: 9px 14px; border-radius: 12px; background: var(--cream); color: var(--ink);
  font-weight: 800; font-size: 14px; pointer-events: none;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.3s, transform 0.4s var(--spring);
}
.toast.is-on { opacity: 1; transform: none; }
.how { margin-top: clamp(40px, 8vh, 80px); padding: clamp(24px, 4vw, 44px); border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line-2); }
.how__title { margin: 0 0 22px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; }
.how__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: how; }
@media (min-width: 900px) { .how__list { grid-template-columns: 1fr 1fr; gap: 20px 40px; } }
.how__list li { counter-increment: how; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; font-size: 18px; line-height: 1.45; }
.how__list li::before { content: counter(how); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font-family: var(--display); font-weight: 800; }
.more { padding: 4vh 0 8vh; }

/* play page when the game is not installed */
.is-bare main { min-height: 100svh; display: grid; place-items: center; padding: 32px var(--pad); }
.noapp { display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 560px; text-align: center; }
.noapp__brand .logo-mark { width: 56px; height: 56px; }
.noapp__cover { width: min(100%, 420px); height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); filter: grayscale(0.5) brightness(0.7); box-shadow: 0 0 0 1px var(--line-2); }
.noapp__title { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.noapp__text { margin: 0 0 6px; color: var(--muted); font-size: 18px; }

/* 404 */
.nf { min-height: 86svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: calc(var(--hdr-h) + 40px) 0 40px; }
.nf__art .plate { width: min(84vw, 440px); }
.nf__text { margin: 0; max-width: 14ch; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 7.4vw, 84px); line-height: 0.98; letter-spacing: -0.04em; }
.plate__crumbs path, .plate__fork, .plate__knife { transform-box: fill-box; transform-origin: center; }
.motion .plate__crumbs path { animation: crumb 2.4s ease-in-out infinite; }
.motion .plate__crumbs path:nth-child(2n) { animation-delay: -1.2s; }
.motion .plate__fork { animation: tap 1.6s ease-in-out infinite; }
@keyframes crumb { 50% { transform: translateY(-4px) rotate(20deg); } }
@keyframes tap { 50% { transform: translateY(-6px) rotate(-8deg); } }

/* legal */
.legal { padding: calc(var(--hdr-h) + 8vh) 0 10vh; max-width: 760px; }
.legal__title { margin: 0 0 6vh; font-family: var(--display); font-weight: 800; font-size: clamp(48px, 9vw, 96px); line-height: 0.95; letter-spacing: -0.04em; }
.legal section { padding: 24px 0; border-top: 1px solid var(--line); }
.legal h2 { margin: 0 0 10px; font-family: var(--display); font-size: 26px; letter-spacing: -0.02em; }
.legal p { margin: 0 0 10px; color: var(--muted); max-width: 60ch; }
.legal a { color: var(--orange-2); }

/* ------------------------------------------------------------------- footer */

.ftr { position: relative; margin-top: 6vh; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(12, 8, 6, 0.4), rgba(110, 55, 18, 0.28)); }
.marquee { overflow: hidden; padding: 30px 0 10px; }
.marquee__track { display: flex; align-items: center; width: max-content; will-change: transform; }
.marquee__item {
  padding: 0 0.28em;
  font-family: var(--display); font-weight: 800; font-stretch: 80%;
  font-size: clamp(52px, 11vw, 150px); line-height: 1.05; letter-spacing: -0.045em; white-space: nowrap;
  color: var(--cream); opacity: 0.14;
}
.marquee__item:nth-child(4n + 1) { color: var(--orange); opacity: 1; }
.marquee__dot { color: var(--orange); font-size: clamp(30px, 5vw, 60px); }
.marquee--games { padding: 8vh 0 0; }
.marquee--games .marquee__item { font-size: clamp(64px, 13vw, 190px); opacity: 0.09; }
.marquee--games .marquee__item:nth-child(4n + 1) { opacity: 0.85; }
.ftr__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px;
  width: min(100% - 2 * var(--pad), var(--maxw)); margin-inline: auto;
  padding: 26px 0 calc(34px + env(safe-area-inset-bottom));
}
.ftr__brand { border-radius: 14px; }
.ftr__brand .logo-mark { width: 46px; height: 46px; }
.ftr__phrase { margin: 0; font-family: var(--display); font-weight: 700; font-size: 18px; }
.ftr__nav { display: flex; gap: 22px; margin-left: auto; }
.ftr__nav a { font-weight: 700; color: var(--muted); text-decoration: none; padding: 6px 0; }
.ftr__nav a:hover { color: var(--cream); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 6px; }

/* ------------------------------------------------- motion-only entrances */

.motion [data-split] .c { display: inline-block; transform: translateY(0.5em) rotate(6deg); opacity: 0; transition: transform 1s var(--out), opacity 0.6s ease; transition-delay: calc(var(--ci) * 28ms); }
.motion [data-split].is-in .c { transform: none; opacity: 1; }
.motion [data-split='words'] .wd { transform: translateY(0.4em); opacity: 0; transition: transform 1s var(--out), opacity 0.7s; transition-delay: calc(var(--wi) * 60ms); }
.motion [data-split='words'].is-in .wd { transform: none; opacity: 1; }
.motion [data-light] .w { opacity: clamp(0.16, (var(--lp, 0) * (var(--n) + 5) - var(--wi)) / 3, 1); }
.motion [data-light] em .w { text-shadow: 0 0 calc(clamp(0, (var(--lp, 0) * (var(--n) + 5) - var(--wi)) / 3, 1) * 28px) rgba(255, 138, 61, 0.45); }
.motion [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.9s ease, transform 1.1s var(--out); transition-delay: calc(var(--i, 0) * 90ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion .hdr { animation: hdr-in 1s var(--out) both 0.1s; }
@keyframes hdr-in { from { transform: translateY(-100%); } }

/* magnetic hover */
[data-magnet] { translate: var(--mx, 0) var(--my, 0); }

/* page-to-page transition (where supported) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 0.35s var(--out) both; }
  ::view-transition-new(root) { animation: vt-in 0.6s var(--out) both; }
}
@keyframes vt-out { to { opacity: 0; transform: scale(0.985); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(24px); } }

/* reduced motion: a plain page, everything still there */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
