:root {
  --sky: #1ea7ff;
  --sky-deep: #0b6fbe;
  --ink: #111318;
  --cream: #f4efe4;
  --card: #fff8ee;
  --green: #00b06f;
  --green-ink: #003d26;
  --red: #e2231a;
  --blue: #00a2ff;
  --shadow: 4px 5px 0 #111318;
  --radius: 18px;
  --pad: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Nunito, system-ui, sans-serif;
  color: var(--ink);
  background: var(--sky);
  min-height: 100dvh;
  padding-bottom: 118px;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, #7fd3ff 0 80px, transparent 81px),
    radial-gradient(circle at 80% 8%, #ffffffcc 0 50px, transparent 51px),
    radial-gradient(circle at 70% 18%, #ffffffaa 0 70px, transparent 71px),
    linear-gradient(#49bfff, #1ea7ff 42%, #0f8ae0);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad);
  padding-top: calc(10px + env(safe-area-inset-top));
  background: #111318f2;
  color: #fff;
  border-bottom: 4px solid #000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-family: Fredoka, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cream);
  border: 3px solid #000;
}

.nav nav { display: flex; align-items: center; gap: 10px; }
.nav a { color: #fff; text-decoration: none; font-weight: 800; font-size: 0.95rem; }
.nav-buy {
  background: var(--green);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 999px;
  border: 3px solid #000;
  box-shadow: 2px 3px 0 #000;
}

#stats, #memes, #top { scroll-margin-top: 72px; }

.hero {
  text-align: center;
  padding: 28px var(--pad) 8px;
}

.hero-face {
  width: min(46vw, 220px);
  margin: 0 auto 12px;
  position: relative;
}

.hero-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--cream);
  border: 5px solid #111;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #08355c;
}

h1 {
  font-family: Fredoka, sans-serif;
  font-size: clamp(3rem, 16vw, 5.4rem);
  line-height: 0.9;
  margin: 6px 0 8px;
  text-shadow: 4px 5px 0 #00000022;
}

.tagline {
  margin: 0 auto 18px;
  max-width: 22rem;
  font-size: 1.08rem;
  font-weight: 800;
}

.hero-actions, .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cta-row { padding: 8px var(--pad) 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 3px solid #111;
  box-shadow: var(--shadow);
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
}

.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #111; }
.btn-green { background: var(--green); }
.btn-blue { background: var(--blue); }
.btn-dark { background: #111318; }

.stats {
  display: grid;
  gap: 12px;
  padding: 8px var(--pad) 12px;
}

.stat {
  background: var(--card);
  border: 4px solid #111;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b5248;
}

.stat strong {
  display: block;
  font-family: Fredoka, sans-serif;
  font-size: clamp(2rem, 9vw, 2.7rem);
  line-height: 1.05;
  margin: 4px 0;
}

.stat small { color: #3d3a35; font-weight: 700; }

.stat-mc { background: #fff3b0; }
.stat-rewards { background: #c8f7d4; }

.wrap-card {
  margin: 8px var(--pad) 20px;
  background: var(--card);
  border: 4px solid #111;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.about {
  display: grid;
  gap: 14px;
  align-items: center;
}

.about img {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 18px;
  border: 4px solid #111;
}

.about h2, .memes h2, .token h2 {
  font-family: Fredoka, sans-serif;
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.about p { margin: 0; font-size: 1.02rem; line-height: 1.45; }

.memes { padding: 8px var(--pad) 24px; }
.meme-sub { margin: -4px 0 14px; font-weight: 800; }

.meme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.meme-grid button {
  padding: 0;
  border: 4px solid #111;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream);
}

.meme-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.token dl { margin: 0; display: grid; gap: 12px; }
.token dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b5248;
}
.token dd { margin: 4px 0 0; font-weight: 800; word-break: break-all; }
.token code { font-size: 0.86rem; }
.copy {
  margin-left: 6px;
  border: 2px solid #111;
  border-radius: 8px;
  background: #fff3b0;
  font-weight: 800;
  padding: 4px 8px;
}

footer {
  text-align: center;
  padding: 8px var(--pad) 28px;
  font-weight: 800;
}

.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  z-index: 30;
}

.dock a {
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  padding: 14px 8px;
  border-radius: 16px;
  border: 3px solid #111;
  box-shadow: var(--shadow);
}
.dock a:nth-child(1) { background: var(--green); }
.dock a:nth-child(2) { background: var(--blue); }
.dock a:nth-child(3) { background: #111318; }

dialog {
  border: 4px solid #111;
  border-radius: 20px;
  padding: 10px;
  background: var(--cream);
  width: min(92vw, 520px);
}
dialog img { width: 100%; border-radius: 12px; }
dialog::backdrop { background: #111318b3; }
dialog button {
  width: 100%;
  margin-top: 8px;
  min-height: 44px;
  border: 3px solid #111;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

@media (min-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .about { grid-template-columns: 220px 1fr; }
  .meme-grid { grid-template-columns: repeat(3, 1fr); }
  .dock { display: none; }
  body { padding-bottom: 24px; }
}
