:root {
  --red: #e8352b;
  --orange: #f39019;
  --yellow: #ffcc00;
  --green: #2ca84f;
  --blue: #1f6fe0;
  --ink: #1a1a2e;
  --paper: #fff8e7;
  --paper2: #fff2cf;
  --shadow: rgba(26, 26, 46, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Fredoka', system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 204, 0, 0.25), transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(31, 111, 224, 0.18), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(44, 168, 79, 0.18), transparent 45%),
    var(--paper);
  overflow-x: hidden;
}

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

.c-red { color: var(--red); }
.c-orange { color: var(--orange); }
.c-yellow { color: var(--yellow); }
.c-green { color: var(--green); }
.c-blue { color: var(--blue); }

/* ---------- top marquee ---------- */
.topbar {
  background: repeating-linear-gradient(90deg, var(--red) 0 20%, var(--orange) 20% 40%, var(--yellow) 40% 60%, var(--green) 60% 80%, var(--blue) 80% 100%);
  color: #fff;
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
  white-space: nowrap;
}
.topbar-track {
  display: inline-flex;
  gap: 3rem;
  padding: 0.5rem 0;
  animation: scroll-left 26s linear infinite;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.35);
}
.topbar-track span { display: inline-block; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  background: rgba(255, 248, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 4px solid var(--ink);
}
.nav-logo img { height: 48px; display: block; }
.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-weight: 600;
}
.nav-links a { position: relative; padding: 0.2rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 3px; width: 0;
  background: var(--red); transition: width 0.2s ease;
}
.nav-links a:hover::after { width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 1.3rem;
  border-radius: 14px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  color: #fff;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-buy { background: linear-gradient(160deg, #34d15f, var(--green)); }
.btn-dex { background: linear-gradient(160deg, #3f8bff, var(--blue)); }
.btn.big { font-size: 1.25rem; padding: 1rem 1.8rem; }
.nav-buy { font-size: 0.9rem; padding: 0.55rem 1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 4rem 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero-logo {
  width: min(560px, 92%);
  filter: drop-shadow(4px 6px 0 var(--shadow));
  margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: 1px;
  margin: 0.5rem auto 1rem;
  max-width: 800px;
  -webkit-text-stroke: 1px var(--ink);
}
.hero-title .strike { text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 4px; color: #7a7a8c; -webkit-text-stroke: 0; }
.hero-title .pop {
  color: var(--red);
  display: inline-block;
  animation: wiggle 1.6s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.08); }
}
.hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  max-width: 640px;
  margin: 0 auto 1.8rem;
  line-height: 1.5;
}
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }

/* price tag */
.pricetag {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 50%;
  width: 130px;
  height: 130px;
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-8deg);
}
.hero-tag { position: absolute; top: 10px; right: 6%; z-index: 3; }
.pricetag-top { font-size: 0.8rem; letter-spacing: 1px; }
.pricetag-big { font-family: 'Luckiest Guy', cursive; font-size: 1.5rem; color: var(--red); }
.pricetag-sub { font-size: 0.75rem; }

