/* Gumdrop — night jungle meme site */
:root {
  --ink: #f7f3ff;
  --muted: #c9bde4;
  --night: #140824;
  --night-2: #241244;
  --plum: #3a1d6e;
  --card: rgba(22, 10, 42, 0.72);
  --line: rgba(255, 214, 245, 0.16);
  --pink: #ff8fb8;
  --yellow: #ffe07a;
  --mint: #8ef0c8;
  --sky: #8fd4ff;
  --green: #8fe06a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 196, 92, 0.18), transparent 55%),
    radial-gradient(700px 480px at 10% 20%, rgba(92, 214, 168, 0.12), transparent 50%),
    linear-gradient(180deg, #1a0b36 0%, #120722 40%, #0c0618 100%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.75;
  animation: twinkle 2.8s ease-in-out infinite;
}
.firefly {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffe27a;
  box-shadow: 0 0 12px 4px rgba(255, 214, 90, 0.7);
  animation: drift linear infinite;
}
.leaf {
  position: absolute;
  width: 18px;
  height: 10px;
  background: #6dce73;
  border-radius: 0 80% 0 80%;
  opacity: 0.55;
  animation: fall linear infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.7); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes drift {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translate3d(80px, -220px, 0); opacity: 0; }
}
@keyframes fall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); }
  100% { transform: translate3d(-60px, 110vh, 0) rotate(240deg); }
}

.wrap { position: relative; z-index: 1; }

header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6vw;
  background: rgba(12, 6, 24, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--muted); font-weight: 700; }
nav a:hover { color: white; }
.nav-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  color: #241244;
  background: linear-gradient(180deg, #fff1a8, #ffc46a);
  box-shadow: 0 8px 0 #c9842e;
  transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(2px); box-shadow: 0 4px 0 #c9842e; }
.btn.ghost {
  background: transparent;
  color: white;
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 36px 6vw 20px;
}
.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.word {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.9;
  margin: 12px 0 8px;
  display: flex;
  flex-wrap: wrap;
}
.word span {
  display: inline-block;
  animation: pop 2.8s ease-in-out infinite;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.18);
}
.word span:nth-child(1) { color: #ff9ec4; animation-delay: 0s; }
.word span:nth-child(2) { color: #ffe07a; animation-delay: 0.12s; }
.word span:nth-child(3) { color: #b8f27a; animation-delay: 0.24s; }
.word span:nth-child(4) { color: #8ef0c8; animation-delay: 0.36s; }
.word span:nth-child(5) { color: #8fd4ff; animation-delay: 0.48s; }
.word span:nth-child(6) { color: #d7b0ff; animation-delay: 0.6s; }
.word span:nth-child(7) { color: #ffb0a4; animation-delay: 0.72s; }
@keyframes pop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 560px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ca-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  max-width: 560px;
  padding: 10px 10px 10px 14px;
  border-radius: 18px;
  background: rgba(12, 6, 24, 0.55);
  border: 1px solid var(--line);
}
.ca-box span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: var(--yellow);
}
.ca-box code {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  word-break: break-all;
  color: white;
}
.ca-box .btn { padding: 10px 14px; box-shadow: 0 4px 0 #c9842e; }
.stage {
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.stage img.banner { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.stage .mascot {
  position: absolute;
  right: 7%;
  bottom: 0;
  width: min(190px, 36%);
  background: transparent;
  animation: walk 2.8s ease-in-out infinite;
  filter: drop-shadow(0 12px 8px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
@keyframes walk {
  0%, 100% { transform: translateX(0) rotate(-2deg); }
  50% { transform: translateX(-16px) rotate(2deg); }
}

.ticker {
  margin: 10px 0 30px;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding: 12px 0;
  animation: marquee 22s linear infinite;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--mint);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section { padding: 28px 6vw 10px; }
h2 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 8px;
}
.sub { color: var(--muted); margin-top: 0; max-width: 680px; }

.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 22px; align-items: center; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.story p { line-height: 1.7; color: #efe8ff; }
.story .sit {
  margin-top: 8px;
  width: min(240px, 70%);
  background: transparent;
  animation: bob 4s ease-in-out infinite;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.5rem; color: var(--yellow); }
.stat span { color: var(--muted); font-size: 0.92rem; }

.trade {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 18px;
  align-items: stretch;
}
.swap h3, .chart-card h3 { margin: 0 0 6px; font-family: "Fredoka", sans-serif; font-size: 1.6rem; }
label { display: block; font-size: 0.82rem; color: var(--muted); margin: 12px 0 6px; font-weight: 800; }
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}
.field input {
  width: 100%;
  background: transparent;
  border: 0;
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  outline: none;
}
.quick { display: flex; gap: 8px; margin-top: 10px; }
.quick button, .slip input {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}
.swap .btn { width: 100%; margin-top: 14px; }
.note { color: var(--muted); font-size: 0.84rem; min-height: 1.2em; }
.chart-frame {
  width: 100%;
  height: 520px;
  border: 0;
  border-radius: 18px;
  background: #0c0618;
}
.chart-empty {
  height: 520px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(20, 8, 40, 0.2), rgba(12, 6, 24, 0.55)),
    url("assets/banner.jpg") center/cover;
}
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.phase { position: relative; overflow: hidden; }
.phase em {
  font-style: normal;
  color: var(--pink);
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}
.phase h3 { margin: 8px 0; font-family: "Fredoka", sans-serif; }
.phase ul { margin: 0; padding-left: 18px; color: var(--muted); }
.phase ul li { margin: 6px 0; }

footer {
  margin-top: 36px;
  padding: 28px 6vw 40px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #2a1848;
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 14px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 30;
  max-width: min(92vw, 460px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

header { flex-wrap: wrap; }
.nav-toggle { display: none; }
@media (max-width: 980px) {
  .hero, .grid-2, .trade, .stats, .road { grid-template-columns: 1fr; }
  .chart-frame, .chart-empty { height: 420px; }
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 18px;
    right: 18px;
    background: #1a0b36;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    align-items: flex-start;
  }
  .nav-toggle { display: inline-block; }
  #connectBtn { padding: 10px 14px; }
}
@media (max-width: 640px) {
  header, section, .hero, footer { padding-left: 18px; padding-right: 18px; }
  .word { font-size: 3.1rem; }
  .stage { min-height: 240px; }
  .stage img.banner { min-height: 240px; }
  .ca-box { flex-wrap: wrap; }
  .ca-box .btn { width: 100%; }
}
