/* ============================================================
   FIAT MON(K)EY — design system
   Cartoon jungle × multibillion-dollar polish
   ============================================================ */

:root {
  /* palette */
  --ink: #241a0f;
  --jungle-950: #07130d;
  --jungle-900: #0b241a;
  --jungle-850: #0d2f22;
  --jungle-800: #0e3b2e;
  --jungle-700: #14523f;
  --tether: #26a17b;
  --tether-bright: #3fd39f;
  --tether-soft: #7fd0b4;
  --banana: #ffd93b;
  --banana-deep: #f5b92e;
  --fur: #8a5a3b;
  --muzzle: #eec39a;
  --cream: #f7efd8;
  --paper: #fffaef;
  --wood: #c98a4b;
  --sky: #bfe9f2;

  /* text on dark */
  --t-primary: #f2fbf6;
  --t-secondary: #b8d8c9;
  --t-muted: #7fa694;

  /* text on light */
  --tl-primary: #241a0f;
  --tl-secondary: #5a4a35;
  --tl-muted: #6f6049;

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow-pop: 0 6px 0 var(--ink);
  --shadow-card: 0 12px 40px rgba(7, 19, 13, 0.14);
  --nav-h: 72px;

  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--tl-primary);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
::selection { background: var(--banana); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--tether-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 200;
  background: var(--banana); color: var(--ink);
  padding: 10px 18px; border-radius: 12px; font-weight: 800;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---------- scrollbar ---------- */
@media (min-width: 900px) {
  ::-webkit-scrollbar { width: 12px; }
  ::-webkit-scrollbar-track { background: var(--jungle-900); }
  ::-webkit-scrollbar-thumb {
    background: var(--tether); border-radius: 8px;
    border: 3px solid var(--jungle-900);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--tether-bright); }
}

/* ---------- utilities ---------- */
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.wrap-narrow { width: min(860px, calc(100% - 48px)); }

.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--tether);
  margin-bottom: 10px;
}
.dark-band .kicker { color: var(--tether-bright); }

.sec-head { text-align: center; margin-bottom: 48px; }
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.sec-sub {
  margin-top: 14px;
  max-width: 560px;
  margin-inline: auto;
  color: var(--tl-secondary);
  font-size: 1.05rem;
}
.dark-band .sec-sub { color: var(--t-secondary); }

section { padding: 96px 0; position: relative; }

/* dark textured band */
.dark-band {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(38, 161, 123, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(38, 161, 123, 0.1), transparent 60%),
    var(--jungle-900);
  color: var(--t-primary);
}
.dark-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}
.dark-band > * { position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border-radius: 16px;
  padding: 13px 26px;
  border: 3px solid var(--ink);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s;
  user-select: none;
}
.btn-primary {
  background: var(--banana);
  color: var(--ink);
  box-shadow: var(--shadow-pop);
}
.btn-primary:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 9px 0 var(--ink); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--t-primary);
  border-color: rgba(242, 251, 246, 0.4);
}
.btn-ghost:hover { border-color: var(--t-primary); transform: translateY(-2px); }
.btn-lg { font-size: 1.15rem; padding: 16px 32px; }
.btn-ico { width: 26px; height: 26px; }
.btn-mini {
  padding: 8px 16px; font-size: 0.85rem; border-radius: 12px;
  background: rgba(38, 161, 123, 0.15);
  border: 2px solid rgba(127, 208, 180, 0.35);
  color: var(--t-primary);
  text-decoration: none;
}
.btn-mini:hover { background: rgba(38, 161, 123, 0.3); }

/* ---------- preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  background: var(--jungle-900);
  transition: opacity 0.25s, visibility 0.25s;
  /* failsafe: even if JS crashes, never trap the user behind the loader */
  animation: preloader-failsafe 0.4s ease 5s forwards;
}
#preloader.done { opacity: 0; visibility: hidden; }
@keyframes preloader-failsafe { to { opacity: 0; visibility: hidden; } }
.preloader-inner { text-align: center; color: var(--t-secondary); font-family: var(--font-display); }
.preloader-banana { width: 84px; margin-inline: auto; animation: peelspin 1.1s ease-in-out infinite; }
@keyframes peelspin {
  0%, 100% { transform: rotate(-12deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.08); }
}
.preloader-bar {
  width: 160px; height: 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  margin: 18px auto 10px; overflow: hidden;
}
.preloader-bar span {
  display: block; height: 100%; width: 40%;
  border-radius: 6px; background: var(--banana);
  animation: loadbar 1s ease-in-out infinite alternate;
}
@keyframes loadbar { from { transform: translateX(-40%); } to { transform: translateX(260%); } }

