@font-face {
  font-family: "FrozenFlare";
  src: url("assets/fonts/Frozenflare.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "LuckiestGuy";
  src: url("assets/fonts/LuckiestGuy.ttf") format("truetype");
  font-display: swap;
}

:root {
  --ink: #0d0f0b;
  --hood: #13651f;
  --hood-dark: #082f12;
  --leaf: #73d215;
  --laugh: #ffd42a;
  --orange: #ff781f;
  --tear: #31bfff;
  --red: #fb2362;
  --paper: #fff8dc;
  --white: #ffffff;
  --shadow: 0 0 0 6px var(--ink), 0 8px 0 6px var(--ink);
  --font-display: "LuckiestGuy", Impact, fantasy;
  --font-body: "FrozenFlare", "Trebuchet MS", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.is-preloading {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
}

.emoji-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 16%, rgba(255, 212, 42, 0.38), transparent 19rem),
    radial-gradient(circle at 88% 12%, rgba(49, 191, 255, 0.26), transparent 17rem),
    linear-gradient(180deg, #fffbea 0%, #ffeeb0 44%, #fff8dc 100%);
}

.floating-emoji {
  position: absolute;
  font-size: 2rem;
  opacity: 0.22;
  animation: drift var(--speed, 18s) linear infinite;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 16%, rgba(255, 212, 42, 0.44), transparent 24rem),
    radial-gradient(circle at 80% 78%, rgba(49, 191, 255, 0.3), transparent 22rem),
    linear-gradient(135deg, #0b5819 0%, #167529 52%, #073914 100%);
  color: var(--ink);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.preloader.is-unlocked {
  opacity: 0;
  visibility: hidden;
}

.preloader-shell {
  width: min(680px, 100%);
  padding: 28px;
  border: 6px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 0 var(--ink);
  text-align: center;
}

.preloader-shell .eyebrow {
  margin-inline: auto;
}

.preloader-shell h2 {
  font-size: 58px;
}

.preloader-instruction {
  margin: 10px auto 14px;
  padding: 5px 10px 4px;
  width: fit-content;
  border: 2px solid rgba(13, 15, 11, 0.55);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 2px 0 rgba(13, 15, 11, 0.45);
  opacity: 0.58;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
}

.preloader-image-button {
  position: relative;
  display: grid;
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 0;
  place-items: end center;
  border: 5px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 24% 20%, rgba(49, 191, 255, 0.32), transparent 34%),
    var(--laugh);
  box-shadow: 0 8px 0 var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.preloader-image-button:hover,
.preloader-image-button:focus-visible {
  transform: translateY(4px) rotate(-1deg);
  box-shadow: 0 4px 0 var(--ink);
}

.preloader-image-button img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  object-position: center bottom;
  padding: 16px 18px 0;
  filter: drop-shadow(0 10px 0 rgba(13, 15, 11, 0.28));
}

.preloader-image-button.is-laughing {
  animation: logoLaugh 420ms ease;
}

.preloader-count {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 28px;
}

.preloader-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.preloader-dots span {
  width: 26px;
  height: 26px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 4px 0 var(--ink);
}

.preloader-dots span.is-filled {
  background: var(--laugh);
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(1180px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 18px;
  color: var(--white);
  background: rgba(8, 47, 18, 0.88);
  border: 4px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 6px 0 var(--ink);
  transition: background 180ms ease, transform 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(13, 15, 11, 0.94);
}

.brand,
.site-nav,
.hero-actions,
.footer-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--font-display);
  font-size: 28px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--laugh);
  box-shadow: 0 0 0 4px var(--ink);
}

.site-nav {
  gap: 20px;
  font-size: 16px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 6px;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.nav-cta {
  padding: 10px 16px;
  color: var(--ink);
  background: var(--laugh);
  border: 3px solid var(--ink);
  border-radius: 7px;
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--font-display);
  white-space: nowrap;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 3px solid var(--ink);
  border-radius: 7px;
  background: var(--laugh);
}

.menu-button span {
  display: block;
  height: 4px;
  margin: 4px 0;
  background: var(--ink);
  border-radius: 999px;
}

.section-band {
  position: relative;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 92px 0;
  scroll-margin-top: 130px;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 24px;
  padding-top: 134px;
  padding-bottom: 34px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 7px;
  box-shadow: 0 4px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 0.95;
}

h1 {
  max-width: 760px;
  color: var(--hood);
  font-size: 112px;
  text-shadow: 0 5px 0 var(--laugh), 0 9px 0 var(--ink);
}

h2 {
  font-size: 70px;
  text-shadow: 0 4px 0 var(--laugh), 0 7px 0 var(--ink);
}

h3 {
  font-size: 31px;
}

.hero-line {
  margin: 28px 0 14px;
  font-family: var(--font-display);
  font-size: 34px;
}

.hero-text,
.story p,
.hood-card p,
.join-steps p,
.token-grid p {
  font-size: 20px;
}

