:root {
  --bg: #030303;
  --ink: #f4f4f1;
  --dim: rgba(244, 244, 241, 0.64);
  --faint: rgba(244, 244, 241, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --card: rgba(16, 16, 16, 0.72);
  --accent: #f1e64a; /* the pixel smiley on Mooner's boot */
  --up: #3ee07f; /* profit green, for the PnL tags around Mooner */
  --radius: 22px;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", ui-monospace, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--ink); color: var(--bg); }

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

/* an emoji swapped for a Mooner face by mooji.js; sized like the glyph it replaces */
img.mooji {
  display: inline-block; width: 1.3em; height: 1.3em;
  margin: 0 0.02em; vertical-align: -0.3em;
  user-select: none;
}

#stars {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
main, .nav, .foot { position: relative; z-index: 1; }

/* ---------- type ---------- */
.eyebrow, .label {
  font: 400 12px/1 var(--pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow { color: var(--dim); }
.h2 {
  font: 700 clamp(34px, 5vw, 60px)/1.02 var(--display);
  letter-spacing: -0.035em;
}
.lead { color: var(--dim); font-size: 17px; max-width: 34em; text-wrap: pretty; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px;
  border: 0; border-radius: 14px;
  background: var(--ink); color: #050505;
  font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4), 0 10px 40px -10px rgba(255, 255, 255, 0.45);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 4.5s ease-in-out infinite;
  mix-blend-mode: soft-light;
}
.btn span { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #fff, 0 14px 50px -10px rgba(255, 255, 255, 0.6); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:focus-visible, input:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 11px; font-size: 14px; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(16px, 3vw, 32px);
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(3, 3, 3, 0.62);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
/* mooner.svg is black with the character cut out, so a white backing shows the character */
.brand-mark { display: block; width: 34px; height: 34px; border-radius: 9px; background: #fff; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; transform: scale(1.02); }
.brand-word { font: 800 22px/1 var(--display); letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--dim); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: max(100svh, 780px);
  display: flex; flex-direction: column; align-items: center;
  padding: 104px 16px 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wordmark {
  margin: 14px 0 6px;
  font: 800 clamp(92px, 17vw, 236px)/0.8 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.065em;
  padding-right: 0.06em; /* keep the tight tracking optically centred */
  background: linear-gradient(180deg, #ffffff 30%, #b9b9b4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.12));
}
.tagline {
  margin-top: 18px;
  font: 600 clamp(22px, 2.6vw, 32px)/1.15 var(--display);
  letter-spacing: -0.025em;
}
.sub { margin-top: 10px; color: var(--dim); max-width: 36em; font-size: clamp(15px, 1.25vw, 17px); text-wrap: balance; }

/* the waitlist: one capsule, field and button in a row at every width */
.waitlist {
  --ring: rgba(255, 255, 255, 0.16);
  --halo: rgba(255, 255, 255, 0);
  position: relative;
  display: flex; align-items: center; gap: 4px;
  width: min(480px, 100%); height: 62px;
  margin-top: 26px; padding: 6px 6px 6px 20px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.8), rgba(9, 9, 9, 0.86));
  box-shadow: inset 0 0 0 1px var(--ring), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 5px var(--halo), 0 24px 60px -24px #000;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s ease;
}
.waitlist:hover { --ring: rgba(255, 255, 255, 0.26); }
.waitlist:focus-within { --ring: rgba(255, 255, 255, 0.5); --halo: rgba(255, 255, 255, 0.06); }
.waitlist:has(input[aria-invalid="true"]) { --ring: rgba(255, 138, 122, 0.7); --halo: rgba(255, 138, 122, 0.08); }
.waitlist.done { --ring: rgba(241, 230, 74, 0.6); --halo: rgba(241, 230, 74, 0.07); }
.waitlist.shake { animation: shake 0.42s ease; }
@keyframes shake { 20% { translate: -7px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 2px 0; } }

.wl-icon {
  flex: none; width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  color: var(--faint); transition: color 0.3s;
}
.waitlist:focus-within .wl-icon { color: var(--ink); }
.waitlist.done .wl-icon { color: var(--accent); }
.waitlist input {
  flex: 1; width: 0; min-width: 0; height: 100%; padding: 0 8px 0 10px; /* width 0: grow into the row, never widen the hero */
  border: 0; border-radius: 0; background: transparent;
  color: var(--ink); font: 500 16px/1 var(--body); /* 16px: iOS zooms into anything smaller */
  caret-color: var(--accent);
}
.waitlist input::placeholder { color: var(--faint); }
.waitlist input:focus-visible { outline: none; } /* the capsule's ring shows focus */
.waitlist input:disabled { opacity: 1; color: var(--dim); -webkit-text-fill-color: var(--dim); }
.waitlist input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 0s 600000s, color 0s 600000s; }

.waitlist .btn { flex: none; height: 100%; gap: 8px; padding: 0 18px 0 22px; border-radius: 99px; }
.waitlist .btn:disabled { pointer-events: none; }
.wl-arrow, .wl-check {
  position: relative; z-index: 1; width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.25s ease;
}
.waitlist .btn:hover .wl-arrow { transform: translateX(3px); }
.waitlist.busy .wl-arrow { animation: nudge 0.7s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); opacity: 0.5; } }
.wl-check { display: none; }
.waitlist.done .wl-arrow { display: none; }
.waitlist.done .wl-check { display: block; }
.waitlist.done .btn { background: var(--accent); box-shadow: 0 0 0 1px rgba(241, 230, 74, 0.6), 0 10px 40px -10px rgba(241, 230, 74, 0.55); }

.wl-msg {
  position: absolute; left: 0; right: 0; top: calc(100% + 12px);
  width: fit-content; max-width: 100%; margin: 0 auto; padding: 5px 12px;
  border-radius: 99px; background: rgba(3, 3, 3, 0.82); /* stays legible over Mooner's antenna */
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 400 12px/1.4 var(--pixel); letter-spacing: 0.04em; color: var(--dim);
  text-align: center;
}
.wl-msg:empty { display: none; }
.wl-msg.err { color: #ff8a7a; }
.waitlist.done .wl-msg { color: var(--accent); }

.hero-stage {
  position: relative; z-index: 2;
  /* sized off the viewport height so the whole astronaut (1100x1067) floats above the fold */
  width: clamp(260px, calc((100svh - 516px) * 1.03), min(420px, 78vw));
  margin-top: 14px;
  will-change: transform;
}
.mooner-float { animation: float 6s ease-in-out infinite; transform-origin: 50% 60%; }
.mooner {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.08));
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  -webkit-user-drag: none; user-select: none;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(1.5deg); }
}
/* the hero Mooner drifts in zero-g: slow, never quite still (the pose already floats) */
.hero .mooner-float { animation: drift 9s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  30% { transform: translate3d(10px, -22px, 0) rotate(3deg); }
  65% { transform: translate3d(-8px, -8px, 0) rotate(-4deg); }
}