/* ---------- fx canvas ---------- */
#fx {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  width: 100%; height: 100%;
}

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: 34px; z-index: 250;
  transform: translate(-50%, 80px);
  background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-weight: 600;
  padding: 13px 26px; border-radius: 16px;
  border: 3px solid var(--banana);
  opacity: 0; pointer-events: none;
  transition: transform 0.35s var(--ease-spring), opacity 0.3s;
  max-width: min(90vw, 480px); text-align: center;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- nav ---------- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
  padding: 0 clamp(16px, 3vw, 36px);
  background: rgba(11, 36, 26, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
#nav.scrolled {
  background: rgba(11, 36, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(7, 19, 13, 0.35);
}
#nav.hidden { transform: translateY(-100%); }
#nav.hidden:focus-within { transform: none; }
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--t-primary);
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; letter-spacing: 0.03em;
}
.brand-mark { width: 42px; height: 42px; transition: transform 0.3s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-10deg) scale(1.1); }
.brand-word em, .foot-word em { font-style: normal; color: var(--banana); }
#nav-links {
  display: flex; gap: 4px; margin-left: auto;
}
#nav-links a {
  text-decoration: none; color: var(--t-secondary);
  font-weight: 700; font-size: 0.95rem;
  padding: 8px 14px; border-radius: 12px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
#nav-links a:hover { color: var(--t-primary); background: rgba(255, 255, 255, 0.07); }
#nav-links a.active { color: var(--banana); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
#sound-toggle {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 1.05rem;
  transition: transform 0.15s;
}
#sound-toggle:hover { transform: scale(1.08); }
#sound-toggle .s-on { display: none; }
#sound-toggle[aria-pressed="true"] .s-on { display: block; }
#sound-toggle[aria-pressed="true"] .s-off { display: none; }
.btn-nav { padding: 10px 20px; font-size: 0.95rem; }
#menu-toggle { display: none; }

/* ---------- hero ---------- */
#hero {
  position: relative;
  min-height: 100svh;
  padding: 0;
  display: flex; align-items: center;
  background: var(--sky);
  overflow: hidden;
}
.hero-scene { position: absolute; inset: 0; }
.hero-scene svg { width: 100%; height: 100%; }
.hero-scene .layer { will-change: transform; }
.sign-text {
  font-family: var(--font-display);
  font-weight: 700;
  fill: #4a2c12;
  letter-spacing: 0.04em;
}
.brrr { font-family: var(--font-display); font-weight: 700; fill: #2e7d5b; }
.stable-text {
  font-family: var(--font-display); font-weight: 600;
  fill: var(--tether-soft); letter-spacing: 0.3em;
}

.hero-copy {
  position: relative; z-index: 2;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  max-width: 620px;
  margin-left: max(calc((100% - 1180px) / 2), 24px);
}
/* soft light behind the copy — explicit ellipse that fades out well inside
   its box, so no rectangular edge ever shows on wide viewports */
.hero-copy::before {
  content: "";
  position: absolute;
  inset: 70px -40px 90px -60px;
  z-index: -1;
  background: radial-gradient(ellipse 58% 58% at 42% 52%, rgba(255, 250, 239, 0.85), rgba(255, 250, 239, 0.5) 54%, rgba(255, 250, 239, 0) 78%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(11, 36, 26, 0.85);
  color: var(--t-primary);
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.02em;
  padding: 9px 18px; border-radius: 999px;
  border: 2px solid rgba(63, 211, 159, 0.5);
  backdrop-filter: blur(6px);
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--tether-bright);
  box-shadow: 0 0 0 0 rgba(63, 211, 159, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 211, 159, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(63, 211, 159, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 211, 159, 0); }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 8.5vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 22px 0 30px;
  color: var(--ink);
  text-shadow: 0 4px 0 rgba(255, 255, 255, 0.55);
}
.hero-title .squiggle {
  display: inline-block;
  color: var(--tether);
  position: relative;
}
.hero-title em { font-style: normal; color: var(--banana-deep); }
.hero-title .squiggle::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -6px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 Q 22 2 42 8 T 82 8 T 122 8 T 162 8 T 198 7' fill='none' stroke='%23FFD93B' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 700;
  color: var(--tl-primary);
  margin-bottom: 12px;
}
.hero-sub {
  color: var(--tl-secondary);
  max-width: 480px;
  font-size: 1.02rem;
  margin-bottom: 30px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
#hero .btn-ghost {
  color: var(--ink);
  border-color: rgba(36, 26, 15, 0.35);
  background: rgba(255, 255, 255, 0.5);
}
#hero .btn-ghost:hover { border-color: var(--ink); }

