:root {
  --bg: #070508;
  --bg2: #120a10;
  --rot: #6bff3a;
  --rot-dim: #3a9e22;
  --pink: #ff2d95;
  --cyan: #2de2ff;
  --yellow: #ffe566;
  --mu: #c8a24a;
  --blood: #8b0000;
  --text: #e8ffe0;
  --muted: #8a9a82;
  --card: rgba(18, 8, 14, 0.92);
  --border: rgba(107, 255, 58, 0.35);
  --font-pixel: "Press Start 2P", system-ui, monospace;
  --font-vt: "VT323", ui-monospace, monospace;
  --font-creep: "Creepster", cursive;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-vt);
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--text);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 45, 149, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(107, 255, 58, 0.12), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(139, 0, 0, 0.25), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
}

a { color: var(--cyan); }
a:hover { color: var(--yellow); }

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.18) 2px,
    rgba(0, 0, 0, 0.18) 4px
  );
  mix-blend-mode: multiply;
  opacity: 0.45;
}

.glitch-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9997;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: noise-shift 0.4s steps(2) infinite;
}

.rot-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9996;
  background: linear-gradient(105deg, transparent 40%, rgba(107, 255, 58, 0.03) 50%, transparent 60%);
  animation: sweep 7s linear infinite;
}

@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-1%, 1%); }
  100% { transform: translate(1%, -1%); }
}

@keyframes sweep {
  from { transform: translateX(-30%); }
  to { transform: translateX(30%); }
}

.hero {
  text-align: center;
  padding: 1.25rem 1rem 2rem;
  position: relative;
}

.ticker {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--rot);
  white-space: nowrap;
  overflow: hidden;
  margin: 0 0 1.5rem;
  opacity: 0.85;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(10%); }
  to { transform: translateX(-60%); }
}

.glitch-title {
  font-family: var(--font-pixel);
  font-size: clamp(1.1rem, 4.5vw, 2.2rem);
  line-height: 1.6;
  margin: 0;
  text-shadow: 2px 2px 0 #000, 0 0 18px rgba(107, 255, 58, 0.45);
  position: relative;
}

.glitch-title .wiwi { color: var(--rot); }
.glitch-title .vs {
  display: inline-block;
  margin: 0 0.4rem;
  color: var(--pink);
  font-family: var(--font-creep);
  font-size: 1.4em;
  animation: pulse-vs 1.2s ease-in-out infinite;
}
.glitch-title .micron { color: var(--mu); }

@keyframes pulse-vs {
  0%, 100% { transform: scale(1); filter: hue-rotate(0deg); }
  50% { transform: scale(1.12); filter: hue-rotate(40deg); }
}

.tagline {
  font-family: var(--font-creep);
  font-size: clamp(1.6rem, 6vw, 2.8rem);
  color: var(--pink);
  margin: 0.75rem 0 0.25rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(255, 45, 149, 0.5);
}

.sub {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 1.2rem;
}

.hero-ctas, .card-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.btn {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  text-decoration: none;
  padding: 0.85rem 1rem;
  border: 2px solid var(--rot);
  background: #0d1a0a;
  color: var(--rot);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
  box-shadow: 3px 3px 0 #000;
}

.btn:hover, .btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 #000;
  background: #142810;
  outline: none;
}

.btn:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 #000; }

