:root {
  --ink: #1a1a1a;
  --sky: #79d2ff;
  --cream: #fff8e7;
  --yellow: #ffe14d;
  --pink: #ff6b9a;
  --paper: #fffdf8;
  --green: #3ddc57;
  --display: "Lilita One", "Trebuchet MS", sans-serif;
  --sans: "Fredoka", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
img, svg { display: block; }
::selection { background: var(--yellow); color: var(--ink); }

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--yellow);
  padding: 8px 12px;
  z-index: 50;
  border: 3px solid var(--ink);
}
.skip:focus { top: 12px; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  background: var(--paper);
  border-bottom: 4px solid var(--ink);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-name, h1, h2, .ticket-kicker, .footer-brand {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.brand-name { font-size: 32px; line-height: 1; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  text-decoration: none;
  font-weight: 600;
}
.nav-links a:hover { color: #d21e62; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

.ca-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}
.ca-label { font-size: 12px; font-weight: 700; }
.ca-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  background: #fff;
}
.btn-lg { height: 52px; padding: 0 20px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-white { background: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.hero {
  position: relative;
  background: var(--sky);
  overflow: hidden;
  border-bottom: 4px solid var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(26, 26, 26, 0.18) 1.15px, transparent 1.25px);
  background-size: 14px 14px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 54px 24px 36px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}
.sticker {
  display: inline-block;
  margin: 0 0 8px;
  background: var(--pink);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}
h1 {
  margin: 0;
  font-size: clamp(84px, 12vw, 148px);
  line-height: 0.82;
  text-shadow: 5px 5px 0 #fff, 8px 8px 0 var(--ink);
}
.bubble {
  display: inline-block;
  margin: 18px 0 0;
  max-width: 460px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 22px 22px 22px 6px;
  padding: 12px 16px;
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--display);
  font-size: 26px;
  line-height: 1.15;
}
.deck {
  max-width: 460px;
  margin: 16px 0 0;
  font-size: 18px;
}
.deck a, .about-grid a, .stats a, .embed-link a, .contract-meta a {
  font-weight: 700;
}
.inline-ca {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.cat-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}
.cat {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(8px 10px 0 rgba(26, 26, 26, 0.9));
  animation: bob 3.2s ease-in-out infinite;
}
.spark {
  position: absolute;
  font-size: 28px;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--ink);
  animation: twinkle 2.4s ease-in-out infinite;
}
.s1 { top: 28px; left: 18%; }
.s2 { top: 70px; right: 10%; animation-delay: .4s; }
.s3 { bottom: 54px; left: 8%; animation-delay: .8s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50% { transform: scale(1.15) rotate(8deg); }
}

.desk, .socials, .story, .mascot {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 0;
}
.desk {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 22px;
  align-items: start;
}
.panel {
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 28px;
  box-shadow: 8px 8px 0 var(--ink);
}
.desk-main, .ticket { padding: 22px; }
.ticket { position: sticky; top: 96px; }
.stock-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.stock-head h2 { margin: 0; font-size: 48px; line-height: 0.9; }
.ticker { margin: 4px 0 0; font-weight: 700; color: #5c5346; }
.price {
  margin: 0;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  text-align: right;
  color: #fff;
  background: var(--pink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(2deg);
}

.ranges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ranges button {
  border: 3px solid transparent;
  background: #fff3c4;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
}
.ranges button[aria-selected="true"] {
  background: var(--yellow);
  border-color: var(--ink);
}

.chart { position: relative; margin-top: 8px; }
.chart svg { width: 100%; height: auto; }
.chart-note { margin: 8px 0 0; color: #5c5346; font-size: 14px; }
.chart .cross { stroke: rgba(26, 26, 26, 0.45); stroke-dasharray: 4 4; }
.chart .dot { fill: var(--green); }
.chart .pulse {
  fill: var(--green);
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 1.8s ease-out infinite;
}
.tip {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  transform: translate(-50%, -130%);
}
@keyframes ping {
  from { opacity: 0.5; transform: scale(1); }
  to { opacity: 0; transform: scale(2.4); }
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 3px dashed var(--ink);
}
.about-grid h3 { margin: 0 0 8px; font-family: var(--display); font-size: 28px; }
.about-grid p { margin: 0 0 10px; }
.about-grid strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  word-break: break-all;
}
.stats { margin: 0; }
.stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 2px solid rgba(26, 26, 26, 0.12);
}
.stats dt { color: #5c5346; }
.stats dd { margin: 0; font-weight: 700; text-align: right; }
.stats button {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ticket-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.ticket-tabs button {
  height: 42px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.ticket-tabs button[aria-selected="true"] { background: var(--yellow); }
.ticket-kicker { margin: 0 0 10px; font-size: 32px; }
.ticket label { display: block; margin-bottom: 8px; font-weight: 700; }
.ca-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px;
  margin-bottom: 12px;
  background: #fff;
}
.ca-field span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  word-break: break-all;
}
.ca-field button {
  flex: none;
  border: 3px solid var(--ink);
  background: var(--yellow);
  border-radius: 999px;
  height: 34px;
  padding: 0 10px;
  cursor: pointer;
  font-weight: 700;
}
.ticket-note { margin: 0 0 14px; }

.socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.x-card {
  display: block;
  padding: 22px;
  text-decoration: none;
}
.x-card h2 { margin: 0 0 8px; font-size: 42px; line-height: 0.95; }
.x-card p { margin: 0 0 16px; }
.eyebrow {
  margin: 0 0 6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  color: #d21e62;
}

.section-intro { margin-bottom: 14px; }
.section-intro h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 0.95;
}
.embed { overflow: hidden; padding: 0; }
.embed iframe { width: 100%; border: 0; display: block; background: #fff; }
.embed-tweet iframe { height: 560px; }
.embed-ig iframe { height: 820px; }
.embed-link { margin: 12px 0 0; }

.contract {
  margin: 36px 24px 0;
  background: var(--yellow);
  border: 4px solid var(--ink);
  border-radius: 32px;
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
  padding: 48px 20px;
}
.contract-address {
  display: block;
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(16px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  word-break: break-all;
  padding: 0 8px;
}
.contract-meta { margin: 10px 0 18px; font-weight: 600; }

.footer {
  margin-top: 28px;
  background: var(--ink);
  color: #fff8e7;
  padding: 36px 24px 28px;
}
.footer-brand { font-size: 36px; }
.footer p { max-width: 720px; margin: 8px 0; font-size: 15px; }
.footer a { color: var(--yellow); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--yellow);
  border: 3px solid var(--yellow);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  z-index: 40;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    padding: 8px 18px 16px;
    border-bottom: 4px solid var(--ink);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    border: 3px solid var(--ink);
    background: var(--yellow);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
    font-weight: 700;
  }
  .ca-chip, .nav-actions .btn-pink { display: none; }
  .hero-grid, .desk, .about-grid, .socials { grid-template-columns: 1fr; }
  .cat-stage { order: -1; min-height: 280px; }
  .ticket { position: static; }
  h1 { font-size: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cat, .spark, .chart .pulse { animation: none; }
}
