/* Sky Card Game landing. Tokens mirror app/assets/colors/app_colors.xml and
   the components of app/lib/design_system (wood sign, parchment, candy
   buttons, cards); see docs/jungle-design.md. */

@font-face {
  font-family: "Lilita One";
  src: url("/static/fonts/lilita-one.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/static/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --sand: #E9C98F;
  --sand-glow: #F6DFAE;
  --cream: #FFF7E8;
  --cream-hi: #FFFDF7;
  --cream-strong: #F3E3C3;
  --parchment: #FFF4DC;
  --ink: #3A2A10;
  --ink-2: #6E5434;
  --ink-3: #85694A;
  --leaf: #2F8A40;
  --leaf-hi: #55BE62;
  --leaf-sh: #236B30;
  --leaf-deep: #2F6B1E;
  --leaf-deeper: #1F4A12;
  --sign-green: #5DC24A;
  --sun: #FFD43B;
  --coral: #E8742A;
  --wood: #D9A05B;
  --wood-line: #7A4A1C;
  --wood-edge: #6B3F16;
  --wood-ink: #FFF6E2;
  --face-ink: #26200F;
  --error: #C8402B;
  --rim: rgba(60, 30, 10, .55);
  --depth: rgba(110, 70, 20, .22);
  --shadow: rgba(64, 42, 10, .3);
  --wood-tex: url("/assets/assets/textures/wood_plank.webp");
  --parch-tex: url("/assets/assets/textures/parchment.webp");
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--sand);
  color: var(--ink);
  font: 500 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--leaf-hi); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- top bar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; padding: 12px var(--gutter) 0; pointer-events: none; }