/* the green PnL tags floating around Mooner */
.bubble {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px 8px 10px; border-radius: 99px;
  background: rgba(5, 20, 11, 0.84);
  box-shadow: inset 0 0 0 1px rgba(62, 224, 127, 0.4), 0 0 28px -6px rgba(62, 224, 127, 0.45);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--up); text-shadow: 0 0 10px rgba(62, 224, 127, 0.55);
  font: 400 12px/1 var(--pixel); letter-spacing: 0.04em; white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.bubble i { width: 10px; height: 9px; background: var(--up); clip-path: polygon(50% 0, 100% 100%, 0 100%); } /* up arrow */
/* anchored in the empty space around the pose: over the raised left hand, beside the helmet,
   under the right hand */
.b1 { right: 80%; top: 8%; animation-delay: -1s; }
.b2 { left: 90%; top: 24%; animation-delay: -2.6s; }
.b3 { left: 64%; top: 84%; animation-delay: -3.8s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.moon-wrap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  height: clamp(260px, 40vh, 420px);
  pointer-events: none;
  will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
}
#moon { position: absolute; inset: 0; width: 100%; height: 100%; }
/* fallback moon when WebGL is unavailable */
.no-webgl .moon-wrap::before {
  content: ""; position: absolute; left: 50%; top: 32%;
  width: max(160vw, 1100px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 8%, #d9d9d4, #8e8e89 22%, #3b3b39 48%, #151515 70%);
  box-shadow: 0 -10px 80px rgba(255, 255, 255, 0.18);
}
.hero::after { /* fade the moon into the next section */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 2;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

/* ---------- sections ---------- */
section:not(.hero) { padding: clamp(80px, 11vw, 140px) clamp(16px, 4vw, 48px); }

.how {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: clamp(40px, 6vw, 96px); align-items: center;
  max-width: 1180px; margin: 0 auto;
}
.how .h2 { margin-top: 16px; }
.how .lead { margin-top: 16px; }
.steps { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li {
  display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font: 400 12px/1.9 var(--pixel); color: var(--faint); }
.steps h3 { font: 600 19px/1.3 var(--display); letter-spacing: -0.02em; }
.steps p { color: var(--dim); font-size: 15px; margin-top: 3px; text-wrap: pretty; }

/* ---------- presale card ---------- */
.presale {
  position: relative;
  padding: 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(24, 24, 24, 0.86), rgba(10, 10, 10, 0.9));
  box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px -40px rgba(255, 255, 255, 0.14), 0 30px 60px -30px #000;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.ps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps-token { display: flex; align-items: center; gap: 12px; }
.ps-icon { width: 40px; height: 40px; border-radius: 12px; background: #fff; overflow: hidden; flex: none; }
.ps-token b { display: block; font: 700 17px/1.2 var(--display); letter-spacing: -0.01em; }
.ps-token small, .ps-timer small { display: block; font: 400 10px/1.4 var(--pixel); letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.ps-timer { text-align: right; }
.ps-timer b { font: 400 18px/1.2 var(--pixel); font-variant-numeric: tabular-nums; }

.ps-seats {
  display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 8px;
  min-height: 176px; margin: 18px 0 16px; padding: 16px 12px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line);
}
.seat {
  position: relative; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: #101010 url("assets/mooner-pfps.webp") no-repeat;
  background-size: 800% 600%;            /* the 8 x 6 PFP sheet; main.js picks the cell */
  background-position: calc(var(--x, 0) * 100% / 7) calc(var(--y, 0) * 100% / 5);
  overflow: hidden;
  animation: pop 0.5s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.seat.creator { border: 2px solid var(--accent); box-shadow: 0 0 18px -2px rgba(241, 230, 74, 0.55); }
.seat.out { opacity: 0; transform: scale(0.3); }
.seat::after { /* join ripple */
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6);
  animation: ripple 0.9s ease-out;
}
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes ripple { to { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } }

.ps-bar { position: relative; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.ps-bar i {
  position: absolute; inset: 0 auto 0 0; width: var(--p, 0%);
  border-radius: inherit;
  background: repeating-linear-gradient(-45deg, #fff 0 6px, #d7d7d2 6px 12px);
  background-size: 17px 17px;
  animation: stripes 0.8s linear infinite;
  transition: width 0.5s cubic-bezier(0.3, 0.8, 0.3, 1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.45);
}
@keyframes stripes { to { background-position: 17px 0; } }
.ps-meta { display: flex; justify-content: space-between; margin-top: 10px; font: 400 12px/1.4 var(--pixel); letter-spacing: 0.04em; }
.ps-count { color: var(--faint); }

.ps-feed { list-style: none; margin: 14px 0 0; padding: 0; height: 84px; overflow: hidden; }
.ps-feed li {
  display: flex; justify-content: space-between; gap: 10px;
  height: 28px; align-items: center;
  font-size: 13px; color: var(--dim);
  border-top: 1px solid var(--line);
  animation: feedIn 0.4s ease both;
}
.ps-feed li b { color: var(--ink); font-weight: 500; }
.ps-feed li em { font-style: normal; font: 400 11px/1 var(--pixel); color: var(--faint); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-8px); } }

.ps-meta, .ps-feed { transition: opacity 0.35s ease; }
.presale.is-live .ps-meta, .presale.is-live .ps-feed { opacity: 0; }
.ps-live {
  position: absolute; left: 20px; right: 20px; bottom: 20px; height: 124px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  border-radius: 16px; padding: 12px;
  background: rgba(241, 230, 74, 0.04); box-shadow: inset 0 0 0 1px rgba(241, 230, 74, 0.35);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ps-live svg { width: 100%; height: 56px; overflow: visible; }
.ps-line { fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.ps-live p { font: 400 11px/1 var(--pixel); letter-spacing: 0.04em; color: var(--dim); display: flex; align-items: center; gap: 7px; }
.ps-live b { color: var(--ink); font-weight: 400; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.presale.is-live .ps-live { opacity: 1; transform: none; }
.presale.is-live .ps-line { animation: draw 2.2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.presale.is-full .ps-bar i { background: var(--accent); box-shadow: 0 0 26px rgba(241, 230, 74, 0.7); }
.presale.is-full .ps-pool { color: var(--accent); }

/* ---------- why grid ---------- */
.why { max-width: 1180px; margin: 0 auto; text-align: center; }
.why .h2 { margin-top: 16px; }
.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
  margin-top: 48px; text-align: left;
}
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 330px; padding: 24px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.card::before { /* glow that follows the cursor */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 120%), rgba(255, 255, 255, 0.09), transparent 60%);
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.card:hover::before { opacity: 1; }
.card h3 { margin-top: 10px; font: 700 22px/1.15 var(--display); letter-spacing: -0.025em; }
.card > p:not(.label) { margin-top: 8px; color: var(--dim); font-size: 14.5px; text-wrap: pretty; }
.viz { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: center; min-height: 120px; }

/* no snipers: a scope that never finds a target */
.viz-scope { flex-direction: column; gap: 12px; }
.scope {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
  animation: hunt 7s ease-in-out infinite;
}
.scope::before, .scope::after { content: ""; position: absolute; background: rgba(255, 255, 255, 0.6); }
.scope::before { left: 50%; top: -8px; bottom: -8px; width: 1.5px; transform: translateX(-50%); }
.scope::after { top: 50%; left: -8px; right: -8px; height: 1.5px; transform: translateY(-50%); }
.scope span { position: absolute; inset: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--accent); }
.viz-scope code { font: 400 11px/1 var(--pixel); color: var(--faint); letter-spacing: 0.04em; }
@keyframes hunt {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-36px, -8px); }
  40% { transform: translate(28px, 6px); }
  60% { transform: translate(-10px, 10px); }
  80% { transform: translate(34px, -6px); }
}

/* one price */
.viz-price { gap: 12px; }
.viz-price div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.viz-price small { font: 400 10px/1 var(--pixel); color: var(--faint); letter-spacing: 0.06em; text-transform: uppercase; }
.viz-price b { font: 700 26px/1 var(--display); color: var(--faint); margin-bottom: 18px; }
.av {
  display: block; width: 52px; height: 52px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  animation: breathe 3s ease-in-out infinite;
}
.av1 { background: radial-gradient(circle at 35% 30%, #fff, #9a9a95 45%, #2a2a28 80%); box-shadow: inset 0 0 0 2px var(--accent); }
.av2 { background: radial-gradient(circle at 35% 30%, #e8e8e4, #6f6f6b 50%, #1c1c1b 85%); animation-delay: -1s; }
.av3 { background: radial-gradient(circle at 35% 30%, #cfcfca, #555552 50%, #121212 85%); animation-delay: -2s; }
@keyframes breathe { 50% { transform: scale(1.07); } }

/* free to change */
.viz-slider { flex-direction: column; align-items: stretch; gap: 12px; }
.track { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); }
.track .fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #fff; animation: slide-w 5s ease-in-out infinite; }
.track .knob {
  position: absolute; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.12), 0 4px 14px #000;
  animation: slide-l 5s ease-in-out infinite;
}
@keyframes slide-w { 0%, 100% { width: 22%; } 35% { width: 86%; } 65% { width: 48%; } }
@keyframes slide-l { 0%, 100% { left: 22%; } 35% { left: 86%; } 65% { left: 48%; } }
.slider-meta { display: flex; justify-content: space-between; font: 400 11px/1 var(--pixel); color: var(--faint); letter-spacing: 0.04em; }
.slider-meta em { font-style: normal; color: var(--accent); }

/* one hour */
.viz-clock { position: relative; }
.viz-clock svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 7; }
.ring-fg { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 314.16; animation: countdown 8s linear infinite; }
.viz-clock span { position: absolute; font: 400 16px/1 var(--pixel); }
@keyframes countdown { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 314.16; } }

/* titles: the app's own badges (tools/export-badges.mjs), one per title at different levels */
.viz-titles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 10px; justify-content: stretch; }
.viz-titles div { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; text-align: center; }
.viz-titles img { width: 56px; height: 56px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5)); }
.viz-titles b { display: block; font: 400 10.5px/1.2 var(--pixel); letter-spacing: 0.04em; text-transform: uppercase; }
.viz-titles small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.3; color: var(--dim); }

/* leaderboard: who's in one presale, with their title and rank */
.viz-board { flex-direction: column; align-items: stretch; gap: 8px; }
.lb-head, .lb-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.lb-head { font: 400 10px/1 var(--pixel); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 0 2px 2px; }
.lb-row { grid-template-columns: 30px 1fr auto; }
.lb-pfp { width: 30px; height: 30px; border-radius: 50%; background: #101010 no-repeat; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.card.in .lb-row:not(.lb-anon) .lb-pfp { /* the PFP sheet, only once the card is on screen */
  background-image: url("assets/mooner-pfps.webp");
  background-size: 800% 600%;
  background-position: calc(var(--x, 0) * 100% / 7) calc(var(--y, 0) * 100% / 5);
}
.lb-row p { min-width: 0; }
.lb-row b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-row small { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--dim); white-space: nowrap; }
.lb-row small img { width: 16px; height: 16px; flex: none; }
.lb-row em { font: 400 12px/1 var(--pixel); font-style: normal; font-variant-numeric: tabular-nums; }
.lb-anon .lb-pfp { background: none; box-shadow: none; border: 1.5px dashed rgba(255, 255, 255, 0.3); } /* a fresh wallet: no PFP, no title, still listed */
.lb-anon b { font-family: var(--pixel); font-weight: 400; font-size: 11px; letter-spacing: 0.04em; }
.lb-anon em, .lb-anon small { color: var(--faint); }

