@font-face {
  font-family: 'Luckiest Guy';
  src: url('fonts/luckiest-guy-latin-400-normal.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('fonts/nunito-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #fff3dd;
  --paper: #fffbf2;
  --ink: #2a1638;
  --muted: #6b5775;
  --pink: #ff4f9a;
  --yellow: #ffc93c;
  --blue: #3d9bff;
  --violet: #8b5cf6;
  --orange: #ff7a30;
  --green: #2bb673;
  --display: 'Luckiest Guy', 'Arial Black', sans-serif;
  --body: 'Nunito', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --wrap: min(1160px, calc(100% - 40px));
  --shadow: 5px 5px 0 var(--ink);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 500 18px/1.5 var(--body);
  /* static sprinkles in the page background */
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 79, 154, 0.18) 0 5px, transparent 6px),
    radial-gradient(circle at 78% 9%, rgba(61, 155, 255, 0.18) 0 4px, transparent 5px),
    radial-gradient(circle at 40% 70%, rgba(255, 201, 60, 0.25) 0 5px, transparent 6px),
    radial-gradient(circle at 90% 60%, rgba(139, 92, 246, 0.16) 0 4px, transparent 5px);
  background-size: 260px 260px;
}
img,
video {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.95;
  margin: 0;
  letter-spacing: 0.01em;
}
h2 {
  font-size: clamp(44px, 7vw, 88px);
}
h3 {
  font-size: 30px;
  margin-top: 64px;
}
p {
  margin: 0;
}
a {
  color: inherit;
}
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}
section {
  padding: 88px 0;
}

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  transition: opacity 0.6s;
}

/* marquee */
.bar {
  background: var(--ink);
  color: var(--paper);
  font: 700 13px/1 var(--mono);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
}
.bar div {
  display: inline-block;
  padding: 11px 0;
  animation: slide 40s linear infinite;
}
.bar b {
  color: var(--yellow);
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 243, 221, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--ink);
}
.nav .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 400 24px/1 var(--display);
  text-decoration: none;
}
.nav nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-weight: 800;
}
.nav nav a {
  text-decoration: none;
}
.nav nav a:hover {
  text-decoration: underline wavy var(--pink);
}
.toggle {
  font: 800 15px/1 var(--body);
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
}
.toggle[aria-pressed='false'] {
  background: var(--paper);
  color: var(--muted);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  font: 800 18px/1 var(--body);
  padding: 16px 24px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition:
    transform 0.12s,
    box-shadow 0.12s;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn.primary {
  background: var(--pink);
  color: #fff;
}
.soon {
  border-style: dashed !important;
  box-shadow: none !important;
  cursor: not-allowed;
  opacity: 0.8;
}
.btn.soon::after {
  content: ' (soon)';
  margin-left: 6px;
  font-size: 14px;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

/* hero */
.hero {
  padding: 48px 0 80px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100dvh - 140px);
}
.eyebrow {
  display: inline-block;
  font: 800 14px/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transform: rotate(-2deg);
}
.hero h1 {
  font-size: clamp(64px, 9.5vw, 144px);
  line-height: 0.9;
  margin-top: 24px;
  color: var(--ink);
  text-shadow: 4px 4px 0 var(--yellow);
}
.hero .sub {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.35;
  margin-top: 22px;
  max-width: 30ch;
}
.ca {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font: 700 15px/1 var(--mono);
}
.ca button {
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.warn {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.mascot {
  position: relative;
  justify-self: center;
  width: min(100%, 520px);
}
.badge {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 6px solid var(--ink);
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg);
  box-shadow: 10px 10px 0 var(--ink);
  cursor: pointer;
  position: relative;
}
.badge img,
.badge video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge video {
  opacity: 0;
  transition: opacity 0.4s;
}
.badge.has-video video {
  opacity: 1;
}
.badge.wiggle {
  animation: wiggle 0.5s ease-in-out;
}
@keyframes wiggle {
  25% {
    transform: rotate(-4deg) scale(1.02);
  }
  50% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-2deg);
  }
}
.sticker {
  position: absolute;
  font: 400 20px/1 var(--display);
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  pointer-events: none;
  white-space: nowrap;
}
.s1 {
  top: 4%;
  left: -6%;
  background: var(--yellow);
  transform: rotate(-8deg);
}
.s2 {
  top: 64%;
  right: -8%;
  background: var(--blue);
  color: #fff;
  transform: rotate(6deg);
}
.s3 {
  bottom: 4%;
  left: 2%;
  background: var(--violet);
  color: #fff;
  transform: rotate(-4deg);
}
.bubble {
  position: absolute;
  top: -8%;
  right: 6%;
  font: 400 22px/1 var(--display);
  padding: 12px 16px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
}
.bubble.show {
  opacity: 1;
  transform: none;
}