.topbar-in {
  pointer-events: auto;
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: 22px;
  background: rgba(255, 247, 232, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 4px 0 rgba(110, 70, 20, .14), 0 10px 30px rgba(64, 42, 10, .12);
  transition: background .3s, box-shadow .3s;
}
.topbar.is-scrolled .topbar-in {
  background: rgba(255, 247, 232, .94);
  box-shadow: 0 4px 0 rgba(110, 70, 20, .18), 0 14px 34px rgba(64, 42, 10, .2);
}
.brand {
  display: flex; align-items: center; gap: 10px; flex: none;
  font: 22px/1 var(--display); letter-spacing: .2px; color: var(--ink); text-decoration: none;
}
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 2px 0 rgba(64, 42, 10, .25); }
.topnav { display: flex; gap: 2px; margin: 0 auto; }
.topnav a {
  padding: 10px 14px; border-radius: 14px;
  font-weight: 800; font-size: 15px; color: var(--ink-2); text-decoration: none;
  transition: background .2s, color .2s;
}
.topnav a:hover { background: rgba(47, 138, 64, .1); color: var(--leaf-sh); }
.topbar-end { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.lang { position: relative; }
.lang summary {
  display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  list-style: none; cursor: pointer; border-radius: 14px;
  font-weight: 900; font-size: 14px; text-transform: uppercase; color: var(--ink-2);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang summary:hover, .lang[open] summary { background: rgba(58, 42, 16, .07); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 180px;
  display: grid; gap: 2px; padding: 8px;
  border-radius: 18px; background: var(--cream);
  box-shadow: 0 5px 0 rgba(110, 70, 20, .2), 0 18px 40px rgba(64, 42, 10, .25);
  animation: drop .22s var(--ease-pop);
  transform-origin: top right;
}
.lang-list a { padding: 10px 12px; border-radius: 12px; font-weight: 800; color: var(--ink); text-decoration: none; }
.lang-list a:hover { background: var(--cream-strong); }
.lang-list a[aria-current] { background: rgba(47, 138, 64, .12); color: var(--leaf-sh); }

/* ---------------------------------------------------------------- buttons */
.btn {
  --top: #6FD86A; --bottom: #2E9E3F; --edge: #1E7A2D; --label: #FFFFFF; --seam: rgba(255, 246, 226, .85);
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 3px solid var(--rim); border-radius: 20px;
  background: linear-gradient(180deg, var(--top), var(--bottom));
  color: var(--label);
  font: 22px/1.1 var(--display); letter-spacing: .3px; text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 0 var(--edge);
  box-shadow: 0 7px 0 rgba(60, 30, 10, .45), 0 13px 18px color-mix(in srgb, var(--edge) 35%, transparent);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out), filter .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 4px; pointer-events: none;
  border: 2px dashed var(--seam); border-radius: 14px;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, 0) 48%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .07) 0 2px, rgba(255, 255, 255, 0) 2px 5.6px);
}
.btn:hover { filter: brightness(1.05) saturate(1.06); transform: translateY(-2px); }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(60, 30, 10, .45), 0 4px 8px color-mix(in srgb, var(--edge) 30%, transparent); }
.btn:disabled { cursor: progress; filter: saturate(.6); }
.btn-sun { --top: #FFE27A; --bottom: #F5BE1B; --edge: #C99A0B; --label: var(--ink); --seam: rgba(60, 30, 10, .32); text-shadow: none; }
.btn-coral { --top: #FFB45A; --bottom: #EC7B1E; --edge: #AE4F12; }
.btn-sm { min-height: 44px; padding: 0 18px; border-radius: 15px; font-size: 17px; box-shadow: 0 5px 0 rgba(60, 30, 10, .4); }
.btn-sm::before { inset: 3px; border-width: 1.6px; border-radius: 10px; }
.btn-sm:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(60, 30, 10, .4); }
.btn-lg { min-height: 62px; padding: 0 34px; font-size: 24px; }

/* Store buttons: the app's dark score plate, stitched. */
.stores { display: flex; flex-wrap: wrap; gap: 24px 14px; }
.store {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 13px;
  min-width: 232px; min-height: 68px; padding: 10px 24px;
  border: 3px solid #1E1305; border-radius: 20px;
  background: linear-gradient(180deg, #5A4220, #3E2C11);
  color: var(--wood-ink); text-decoration: none;
  box-shadow: inset 0 2px 0 rgba(255, 236, 190, .14), 0 6px 0 #1E1305, 0 14px 22px rgba(40, 24, 4, .3);
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s var(--ease-out), box-shadow .14s var(--ease-out);
}
.store::before {
  content: ""; position: absolute; inset: 5px; pointer-events: none;
  border: 2px dashed rgba(255, 228, 170, .42); border-radius: 13px;
}
.store:hover { transform: translateY(-2px); }
.store:active { transform: translateY(5px); box-shadow: inset 0 2px 0 rgba(255, 236, 190, .14), 0 1px 0 #1E1305, 0 4px 8px rgba(40, 24, 4, .3); }
.store-logo { flex: none; width: 27px; height: 29px; }
.store-ios .store-logo { width: 28px; height: 28px; margin-top: -3px; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; }
.store-text small { font: 800 12.5px/1.25 var(--body); letter-spacing: .2px; opacity: .85; }
.store-text b { font: 400 25px/1.05 var(--display); letter-spacing: .3px; }
/* Sits on the top edge, above the seam, never over the label. */
.store-tag {
  position: absolute; top: 0; right: 16px; translate: 0 -62%;
  padding: 4px 10px 5px;
  border: 2px solid var(--rim); border-radius: 999px;
  background: linear-gradient(180deg, #FFE27A, #F5BE1B);
  color: var(--ink);
  font: 900 11px/1 var(--body); letter-spacing: .6px; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 3px 0 rgba(60, 30, 10, .4);
}
.is-ios .store-ios { order: -1; }

/* ---------------------------------------------------------------- wood sign, parchment */
.sign {
  position: relative;
  display: inline-flex; flex-direction: column; align-items: center;
  margin: 0; padding: .24em .62em .34em;
  border: .07em solid var(--wood-line); border-radius: .38em;
  background: var(--wood) var(--wood-tex) 0 0 / 7em;
  box-shadow: 0 .13em 0 var(--wood-edge), 0 .3em .44em rgba(64, 42, 10, .35);
  font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: .01em;
  text-align: center; text-wrap: balance;
}
.sign::before { content: ""; position: absolute; inset: 0; border-radius: .32em; background: rgba(58, 34, 10, .55); }
.sign span { position: relative; display: block; color: var(--wood-ink); text-shadow: 0 .05em 0 var(--ink); }
.sign .l2 { color: var(--sign-green); text-shadow: 0 .05em 0 var(--leaf-deeper); }
.sign .nail {
  position: absolute; top: .2em; z-index: 1;
  width: .17em; height: .17em; border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #B88A55, var(--wood-edge));
}
.sign .nail:first-child { left: .22em; }
.sign .nail:nth-child(2) { right: .22em; }

.pill {
  display: inline-block; margin: 0; padding: .42em 1.1em .46em;
  border: 3px solid var(--wood-line); border-radius: 999px;
  background: var(--parchment) var(--parch-tex) 0 0 / 220px;
  box-shadow: 0 4px 0 var(--wood-edge);
  font: 900 15px/1.2 var(--body); letter-spacing: .2px; color: var(--ink);
}
.pill-sm { font-size: 13px; padding: .34em .95em .38em; }

/* JunglePanel: wood frame, parchment inside. */
.panel {
  position: relative; padding: 6px;
  border: 2px solid var(--wood-line); border-radius: 28px;
  background: var(--wood) var(--wood-tex) 0 0 / 180px;
  box-shadow: 0 6px 0 var(--wood-edge), 0 18px 30px rgba(64, 42, 10, .28);
}
.panel-in {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 22px;
  background: var(--parchment) var(--parch-tex) 0 0 / 220px;
  box-shadow: inset 0 12px 14px -10px rgba(90, 50, 10, .35);
}
.cream-card {
  border-radius: 28px; background: var(--cream);
  box-shadow: 0 5px 0 var(--depth), 0 18px 34px rgba(64, 42, 10, .13);
}

/* ---------------------------------------------------------------- cards (playing_cards.dart) */
.card { position: relative; container-type: inline-size; aspect-ratio: 3 / 4; perspective: 900px; }
.card-in {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d;
  transition: transform .62s var(--ease-out);
}
.card.down .card-in { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0;
  border-radius: 12cqw; background: var(--cream-hi);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 2.6cqw 0 rgba(64, 42, 10, .3), 0 4cqw 9cqw rgba(89, 58, 16, .3);
}
.card-face::before {
  content: ""; position: absolute; inset: 4.5cqw; border-radius: 8cqw;
  background: var(--art) center / cover, linear-gradient(180deg, var(--top), var(--bottom));
}
.card-back { transform: rotateY(180deg); }
.card-back::before { background: url("/assets/assets/card_backs/paw.webp") center / cover, linear-gradient(180deg, #3C8A2E, #1F4A12); }
.card-front b {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 400 66cqw/1 var(--display); letter-spacing: -.02em; color: var(--face-ink);
  text-shadow: 0 0 12cqw rgba(255, 255, 255, .55);
  font-variant-numeric: tabular-nums;
}
.card-front i {
  position: absolute; left: 9cqw; top: 9cqw; padding: 1.4cqw 4.6cqw;
  border-radius: 14cqw; background: rgba(255, 253, 247, .8);
  font: normal 14cqw/1.1 var(--display); color: var(--face-ink);
}
.band-blue { --top: #8ED3F5; --bottom: #3FA7E0; --art: url("/assets/assets/card_fronts/blue.webp"); }
.band-green { --top: #9EDB7A; --bottom: #2F8A40; --art: url("/assets/assets/card_fronts/green.webp"); }
.band-yellow { --top: #FFE07A; --bottom: #F2B91E; --art: url("/assets/assets/card_fronts/yellow.webp"); }
.band-red { --top: #FF9F86; --bottom: #E8573E; --art: url("/assets/assets/card_fronts/red.webp"); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: clip;
  display: flex; align-items: center;
  min-height: max(660px, min(100svh, 920px));
  padding: 116px 0 104px;
}
.hero-scene, .final-scene, .waitlist-scene {
  position: absolute; inset: 0;
  background: var(--sand) url("/assets/assets/scenes/jungle_wide.webp") center 38% / cover no-repeat;
}
.hero-scene::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 28% 58%, rgba(246, 223, 174, .5), rgba(246, 223, 174, 0) 70%),
    linear-gradient(180deg, rgba(233, 201, 143, 0) 55%, rgba(233, 201, 143, .55) 82%, var(--sand) 100%);
}
.hero-leaves {
  position: absolute; top: -3%; z-index: 2;
  height: 106%; width: auto; max-width: none;
  pointer-events: none; will-change: transform;
  filter: drop-shadow(0 12px 20px rgba(30, 40, 10, .28));
}
.hero-leaves-l { left: calc(-1 * clamp(70px, 8.5vw, 150px)); }
.hero-leaves-r { right: calc(-1 * clamp(70px, 8.5vw, 150px)); }
.hero-in {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center; gap: clamp(20px, 4vw, 56px);
}
.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.sign-hero { font-size: clamp(36px, 4.3vw, 62px); }
/* German runs longest: keeps "Aufdecken. Tauschen." on one line. */
.sign-hero:lang(de) { font-size: clamp(32px, 3.75vw, 54px); }
.hero-lead, .final-lead {
  margin: 0; max-width: 33em; padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 247, 232, .84);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 4px 0 rgba(110, 70, 20, .14);
  font-size: clamp(16px, 1.3vw, 18.5px); font-weight: 700; line-height: 1.5; color: var(--ink-2);
}
.hero-stores { padding-top: 6px; }

.hero-visual { position: relative; justify-self: center; width: 100%; max-width: 620px; aspect-ratio: 1 / .92; }
.sun { position: absolute; left: 50%; top: 30%; width: 118%; aspect-ratio: 1; translate: -50% -50%; pointer-events: none; }
.sun::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 246, 226, .95), rgba(255, 243, 196, .5) 42%, rgba(255, 243, 196, 0));
}
.sun-rays {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-conic-gradient(rgba(255, 246, 226, .7) 0deg 8deg, rgba(255, 246, 226, 0) 8deg 30deg),
    repeating-conic-gradient(from 15deg, rgba(255, 228, 122, .45) 0deg 4deg, rgba(255, 228, 122, 0) 4deg 30deg);
  -webkit-mask: radial-gradient(closest-side, #000 14%, transparent 78%);
  mask: radial-gradient(closest-side, #000 14%, transparent 78%);
  animation: spin 70s linear infinite;
}
/* The hand: five cards on a wide arc, dealt then flipped one by one. */
.fan { position: absolute; left: 50%; top: 6%; width: 19%; aspect-ratio: 3 / 4; translate: -50% 0; transform-origin: 50% 330%; }
.fan.dealt { animation: sway 7s ease-in-out 2.6s infinite; }
.fan .card {
  position: absolute; inset: 0;
  transform-origin: 50% 330%;
  transition: transform .85s var(--ease-pop) calc(var(--i) * 70ms), opacity .3s calc(var(--i) * 70ms), translate .3s var(--ease-out);
}
.fan .card-in { transition-delay: calc(650ms + var(--i) * 130ms); }
.fan .card:nth-child(1) { transform: rotate(-27deg); }
.fan .card:nth-child(2) { transform: rotate(-13.5deg); }
.fan .card:nth-child(3) { transform: none; }
.fan .card:nth-child(4) { transform: rotate(13.5deg); }
.fan .card:nth-child(5) { transform: rotate(27deg); }
.fan .card:hover { translate: 0 -7%; }
.js .fan:not(.dealt) .card { transform: translateY(26%) scale(.9); opacity: 0; }
.js .fan:not(.dealt) .card-in { transform: rotateY(180deg); }
.mascot-seated {
  position: absolute; left: 50%; bottom: 0; z-index: 2;
  width: 84%; translate: -50% 0;
  transform-origin: 50% 100%;
  animation: breathe 5.5s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px rgba(64, 42, 10, .2));
}
.mascot-shadow {
  position: absolute; left: 50%; bottom: -1%; width: 66%; height: 8%;
  translate: -50% 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(107, 63, 22, .35), rgba(107, 63, 22, 0));
}

.facts-wrap { position: relative; z-index: 4; margin-top: -64px; }
.facts {
  list-style: none; margin: 0; padding: 12px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  border-radius: 26px; background: var(--cream);
  box-shadow: 0 5px 0 rgba(110, 70, 20, .25), 0 22px 44px rgba(64, 42, 10, .18);
}
.facts li {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px;
  font-weight: 900; font-size: 16px; line-height: 1.25;
}
.facts li + li { border-left: 2px dashed rgba(122, 74, 28, .2); }
.facts img { flex: none; width: 52px; height: 52px; object-fit: contain; }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding: clamp(76px, 9vw, 124px) 0; }
.sanded::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/static/img/sand.webp") center / cover;
  -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
}
.section > .wrap { position: relative; }
.glow { background: radial-gradient(60% 45% at 50% 38%, rgba(255, 243, 196, .55), rgba(255, 243, 196, 0) 100%); }
.section-head {
  max-width: 780px; margin: 0 auto clamp(40px, 5vw, 60px);
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
}
.kicker {
  display: inline-block; margin: 0; padding: 7px 15px;
  border-radius: 999px; background: rgba(47, 138, 64, .13);
  font: 900 13px/1.2 var(--body); letter-spacing: 1.4px; text-transform: uppercase; color: var(--leaf-sh);
}
.title {
  margin: 0;
  font: 400 clamp(36px, 4.5vw, 60px)/1.04 var(--display); letter-spacing: -.005em;
  color: var(--ink); text-shadow: 0 2px 0 rgba(255, 246, 226, .55); text-wrap: balance;
}
.title .accent { display: block; color: var(--leaf); }
.lead { margin: 0; max-width: 36em; font-size: clamp(17px, 1.4vw, 20px); font-weight: 650; color: var(--ink-2); text-wrap: pretty; }

/* How to play */
.how-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head demo" "steps demo";
  column-gap: clamp(32px, 6vw, 88px); row-gap: 26px; align-items: start;
}
.how-head { grid-area: head; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; align-self: end; }
.steps { grid-area: steps; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step {
  position: relative; overflow: hidden;
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 14px 18px 14px 14px; border: 0; border-radius: 22px;
  background: rgba(255, 247, 232, .66); color: var(--ink); text-align: left;
  box-shadow: 0 4px 0 rgba(110, 70, 20, .14);
  cursor: pointer;
  transition: background .25s, box-shadow .25s, transform .35s var(--ease-pop);
}
.step:hover { background: rgba(255, 247, 232, .9); }
.step.is-active {
  background: var(--cream); transform: translateX(8px);
  box-shadow: 0 5px 0 var(--depth), 0 14px 30px rgba(64, 42, 10, .14);
}
.step-num {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  border: 3px solid var(--wood-line); border-radius: 50%;
  background: var(--wood) var(--wood-tex) 0 0 / 120px;
  box-shadow: 0 4px 0 var(--wood-edge);
  font: 22px/1 var(--display); color: var(--wood-ink); text-shadow: 0 2px 0 var(--wood-edge);
  transition: background .25s, border-color .25s;
}
.step.is-active .step-num { border-color: var(--rim); background: linear-gradient(180deg, #6FD86A, #2E9E3F); box-shadow: 0 4px 0 rgba(60, 30, 10, .45); text-shadow: 0 2px 0 #1E7A2D; }
.step-text { display: flex; flex-direction: column; gap: 1px; }
.step-text strong { font: 400 22px/1.15 var(--display); letter-spacing: .2px; }
.step-text span { font-size: 15.5px; font-weight: 650; line-height: 1.4; color: var(--ink-2); }
.step-bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background: var(--leaf-hi); transform: scaleX(0); transform-origin: left;
}
.step.is-active .step-bar { animation: bar var(--step-ms, 3000ms) linear forwards; }
.how.is-paused .step-bar { animation-play-state: paused; }

.demo { grid-area: demo; margin: 0; justify-self: center; width: 100%; max-width: 470px; }
.demo-tray {
  padding: 6px; border: 2px solid var(--wood-line); border-radius: 32px;
  background: var(--wood) var(--wood-tex) 0 0 / 180px;
  box-shadow: 0 8px 0 var(--wood-edge), 0 26px 44px rgba(64, 42, 10, .3);
}
.demo-stage {
  position: relative; overflow: hidden; container-type: inline-size;
  aspect-ratio: 100 / 125; border-radius: 26px;
  background: var(--sand) url("/assets/assets/scenes/jungle_clearing.webp") center 72% / 160% auto;
  box-shadow: inset 0 10px 16px -8px rgba(60, 30, 10, .45);
  transition: opacity .25s;
}
.demo-stage::before {
  content: ""; position: absolute; left: 3cqw; top: 31cqw; width: 94cqw; height: 92cqw;
  border-radius: 5cqw; background: rgba(120, 78, 30, .2);
  box-shadow: inset 0 0 0 .5cqw rgba(255, 253, 247, .25);
}
.demo-stage.fading { opacity: 0; }
.demo-stage.no-anim *, .demo-stage.no-anim *::before { transition: none !important; }
.dcard {
  position: absolute; left: 0; top: 0; width: 20cqw; z-index: 2;
  transform: translate(calc(var(--x) * 1cqw), calc(var(--y) * 1cqw));
  transition: transform .7s var(--ease-pop) var(--delay, 0ms), opacity .4s var(--delay, 0ms);
}
.dcard .card-in { transition-delay: var(--delay, 0ms); }
.dcard.lift { z-index: 6; }
.dcard.matching .card-face { animation: match .45s ease-in-out 2 alternate; }
.dcard.gone {
  opacity: 0;
  transform: translate(calc(var(--x) * 1cqw), calc((var(--y) - 16) * 1cqw)) scale(.5) rotate(14deg);
  transition-timing-function: cubic-bezier(.5, 0, .75, 0);
}
.demo-pile {
  position: absolute; left: 51.6cqw; top: 3cqw; width: 20cqw; aspect-ratio: 3 / 4;
  border-radius: 2.4cqw; background: #FFFDF7;
  box-shadow: .8cqw .8cqw 0 #EAD9B8, 1.6cqw 1.6cqw 0 #D7C29A, 0 3cqw 4cqw rgba(89, 58, 16, .3);
}
.demo-pile::before {
  content: ""; position: absolute; inset: .9cqw; border-radius: 1.6cqw;
  background: url("/assets/assets/card_backs/paw.webp") center / cover, #2F6B1E;
}
/* PlayerPlate: avatar ring over a cream name half and a dark score half. */
.demo-plate { position: absolute; left: 4.4cqw; top: 8cqw; z-index: 3; width: 40cqw; height: 16cqw; }
.demo-plate img {
  position: absolute; left: 0; top: .5cqw; z-index: 1; width: 15cqw; height: 15cqw;
  border: 1cqw solid var(--cream-hi); border-radius: 50%; background: #FFD9A8;
  box-shadow: 0 1cqw 2cqw rgba(89, 58, 16, .3);
}
.demo-name, .demo-score {
  position: absolute; left: 11cqw; width: 27cqw; padding-left: 5.4cqw;
  display: flex; align-items: center;
}
.demo-name {
  top: 1.2cqw; height: 6.6cqw;
  border-radius: 0 2.4cqw 0 0; background: var(--cream);
  font: 4.4cqw/1 var(--display); color: var(--ink);
}
.demo-score {
  top: 7.8cqw; height: 7.2cqw;
  border-radius: 0 0 2.4cqw 0; background: var(--ink);
  font: 5.6cqw/1 var(--display); color: var(--sun); font-variant-numeric: tabular-nums;
}
.demo-score.pop { animation: pop-score .5s var(--ease-pop); }
.demo-banner {
  position: absolute; left: 50%; top: 68cqw; z-index: 8;
  translate: -50% -50%; scale: .4; opacity: 0;
  padding: 2.4cqw 5.4cqw 2.8cqw;
  border: .8cqw solid var(--wood-line); border-radius: 4cqw;
  background: var(--cream);
  box-shadow: 0 1.4cqw 0 var(--wood-edge), 0 4cqw 8cqw rgba(64, 42, 10, .35);
  font: 8cqw/1 var(--display); color: var(--leaf); white-space: nowrap;
  transition: scale .45s var(--ease-pop), opacity .2s;
}
.demo-banner.show { scale: 1; opacity: 1; }
.demo-banner.victory { background: linear-gradient(180deg, #FFE27A, #F5BE1B); color: var(--ink); top: 76cqw; font-size: 10cqw; }

.demo-confetti { position: absolute; inset: 0; z-index: 9; pointer-events: none; overflow: hidden; border-radius: inherit; }
.demo-confetti i {
  position: absolute; left: var(--ox, 50%); top: var(--oy, 55%); width: 10px; height: 6px;
  border-radius: 6px 0; background: var(--c);
  animation: confetti 1.7s cubic-bezier(.2, .6, .4, 1) var(--delay) forwards;
  opacity: 0;
}

/* Play your way */
.feature-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.feature .panel-in { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 24px 0; text-align: center; }
.feature h3 { margin: 0; font: 400 clamp(22px, 2vw, 27px)/1.12 var(--display); text-wrap: balance; }
.feature p { margin: 0; font-size: 16px; font-weight: 650; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
/* The whole phone is drawn and runs past the panel's bottom edge, which clips
   it: lifting it on hover shows more of the screen, never a gap. */
.phone { position: relative; margin-top: auto; width: min(78%, 270px); aspect-ratio: 804 / 1000; }
.phone img {
  position: absolute; left: 0; top: 18px; width: 100%;
  border: 9px solid #2A1E0A; border-radius: 38px;
  background: var(--sand);
  box-shadow: 0 12px 30px rgba(64, 42, 10, .3);
  transition: translate .5s var(--ease-pop);
}
.feature:hover .phone img { translate: 0 -14px; }

.joinbar {
  margin: clamp(32px, 4vw, 48px) auto 0; max-width: 880px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 18px;
  padding: 14px 16px 14px 14px;
  border-radius: 26px; background: var(--cream);
  box-shadow: 0 5px 0 rgba(110, 70, 20, .22), 0 16px 30px rgba(64, 42, 10, .12);
}
.joinbar > img { width: 56px; height: 56px; }
.joinbar-text strong { display: block; font: 400 22px/1.15 var(--display); }
.joinbar-text span { font-size: 15px; font-weight: 650; color: var(--ink-2); }
.joinbar-field { display: flex; gap: 10px; }
.field {
  width: 100%; min-width: 0; height: 56px; padding: 0 18px;
  border: 2.5px solid rgba(122, 74, 28, .3); border-radius: 16px;
  background: var(--cream-hi); color: var(--ink);
  font: 800 18px/1 var(--body);
  box-shadow: inset 0 3px 0 rgba(90, 50, 10, .07);
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: rgba(110, 84, 52, .45); }
.field:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(85, 190, 98, .25); }
.field[aria-invalid="true"] { border-color: var(--error); }
.field-code { width: 10ch; text-align: center; text-transform: uppercase; letter-spacing: .2em; font: 22px/1 var(--display); }
.field-error { grid-column: 1 / -1; margin: 0; font-size: 14.5px; font-weight: 800; color: var(--error); }
.field-error:empty { display: none; }

/* Game modes, deep in the jungle */
/* Leafy canopy edges: the section overlaps its neighbours by 56 px and a
   mask cuts its top and bottom into a row of leaves. */
.modes {
  --canopy-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 56 L0 40 C7 22 59 22 66 40 C75 20 144 20 153 35 C163 4 241 4 251 35 C258 2 313 2 320 34 C330 7 414 7 424 37 C429 24 467 24 472 40 C479 21 537 21 544 37 C549 9 590 9 595 40 C600 3 639 3 644 35 C650 10 698 10 704 44 C712 28 779 28 787 43 C795 8 862 8 870 34 C876 27 924 27 930 42 C940 20 1020 20 1030 38 C1037 24 1095 24 1102 42 C1107 6 1150 6 1155 38 C1163 16 1228 16 1236 35 C1244 12 1311 12 1319 44 C1325 10 1371 10 1377 35 C1383 27 1434 27 1440 43 L1440 56 Z'/%3E%3C/svg%3E");
  --canopy-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath transform='matrix%281 0 0 -1 0 56%29' fill='white' d='M0 56 L0 40 C7 22 59 22 66 40 C75 20 144 20 153 35 C163 4 241 4 251 35 C258 2 313 2 320 34 C330 7 414 7 424 37 C429 24 467 24 472 40 C479 21 537 21 544 37 C549 9 590 9 595 40 C600 3 639 3 644 35 C650 10 698 10 704 44 C712 28 779 28 787 43 C795 8 862 8 870 34 C876 27 924 27 930 42 C940 20 1020 20 1030 38 C1037 24 1095 24 1102 42 C1107 6 1150 6 1155 38 C1163 16 1228 16 1236 35 C1244 12 1311 12 1319 44 C1325 10 1371 10 1377 35 C1383 27 1434 27 1440 43 L1440 56 Z'/%3E%3C/svg%3E");
  z-index: 1; margin: -56px 0;
  padding: calc(clamp(76px, 9vw, 124px) + 40px) 0 calc(clamp(76px, 9vw, 124px) + 56px);
  -webkit-mask:
    var(--canopy-top) top / 1440px 56px repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 110px) no-repeat,
    var(--canopy-bottom) bottom / 1440px 56px repeat-x;
  mask:
    var(--canopy-top) top / 1440px 56px repeat-x,
    linear-gradient(#000, #000) center / 100% calc(100% - 110px) no-repeat,
    var(--canopy-bottom) bottom / 1440px 56px repeat-x;
  overflow: clip; color: var(--wood-ink);
  background:
    radial-gradient(80% 55% at 50% 0%, rgba(85, 160, 52, .55), rgba(85, 160, 52, 0) 70%),
    linear-gradient(180deg, #2F6B1E, #1E4510);
}
/* Dark leaves at both edges; their inner side fades out, so wherever the
   box crops the image no straight edge shows. */
.modes-leaves::before, .modes-leaves::after {
  content: ""; position: absolute; top: -40px; bottom: -40px; width: clamp(150px, 24vw, 340px);
  background: url("/static/img/leaves-left.webp") left center / auto 100% no-repeat;
  opacity: .32; filter: brightness(.45) saturate(1.3); pointer-events: none;
  -webkit-mask: linear-gradient(to right, #000 35%, transparent);
  mask: linear-gradient(to right, #000 35%, transparent);
}
.modes-leaves::before { left: -60px; }
.modes-leaves::after {
  right: -60px; background-image: url("/static/img/leaves-right.webp"); background-position: right center;
  -webkit-mask: linear-gradient(to left, #000 35%, transparent);
  mask: linear-gradient(to left, #000 35%, transparent);
}
.modes .wrap { position: relative; }
.on-dark .kicker { background: rgba(255, 246, 226, .12); color: #BDF0A8; }
.on-dark .title { color: var(--wood-ink); text-shadow: 0 3px 0 rgba(10, 30, 5, .45); }
.on-dark .title .accent { color: #8EE86A; }
.on-dark .lead { color: rgba(255, 246, 226, .82); }
.mode-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-top: 84px; }
.mode {
  position: relative;
  padding: 0 18px 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #FFF8EA, #F6E7C9);
  color: var(--ink); text-align: center;
  box-shadow: 0 6px 0 rgba(10, 30, 5, .45), 0 24px 40px rgba(5, 20, 0, .35);
  transition: translate .4s var(--ease-pop);
}
.mode:hover { translate: 0 -8px; }
.mode-art { position: relative; width: 92%; aspect-ratio: 1; margin: -70px auto 2px; }
.mode-art::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--m-hi) 85%, white), color-mix(in srgb, var(--m) 55%, transparent) 55%, transparent 74%);
  animation: halo 3.6s ease-in-out infinite;
}
.mode:nth-child(2) .mode-art::before { animation-delay: -.9s; }
.mode:nth-child(3) .mode-art::before { animation-delay: -1.8s; }
.mode:nth-child(4) .mode-art::before { animation-delay: -2.7s; }
.mode-art img {
  position: relative; width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 12px 10px rgba(40, 25, 5, .3));
  transition: transform .45s var(--ease-pop);
}
.mode:hover .mode-art img { transform: scale(1.06) translateY(-4px); }
.mode-name {
  display: inline-block; margin: 0 0 10px; padding: 6px 18px 8px;
  border: 3px solid var(--rim); border-radius: 15px;
  background: linear-gradient(180deg, var(--m-hi), var(--m));
  box-shadow: 0 4px 0 var(--m-sh);
  font: 400 23px/1.1 var(--display); color: #FFFFFF; text-shadow: 0 2px 0 var(--m-sh);
}
.mode-sun .mode-name { color: var(--ink); text-shadow: none; }
.mode p { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }

/* Make it yours */
.tribe-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 30px); }
.tribe-card { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); }
.tribe-card > :first-child { flex: 1 0 auto; }
.tribe-card h3 { margin: 26px 0 6px; font: 400 clamp(24px, 2.2vw, 30px)/1.1 var(--display); }
.tribe-card p { margin: 0; font-weight: 650; color: var(--ink-2); }
.avatars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); padding-top: 34px; }
.avatar {
  position: relative; aspect-ratio: 1; padding: 4px;
  border-radius: 50%; background: var(--cream-hi);
  box-shadow: 0 4px 10px rgba(89, 58, 16, .22);
  transition: translate .35s var(--ease-pop);
}
.avatar:nth-child(even) { translate: 0 14px; }
.avatar > img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar .emote {
  position: absolute; left: 50%; bottom: 62%; z-index: 2; width: 118%; max-width: none;
  translate: -50% 0; transform-origin: 50% 100%; pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(64, 42, 10, .3));
  animation: emote 1.9s var(--ease-out) forwards;
}
.deck-fan { position: relative; height: clamp(200px, 21vw, 260px); }
.deck-fan img {
  position: absolute; left: 50%; bottom: 44px; width: clamp(92px, 9.4vw, 124px); height: auto;
  border: 5px solid var(--cream-hi); border-radius: 14px;
  box-shadow: 0 4px 0 rgba(64, 42, 10, .25), 0 10px 16px rgba(89, 58, 16, .28);
  transform-origin: 50% 160%;
  translate: -50% 0;
  rotate: calc((var(--i) - 2.5) * 11deg);
  transition: rotate .5s var(--ease-pop), translate .5s var(--ease-pop);
}
.tribe-card:hover .deck-fan img { rotate: calc((var(--i) - 2.5) * 15deg); }
.tribe-card:hover .deck-fan img:nth-child(4) { translate: -50% -8px; }

