:root {
  --pink: #ff6b9d;
  --pink-hot: #ff4f8b;
  --pink-deep: #d81b73;
  --pink-soft: #ffd6e8;
  --pink-blush: #fff0f6;
  --cream: #fff8f3;
  --ink: #4a2040;
  --ink-soft: #7a4a6e;
  --gold: #f0b90b;
  --white: #ffffff;
  --font-display: "Fredoka", ui-rounded, system-ui, sans-serif;
  --font-sans: "Nunito", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe4f0 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 8%, #fff0d6 0%, transparent 50%),
    linear-gradient(180deg, #fff8f3 0%, #fff5fa 40%, #ffffff 100%);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

::selection { background: #ffb3d0; color: var(--ink); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid #ff8fb5;
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

.section { padding: 4.5rem 0; }
.section-head { text-align: center; max-width: 56rem; margin: 0 auto 3rem; }

.display-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.display-hero {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.9;
  font-size: clamp(2.6rem, 9vw, 7.2rem);
  color: var(--pink-deep);
  margin: 0;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: white;
  padding: 0.35rem 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink-deep);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.12);
}

.lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

.lead strong { color: var(--pink-deep); font-family: var(--font-display); }

.btn-primary,
.btn-secondary,
.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  user-select: none;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.btn-primary,
.btn-secondary {
  min-height: 3.15rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: 1rem;
}

.btn-primary {
  color: white;
  background: linear-gradient(180deg, #ff8fb5 0%, #ff4f8b 72%, #f43f7d 100%);
  box-shadow: 0 8px 0 #c2185b, 0 14px 28px rgba(216, 27, 115, 0.28);
}

.btn-primary:hover:not(:disabled) { transform: translateY(-3px) scale(1.02); }
.btn-primary:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #c2185b;
}

.btn-secondary {
  color: var(--pink-deep);
  background: white;
  border: 2px solid #ffc2d9;
  box-shadow: 0 8px 0 #ffd0e3, 0 12px 24px rgba(255, 107, 157, 0.12);
}

.btn-secondary:hover:not(:disabled) { transform: translateY(-3px); background: #fff7fb; }

.btn-primary:disabled,
.btn-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn-nav {
  height: 2.5rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  color: white;
  background: linear-gradient(180deg, #ff8fb5 0%, #ff4f8b 72%, #f43f7d 100%);
  box-shadow: 0 4px 0 #c2185b, 0 8px 16px rgba(216, 27, 115, 0.22);
  font-size: 0.9rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-row.center { justify-content: center; }

.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 182, 210, 0.7);
  border-radius: 1.75rem;
  box-shadow: 0 18px 50px rgba(255, 107, 157, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.addr {
  overflow-wrap: anywhere;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--pink-deep);
}

.sticker {
  border-radius: 999px;
  background: white;
  border: 2px solid #ffd0e3;
  box-shadow: 0 10px 24px rgba(255, 107, 157, 0.16);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--pink-deep);
  white-space: nowrap;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 243, 0.72);
  backdrop-filter: blur(14px);
}
header.site-header.scrolled {
  background: rgba(255, 248, 243, 0.78);
  border-bottom: 1px solid rgba(255, 182, 210, 0.45);
  backdrop-filter: blur(16px);
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.5rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}
.brand img { width: 40px; height: 40px; border-radius: 999px; }
.brand span { display: none; }

.nav-links {
  display: none;
  justify-content: center;
  gap: 1.75rem;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--pink-deep); }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 0.35rem;
}

.buy-d { display: none; }
.buy-m { display: inline; }
.icon-btn.ribbon-nav { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 999px;
  font-size: 1.4rem;
}

.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.95);
  border-top: 1px solid var(--pink-soft);
  padding: 1rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 0.85rem 0.75rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-copy { order: 2; text-align: center; }
