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

:root {
  --bg: #050704;
  --panel: #11170d;
  --panel-strong: #18250c;
  --text: #f8ffe9;
  --muted: #bad7a2;
  --acid: #b9ff00;
  --lime: #29ff4a;
  --gold: #ffd21f;
  --orange: #ff7a18;
  --pink: #ff3dd7;
  --blue: #28b9ff;
  --border: rgba(185, 255, 0, 0.3);
  --shadow: 0 0 26px rgba(87, 255, 31, 0.42);
  --font-display: "Gameplay", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: "Gameplay", Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #010309;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-width: 320px;
  background-color: #010309;
  background:
    radial-gradient(circle at 18% 16%, rgba(185, 255, 0, 0.22), transparent 24rem),
    radial-gradient(circle at 82% 28%, rgba(255, 61, 215, 0.16), transparent 26rem),
    radial-gradient(circle at 50% 92%, rgba(40, 185, 255, 0.13), transparent 28rem),
    linear-gradient(135deg, #010309 0%, #071006 44%, #10040f 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(185, 255, 0, 0.18), transparent 22rem),
    linear-gradient(135deg, #010309 0%, #071006 52%, #10040f 100%);
  transition: opacity 420ms ease, visibility 420ms ease;
}

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

.preloader-inner {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  width: min(86vw, 320px);
  text-align: center;
}

.preloader img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 4px solid var(--acid);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(7, 88, 3, 0.66), 0 0 42px rgba(185, 255, 0, 0.72);
  animation: preloader-pulse 1.25s ease-in-out infinite;
}

.preloader strong {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 0.9;
  text-transform: uppercase;
  color: #fffde8;
  text-shadow: 0 3px 0 #12770b, 0 0 20px rgba(185, 255, 0, 0.5);
}

.preloader span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.preloader-bar {
  position: relative;
  width: 100%;
  height: 9px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(185, 255, 0, 0.1);
}

.preloader-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--acid), var(--gold), var(--pink));
  box-shadow: 0 0 18px rgba(185, 255, 0, 0.6);
  animation: preloader-load 1s ease-in-out infinite;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.4px) 0 0 / 92px 92px,
    radial-gradient(circle, rgba(185, 255, 0, 0.9) 0 1.2px, transparent 1.8px) 28px 42px / 138px 138px,
    radial-gradient(circle, rgba(40, 185, 255, 0.8) 0 1px, transparent 1.7px) 18px 16px / 180px 180px,
    radial-gradient(circle at 70% 18%, rgba(255, 255, 255, 0.5), transparent 0.35rem),
    radial-gradient(circle at 14% 72%, rgba(255, 210, 31, 0.48), transparent 0.38rem),
    repeating-linear-gradient(115deg, rgba(185, 255, 0, 0.045) 0 1px, transparent 1px 84px);
  background-attachment: fixed;
  mask-image: radial-gradient(circle at center, #000, transparent 82%);
  z-index: -2;
}

.noise,
.noise::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  z-index: -1;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(185, 255, 0, 0.26), transparent 18rem),
    radial-gradient(circle at 90% 70%, rgba(255, 122, 24, 0.18), transparent 20rem),
    linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.035) 50%),
    linear-gradient(transparent 50%, rgba(255, 255, 255, 0.025) 50%);
  background-attachment: fixed;
  background-size: auto, auto, 5px 5px, 5px 5px;
}

.noise::before {
  content: "";
  opacity: 0.75;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 1px, transparent 1.4px) 12px 22px / 58px 58px,
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px) 26px 8px / 112px 112px,
    radial-gradient(circle, rgba(255, 210, 31, 0.9) 0 1px, transparent 1.6px) 42px 36px / 154px 154px;
  animation: star-drift 24s linear infinite;
}

.fling-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fling-back {
  z-index: 0;
}

.fling-front {
  z-index: 22;
  mix-blend-mode: normal;
}

.fling-item {
  position: absolute;
  top: var(--top);
  left: -22vw;
  width: var(--size);
  aspect-ratio: 1;
  object-fit: contain;
  opacity: var(--opacity);
  filter: drop-shadow(0 0 18px rgba(185, 255, 0, 0.42));
  transform: translate3d(-30vw, 0, 0) rotate(var(--rot));
  animation:
    meme-fling var(--duration) linear infinite,
    meme-wobble calc(var(--duration) * 0.32) ease-in-out infinite;
  animation-delay: var(--delay), calc(var(--delay) * 0.45);
  will-change: transform;
}

.fling-front .fling-item {
  opacity: var(--opacity-front);
  filter: drop-shadow(0 0 20px rgba(185, 255, 0, 0.72));
}

