/* jungleskins coming soon
   Tokens mirror the jungle theme in frontend/app/globals.css and the rarity
   ladder in frontend/libs/utils/theme-colors.ts, so this page previews the
   product's palette rather than inventing a second one. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --base-0: #02150c;
  --base-1: #071c13;
  --base-2: #16281f;
  --base-3: #24342b;
  --base-4: #3c4942;
  --element-0: #7e8782;
  --element-1: #949d98;
  --element-2: #acb4b0;
  --white: #ffffff;
  --brand: #33e16c;
  --brand-dark: #00c958;
  --brand-light: #8af19e;
  --brand-hover: #5eec82;
  --currency: #f8bb48;
  --currency-light: #fecf7e;
  --error: #fa716a;
  --success: #7ff77b;
  --purple: #d55df0;
  --item-card: #14261d;

  --r-consumer: #aac5ba;
  --r-industrial: #48b7bd;
  --r-milspec: #339ef5;
  --r-restricted: #9d74f8;
  --r-classified: #f556c5;
  --r-covert: #ef4069;
  --r-gold: #e6b22d;

  --card: #0a1f15;
  --line: rgb(255 255 255 / 0.07);
  --line-strong: rgb(255 255 255 / 0.12);
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* page chrome radii; the previews keep the product's own */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1240px;
  --nav-h: 72px;
}

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

html {
  background: var(--base-0);
  color-scheme: dark;
  scrollbar-color: var(--base-4) var(--base-0);
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--base-0);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain over everything, very low */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img,
svg { display: block; }
svg { flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgb(51 225 108 / 0.35); color: #fff; }

/* the ring follows each control's own radius */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--base-1);
  font-weight: 700;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.money { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.money i { font-style: normal; color: var(--currency); margin-right: 1px; }

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

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }

/* the neon fill is the emphasis; the shadow only lifts it off the page */
.btn--brand {
  background: var(--brand);
  color: var(--base-1);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.45),
    inset 0 -3px 0 rgb(0 0 0 / 0.16),
    0 10px 24px -10px rgb(0 0 0 / 0.7);
}
.btn--brand:hover {
  background: var(--brand-hover);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.5),
    inset 0 -3px 0 rgb(0 0 0 / 0.16),
    0 14px 28px -10px rgb(0 0 0 / 0.75);
}
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; border-radius: var(--radius-sm); }
.btn--xs { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; pointer-events: none; }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--pad);
  transition: background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
/* solid, not frosted: a blur here would re-filter the animated scene and
   previews on every frame they pass under it */