.hero-copy .lead { max-width: 32rem; margin-inline: auto; }
.hero-mascot { order: 1; display: flex; justify-content: center; }
.mascot-wrap { position: relative; width: min(100%, 360px); }
.mascot-wrap img {
  width: 100%;
  border-radius: 999px;
  cursor: pointer;
  filter: drop-shadow(0 24px 40px rgba(255, 107, 157, 0.28));
}
.mascot-wrap button.mascot-hit {
  border: 0;
  background: transparent;
  padding: 0;
  width: 100%;
  cursor: pointer;
}
.sticker-tl { position: absolute; left: 0.5rem; top: 10%; z-index: 2; }
.sticker-tr { position: absolute; right: -8%; top: 2%; z-index: 2; display: none; }
.sticker-bl { position: absolute; left: 0.5rem; bottom: 16%; z-index: 2; }
.sticker-mr { position: absolute; right: -12%; top: 42%; z-index: 2; display: none; }
.sticker-br { position: absolute; right: -4%; bottom: 8%; z-index: 2; display: none; }
.ribbon-egg {
  position: absolute;
  right: 6%;
  bottom: 18%;
  z-index: 3;
  border: 0;
  background: transparent;
  font-size: 2rem;
  cursor: pointer;
}
.speech {
  position: absolute;
  left: 50%;
  top: 12%;
  z-index: 4;
  transform: translateX(-50%);
  display: none;
}
.speech.show { display: inline-block; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.25rem; }
.chip {
  border-radius: 999px;
  border: 1px solid var(--pink-soft);
  background: #fff;
  padding: 0.35rem 0.75rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--pink-deep);
  text-decoration: none;
}
.chip.soon { color: var(--ink-soft); background: rgba(255,255,255,0.7); }

