/* =====================================================
   SOLANA BEANS — cartoon design system
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Bagel+Fat+One&family=Fredoka:wght@400;500;600;700&display=swap');

:root {
  /* sky */
  --sky-top: #A6E3FF;
  --sky-bot: #7CC4FF;

  /* candy */
  --pink: #FF6FB3;
  --pink-deep: #B84A86;
  --coral: #FF5A6E;
  --coral-deep: #C73D52;
  --yellow: #FFD23F;
  --yellow-deep: #C49A1A;
  --lime: #A6E22E;
  --lime-deep: #6FA316;
  --lavender: #B084FF;
  --lavender-deep: #7654C4;
  --cyan: #36D7FF;
  --cyan-deep: #1F8FB5;
  --grass: #7CE38B;
  --grass-deep: #43A85B;

  /* surfaces */
  --cream: #FFF8EC;
  --cream-deep: #F2E5C9;
  --navy: #0D1A3A;
  --navy-soft: #2A3A66;
  --shadow: rgba(13, 26, 58, 0.18);
  --shadow-strong: rgba(13, 26, 58, 0.28);

  /* typography */
  --display: 'Luckiest Guy', 'Bagel Fat One', system-ui, sans-serif;
  --body: 'Fredoka', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------------- reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-weight: 500;
  color: var(--navy);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bot) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: separate; border-spacing: 0 12px; width: 100%; }

/* ---------------- typography ---------------- */
.display, h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 0.95;
  color: var(--cream);
  -webkit-text-stroke: 5px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--navy), 0 9px 22px rgba(13, 26, 58, 0.25);
  margin: 0;
}
h1 { font-size: clamp(56px, 9vw, 128px); }
h2 { font-size: clamp(40px, 6vw, 76px); }
h3 { font-size: clamp(22px, 3vw, 32px); -webkit-text-stroke: 3px var(--navy); text-shadow: 0 3px 0 var(--navy); }

.gradient-text {
  background: linear-gradient(180deg, #FFE6F2 0%, #FF6FB3 45%, #36D7FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gradient-lime {
  background: linear-gradient(180deg, #FFFCD9 0%, #FFD23F 50%, #A6E22E 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p { line-height: 1.55; font-weight: 500; }
small { font-size: 13px; opacity: 0.8; }

/* ---------------- layout helpers ---------------- */
.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}
section { position: relative; padding: 90px 0 70px; }
section .container > h2 { margin-bottom: 32px; text-align: center; }
.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pink-deep);
  font-size: 14px;
  text-align: center;
  margin-bottom: 8px;
}