.nav.is-solid {
  background: rgb(2 21 12 / 0.95);
  border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { width: 28px; height: 28px; color: var(--brand); }
.brand__word { font-size: 23px; font-weight: 800; letter-spacing: 0.01em; line-height: 1; }
.brand__word span { color: var(--brand); }

.nav__links { display: flex; gap: 6px; margin-left: 12px; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--element-2);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a svg { width: 16px; height: 16px; color: var(--element-1); transition: color 0.2s; }
.nav__links a:hover { color: #fff; background: rgb(255 255 255 / 0.05); }
.nav__links a:hover svg { color: var(--brand); }

.nav__end { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* The hero states the date; the nav picks it up once the page scrolls, so
   the first screen says it once. */
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--element-2);
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.4s, visibility 0.4s;
}
.nav:not(.is-solid) .status { opacity: 0; visibility: hidden; }
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

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

.scene {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.scene .layer {
  position: absolute;
  left: -3%;
  top: -3%;
  width: 106%;
  height: 105%;
  will-change: transform;
}
.layer--far { z-index: 1; }
.scene__rays { z-index: 2; }
.scene__fog--far { z-index: 2; }
.layer--mid { z-index: 3; }
.scene__fog--low { z-index: 4; }
.layer--near { z-index: 5; }
.scene__particles { z-index: 6; }
.layer--front { z-index: 7; }
.scene__vignette { z-index: 8; }

.scene__sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 26% 30% at var(--fx, 50%) var(--fy, 42%), rgb(138 241 158 / 0.26), transparent 70%),
    radial-gradient(ellipse 62% 70% at var(--fx, 50%) var(--fy, 44%), #0f4a32 0%, #08321f 30%, #041d12 58%, var(--base-0) 88%);
}
.scene__sky--gate {
  background:
    radial-gradient(ellipse 40% 34% at 50% 58%, rgb(138 241 158 / 0.3), transparent 70%),
    radial-gradient(ellipse 80% 70% at 50% 60%, #115034 0%, #0a3624 35%, #04200f 64%, var(--base-0) 94%);
}

.scene__rays {
  position: absolute;
  inset: -12% 0 25%;
  background: conic-gradient(
    from 160deg at var(--fx, 50%) -6%,
    transparent 0deg,
    rgb(170 255 190 / 0.1) 3deg, transparent 6deg,
    transparent 10deg, rgb(170 255 190 / 0.07) 12deg, transparent 16deg,
    transparent 21deg, rgb(170 255 190 / 0.12) 23deg, transparent 27deg,
    transparent 31deg, rgb(170 255 190 / 0.06) 34deg, transparent 37deg,
    transparent 360deg
  );
  -webkit-mask-image: radial-gradient(ellipse 50% 80% at var(--fx, 50%) 0%, #000 10%, transparent 80%);
  mask-image: radial-gradient(ellipse 50% 80% at var(--fx, 50%) 0%, #000 10%, transparent 80%);
  animation: rays 16s ease-in-out infinite alternate;
  transform-origin: var(--fx, 50%) 0;
  will-change: transform, opacity;
}

.scene__fog {
  position: absolute;
  left: -15%;
  right: -15%;
  pointer-events: none;
  will-change: transform;
}
.scene__fog--far {
  top: 50%;
  height: 24%;
  background:
    radial-gradient(ellipse 30% 50% at 25% 50%, rgb(90 190 140 / 0.2), transparent 70%),
    radial-gradient(ellipse 34% 46% at 72% 56%, rgb(90 190 140 / 0.16), transparent 70%),
    radial-gradient(ellipse 22% 40% at 50% 60%, rgb(150 240 190 / 0.14), transparent 70%);
  animation: drift 34s ease-in-out infinite alternate;
}
.scene__fog--low {
  bottom: -4%;
  height: 34%;
  background:
    radial-gradient(ellipse 40% 60% at 30% 70%, rgb(70 170 120 / 0.2), transparent 70%),
    radial-gradient(ellipse 40% 60% at 75% 64%, rgb(70 170 120 / 0.16), transparent 70%),
    linear-gradient(to top, rgb(2 21 12 / 0.9), transparent);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}
.scene__particles { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 75% at var(--fx, 50%) 48%, transparent 50%, rgb(1 10 5 / 0.72) 100%),
    linear-gradient(to bottom, rgb(2 21 12 / 0.55), transparent 16%, transparent 78%, var(--base-0) 100%);
}

.layer--sway { pointer-events: none; }
.canopy-edge .layer--sway { position: absolute; inset: 0; }
.sway-leaf {
  position: absolute;
  overflow: visible;
  will-change: transform;
  animation: sway var(--sway-d, 8s) ease-in-out var(--sway-delay, 0s) infinite alternate;
}
.scene__glow {
  position: absolute;
  z-index: 2;
  left: var(--fx, 50%);
  top: var(--fy, 45%);
  width: min(70vw, 900px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(51 225 108 / 0.16), rgb(51 225 108 / 0.05) 55%, transparent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  min-height: max(720px, 100svh);
  display: flex;
  overflow: hidden;
}

.hero__layout {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 24px) var(--pad) 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
}

.hero__inner { position: relative; max-width: 720px; }

.hero__title {
  font-size: clamp(50px, 7.4vw, 106px);
  line-height: 0.9;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.04em;
  text-wrap: balance;
  text-shadow: 0 6px 50px rgb(0 0 0 / 0.5);
}

/* the word is lit by colour alone; the vine growing under it is the motion */
.wild {
  position: relative;
  display: inline-block;
  color: var(--brand);
}
.wild__vine {
  position: absolute;
  left: -3%;
  width: 106%;
  bottom: -0.16em;
  height: 0.3em;
  overflow: visible;
}
.wild__stem {
  fill: none;
  stroke: var(--brand);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s var(--ease-out) 0.9s forwards;
}
.wild__leaves path {
  fill: var(--brand);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scale(0);
  animation: sprout 0.7s var(--ease-spring) forwards;
}
.wild__leaves path:nth-child(1) { animation-delay: 1.15s; }
.wild__leaves path:nth-child(2) { animation-delay: 1.4s; }
.wild__leaves path:nth-child(3) { animation-delay: 1.65s; }
.wild__leaves path:nth-child(4) { animation-delay: 1.9s; }

.hero__lede {
  max-width: 520px;
  margin-top: 28px;
  color: #c3d0c8;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.6);
}

.hero__when {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--brand-light);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.hero__when svg { width: 16px; height: 16px; color: var(--brand); }

[data-intro] { animation: intro 1.1s var(--ease-out) both; animation-delay: calc(0.12s + var(--i, 0) * 0.11s); }

/* ---------- waitlist form ---------- */

.join { position: relative; margin-top: 32px; }
.hero__when + .join { margin-top: 14px; }
/* the button's radius is the field's minus its inset, so the corners nest */
.join__field {
  display: flex;
  gap: 8px;
  max-width: 540px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: rgb(4 22 14 / 0.86);
  border: 1px solid rgb(138 241 158 / 0.18);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.8), inset 0 1px 0 rgb(255 255 255 / 0.05);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.join__field:focus-within {
  border-color: rgb(51 225 108 / 0.6);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.8), 0 0 0 4px rgb(51 225 108 / 0.14);
}
.join input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #fff;
  caret-color: var(--brand);
  font: 500 17px/1 var(--font);
  outline: none;
}
.join input[type="email"]::placeholder { color: var(--element-0); }
.join__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.join__note { margin-top: 13px; color: var(--element-1); font-size: 14px; }
.join--center .join__field,
.join--center .join__ok { margin-inline: auto; }
.join.is-error .join__note { color: var(--error); }
.join.is-busy .btn { pointer-events: none; opacity: 0.8; }
.join.is-busy .btn svg { animation: nudge 0.8s ease-in-out infinite; }

.join__ok {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 540px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: rgb(6 36 22 / 0.92);
  border: 1px solid rgb(51 225 108 / 0.4);
  text-align: left;
  animation: pop 0.6s var(--ease-spring);
}
.join__ok b { display: block; font-size: 17px; }
.join__ok span { color: var(--element-2); font-size: 14.5px; }
.join__check {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: var(--brand);
  color: var(--base-1);
}
.join__check svg { width: 22px; height: 22px; }
.join.is-done .join__field { display: none; }
.join.is-done .join__note { display: none; }

.leaf-burst {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  color: var(--brand);
  z-index: 5;
}

/* ---------- altar ---------- */

.altar {
  position: relative;
  justify-self: center;
  width: min(560px, 100%, 64vh);
  margin-top: clamp(40px, 9vh, 110px);
}
.altar__float {
  position: relative;
  z-index: 2;
  width: 72%;
  margin: 0 auto -15%;
  will-change: transform;
  animation: bob 6.5s ease-in-out infinite;
}
.altar__chest {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgb(51 225 108 / 0.42)) drop-shadow(0 28px 34px rgb(0 0 0 / 0.65));
  animation: intro-chest 1.6s var(--ease-out) 0.35s both;
}
.altar__stone { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; }
.altar__beam {
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 70%;
  height: 230%;
  transform: translateX(-50%);
  /* both layers fade sideways too, so the shaft has no hard edges */
  background:
    radial-gradient(ellipse 50% 40% at 50% 100%, rgb(51 225 108 / 0.42), transparent 70%),
    radial-gradient(ellipse 30% 100% at 50% 100%, rgb(138 241 158 / 0.2), transparent);
  -webkit-mask-image: linear-gradient(to top, #000 25%, transparent);
  mask-image: linear-gradient(to top, #000 25%, transparent);
  will-change: opacity;
  animation: beam 5.5s ease-in-out infinite;
  pointer-events: none;
}

/* ---------- loot ticker ---------- */

.loot {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 10px;
  padding: 14px var(--pad);
  background: linear-gradient(180deg, #041a0f, #03150c);
  border-block: 1px solid var(--line);
}
.loot__tag {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 104px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  background: rgb(51 225 108 / 0.08);
  border: 1px solid rgb(51 225 108 / 0.2);
  color: var(--brand-light);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.loot__tag svg { width: 22px; height: 22px; color: var(--brand); }
.loot__viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.loot__track { display: flex; gap: 8px; width: max-content; animation: marquee var(--marquee-d, 70s) linear infinite; }
.loot:hover .loot__track { animation-play-state: paused; }

.drop {
  --tier: var(--r-covert);
  position: relative;
  width: 132px;
  height: 116px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in oklab, var(--tier) 15%, #0c1d15) 0%, color-mix(in oklab, var(--tier) 5%, #09170f) 100%);
  border: 1px solid color-mix(in oklab, var(--tier) 26%, transparent);
}
.drop__hex {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 66px;
  height: 66px;
  transform: translateX(-50%);
  fill: color-mix(in oklab, var(--tier) 22%, transparent);
  stroke: color-mix(in oklab, var(--tier) 70%, transparent);
  stroke-width: 2.5;
  filter: drop-shadow(0 0 10px color-mix(in oklab, var(--tier) 50%, transparent));
}
.drop img {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 98px;
  height: 58px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.55));
}
.drop__txt {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  line-height: 1.2;
}
.drop__txt span { display: block; color: var(--element-1); font-size: 11px; font-weight: 500; }
.drop__txt b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: clamp(80px, 9vw, 128px) var(--pad);
}
.section + .section { padding-top: clamp(32px, 4vw, 64px); }
.section__head {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto clamp(44px, 6vw, 76px);
  text-align: center;
}
/* Section titles sit a clear step below the hero; only the closing gate
   gets close to its size again. */
h2 {
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 0.95;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.036em;
  text-wrap: balance;
}
.section__head > p:last-child {
  max-width: 600px;
  margin: 20px auto 0;
  color: var(--element-2);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  text-wrap: pretty;
}

/* title left, its paragraph answering on the right, both on the grid's
   edges: the bento below reads as the same block */
.section__head--split {
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: end;
  gap: 24px 64px;
  text-align: left;
}
.section__head--split > p:last-child { margin: 0 0 4px; }

.canopy-edge {
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  pointer-events: none;
  opacity: 0.95;
  overflow-x: clip;
}
.canopy-edge svg { width: 100%; height: 100%; }

.modes {
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgb(51 225 108 / 0.07), transparent 70%),
    var(--base-0);
}

