:root {
  --cream: #eed08f;
  --cream-2: #e2c077;
  --panel: #f9edd2;
  --panel-2: #f3e0b4;
  --green: #8fc63f;
  --green-hot: #a6de55;
  --green-deep: #5c9432;
  --green-text: #2f5716;
  --ink: #2e2a1c;
  --text: var(--ink);
  --muted: #54503d;
  --line: #d9bd82;
  --radius: 18px;
  --maxw: 1140px;
  --shadow-glow: 0 0 60px rgba(143, 198, 63, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: "Archivo Black", "Space Grotesk", sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--green);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--green-deep);
}
.btn--primary:hover {
  background: var(--green-hot);
  box-shadow: 0 6px 24px rgba(143, 198, 63, 0.5);
  transform: translateY(-2px);
}
.btn:disabled { cursor: not-allowed; filter: grayscale(0.4); opacity: 0.55; box-shadow: none; transform: none; }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover {
  border-color: var(--green);
  color: var(--green-text);
}
.btn--copy {
  background: var(--green);
  color: var(--ink);
  padding: 0.6rem 1.2rem;
}
.btn--copy:hover { background: var(--green-hot); }
.btn--copy.copied { background: #2ec16b; color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(238, 208, 143, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__logo { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.nav__ticker {
  font-family: "Archivo Black", sans-serif;
  font-size: 1.15rem;
  color: var(--green-text);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}
.nav__links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover:not(.nav__cta),
.nav__links a.is-active {
  color: var(--green-text);
}
.nav__links .nav__cta { color: var(--ink); }

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 28px rgba(46, 42, 28, 0.18);
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .nav__links.is-open {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    padding: 0.9rem 1.25rem;
    border-top: 1px solid var(--line);
  }
  .nav__links .nav__cta {
    display: inline-flex;
    margin: 0.85rem 1.25rem;
    border-top: none;
    padding: 0.75rem 1.4rem;
  }
  .nav__toggle { display: inline-flex; margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(2rem, 6vw, 4rem) 1.25rem clamp(2.5rem, 6vw, 4rem);
  text-align: center;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 780px;
  height: 780px;
  max-width: 120vw;
  background: radial-gradient(circle, rgba(143, 198, 63, 0.28) 0%, rgba(143, 198, 63, 0) 62%);
  pointer-events: none;
  animation: glowPulse 3.2s ease-in-out infinite;
}
.hero__inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero__logo {
  display: block;
  width: clamp(96px, 16vw, 150px);
  height: clamp(96px, 16vw, 150px);
  object-fit: cover;
  border-radius: 28%;
  border: 4px solid var(--ink);
  box-shadow: 0 10px 0 var(--green-deep), 0 18px 34px rgba(46, 42, 28, 0.25);
  margin: 0 auto 1.25rem;
}
.hero__badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--green);
  color: var(--green-text);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero__title {
  font-size: clamp(2.6rem, 11vw, 5.5rem);
  color: var(--ink);
  text-shadow: 0 4px 40px rgba(143, 198, 63, 0.45);
}
.hero__tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 600;
  margin: 0.75rem auto 0;
  max-width: 620px;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.75; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

/* ---------- Sub-page hero (Game / Community Links) ---------- */
.hero--sub { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.hero--sub .hero__title { font-size: clamp(2.2rem, 8vw, 3.6rem); }

/* ---------- Live chart ---------- */
.chart { max-width: 720px; margin: 1.75rem auto 0; }
.chart__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #000000;
  border: 1px solid #253006;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7), inset 0 0 90px rgba(204, 255, 0, 0.06);
}
.chart__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.chart__hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem auto 0;
  max-width: 540px;
}

/* ---------- Meme grid ---------- */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.9rem;
  max-width: 960px;
  margin: 2rem auto 0;
}
.meme-grid__status {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 460px;
  margin: 0 auto;
}
.meme-grid__item {
  margin: 0;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.meme-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.meme-grid__item img:hover { transform: scale(1.05); }

.meme-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.75rem auto 0;
}
.meme-pagination__btn { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.meme-pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.meme-pagination__label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.meme-count {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.75;
  margin: 0.6rem auto 0;
}

.meme-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(8, 8, 8, 0.86);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}
.meme-lightbox[hidden] { display: none; }
.meme-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ---------- Community links ---------- */
.links-list {
  max-width: 560px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.links-list__item {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.links-list__item:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(143, 198, 63, 0.25);
}
.links-list__title {
  display: inline-block;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.1rem;
  color: var(--green-text);
}
.links-list__title:hover { text-decoration: underline; }
.links-list__desc { color: var(--muted); margin: 0.35rem 0 0; }
.links-list__author { color: var(--text); font-weight: 600; }
.links-list__author:hover { text-decoration: underline; }

.community-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1.5rem auto 0;
  max-width: 540px;
}
.community-note__link { color: var(--green-text); font-weight: 600; }
.community-note__link:hover { text-decoration: underline; }