/* ---------- CTA ---------- */
.cta { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; overflow: hidden; padding-bottom: clamp(110px, 14vw, 170px) !important; }
.orbits { --size: min(560px, 92vw); position: relative; width: var(--size); aspect-ratio: 1; margin-bottom: calc(var(--size) * -0.2); }
.orbit { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, 0.2); }
.o1 { width: 100%; height: 100%; animation: spin 45s linear infinite; }
.o2 { width: 74%; height: 74%; animation: spin 30s linear infinite reverse; border-style: solid; border-color: rgba(255, 255, 255, 0.1); }
.o3 { width: 48%; height: 48%; animation: spin 22s linear infinite; }
.orbit i {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px; margin: -8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #8e8e89 55%, #262625);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.35);
  transform: rotate(var(--a)) translateY(calc(var(--r) * -1));
}
.o1 i { --r: min(280px, 46vw); }
.o2 i { --r: min(207px, 34vw); width: 12px; height: 12px; margin: -6px; }
.o3 i { --r: min(134px, 22vw); width: 10px; height: 10px; margin: -5px; }
.orbit i:nth-child(1) { --a: 20deg; }
.orbit i:nth-child(2) { --a: 150deg; }
.orbit i:nth-child(3) { --a: 255deg; }
.orbit i:nth-child(4) { --a: 320deg; }
.o1 i:nth-child(2) { background: var(--accent); box-shadow: 0 0 18px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-float {
  position: absolute; left: 50%; top: 50%; width: 40%;
  transform: translate(-50%, -56%); /* the head's sphere sits low in its box (antenna on top): centre the sphere */
}
.cta-float img { width: 100%; height: auto; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.8)); }
.cta > :not(.orbits) { position: relative; z-index: 1; }
.cta .lead { margin-top: 16px; }
.cta .waitlist { margin-top: 28px; }