/* objects arrive (cards, the vault, the seed panel); headings are simply there */
[data-reveal] { transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(16px); }

/* ---------- bento ---------- */

.bento {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
/* The cards are previews, not links: no hover lift that promises a click.
   Cases is the house game, so it leads the first row. */
.mode {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #081d13;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04), 0 30px 60px -36px rgb(0 0 0 / 0.8);
}
.mode--wide { grid-column: span 5; }
.mode--lead { grid-column: span 7; }

.mode__stage {
  position: relative;
  height: 236px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #05160e, #061a11);
  container: stage / inline-size;
}
.mode--wide .mode__stage { height: 300px; }
.mode__copy { padding: 20px 24px 24px; }
.mode__copy h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mode--wide .mode__copy h3 { font-size: 24px; }
.mode__icon { display: grid; color: var(--brand); }
.mode__icon svg { width: 18px; height: 18px; }
.mode--wide .mode__icon svg { width: 20px; height: 20px; }
.mode__copy p { margin-top: 8px; max-width: 46ch; color: var(--element-1); font-size: 15.5px; line-height: 1.5; text-wrap: pretty; }

/* item card, same anatomy as the product's reel cards */
.icard {
  --tier: var(--r-covert);
  position: relative;
  flex: none;
  width: 118px;
  height: 130px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, #102219 0%, color-mix(in oklab, var(--tier) 15%, #0d1e16) 100%);
  border: 1px solid color-mix(in oklab, var(--tier) 26%, transparent);
  transition: filter 0.4s, opacity 0.4s;
}
.icard::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 14%;
  height: 56%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--tier) 50%, transparent), transparent);
  opacity: 0.5;
}
.icard::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--tier);
  box-shadow: 0 0 12px var(--tier);
}
.icard img {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 92px;
  height: 64px;
  object-fit: contain;
  transform: translateX(-50%);
  filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.5));
}
.icard__txt {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 11px;
  line-height: 1.2;
}
.icard__txt span { display: block; color: var(--element-1); font-size: 10.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icard__txt b { display: block; font-size: 11.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-done .icard:not(.is-win) { filter: saturate(0.4) brightness(0.55); }
.icard.is-win {
  border-color: var(--tier);
  box-shadow: 0 0 0 1px var(--tier), 0 0 34px -4px var(--tier);
  animation: win 0.7s var(--ease-spring);
}
.icard.is-win::before { opacity: 0.9; }

.ava {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(140deg, hsl(var(--h, 140) 70% 62%), hsl(calc(var(--h, 140) + 40) 60% 34%));
  color: rgb(0 0 0 / 0.7);
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
  box-shadow: 0 0 0 2px #0a1f15;
}

/* cases demo */
.dc { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.reel { position: relative; height: 138px; }
.reel__window {
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}
.reel__strip { display: flex; align-items: center; gap: 8px; height: 100%; will-change: transform; }
.reel__marker {
  position: absolute;
  left: 50%;
  top: -10px;
  bottom: -10px;
  width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(to bottom, transparent, var(--brand-light) 18%, var(--brand-light) 82%, transparent);
  box-shadow: 0 0 14px var(--brand);
}
.reel__marker::before,
.reel__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  transform: translateX(-50%);
}
.reel__marker::before { top: 0; border-top-color: var(--brand-light); }
.reel__marker::after { bottom: 0; border-bottom-color: var(--brand-light); }

.dc__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, calc(100% - 40px));
  margin: 0 auto;
  padding: 8px 8px 8px 10px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.03);
  border: 1px solid var(--line);
}
.dc__bar img { width: 40px; height: 40px; object-fit: contain; }
.dc__bar div { flex: 1; min-width: 0; line-height: 1.25; }
.dc__bar b { display: block; font-size: 14.5px; }
.dc__bar span:not(.btn) { color: var(--element-1); font-size: 12.5px; }