.hero-text {
  max-width: 610px;
  margin: 0 0 30px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 13px 20px 10px;
  border: 4px solid var(--ink);
  border-radius: 7px;
  box-shadow: var(--shadow);
  font-family: var(--font-display);
  font-size: 20px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(3px);
  box-shadow: 0 0 0 6px var(--ink), 0 4px 0 6px var(--ink);
}

.button.primary {
  background: var(--laugh);
}

.button.secondary {
  background: var(--tear);
}

.button.dark {
  color: var(--white);
  background: var(--hood-dark);
}

.hero-art {
  position: relative;
  align-self: end;
  display: grid;
  min-height: 620px;
  place-items: end center;
}

.hero-art::before {
  content: "";
  position: absolute;
  right: 3%;
  bottom: 6%;
  width: 78%;
  aspect-ratio: 1;
  border: 6px solid var(--ink);
  border-radius: 50%;
  background: var(--laugh);
  box-shadow: 18px 18px 0 var(--orange), -15px -12px 0 var(--tear);
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(590px, 100%);
  filter: drop-shadow(0 18px 0 rgba(13, 15, 11, 0.38));
}

.laugh-orbit {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  border: 5px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 7px 0 var(--ink);
  font-size: 44px;
  animation: bob 3s ease-in-out infinite;
}

.orbit-one {
  top: 16%;
  right: 4%;
}

.orbit-two {
  bottom: 25%;
  left: 0;
  animation-delay: 0.6s;
}

.orbit-three {
  top: 35%;
  left: 7%;
  animation-delay: 1.2s;
}

.laugh-marquee {
  overflow: hidden;
  border-block: 5px solid var(--ink);
  background: var(--hood-dark);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 30px;
  white-space: nowrap;
}

.laugh-marquee div {
  display: inline-block;
  min-width: max-content;
  padding: 17px 0 13px;
  animation: marquee 28s linear infinite;
}

.laugh-marquee.reverse div {
  animation-name: marqueeReverse;
}

.laugh-marquee.yellow-strip {
  color: var(--ink);
  background: var(--laugh);
}

.laugh-marquee.blue-strip {
  color: var(--ink);
  background: var(--tear);
}

.laugh-marquee.dark-strip {
  color: var(--white);
  background: var(--ink);
}

.light {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
  background: var(--white);
  border-block: 5px solid var(--ink);
}

.green {
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 212, 42, 0.34) 0 0.72rem, transparent 0.78rem),
    radial-gradient(circle at 78% 20%, rgba(49, 191, 255, 0.24) 0 0.62rem, transparent 0.68rem),
    radial-gradient(circle at 35% 78%, rgba(255, 255, 255, 0.18) 0 0.56rem, transparent 0.62rem),
    radial-gradient(circle at 88% 72%, rgba(255, 120, 31, 0.25) 0 0.7rem, transparent 0.76rem),
    repeating-radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.1) 0 2px, transparent 3px 38px),
    linear-gradient(135deg, #0b5819 0%, #167529 54%, #073914 100%);
  background-size: auto, auto, auto, auto, 76px 76px, auto;
  color: var(--white);
}

.section-heading {
  max-width: 920px;
  margin-bottom: 34px;
}

.story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.story p,
.token-grid article,
.contract-card,
.hood-card,
.meme-panel,
.join-steps article {
  border: 5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 8px 0 var(--ink);
}

.story p {
  margin: 0;
  padding: 28px;
  background: var(--paper);
}

.token-grid,
.hood-layout,
.join-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.token-grid article,
.join-steps article {
  min-height: 228px;
  padding: 28px;
  background: var(--white);
}

.token-grid span,
.contract-card span,
.join-steps span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  margin-bottom: 18px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--laugh);
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 32px;
}

.token-grid p,
.contract-card p,
.join-steps p,
.hood-card p,
.faq-list p,
.faq-close {
  margin: 14px 0 0;
}

.contract-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  background: var(--laugh);
}

.contract-card > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contract-card span {
  margin-bottom: 0;
  font-size: 24px;
}

.contract-card p {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.contract-card button {
  min-height: 54px;
  padding: 12px 18px 9px;
  border: 4px solid var(--ink);
  border-radius: 7px;
  background: var(--hood-dark);
  color: var(--white);
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  cursor: not-allowed;
  opacity: 0.92;
}

.hood-layout {
  align-items: stretch;
}

.hood-card {
  padding: 28px;
  color: var(--ink);
  background: var(--white);
}

.hood-card.yellow {
  background: var(--laugh);
}

.hood-card.blue {
  background: var(--tear);
}

.meme-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  background: var(--paper);
}

.laugh-logo {
  position: relative;
  display: grid;
  width: min(310px, 100%);
  margin: -10px auto 32px;
  padding: 0;
  place-items: center;
  border: 5px solid var(--ink);
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, rgba(49, 191, 255, 0.32), transparent 32%),
    var(--laugh);
  box-shadow: 0 8px 0 var(--ink);
  cursor: pointer;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.laugh-logo:hover,