/* ---------------- chunky surfaces ---------------- */
.card {
  background: var(--cream);
  border: 5px solid var(--navy);
  border-radius: 24px;
  box-shadow: 0 10px 0 var(--navy), 0 16px 30px var(--shadow-strong);
  padding: 28px;
  position: relative;
}
.card.tinted-pink   { background: #FFE7F1; }
.card.tinted-lime   { background: #EAFBD3; }
.card.tinted-cyan   { background: #DAF4FF; }
.card.tinted-yellow { background: #FFF3C9; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 3px solid var(--navy);
  border-radius: 16px;
  padding: 8px 14px;
  box-shadow: 0 4px 0 var(--navy), 0 7px 12px var(--shadow);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.chip.pink   { background: var(--pink);     color: var(--navy); }
.chip.cyan   { background: var(--cyan);     color: var(--navy); }
.chip.lime   { background: var(--lime);     color: var(--navy); }
.chip.yellow { background: var(--yellow);   color: var(--navy); }
.chip.coral  { background: var(--coral);    color: var(--cream); }

/* ---------------- pill buttons (squishy press) ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 4px solid var(--navy);
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 16px;
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 6px 0 var(--navy), 0 10px 20px var(--shadow);
  transition: transform 90ms ease, box-shadow 90ms ease, filter 120ms ease;
  user-select: none;
  white-space: nowrap;
}
.btn:hover:not(:disabled) { filter: brightness(1.04) saturate(1.05); }
.btn:active:not(:disabled) {
  transform: translateY(6px);
  box-shadow: 0 0 0 var(--navy), 0 2px 6px var(--shadow);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
/* Spectate-the-paid-race button: solid grey + unclickable until a race is live,
   then it lights up (lime, gently pulsing) automatically via the state poll. */
.spectate-btn { background:#cbd1db; color:#5b6573; box-shadow:0 6px 0 #9ba2ae, 0 10px 20px var(--shadow); }
.spectate-btn:disabled { opacity:1; }
.spectate-btn.is-live { background:var(--lime); color:var(--navy); box-shadow:0 6px 0 var(--lime-deep), 0 10px 20px var(--shadow); cursor:pointer; animation:spectateLive 1.6s ease-in-out infinite; }
.spectate-btn.is-live:active { box-shadow:0 0 0 var(--lime-deep), 0 2px 6px var(--shadow); }
@keyframes spectateLive { 0%,100%{ box-shadow:0 6px 0 var(--lime-deep), 0 10px 20px var(--shadow); } 50%{ box-shadow:0 6px 0 var(--lime-deep), 0 0 0 7px rgba(166,226,46,0.30); } }

.btn-lg { padding: 22px 36px; font-size: 19px; border-width: 5px; box-shadow: 0 8px 0 var(--navy), 0 12px 22px var(--shadow); }
.btn-lg:active:not(:disabled) { transform: translateY(8px); box-shadow: 0 0 0 var(--navy), 0 2px 6px var(--shadow); }

.btn-primary { background: var(--pink);    color: var(--navy); box-shadow: 0 6px 0 var(--pink-deep),    0 10px 20px var(--shadow); }
.btn-primary:active:not(:disabled){ box-shadow: 0 0 0 var(--pink-deep), 0 2px 6px var(--shadow);}
.btn-secondary { background: var(--cyan);  color: var(--navy); box-shadow: 0 6px 0 var(--cyan-deep),    0 10px 20px var(--shadow); }
.btn-secondary:active:not(:disabled){ box-shadow: 0 0 0 var(--cyan-deep), 0 2px 6px var(--shadow);}
.btn-coral   { background: var(--coral);   color: var(--cream); box-shadow: 0 6px 0 var(--coral-deep), 0 10px 20px var(--shadow); }
.btn-coral:active:not(:disabled){ box-shadow: 0 0 0 var(--coral-deep), 0 2px 6px var(--shadow);}
.btn-lime    { background: var(--lime);    color: var(--navy); box-shadow: 0 6px 0 var(--lime-deep),    0 10px 20px var(--shadow); }
.btn-lime:active:not(:disabled){ box-shadow: 0 0 0 var(--lime-deep), 0 2px 6px var(--shadow);}
.btn-yellow  { background: var(--yellow);  color: var(--navy); box-shadow: 0 6px 0 var(--yellow-deep),  0 10px 20px var(--shadow); }
.btn-yellow:active:not(:disabled){ box-shadow: 0 0 0 var(--yellow-deep), 0 2px 6px var(--shadow);}
.btn-paid    { background: #ffd23f;        color: #2a1a04; box-shadow: 0 6px 0 #8a6a14,             0 10px 20px var(--shadow); }
.btn-paid:active:not(:disabled){ box-shadow: 0 0 0 #8a6a14, 0 2px 6px var(--shadow);}
.btn-ghost   { background: #ffffff;        color: var(--navy); }

.btn-lg.btn-primary  { box-shadow: 0 8px 0 var(--pink-deep),   0 12px 22px var(--shadow); }
.btn-lg.btn-primary:active:not(:disabled)  { box-shadow: 0 0 0 var(--pink-deep),   0 2px 6px var(--shadow); }
.btn-lg.btn-secondary{ box-shadow: 0 8px 0 var(--cyan-deep),   0 12px 22px var(--shadow); }
.btn-lg.btn-secondary:active:not(:disabled){ box-shadow: 0 0 0 var(--cyan-deep),   0 2px 6px var(--shadow); }

/* ---------------- top nav ---------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(166,227,255,0.94) 0%, rgba(166,227,255,0.84) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--navy);
  box-shadow: 0 6px 0 var(--navy), 0 12px 22px var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 1px;
  color: var(--cream);
  -webkit-text-stroke: 3px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--navy);
}
.brand .mascot { width: 44px; height: 44px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 3px solid transparent;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.nav-links a:hover {
  background: var(--pink);
  border-color: var(--navy);
  box-shadow: 0 4px 0 var(--pink-deep);
  transform: translateY(-1px);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.sound-toggle {
  width: 44px; height: 44px;
  border: 3px solid var(--navy);
  background: var(--cream);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.sound-toggle:hover { transform: translateY(-1px); }
.sound-toggle:active { transform: translateY(4px); box-shadow: 0 0 0 var(--navy); }
.sound-toggle svg { width: 22px; height: 22px; stroke: var(--navy); }

.hamburger { display: none; }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  padding: 60px 0 80px;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  /* Crisp navy break between the GIF hero and the sky-blue sections below */
  border-bottom: 5px solid var(--navy);
  box-shadow: 0 6px 0 var(--navy), 0 12px 28px var(--shadow-strong);
}
/* Belt-and-braces: anything cloud / hill-band that ever lands inside the hero is hidden,
   since the blurred GIF replaces both the sky and the grass within the hero. */
.hero .sky-clouds,
.hero .hill-band { display: none !important; }
.hero .container {
  position: relative;
  z-index: 2;
  /* wider than the rest of the page so the three columns get room to breathe
     on big screens (stays centred, so it spreads evenly to both sides) */
  width: min(1480px, 94vw);
}
/* 3-column horizontal hero layout — locked, no wrapping on desktop:
   [ BEANS IN QUEUE ]   [ SOLANA BEANS wordmark + tagline + CTAs ]   [ PRIZE POT ]
   The wordmark stays dead-centre; cards flank it on the same horizontal line. */
.hero-grid {
  display: grid;
  /* equal side columns + a fluid centre; the side cards anchor to the
     outside edge so the big SOLANA BEANS wordmark has the whole middle
     to breathe in.  align-items: start keeps both cards on the same
     top line, align-content: center pushes the whole row into the
     vertical centre of the hero so the content sits on top of the
     visible part of the GIF instead of hugging the navbar. */
  grid-template-columns: 350px 1fr 350px;
  align-items: start;
  align-content: center;
  justify-content: center;   /* keep the wordmark + flanking cards centred as a group (the big wordmark widens the centre track, which used to push everything right) */
  gap: 40px;
  min-height: 86vh;
  padding: 60px 0;
  position: relative;
  z-index: 2;
}
.hero-card.queue { justify-self: start; }
.hero-card.pot   { justify-self: end; }
.hero-copy {
  position: relative;
  z-index: 4;
  text-align: center;
  width: 100%;
  max-width: 900px;
  justify-self: center;
  align-self: start;
  margin: 0 auto;
}
.hero-logo {
  font-family: var(--display);
  font-size: clamp(84px, 12vw, 180px);
  line-height: 0.86;
  color: var(--cream);
  /* Cream stroke pops the wordmark off the dark blurred GIF; navy 3D drop +
     soft black glow keep the chunky cartoon feel without disappearing. */
  -webkit-text-stroke: 6px #FFF8EC;
  paint-order: stroke fill;
  text-shadow:
    0 6px 0 #0D1A3A,
    0 0 22px rgba(153, 69, 255, 0.55),
    0 12px 34px rgba(0, 0, 0, 0.55);
  margin: 0 0 30px;
  letter-spacing: 2px;
}
.hero-logo .line {
  display: block;
}
/* Both lines use the official Solana brand gradient: purple → green → cyan */
.hero-logo .line.solana,
.hero-logo .line.beans {
  background: linear-gradient(90deg, #9945FF 0%, #14F195 50%, #00D1FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-logo .line.beans {
  background: linear-gradient(90deg, #00D1FF 0%, #14F195 50%, #9945FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* One-line SOLBEANS variant: spans sit inline, sized to fit a single line
   so it doesn't widen the centre track (which would re-introduce the shift). */
.hero-logo-1line { font-size: clamp(52px, 9.5vw, 140px); white-space: nowrap; letter-spacing: 1px; }
.hero-logo-1line .line { display: inline; }
.hero-tag {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  color: #FFF8EC;
  margin: 8px auto 38px;
  text-shadow: 0 2px 0 rgba(13, 26, 58, 0.7), 0 2px 14px rgba(0, 0, 0, 0.45);
  max-width: 560px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
#hero-canvas {
  /* Legacy three.js hero — now hidden because the mysterious GIF takes over.
     Init is disabled in app.js; node kept as a no-op safety fallback. */
  display: none !important;
}

/* ---------- FULL-BLEED blurred GIF — IS the hero background ---------- */
.hero-gif-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  overflow: hidden;
  background: #A6E3FF; /* sky-blue base in case the GIF is slow to load */
  pointer-events: none;
  z-index: 0;
}
.hero-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Moderate blur — racing bean is recognizable, AI artifacts read as soft motion */
  filter: blur(6px) saturate(110%) brightness(0.92);
  /* Scale slightly to hide the soft edges left by the blur */
  transform: scale(1.08);
  transform-origin: center;
}
/* Reduced-motion / no-GIF fallback: full-cover sky-blue backdrop */
.hero-gif-fallback {
  position: absolute;
  inset: 0;
  display: none;
  background: linear-gradient(180deg, #A6E3FF 0%, #7CC4FF 100%);
}
/* Soft brand-tinted gradient ABOVE the GIF, BELOW the content — keeps text legible */
.hero-gif-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(166, 227, 255, 0.18) 0%, rgba(13, 26, 58, 0.25) 100%);
  pointer-events: none;
}
.hero-gif-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 50%, rgba(13, 26, 58, 0.28) 100%),
    radial-gradient(ellipse at 30% 30%, rgba(255, 242, 201, 0.12), transparent 55%);
  pointer-events: none;
}
.hero-gif-scan {
  position: absolute;
  inset: -10%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 248, 236, 0.14) 50%, transparent 58%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: hero-scan 9s linear infinite;
}
@keyframes hero-scan {
  0%   { transform: translateX(-60%); opacity: 0; }
  20%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translateX(60%); opacity: 0; }
}

/* ---------- HERO 3-column cards (PRIZE POT + BEANS IN QUEUE) ----------
   Cards now flow naturally inside .hero-grid as the left/right columns
   flanking the centred wordmark. They keep a tiny static tilt so they still
   read as cartoon stickers, but no longer use absolute positioning. */
.hero-card {
  position: relative;
  z-index: 5;
  background: var(--cream);
  border: 5px solid var(--navy);
  border-radius: 28px;
  box-shadow: 0 12px 0 var(--navy), 0 18px 36px var(--shadow-strong);
  padding: 26px 30px 28px;
  width: 100%;
  max-width: 370px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  transition: transform 220ms ease, box-shadow 220ms ease;
  text-align: left;
  justify-self: center;
}
.hero-card.pot {
  background: var(--cream);
  transform: rotate(2deg);
}
.hero-card.pot:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 16px 0 var(--navy), 0 26px 42px var(--shadow-strong);
}
.hero-card.queue {
  background: var(--cream);
  transform: rotate(-2deg);
}
.hero-card.queue:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 16px 0 var(--navy), 0 26px 42px var(--shadow-strong);
}
/* LEFT card is now the FREE MULTIPLAYER card (was .queue) */
.hero-card.mp { background: var(--cream); transform: rotate(-2deg); justify-self: start; }
.hero-card.mp:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 16px 0 var(--navy), 0 26px 42px var(--shadow-strong); }
.live-chip.green { background: var(--lime); color: var(--navy); }
.live-chip.green .live-dot { background: #0a7a2e; }
/* free-MP join: name input + button pinned to the bottom of the card */
.mp-join-row { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
#mpNameInput {
  font-family: var(--body); font-weight: 600; font-size: 15px; color: var(--navy);
  background: #fff; border: 3px solid var(--navy); border-radius: 14px;
  padding: 12px 14px; width: 100%; outline: none; box-sizing: border-box;
}
#mpNameInput::placeholder { color: #9aa1ad; font-weight: 500; }
#mpNameInput:focus { box-shadow: 0 0 0 4px rgba(20,241,149,0.28); }
/* paid card "Next race in" row */
.paid-timer { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 8px 0 10px; }
.paid-timer-k { font-family: var(--display); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); opacity: 0.72; }
.paid-timer-v { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); color: var(--navy); }
.paid-timer-v .unit { font-size: 14px; opacity: 0.7; margin-left: 2px; }
/* keep a long paid seat list from blowing the card height */
.hero-card.pot .seat-list { max-height: 132px; overflow-y: auto; margin: 2px 0 8px; }
/* free-MP roster (who's in) + the leave button */
.hero-card.mp .seat-list { max-height: 118px; overflow-y: auto; margin: 4px 0 8px; }
.mp-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--navy); margin: 0 7px 0 2px; vertical-align: -1px; flex-shrink: 0; }
/* Little purple bean jogging in the empty FREE-MULTIPLAYER card. It grows to
   fill the gap between the status line and the join button, and is hidden (via
   JS) the moment a bean joins, when the roster + countdown take over. */
