/* Palette: cream background, dark brown text, gold accent. */
:root {
  --bg: #fffaf0;
  --panel: #ffffff;
  --panel-2: #fff6dc;
  --line: #f0dca0;
  --text: #2b2208;
  --muted: #8a7445;
  --accent: #d4a017;
  --accent-2: #f1c54a;
  --ink: #2b2208;
  --up: #1f9d5b;
  --down: #d9304f;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* beats any display: set on an id/class */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  display: flex; flex-direction: column; /* footer sits at the bottom even on short pages */
  background-color: var(--bg);
  /* Soft gold glow with a faint dot grid, painted on body itself (a fixed ::before layer
     made Chrome composite the hero image over the flat body color). */
  background-image:
    radial-gradient(70% 50% at 50% -10%, rgba(241,197,74,.45), transparent 70%),
    radial-gradient(45% 40% at 100% 20%, rgba(255,228,160,.55), transparent 70%),
    radial-gradient(40% 40% at 0% 60%, rgba(240,210,120,.35), transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(212,160,23,.14) 0 1.5px, transparent 2.5px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 26px 26px;
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
h2 { font-size: 1.35rem; margin: 0; letter-spacing: -.01em; }
h3 { margin: 0 0 4px; font-size: 1.05rem; }
section { margin: 28px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
small { font-size: .8em; }

/* Placeholders keep their final size so the page does not jump while scripts render */
#site-nav { height: 58px; background: rgba(255,250,240,.85); border-bottom: 1px solid var(--line); } /* bar shape before the script draws the menu */
#site-footer { min-height: 90px; }
/* Skeletons: shimmer until the script replaces the mount or fills the text. */
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel, [data-panel], #kicker:empty, #lede:empty, #hero-note:empty, #site-footer {
  background: linear-gradient(90deg, rgba(255,255,255,.35) 25%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.35) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 12px;
}
[data-panel="rewards"], [data-panel="guide"], [data-panel="payouts"] { min-height: 260px; border-radius: 18px; border: 1px solid var(--line); margin: 28px 0; }
[data-panel="why"] { min-height: 230px; margin: 28px 0; }
[data-panel="pitch"] { min-height: 420px; border-radius: 18px; border: 1px solid var(--line); margin: 28px 0; }
[data-panel="links"], [data-panel="mechanism"] { min-height: 40px; }
.hero-text { min-height: 300px; }
#kicker:empty { display: block; height: 14px; width: 55%; margin: 0 0 14px; }
#lede:empty { display: block; height: 72px; width: 90%; margin: 0 0 14px; }
#hero-note:empty { display: block; height: 22px; width: 75%; margin: 0 0 22px; }
#site-footer { width: 220px; height: 24px; min-height: 0; margin: 30px auto 50px; }
.boot { padding: 36px 0; }
.boot .skel { border: 1px solid var(--line); }
.boot-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; align-items: center; margin-bottom: 16px; }
.boot-hero .skel { height: 220px; }
.boot-panel { height: 300px; border-radius: 18px; }
@media (max-width: 880px) { .boot-hero { grid-template-columns: 1fr; } .boot-hero .skel { height: 160px; } }

/* Top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,250,240,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; color: var(--text); text-decoration: none; font-size: 1.05rem; letter-spacing: -.01em; }
.brand img { border-radius: 50%; }
.top-links { display: flex; gap: 18px; margin-left: auto; }
.top-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.top-links a:hover, .top-links a.is-current { color: var(--accent); }
.drawer-social, .footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.drawer-social { margin-top: 12px; }
.drawer-social .social { padding: 8px 12px; }
.footer-social .social { padding: 11px 18px; gap: 10px; }
.footer-social { justify-content: center; gap: 16px; }
.top-sep { width: 1px; height: 16px; background: var(--line); align-self: center; }
.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; padding: 0; margin-right: 4px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .15s, opacity .15s; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-sheet, .menu-backdrop { display: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 700; border: 1px solid var(--line); color: var(--text); background: var(--panel);
  box-shadow: 0 4px 14px rgba(120,90,20,.08);
}
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 24px rgba(212,160,23,.35); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.btn.wallet-btn { display: inline-flex; align-items: center; gap: 8px; }
.btn.wallet-btn img { width: 18px; height: 18px; border-radius: 4px; }
.btn.is-disabled { background: var(--panel-2); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: default; }

/* Hero */
.hero { padding: 40px 0 10px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; }
.kicker { color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
h1 { font-size: 3.6rem; line-height: 1.02; margin: 0 0 16px; letter-spacing: -.035em; font-weight: 900; }
.lede { font-size: 1.15rem; margin: 0 0 10px; max-width: 540px; }
.note { color: var(--muted); font-size: .9rem; margin: 0 0 22px; }
.note.punch { color: var(--text); font-weight: 600; font-size: 1rem; margin-bottom: 10px; }
.cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cta-left { margin-top: 18px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem;
}
.social svg { width: 16px; height: 16px; fill: var(--ink); }
.social:hover { border-color: var(--accent); }

.hero-art { text-align: center; }
.mascot { position: relative; border: 0; background: none; padding: 0; cursor: pointer; width: 300px; height: 330px; display: block; margin: 0 auto; }
/* No filter, mask, or transition on the mascot image: each of those makes some browsers
   composite the <img> on its own layer and paint a faint box around it. The bottom fade is
   baked into the image file itself. */
.mascot img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.mascot:active img { transform: scale(.97); }
.mascot .heart { position: absolute; pointer-events: none; animation: float 1.3s ease-out forwards; }
@keyframes float { from { opacity: 1; transform: translateY(0) scale(.8); } to { opacity: 0; transform: translateY(-110px) scale(1.3); } }
.mascot-hint { color: var(--muted); font-size: .85rem; margin: 4px 0 0; }

/* Panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; box-shadow: 0 10px 30px rgba(120,90,20,.06); }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { background: var(--ink); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.pill-pink { background: var(--panel-2); color: var(--accent); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.live { margin-left: auto; font-size: .75rem; font-weight: 700; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #d6c9a6; }
.live.on { color: var(--up); }
.live.on::before { background: var(--up); box-shadow: 0 0 0 3px rgba(31,157,91,.18); }
.label { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.stat { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.stat strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.stat small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stat strong + small { display: inline; margin-left: 4px; }
.stat #m-change { display: block; margin-left: 0; }
.stat small.up { color: var(--up); } .stat small.down { color: var(--down); }
.source { color: var(--muted); font-size: .8rem; margin: 12px 0 0; }
.safety { color: var(--text); font-weight: 600; }

/* Rewards panel */
.rewards-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 10px; }
.rewards-big { grid-row: span 2; background: linear-gradient(135deg, #fff1c2, #ffe08a); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.rewards-big .big { font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; margin: 2px 0; line-height: 1.1; color: var(--accent); }
.rewards-big .big small { font-size: 1.1rem; color: var(--text); font-weight: 800; }
.rewards-big .sub { color: var(--muted); margin: 0; font-size: .9rem; }

/* Stats row */
.two { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; align-items: start; }
.ca { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.ca-label { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.ca code { word-break: break-all; font-size: .85rem; flex: 1 1 auto; }
.ca button { border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; background: var(--accent); color: #fff; font-weight: 700; }
.ca button:hover { filter: brightness(1.06); }
.links { display: flex; gap: 8px; flex-wrap: wrap; }
.link { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: .9rem; }
.link:hover { border-color: var(--accent); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--panel-2); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
td { padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--muted); width: 38%; }

/* Why the chicken */
#why h2 { margin-bottom: 12px; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.why-item { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.why-item h3 { color: var(--accent); }
.why-item p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Guide */
.quest .meta { color: var(--muted); font-size: .9rem; margin: -4px 0 10px; }
#how-list { padding-left: 22px; margin: 0; }
#how-list li { margin: 8px 0; padding-left: 4px; }
#how-list li::marker { color: var(--accent); font-weight: 800; }
.reward { font-weight: 700; margin: 14px 0 6px; }
.mechanism { color: var(--muted); font-size: .95rem; margin: 0; border-left: 3px solid var(--accent-2); padding-left: 12px; }

.disclaimer { color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); padding-top: 20px; }
main { flex: 1 0 auto; width: 100%; }
footer.wrap { color: var(--muted); font-size: .85rem; padding: 44px 20px 80px; text-align: center; margin-top: auto; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover, .footer-links a.is-current { color: var(--accent); }
#site-footer { margin-top: auto; }
.footer-tag { font-weight: 900; color: var(--text); font-size: 1.25rem; margin: 0 0 16px; letter-spacing: -.02em; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 20;
  background: var(--ink); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

@media (max-width: 880px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .mascot { width: 230px; height: 250px; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta { justify-content: center; }
  h1 { font-size: 2.6rem; }
  .rewards-grid { grid-template-columns: 1fr 1fr; }
  .rewards-big { grid-column: span 2; grid-row: auto; }
  .two { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .top-links { display: none; }
  .top-in .btn { margin-left: auto; }
  .burger { display: flex; }
  /* side drawer from the left */
  .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(43,34,8,.35); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .menu-backdrop.is-open { opacity: 1; visibility: visible; }
  .menu-sheet { display: flex; flex-direction: column; gap: 4px; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; width: min(300px, 84vw);
    padding: 0 16px 20px; background: var(--bg); box-shadow: 12px 0 40px rgba(120,90,20,.18); transform: translateX(-100%); visibility: hidden; transition: transform .22s ease, visibility .22s; overflow-y: auto; }
  .menu-sheet.is-open { transform: none; visibility: visible; }
  .menu-sheet-head { display: flex; align-items: center; justify-content: space-between; height: 58px; margin: 0 -4px 8px; border-bottom: 1px solid var(--line); }
  .menu-close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 24px; line-height: 1; color: var(--text); cursor: pointer; }
  .menu-sheet a { padding: 12px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
  .menu-sheet a:hover, .menu-sheet a.is-current { color: var(--accent); background: var(--panel); }
  .menu-sheet .btn { text-align: center; margin-top: auto; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 480px) {
  .info-grid, .why { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
}

.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.wallet-help { margin-top: 14px; padding: 12px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.wallet-help p { margin: 0 0 8px; }
.wallet-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }

/* ---------- Stats page ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 36px 0 10px; flex-wrap: wrap; }
.page-head h1 { font-size: 2.6rem; margin: 0 0 8px; }
.page-head .note { max-width: 560px; margin: 0; }
.ca-compact { margin: 0; }
.more { margin-left: 4px; font-size: .85rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }
.more + .live { margin-left: auto; }
.info-grid-6 { grid-template-columns: repeat(6, 1fr); }
.chart { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); min-height: 120px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.chart.has-chart { background: #fff; height: 440px; display: block; }
.chart iframe { width: 100%; height: 100%; border: 0; display: block; }
.chart-empty { margin: 0; padding: 40px 20px; }
.rewards-grid-compact { grid-template-columns: repeat(2, 1fr); margin-bottom: 12px; }
.rewards-grid-compact .stat strong { font-size: 1.05rem; }
.tape { font-size: .9rem; }
.tape th { text-align: left; color: var(--muted); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tape td { padding: 8px 12px; }
.tape td:first-child { width: auto; color: inherit; }
.tape a { color: var(--text); text-decoration: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; }
.tape a:hover { color: var(--accent); }
@media (max-width: 880px) {
  .info-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .page-head h1 { font-size: 2.1rem; }
  .chart.has-chart { height: 360px; }
}
@media (max-width: 480px) { .info-grid-6 { grid-template-columns: 1fr 1fr; } .rewards-grid-compact { grid-template-columns: 1fr; } }

/* Back to top, phones only */
.to-top { display: none; position: fixed; right: 16px; bottom: 18px; z-index: 30; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--panel); color: var(--accent); font-size: 20px; font-weight: 900; box-shadow: 0 8px 24px rgba(120,90,20,.18); cursor: pointer;
  opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s; pointer-events: none; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 880px) { .to-top { display: block; } }

/* Why buy the chicken */
.pitch-intro { margin: 0 0 14px; }
.pitch-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.pitch-list li { position: relative; padding-left: 26px; font-size: .97rem; line-height: 1.55; }
.pitch-list li::before { content: "🥚"; position: absolute; left: 0; top: 1px; font-size: .9em; }
.pitch-list strong { color: var(--text); }
.pitch .cta-left { margin-top: 16px; }
@media (max-width: 880px) { .pitch-list { grid-template-columns: 1fr; } }

/* About page */
.page-head h1 { max-width: 760px; }
.about .panel p { margin: 0 0 12px; max-width: 820px; }
.about .panel p:last-child { margin-bottom: 0; }
[data-panel="about"] { min-height: 600px; }

.tag-sys { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); font-size: .72rem; font-weight: 700; vertical-align: middle; }
tr.is-system td { color: var(--muted); }

/* inline copy feedback */
.is-copied, .ca button.is-copied, .btn.is-copied { background: var(--up) !important; color: #fff !important; border-color: var(--up) !important; }
.is-copy-failed, .ca button.is-copy-failed, .btn.is-copy-failed { background: var(--down) !important; color: #fff !important; border-color: var(--down) !important; }

.msg.good { background: #eef9f2; border-color: #bfe6cd; color: var(--up); }
input.is-bad { border-color: var(--down); }
input.is-good { border-color: var(--up); }