.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}
.blob-a { left: -80px; top: -40px; width: 16rem; height: 16rem; background: var(--pink-soft); }
.blob-b { right: -60px; top: 120px; width: 14rem; height: 14rem; background: #ffe9b0; }

.cloud-divider {
  height: 72px;
  background:
    radial-gradient(circle at 10% 100%, #fff 42%, transparent 43%),
    radial-gradient(circle at 30% 100%, #fff 48%, transparent 49%),
    radial-gradient(circle at 52% 100%, #fff 44%, transparent 45%),
    radial-gradient(circle at 74% 100%, #fff 50%, transparent 51%),
    radial-gradient(circle at 92% 100%, #fff 40%, transparent 41%);
}

.grid-3, .grid-2, .grid-4, .grid-stats, .meme-grid, .thumbs {
  display: grid;
  gap: 1.1rem;
}
.grid-3, .grid-2 { grid-template-columns: 1fr; }
.grid-stats { grid-template-columns: 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.meme-grid { grid-template-columns: 1fr; }
.thumbs { grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }

.point, .step, .stat, .fact, .source, .milestone, .counter, .faq-item, .meme-card {
  padding: 1.25rem;
  text-align: center;
}
.point img, .step img, .milestone img { width: 9rem; height: 9rem; object-fit: contain; margin: 0 auto; display: block; }
.step .n { font-family: var(--font-display); font-size: 3rem; color: var(--pink-soft); }
h3, .h3 { font-family: var(--font-display); margin: 0.4rem 0; }
.muted { color: var(--ink-soft); }
.tiny {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.wallet-card, .token-grid, .donate-card, .studio {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.wallet-card { padding: 1.5rem; }
.wallet-card img { width: 9rem; margin: 0 auto; display: block; }
.field {
  width: 100%;
  border: 2px solid var(--pink-soft);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
}

.meme-card { padding: 0.75rem; text-align: left; }
.meme-frame {
  position: relative;
  overflow: hidden;
  border-radius: 1.3rem;
  background: var(--pink-blush);
}
.meme-frame img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.meme-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem;
}
.meme-actions .btn-primary,
.meme-actions .btn-secondary { min-height: 2.5rem; padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.thumbs button {
  border: 2px solid transparent;
  background: var(--pink-blush);
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.thumbs button.active { border-color: var(--pink-hot); }
.thumbs img { display: block; aspect-ratio: 1; object-fit: cover; width: 100%; }
#meme-canvas { width: 100%; border-radius: 1.4rem; background: var(--pink-blush); display: block; }

.faq-item { text-align: left; padding: 0; overflow: hidden; }
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
  border: 0;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.faq-item .a { display: none; padding: 0 1.25rem 1.25rem; }
.faq-item.open .a { display: block; }

footer.site-footer {
  border-top: 1px solid var(--pink-soft);
  background: rgba(255,255,255,0.7);
  padding: 3rem 0;
}
.footer-grid { display: grid; gap: 2rem; }
.footer-grid a { color: var(--ink); text-decoration: none; font-family: var(--font-display); }
.footer-grid a:hover { color: var(--pink-deep); }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }

.modal-back {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(74, 32, 64, 0.4);
  display: none;
  align-items: end;
  justify-content: center;
  padding: 1rem;
}
.modal-back.open { display: flex; }
.modal { width: min(28rem, 100%); padding: 1.5rem; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  z-index: 80;
  min-width: 12rem;
  transform: translate(-50%, 120%);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1.2rem;
  font-family: var(--font-display);
  box-shadow: 0 16px 40px rgba(74, 32, 64, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: transform 280ms ease, opacity 280ms ease;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

.floaty { animation: floaty 4.2s ease-in-out infinite; }
.floaty-slow { animation: floaty 5.6s ease-in-out infinite; }
.drift { animation: drift 6s ease-in-out infinite; }
.pulse-heart { animation: pulse-heart 1.6s ease-in-out infinite; }

.decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
main, header, footer { position: relative; z-index: 1; }

table.record {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  font-size: 0.9rem;
}
table.record th {
  background: var(--pink-blush);
  font-family: var(--font-display);
  text-align: left;
  padding: 0.75rem 1rem;
}
table.record td { padding: 0.75rem 1rem; border-top: 1px solid var(--pink-soft); }
table.record a { color: var(--pink-deep); }

.center { text-align: center; }
.mt { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.pad { padding: 1.5rem; }
.is-off { opacity: 0.55; pointer-events: none; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(8px, -12px) rotate(3deg); }
}
@keyframes pulse-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.14); }
}
@keyframes rise-candle {
  0% { transform: translateY(0) rotate(-8deg); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(-115vh) rotate(10deg); opacity: 0; }
}
@keyframes fall-ribbon {
  0% { transform: translateY(-10%) rotate(0deg); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translateY(110vh) rotate(140deg); opacity: 0; }
}

@media (min-width: 640px) {
  .icon-btn.ribbon-nav { display: inline-flex; }
  .buy-d { display: inline; }
  .buy-m { display: none; }
  .brand span { display: inline; }
  .brand img { width: 48px; height: 48px; }
  .nav { height: 72px; }
  .btn-nav { height: 2.75rem; padding: 0 1.25rem; font-size: 1rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .meme-grid { grid-template-columns: 1fr 1fr; }
  .sticker-tr, .sticker-mr, .sticker-br { display: block; }
  .thumbs { grid-template-columns: repeat(5, 1fr); }
}

@media (min-width: 768px) {
  .icon-btn.menu { display: none; }
  .nav-links { display: flex; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .hero-copy { order: 1; text-align: left; }
  .hero-copy .lead, .hero-copy .btn-row, .hero-copy .chips { justify-content: start; margin-left: 0; }
  .hero-mascot { order: 2; }
  .mascot-wrap { width: min(100%, 440px); }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-stats { grid-template-columns: repeat(4, 1fr); }
  .wallet-card, .token-grid, .donate-card, .studio, .community-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .wallet-card { text-align: left; }
  .wallet-card img { margin: 0; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; }
  .modal-back { align-items: center; }
}

@media (min-width: 1024px) {
  .meme-grid { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .floaty, .floaty-slow, .drift, .pulse-heart { animation: none; }
}