.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.ca-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(11, 36, 26, 0.88);
  color: var(--t-primary);
  border: 2px solid rgba(127, 208, 180, 0.35);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.9rem;
  transition: transform 0.15s, border-color 0.2s;
}
.ca-pill:hover { transform: translateY(-2px); border-color: var(--tether-bright); }
.ca-label {
  font-family: var(--font-display); font-weight: 700; font-size: 0.72rem;
  background: var(--tether); color: var(--jungle-950);
  padding: 2px 8px; border-radius: 6px;
}
.copy-ico { width: 16px; height: 16px; opacity: 0.7; }
.hero-price {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  color: var(--ink);
}
.hero-price sub, .stat-value sub { font-size: 0.6em; }

.delta {
  font-size: 0.85rem; font-weight: 800;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-body);
}
.delta.up { color: #0c5c40; background: rgba(63, 211, 159, 0.25); }
.delta.down { color: #8a2b2b; background: rgba(230, 90, 90, 0.22); }
.dark-band .delta.up { color: #7fe9c3; background: rgba(63, 211, 159, 0.14); }
.dark-band .delta.down { color: #ff9d9d; background: rgba(230, 90, 90, 0.18); }
.d-arrow { font-size: 0.75em; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; z-index: 2;
  transform: translateX(-50%);
  width: 30px; height: 48px;
  border: 3px solid rgba(36, 26, 15, 0.5);
  border-radius: 16px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px;
  width: 6px; height: 10px; border-radius: 4px;
  background: var(--ink);
  transform: translateX(-50%);
  animation: scrollhint 1.6s infinite;
}
@keyframes scrollhint {
  0% { transform: translate(-50%, 0); opacity: 1; }
  70% { transform: translate(-50%, 16px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--ink);
  color: var(--banana);
  overflow: hidden;
  border-block: 3px solid var(--ink);
  position: relative; z-index: 3;
}
.ticker-track {
  display: flex; gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: ticker 36s linear infinite;
  padding: 12px 0;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.tk {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.12em;
  padding: 0 28px;
  position: relative;
}
.tk::after {
  content: "🍌";
  position: absolute; right: -12px; top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
}

/* ---------- stats ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.stat-tile {
  background: rgba(14, 59, 46, 0.55);
  border: 2px solid rgba(127, 208, 180, 0.18);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s;
}
.stat-tile:hover { transform: translateY(-4px); border-color: rgba(127, 208, 180, 0.45); }
.stat-hero { grid-row: span 1; }
.stat-label {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.75rem; color: var(--t-muted);
  margin-bottom: 8px;
}
.stat-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--t-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-value.stat-small { font-size: 1.25rem; }
.stat-note { color: var(--t-muted); font-size: 0.88rem; margin-top: 6px; }
.stat-delta { margin-top: 8px; }
.stats-meta {
  margin-top: 26px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
  color: var(--t-muted); font-size: 0.9rem;
}
.stats-links { display: flex; gap: 10px; }
.band-coins { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bc { position: absolute; width: 90px; opacity: 0.12; }
.bc1 { top: 8%; left: 4%; transform: rotate(-14deg); }
.bc2 { bottom: 12%; right: 6%; width: 130px; transform: rotate(10deg); }
.bc3 { top: 40%; right: 20%; width: 60px; transform: rotate(24deg); }

/* ---------- story panels ---------- */
#story { background: var(--paper); }
.panels { display: grid; gap: 64px; }
.panel {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.panel-flip .panel-art { order: 2; }
.panel-flip .panel-text { order: 1; }
.panel-art {
  border-radius: var(--radius-lg);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-card), 0 8px 0 var(--ink);
  overflow: hidden;
  background: var(--cream);
  transform: rotate(-0.6deg);
  transition: transform 0.35s var(--ease-spring);
}
.panel-flip .panel-art { transform: rotate(0.6deg); }
.panel:hover .panel-art { transform: rotate(0deg) scale(1.015); }
.panel-art svg { width: 100%; height: auto; }
.panel-no {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.95rem;
  color: var(--tether);
  background: rgba(38, 161, 123, 0.12);
  border: 2px solid rgba(38, 161, 123, 0.3);
  padding: 4px 14px; border-radius: 999px;
  display: inline-block; margin-bottom: 14px;
  letter-spacing: 0.2em;
}
.panel-text h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}
.panel-text p { color: var(--tl-secondary); font-size: 1.05rem; }

/* receipts */
.receipts { margin-top: 90px; }
.receipts-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.5rem; text-align: center; margin-bottom: 8px;
}
.receipts-sub {
  text-align: center; color: var(--tl-secondary);
  margin-bottom: 26px;
}

/* live X embed of the original cartoon tweet */
.tweet-embed {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
  min-height: 120px;
}
.tweet-embed .twitter-tweet { margin: 0 auto !important; }
/* fallback look while widgets.js loads (or is blocked) */
.tweet-embed blockquote.twitter-tweet {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 24px 26px;
  max-width: 550px;
  width: 100%;
  font-size: 1rem;
  color: var(--tl-secondary);
}
.tweet-embed blockquote.twitter-tweet a { color: var(--tether); font-weight: 800; }

/* link to the original tweet */
.tweet-actions { display: flex; justify-content: center; margin-bottom: 44px; }
.btn-x {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  text-decoration: none;
  color: var(--tl-primary);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 24px;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.15s var(--ease-spring), box-shadow 0.15s;
}
.btn-x:hover { transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.btn-x:active { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.x-ico { width: 17px; height: 17px; }

/* big X-profile follow button */
.follow-cta { display: flex; justify-content: center; }
.follow-btn {
  display: inline-flex; align-items: center; gap: 16px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--jungle-800), var(--jungle-950));
  color: var(--cream);
  border: 3px solid var(--banana);
  border-radius: 20px;
  padding: 16px 30px;
  box-shadow: 0 8px 0 var(--ink), 0 16px 40px rgba(38, 161, 123, 0.25);
  transition: transform 0.18s var(--ease-spring), box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.follow-btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 217, 59, 0.18) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform 0.5s ease;
}
.follow-btn:hover { transform: translateY(-4px) rotate(-0.5deg); box-shadow: 0 12px 0 var(--ink), 0 22px 50px rgba(38, 161, 123, 0.35); }
.follow-btn:hover::after { transform: translateX(110%); }
.follow-btn:active { transform: translateY(1px); box-shadow: 0 3px 0 var(--ink); }
.fb-mark { width: 46px; height: 46px; }
.fb-text { display: grid; line-height: 1.25; }
.fb-text strong { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.fb-text span { color: var(--tether-bright); font-weight: 800; font-size: 0.9rem; }
.fb-x { width: 24px; height: 24px; margin-left: 6px; color: var(--banana); }
.receipt-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  max-width: 920px; margin-inline: auto;
}
.tweet-card {
  display: block; text-decoration: none;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 24px 26px;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.tweet-card:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 10px 0 var(--ink); }
.tweet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tweet-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--jungle-850); font-size: 1.3rem;
  border: 2px solid var(--ink);
}
.tweet-head strong { display: block; font-size: 0.98rem; }
.tweet-head span { color: var(--tl-muted); font-size: 0.82rem; }
.tweet-body { color: var(--tl-secondary); font-size: 0.98rem; margin-bottom: 14px; }
.tweet-media {
  display: inline-block;
  background: rgba(38, 161, 123, 0.1);
  border: 2px dashed rgba(38, 161, 123, 0.4);
  color: var(--tether); font-weight: 700; font-size: 0.85rem;
  border-radius: 10px; padding: 3px 10px; margin-left: 4px;
}
.tweet-cta {
  font-family: var(--font-display); font-weight: 600;
  color: var(--tether); font-size: 0.9rem;
}

/* ---------- bananomics ---------- */
.bn-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  margin-bottom: 40px;
}
.bn-card {
  background: rgba(14, 59, 46, 0.55);
  border: 2px solid rgba(127, 208, 180, 0.18);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s;
}
.bn-card:hover { transform: translateY(-6px) rotate(-0.5deg); border-color: rgba(127, 208, 180, 0.5); }
.bn-ico { width: 62px; height: 62px; margin: 0 auto 16px; }
.bn-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--t-primary);
  font-variant-numeric: tabular-nums;
}
.bn-label {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; color: var(--tether-bright);
  margin: 6px 0 10px;
}
.bn-note { color: var(--t-muted); font-size: 0.9rem; }