/* ---------- The Game ---------- */
.game { max-width: 720px; margin: 1.75rem auto 0; }
.game__hud {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.game__stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 1.1rem;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.game__stat span {
  color: var(--green-text);
  font-family: "Archivo Black", sans-serif;
  margin-left: 0.35rem;
}
.game__stage {
  position: relative;
  background: radial-gradient(circle at 50% 42%, #141c07 0%, #050701 72%);
  border: 1px solid #253006;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7), inset 0 0 90px rgba(160, 220, 20, 0.06);
  transition: box-shadow 0.15s ease;
}
.game__stage svg {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  filter: drop-shadow(0 0 8px rgba(200, 223, 24, 0.35)) drop-shadow(0 0 22px rgba(150, 200, 20, 0.2));
}
.game__stage .hand { pointer-events: none; }
#pickle { will-change: transform; }
.pickle__strain { transition: opacity 0.08s linear; pointer-events: none; }

/* click pulse — the neon glow "vibrates" like an equalizer reacting to the beat */
.game__stage svg.pulse { animation: eqPulse 0.22s ease-out; }
@keyframes eqPulse {
  0% { filter: drop-shadow(0 0 8px rgba(200, 223, 24, 0.35)) drop-shadow(0 0 22px rgba(150, 200, 20, 0.2)); }
  35% { filter: drop-shadow(0 0 20px rgba(225, 255, 90, 0.9)) drop-shadow(0 0 50px rgba(190, 255, 40, 0.6)); }
  100% { filter: drop-shadow(0 0 8px rgba(200, 223, 24, 0.35)) drop-shadow(0 0 22px rgba(150, 200, 20, 0.2)); }
}

/* the hand jolts right and back on every click */
#handShake.shake { animation: handShake 0.28s ease-out; }
@keyframes handShake {
  0% { transform: translateX(0); }
  35% { transform: translateX(36px); }
  100% { transform: translateX(0); }
}

/* the watch — sits on the pickle until it snaps off */
.watch { transform-box: fill-box; transform-origin: center; }
.watch.is-breaking {
  animation: watchBreakOff 0.65s cubic-bezier(0.25, 0.85, 0.4, 1) forwards;
}
@keyframes watchBreakOff {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
  22% { transform: translate(3px, -6px) rotate(-10deg) scale(1.05); opacity: 1; }
  100% { transform: translate(130px, -190px) rotate(-340deg) scale(0.55); opacity: 0; }
}
.watch-debris { pointer-events: none; }

/* danger tint when the pickle is near bursting */
.game__stage.is-danger {
  box-shadow: inset 0 0 70px rgba(192, 57, 43, 0.55);
}
.game__stage.is-shaking svg { animation: nervous 0.09s linear infinite; }
@keyframes nervous {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1.5px, 1px); }
  50% { transform: translate(1.5px, -1px); }
  75% { transform: translate(-1px, -1.5px); }
  100% { transform: translate(1px, 1.5px); }
}

.milk-drop { pointer-events: none; }