.mp-run-bean { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 108px; margin: 2px 0; pointer-events: none; }
.mp-run-bean canvas { width: 120px; height: 140px; display: block; }
#mpLeaveBtn { margin-top: auto; }

.hero-card-label {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--navy);
  letter-spacing: 1.5px;
  margin: 4px 0 6px;
  text-transform: uppercase;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero-card-value {
  font-family: var(--display);
  /* Sized so a 6-char number like "142.78" fits inside the ~268px-wide card */
  font-size: clamp(44px, 4.6vw, 72px);
  line-height: 0.92;
  letter-spacing: 0;
  margin: 4px 0 2px;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  /* Stroke + shadow inherit to child spans, which is exactly what we want. */
  color: var(--cream);
  -webkit-text-stroke: 4px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 5px 0 var(--navy), 0 10px 18px rgba(13, 26, 58, 0.32);
}
.hero-card-value > span:first-child {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
/* The big number — clean pink → blue gradient on both cards (no stripes). */
.hero-card-value.gradient-pot > span:first-child,
.hero-card-value.gradient-queue > span:first-child {
  background: linear-gradient(180deg, #FF6FB3 0%, #FF3D8A 35%, #4A8BFF 75%, #1E5BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-card-value .unit {
  font-family: var(--display);
  font-size: 0.55em;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #FFFCD9 0%, #FFD23F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 3px var(--navy);
  text-shadow: 0 3px 0 var(--navy);
  margin-top: -4px;
}
.hero-card-value .of {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.28em;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 2px;
  -webkit-text-stroke: 0;
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: var(--navy-soft);
  align-self: baseline;
  margin-top: 0;
}

/* Pulsing LIVE dot chip */
.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--pink-deep);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.live-chip .live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--navy);
  box-shadow: 0 1px 0 var(--navy);
  animation: live-pulse 1.1s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 1px 0 var(--navy), 0 0 0 0 rgba(255,111,179,0.55); }
  50%      { transform: scale(1.25); box-shadow: 0 1px 0 var(--navy), 0 0 0 8px rgba(255,111,179,0); }
}

/* Trickle tick-chip — fades in to ~50% then back when prize ticks up */
.tick-chip {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  background: var(--lime);
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.2px;
  color: var(--navy);
  text-transform: uppercase;
  box-shadow: 0 3px 0 var(--lime-deep);
  opacity: 0;
  transform: translateY(-4px);
}
.tick-chip.show {
  animation: tick-pulse 1.6s ease-out;
}
@keyframes tick-pulse {
  0%   { opacity: 0;   transform: translateY(-4px) scale(0.88); }
  18%  { opacity: 1;   transform: translateY(0)    scale(1.05); }
  32%  { opacity: 0.55; transform: translateY(0)   scale(1); }
  100% { opacity: 0;   transform: translateY(-4px) scale(0.96); }
}

/* Sub-stat line (NEXT RACE IN MM:SS inside the pot card)
   margin-top:auto pushes it to the bottom of the flex-column card so the
   pot card visually balances the queue card's bottom-anchored CTA. */
.hero-card-sub {
  margin-top: auto;
  padding-top: 14px;
  border-top: 2.5px dashed rgba(13, 26, 58, 0.22);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.hero-card-sub .sub-label {
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy-soft);
}
.hero-card-sub .sub-value {
  font-family: var(--display);
  font-size: 26px;
  color: var(--cream);
  -webkit-text-stroke: 2.5px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 var(--navy);
  background: linear-gradient(180deg, #FFE6F2 0%, #FF6FB3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

/* Mini bean dots strip on the queue card */
.queue-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 16px;
  min-height: 30px;
}
.queue-dots .qd {
  width: 22px;
  height: 30px;
  filter: drop-shadow(0 2px 0 var(--navy));
  transition: transform 200ms ease;
}
.queue-dots .qd.off {
  opacity: 0.32;
  filter: drop-shadow(0 1px 0 var(--navy)) grayscale(0.3);
}
.queue-dots .qd.on:hover {
  transform: translateY(-3px) rotate(-6deg);
}
.queue-dots .qd.you {
  transform: translateY(-2px);
  filter: drop-shadow(0 3px 0 var(--navy)) drop-shadow(0 0 8px rgba(166, 226, 46, 0.6));
}

.hero-card-cta {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  letter-spacing: 1.5px;
  /* Anchor to the bottom of the queue card so it lines up with the pot card's
     sub-stat row, keeping the two cards visually balanced. */
  margin-top: auto;
}

/* ---------------- sky / clouds ---------------- */
.sky-clouds {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.cloud {
  position: absolute;
  opacity: 0.92;
  filter: drop-shadow(0 6px 0 rgba(13,26,58,0.06));
}
.cloud.layer-back  { animation: drift 35s linear infinite; opacity: 0.7; transform: scale(0.8); }
.cloud.layer-mid   { animation: drift 20s linear infinite; opacity: 0.85; }
.cloud.layer-front { animation: drift 12s linear infinite; opacity: 0.95; transform: scale(1.15); }

@keyframes drift {
  0%   { transform: translateX(-15vw) var(--scale, scale(1)); }
  100% { transform: translateX(115vw) var(--scale, scale(1)); }
}

.hill-band {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  width: 100%;
  z-index: 2;
  pointer-events: none;
  display: block;
}

/* ---------------- HOW IT WORKS ---------------- */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.step-card {
  text-align: center;
  padding: 26px 22px 30px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.step-card:hover {
  transform: rotate(-2deg) scale(1.03);
  box-shadow: 0 12px 0 var(--navy), 0 20px 32px var(--shadow-strong);
}
.step-num {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  border: 4px solid var(--navy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 30px;
  color: var(--cream);
  -webkit-text-stroke: 2px var(--navy);
  paint-order: stroke fill;
  box-shadow: 0 4px 0 var(--navy);
}
.step-num.n1 { background: var(--pink); }
.step-num.n2 { background: var(--yellow); }
.step-num.n3 { background: var(--cyan); }
.step-num.n4 { background: var(--lime); }
.step-card .step-bean { width: 70px; height: 70px; margin: 4px auto 14px; }
.step-card h3 { margin-bottom: 8px; }
.step-card p { margin: 0; font-size: 15px; color: var(--navy-soft); }

/* ---------------- QUEUE ---------------- */
.queue-tabs {
  display: flex; gap: 10px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 26px;
}
.tab-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--body); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 12px 20px;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  font-size: 14px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.tab-btn .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  padding: 0 6px;
  height: 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}
.tab-btn:hover { transform: translateY(-1px); }
.tab-btn.active {
  background: var(--pink);
  box-shadow: 0 4px 0 var(--pink-deep);
}
.tab-btn.active .count { background: var(--cream); color: var(--navy); }

.queue-wrap {
  position: relative;
  background: var(--cream);
  border: 5px solid var(--navy);
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 10px 0 var(--navy), 0 18px 30px var(--shadow-strong);
  overflow: hidden;
}
.queue-table-scroll { max-height: 580px; overflow-y: auto; padding: 4px 8px 8px; }
.queue-table-scroll::-webkit-scrollbar { width: 12px; }
.queue-table-scroll::-webkit-scrollbar-track { background: transparent; }
.queue-table-scroll::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 999px; }

.queue-head {
  display: grid;
  grid-template-columns: 60px 80px 1fr 130px 130px;
  gap: 14px;
  align-items: center;
  padding: 6px 18px 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: var(--navy-soft);
}

.queue-row {
  display: grid;
  grid-template-columns: 60px 80px 1fr 130px 130px;
  gap: 14px;
  align-items: center;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 12px;
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 140ms ease, box-shadow 140ms ease;
  font-weight: 600;
}
.queue-row:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 0 var(--navy), 0 10px 18px var(--shadow);
}
.queue-row.you {
  border-width: 5px;
  border-color: var(--lime-deep);
  background: #EAFBD3;
  animation: pulse-lime 1.6s ease-in-out infinite;
  position: relative;
}
.queue-row.you::before {
  content: '▶';
  position: absolute;
  left: -28px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lime-deep);
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 2px 0 var(--navy);
}
@keyframes pulse-lime {
  0%, 100% { box-shadow: 0 4px 0 var(--lime-deep); }
  50%      { box-shadow: 0 6px 0 var(--lime-deep), 0 0 0 6px rgba(166,226,46,0.25); }
}
.queue-row.racing { background: #FFE7F1; }

/* Watchable rows (racing beans) — clickable to open the spectator view. */
.queue-row.watchable { cursor: pointer; }
.queue-row.watchable:hover { box-shadow: 0 6px 0 var(--pink-deep), 0 10px 18px var(--shadow); }
.queue-row.watchable:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.watch-cue {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 9px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.2px;
  color: var(--cream);
  background: var(--navy);
  border-radius: 999px;
  vertical-align: middle;
  opacity: 0.78;
  transition: opacity 140ms ease, transform 140ms ease;
}
.queue-row.watchable:hover .watch-cue {
  opacity: 1;
  transform: translateY(-1px);
  background: var(--pink-deep);
}

.bean-disc {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  box-shadow: inset -3px -4px 0 rgba(13,26,58,0.18), 0 2px 0 var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.bean-disc::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 40%;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  top: 10%;
  left: 20%;
  filter: blur(0.4px);
}

.wallet-cell { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 13px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  box-shadow: 0 3px 0 var(--navy);
}
.status-chip.queued { background: var(--yellow); }
.status-chip.racing { background: var(--pink);  color: var(--navy); }
.status-chip.you {
  background: var(--lime);
  animation: pulse-lime-chip 1.4s ease-in-out infinite;
}
@keyframes pulse-lime-chip {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
.status-chip .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy);
}
.status-chip.racing .dot { background: var(--cream); animation: dot-pulse 0.8s ease-in-out infinite alternate; }
@keyframes dot-pulse { from { transform: scale(0.7); } to { transform: scale(1.2); } }