.ca-box { text-align: center; }
.ca-box-label {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.78rem; color: var(--t-muted);
  margin-bottom: 12px;
}
.ca-full {
  display: inline-flex; flex-direction: column; gap: 6px;
  background: var(--jungle-950);
  border: 3px solid var(--tether);
  border-radius: var(--radius);
  padding: 20px 30px;
  transition: transform 0.2s var(--ease-spring), border-color 0.2s, box-shadow 0.2s;
  max-width: 100%;
}
.ca-full:hover {
  transform: translateY(-3px);
  border-color: var(--banana);
  box-shadow: 0 10px 34px rgba(255, 217, 59, 0.15);
}
.ca-full code {
  color: var(--tether-bright);
  font-size: clamp(0.72rem, 2.1vw, 1.02rem);
  word-break: break-all;
}
.ca-copy-hint {
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--t-muted);
}

/* ---------- how to buy ---------- */
#how { background: var(--cream); }
.steps {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 28px 24px;
  position: relative;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.step:hover { transform: translateY(-5px); box-shadow: 0 11px 0 var(--ink); }
.step-no {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--banana);
  border: 3px solid var(--ink);
  border-radius: 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  margin-bottom: 16px;
  transform: rotate(-4deg);
}
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--tl-secondary); font-size: 0.95rem; }
.step a { color: var(--tether); font-weight: 800; text-decoration-thickness: 2px; }
.risk-note {
  text-align: center; margin-top: 30px;
  color: var(--tl-muted); font-size: 0.85rem;
  max-width: 520px; margin-inline: auto;
}
.hero-risk {
  margin-top: 14px; font-size: 0.8rem;
  color: var(--tl-secondary); opacity: 0.85;
}

