:root {
  --bg: #f4ecd3;
  --paper: #fff8e8;
  --ink: #101820;
  --text: #1c2733;
  --primary: #f9d84a;
  --secondary: #6ee7b7;
  --accent: #ff4d6d;
  --white: #f8fafc;
  --shadow: 0 16px 0 rgba(16, 24, 32, 0.9);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Baloo 2', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(249,216,74,.16), transparent 25%),
    radial-gradient(circle at 80% 20%, rgba(255,77,109,.12), transparent 25%),
    radial-gradient(circle at 30% 80%, rgba(110,231,183,.12), transparent 25%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(16,24,32,0.03) 0 2px, transparent 2px 5px),
    linear-gradient(rgba(255,255,255,0.05), rgba(16,24,32,0.03));
  mix-blend-mode: multiply;
  opacity: .45;
  z-index: 20;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(16,24,32,.08);
  z-index: 50;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--secondary));
}

.parallax-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.blob {
  position: absolute;
  border: 4px solid var(--ink);
  opacity: .9;
  filter: drop-shadow(5px 5px 0 rgba(16,24,32,.2));
}
.blob-a, .blob-d { border-radius: 47% 53% 61% 39% / 43% 41% 59% 57%; }
.blob-b, .blob-e { border-radius: 61% 39% 40% 60% / 58% 62% 38% 42%; }
.blob-c, .blob-f { border-radius: 50%; }
.blob-a { width: 170px; height: 140px; background: rgba(249,216,74,.75); top: 8%; left: 4%; }
.blob-b { width: 120px; height: 120px; background: rgba(255,77,109,.5); top: 18%; right: 7%; }
.blob-c { width: 90px; height: 90px; background: rgba(110,231,183,.6); top: 52%; left: 10%; }
.blob-d { width: 150px; height: 110px; background: rgba(110,231,183,.45); top: 70%; right: 8%; }
.blob-e { width: 100px; height: 82px; background: rgba(249,216,74,.55); top: 84%; left: 42%; }
.blob-f { width: 66px; height: 66px; background: rgba(255,77,109,.45); top: 38%; right: 34%; }

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 60px;
}

.deck {
  display: grid;
  gap: 28px;
}

.panel {
  position: relative;
  cursor: grab;
  width: 100%;
}
.panel.dragging { cursor: grabbing; z-index: 30; }
.panel-frame, .footer-card {
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-frame { padding: 22px; }
.panel-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(16,24,32,.05) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: .45;
}

.hero-panel { transform: rotate(-1.2deg); transform-origin: center center; }
.problem-panel { transform: rotate(1deg); transform-origin: center center; }
.meme-panel { transform: rotate(-0.8deg); transform-origin: center center; }
.token-panel { transform: rotate(1.1deg); transform-origin: center center; }
.join-panel { transform: rotate(-1deg); transform-origin: center center; }

.panel-topline, .section-tag {
  position: relative;
  z-index: 1;
}
.panel-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.eyebrow, .section-tag, .stamp, .mini-label, .fact-pill span, .token-card span, .step-no, .footer-meta, .footer-title {
  font-family: 'Space Mono', monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow, .section-tag {
  font-size: .76rem;
  color: var(--ink);
}
.stamp {
  background: var(--accent);
  color: var(--white);
  border: 3px solid var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .76rem;
}

.wallet-window {
  position: relative;
  z-index: 1;
  border: 4px solid var(--ink);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(248,250,252,.92), rgba(255,248,232,.94));
  overflow: hidden;
}
.wallet-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 4px solid var(--ink);
  background: var(--primary);
}
.wallet-chrome span {
  width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper);
}
.wallet-chrome p { margin: 0 0 0 6px; font-family: 'Space Mono', monospace; font-size: .9rem; }