/* story */
#story {
  background: var(--paper);
  border-block: 3px solid var(--ink);
}
.panels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 44px;
}
.panel {
  margin: 0;
}
.panel img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--bg);
}
.panel figcaption {
  margin-top: 18px;
  font-size: 18px;
  line-height: 1.35;
}
.panel figcaption a {
  font: 700 13px/1 var(--mono);
  color: var(--muted);
}
.panel b {
  font-weight: 800;
}
.note {
  margin-top: 28px;
  color: var(--muted);
}

/* pop */
.lede {
  font-size: 22px;
  font-weight: 800;
  margin-top: 14px;
}
.popbox {
  margin-top: 36px;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 44px 20px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.popmsg {
  min-height: 1.6em;
  font: 400 24px/1.2 var(--display);
  color: var(--pink);
}
.pop {
  margin-top: 14px;
  width: min(240px, 60vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 5px solid var(--ink);
  background: conic-gradient(
    var(--pink) 0 60deg,
    var(--yellow) 0 120deg,
    var(--blue) 0 180deg,
    var(--violet) 0 240deg,
    var(--orange) 0 300deg,
    var(--green) 0 360deg
  );
  color: var(--ink);
  font: 400 44px/1 var(--display);
  text-shadow:
    2px 2px 0 var(--paper),
    -2px -2px 0 var(--paper),
    2px -2px 0 var(--paper),
    -2px 2px 0 var(--paper);
  box-shadow: 0 10px 0 var(--ink);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 0.08s;
}
.pop:active,
.pop.held {
  transform: translateY(8px);
  box-shadow: 0 2px 0 var(--ink);
}
.hint {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.count {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 800;
}
.small {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.link {
  font: inherit;
  font-weight: 800;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0 4px;
  text-decoration: underline;
  cursor: pointer;
}
/* token */
#token {
  background: var(--ink);
  color: var(--paper);
}
.chips {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.chips li {
  border: 3px solid var(--paper);
  border-radius: 16px;
  padding: 14px 18px;
  font: 400 26px/1 var(--display);
}
.chips span {
  display: block;
  font: 800 13px/1 var(--body);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  color: var(--yellow);
}
.chips em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 18px;
}
#token .note {
  color: #d9cde0;
}

/* buy */
.alert {
  margin-top: 28px;
  padding: 18px 22px;
  background: #fff0c2;
  border: 3px solid var(--ink);
  border-radius: 16px;
  max-width: 760px;
}
.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.steps li {
  counter-increment: s;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  font-size: 18px;
}
.steps li::before {
  content: counter(s);
  display: block;
  font: 400 40px/1 var(--display);
  color: var(--pink);
  margin-bottom: 10px;
}
.steps a.soon {
  font-family: var(--mono);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px dashed;
}

/* crew */
#crew {
  background: var(--paper);
  border-top: 3px solid var(--ink);
}

/* footer */
footer {
  background: var(--ink);
  color: #d9cde0;
  padding: 48px 0 56px;
  font-size: 14px;
  line-height: 1.6;
}
footer p {
  max-width: 900px;
}
.sign {
  margin-top: 16px;
  color: var(--yellow);
  font-weight: 800;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: min(92vw, 560px);
  padding: 14px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 30px rgba(42, 22, 56, 0.3);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .mascot {
    order: -1;
    width: min(78%, 420px);
  }
  .panels {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .nav nav {
    display: none;
  }
  .toggle {
    margin-left: auto;
  }
  .s2 {
    top: 70%;
    right: -6%;
  }
  .eyebrow {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
}
@media (max-width: 520px) {
  .panels {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .sticker {
    font-size: 15px;
    padding: 8px 10px;
  }
  .s1 {
    left: -8%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bar div {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .badge.wiggle {
    animation: none;
  }
}

.note.real {
  max-width: 900px;
  font-size: 16px;
  line-height: 1.55;
}
.note.real a {
  font: 700 13px/1 var(--mono);
  color: var(--muted);
}