.announcer {
  position: absolute;
  right: -30px; bottom: -30px;
  width: 200px;
  pointer-events: none;
  z-index: 3;
}
.announcer .speech {
  position: absolute;
  top: -10px;
  right: 110px;
  background: var(--cream);
  border: 3px solid var(--navy);
  border-radius: 18px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--navy);
}
.announcer .speech::after {
  content: '';
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--navy);
}
.announcer .speech::before {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--cream);
  z-index: 1;
}
.announcer .mascot-bean {
  width: 130px;
  filter: drop-shadow(0 6px 0 var(--navy)) drop-shadow(0 12px 16px var(--shadow));
  animation: float 3.2s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

/* ---------------- PRIZE POOL ---------------- */
.prize-card {
  text-align: center;
  padding: 50px 30px 60px;
  position: relative;
  overflow: hidden;
}
.glory-lockup {
  position: relative;
  z-index: 2;
  margin: 6px 0 14px;
  text-align: center;
  line-height: 1;
}
.glory-tag {
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 8px;
  font-size: 14px;
  color: var(--pink-deep);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.glory-word {
  font-family: var(--display);
  font-size: clamp(72px, 12vw, 144px);
  line-height: 0.95;
  color: var(--cream);
  -webkit-text-stroke: 5px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 6px 0 var(--navy);
  letter-spacing: 4px;
  display: inline-block;
}
.prize-card .big-num {
  font-family: var(--body);
  font-weight: 700;
  font-size: clamp(72px, 11vw, 132px);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -2px;
  position: relative;
  z-index: 2;
}
.prize-card .big-num .unit {
  font-family: var(--display);
  font-size: 0.55em;
  color: var(--cream);
  -webkit-text-stroke: 4px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--navy);
  margin-left: 8px;
  letter-spacing: 1px;
  background: linear-gradient(180deg, #FFFCD9 0%, #FFD23F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.prize-card .label {
  font-family: var(--body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  color: var(--pink-deep);
}
.confetti-burst {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}
.stats-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
  position: relative; z-index: 2;
}
.stats-mini .mini {
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 16px;
  box-shadow: 0 4px 0 var(--navy);
  padding: 14px 12px;
}
.stats-mini .mini .l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--navy-soft); }
.stats-mini .mini .v { font-family: var(--display); font-size: 22px; color: var(--cream); -webkit-text-stroke: 2px var(--navy); paint-order: stroke fill; text-shadow: 0 2px 0 var(--navy); margin-top: 4px; word-break: break-word; }
.stats-mini .mini .v.mono { font-family: ui-monospace, monospace; font-size: 14px; -webkit-text-stroke: 0; text-shadow: none; color: var(--navy); }