/* ---------- footer ---------- */
.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 26px clamp(16px, 4vw, 48px) 34px;
  border-top: 1px solid var(--line);
  font: 400 11px/1.4 var(--pixel); letter-spacing: 0.04em; color: var(--faint);
}
.foot .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.foot .brand-word { font-size: 18px; color: var(--ink); letter-spacing: -0.04em; }

/* ---------- reveal on scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(26px); filter: blur(6px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0s), filter 0.9s ease var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .how { grid-template-columns: 1fr; }
  .presale { max-width: 560px; width: 100%; margin: 0 auto; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  /* keep Mooner floating clear of the horizon on phones */
  .hero { padding-top: 92px; padding-bottom: 180px; }
  .hero-stage { width: min(250px, 64vw); margin-top: 48px; } /* room for the form's message pill */
  .moon-wrap { height: 250px; }
  .wordmark { margin-top: 10px; }
  .waitlist { height: 58px; padding-left: 16px; }
  .wl-msg { font-size: 10px; } /* one line at phone width */
  .waitlist .btn { padding: 0 15px 0 18px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .bubble { font-size: 10px; }
  /* the stage is narrow here, so the bubbles tuck into the pose's gaps instead of beside it */
  .b1 { left: -22%; right: auto; top: 5%; }
  .b2 { left: auto; right: -22%; top: 84%; }
  .b3 { left: -20%; right: auto; top: 92%; }
  .ps-seats { min-height: 150px; }
  .seat { width: 38px; height: 38px; }
  .foot { justify-content: center; text-align: center; flex-direction: column; }
}

@media (max-width: 420px) {
  /* "join" alone on small phones; screen readers still hear "join waitlist" */
  .waitlist .btn .wl-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