/* battles demo */
.db { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px 22px; gap: 14px; }
.db__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--element-1); }
.db__round b { color: #fff; }
.db__cases { display: flex; gap: 6px; }
.db__cases img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  padding: 3px;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.03);
  border: 1px solid var(--line);
  opacity: 0.45;
  transition: opacity 0.3s, border-color 0.3s, transform 0.4s var(--ease-spring);
}
.db__cases img.is-now { opacity: 1; border-color: rgb(51 225 108 / 0.6); transform: translateY(-2px); }
.db__cases img.is-past { opacity: 0.8; }
.db__pot b { color: #fff; }
/* minmax(0, 1fr): a long skin name ellipsises instead of widening its side */
.db__arena { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.db__vs {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0b2118;
  border: 1px solid var(--line-strong);
  color: var(--brand);
}
.db__vs svg { width: 18px; height: 18px; }
.bp { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: rgb(255 255 255 / 0.025); border: 1px solid var(--line); transition: border-color 0.4s, background-color 0.4s, opacity 0.5s, filter 0.5s; }
.bp__who { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.bp__who .money { margin-left: auto; font-size: 14px; }
.bp__slot {
  position: relative;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 50% 60%, color-mix(in oklab, var(--tier, #33e16c) 22%, transparent), transparent 75%), #071710;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent);
  transition: background 0.4s;
}
.bp__strip { will-change: transform; }
.bp__strip img { width: 100%; height: 112px; object-fit: contain; padding: 14px 18%; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.55)); }
.bp__drop { height: 30px; font-size: 12px; line-height: 1.25; color: var(--element-1); overflow: hidden; }
.bp__drop b { display: block; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bp__crown {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 26px;
  height: 22px;
  color: var(--currency);
  transform: translateX(-50%) scale(0);
  filter: drop-shadow(0 0 10px rgb(248 187 72 / 0.7));
  transition: transform 0.5s var(--ease-spring);
}
.bp.is-winner { border-color: rgb(51 225 108 / 0.55); background: rgb(51 225 108 / 0.07); }
.bp.is-winner .bp__crown { transform: translateX(-50%) scale(1); }
.bp.is-loser { opacity: 0.5; filter: saturate(0.4); }
/* a narrow card (phones, and the 5-column card on small laptops) */
@container stage (max-width: 470px) {
  .db { padding: 14px; }
  .db__arena { gap: 8px; }
  .db__vs { width: 34px; height: 34px; }
  .db__cases img { width: 28px; height: 28px; }
  .bp { padding: 9px; }
  .bp__who { font-size: 13px; gap: 7px; }
  .bp__who .ava { width: 24px; height: 24px; }
  .bp__who > span { display: none; }
  .bp__drop { font-size: 11px; }
}

/* upgrader demo */
.du { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14px; }
.du__ring { position: relative; width: 168px; height: 168px; }
.du__ring svg { width: 100%; height: 100%; overflow: visible; }
.du__track { fill: none; stroke: #13291f; stroke-width: 10; }
.du__ticks { fill: none; stroke: rgb(255 255 255 / 0.12); stroke-width: 6; stroke-dasharray: 1.2 7.2; }
.du__arc { fill: none; stroke: var(--brand); stroke-width: 10; stroke-linecap: round; filter: drop-shadow(0 0 8px rgb(51 225 108 / 0.6)); transition: stroke-dasharray 0.8s var(--ease-out), stroke 0.3s; }
.du__needle { transform-box: view-box; transform-origin: 100px 100px; }
.du__needle path { fill: #fff; filter: drop-shadow(0 0 6px rgb(255 255 255 / 0.8)); }
.du__center { position: absolute; inset: 22px; display: grid; place-items: center; align-content: center; text-align: center; border-radius: 50%; background: radial-gradient(circle, #0e261b 0%, #071a11 72%); }
.du__center img { width: 84px; height: 54px; object-fit: contain; transition: transform 0.5s var(--ease-spring), opacity 0.3s; filter: drop-shadow(0 6px 8px rgb(0 0 0 / 0.5)); }
.du__pct { margin-top: 4px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.du__lbl { color: var(--element-1); font-size: 11px; font-weight: 600; }
.du.is-win .du__lbl { color: var(--brand); }
.du.is-loss .du__lbl { color: var(--error); }
.du.is-loss .du__arc { stroke: #2f4a3c; filter: none; }
.du.is-win .du__center { animation: flash 0.9s var(--ease-out); }
.du__row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--element-1); }
.du__row svg { width: 14px; height: 14px; color: var(--element-0); }
.du__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px 4px 4px; border-radius: 9px; background: rgb(255 255 255 / 0.04); border: 1px solid var(--line); }
.du__chip img { width: 28px; height: 20px; object-fit: contain; }
.du__mult { color: var(--brand-light); font-weight: 700; }

/* slide demo */
.ds { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 0 0 4px; }
.ds__head { display: flex; justify-content: center; gap: 8px; }
.ds__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 9px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--line);
  color: var(--element-1);
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.ds__chip b { color: #fff; }
.ds__chip.is-win { background: rgb(127 247 123 / 0.12); border-color: rgb(127 247 123 / 0.45); color: var(--success); }
.ds__chip.is-big { background: rgb(213 93 240 / 0.14); border-color: rgb(213 93 240 / 0.5); color: var(--purple); }
.ds__chip.is-bust { color: var(--error); }
.ds__chip.is-win b,
.ds__chip.is-big b { color: inherit; }
.ds__reel { position: relative; height: 72px; }
.ds__window {
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.ds__strip { display: flex; gap: 6px; height: 100%; align-items: center; will-change: transform; }
.mult {
  display: grid;
  place-items: center;
  flex: none;
  width: 70px;
  height: 64px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: #0f2219;
  border: 1px solid var(--line);
  color: var(--element-1);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}
/* same ladder as the product's Slide: bust coral, low white, win success, big purple */
.mult--low { color: #fff; }
.mult--bust { color: var(--error); background: rgb(250 113 106 / 0.08); border-color: rgb(250 113 106 / 0.22); }
.mult--win { color: var(--success); background: rgb(127 247 123 / 0.09); border-color: rgb(127 247 123 / 0.3); }
.mult--big { color: var(--purple); background: rgb(213 93 240 / 0.12); border-color: rgb(213 93 240 / 0.38); }
.mult.is-hit { transform: scale(1.1); box-shadow: 0 0 0 2px currentColor, 0 0 26px -2px currentColor; }
.ds__marker {
  position: absolute;
  left: 50%;
  top: -9px;
  bottom: -9px;
  width: 0;
}
.ds__marker::before,
.ds__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  border: 7px solid transparent;
  transform: translateX(-50%);
  filter: drop-shadow(0 0 6px rgb(255 255 255 / 0.7));
}
.ds__marker::before { top: 0; border-top-color: #fff; }
.ds__marker::after { bottom: 0; border-bottom-color: #fff; }
.ds__hist { display: flex; justify-content: center; gap: 5px; min-height: 22px; }
.ds__hist span {
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgb(255 255 255 / 0.04);
  color: var(--element-1);
  animation: pop 0.4s var(--ease-spring);
}
.ds__hist .mult--bust { color: var(--error); background: rgb(250 113 106 / 0.1); }
.ds__hist .mult--low { color: var(--element-2); background: var(--base-3); }
.ds__hist .mult--win { color: var(--success); background: rgb(127 247 123 / 0.1); }
.ds__hist .mult--big { color: var(--purple); background: rgb(213 93 240 / 0.15); }

/* exchanger demo */
.dx { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 18px; }
.dx__side { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.dx__label { color: var(--element-1); font-size: 12px; font-weight: 600; }
.dx__items { position: relative; display: grid; grid-template-columns: repeat(2, 54px); grid-auto-rows: 54px; gap: 6px; justify-content: center; min-height: 114px; align-content: center; }
.dx__items.is-one { grid-template-columns: 114px; grid-auto-rows: 114px; }
.dx__item {
  --tier: var(--r-covert);
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--tier) 30%, transparent), transparent), #0e2118;
  border: 1px solid color-mix(in oklab, var(--tier) 30%, transparent);
}
.dx__item img { width: 86%; height: 70%; object-fit: contain; filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.5)); }
.dx__sum { font-size: 14px; }
.dx__swap {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--base-1);
}
.dx__swap svg { width: 18px; height: 16px; }

/* giveaways demo */
.dg { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; }
.dg__ticket {
  position: relative;
  width: min(300px, 100%);
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse 80% 60% at 30% 0%, rgb(230 178 45 / 0.16), transparent 70%),
    linear-gradient(180deg, #10271c, #0a1d14);
  border: 1px solid rgb(248 187 72 / 0.28);
  -webkit-mask: radial-gradient(circle 9px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 9px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 9px at 0 62%, transparent 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 9px at 100% 62%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.dg__prize { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed rgb(255 255 255 / 0.12); }
.dg__prize img { width: 92px; height: 62px; object-fit: contain; filter: drop-shadow(0 0 14px rgb(239 64 105 / 0.35)); }
.dg__prize div { min-width: 0; line-height: 1.25; }
.dg__prize span { display: block; color: var(--element-1); font-size: 11.5px; }
.dg__prize b { display: block; font-size: 14px; }
.dg__prize .money { font-size: 13px; margin-top: 2px; }
.dg__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; font-size: 12px; color: var(--element-1); }
.dg__meta b { color: #fff; }
.dg__cd { display: block; font-size: 16px; color: #fff; font-weight: 700; }
.dg__ppl { display: flex; align-items: center; gap: 8px; }
.dg__stack { display: flex; }
.dg__stack .ava { width: 22px; height: 22px; font-size: 10px; margin-left: -7px; }
.dg__stack .ava:first-child { margin-left: 0; }
.dg__joined { display: inline-block; font-variant-numeric: tabular-nums; }
.dg__joined.is-bump { animation: bump 0.5s var(--ease-spring); }

/* leaderboards demo */
.dl { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 18px 22px 0; }
.dl__pod { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; width: 92px; height: 100%; text-align: center; }
.dl__pod .ava { width: 34px; height: 34px; font-size: 14px; }
.dl__name { font-size: 13px; font-weight: 700; }
.dl__pod .money { font-size: 12px; color: var(--element-2); }
.dl__bar {
  position: relative;
  width: 100%;
  height: 0;
  margin-top: 6px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--c) 40%, #0e2118), #0b1d14);
  border: 1px solid color-mix(in oklab, var(--c) 45%, transparent);
  border-bottom: 0;
  transition: height 1.2s var(--ease-out);
  display: grid;
  place-items: start center;
  padding-top: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--c);
}
.dl.is-in .dl__bar { height: var(--h); }
.dl__crown { width: 24px; height: 20px; color: var(--currency); filter: drop-shadow(0 0 10px rgb(248 187 72 / 0.6)); }

/* rewards demo */
.dr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 22px; padding: 18px; }
.dr__ring { position: relative; width: 128px; height: 128px; flex: none; border-radius: 50%; }
.dr__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dr__ring circle { fill: none; stroke-width: 9; }
.dr__ring .dr__track { stroke: #13291f; }
.dr__ring .dr__prog { stroke: var(--brand); stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(51 225 108 / 0.6)); }
.dr__lvl { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; line-height: 1.05; }
.dr__lvl span { color: var(--element-1); font-size: 11.5px; font-weight: 600; }
.dr__lvl b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.dr.is-up .dr__ring { animation: flash 0.9s var(--ease-out); }
.dr__side { display: flex; flex-direction: column; gap: 10px; width: 150px; }
.dr__xp { font-size: 12px; color: var(--element-1); font-variant-numeric: tabular-nums; }
.dr__xp b { color: #fff; font-size: 14px; }
.dr__bar { height: 8px; border-radius: 8px; background: #13291f; overflow: hidden; }
.dr__bar i { display: block; height: 100%; width: var(--p, 0%); border-radius: 8px; background: linear-gradient(90deg, var(--brand-dark), var(--brand-light)); }
.dr__next { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgb(255 255 255 / 0.03); border: 1px solid var(--line); line-height: 1.2; }
.dr__next img { width: 42px; height: 42px; object-fit: contain; }
.dr__next span { display: block; color: var(--element-1); font-size: 11px; }
.dr__next b { font-size: 13px; }
.dr.is-up .dr__next { border-color: rgb(51 225 108 / 0.55); background: rgb(51 225 108 / 0.08); }
.dr.is-up .dr__next img { animation: win 0.7s var(--ease-spring); }

/* ---------- vault (coverflow) ---------- */

.vault {
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 50% 55%, rgb(16 70 44 / 0.35), transparent 70%),
    var(--base-0);
}
.flow {
  --accent: #33e16c;
  position: relative;
  max-width: 1320px;
  height: clamp(460px, 48vw, 600px);
  margin: 0 auto;
  perspective: 1500px;
  outline: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.flow:focus-visible { outline: 2px solid var(--brand); outline-offset: 8px; border-radius: 24px; }
.flow__spot {
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(760px, 120vw);
  aspect-ratio: 1.4;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 34%, transparent), transparent);
  transition: background 0.9s;
  pointer-events: none;
}
.flow__track { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; pointer-events: none; }
.flow__card {
  position: absolute;
  left: 50%;
  top: 40%;
  width: clamp(210px, 25vw, 340px);
  aspect-ratio: 1;
  transition: transform 0.8s var(--ease-out), opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  will-change: transform;
}
.flow__card button {
  all: unset;
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 24px;
}
.flow__card button:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.flow__card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 30px 30px rgb(0 0 0 / 0.55));
}
.flow__card::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -8%;
  height: 14%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 45%, transparent), transparent);
  opacity: 0;
  transition: opacity 0.8s;
}
.flow__card.is-active::after { opacity: 1; }
.flow__card.is-active img { animation: bob 5.5s ease-in-out infinite; }