/* ---------------- WALL OF FAME ---------------- */
.podium-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 22px;
  align-items: end;
  margin-bottom: 40px;
}
.podium-card {
  text-align: center;
  padding: 22px 20px 28px;
  position: relative;
}
.podium-card .place {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 4px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--cream);
  -webkit-text-stroke: 2px var(--navy);
  paint-order: stroke fill;
  box-shadow: 0 4px 0 var(--navy);
}
.podium-card.gold   .place { background: linear-gradient(180deg, #FFE693 0%, #FFC02E 100%); }
.podium-card.silver .place { background: linear-gradient(180deg, #F5F8FF 0%, #BCC8E0 100%); }
.podium-card.bronze .place { background: linear-gradient(180deg, #FFC79A 0%, #C77641 100%); }
.podium-card .bean-stage {
  height: 130px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 12px;
}
.podium-card .bean-stage svg { height: 110px; width: auto; }
.podium-card .pedestal {
  margin-top: 8px;
  border: 4px solid var(--navy);
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--navy);
  padding: 10px 12px;
  font-family: var(--display);
  font-size: 30px;
  color: var(--navy);
  -webkit-text-stroke: 0;
}
.podium-card.gold   { transform: translateY(-26px); }
.podium-card.gold   .pedestal { background: var(--yellow); height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.podium-card.silver .pedestal { background: #DCE3F2; height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.podium-card.bronze .pedestal { background: #F2B581; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.podium-card .wallet { font-family: ui-monospace, monospace; font-size: 12px; margin-top: 12px; color: var(--navy); opacity: 0.85; word-break: break-all; }
.podium-card .when { font-size: 12px; font-weight: 600; color: var(--navy-soft); margin-top: 4px; }

.winners-table .wt-head, .winners-table .wt-row {
  display: grid;
  grid-template-columns: 60px 80px 1fr 140px 130px;
  gap: 14px;
  align-items: center;
  padding: 12px 18px;
}
.winners-table .wt-head { padding: 6px 18px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--navy-soft); cursor: default; }
.winners-table .wt-head .sortable { cursor: pointer; user-select: none; }
.winners-table .wt-head .sortable:hover { color: var(--pink-deep); }
.winners-table .wt-row {
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 14px;
  margin-bottom: 12px;
  box-shadow: 0 4px 0 var(--navy);
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.winners-table .wt-row:hover { transform: scale(1.02); box-shadow: 0 6px 0 var(--navy), 0 10px 18px var(--shadow); }
.winners-table .wt-row .prize { font-family: var(--display); color: var(--cream); -webkit-text-stroke: 2px var(--navy); paint-order: stroke fill; text-shadow: 0 2px 0 var(--navy); font-size: 22px; }
.winners-table .wt-row .when { font-size: 13px; color: var(--navy-soft); font-weight: 600; }

/* ---------------- TOKENOMICS ---------------- */
.tokenomics-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
}
.tokenomics-grid .copy p { margin: 0 0 14px; font-size: 17px; color: var(--navy); }
.tokenomics-grid .copy ul { padding-left: 18px; }
.tokenomics-grid .copy li { margin: 6px 0; font-weight: 600; }

.bean-jar { width: 100%; max-width: 480px; margin: 0 auto; }

/* 3D Solana Bean mascot embedded in the PURE FUN tokenomics card */
.bean-3d {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  position: relative;
}
.bean-3d canvas { display: block; width: 100% !important; height: 100% !important; }

/* ---- shared-renderer 3D mini-bean icons (replace the flat SVG beans) ---- */
canvas.bean3d { display: block; background: transparent; }
.brand .mascot.bean3d { filter: drop-shadow(0 2px 1px rgba(13,26,58,.25)); }
.step-card .step-bean.bean3d { filter: drop-shadow(0 3px 2px rgba(13,26,58,.22)); }
.bean-preview.bean3d { filter: drop-shadow(0 3px 2px rgba(13,26,58,.22)); }
.announcer .mascot-bean.bean3d { aspect-ratio: 10 / 13; height: auto; filter: drop-shadow(0 8px 12px var(--shadow)); }
.queue-dots .qd.bean3d { filter: drop-shadow(0 2px 1px rgba(13,26,58,.3)); }
.queue-dots .qd.bean3d.off { opacity: .32; filter: grayscale(.5) drop-shadow(0 1px 1px rgba(13,26,58,.25)); }
.queue-dots .qd.bean3d.you { filter: drop-shadow(0 0 8px rgba(166,226,46,.7)) drop-shadow(0 2px 1px rgba(13,26,58,.3)); }

/* control dock under the bean — colour swatches + mood pills */
.bean-dock { margin: 4px auto 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.bean-dock-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.bean-dock-label {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: #E63B85;
}
.bean-swatches { display: flex; gap: 8px; }
.bean-sw {
  width: 28px; height: 28px; border-radius: 50%; border: 3px solid #1C1646;
  cursor: pointer; padding: 0; box-shadow: 0 3px 0 #1C1646;
  transition: transform .12s ease, box-shadow .12s ease;
}
.bean-sw:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #1C1646; }
.bean-sw:active { transform: translateY(1px); box-shadow: 0 1px 0 #1C1646; }
.bean-sw.active { outline: 3px solid #fff; outline-offset: 2px; }
.bean-moods { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.bean-pill {
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 13px;
  color: #fff; background: #1C1646; border: 3px solid #1C1646; border-radius: 999px;
  padding: 8px 14px; cursor: pointer; line-height: 1; box-shadow: 0 3px 0 rgba(28,22,70,.55);
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.bean-pill:hover { transform: translateY(-2px); }
.bean-pill:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(28,22,70,.55); }
.bean-pill.active { background: #FF4F9A; border-color: #1C1646; box-shadow: 0 3px 0 #E63B85; }

/* ---------------- HALL OF FAME ---------------- */
.hof-list { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 2; }
.hof-row {
  display: grid;
  grid-template-columns: 34px 1fr auto auto auto;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 4px 0 var(--navy);
}
.hof-rank { font-family: var(--display); font-size: 20px; color: var(--navy); text-align: center; }
.hof-name { font-weight: 700; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hof-prize {
  font-family: var(--display); font-size: 16px; letter-spacing: 0.5px;
  background: linear-gradient(180deg, #FFFCD9 0%, #FFD23F 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; -webkit-text-stroke: 1.2px var(--navy);
  text-decoration: none; white-space: nowrap;
}
a.hof-prize { cursor: pointer; }
a.hof-prize:hover { -webkit-text-stroke-color: var(--pink-deep); }
.hof-time { font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.hof-map { font-weight: 700; font-size: 11px; letter-spacing: 1.5px; color: var(--pink-deep); }
.hof-empty { margin: 18px auto 6px; text-align: center; color: var(--navy-soft); font-weight: 600; font-size: 15px; position: relative; z-index: 2; }
.hof-note { margin-top: 14px; text-align: center; font-size: 12px; color: var(--navy-soft); position: relative; z-index: 2; }

/* ---------------- OFFICIAL CONTRACT boxes (hero + footer) ---------------- */
/* Contract box (under the hero CTAs): glowing label above a click-to-copy pill */
.hero-contract-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  margin: 22px auto 0; max-width: 100%;
}
.hero-contract-title {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 3px; text-transform: uppercase; color: #FF8FC4;
  text-shadow: 0 0 6px rgba(255,111,179,.75), 0 0 14px rgba(255,111,179,.45), 0 1px 0 var(--navy);
  animation: contractGlow 2.4s ease-in-out infinite;
}
@keyframes contractGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(255,111,179,.6),  0 0 13px rgba(255,111,179,.3),  0 1px 0 var(--navy); }
  50%      { text-shadow: 0 0 11px rgba(255,111,179,1),  0 0 24px rgba(255,111,179,.65), 0 1px 0 var(--navy); }
}
.hero-contract {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 9px 14px; font: inherit; cursor: pointer;
  background: var(--cream); border: 3px solid var(--navy); border-radius: 13px;
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.hero-contract:hover  { transform: translateY(-2px); box-shadow: 0 6px 0 var(--navy); background: #FFFDF6; }
.hero-contract:active { transform: translateY(2px);  box-shadow: 0 2px 0 var(--navy); }
.hero-contract.copied { background: #E9FBD2; }
.hero-contract-addr {
  font-family: 'Courier New', monospace; font-weight: 700; font-size: 12.5px;
  letter-spacing: .4px; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-contract-copy { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }
.hero-contract:hover .hero-contract-copy { opacity: 1; }

/* Beta / feedback warning notice under the contract box */
.hero-notice {
  display: flex; align-items: flex-start; gap: 14px;
  /* fills the centre column (centred under the name).  IMPORTANT: use only
     max-width here — a fixed `width` would force the 1fr grid track wider and
     shove the whole hero off-centre to the right. */
  max-width: 760px; width: 100%;
  margin: 104px auto 0;
  padding: 18px 24px 19px;
  text-align: left;
  background: rgba(255, 244, 206, 0.95);
  border: 3px solid var(--navy); border-radius: 18px;
  box-shadow: 0 6px 0 var(--navy), 0 14px 26px rgba(13, 26, 58, 0.28);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.hero-notice-icon { font-size: 24px; line-height: 1.25; flex-shrink: 0; }
.hero-notice-text { margin: 0; }
.hero-notice-text p {
  margin: 0; font-family: var(--body); font-weight: 500;
  font-size: 13.5px; line-height: 1.55; color: var(--navy);
}
.hero-notice-text p + p { margin-top: 9px; }
.hero-notice-text strong { color: var(--pink-deep); font-weight: 800; }
/* red, clickable hyperlink for the feedback tweet (real URL added later) */
.tweet-link {
  color: #E5314B; font-weight: 800;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 2px;
  transition: color 140ms ease;
}
.tweet-link:hover { color: #C21F38; }
.hero-notice-bean { display: block; width: 76px; height: 90px; margin: 8px auto 0; }
/* the beta notice now lives below the FAQ — drop the hero's 104px top margin
   and give the standalone section its own breathing room */
.notice-section { padding: 4px 0 76px; }
.notice-section .hero-notice { margin: 0 auto; }
.contract-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 5px; }
.contract-label {
  font-family: 'Fredoka', sans-serif; font-weight: 700; font-size: 11px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--navy); opacity: 0.72;
}
@media (max-width: 560px){
  .hof-row { grid-template-columns: 28px 1fr auto auto; gap: 10px; padding: 9px 12px; }
  .hof-map { display: none; }
}

/* ---------------- ROADMAP ---------------- */
.roadmap-wrap { position: relative; padding: 30px 0 0; }
.windy-road { width: 100%; height: auto; }
.milestones {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}
.milestone { padding: 22px 20px 26px; }
.milestone .signpost { display: inline-block; margin-bottom: 8px; }
.milestone h3 { margin: 6px 0; }
.milestone p { margin: 0; font-size: 14px; color: var(--navy-soft); }
.milestone.done    { background: #EAFBD3; }
.milestone.active  { background: #FFE7F1; transform: rotate(-1deg); }
.milestone.next    { background: #DAF4FF; }
.milestone.future  { background: #FFF3C9; }
.tag-badge {
  display: inline-block;
  padding: 4px 10px;
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  background: var(--cream);
  box-shadow: 0 2px 0 var(--navy);
}

/* ---------------- FAQ ---------------- */
.faq { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item {
  background: var(--cream);
  border: 4px solid var(--navy);
  border-radius: 20px;
  box-shadow: 0 6px 0 var(--navy);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.faq-q .plus {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pink);
  border: 3px solid var(--navy);
  box-shadow: 0 3px 0 var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 22px;
  color: var(--navy);
  transition: transform 240ms ease, background 240ms ease;
  flex-shrink: 0;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); background: var(--cyan); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease;
}
.faq-a-inner { padding: 0 22px 20px; font-size: 15px; line-height: 1.6; color: var(--navy); }
.faq-item.open .faq-a { max-height: 400px; }

/* ---------------- FOOTER ---------------- */
.footer {
  margin-top: 60px;
  background: linear-gradient(180deg, #7CE38B 0%, #43A85B 100%);
  border-top: 5px solid var(--navy);
  padding: 70px 0 36px;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: -2px; left: 0; right: 0;
  height: 30px;
  background-image: radial-gradient(ellipse at top, var(--navy) 14px, transparent 15px);
  background-size: 28px 30px;
  background-repeat: repeat-x;
  background-position: 0 -16px;
  opacity: 0.6;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 160ms ease;
}
.footer-brand:hover { transform: translateY(-2px); }
.footer-bean { width: 56px; height: 56px; flex-shrink: 0; }
.footer-brand-name {
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 1px;
  line-height: 1;
  color: var(--cream);
  -webkit-text-stroke: 3px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--navy);
}
.footer-divider {
  width: min(640px, 84%);
  height: 3px;
  margin: 30px auto 0;
  background: var(--navy);
  opacity: 0.22;
  border-radius: 999px;
}
.contract-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream);
  border: 3px solid var(--navy);
  border-radius: 999px;
  padding: 10px 16px;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.contract-pill:hover { transform: translateY(-1px); }
.contract-pill:active { transform: translateY(3px); box-shadow: 0 0 0 var(--navy); }
.contract-pill.copied { background: #E9FBD2; }
.contract-pill svg { width: 16px; height: 16px; }

.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.social-pill:hover { transform: translateY(-1px); background: var(--yellow); }
.social-pill:active { transform: translateY(3px); box-shadow: 0 0 0 var(--navy); }
.social-pill svg { width: 18px; height: 18px; }

.copyright { margin-top: 14px; text-align: center; font-weight: 500; font-size: 13px; color: var(--navy); opacity: 0.8; }

/* ============================================================
   FOCUSED LOBBY VIEW — invited / private room (?room=…)
   Strip the marketing chrome down to just the live lobby; the logo
   doubles as a "leave" button back to the main site.
   ============================================================ */
.leave-tag { display: none; }
.room-focus .hero,
.room-focus #how,
.room-focus #prize,
.room-focus #tokenomics,
.room-focus #faq,
.room-focus .footer,
.room-focus .mobile-menu { display: none !important; }
.room-focus .nav-links,
.room-focus .nav-actions { display: none !important; }
.room-focus #queue { padding-top: 44px; }
.room-focus #queue .back-home { display: none; }   /* leaving is via the logo */
/* the logo turns into a clear "leave" control */
.room-focus .brand { cursor: pointer; }
.room-focus .leave-tag {
  display: inline-flex; align-items: center;
  margin-left: 6px; padding: 5px 12px; border-radius: 999px;
  font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: .5px;
  color: var(--navy); background: var(--cream);
  border: 2px solid var(--navy); box-shadow: 0 3px 0 var(--navy);
  transition: transform 140ms ease, background 140ms ease;
}
.room-focus .brand:hover .leave-tag { background: var(--pink); transform: translateY(-1px); }

/* ---------------- toasts ---------------- */
.toasts {
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--cream);
  border: 4px solid var(--navy);
  border-radius: 18px;
  padding: 14px 22px;
  box-shadow: 0 6px 0 var(--navy), 0 14px 22px var(--shadow);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 360ms cubic-bezier(.28,1.4,.5,1) both;
  min-width: 240px;
  max-width: 80vw;
}
.toast.success { background: #EAFBD3; }
.toast.info    { background: #DAF4FF; }
.toast.error   { background: #FFE7F1; }
.toast.fadeout { animation: toast-out 280ms ease both; }
.toast .icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.toast.success .icon { background: var(--lime); }
.toast.info    .icon { background: var(--cyan); }
.toast.error   .icon { background: var(--coral); }
.toast .toast-cta {
  margin-left: 6px;
  padding: 8px 14px;
  border: 3px solid var(--navy);
  border-radius: 999px;
  background: var(--pink);
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 0 var(--pink-deep);
  transition: transform 90ms ease, box-shadow 90ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.toast .toast-cta:hover { filter: brightness(1.04); }
.toast .toast-cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--pink-deep); }

@keyframes toast-in {
  0%   { transform: translateY(-40px) scale(0.8); opacity: 0; }
  60%  { transform: translateY(8px)   scale(1.05); opacity: 1; }
  100% { transform: translateY(0)     scale(1); opacity: 1; }
}
@keyframes toast-out { to { transform: translateY(-40px) scale(0.85); opacity: 0; } }

/* ---------------- modal ---------------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(13,26,58,0.45);
  z-index: 150;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  backdrop-filter: blur(3px);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  width: min(460px, 100%);
  background: var(--cream);
  border: 5px solid var(--navy);
  border-radius: 28px;
  box-shadow: 0 10px 0 var(--navy), 0 20px 40px var(--shadow-strong);
  padding: 30px 28px;
  transform: scale(0.85);
  transition: transform 220ms cubic-bezier(.28,1.4,.5,1);
}
.modal-backdrop.open .modal { transform: scale(1); }
.modal h3 { margin: 0 0 18px; text-align: center; }
.modal .field { margin: 14px 0; }
.modal .field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; color: var(--navy-soft); }
.modal .field input {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  padding: 12px 14px;
  border: 3px solid var(--navy);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  outline: none;
  box-shadow: inset 0 2px 0 var(--shadow);
}
.modal .field input:focus { border-color: var(--pink); }
.modal .row { display: flex; gap: 10px; flex-wrap: wrap; }
.modal .row > * { flex: 1 1 140px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--coral);
  border: 3px solid var(--navy);
  box-shadow: 0 3px 0 var(--navy);
  font-family: var(--display);
  font-size: 18px;
  color: var(--cream);
  display: inline-flex; align-items: center; justify-content: center;
}
.modal-close:active { transform: translateY(3px); box-shadow: 0 0 0 var(--navy); }

/* ---------------- mobile menu ---------------- */
.mobile-menu {
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: var(--cream);
  border-bottom: 5px solid var(--navy);
  box-shadow: 0 8px 24px var(--shadow-strong);
  padding: 18px 22px 22px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 49;
  transform: translateY(-110%);
  transition: transform 260ms ease;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  padding: 14px 18px;
  border: 3px solid var(--navy);
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--navy);
}

/* ---------------- responsive ---------------- */
@media (max-width: 980px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .hamburger {
    display: inline-flex;
    width: 44px; height: 44px;
    background: var(--pink);
    border: 3px solid var(--navy);
    border-radius: 14px;
    box-shadow: 0 4px 0 var(--navy);
    align-items: center; justify-content: center;
  }
  .hamburger:active { transform: translateY(3px); box-shadow: 0 0 0 var(--navy); }
  .mobile-menu { display: flex; }

  /* Stack the 3 columns vertically: queue → wordmark → pot.
     Cards become full-width (capped) so the column is balanced and centred. */
  .hero-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    align-items: center;
    gap: 28px;
  }

  /* GIF stays full-bleed on mobile (do NOT collapse it back into the right column). */
  .hero-gif-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero-copy {
    width: 100%;
    max-width: 560px;
  }
  .hero-card,
  .hero-card.pot,
  .hero-card.queue,
  .hero-card.mp {
    width: 100%;
    max-width: 420px;
    min-height: 0;
    transform: none;
  }
  .hero-card.pot:hover,
  .hero-card.queue:hover,
  .hero-card.mp:hover {
    transform: translateY(-4px);
  }
  /* Slightly smaller card numbers on mobile so the floating cards don't fight the GIF */
  .hero-card { padding: 18px 22px 22px; }
  .hero-card-value { font-size: clamp(42px, 11vw, 72px); }
  .hero-card-label  { font-size: 20px; }

  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-mini { grid-template-columns: repeat(2, 1fr); }
  .milestones { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
  .windy-road { display: none; }

  .tokenomics-grid { grid-template-columns: 1fr; }
  .footer-inner { gap: 22px; }
  .footer-inner .socials { justify-content: center; }
  .footer-bean { width: 46px; height: 46px; }

  .queue-head { display: none; }
  .queue-row, .winners-table .wt-row {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    row-gap: 6px;
  }
  .queue-row > *, .winners-table .wt-row > * { font-size: 14px; }
  .winners-table .wt-head { display: none; }

  .podium-row { grid-template-columns: 1fr; gap: 30px; }
  .podium-card.gold { transform: none; }

  .announcer { right: -10px; bottom: -16px; width: 130px; }
  .announcer .speech { right: 80px; font-size: 11px; padding: 8px 10px; }
  .announcer .mascot-bean { width: 90px; }
}

@media (max-width: 560px) {
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-card { padding: 18px 20px 20px; }
  .hero-card-cta { padding: 12px 16px; font-size: 13px; }
  .queue-dots .qd { width: 18px; height: 24px; }
  .how-grid { grid-template-columns: 1fr; }
  .milestones { grid-template-columns: 1fr; }
  .stats-mini { grid-template-columns: 1fr 1fr; }
  .queue-tabs { gap: 6px; }
  .tab-btn { padding: 10px 14px; font-size: 12px; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cloud { display: none; }

  /* You can't pause a GIF with CSS — hide the GIF and the moving shimmer,
     and replace the hero background with a clean sky-blue cartoon block. */
  .hero-gif,
  .hero-gif-scan { display: none !important; }
  .hero-gif-fallback { display: block !important; }
}

/* ============================================================
   USER BALANCE pill (cumulative SOL won by the connected wallet)
   ============================================================ */
.user-balance {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: linear-gradient(180deg, #FFFCD9 0%, #FFD23F 100%);
  border: 3px solid var(--navy);
  border-radius: 16px;
  padding: 6px 14px;
  box-shadow: 0 4px 0 var(--navy);
  font-family: var(--display);
  color: var(--navy);
  line-height: 1;
  margin-right: 4px;
}
.user-balance .bal-num {
  font-size: 18px;
  letter-spacing: 0.5px;
}
.user-balance .bal-unit {
  font-family: var(--body);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 1px;
}

/* ============================================================
   RACE STARTING overlay — fullscreen cartoon countdown card
   ============================================================ */
#launch {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, rgba(166, 227, 255, 0.85) 0%, rgba(13, 26, 58, 0.92) 100%);
  display: none;
  align-items: center; justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: rs-fadein 240ms ease-out;
}
#launch.open { display: flex; }
#launch .rs-card {
  background: var(--cream);
  border: 6px solid var(--navy);
  border-radius: 32px;
  box-shadow: 0 14px 0 var(--navy), 0 28px 80px rgba(0, 0, 0, 0.55);
  padding: 36px 56px 44px;
  text-align: center;
  max-width: 520px;
  width: calc(100% - 40px);
  transform: rotate(-1deg);
  animation: rs-pop 360ms cubic-bezier(.34,1.56,.64,1);
}
#launch .rs-kicker {
  font-family: var(--body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--pink);
  text-transform: uppercase;
  margin-bottom: 8px;
}
#launch .rs-round {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  color: var(--navy);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
#launch .rs-prize {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  margin: 10px 0 18px;
}
#launch .rs-prize-num {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 64px);
  background: linear-gradient(90deg, #9945FF 0%, #14F195 50%, #00D1FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 4px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 var(--navy);
  line-height: 1;
}
#launch .rs-prize-unit {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--navy-soft);
}
#launch .rs-count {
  font-family: var(--display);
  font-size: clamp(96px, 16vw, 168px);
  line-height: 0.9;
  background: linear-gradient(180deg, #FF6FB3 0%, #FFD23F 50%, #36D7FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 7px var(--navy);
  paint-order: stroke fill;
  text-shadow: 0 8px 0 var(--navy), 0 16px 30px rgba(0, 0, 0, 0.45);
  margin: 4px 0;
  animation: rs-pulse 800ms ease-in-out infinite;
}
#launch .rs-sub {
  font-family: var(--body);
  font-weight: 700;
  font-size: 16px;
  color: var(--navy-soft);
}
@keyframes rs-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rs-pop {
  0% { transform: rotate(-1deg) scale(0.7); opacity: 0; }
  100% { transform: rotate(-1deg) scale(1); opacity: 1; }
}
@keyframes rs-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  #launch,
  #launch .rs-card,
  #launch .rs-count { animation: none; }
}

/* ============================================================
   MULTIPLAYER ADDITIONS (color swatch, chat, bean preview, race-card)
   — these live on top of the original SOLANA BEANS design system —
   ============================================================ */

/* Color swatch (used in the JOIN modal) */
.swatch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.swatch button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  cursor: pointer;
  padding: 0;
  box-shadow: 0 3px 0 var(--navy);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.swatch button:hover { transform: translateY(-2px); }
.swatch button.active {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 4px 0 var(--navy), 0 0 0 4px rgba(255,255,255,0.8);
}
.swatch button.taken { opacity: 0.3; cursor: not-allowed; transform: none; }

/* Bean preview block inside the modal */
.bean-preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFF3C9;
  border: 3px dashed var(--navy);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 14px 0;
}
.bean-preview {
  width: 56px;
  height: 70px;
  filter: drop-shadow(0 3px 0 var(--navy));
  flex-shrink: 0;
}
.bean-preview-cap {
  font-family: var(--body);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy-soft);
}

/* Queue rows for OUR multiplayer (5-column adapted from original) */
.queue-row.empty {
  background: rgba(255, 248, 236, 0.6);
  border-style: dashed;
  opacity: 0.72;
}
.queue-row.empty .name-cell { font-style: italic; color: var(--navy-soft); }
.name-cell {
  font-family: var(--body);
  font-weight: 700;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-row .dots {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
}
.queue-row .dots span {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--navy-soft);
  border-radius: 50%;
  animation: dot-bounce 1s ease-in-out infinite;
}
.queue-row .dots span:nth-child(2) { animation-delay: 0.15s; }
.queue-row .dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1; transform: translateY(-3px); }
}

/* ----- CHAT card (added below the queue) ----- */
.chat-section {
  margin-top: 28px;
}
.chat-card {
  position: relative;
  padding: 24px 26px 26px;
  overflow: hidden;
}
.chat-card h3 {
  margin-bottom: 14px;
  text-align: left;
  font-size: clamp(22px, 2.4vw, 30px);
}
.chat-log {
  background: rgba(255,255,255,0.55);
  border: 3px solid var(--navy);
  border-radius: 16px;
  padding: 14px 16px;
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: inset 0 3px 0 rgba(13,26,58,0.05);
}
.chat-log::-webkit-scrollbar { width: 8px; }
.chat-log::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 999px; }
.chat-log .msg { word-wrap: break-word; }
.chat-log .msg b { font-weight: 700; margin-right: 6px; }

.chat-input-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.chat-input-row input {
  flex: 1;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 16px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 14px;
  color: var(--navy);
  outline: none;
  box-shadow: inset 0 2px 0 rgba(13,26,58,0.08);
}
.chat-input-row input:focus { border-color: var(--pink); }
.chat-input-row .btn { padding: 12px 22px; }

.chat-hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--navy-soft);
  font-weight: 600;
  text-align: center;
}

/* ----- Invite-link panel under the queue ----- */
.invite-card {
  margin-top: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #DAF4FF;
}
.invite-card .invite-label {
  font-family: var(--display);
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 1px;
  margin-right: 6px;
}
.invite-card .invite-text {
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy-soft);
  flex: 1;
  min-width: 200px;
}
.invite-card .invite-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 2;
  min-width: 280px;
}
.invite-card .invite-row input {
  flex: 1;
  font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace;
  font-size: 13px;
  padding: 12px 14px;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 12px;
  color: var(--navy);
  outline: none;
  box-shadow: inset 0 2px 0 rgba(13,26,58,0.08);
  text-overflow: ellipsis;
}

/* ----- Race-card pill inside the launch overlay ----- */
#launch .game-card {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(26px, 4vw, 42px);
  letter-spacing: 2px;
  margin: 12px auto 14px;
  padding: 12px 28px;
  border: 5px solid var(--navy);
  border-radius: 20px;
  background: var(--cream);
  box-shadow: 0 8px 0 var(--navy);
  color: var(--navy);
}
#launch .game-card.beans {
  background: linear-gradient(135deg, var(--lime), var(--grass));
  box-shadow: 0 8px 0 var(--lime-deep);
}
#launch .game-card.pyramids {
  background: linear-gradient(135deg, var(--yellow), var(--coral));
  box-shadow: 0 8px 0 var(--yellow-deep);
}

/* JOIN modal — extends the original wallet modal */
.modal .swatch { margin-top: 6px; }
.modal .field { margin: 14px 0; }
.modal h3 { margin-bottom: 6px; }

/* Brand text in our top-nav (single-line variant) */
.brand span { line-height: 0.95; }

/* Card picker (inside BEANS IN LOBBY hero card) */
.card-picker {
  margin: 6px 0 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 2.5px dashed rgba(13, 26, 58, 0.25);
  border-radius: 14px;
}
.card-picker-label {
  font-family: var(--body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--navy-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}
.card-picker-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.card-option {
  font-family: var(--body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 8px 4px;
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  box-shadow: 0 3px 0 var(--navy);
  cursor: pointer;
  transition: transform 100ms ease, box-shadow 100ms ease, background 100ms ease;
  text-transform: uppercase;
}
.card-option:hover { transform: translateY(-1px); }
.card-option:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--navy); }
.card-option.active {
  background: var(--lime);
  box-shadow: 0 3px 0 var(--lime-deep);
}
.card-option.active[data-game="beans"]   { background: var(--lime);   box-shadow: 0 3px 0 var(--lime-deep); }
.card-option.active[data-game="pyramids"]{ background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-deep); }
.card-option.active[data-game="random"]  { background: var(--pink);   box-shadow: 0 3px 0 var(--pink-deep); }

/* ---------- Private-room share banner ---------- */
.private-banner {
  margin: 10px 0 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 2.5px dashed rgba(13, 26, 58, 0.25);
  border-radius: 14px;
}
.private-banner-label {
  font-family: var(--body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--navy-soft);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-align: center;
}
.private-banner-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}
.private-banner-row input {
  flex: 1;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  background: var(--cream);
  color: var(--navy);
  letter-spacing: 0.3px;
  min-width: 0;             /* let it shrink on small cards */
}
.private-banner-row .btn {
  font-size: 12px;
  padding: 8px 14px;
  border-width: 2.5px;
  box-shadow: 0 3px 0 var(--cyan-deep);
}
.private-banner-row .btn:active:not(:disabled) {
  box-shadow: 0 1px 0 var(--cyan-deep);
}
.private-banner-hint {
  margin-top: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  color: var(--navy-soft);
  text-align: center;
  line-height: 1.35;
}