/* ---------- chart ---------- */
.chart-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 3px solid rgba(127, 208, 180, 0.25);
  background: var(--jungle-950);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
#dex-embed { width: 100%; height: min(70vh, 620px); border: 0; }
.chart-alt { text-align: center; margin-top: 18px; color: var(--t-muted); font-size: 0.95rem; }
.chart-alt a { color: var(--tether-bright); font-weight: 800; }

/* ---------- game ---------- */
#game { background: var(--paper); overflow: hidden; }

/* Banana Rush arcade */
.arcade {
  display: grid;
  grid-template-columns: minmax(0, 2.9fr) minmax(240px, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 84px;
  position: relative;
}
/* on desktop, break out wider than the text column so the game is big.
   Use margin-left + the `translate` property (NOT transform) so the .reveal
   class's own `transform` can't clobber the centering. */
@media (min-width: 1000px) {
  .arcade {
    width: min(1320px, 94vw);
    margin-left: 50%;
    translate: -50% 0;
  }
}
.arcade-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow-card), 0 8px 0 var(--ink);
  overflow: hidden;
  background: #bfe9f2;
}
#rush-canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none; /* the play area owns its touches — no scroll fights */
  cursor: pointer;
}
.arcade-hud {
  position: absolute; top: 12px; left: 14px; right: 14px;
  display: flex; align-items: center; gap: 14px;
  pointer-events: none;
  font-family: var(--font-display);
}
.rh-score {
  font-weight: 700; font-size: 1.6rem; color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.7);
}
.rh-item {
  background: rgba(255, 250, 239, 0.85);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 600; font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.rh-item:last-child { margin-left: auto; }
.arcade-overlay {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(11, 36, 26, 0.55);
  backdrop-filter: blur(3px);
  padding: 18px;
}
.arcade-overlay[hidden] { display: none; }
.ao-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
  padding: 26px 30px;
  text-align: center;
  max-width: 420px;
  width: 100%;
}
.ao-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; margin-bottom: 8px; }
.ao-card > p { color: var(--tl-secondary); font-size: 0.95rem; }
.ao-label {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--tl-muted);
  margin: 18px 0 8px;
}
.ao-label span { text-transform: none; letter-spacing: 0; }
.ao-input {
  display: flex; align-items: center;
  border: 3px solid var(--ink);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 16px;
  overflow: hidden;
}
.ao-input span {
  padding: 10px 4px 10px 14px;
  font-weight: 900; color: var(--tether);
}
.ao-input input {
  border: 0; outline: none;
  font: inherit; font-weight: 700;
  padding: 10px 14px 10px 2px;
  width: 100%;
  background: transparent;
  color: var(--tl-primary);
}
.ao-hint { font-size: 0.78rem; color: var(--tl-muted); margin-top: 14px; }
.ao-score {
  font-family: var(--font-display); font-weight: 700;
  font-size: 3rem; line-height: 1.1; color: var(--tether);
}
.ao-breakdown { color: var(--tl-secondary); font-size: 0.95rem; margin-bottom: 16px; }
.ao-worldrank {
  min-height: 1.2em;
  font-family: var(--font-display); font-weight: 700;
  color: var(--tether); margin: -8px 0 12px;
}
.ao-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ao-change {
  margin-top: 14px;
  font-size: 0.8rem; color: var(--tl-muted);
  text-decoration: underline;
}
.ao-change:hover { color: var(--tether); }

.arcade-board {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 6px 0 var(--ink);
  padding: 20px 22px;
}
.arcade-board h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.15rem; margin-bottom: 14px;
}
#rush-lb { list-style: none; padding: 0; display: grid; gap: 8px; }
#rush-lb li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--cream);
  border: 2px solid rgba(36, 26, 15, 0.12);
  border-radius: 12px;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}
#rush-lb li b { margin-left: auto; font-family: var(--font-display); }
#rush-lb li a { color: var(--tether); font-weight: 800; text-decoration: none; }
#rush-lb li a:hover { text-decoration: underline; }
.lb-rank { width: 26px; text-align: center; font-weight: 800; }
.lb-new { border-color: var(--banana-deep); background: #fff7dd; }
.lb-empty { justify-content: center; color: var(--tl-muted); }
.ab-note { margin-top: 14px; font-size: 0.78rem; color: var(--tl-muted); }

.clicker-head { margin-top: 20px; }
.clicker-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }

@media (max-width: 900px) {
  .arcade { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* the canvas is too short on phones to host the overlay card —
     let the card flow below the game instead of floating over it */
  .arcade-overlay {
    position: static;
    display: block;
    background: none;
    backdrop-filter: none;
    padding: 14px 10px 16px;
  }
  .ao-card { max-width: 100%; box-shadow: 0 5px 0 var(--ink); }
}
.game-stage {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  max-width: 940px; margin-inline: auto;
}
.game-gorilla svg { width: 100%; max-width: 380px; margin-inline: auto; }
.game-gorilla .gg { transform-origin: 50% 60%; transition: transform 0.12s var(--ease-spring); }
.game-gorilla.pop .gg { transform: scale(1.05) rotate(-1.5deg); }
.gg-bolt { opacity: 0; transition: opacity 0.1s; }
.game-gorilla.pop .gg-bolt { opacity: 1; }
.game-ui { text-align: center; }
#banana-btn {
  width: clamp(150px, 22vw, 210px);
  aspect-ratio: 1;
  margin-inline: auto;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 226, 74, 0.35), rgba(245, 185, 46, 0.12) 60%, transparent 75%);
  transition: transform 0.1s var(--ease-spring);
  position: relative;
}
#banana-btn:hover { transform: scale(1.06) rotate(-2deg); }
#banana-btn:active { transform: scale(0.92) rotate(2deg); }
#banana-btn svg { width: 94%; filter: drop-shadow(0 10px 24px rgba(245, 185, 46, 0.45)); }
#banana-btn .btn-bolt { opacity: 0; transition: opacity 0.08s; }
#banana-btn.pop .btn-bolt { opacity: 1; }
.game-count {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 18px;
  font-variant-numeric: tabular-nums;
}
.gc-label { font-size: 0.42em; font-weight: 600; color: var(--tl-muted); letter-spacing: 0.08em; text-transform: uppercase; }
.game-rank { font-size: 1.05rem; color: var(--tl-secondary); margin-top: 6px; }
.game-rank strong { color: var(--tether); font-family: var(--font-display); }
.game-progress {
  height: 12px; border-radius: 8px;
  background: rgba(36, 26, 15, 0.1);
  border: 2px solid var(--ink);
  margin: 14px auto 8px; max-width: 320px;
  overflow: hidden;
}
#game-progress-bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--banana), var(--banana-deep));
  border-radius: 6px;
  transition: width 0.25s;
}
.game-next, .game-best { font-size: 0.88rem; color: var(--tl-muted); }
.game-best { margin-top: 4px; }

/* floating +1 */
.floater {
  position: fixed; z-index: 160;
  font-family: var(--font-display); font-weight: 700;
  color: var(--banana-deep);
  text-shadow: 0 2px 0 var(--ink);
  pointer-events: none;
  animation: floatup 0.9s ease-out forwards;
  font-size: 1.4rem;
}
@keyframes floatup {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-90px) scale(1.4); opacity: 0; }
}

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: rgba(14, 59, 46, 0.55);
  border: 2px solid rgba(127, 208, 180, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: rgba(127, 208, 180, 0.5); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.08rem;
  padding: 20px 56px 20px 24px;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem; color: var(--banana);
  transition: transform 0.25s var(--ease-spring);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 24px 22px;
  color: var(--t-secondary);
  font-size: 0.98rem;
}
.faq-item a { color: var(--tether-bright); font-weight: 800; }

/* ---------- footer ---------- */
#footer {
  background: var(--jungle-950);
  color: var(--t-secondary);
  padding: 72px 0 40px;
}
.foot-top {
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(127, 208, 180, 0.14);
}
.foot-mark { width: 64px; margin-bottom: 14px; }
.foot-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; color: var(--t-primary);
}
.foot-tag { color: var(--t-muted); font-family: var(--font-display); margin-top: 4px; }
.foot-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.foot-links h3 {
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.75rem; color: var(--t-muted);
  margin-bottom: 12px;
}
.foot-links a {
  display: block; text-decoration: none;
  color: var(--t-secondary); font-size: 0.95rem;
  padding: 4px 0;
  transition: color 0.2s, transform 0.2s;
}
.foot-links a:hover { color: var(--banana); transform: translateX(3px); }
.foot-legal { padding-top: 28px; font-size: 0.82rem; color: var(--t-muted); display: grid; gap: 10px; }

/* ---------- reveal animations ----------
   Hidden state only applies when JS is running (html.js set by app.js),
   so content is never invisible without JS. */