.flow__caption {
  position: absolute;
  z-index: 150;
  left: 0;
  right: 0;
  bottom: 74px;
  text-align: center;
  pointer-events: none;
}
.flow__name { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.flow__line { margin-top: 4px; color: var(--element-1); font-size: 16px; }
.flow__caption.is-swap .flow__name,
.flow__caption.is-swap .flow__line { animation: caption 0.6s var(--ease-out); }

.flow__controls {
  position: absolute;
  z-index: 200;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}
.flow__btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 0.04);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.flow__btn svg { width: 18px; height: 18px; }
.flow__btn[data-flow-prev] svg { transform: rotate(180deg); }
.flow__btn:hover { background: rgb(51 225 108 / 0.12); border-color: rgb(51 225 108 / 0.45); }
.flow__btn:active { transform: scale(0.95); }
.flow__dots { display: flex; gap: 6px; }
.flow__dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.18);
  cursor: pointer;
  transition: width 0.4s var(--ease-out), background-color 0.3s;
}
.flow__dots button[aria-current="true"] { width: 26px; background: var(--brand); }

/* ---------- fairness ---------- */

.fair__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.fair__copy > p { margin-top: 22px; max-width: 62ch; color: var(--element-2); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; text-wrap: pretty; }
/* a ruled list: each promise starts at a hairline, its icon set in the
   title's line instead of a tinted tile */