/* ---------- Hero card status copy ---------- */
.hero-card .status-line {
  font-family: var(--body);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy-soft);
  margin: 6px 0 12px;
  letter-spacing: 0.4px;
}
.hero-card .status-line strong {
  color: var(--pink-deep);
  font-weight: 800;
}

/* ---------- PRIZE POOL hero card extras ---------- */
.prize-sub {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--navy-soft);
  text-align: center;
  margin: -4px 0 10px;
  line-height: 1.4;
}
.cta-fine, .hero-cta-fine {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  color: var(--navy-soft);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.45;
}
.hero-cta-fine {
  /* sits below the row of big CTA buttons in the centre column */
  color: rgba(13, 26, 58, 0.75);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

/* ---------- "Make an account first" toast ---------- */
.auth-toast {
  position: fixed;
  left: 50%;
  top: 18px;
  transform: translate(-50%, -20px);
  z-index: 200;
  padding: 12px 22px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.4px;
  color: var(--navy);
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--navy), 0 16px 28px var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: transform 200ms ease, opacity 200ms ease;
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Back-to-home anchor (above the queue) ---------- */
.back-home {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 16px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  color: var(--navy);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  border: 2.5px solid var(--navy);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--navy);
  transition: transform 90ms ease, box-shadow 90ms ease;
}
.back-home:hover { background: #fff; }
.back-home:active { transform: translateY(3px); box-shadow: 0 0 0 var(--navy); }

/* ---------- LOBBY visibility ----------
   The full lobby UI (queue list, chat, invite-card) is only useful
   when the user is actually inside a private room.  On the public
   landing page we hide the entire #queue section so the marketing
   hero + How It Works flow without a half-empty lobby panel. */
body:not(.is-private) #queue { display: none; }
body:not(.is-private) .back-home { display: none; }

/* ---------- TEST dropdown (top nav) ---------- */
.test-dropdown { position: relative; display: inline-block; }
.test-dropdown .btn { padding: 12px 20px; font-size: 13px; }
.test-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: var(--cream);
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 0 8px 0 var(--navy), 0 14px 28px var(--shadow);
  padding: 8px;
  display: none;
  z-index: 60;
}
.test-dropdown.open .test-menu { display: flex; flex-direction: column; gap: 4px; }
.test-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: 0.4px;
  background: transparent;
  border: 2px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}