.btn-buy { border-color: var(--rot); color: var(--rot); }
.btn-dex { border-color: var(--cyan); color: var(--cyan); background: #061418; }
.btn-mu { border-color: var(--mu); color: var(--mu); background: #181208; }
.btn-copy { border-color: var(--yellow); color: var(--yellow); background: #1a1608; flex-shrink: 0; }

.pulse { animation: cta-pulse 1.8s ease-in-out infinite; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 3px 3px 0 #000, 0 0 0 0 rgba(107, 255, 58, 0.5); }
  50% { box-shadow: 3px 3px 0 #000, 0 0 18px 4px rgba(107, 255, 58, 0.35); }
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.versus {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

@media (min-width: 820px) {
  .versus {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem;
  }
}

.card {
  background: var(--card);
  border: 2px solid var(--border);
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 0 0 1px #000, 8px 8px 0 rgba(0, 0, 0, 0.55);
}

.rot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(107, 255, 58, 0.06), transparent 40%, rgba(255, 45, 149, 0.05));
}

.wiwi-card { border-color: rgba(107, 255, 58, 0.5); }
.mu-card { border-color: rgba(200, 162, 74, 0.45); }

.badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  padding: 0.4rem 0.55rem;
  background: var(--rot);
  color: #000;
  margin-bottom: 0.85rem;
}

.badge-mu { background: var(--mu); }

.cat-icon {
  display: block;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  border: 3px solid var(--rot);
  image-rendering: pixelated;
  background: #111;
}

.shake { animation: shake 2.8s ease-in-out infinite; }
@keyframes shake {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg) scale(1.03); }
}

.mu-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 0.75rem;
  display: grid;
  place-items: center;
  font-family: var(--font-pixel);
  font-size: 1.6rem;
  color: #000;
  background: linear-gradient(145deg, #e8c96a, #8a6a20);
  border: 3px solid var(--mu);
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.card h2 {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  text-align: center;
  margin: 0 0 0.35rem;
}

.symbol {
  text-align: center;
  font-size: 1.6rem;
  color: var(--rot);
  margin: 0;
}

.mu-card .symbol { color: var(--mu); }

.price {
  text-align: center;
  color: var(--yellow);
  margin: 0.35rem 0 0.75rem;
  min-height: 1.4em;
}

.price.muted { color: var(--muted); }

.blurb {
  color: var(--muted);
  text-align: center;
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.ca-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  background: #050805;
  border: 1px dashed var(--rot-dim);
  padding: 0.65rem;
  margin-bottom: 1rem;
}

.ca-box code, .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  word-break: break-all;
  color: var(--rot);
}

.mu-link-box {
  border-color: rgba(200, 162, 74, 0.4);
  justify-content: center;
}
.mu-link-box a {
  font-size: 0.95rem;
  word-break: break-all;
  color: var(--mu);
}

.vs-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-creep);
  font-size: 2.5rem;
  color: var(--pink);
  text-shadow: 0 0 16px rgba(255, 45, 149, 0.6);
}

.rot-bar {
  width: 4px;
  height: 60px;
  background: linear-gradient(var(--pink), var(--rot));
  margin-top: 0.5rem;
  display: none;
}

@media (min-width: 820px) {
  .rot-bar { display: block; height: 120px; }
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.65rem, 2.5vw, 0.9rem);
  color: var(--cyan);
  margin: 0 0 1rem;
  text-shadow: 0 0 10px rgba(45, 226, 255, 0.35);
}

.chart-section { margin-bottom: 2.5rem; }

.dex-embed-wrap {
  border: 2px solid var(--border);
  background: #000;
  height: min(520px, 70vh);
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}

.dex-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lore { margin-bottom: 2.5rem; }

.lore-card {
  background: var(--card);
  border: 2px solid rgba(255, 45, 149, 0.35);
  padding: 1.25rem;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.45);
}

.lore-card p { margin: 0 0 0.85rem; }
.lore-card p:last-child { margin-bottom: 0; }
.kym a { color: var(--pink); }

.embed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .embed-grid { grid-template-columns: 1fr 1fr; }
}

.embed-card {
  margin: 0;
  background: var(--card);
  border: 2px solid rgba(107, 255, 58, 0.25);
  padding: 0.65rem;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
}

.embed-card figcaption {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.tiktok-wrap, .yt-wrap {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.tiktok-wrap {
  aspect-ratio: 9 / 16;
  max-height: 640px;
  margin: 0 auto;
}

.yt-wrap { aspect-ratio: 16 / 9; }

.tiktok-wrap iframe,
.yt-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.disclaimer {
  margin: 2rem 0;
  padding: 1rem;
  border: 2px dashed var(--blood);
  background: rgba(80, 0, 0, 0.35);
  color: #ffb0b0;
  font-size: 1.15rem;
}

.disclaimer .section-title { color: #ff6b6b; }

footer {
  text-align: center;
  padding: 1.5rem 1rem 3rem;
  color: var(--muted);
  font-size: 1.05rem;
  border-top: 1px solid rgba(107, 255, 58, 0.15);
}

.footer-tag {
  font-family: var(--font-creep);
  color: var(--pink);
  font-size: 1.4rem;
  margin: 0.35rem 0 0;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  background: var(--rot);
  color: #000;
  padding: 0.85rem 1.1rem;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
}

.toast[hidden] { display: none; }