.laugh-logo:focus-visible {
  transform: translateY(4px) rotate(-1deg);
  box-shadow: 0 4px 0 var(--ink);
}

.laugh-logo img {
  width: 100%;
  max-height: 245px;
  object-fit: contain;
  object-position: center bottom;
  padding: 14px 18px 0;
  filter: drop-shadow(0 10px 0 rgba(13, 15, 11, 0.28));
}

.laugh-logo span {
  width: 100%;
  padding: 13px 16px 10px;
  border-top: 5px solid var(--ink);
  background: var(--white);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.laugh-logo.is-laughing {
  animation: logoLaugh 420ms ease;
}

.meme-output {
  min-height: 82px;
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1.15;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 38px max(20px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: var(--ink);
}

.faq-list {
  display: grid;
  gap: 18px;
}

.faq-list details {
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 7px 0 var(--ink);
  overflow: hidden;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.05;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "😂";
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--laugh);
  box-shadow: 0 4px 0 var(--ink);
  font-size: 24px;
  transition: transform 160ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(18deg);
  content: "🤣";
}

.faq-list p {
  padding: 0 24px 24px;
  font-size: 20px;
}

.faq-close {
  width: fit-content;
  max-width: 100%;
  margin-top: 28px;
  padding: 16px 20px 13px;
  border: 5px solid var(--ink);
  border-radius: 8px;
  background: var(--laugh);
  box-shadow: 0 7px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
}

.mog-wordmark {
  width: 100%;
  margin-top: 34px;
  color: var(--hood);
  font-family: var(--font-display);
  font-size: clamp(104px, 23vw, 300px);
  line-height: 0.72;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 8px 0 var(--laugh), 0 14px 0 var(--ink);
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links {
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--laugh);
}

.burst {
  position: fixed;
  z-index: 50;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: pop 820ms ease-out forwards;
  font-size: 34px;
}

@keyframes drift {
  from {
    transform: translateY(110vh) rotate(0deg);
  }
  to {
    transform: translateY(-20vh) rotate(360deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-5deg);
  }
  50% {
    transform: translateY(-15px) rotate(7deg);
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marqueeReverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes pop {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) scale(1.6) rotate(18deg);
  }
}

@keyframes logoLaugh {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  24% {
    transform: translateY(3px) rotate(-3deg);
  }
  48% {
    transform: translateY(-3px) rotate(3deg);
  }
  72% {
    transform: translateY(2px) rotate(-2deg);
  }
}

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
  }

  .menu-button {
    display: block;
  }

  .site-nav,
  .nav-cta {
    display: none;
  }

  .site-header.menu-open {
    flex-wrap: wrap;
  }

  .site-header.menu-open .site-nav,
  .site-header.menu-open .nav-cta {
    display: flex;
  }

  .site-header.menu-open .site-nav {
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 134px;
  }

  .hero-art {
    min-height: 470px;
    order: -1;
  }

  h1 {
    font-size: 82px;
  }

  h2 {
    font-size: 54px;
  }

  .story,
  .token-grid,
  .hood-layout,
  .join-steps,
  .meme-panel {
    grid-template-columns: 1fr;
  }

  .contract-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .faq-list summary {
    font-size: 24px;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .preloader {
    padding: 14px;
  }

  .preloader-shell {
    padding: 20px;
  }

  .preloader-shell h2 {
    font-size: 42px;
  }

  .preloader-instruction {
    font-size: 12px;
  }

  .preloader-image-button {
    width: min(270px, 100%);
  }

  .site-header {
    width: calc(100% - 18px);
    margin-top: 8px;
    padding: 10px;
  }

  .section-band,
  .light,
  .green {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero {
    padding-top: 116px;
  }

  h1 {
    font-size: 58px;
    text-shadow: 0 3px 0 var(--laugh), 0 6px 0 var(--ink);
  }

  h2 {
    font-size: 42px;
    text-shadow: 0 3px 0 var(--laugh), 0 5px 0 var(--ink);
  }

  .hero-line,
  .meme-output {
    font-size: 26px;
  }

  .laugh-marquee {
    font-size: 24px;
  }

  .laugh-logo {
    width: min(260px, 100%);
    margin-bottom: 24px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .hero-art {
    min-height: 360px;
  }

  .laugh-orbit {
    width: 62px;
    height: 62px;
    font-size: 32px;
  }

  .story p,
  .token-grid article,
  .contract-card,
  .hood-card,
  .meme-panel,
  .join-steps article {
    padding: 22px;
  }

  .contract-card p {
    font-size: 22px;
  }

  .contract-card button {
    width: 100%;
  }

  .faq-list summary {
    align-items: flex-start;
    padding: 18px;
    font-size: 21px;
  }

  .faq-list summary::after {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }

  .faq-list p {
    padding: 0 18px 20px;
    font-size: 18px;
  }

  .faq-close {
    font-size: 21px;
  }

  .mog-wordmark {
    margin-top: 28px;
    font-size: clamp(72px, 30vw, 132px);
    text-shadow: 0 5px 0 var(--laugh), 0 9px 0 var(--ink);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