.test-menu a:hover {
  background: rgba(166, 227, 255, 0.45);
  border-color: var(--navy);
}

/* ---------- Right hero card — NEXT PAID RACE seat list ---------- */
.seat-list {
  list-style: none;
  margin: 12px 0 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.55);
  border: 2.5px dashed rgba(13, 26, 58, 0.25);
  border-radius: 14px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.seat-list:empty {
  display: none;
}
.seat-list li {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--cream);
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}
.seat-list li .seat-pos {
  font-family: var(--display);
  font-size: 14px;
  color: var(--navy-soft);
  text-align: center;
}
.seat-list li .seat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.seat-list li .seat-status {
  font-family: var(--body);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.seat-list li.racing  { background: rgba(20, 241, 149, 0.22); border-color: #0c8a52; }
.seat-list li.racing  .seat-status { background: #14f195; color: #04341f; }
.seat-list li.queued  { background: rgba(255, 90, 110, 0.18); border-color: #9a1828; }
.seat-list li.queued  .seat-status { background: #ff5a6e; color: #fff; }
.seat-list li.mine    { box-shadow: 0 0 0 3px var(--yellow); }
.seat-list-hint {
  margin: 6px 0 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 11px;
  color: var(--navy-soft);
  text-align: center;
  line-height: 1.4;
}

/* ---------- PAID-RACE modal pieces ---------- */
.paid-tabs {
  display: flex; gap: 6px; margin: 4px 0 12px;
  background: rgba(13, 26, 58, 0.06); border-radius: 999px; padding: 4px;
}
.paid-tab {
  flex: 1; border: 0; background: transparent;
  font-family: var(--body); font-weight: 700; font-size: 12px;
  letter-spacing: 1.3px; padding: 9px 10px; border-radius: 999px;
  color: var(--navy-soft); cursor: pointer; text-transform: uppercase;
  transition: background 140ms ease, color 140ms ease;
}
.paid-tab.active { background: #fff; color: var(--navy); box-shadow: 0 2px 4px rgba(13,26,58,.1); }
.paid-error {
  background: rgba(255, 90, 110, 0.12);
  border: 2px solid rgba(255, 90, 110, 0.55);
  color: #9a1828;
  font-family: var(--body); font-weight: 700; font-size: 12.5px;
  padding: 8px 12px; border-radius: 12px; margin: 6px 0 10px;
}
.paid-fine {
  margin: 12px 0 0;
  font-family: var(--body); font-weight: 600; font-size: 11px;
  color: var(--navy-soft); line-height: 1.45; text-align: center;
}
.paid-wallet-card {
  display: flex; gap: 14px; align-items: center;
  padding: 14px;
  background: linear-gradient(135deg, rgba(166,227,255,.45), rgba(255,210,63,.35));
  border: 3px solid var(--navy); border-radius: 18px;
  margin: 4px 0 14px;
}
.paid-wallet-icon {
  font-size: 36px; line-height: 1;
}
.paid-wallet-copy { display: flex; flex-direction: column; gap: 4px; }
.paid-wallet-copy strong {
  font-family: var(--display); font-size: 16px; letter-spacing: 1px;
  color: var(--navy);
}
.paid-wallet-copy span {
  font-family: var(--body); font-weight: 600; font-size: 12px;
  color: var(--navy-soft); line-height: 1.35;
}
.paid-ready {
  background: rgba(255, 255, 255, 0.55);
  border: 2.5px dashed rgba(13, 26, 58, 0.25);
  border-radius: 14px;
  padding: 14px;
  margin: 6px 0 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.paid-ready-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--body); font-size: 13px;
}
.paid-ready-k { color: var(--navy-soft); font-weight: 700; letter-spacing: 0.5px; }
.paid-ready-v { color: var(--navy); font-weight: 700; }
.paid-ready-v.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
.link-btn {
  background: transparent; border: 0; padding: 0; margin-left: 4px;
  color: var(--cyan-deep); font-family: var(--body); font-weight: 700;
  font-size: 12.5px; cursor: pointer; text-decoration: underline;
}
.link-btn:hover { color: var(--navy); }

/* ============================================================================
   MOBILE / TOUCH POLISH
   - Kills the 300ms tap delay (touch-action: manipulation) on interactive elems
   - Hides the iOS tap-highlight on buttons/links/swatches
   - Guarantees 44×44 touch targets (Apple HIG) for swatches and small icons
   - Keeps the JOIN modal above the iOS keyboard via safe-area-inset padding
   - Prevents text from auto-zooming on iOS by forcing 16px+ inputs
   - On very small / landscape phones, compacts the navbar so the hero still
     fits on a phone with the URL bar visible
   ========================================================================== */
* { -webkit-tap-highlight-color: transparent; }
.btn,
.hamburger,
.swatch-cell,
.swatch,
.tab-btn,
.modal-close,
.hero-card-cta,
input[type="text"],
input[type="button"],
button {
  touch-action: manipulation;        /* removes the 300ms double-tap delay */
}
input[type="text"] {
  font-size: 16px;                   /* prevents iOS auto-zoom on focus */
}
.modal {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
/* Touch devices: bigger swatch cells so they're easy to tap precisely */
@media (hover: none) and (pointer: coarse) {
  .swatch-cell {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .modal-close {
    width: 44px;
    height: 44px;
  }
  /* Avoid hover-only style fragments looking "stuck" on touch */
  .btn:hover { filter: none; }
  .hero-card:hover { transform: none; }
}
/* Small phones in landscape — keep the JOIN modal on-screen even with the
   keyboard up; let it scroll if necessary. */
@media (max-height: 540px) {
  .modal-backdrop { align-items: flex-start; padding-top: 16px; }
  .modal { max-height: 96vh; overflow-y: auto; }
}
/* iOS Safari address-bar fix: use dynamic viewport height where supported */
@supports (height: 100dvh) {
  .hero {
    min-height: 100dvh;
  }
}