/* floating blobs */
.hero-blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: 0.5; z-index: 1; }
.blob1 { width: 180px; height: 180px; background: var(--blue); top: 10%; left: -40px; animation: float 7s ease-in-out infinite; }
.blob2 { width: 130px; height: 130px; background: var(--red); bottom: 12%; left: 12%; animation: float 9s ease-in-out infinite reverse; }
.blob3 { width: 150px; height: 150px; background: var(--green); bottom: 20%; right: 6%; animation: float 8s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

/* CA box */
.ca-box {
  display: inline-block;
  background: #fff;
  border: 3px dashed var(--ink);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  max-width: 100%;
}
.ca-label { display: block; font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 0.4rem; color: var(--blue); }
.ca-row { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; justify-content: center; }
.ca-row code { font-family: monospace; font-size: 0.85rem; word-break: break-all; }
.copy-btn {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  background: var(--orange);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.copy-btn:active { transform: translate(2px, 2px); box-shadow: none; }

/* ---------- sections ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.section-title {
  font-family: 'Luckiest Guy', cursive;
  font-size: clamp(1.8rem, 5vw, 3rem);
  text-align: center;
  margin-bottom: 0.5rem;
  -webkit-text-stroke: 1px var(--ink);
}
.section-lead { text-align: center; font-size: 1.15rem; margin-bottom: 2.5rem; opacity: 0.85; }

/* lore */
.lore-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: center; margin-top: 2rem; }
.lore-text p { font-size: 1.1rem; line-height: 1.6; margin-bottom: 1rem; }
.lore-tagline { font-family: 'Luckiest Guy', cursive; font-size: 1.4rem; }
.lore-img { position: relative; }
.lore-img img { width: 100%; border-radius: 18px; border: 4px solid var(--ink); box-shadow: 8px 8px 0 var(--shadow); }
.lore-pricetag {
  position: absolute; bottom: -20px; left: -20px;
  width: 100px; height: 100px; font-family: 'Luckiest Guy', cursive; font-size: 1rem; color: var(--red);
  background: var(--yellow);
}

/* tokenomics */
.tokenomics { background: linear-gradient(180deg, rgba(31,111,224,0.08), transparent); border-radius: 28px; }
.tok-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tok-card {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 1.5rem 1.2rem;
  text-align: center;
  box-shadow: 6px 6px 0 var(--shadow);
  transition: transform 0.12s ease;
}
.tok-card:hover { transform: translateY(-6px) rotate(-1deg); }
.tok-card:nth-child(1) { border-color: var(--red); }
.tok-card:nth-child(2) { border-color: var(--orange); }
.tok-card:nth-child(3) { border-color: var(--green); }
.tok-card:nth-child(4) { border-color: var(--blue); }
.tok-num { font-family: 'Luckiest Guy', cursive; font-size: 2.6rem; line-height: 1; margin-bottom: 0.4rem; }
.tok-card:nth-child(1) .tok-num { color: var(--red); }
.tok-card:nth-child(2) .tok-num { color: var(--orange); }
.tok-card:nth-child(3) .tok-num { color: var(--green); }
.tok-card:nth-child(4) .tok-num { color: var(--blue); }
.tok-key { font-weight: 700; font-size: 1.1rem; margin-bottom: 0.6rem; }
.tok-card p { font-size: 0.95rem; line-height: 1.4; opacity: 0.85; }

/* how to buy */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2.5rem; }
.how-card {
  background: var(--paper2);
  border: 4px solid var(--ink);
  border-radius: 20px;
  padding: 1.6rem 1.2rem;
  box-shadow: 6px 6px 0 var(--shadow);
  position: relative;
}
.how-num {
  font-family: 'Luckiest Guy', cursive;
  font-size: 1.6rem;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 50%;
  border: 3px solid var(--ink);
  margin-bottom: 0.8rem;
}
.how-card:nth-child(1) .how-num { background: var(--red); }
.how-card:nth-child(2) .how-num { background: var(--orange); }
.how-card:nth-child(3) .how-num { background: var(--green); }
.how-card:nth-child(4) .how-num { background: var(--blue); }
.how-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.how-card p { font-size: 0.95rem; line-height: 1.45; opacity: 0.88; }
.how-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* gallery */
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.gal-item { position: relative; margin: 0; }
.gal-item img {
  width: 100%; height: 320px; object-fit: cover;
  border-radius: 18px; border: 4px solid var(--ink);
  box-shadow: 6px 6px 0 var(--shadow);
  transition: transform 0.15s ease;
}
.gal-item:hover img { transform: scale(1.02) rotate(-0.5deg); }
.gal-item figcaption {
  position: absolute; bottom: 12px; left: 12px;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 0.3rem 0.7rem;
  font-weight: 700; font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--ink);
}

/* disclaimer */
.disclaimer { text-align: center; max-width: 780px; }
.disclaimer p { font-size: 0.85rem; opacity: 0.7; line-height: 1.6; }

/* footer */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: repeating-linear-gradient(90deg, var(--red) 0 20%, var(--orange) 20% 40%, var(--yellow) 40% 60%, var(--green) 60% 80%, var(--blue) 80% 100%);
  border-top: 5px solid var(--ink);
  color: #fff;
}
.footer-logo { height: 70px; background: #fff; padding: 8px 14px; border-radius: 14px; border: 3px solid var(--ink); }
.footer-slogan { font-family: 'Luckiest Guy', cursive; font-size: 1.8rem; margin: 1rem 0; text-shadow: 3px 3px 0 rgba(0,0,0,0.35); }
.footer-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.2rem; }
.footer-fine { font-size: 0.85rem; text-shadow: 1px 1px 0 rgba(0,0,0,0.3); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tok-grid, .how-grid { grid-template-columns: repeat(2, 1fr); }
  .lore-grid { grid-template-columns: 1fr; }
  .hero-tag { position: static; margin: 0 auto 1rem; display: flex; }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .gal-grid { grid-template-columns: 1fr; }
  .tok-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-btns .btn, .how-btns .btn, .footer-btns .btn { width: 100%; }
}