.reveal { transition: opacity 0.7s, transform 0.7s var(--ease-spring); }
html.js .reveal { opacity: 0; transform: translateY(34px); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .bn-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1060px) {
  #nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 2px;
    background: rgba(11, 36, 26, 0.97);
    backdrop-filter: blur(16px);
    padding: 18px 24px 26px;
    max-height: calc(100vh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-130%);
    visibility: hidden;
    transition: transform 0.35s var(--ease-spring), visibility 0.35s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
  #nav-links.open { transform: translateY(0); visibility: visible; }
  #nav-links a { padding: 13px 14px; font-size: 1.05rem; }
  #menu-toggle {
    display: grid; gap: 5px;
    width: 42px; height: 42px;
    place-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.12);
  }
  #menu-toggle span {
    display: block; width: 20px; height: 2.6px;
    background: var(--t-primary); border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
  }
  #menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
  #menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  #menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }
  /* nav-links is out of flow here, so push the sound + menu buttons to the right edge */
  .nav-actions { margin-left: auto; }
}
@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .panel { grid-template-columns: 1fr; gap: 22px; }
  .panel-flip .panel-art { order: 0; }
  .panel-flip .panel-text { order: 1; }
  .receipt-row { grid-template-columns: 1fr; }
  .game-stage { grid-template-columns: 1fr; }
  .game-gorilla svg { max-width: 280px; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-copy { margin-left: auto; padding-bottom: 340px; text-align: center; max-width: 640px; }
  .hero-sub, .sec-sub { margin-inline: auto; }
  .cta-row, .hero-meta { justify-content: center; }
}
@media (max-width: 560px) {
  section { padding: 72px 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-tile { padding: 18px 16px; }
  .bn-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 300px; }
  .hero-title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .btn-nav { display: none; }
  /* centered, balanced footer on phones */
  .foot-top { text-align: center; }
  .foot-mark { margin-inline: auto; }
  .foot-links { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .foot-links a { padding-block: 6px; }
  .foot-links a:hover { transform: none; }
  .foot-legal { text-align: center; }
  .fp-usdt { vertical-align: -4px; }
  .fp-beat { float: none; display: block; margin-top: 6px; }
}

/* ============================================================
   v2 — living scene, waves, USDT mark, game upgrades
   ============================================================ */

/* hero entrance */
@keyframes he-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.he { animation: he-in 0.65s var(--ease-spring) both; }
.he-1 { animation-delay: 0.05s; }
.he-2 { animation-delay: 0.15s; }
.he-3 { animation-delay: 0.28s; }
.he-4 { animation-delay: 0.38s; }
.he-5 { animation-delay: 0.48s; }
.he-6 { animation-delay: 0.58s; }

/* living jungle */
#scene .sway {
  transform-box: fill-box;
  transform-origin: 50% 96%;
  animation: sway 6.5s ease-in-out infinite alternate;
  animation-delay: var(--sd, 0s);
}
@keyframes sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.8deg); } }
#scene .drift {
  animation: drift 26s ease-in-out infinite alternate;
  animation-delay: var(--dd, 0s);
}
@keyframes drift { from { transform: translateX(-18px); } to { transform: translateX(26px); } }
.breathe {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: breathe 3.4s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.016) scaleX(1.005); } }
#scene .sun-rays {
  transform-origin: 1310px 130px;
  animation: sun-spin 48s linear infinite;
}
@keyframes sun-spin { to { transform: rotate(360deg); } }
#scene .swinger {
  transform-origin: 0px 0px;
  animation: swing 3.1s ease-in-out infinite alternate;
}
#scene .swing-scroll {
  transform-box: fill-box;
  transform-origin: 50% 0;
  will-change: transform;
}
/* wide/short viewports crop the top of the scene (xMidYMax slice) —
   shift sun, clouds and vine-hangers down so nothing detaches */