/* game over overlay */
.game__over {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 0.4rem;
  text-align: center;
  padding: 1.5rem;
  background: rgba(8, 8, 8, 0.82);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.35s ease both;
}
.game__over[hidden] { display: none; }
.game__over h3 { font-size: clamp(1.5rem, 5vw, 2.2rem); color: var(--green); }
.game__over p { color: #c9c2ab; margin: 0.2rem auto 0.8rem; max-width: 340px; }
.game__over p span { color: #f5f2e6; font-weight: 700; }

.game__hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 1rem auto 0;
  max-width: 540px;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hero__glow, .marquee__track, .game__stage.is-shaking svg, .game__stage svg.pulse, #handShake.shake { animation: none; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  background: var(--green);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 0.55rem 0;
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  font-family: "Archivo Black", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  animation: scroll 22s linear infinite;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Contract ---------- */
.contract { padding: clamp(2.5rem, 6vw, 4rem) 1.25rem; }
.contract__inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}
.contract__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--green-text);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.contract__row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.contract__ca {
  flex: 1;
  min-width: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: var(--text);
  overflow-x: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.contract__note { color: var(--muted); font-size: 0.85rem; margin: 0.9rem 0 0; }

/* ---------- Socials ---------- */
.socials {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--cream-2); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 3rem 1.25rem; text-align: center; }
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: "Archivo Black", sans-serif;
  color: var(--green-text);
  margin-bottom: 1.25rem;
}
.footer__logo { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.footer__disclaimer { color: var(--muted); font-size: 0.82rem; max-width: 680px; margin: 0 auto 1rem; line-height: 1.6; }
.footer__link { color: var(--green-text); font-weight: 600; font-size: 0.85rem; display: inline-block; margin-bottom: 1rem; }
.footer__link:hover { text-decoration: underline; }
.footer__copy { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ---------- Feed the Birds ---------- */
.birds { max-width: var(--maxw); margin: 0 auto; padding: 5.5rem 1.25rem 4rem; }
.birds__hero { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.eyebrow, .birds__step { color: var(--green-text); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; margin: 0 0 0.75rem; text-transform: uppercase; }
.birds h1 { font-family: "Archivo Black", sans-serif; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: 0.92; margin: 0; color: var(--green-text); }
.birds__lede { color: var(--muted); font-size: 1.1rem; line-height: 1.65; margin: 1.25rem auto; }
.birds__actions { display: grid; gap: 0.75rem; justify-items: center; margin-top: 1.6rem; }
.birds__grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.birds__card { background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; }
.birds__card--wide { grid-column: span 2; }
.birds__card h2, .birds__notice h2 { color: var(--green-text); font-size: 1.4rem; margin: 0 0 0.8rem; }
.birds__card p:not(.birds__step):not(.status), .birds__help, .birds__list { color: var(--muted); line-height: 1.6; }
.birds__metrics { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.25rem 0; }
.birds__metrics div { background: var(--cream-2); border-radius: 12px; padding: 1rem; }
.birds__metrics strong { color: var(--green-text); display: block; font-size: 1.5rem; }
.birds__metrics span { color: var(--muted); display: block; font-size: 0.82rem; margin-top: 0.25rem; }
.birds label { color: var(--text); display: block; font-weight: 700; margin-bottom: 0.5rem; }
.birds input { background: var(--cream-2); border: 1px solid var(--line); border-radius: 10px; box-sizing: border-box; color: var(--text); font: inherit; padding: 0.8rem; width: 100%; }
.birds input:focus { border-color: var(--green); outline: 2px solid color-mix(in srgb, var(--green) 30%, transparent); }
.birds__help { font-size: 0.84rem; margin: 0.65rem 0; }
.birds__available { appearance: none; background: transparent; border: 0; color: var(--green-text); cursor: pointer; font: inherit; font-size: 0.84rem; font-weight: 700; margin: 0.55rem 0 0; padding: 0; text-decoration: underline; text-underline-offset: 0.15em; }
.birds__available:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }
.birds__transactions { font-size: 0.84rem; line-height: 1.6; margin: 0.8rem 0 0; overflow-wrap: anywhere; }
.birds__transactions a { color: var(--green-text); font-weight: 700; }
.birds__acknowledge { align-items: flex-start; color: var(--muted); cursor: pointer; display: flex; font-size: 0.84rem; gap: 0.6rem; line-height: 1.5; margin: 1rem 0 0; }
.birds__acknowledge input { accent-color: var(--green); background: none; border: 0; border-radius: 0; box-sizing: content-box; flex-shrink: 0; height: 1.1rem; margin: 0.15rem 0 0; padding: 0; width: 1.1rem; }
.birds__list { margin: 0 0 1.4rem; padding-left: 1.15rem; }
.birds__list li + li { margin-top: 0.5rem; }
.status { font-size: 0.85rem; margin: 0; }
.status[data-tone="success"] { color: #39761d; }
.status[data-tone="error"] { color: #a63d27; }
.birds__notice { background: var(--cream-2); border: 1px dashed var(--line); border-radius: 18px; margin-top: 1rem; padding: 1.5rem; }
.birds__notice p { color: var(--muted); line-height: 1.6; margin-bottom: 0; }
@media (max-width: 640px) { .birds { padding-top: 4rem; } .birds__grid { grid-template-columns: 1fr; } .birds__card--wide { grid-column: auto; } }

