/* ==========================================================================
   Made by Faber — site
   ========================================================================== */

:root {
  --bg: #090D20;
  --bg-2: #0D1330;
  --surface: rgba(24, 33, 78, .5);
  --surface-2: rgba(34, 45, 102, .55);
  --line: rgba(150, 170, 255, .13);
  --line-2: rgba(150, 170, 255, .26);
  --text: #F3F5FF;
  --muted: #A3ACD8;
  --dim: #6F79AE;

  --blue: #2B6BFF;
  --cyan: #2EC5FF;
  --sky: #7FDBFF;
  --orange: #FF8A1F;
  --yellow: #FFC53D;
  --lime: #A8F03C;

  --big: #ECB44D;
  --toxic: #9DFF23;
  --crystal: #63E1FF;
  --void: #A46BFF;

  --radius: 22px;
  --radius-lg: 32px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;

  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* decorative layers (rings, auras, marquee) may bleed past the edges; clip them
   here so mobile browsers never widen the layout viewport */
main { overflow-x: clip; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }

::selection { background: var(--cyan); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 45%, var(--yellow) 80%, var(--orange));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  box-shadow: 0 0 12px rgba(46, 197, 255, .6);
}

/* ---------- Background ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(43, 107, 255, .22), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(46, 197, 255, .10), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(255, 138, 31, .08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.backdrop-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(160, 180, 255, .16) 1px, transparent 1.2px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .5;
}
.blob { position: absolute; will-change: transform; }
.blob i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28%;
  background: linear-gradient(145deg, rgba(36, 50, 120, .55), rgba(22, 30, 76, .25));
  border: 1px solid rgba(120, 150, 255, .06);
  animation: drift 26s ease-in-out infinite alternate;
}
.b1 { width: 340px; height: 340px; top: -90px; left: -120px; }
.b1 i { transform: rotate(18deg); }
.b2 { width: 260px; height: 260px; top: 46vh; right: -110px; }
.b2 i { animation-duration: 32s; animation-delay: -8s; }
.b3 { width: 420px; height: 420px; bottom: -220px; right: 18vw; }
.b3 i { animation-duration: 38s; animation-delay: -14s; opacity: .7; }
.b4 { width: 180px; height: 180px; top: 18vh; left: 46vw; }
.b4 i { animation-duration: 22s; opacity: .45; }

@keyframes drift {
  0%   { transform: rotate(14deg) translate(0, 0); }
  50%  { transform: rotate(24deg) translate(18px, -26px); }
  100% { transform: rotate(8deg) translate(-14px, 20px); }
}

.spotlight {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(46, 197, 255, .085), transparent 60%);
  opacity: 0;
  transition: opacity .6s;
}
.has-pointer .spotlight { opacity: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .4s, border-color .4s, backdrop-filter .4s, transform .5s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(9, 13, 32, .66);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav-inner {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand img {
  width: 44px;
  height: auto;
  transition: transform .5s var(--ease-spring);
}
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.brand-word span { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-links a.active { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
  transform: translateX(-50%) scale(0);
  transition: transform .4s var(--ease-spring);
}
.nav-links a.active::after { transform: translateX(-50%) scale(1); }

.lang {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .03);
}
.lang button {
  position: relative;
  z-index: 1;
  width: 40px;
  padding: 5px 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  border-radius: 999px;
  transition: color .3s;
}
.lang button[aria-pressed="true"] { color: var(--bg); }
.lang-pill {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 40px;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sky), var(--cyan));
  transition: transform .45s var(--ease-spring);
}
.lang[data-active="en"] .lang-pill { transform: translateX(40px); }

/* ---------- Buttons ---------- */
.btn {
  --bx: 0px;
  --by: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transform: translate(var(--bx), var(--by));
  transition: transform .35s var(--ease-out), box-shadow .35s, background .35s, opacity .3s;
  isolation: isolate;
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary {
  color: #071028;
  background: linear-gradient(135deg, #FFD75E, var(--yellow) 40%, var(--orange));
  box-shadow: 0 10px 30px -8px rgba(255, 138, 31, .55), inset 0 1px 0 rgba(255, 255, 255, .5);
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(255, 138, 31, .7), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-primary svg { animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(3px); } }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(127, 219, 255, .5); }

/* ---------- Intro (hero load) ---------- */
.js .intro {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: intro 1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes intro { to { opacity: 1; transform: none; filter: blur(0); } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.hero-copy { order: 0; }
.hero-art { order: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgba(46, 197, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(46, 197, 255, .22);
  color: var(--sky);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(46, 197, 255, .6);
  animation: ping 2.2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(46, 197, 255, .55); }
  80%, 100% { box-shadow: 0 0 0 10px rgba(46, 197, 255, 0); }
}

.wordmark {
  margin: 22px 0 18px;
  font-weight: 900;
  line-height: .86;
  letter-spacing: -.035em;
}
.wm-line {
  display: flex;
  align-items: flex-start;
  gap: .22em;
  font-size: clamp(48px, 7.4vw, 104px);
}
/* gradients are vertical, so each split letter can carry its own copy */
.wm-by, .wm-by .ch {
  background-image: linear-gradient(180deg, #7FE3FF, var(--cyan) 55%, #1C9BFF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wm-faber, .wm-faber .ch {
  background-image: linear-gradient(180deg, #FFFFFF 55%, #C9D6FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark .is-split { background-image: none; }
.wm-spark {
  width: .42em;
  height: .42em;
  margin-left: -.12em;
  margin-top: -.05em;
  fill: none;
  stroke-width: 5.5;
  stroke-linecap: round;
  overflow: visible;
}
.wm-spark path:first-child { stroke: var(--yellow); }
.wm-spark path:last-child { stroke: var(--orange); }
.js .wm-spark path {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: draw .5s var(--ease-out) forwards;
  animation-delay: .85s;
}
.js .wm-spark path:last-child { animation-delay: .95s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.wm-faber {
  display: block;
  font-size: clamp(92px, 15vw, 208px);
  margin-top: .02em;
  margin-left: -.04em;
  filter: drop-shadow(0 12px 40px rgba(43, 107, 255, .35));
}

.ch { display: inline-block; }
.js .ch {
  opacity: 0;
  transform: translateY(.5em) rotate(6deg) scale(.9);
  animation: chIn .9s var(--ease-spring) forwards;
  animation-delay: calc(.15s + var(--i) * .05s);
}
@keyframes chIn { to { opacity: 1; transform: none; } }

.tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  color: var(--sky);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
}
.tags i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.lede {
  max-width: 30ch;
  margin-top: 22px;
  font-size: clamp(19px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--muted);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Hero art */
.hero-art {
  position: relative;
  width: min(100%, 560px);
  justify-self: center;
  aspect-ratio: 765 / 635;
  perspective: 900px;
}
.mascot {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  transform: translate3d(var(--tx, 0), var(--ty, 0), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .9s var(--ease-out);
  -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 88%, transparent 100%);
  animation: float 6s ease-in-out infinite;
}
.js .mascot {
  animation: portalIn 1.2s var(--ease-spring) .2s backwards, float 6s ease-in-out 1.4s infinite;
}
@keyframes portalIn {
  from { opacity: 0; scale: .6; filter: blur(14px) brightness(2); }
  to { opacity: 1; scale: 1; filter: none; }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}
.portal-glow {
  position: absolute;
  inset: 8% 10% 2%;
  z-index: 0;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgba(255, 186, 60, .55), rgba(255, 138, 31, .18) 45%, transparent 70%),
    radial-gradient(closest-side, rgba(43, 107, 255, .55), transparent 100%);
  filter: blur(30px);
  animation: glow 5s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { transform: scale(.94); opacity: .8; }
  50% { transform: scale(1.06); opacity: 1; }
}
.portal-rings {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 1;
  width: 70%;
  aspect-ratio: 1;
  translate: -50% -50%;
}
.portal-rings i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(127, 219, 255, .35);
  opacity: 0;
  animation: ring 6s linear infinite;
}
.portal-rings i:nth-child(2) { animation-delay: 2s; }
.portal-rings i:nth-child(3) { animation-delay: 4s; }
@keyframes ring {
  0% { transform: scale(.45); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: scale(1.7); opacity: 0; }
}

.spark {
  position: absolute;
  z-index: 3;
  width: 22px;
  height: 22px;
  fill: var(--yellow);
  filter: drop-shadow(0 0 8px currentColor);
  animation: twinkle 3.2s ease-in-out infinite;
}
.s1 { top: -3%; left: 47%; width: 18px; color: var(--yellow); }
.s2 { top: 30%; right: -2%; fill: var(--cyan); color: var(--cyan); width: 16px; animation-delay: -1s; }
.s3 { bottom: 12%; left: -3%; fill: var(--sky); color: var(--sky); width: 26px; animation-delay: -2s; }
.s4 { bottom: -2%; right: 18%; width: 14px; color: var(--orange); fill: var(--orange); animation-delay: -.5s; }
@keyframes twinkle {
  0%, 100% { transform: scale(.6) rotate(0deg); opacity: .5; }
  50% { transform: scale(1.15) rotate(45deg); opacity: 1; }
}

.handnote {
  position: absolute;
  z-index: 3;
  top: -15%;
  left: -5%;
  display: flex;
  flex-direction: column;
  font-family: var(--hand);
  font-size: clamp(22px, 2vw, 28px);
  line-height: .95;
  color: #7E8FE6;
  transform: rotate(-12deg);
  pointer-events: none;
}
.handnote span:nth-child(2) { padding-left: .5em; }
.handnote span:nth-child(3) { padding-left: 1em; }
.handnote span:nth-child(4) { padding-left: 1.4em; }
.handnote svg {
  width: 120px;
  height: 18px;
  margin: 4px 0 0 1.6em;
  fill: none;
  stroke: #7E8FE6;
  stroke-width: 2.5;
  stroke-linecap: round;
  overflow: visible;
}
.js .handnote span {
  opacity: 0;
  animation: handIn .6s var(--ease-out) forwards;
}
.js .handnote span:nth-child(1) { animation-delay: 1.3s; }
.js .handnote span:nth-child(2) { animation-delay: 1.45s; }
.js .handnote span:nth-child(3) { animation-delay: 1.6s; }
.js .handnote span:nth-child(4) { animation-delay: 1.75s; }
@keyframes handIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
.js .handnote path {
  stroke-dasharray: 170;
  stroke-dashoffset: 170;
  animation: drawLong .9s var(--ease-out) 2s forwards;
}
@keyframes drawLong { to { stroke-dashoffset: 0; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px var(--line-2);
  opacity: .8;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--sky);
  animation: wheel 1.8s var(--ease-out) infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative;
  z-index: 2;
  padding: 18px 0;
  margin: 0 -2vw;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 50%, var(--blue));
  transform: rotate(-2deg);
  box-shadow: 0 20px 60px -20px rgba(43, 107, 255, .6);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  will-change: transform;
}
.marquee-track span {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
  color: #06102E;
  white-space: nowrap;
}
.marquee-track .mq-game { color: #fff; }
.marquee-track svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: var(--yellow);
  filter: drop-shadow(0 2px 0 rgba(6, 16, 46, .25));
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: clamp(96px, 13vw, 168px) 0;
}
.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sky);
}
.h2 {
  margin-top: 18px;
  font-size: clamp(36px, 5.2vw, 68px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h2 em, .h3 em {
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h3 {
  font-size: clamp(30px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.body-lg {
  margin-top: 22px;
  max-width: 60ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--muted);
}

/* Split words */
[data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
[data-split] .w > span {
  display: inline-block;
}
.js [data-split] .w > span {
  transform: translateY(105%) rotate(4deg);
  transition: transform 1s var(--ease-out);
  transition-delay: calc(var(--wi) * 45ms);
}
.js [data-split].in .w > span { transform: none; }
/* em gradient must apply per word */
[data-split] em .w > span {
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal */
/* uses `translate` so hover/tilt effects can keep using `transform` */
.js .reveal {
  opacity: 0;
  translate: 0 28px;
  filter: blur(6px);
  transition:
    opacity .9s var(--ease-out) var(--d, 0s),
    translate .9s var(--ease-out) var(--d, 0s),
    filter .9s var(--ease-out) var(--d, 0s),
    transform .5s var(--ease-out),
    box-shadow .4s;
}
.js .reveal.in { opacity: 1; translate: none; filter: none; }

/* Cards (shared) */
.card {
  --x: 50%;
  --y: 50%;
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
  isolation: isolate;
}
[data-spotlight]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--x) var(--y), color-mix(in srgb, var(--tone, var(--cyan)) 16%, transparent), transparent 55%);
  opacity: 0;
  transition: opacity .4s;
}
[data-spotlight]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(300px circle at var(--x) var(--y), color-mix(in srgb, var(--tone, var(--cyan)) 80%, transparent), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
[data-spotlight]:hover::before,
[data-spotlight]:hover::after { opacity: 1; }

/* ---------- Studio ---------- */
.studio-head { max-width: 820px; }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(48px, 7vw, 80px);
}
.pillar {
  padding: 28px 24px 30px;
  transition: transform .5s var(--ease-out);
}
.pillar:hover { transform: translateY(-6px); }
.pillar-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 30%, transparent);
  transition: transform .6s var(--ease-spring);
}
.pillar:hover .pillar-icon { transform: rotate(-8deg) scale(1.08); }
.pillar-icon svg { width: 32px; height: 32px; }
.pillar-icon .f1 { fill: var(--tone); }
.pillar-icon .f2 { fill: none; stroke: var(--tone); stroke-width: 2.2; stroke-linecap: round; }
.pillar-icon .f3 { fill: var(--bg); }
.pillar h3 {
  margin-top: 22px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.pillar p {
  margin-top: 8px;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Game ---------- */
.game { overflow: clip; }
.game-aura {
  position: absolute;
  top: 6%;
  left: 50%;
  z-index: -1;
  width: 1100px;
  height: 900px;
  margin-left: -550px;
  background:
    radial-gradient(closest-side at 30% 40%, rgba(157, 255, 35, .10), transparent),
    radial-gradient(closest-side at 72% 46%, rgba(164, 107, 255, .14), transparent),
    radial-gradient(closest-side at 50% 70%, rgba(99, 225, 255, .08), transparent);
  filter: blur(20px);
  pointer-events: none;
}
.game-intro {
  display: grid;
  grid-template-columns: 1fr minmax(0, 520px);
  align-items: start;
  gap: clamp(36px, 6vw, 80px);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(168, 240, 60, .08);
  box-shadow: inset 0 0 0 1px rgba(168, 240, 60, .28);
  color: var(--lime);
  font-size: 14px;
  font-weight: 700;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pingLime 2s ease-out infinite;
}
@keyframes pingLime {
  0% { box-shadow: 0 0 0 0 rgba(168, 240, 60, .6); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(168, 240, 60, 0); }
}

.game-logo {
  margin-top: 20px;
  line-height: .85;
  text-transform: uppercase;
}
.gl-top {
  display: block;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: .32em;
  color: var(--text);
  margin-left: .1em;
}
.gl-main {
  position: relative;
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(64px, 9vw, 124px);
  font-weight: 900;
  letter-spacing: -.03em;
  background: linear-gradient(180deg, #E8FF8A 0%, var(--toxic) 45%, #3FCB3A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(157, 255, 35, .35)) drop-shadow(0 6px 0 #1B5E1A);
}
.drip {
  position: absolute;
  top: 70%;
  width: .09em;
  height: .24em;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(180deg, #3FCB3A, #7BEA2A);
  transform-origin: top;
  animation: drip 3.6s ease-in infinite;
}
.drip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: .07em;
  height: .07em;
  margin-left: -.035em;
  border-radius: 50%;
  background: var(--toxic);
  opacity: 0;
  animation: drop 3.6s ease-in infinite;
  animation-delay: inherit;
}
/* positioned under letter stems: M, t, n */
.d1 { left: 16.4%; }
.d2 { left: 42.4%; height: .18em; animation-delay: -1.2s; }
.d3 { left: 69.4%; height: .21em; animation-delay: -2.3s; }
@keyframes drip {
  0%, 100% { transform: scaleY(.5); }
  60% { transform: scaleY(1.15); }
  70% { transform: scaleY(.7); }
}
@keyframes drop {
  0%, 60% { opacity: 0; transform: translateY(0); }
  62% { opacity: 1; }
  95% { opacity: 0; transform: translateY(.9em); }
  100% { opacity: 0; }
}
.game-tagline {
  margin-top: 26px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: start;
  gap: 12px 36px;
  margin-top: 40px;
}
.stats li { display: flex; flex-direction: column; }
.stats strong {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #A9C4FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stats span {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Lab demo ---------- */
.lab {
  --stage: var(--lime);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 28, 66, .9), rgba(14, 20, 50, .9));
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, .6);
}
.lab[data-m="big"] { --stage: var(--big); }
.lab[data-m="toxic"] { --stage: var(--toxic); }
.lab[data-m="crystal"] { --stage: var(--crystal); }
.lab[data-m="void"] { --stage: var(--void); }

.lab-stage {
  position: relative;
  height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.lab-stage-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(240px 120px at 50% 88%, color-mix(in srgb, var(--stage) 30%, transparent), transparent 70%),
    radial-gradient(360px 260px at 50% 45%, color-mix(in srgb, var(--stage) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #0F173A, #131D48);
  transition: background .8s;
}
.lab-stage-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 260px;
  height: 46px;
  margin-left: -130px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--stage) 40%, transparent), transparent);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--stage) 30%, transparent);
  transition: background .8s, box-shadow .8s;
}
.lab-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--stage) 18%, #0A1030);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--stage) 55%, transparent), 0 0 30px -6px var(--stage);
  line-height: 1.1;
  opacity: 0;
  transform: translateY(-10px) scale(.8);
  transition: opacity .4s, transform .6s var(--ease-spring);
}
.lab-badge span { font-size: 20px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; color: var(--stage); }
.lab-badge small { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lab[data-m] .lab-badge { opacity: 1; transform: none; }

.lab-boost {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: rgba(255, 197, 61, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .3);
  color: var(--yellow);
  font-size: 12.5px;
  font-weight: 700;
}
.lab-boost svg { width: 14px; height: 14px; fill: var(--yellow); }

.mutant {
  position: relative;
  z-index: 2;
  width: 270px;
  height: 270px;
  overflow: visible;
  margin-top: 10px;
  /* palette (normal frog) */
  --body: #4FAE68;
  --body-hi: #9BE68A;
  --belly: #DDF7B9;
  --spot: #AAE74F;
  --foot: #3E8E55;
  --white: #FFFFFF;
  --pupil: #14261C;
  --mouth: #173322;
  --cheek: #FF8FB1;
  --glow: transparent;
}
.mutant * { transition: fill .7s, stroke .7s, opacity .5s; }
.mutant .st-hi { stop-color: var(--body-hi); transition: stop-color .7s; }
.mutant .st-body { stop-color: var(--body); transition: stop-color .7s; }
.m-shadow { fill: rgba(0, 0, 0, .35); transform-box: fill-box; transform-origin: center; transition: transform .8s var(--ease-spring); }
.m-root {
  transform-box: view-box;
  transform-origin: 130px 232px;
  transform: scale(var(--grow, .86));
  transition: transform .8s var(--ease-spring);
  filter: drop-shadow(0 0 0 var(--glow));
}
.m-bob {
  transform-box: view-box;
  transform-origin: 130px 232px;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50% { transform: translateY(-5px) scale(.985, 1.02); }
}
.m-body { fill: url(#mBody); }
.m-bulb { fill: var(--body); }
.m-foot { fill: var(--foot); }
.m-spots { fill: var(--spot); }
.m-belly { fill: var(--belly); opacity: .9; }
.m-white { fill: var(--white); }
.m-pupil { fill: var(--pupil); transition: transform .25s ease-out, fill .7s; }
.m-shine { fill: #fff; }
.m-cheek { fill: var(--cheek); opacity: .65; }
.m-mouth { fill: none; stroke: var(--mouth); stroke-width: 5; stroke-linecap: round; }
.m-mouth-open {
  fill: var(--mouth);
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(0);
}
.m-eye-in {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 4.6s infinite;
}
.m-eye:nth-of-type(2) .m-eye-in { animation-delay: .04s; }
@keyframes blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(.08); }
}

.ov { opacity: 0; }
.m-shards { fill: url(#mCrystal); stroke: rgba(255, 255, 255, .9); stroke-width: 1.5; stroke-linejoin: round; }
.m-shards polygon { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .7s var(--ease-spring); }
.m-glints { fill: #fff; }
.m-glints path { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.m-glints path:nth-child(2) { animation-delay: -.8s; }
.m-glints path:nth-child(3) { animation-delay: -1.6s; }
.m-drips { fill: #B6FF4D; }
.m-drips path { transform-box: fill-box; transform-origin: top; animation: drip 2.8s ease-in infinite; }
.m-drips path:nth-child(2) { animation-delay: -.9s; }
.m-drips path:nth-child(3) { animation-delay: -1.8s; }
.m-bubbles { fill: none; stroke: #C6FF5E; stroke-width: 2; }
.m-bubbles circle { animation: bubble 3s ease-in infinite; transform-box: fill-box; transform-origin: center; }
.m-bubbles circle:nth-child(2) { animation-delay: -1s; }
.m-bubbles circle:nth-child(3) { animation-delay: -2s; }
.m-bubbles circle:nth-child(4) { animation-delay: -.5s; }
@keyframes bubble {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-70px) scale(1.2); opacity: 0; }
}
.m-stars { fill: #fff; }
.m-stars circle { animation: twinkleDot 2.2s ease-in-out infinite; }
.m-stars circle:nth-child(odd) { animation-delay: -1.1s; }
@keyframes twinkleDot { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.m-ring-back, .m-ring-front {
  fill: none;
  stroke: url(#mRing);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 2 14;
  animation: orbit 1.8s linear infinite;
}
.m-ring-back { stroke-width: 3.5; }
@keyframes orbit { to { stroke-dashoffset: -32; } }
.m-big-fx { fill: none; stroke: #FFD873; stroke-width: 4; stroke-linecap: round; }
.m-big-fx path { animation: pulseFx 1.2s ease-in-out infinite; }
@keyframes pulseFx { 0%, 100% { opacity: .4; } 50% { opacity: 1; } }

/* mutation palettes */
.lab[data-m="big"] .mutant {
  --body: #E39A2E; --body-hi: #FFE08A; --belly: #FFF2C9; --spot: #FF7A1A; --foot: #C27D1C; --mouth: #4A2A07; --glow: rgba(236, 180, 77, .55);
}
.lab[data-m="big"] .m-root { transform: scale(1.06); }
.lab[data-m="big"] .m-shadow { transform: scale(1.25); }
.lab[data-m="toxic"] .mutant {
  --body: #63D11B; --body-hi: #D8FF6A; --belly: #F0FFB8; --spot: #2D7A10; --foot: #3E9B15; --mouth: #173307; --cheek: #D6FF4A; --glow: rgba(157, 255, 35, .7);
}
.lab[data-m="crystal"] .mutant {
  --body: #3DB8E8; --body-hi: #DDF9FF; --belly: #F1FCFF; --spot: #FFFFFF; --foot: #2B93C4; --mouth: #0D3346; --cheek: #B5F0FF; --glow: rgba(99, 225, 255, .6);
}
.lab[data-m="void"] .mutant {
  --body: #2A1660; --body-hi: #6E43D0; --belly: #3A2385; --spot: #C79BFF; --foot: #1D0F45; --white: #D9C3FF; --pupil: #12062E; --mouth: #E4D2FF; --cheek: #8C5CFF; --glow: rgba(164, 107, 255, .75);
}
.lab[data-m] .m-root { filter: drop-shadow(0 0 18px var(--glow)); }
.lab[data-m="big"] .ov-big,
.lab[data-m="toxic"] .ov-toxic,
.lab[data-m="crystal"] .ov-crystal,
.lab[data-m="void"] .ov-void { opacity: 1; }
.lab[data-m="crystal"] .m-shards polygon { transform: scaleY(1); }
.lab[data-m="crystal"] .m-shards polygon:nth-child(2) { transition-delay: .08s; }
.lab[data-m="crystal"] .m-shards polygon:nth-child(3) { transition-delay: .16s; }
.lab[data-m="crystal"] .m-shards polygon:nth-child(4) { transition-delay: .24s; }
.lab[data-m="crystal"] .m-shards polygon:nth-child(5) { transition-delay: .32s; }

/* lab states */
.lab.chomp .m-mouth-open { animation: chomp .45s var(--ease-out); }
.lab.chomp .m-mouth { animation: hide .45s steps(1); }
@keyframes chomp { 0% { transform: scaleY(0); } 35% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
@keyframes hide { 0% { opacity: 0; } 100% { opacity: 1; } }
.lab.chomp .m-bob { animation: gulp .45s var(--ease-out); }
@keyframes gulp {
  0% { transform: scale(1, 1); }
  40% { transform: scale(1.06, .94); }
  70% { transform: scale(.97, 1.04); }
  100% { transform: scale(1, 1); }
}
.lab.ready .m-root { filter: drop-shadow(0 0 14px rgba(168, 240, 60, .6)); }
.lab.charging .m-bob { animation: shake .09s linear infinite; }
.lab.charging .m-root { filter: drop-shadow(0 0 26px #fff) brightness(1.4); transition: filter .9s; }
@keyframes shake {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-3px, 1px) rotate(-1.5deg); }
  50% { transform: translate(2px, -2px) rotate(1deg); }
  75% { transform: translate(3px, 1px) rotate(1.5deg); }
  100% { transform: translate(-1px, 0) rotate(0); }
}
.lab.reveal-pop .m-root { animation: pop .8s var(--ease-spring); }
@keyframes pop { 0% { scale: .4; } 100% { scale: 1; } }

.lab-flash {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: radial-gradient(circle at 50% 55%, #fff, color-mix(in srgb, var(--stage) 60%, transparent) 40%, transparent 75%);
  opacity: 0;
  pointer-events: none;
}
.lab-flash.go { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: 0; } 12% { opacity: 1; } 100% { opacity: 0; } }

.lab-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fx-food {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
}
.fx-text {
  position: absolute;
  left: 50%;
  top: 38%;
  font-weight: 900;
  font-size: 20px;
  color: var(--lime);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35);
  white-space: nowrap;
  animation: floatUp 1.1s var(--ease-out) forwards;
}
@keyframes floatUp {
  0% { transform: translate(-50%, 10px) scale(.6); opacity: 0; }
  20% { transform: translate(-50%, 0) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -54px) scale(1); opacity: 0; }
}
.fx-p {
  position: absolute;
  left: 50%;
  top: 56%;
  width: var(--s, 8px);
  height: var(--s, 8px);
  border-radius: 50%;
  background: var(--c, var(--stage));
  box-shadow: 0 0 10px var(--c, var(--stage));
  animation: burst 1s var(--ease-out) forwards;
}
.fx-p.star { border-radius: 2px; transform: rotate(45deg); }
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0); opacity: 0; }
}

.lab-panel { padding: 24px 24px 22px; }
.lab-head h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.lab-head p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

.growth { margin-top: 20px; }
.growth-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.growth-val { font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: .04em; }
.growth-bar {
  position: relative;
  height: 14px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.growth-bar span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #3FCB3A, var(--lime) 60%, #E8FF8A);
  transform-origin: 0 50%;
  transform: scaleX(var(--g, 0));
  transition: transform .6s var(--ease-out);
}
.growth-bar span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .5) 45%, transparent 60%);
  background-size: 200% 100%;
  animation: sheen 2.2s linear infinite;
}
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.lab-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.lab-actions .btn { min-height: 50px; padding: 0 16px; }
.btn-lime {
  color: #0B2108;
  background: linear-gradient(135deg, #D8FF7A, var(--lime));
  box-shadow: 0 10px 26px -10px rgba(168, 240, 60, .7), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-lime:hover { box-shadow: 0 14px 32px -10px rgba(168, 240, 60, .9), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-lime:active, .btn-mutate:active { transform: scale(.96); }
.btn-mutate {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.btn-mutate:not(:disabled) {
  color: #fff;
  background: linear-gradient(120deg, var(--big), var(--toxic), var(--crystal), var(--void), var(--big));
  background-size: 300% 100%;
  box-shadow: 0 0 0 0 rgba(164, 107, 255, .6), 0 10px 30px -10px rgba(164, 107, 255, .8);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  animation: rainbow 3s linear infinite, pulseBtn 1.6s ease-out infinite;
}
.btn:disabled { cursor: not-allowed; opacity: .45; }
.btn-mutate.is-again { animation: none; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2); text-shadow: none; }
@keyframes rainbow { to { background-position: 300% 0; } }
@keyframes pulseBtn {
  0% { box-shadow: 0 0 0 0 rgba(164, 107, 255, .55), 0 10px 30px -10px rgba(164, 107, 255, .8); }
  100% { box-shadow: 0 0 0 14px rgba(164, 107, 255, 0), 0 10px 30px -10px rgba(164, 107, 255, .8); }
}

.odds { margin-top: 22px; }
.odds-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.odds-found { color: var(--dim); white-space: nowrap; }
.odds-found b { color: var(--text); }
.odds-bar {
  display: flex;
  gap: 3px;
  height: 10px;
  margin-top: 10px;
}
.odds-bar span {
  flex: var(--w) 1 0;
  min-width: 8px;
  border-radius: 999px;
  background: var(--c);
  transform-origin: 0 50%;
  transition: transform 1s var(--ease-out), box-shadow .4s, filter .4s;
  filter: saturate(.9) brightness(.85);
}
.js .odds-bar:not(.in) span { transform: scaleX(0); }
.odds-bar span:nth-child(2) { transition-delay: .1s; }
.odds-bar span:nth-child(3) { transition-delay: .2s; }
.odds-bar span:nth-child(4) { transition-delay: .3s; }
.odds-bar span.hit { filter: none; box-shadow: 0 0 14px var(--c); animation: hit .7s var(--ease-spring); }
@keyframes hit { 0% { transform: scaleY(1); } 40% { transform: scaleY(2); } 100% { transform: scaleY(1); } }
.odds-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.odds-legend li { display: inline-flex; align-items: center; gap: 7px; transition: color .3s; }
.odds-legend b { font-weight: 700; color: var(--dim); }
.odds-legend i {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--c);
  transition: background .3s, box-shadow .3s;
}
.odds-legend li.found { color: var(--text); }
.odds-legend li.found i { background: var(--c); box-shadow: 0 0 10px var(--c); }

.lab-log {
  min-height: 1.5em;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sky);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: clamp(72px, 10vw, 120px);
}
.feature {
  padding: 26px 24px 28px;
  transform: perspective(800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .5s var(--ease-out);
}
.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 32%, transparent);
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--tone);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin-top: 20px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.feature p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Habitats */
.habitats { margin-top: clamp(96px, 12vw, 150px); }
.habitats-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 40px;
}
.habitats-head p { max-width: 38ch; color: var(--muted); font-size: 17px; }
.habitat-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.habitat {
  --tone: var(--hc);
  padding: 24px;
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .4s;
}
.habitat:hover {
  transform: translateY(-6px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hc) 35%, transparent), 0 24px 50px -24px color-mix(in srgb, var(--hc) 60%, transparent);
}
.habitat::marker { content: none; }
.hab-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.hab-num {
  font-size: 56px;
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--hc) 55%, transparent);
}
.hab-icon {
  width: 46px;
  height: 46px;
  padding: 9px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--hc) 16%, transparent);
  fill: var(--hc);
  overflow: visible;
  transition: transform .6s var(--ease-spring);
}
.hab-icon .st { fill: none; stroke: var(--hc); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hab-icon .hc { fill: #FFE37A; }
.habitat:hover .hab-icon { transform: rotate(-10deg) scale(1.12); }
.habitat h4 {
  margin-top: 26px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1;
}
.hab-tier {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--hc);
}
.species {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.species li {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .3s, box-shadow .3s, transform .4s var(--ease-spring);
}
.habitat:hover .species li {
  background: color-mix(in srgb, var(--hc) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hc) 30%, transparent);
}
.species li:hover { transform: translateY(-2px); }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-card {
  --tone: var(--yellow);
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: 40px;
  text-align: center;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(43, 107, 255, .35), transparent 70%),
    linear-gradient(180deg, rgba(24, 33, 82, .9), rgba(14, 20, 52, .9));
  box-shadow: inset 0 0 0 1px var(--line-2);
  isolation: isolate;
}
.contact-card .body-lg { margin-inline: auto; }
.contact-card .h2 { margin-inline: auto; max-width: 16ch; }
.contact-rays {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: -1;
  width: 1200px;
  height: 1200px;
  margin: -600px 0 0 -600px;
  background: repeating-conic-gradient(from 0deg, rgba(127, 219, 255, .06) 0deg 6deg, transparent 6deg 18deg);
  mask-image: radial-gradient(closest-side, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 80%);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.contact-mascot {
  width: 150px;
  height: auto;
  margin: 0 auto 22px;
  animation: float 5s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent);
  mask-image: linear-gradient(180deg, #000 85%, transparent);
}
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.links:empty { display: none; }
.links .btn svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.links-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 197, 61, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 197, 61, .25);
  color: var(--yellow);
  font-size: 15px;
  font-weight: 600;
}
.links-soon[hidden] { display: none; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0 36px;
  border-top: 1px solid var(--line);
  background: rgba(6, 9, 24, .5);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-tag { color: var(--muted); font-size: 15px; }
.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--sky);
}
.footer-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--ease-spring);
}
.footer-top:hover svg { transform: translateY(-4px); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--dim);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pillars, .features { grid-template-columns: repeat(2, 1fr); }
  .game-intro { grid-template-columns: 1fr; }
  .lab { max-width: 560px; }
  .habitat-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { padding-bottom: 80px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .hero-art { order: 0; width: min(78vw, 400px); }
  .hero-copy { order: 1; display: flex; flex-direction: column; align-items: center; }
  .wm-line { justify-content: center; }
  .wordmark { margin-top: 18px; }
  .tags { justify-content: center; }
  .lede { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .handnote { top: -10%; left: -8%; font-size: 20px; }
  .handnote svg { width: 80px; }
  .scroll-cue { display: none; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .brand-word { display: none; }
  .brand img { width: 40px; }
  .nav-inner { gap: 8px; }
  .nav-links a { padding: 8px 10px; font-size: 14.5px; }
  .lang button { width: 34px; font-size: 12px; }
  .lang-pill { width: 34px; }
  .lang[data-active="en"] .lang-pill { transform: translateX(34px); }

  .hero-art { width: min(76vw, 320px); }
  .handnote { top: -9%; left: -12%; font-size: 17px; }
  .handnote svg { width: 64px; }
  .tags { font-size: 11px; letter-spacing: .2em; gap: 4px 10px; }
  .tags i { width: 4px; height: 4px; }
  .cta-row { flex-direction: column; width: 100%; }
  .cta-row .btn { width: 100%; }

  .pillars, .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, auto); gap: 22px 40px; }

  .lab-stage { height: 300px; }
  .mutant { width: 240px; height: 240px; }
  .lab-panel { padding: 20px 18px; }
  .odds-title, .growth-row { font-size: 12px; letter-spacing: .06em; }
  .lab-badge { top: 14px; left: 14px; }
  .lab-boost { top: 14px; right: 14px; }

  /* habitats: horizontal swipe */
  .habitat-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .habitat-list::-webkit-scrollbar { display: none; }
  .habitat { scroll-snap-align: start; }

  .contact-card { border-radius: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .nav-links a { padding: 8px 7px; font-size: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal, .js .intro, .js .ch { opacity: 1; transform: none; translate: none; filter: none; }
  .js [data-split] .w > span { transform: none; }
  .marquee-track { transform: none !important; }
}