/* FAQ */
.faq { padding-top: clamp(40px, 5vw, 70px); }
.faq-wrap { max-width: calc(860px + 2 * var(--gutter)); }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 22px; background: var(--cream); box-shadow: 0 4px 0 rgba(110, 70, 20, .18); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 19px 20px 19px 24px; list-style: none; cursor: pointer;
  font: 400 21px/1.2 var(--display); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) center / 14px 3px no-repeat,
    linear-gradient(#FFFFFF, #FFFFFF) center / 3px 14px no-repeat,
    linear-gradient(180deg, #6FD86A, #2E9E3F);
  box-shadow: 0 3px 0 #1E7A2D;
  transition: transform .35s var(--ease-pop);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 24px 22px; font-weight: 650; color: var(--ink-2); }
.faq-item p a { color: var(--leaf-sh); font-weight: 900; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

/* Final call */
.final { position: relative; overflow: clip; padding: clamp(70px, 9vw, 130px) 0 clamp(170px, 17vw, 250px); }
.final-scene { transform: scaleX(-1); background-position: center 72%; }
.final-scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--sand) 0%, rgba(233, 201, 143, .2) 26%, rgba(233, 201, 143, 0) 50%);
}
.final-in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px);
}
.final-art { width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(64, 42, 10, .32)); }
.final-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.sign-final { font-size: clamp(40px, 4.8vw, 66px); }
.final-band {
  position: absolute; left: 50%; bottom: -2px; z-index: 3;
  width: max(100%, 980px); max-width: none; height: auto;
  translate: -50% 0; pointer-events: none;
}