.fling-back .fling-item {
  filter: blur(0.2px) drop-shadow(0 0 16px rgba(40, 185, 255, 0.22));
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 3vw, 2.4rem);
  background: rgba(5, 7, 4, 0.82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--acid);
  box-shadow: var(--shadow);
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.nav a {
  color: var(--muted);
}

.nav a:hover {
  color: var(--acid);
}

.header-cta,
.btn,
.copy-panel button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  color: #071003;
  background: var(--acid);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  transform: skew(-7deg);
  box-shadow: 6px 6px 0 #0f4d09, 0 0 22px rgba(185, 255, 0, 0.4);
}

.header-cta[aria-disabled="true"],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
}

.btn > *,
.header-cta > *,
.copy-panel button > * {
  transform: skew(7deg);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 42px;
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(185, 255, 0, 0.1);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 5px auto;
  background: var(--acid);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.18fr);
  align-items: center;
  gap: clamp(1.25rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 5rem) clamp(1rem, 4vw, 4rem) 2.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

h1,
h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.88;
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 10.2ch;
  font-size: clamp(2.9rem, 7.5vw, 6.45rem);
  color: #fffce7;
  text-shadow:
    0 4px 0 var(--lime),
    0 8px 0 #08640a,
    0 0 32px rgba(185, 255, 0, 0.78);
}

.ticker {
  display: inline-block;
  margin: 1.2rem 0 1rem;
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  background: #f61b14;
  color: white;
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.45rem);
  box-shadow: 0 0 24px rgba(255, 210, 31, 0.46);
}

.hero-text {
  max-width: 42rem;
  margin: 0;
  color: var(--text);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.65;
  font-weight: 700;
}

.hero-actions,
.community-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.7rem;
}

.btn-secondary {
  background: var(--pink);
  color: white;
  box-shadow: 6px 6px 0 #5e074a, 0 0 22px rgba(255, 61, 215, 0.38);
}

.btn-ghost {
  background: var(--gold);
  box-shadow: 6px 6px 0 #6d3a02, 0 0 22px rgba(255, 210, 31, 0.34);
}

.hero-art {
  position: relative;
  min-height: 50vw;
  max-height: 720px;
  display: grid;
  place-items: center;
}

.hero-art img {
  width: min(100%, 760px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: clamp(5px, 1vw, 10px) solid var(--acid);
  box-shadow:
    0 0 0 12px rgba(7, 88, 3, 0.72),
    0 0 54px rgba(185, 255, 0, 0.8),
    0 0 100px rgba(255, 122, 24, 0.28);
  animation: floaty 5s ease-in-out infinite;
}

.meme-tape {
  display: flex;
  gap: 1.6rem;
  overflow: hidden;
  padding: 0.9rem 0;
  background: linear-gradient(90deg, var(--acid), var(--gold), var(--pink));
  color: #061003;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 4rem);
  white-space: nowrap;
}

.meme-tape span {
  animation: tape 16s linear infinite;
}

section {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem);
}

.section-marquee {
  position: absolute;
  top: 0.85rem;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  gap: 1rem;
  overflow: hidden;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(185, 255, 0, 0.28);
  border-bottom: 1px solid rgba(185, 255, 0, 0.18);
  color: var(--acid);
  background: linear-gradient(90deg, rgba(5, 7, 4, 0.18), rgba(185, 255, 0, 0.12), rgba(5, 7, 4, 0.18));
  font-size: clamp(0.75rem, 1.15vw, 1.05rem);
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.section-marquee span {
  min-width: max-content;
  text-shadow: 0 0 12px rgba(185, 255, 0, 0.75);
  animation: section-marquee 21s linear infinite;
}

.section-marquee.reverse span {
  animation-direction: reverse;
  animation-duration: 24s;
}

.hero-marquee {
  top: auto;
  bottom: 1.1rem;
}

.community-marquee {
  top: 1.1rem;
}

.band {
  background:
    linear-gradient(180deg, rgba(5, 7, 4, 0.78), rgba(5, 7, 4, 0.54)),
    radial-gradient(circle at 20% 20%, rgba(185, 255, 0, 0.12), transparent 28rem);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story,
.ecosystem,
.tokenomics {
  background-color: rgba(1, 3, 9, 0.5);
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.45px),
    radial-gradient(circle, rgba(185, 255, 0, 0.46) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(40, 185, 255, 0.35) 0 1px, transparent 1.5px);
  background-position: 18px 24px, 44px 72px, 96px 36px;
  background-size: 116px 116px, 172px 172px, 220px 220px;
  background-attachment: fixed;
}

.section-copy {
  max-width: 900px;
  margin-bottom: 2rem;
}

.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--acid);
  font-weight: 900;
  text-transform: uppercase;
}