.pillars { list-style: none; margin: 36px 0 0; padding: 0; display: grid; }
.pillars li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0 18px;
  border-top: 1px solid var(--line-strong);
}
.pillars__icon { display: grid; height: 24px; align-items: center; color: var(--brand); }
.pillars__icon svg { width: 20px; height: 20px; }
.pillars h3 { font-size: 17px; font-weight: 700; line-height: 24px; }
.pillars p { margin-top: 4px; color: var(--element-1); font-size: 15px; line-height: 1.5; }

.seed {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0b2117, #071a11);
  border: 1px solid var(--line-strong);
  box-shadow: 0 50px 100px -50px rgb(0 0 0 / 0.9), inset 0 1px 0 rgb(255 255 255 / 0.05);
}
.seed__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.seed__title { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; }
.seed__title svg { width: 18px; height: 18px; color: var(--brand); }
.seed__live { display: inline-flex; align-items: center; color: var(--element-1); font-size: 12.5px; font-weight: 600; text-align: right; }
.seed__live i { width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--brand); flex: none; }
.seed__rows { position: relative; display: grid; gap: 10px; margin: 0; }
.seed__rows dt { color: var(--element-1); font-size: 12px; font-weight: 600; margin-bottom: 5px; }
.seed__rows dd {
  margin: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: #04120b;
  border: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
  color: #dfe9e3;
  word-break: break-all;
  min-height: 42px;
}
.seed__pair { display: grid; grid-template-columns: 1fr 112px; gap: 10px; }
.seed__rows dd.is-fresh { animation: fresh 1s var(--ease-out); }
.seed__reveal { display: flex; align-items: center; gap: 10px; }
.seed__reveal > span { min-width: 0; }
.seed__muted { color: var(--element-0); font-family: var(--font); }
.seed__reveal em { font-style: normal; color: var(--brand); font-family: var(--font); font-weight: 700; font-size: 12px; white-space: nowrap; margin-left: auto; }
.seed__formula { position: relative; margin: 16px 0 6px; color: var(--element-1); font-size: 12.5px; }
.seed__formula span { color: var(--brand-light); }
.seed__formula b { color: #fff; font-weight: 500; }
.seed__roll { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.seed__label { color: var(--element-1); font-size: 13px; font-weight: 600; }
.seed__roll strong { font-size: clamp(30px, 3.2vw, 40px); font-weight: 700; letter-spacing: -0.02em; }
.seed__of { color: var(--element-1); font-size: 13px; }
.seed__bar { position: relative; display: flex; height: 14px; margin: 16px 0 12px; border-radius: 8px; background: #04120b; }
.seed__bar span { height: 100%; background: var(--tier); opacity: 0.45; transition: opacity 0.4s, box-shadow 0.4s; }
.seed__bar span:first-child { border-radius: 8px 0 0 8px; }
.seed__bar span:last-of-type { border-radius: 0 8px 8px 0; }
.seed__bar span.is-hit { opacity: 1; box-shadow: 0 0 16px var(--tier); }
.seed__marker {
  position: absolute;
  top: -7px;
  bottom: -7px;
  left: var(--pos, 50%);
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgb(255 255 255 / 0.9);
  transition: left 1s var(--ease-out);
  z-index: 1;
}
.seed__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--element-1); }
.seed__legend span { display: inline-flex; align-items: center; gap: 6px; }
.seed__legend i { width: 8px; height: 8px; border-radius: 3px; background: var(--tier); }
.seed__result {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 10px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.025);
  border: 1px solid var(--line);
  min-height: 92px;
}
.seed__result .icard { width: 96px; height: 70px; }
.seed__result .icard img { top: 6px; width: 74px; height: 46px; }
.seed__result .icard__txt { display: none; }
.seed__result p { font-size: 14px; color: var(--element-2); line-height: 1.45; }
.seed__result p b { color: #fff; }
.seed__result p em { font-style: normal; color: var(--tier); font-weight: 700; }
.seed__result.is-fresh { animation: fresh 0.9s var(--ease-out); }

/* ---------- gate ---------- */

.gate {
  position: relative;
  isolation: isolate;
  min-height: clamp(900px, 118vh, 1240px);
  display: grid;
  overflow: hidden;
  text-align: center;
}
.gate__inner {
  position: relative;
  z-index: 3;
  align-self: start;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(96px, 13vh, 150px) var(--pad) 0;
}
.gate h2 { font-size: clamp(44px, 6.6vw, 96px); text-shadow: 0 6px 50px rgb(0 0 0 / 0.55); }
.gate__inner > p { max-width: 520px; margin: 20px auto 0; color: #c3d0c8; font-size: clamp(17px, 1.4vw, 19px); text-shadow: 0 2px 20px rgb(0 0 0 / 0.6); }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgb(2 21 12 / 0.6);
  color: var(--element-2);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s, border-color 0.2s;
}
.socials a:hover { color: #fff; border-color: rgb(51 225 108 / 0.45); }
.socials svg { width: 17px; height: 17px; }

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

.footer {
  position: relative;
  padding: 36px var(--pad) 44px;
  border-top: 1px solid var(--line);
  background: var(--base-0);
}
.footer__inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand__word { font-size: 20px; }
.footer .brand__mark { width: 24px; height: 24px; }
.footer__legal { color: var(--element-1); font-size: 14px; }
.badge-18 {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 8px;
  border: 1.5px solid var(--brand);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.footer__fine { max-width: var(--max); margin: 18px auto 0; color: var(--element-0); font-size: 13px; line-height: 1.5; }
.footer__fine + .footer__fine { margin-top: 8px; }

/* ---------- keyframes ---------- */

@keyframes rays { from { opacity: 0.7; transform: rotate(-2deg); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes drift { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
@keyframes sway { from { transform: rotate(calc(var(--sway-a) * -1)); } to { transform: rotate(var(--sway-a)); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sprout { to { transform: scale(1); } }
@keyframes intro { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes intro-chest { from { opacity: 0; transform: translateY(40px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes beam { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes win { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgb(51 225 108 / 0.6); } 100% { box-shadow: 0 0 0 26px rgb(51 225 108 / 0); } }
@keyframes bump { 40% { transform: translateY(-3px); color: var(--brand-light); } }
@keyframes nudge { 50% { transform: translateX(4px); } }
@keyframes fresh { from { border-color: rgb(51 225 108 / 0.6); box-shadow: 0 0 0 3px rgb(51 225 108 / 0.12); } }
@keyframes caption { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .status { display: none; }
}

@media (max-width: 1080px) {
  .mode,
  .mode--wide { grid-column: span 6; }
  .mode--wide { grid-column: span 12; }
  .fair__grid { grid-template-columns: 1fr; }
  .fair__copy { max-width: 640px; }
}

@media (max-width: 1000px) {
  .hero__layout {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 8px;
    padding-top: calc(var(--nav-h) + clamp(24px, 5vh, 56px));
    padding-bottom: 24px;
    text-align: center;
  }
  .hero__inner { margin: 0 auto; }
  .hero__lede { margin-inline: auto; }
  .hero__when { justify-content: center; }
  .join__field,
  .join__ok { margin-inline: auto; }
  .altar { width: min(440px, 84vw, 46vh); margin-top: 30px; }
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .section__head--split { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  :root { --nav-h: 64px; }
  .brand__word { font-size: 20px; }
  .brand__mark { width: 24px; height: 24px; }
  .nav .btn--sm { height: 36px; padding: 0 13px; font-size: 13px; }
  .hero { min-height: max(720px, 100svh); }
  .hero__lede { margin-top: 20px; }
  .hero__when { margin-top: 24px; }
  .join__field { flex-direction: column; }
  .join input[type="email"] { height: 50px; text-align: center; }
  .join .btn { width: 100%; }
  .altar { width: min(400px, 88vw, 42vh); }
  .mode,
  .mode--wide { grid-column: span 12; }
  .mode--wide .mode__stage { height: 280px; }
  .loot__tag { width: 76px; font-size: 11.5px; }
  .drop { width: 116px; }
  .seed__live span { display: none; }
  .flow__card { top: 38%; }
  .flow__caption { bottom: 70px; }
  .seed { padding: 16px; }
  .seed__pair { grid-template-columns: 1fr 88px; }
  .footer__inner { gap: 14px; }
  .badge-18 { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .sway-leaf,
  .loot__track,
  .scene__rays,
  .scene__fog,
  .altar__float,
  .flow__card.is-active img { animation: none !important; }
}

@media (max-width: 680px) {
  .nav .btn--sm { opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0s 0.25s; }
  .nav.is-past-form .btn--sm { opacity: 1; visibility: visible; transform: none; transition: opacity 0.25s, transform 0.25s var(--ease-out), visibility 0s; }
}