@media (min-aspect-ratio: 1.85/1) { #scene .crop-shift { transform: translateY(80px); } }
@media (min-aspect-ratio: 2.05/1) { #scene .crop-shift { transform: translateY(170px); } }
@media (min-aspect-ratio: 2.3/1) { #scene .crop-shift { transform: translateY(250px); } }
@keyframes swing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
#scene .bf-anim {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: flutter 10s ease-in-out infinite alternate;
}
@keyframes flutter {
  0% { transform: translate(0, 0) rotate(-8deg); }
  25% { transform: translate(34px, -24px) rotate(6deg); }
  50% { transform: translate(66px, 6px) rotate(-5deg); }
  75% { transform: translate(30px, 28px) rotate(7deg); }
  100% { transform: translate(-12px, -10px) rotate(-8deg); }
}

/* USDT mark in UI */
.badge-usdt { width: 17px; height: 17px; display: inline-block; vertical-align: -3px; margin: 0 1px; }
.pair-ico { width: 22px; height: 22px; display: inline-block; vertical-align: -4px; margin-right: 8px; }

/* ticker: alternate banana / USDT separators */
.tk:nth-child(even)::after {
  content: "";
  width: 15px; height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%2326A17B'/%3E%3Cpath fill='%23FFF' d='M17.922 17.383v-.002c-.11.008-.677.042-1.942.042-1.01 0-1.721-.03-1.971-.042v.003c-3.888-.171-6.79-.848-6.79-1.658 0-.809 2.902-1.486 6.79-1.66v2.644c.254.018.982.061 1.988.061 1.207 0 1.812-.05 1.925-.06v-2.643c3.88.173 6.775.85 6.775 1.658 0 .81-2.895 1.485-6.775 1.657m0-3.59v-2.366h5.414V7.819H8.595v3.608h5.414v2.365c-4.4.202-7.709 1.074-7.709 2.118 0 1.044 3.309 1.915 7.709 2.118v7.582h3.913v-7.584c4.393-.202 7.694-1.073 7.694-2.116 0-1.043-3.301-1.914-7.694-2.117'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* organic wave dividers */
.band-wave {
  position: absolute; left: 0; right: 0;
  height: 56px;
  pointer-events: none;
  z-index: 1;
}
.band-wave svg { width: 100%; height: 100%; display: block; }
.bw-top { top: -1px; }
.bw-bottom { bottom: -1px; }

/* timeframe chips */
.tf-row { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.tf-row[hidden] { display: none; }
.tf-chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(7, 19, 13, 0.4);
  border: 1.5px solid rgba(127, 208, 180, 0.2);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 0.78rem;
}
.tf-chip b {
  color: var(--t-muted); font-weight: 800;
  font-size: 0.68rem; letter-spacing: 0.06em;
}
.tf-d { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--t-secondary); }
.tf-d.up { color: #7fe9c3; }
.tf-d.down { color: #ff9d9d; }

/* CA conic glow */
@property --ca-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.ca-glow {
  display: inline-block;
  max-width: 100%;
  border-radius: calc(var(--radius) + 5px);
  padding: 3px;
  background: conic-gradient(from var(--ca-angle, 0deg), #26a17b, #ffd93b, #3fd39f, #0f3f2f, #26a17b);
  animation: ca-spin 5s linear infinite;
}
@keyframes ca-spin { to { --ca-angle: 360deg; } }
.ca-glow .ca-full { border: 0; }

/* floating band coins */
.bc { animation: bc-float 9s ease-in-out infinite alternate; }
.bc2 { animation-delay: -3s; }
.bc3 { animation-delay: -6s; }
@keyframes bc-float {
  from { transform: translateY(-8px) rotate(-12deg); }
  to { transform: translateY(10px) rotate(8deg); }
}

/* game: combo + golden banana */
.game-combo {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--banana-deep);
  text-shadow: 0 1.5px 0 var(--ink);
  margin-top: 4px;
  animation: combo-pulse 0.45s ease-in-out infinite alternate;
}
@keyframes combo-pulse { from { transform: scale(1); } to { transform: scale(1.07); } }
.game-gorilla.frenzy .gg-bolt { opacity: 1; }
.game-gorilla.frenzy .gg { animation: frenzy-shake 0.18s linear infinite; }
@keyframes frenzy-shake {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1.3deg); }
}
.game-stage { position: relative; }
#golden-banana {
  position: absolute;
  z-index: 5;
  width: 74px; height: 74px;
  padding: 0;
  filter: drop-shadow(0 0 16px rgba(255, 200, 0, 0.9)) saturate(1.7) brightness(1.12);
  animation: gold-pop 0.3s var(--ease-spring), gold-wiggle 0.55s ease-in-out 0.3s infinite alternate;
}
#golden-banana svg { width: 100%; }
@keyframes gold-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes gold-wiggle { from { transform: rotate(-12deg) scale(1); } to { transform: rotate(12deg) scale(1.08); } }

/* banana cursor on the clicker */
#banana-btn {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 120 120'%3E%3Cpath d='M22 30 C 12 64, 36 96, 74 100 C 95 102, 110 90, 114 72 C 115 67, 109 64, 105 68 C 95 80, 75 84, 58 76 C 39 67, 29 50, 31 30 C 31.5 24, 24 22, 22 30 Z' fill='%23FFD93B' stroke='%23241a0f' stroke-width='6'/%3E%3C/svg%3E") 18 18, pointer;
}

/* footer power row — stays inline so punctuation hugs its word */
.fp-usdt { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; }
.fp-beat {
  float: right;
  font-family: var(--font-display);
  animation: beat 2.6s ease-in-out infinite;
}
@keyframes beat {
  0%, 16%, 100% { transform: scale(1); }
  8% { transform: scale(1.12); }
}

/* tilt cards (JS-driven). No base transition here — it would clobber
   .reveal's and .tweet-card's own transitions on the same element. */
.tilt-live { will-change: transform; }
.tilt-live.tilting { transition: transform 0.06s linear; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .he { animation: none; }
}