h2 {
  max-width: 13ch;
  font-size: clamp(3rem, 8vw, 7rem);
  color: #fffde8;
  text-shadow: 0 4px 0 #12770b, 0 0 22px rgba(185, 255, 0, 0.38);
}

.story-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1rem;
}

.story-grid article,
.market-card,
.copy-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(12, 18, 8, 0.74);
  box-shadow: inset 0 0 28px rgba(185, 255, 0, 0.06);
}

.story-grid article {
  padding: clamp(1rem, 3vw, 2rem);
}

.story-grid span {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 2.5rem;
}

h3 {
  margin: 0.8rem 0 0.7rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  text-transform: uppercase;
}

.story-grid p,
.community p,
.copy-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

.ecosystem {
  overflow: hidden;
}

.coin-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.coin-cloud button {
  min-height: 54px;
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  background: rgba(185, 255, 0, 0.08);
  color: var(--text);
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.coin-cloud button.is-hot,
.coin-cloud button:hover {
  color: #061003;
  background: var(--acid);
  box-shadow: var(--shadow);
}

.tokenomics {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: end;
}

.tokenomics .section-copy {
  grid-row: span 2;
  margin: 0;
}

.market-grid {
  align-self: stretch;
}

.market-card {
  position: relative;
  min-height: 220px;
  padding: 1.4rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.market-card::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 1.2rem 1.2rem;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--acid), var(--gold), var(--pink));
  box-shadow: 0 0 22px rgba(185, 255, 0, 0.48);
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: var(--acid);
  box-shadow: var(--shadow), inset 0 0 28px rgba(185, 255, 0, 0.08);
}

.market-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 1.05rem;
  border-radius: 12px;
  background: rgba(5, 7, 4, 0.82);
  box-shadow: 0 0 22px rgba(185, 255, 0, 0.22);
}

.market-card strong {
  display: block;
  color: var(--acid);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3vw, 3.05rem);
  line-height: 0.95;
  overflow-wrap: normal;
  word-break: normal;
}

.market-card span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.copy-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
}

.contract-address {
  overflow-wrap: anywhere;
}

.community {
  min-height: 66vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    linear-gradient(rgba(5, 7, 4, 0.35), rgba(5, 7, 4, 0.96)),
    url("assets/memecoin-universe.png") center / cover fixed;
}

.community-inner {
  max-width: 980px;
}

.community h2 {
  max-width: 11ch;
  margin: 0 auto;
}

.community p {
  max-width: 620px;
  margin: 1.4rem auto 0;
  color: white;
}

.community-actions {
  justify-content: center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  transform: translateY(140%);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: #11170d;
  color: var(--acid);
  font-weight: 900;
  transition: transform 180ms ease;
}

.toast.is-visible {
  transform: translateY(0);
}

@keyframes tape {
  to {
    transform: translateX(-100%);
  }
}

@keyframes section-marquee {
  to {
    transform: translateX(-100%);
  }
}

@keyframes star-drift {
  to {
    transform: translate3d(-46px, 34px, 0);
  }
}

@keyframes preloader-pulse {
  50% {
    transform: scale(1.06) rotate(2deg);
  }
}

@keyframes preloader-load {
  from {
    transform: translateX(-110%);
  }

  to {
    transform: translateX(235%);
  }
}

@keyframes meme-fling {
  from {
    transform: translate3d(-30vw, 0, 0) rotate(var(--rot));
  }

  to {
    transform: translate3d(150vw, var(--sway), 0) rotate(calc(var(--rot) + var(--spin)));
  }
}

@keyframes meme-wobble {
  50% {
    margin-top: var(--bob);
  }
}

@keyframes floaty {
  50% {
    transform: translateY(-14px) rotate(1deg);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    display: none;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: rgba(5, 7, 4, 0.96);
    border-bottom: 1px solid var(--border);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
  }

  .hero,
  .tokenomics {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 72vw;
    order: -1;
  }

  .story-grid,
  .market-grid {
    grid-template-columns: 1fr;
  }

  .tokenomics .section-copy {
    grid-row: auto;
  }

  .community {
    background-attachment: scroll;
  }

  .section-marquee {
    top: 0.45rem;
    font-size: 0.72rem;
  }

  .hero-marquee {
    bottom: 0.55rem;
  }

  .fling-front {
    display: none;
  }

  .fling-back .fling-item {
    width: calc(var(--size) * 0.82);
    opacity: 0.16;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 3rem;
  }

  .btn,
  .copy-panel button {
    width: 100%;
  }

  .hero-actions,
  .community-actions,
  .copy-panel {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fling-layer {
    display: none;
  }

  .noise::before,
  .preloader img,
  .preloader-bar::before,
  .hero-art img,
  .meme-tape span,
  .section-marquee span {
    animation: none;
  }
}