.wallet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 20px;
  padding: 20px;
  align-items: start;
}
.wallet-copy {
  min-width: 0;
  padding-right: 8px;
}
.hand-note {
  font-family: 'Patrick Hand', cursive;
  color: var(--accent);
  font-size: 1.4rem;
  margin: 0 0 4px;
}
h1, h2, h3, strong { color: var(--ink); }
h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: .88;
  margin: 0 0 14px;
  text-transform: uppercase;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: .95;
  margin: 0 0 14px;
  text-transform: uppercase;
}
h3 { margin: 0 0 8px; font-size: 1.2rem; }
p { font-size: 1.05rem; line-height: 1.5; margin: 0 0 12px; }
.lead { max-width: 54ch; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
  box-shadow: 0 6px 0 rgba(16,24,32,.95);
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-ghost { background: var(--paper); }

.contract-box {
  margin-top: 18px;
  border: 3px dashed var(--ink);
  border-radius: 20px;
  padding: 12px;
  background: rgba(110,231,183,.18);
}
.contract-box label { display: block; font-weight: 800; margin-bottom: 8px; }
.contract-line { display: flex; gap: 8px; }
.contract-line input {
  flex: 1;
  min-width: 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px;
  font-family: 'Space Mono', monospace;
  background: var(--white);
}
.copy-btn {
  border: 3px solid var(--ink);
  background: var(--primary);
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 16px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}
#copyStatus { display: inline-block; margin-top: 8px; font-family: 'Patrick Hand', cursive; font-size: 1.2rem; color: var(--accent); }

.wallet-visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.mascot-card {
  position: relative;
  min-height: 360px;
  border: 4px solid var(--ink);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(249,216,74,.55), rgba(255,77,109,.18));
  display: grid;
  place-items: center;
  padding: 18px;
}
.logo-art {
  width: min(100%, 340px);
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 0 rgba(16,24,32,.18));
}
.signal-badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  background: var(--secondary);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: 'Space Mono', monospace;
  font-size: .8rem;
  z-index: 1;
}
.scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(16,24,32,.08) 0 2px, transparent 2px 6px);
  opacity: .5;
}
.floaty { animation: floaty 5s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.fact-pill {
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 10px;
  background: var(--white);
  min-width: 0;
}
.fact-pill strong, .token-card strong, .trust-box strong { display: block; font-size: 1rem; }

.panel-grid.two-col, .meme-layout, .join-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.mini-board, .lore-stack { display: grid; gap: 12px; }
.mini-card, .token-card, .howto-card, .trust-box, .poster-block {
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  padding: 16px;
  box-shadow: 0 8px 0 rgba(16,24,32,.12);
  min-width: 0;
}
.mini-card.accent { background: rgba(255,77,109,.14); }
.mini-card.secondary { background: rgba(110,231,183,.16); }

.poster-block {
  padding: 12px;
  background: rgba(249,216,74,.18);
}
.banner-art {
  width: 100%;
  display: block;
  border: 3px solid var(--ink);
  border-radius: 18px;
}
.poster-caption {
  margin-top: 10px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.35rem;
  color: var(--ink);
}
.quote-sticker {
  display: inline-block;
  margin-top: 10px;
  background: var(--primary);
  border: 3px solid var(--ink);
  padding: 12px 16px;
  border-radius: 18px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.4rem;
}

.token-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.token-card { background: rgba(248,250,252,.9); }
.howto-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.step-no { color: var(--accent); font-size: .88rem; }

.ticker-wrap {
  overflow: hidden;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--primary);
  padding: 10px 0;
  margin-bottom: 16px;
}
.ticker-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: ticker 18s linear infinite;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
}
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.trust-box {
  display: grid;
  gap: 12px;
  background: rgba(110,231,183,.14);
}
.trust-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  border-bottom: 2px dashed rgba(16,24,32,.24);
  padding-bottom: 10px;
}
.trust-box div:last-child { border-bottom: 0; padding-bottom: 0; }
.trust-box span { font-family: 'Space Mono', monospace; font-size: .84rem; text-transform: uppercase; }

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 42px;
}
.footer-card { padding: 20px; }
.footer-title { font-size: .82rem; margin-bottom: 8px; }
.footer-copy { margin-bottom: 12px; }
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .8rem;
}

@media (max-width: 980px) {
  .wallet-layout,
  .panel-grid.two-col,
  .meme-layout,
  .join-layout,
  .token-grid,
  .howto-wrap { grid-template-columns: 1fr 1fr; }
  .facts-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .page-shell { width: min(100% - 20px, 1160px); padding-top: 28px; }
  .site-footer { width: min(100% - 20px, 1160px); }
  .hero-panel,
  .problem-panel,
  .meme-panel,
  .token-panel,
  .join-panel { transform: none; }
  .wallet-layout,
  .panel-grid.two-col,
  .meme-layout,
  .join-layout,
  .token-grid,
  .howto-wrap,
  .facts-strip { grid-template-columns: 1fr; }
  .panel-frame { padding: 16px; }
  h1 { font-size: clamp(2.6rem, 15vw, 4.2rem); }
  h2 { font-size: clamp(1.7rem, 9vw, 2.5rem); }
  .mascot-card { min-height: 280px; }
  .contract-line { flex-direction: column; }
}