/* Footer */
.footer { position: relative; padding: 34px 0 44px; background: #1D3B10; color: rgba(255, 246, 226, .82); font-size: 15px; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px 40px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 52px; height: 52px; border-radius: 14px; }
.footer-brand strong { font: 400 24px/1.1 var(--display); color: var(--wood-ink); }
.footer-brand p { margin: 2px 0 0; font-weight: 650; opacity: .82; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.footer-links a, .footer-langs a { font-weight: 800; text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-langs a:hover { color: #8EE86A; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-langs a { padding: 5px 11px; border-radius: 999px; background: rgba(255, 246, 226, .08); font-size: 14px; }
.footer-langs a[aria-current] { background: rgba(142, 232, 106, .18); color: #BDF0A8; }
.footer-rights { margin: 0; justify-self: end; font-size: 13px; opacity: .6; }

/* ---------------------------------------------------------------- waitlist */
.waitlist {
  position: relative; overflow: clip;
  display: flex; justify-content: center;
  min-height: 100svh; padding: 112px var(--gutter) 72px;
}
.waitlist-scene { background-position: center 40%; }
.waitlist-scene::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 50% 45%, rgba(246, 223, 174, .55), rgba(246, 223, 174, 0) 75%);
}
.waitlist .hero-leaves { height: 100%; top: 0; }
.waitlist-in { position: relative; z-index: 3; width: 100%; max-width: 580px; display: flex; flex-direction: column; align-items: center; }
.waitlist-mascot { position: relative; z-index: 2; width: 200px; aspect-ratio: 2 / 3; margin-bottom: -58px; }
.waitlist-mascot .sun { top: 46%; width: 230%; }
.waitlist-mascot img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity .3s, transform .6s var(--ease-pop);
  filter: drop-shadow(0 10px 12px rgba(64, 42, 10, .25));
}
.mascot-wait { animation: breathe 5s ease-in-out infinite; }
.mascot-done { opacity: 0; transform: scale(.6) rotate(-6deg); }
.is-done .mascot-wait { opacity: 0; transform: scale(.8); animation: none; }
.is-done .mascot-done { opacity: 1; transform: none; }
.waitlist-panel { width: 100%; }
.waitlist-panel .panel-in { padding: 70px clamp(18px, 4vw, 34px) 30px; text-align: center; }
.waitlist-form-view, .waitlist-done-view { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.waitlist-done-view { display: none; padding-bottom: 8px; outline: none; }
.is-done .waitlist-form-view { display: none; }
.is-done .waitlist-done-view { display: flex; animation: drop .6s var(--ease-pop); }
.sign-panel { font-size: clamp(32px, 6.4vw, 48px); }
.waitlist-lead { margin: 0; max-width: 30em; font-size: 17.5px; font-weight: 700; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.waitlist-form { display: flex; gap: 12px; width: 100%; margin-top: 6px; }
.waitlist-form .field { height: 62px; font-size: 18px; }
.fine { margin: 0; font-size: 13.5px; font-weight: 650; color: var(--ink-3); }
.fine a { color: var(--leaf-sh); font-weight: 800; }
.meanwhile { width: 100%; margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.meanwhile-title {
  margin: 0; padding: .3em .95em .36em;
  border: 3px solid var(--wood-line); border-radius: 999px;
  background: var(--parchment) var(--parch-tex) 0 0 / 220px; box-shadow: 0 4px 0 var(--wood-edge);
  font: 400 21px/1.1 var(--display); color: var(--ink);
}
.meanwhile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.mean-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: 22px; text-decoration: none;
  transition: translate .3s var(--ease-pop);
}
.mean-card:hover { translate: 0 -4px; }
.mean-card img { flex: none; width: 54px; height: 54px; object-fit: contain; }
.mean-card span { font-size: 14.5px; font-weight: 650; line-height: 1.4; color: var(--ink-2); }
.mean-card strong { display: block; margin-bottom: 2px; font: 400 19px/1.15 var(--display); color: var(--ink); }
.back-link {
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255, 247, 232, .88); box-shadow: 0 3px 0 rgba(110, 70, 20, .2);
  font-weight: 800; text-decoration: none; color: var(--ink-2);
}
.waitlist .demo-confetti i { width: 11px; height: 7px; }

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

/* ---------------------------------------------------------------- motion */
@keyframes spin { to { rotate: 360deg; } }
@keyframes sway { 0%, 100% { rotate: -1.4deg; } 50% { rotate: 1.4deg; } }
@keyframes breathe { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.01); } }
@keyframes halo { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes drop { from { transform: translateY(-10px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes match {
  from { box-shadow: 0 2.6cqw 0 rgba(64, 42, 10, .3), 0 0 0 0 rgba(255, 212, 59, 0); }
  to { box-shadow: 0 2.6cqw 0 rgba(64, 42, 10, .3), 0 0 0 1.6cqw #FFD43B, 0 0 9cqw 3cqw rgba(255, 212, 59, .8); }
}
@keyframes pop-score { 40% { scale: 1.25; } }
@keyframes confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  35% { opacity: 1; transform: translate(calc(var(--dx) * .55), var(--up)) rotate(calc(var(--r) * .4)); }
  100% { opacity: 0; transform: translate(var(--dx), var(--down)) rotate(var(--r)); }
}
@keyframes emote {
  0% { opacity: 0; transform: translateY(14px) scale(.3); }
  16% { opacity: 1; transform: translateY(-4px) scale(1.08); }
  24%, 80% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-16px) scale(.9); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .topnav { display: none; }
  .mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 96px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; }
  .facts li:nth-child(n + 3) { border-top: 2px dashed rgba(122, 74, 28, .2); }
}

@media (max-width: 860px) {
  .hero { min-height: 0; padding: 104px 0 96px; }
  .hero-in { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .hero-copy { align-items: center; }
  .hero-visual { max-width: 420px; order: 2; }
  .stores { justify-content: center; }
  .how-grid { grid-template-columns: 1fr; grid-template-areas: "head" "demo" "steps"; }
  .how-head { align-items: center; text-align: center; }
  .step.is-active { transform: none; }
  .feature-cards {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(78vw, 340px);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
    margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 24px;
    scrollbar-width: none;
  }
  .feature-cards::-webkit-scrollbar { display: none; }
  .feature { scroll-snap-align: start; }
  .js .feature.reveal { opacity: 1; transform: none; }
  .tribe-grid, .final-in { grid-template-columns: 1fr; }
  .final-copy { align-items: center; text-align: center; }
  .final-art { max-width: 560px; margin: 0 auto; }
  .footer-in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-links, .footer-langs { justify-content: center; }
  .footer-rights { justify-self: center; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero-scene, .waitlist-scene { background-image: url("/assets/assets/scenes/jungle_clearing.webp"); background-position: center top; }
  .final-scene { background-image: url("/assets/assets/scenes/jungle_clearing.webp"); background-position: center 80%; }
  .hero-leaves { top: -2%; height: 52%; opacity: .95; }
  .hero-leaves-l { left: -34vw; }
  .hero-leaves-r { right: -34vw; }
  .waitlist .hero-leaves { height: 46%; }
  .topbar { padding: 10px 10px 0; }
  .topbar-in { gap: 6px; padding: 6px 6px 6px 8px; }
  .brand { gap: 8px; font-size: 18px; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
  .topbar-end { gap: 2px; }
  .lang summary { padding: 0 9px; }
  .lang summary svg { display: none; }
  .topbar .btn-sm { padding: 0 13px; font-size: 15.5px; }
  .facts-wrap { margin-top: -54px; }
  .facts li { flex-direction: column; text-align: center; gap: 6px; font-size: 14px; padding: 10px 6px; }
  .facts img { width: 46px; height: 46px; }
  .joinbar { grid-template-columns: auto minmax(0, 1fr); }
  .joinbar-field { grid-column: 1 / -1; }
  .field-code { flex: 1; }
  .mode-grid { gap: 84px 14px; margin-top: 76px; }
  .mode { padding: 0 12px 18px; border-radius: 22px; }
  .mode-art { margin-top: -54px; }
  .mode-name { font-size: 19px; padding: 5px 12px 7px; }
  .mode p { font-size: 14px; }
  .avatars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .avatar:nth-child(even) { translate: none; }
  .avatar:nth-child(8n + 2), .avatar:nth-child(8n + 4), .avatar:nth-child(8n + 5), .avatar:nth-child(8n + 7) { translate: 0 10px; }
  .waitlist-form { flex-direction: column; }
  .meanwhile-grid { grid-template-columns: 1fr; }
  .faq-item summary { font-size: 19px; padding: 17px 16px 17px 20px; }
  .faq-item p { padding: 0 20px 20px; }
}

@media (max-width: 340px) {
  .mode-grid { grid-template-columns: 1fr; }
}

/* Only the narrowest phones drop the name next to the icon. */
@media (max-width: 352px) {
  .brand span { display: none; }
}

@media (max-width: 400px) {
  .store { padding-right: 18px; }
  .store-text b { font-size: 22px; }
}
