@font-face {
  font-family: "VT323";
  src: url("assets/fonts/VT323-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --surface: #071107;
  --surface-strong: #0c1d0d;
  --ink: #fff;
  --muted: #b9c9b7;
  --primary: #17a733;
  --primary-bright: #20d64c;
  --primary-dark: #064915;
  --line: #0b0b0b;
  --warn: #cfff5d;
  --shadow: rgba(0, 0, 0, 0.72);
  --font-display: "VT323", "Courier New", monospace;
  --font-body: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: clip;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 48% 8%, rgba(32, 214, 76, 0.28), transparent 28rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.66) 0%, rgba(0, 14, 3, 0.82) 42%, rgba(0, 0, 0, 0.94) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.74)),
    url("assets/troll-newspaper-bg.png") center / cover no-repeat;
  filter: saturate(0.85) contrast(1.05);
}

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

button {
  color: inherit;
  font: inherit;
}

.scanline {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.16;
  background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 100% 5px;
  mix-blend-mode: screen;
}

.site-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 18px 0 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 28px;
  text-transform: lowercase;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(32, 214, 76, 0.5));
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.nav-actions a,
.social-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 10px;
  border: 2px solid var(--primary-bright);
  background: #020602;
  box-shadow: 4px 4px 0 var(--primary-dark);
  color: var(--primary-bright);
  font-family: var(--font-display);
  font-size: 22px;
}

.nav-actions a:hover,
.social-strip a:hover,
.big-button:hover,
.ticker:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--primary-dark);
}

.hero-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(300px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px 0 18px;
}

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

.eyebrow {
  width: fit-content;
  margin: 0 0 10px;
  padding: 5px 10px;
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #001402;
  font-family: var(--font-display);
  font-size: 24px;
  text-transform: lowercase;
  box-shadow: 5px 5px 0 var(--line);
}

h1,
h2,
.ticker,
.big-button,
.footer {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  margin: 0;
  max-width: 720px;
  color: #fff;
  font-size: clamp(74px, 14vw, 154px);
  line-height: 0.76;
  text-transform: lowercase;
  text-shadow: 6px 6px 0 #062d0e, 10px 10px 0 #000;
}

h1 span {
  display: block;
}

.ticker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
  padding: 10px 15px;
  border: 3px solid #fff;
  background: var(--primary-bright);
  color: #001602;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--line);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.ticker span {
  font-size: 44px;
}

.ticker small {
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
}

.lead {
  max-width: 590px;
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.03;
}

.social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}

.hero-art::after {
  content: "Robinhood Chain";
  position: absolute;
  right: 0;
  bottom: 94px;
  padding: 8px 13px;
  background: #fff;
  color: #000;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 var(--primary-dark);
  font-family: var(--font-display);
  font-size: 27px;
  transform: rotate(-5deg);
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
  max-height: 78svh;
  object-fit: contain;
  filter: drop-shadow(0 0 0 #000) drop-shadow(0 26px 30px rgba(0, 0, 0, 0.8));
  animation: float 4s ease-in-out infinite;
}

.glitch-tag {
  position: absolute;
  top: 72px;
  left: 6px;
  z-index: 3;
  padding: 6px 13px;
  background: #000;
  border: 3px solid var(--primary-bright);
  color: var(--primary-bright);
  box-shadow: 5px 5px 0 #fff;
  font-family: var(--font-display);
  font-size: 34px;
  transform: rotate(7deg);
}

.link-stack {
  display: grid;
  gap: 14px;
  padding: 12px 0 46px;
}

.big-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 13px 18px;
  border: 3px solid #000;
  background: var(--primary);
  color: #fff;
  box-shadow: 8px 8px 0 #fff;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.9;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.big-button:nth-child(even) {
  background: #fff;
  color: #000;
  box-shadow: 8px 8px 0 var(--primary-dark);
}

.big-button span {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

[data-link-pending="true"] {
  cursor: not-allowed;
}

.pending {
  filter: saturate(0.85);
}

.chart-section {
  margin-bottom: 64px;
  padding: 24px;
  border: 3px solid var(--primary-bright);
  background:
    linear-gradient(135deg, rgba(32, 214, 76, 0.12), transparent 46%),
    rgba(0, 0, 0, 0.72);
  box-shadow: 8px 8px 0 #000, 12px 12px 0 var(--primary-dark);
}

.chart-section h2 {
  margin: 0 0 18px;
  color: var(--primary-bright);
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 400;
  line-height: 0.9;
  text-transform: lowercase;
}

#dexscreener-embed {
  position: relative;
  width: 100%;
  padding-bottom: 125%;
  border: 3px solid #000;
  background: #000;
  box-shadow: 6px 6px 0 var(--primary-dark);
}

#dexscreener-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
}

@media (min-width: 1400px) {
  #dexscreener-embed {
    padding-bottom: 65%;
  }
}

.lore-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 0 70px;
}

.lore-panel,
.roadmap {
  border: 3px solid var(--primary-bright);
  background:
    linear-gradient(135deg, rgba(32, 214, 76, 0.13), transparent 44%),
    var(--surface);
  box-shadow: 7px 7px 0 #000, 10px 10px 0 var(--primary-dark);
}

.lore-panel {
  min-height: 260px;
  padding: 22px;
}

.lore-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 18px;
  border: 3px solid #000;
  background: var(--primary-bright);
  object-fit: cover;
  object-position: center;
  box-shadow: 6px 6px 0 var(--primary-dark);
}

.lore-panel h2,
.roadmap h2 {
  margin: 0 0 14px;
  font-size: clamp(40px, 5vw, 66px);
  line-height: 0.9;
  text-transform: lowercase;
  color: var(--primary-bright);
}

.lore-panel p,
.roadmap p {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.05;
}

.ticker-tape {
  overflow: hidden;
  border-block: 3px solid #fff;
  background: var(--primary-bright);
  color: #001401;
  font-family: var(--font-display);
  font-size: 44px;
  white-space: nowrap;
}

.ticker-tape div {
  display: flex;
  width: max-content;
  gap: 34px;
  padding: 8px 0;
  animation: marquee 18s linear infinite;
}

.roadmap {
  margin-bottom: 58px;
  padding: 28px;
}

.roadmap-banner {
  display: block;
  width: 100%;
  aspect-ratio: 3.45 / 1;
  margin: 0 0 22px;
  border: 3px solid #000;
  object-fit: cover;
  object-position: center;
  background: #000;
  box-shadow: 7px 7px 0 var(--primary-dark);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.steps div {
  min-height: 180px;
  padding: 18px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.34);
}

.steps strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.8;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 34px;
  color: var(--muted);
  font-size: 24px;
}

.footer p {
  margin: 0;
}

.footer span {
  color: var(--primary-bright);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(340px, calc(100% - 40px));
  padding: 12px 14px;
  border: 2px solid var(--primary-bright);
  background: #000;
  color: #fff;
  box-shadow: 6px 6px 0 var(--primary-dark);
  font-family: var(--font-display);
  font-size: 26px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-12px) rotate(1deg);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

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

  .hero-copy {
    text-align: center;
  }

  .eyebrow,
  .ticker {
    margin-left: auto;
    margin-right: auto;
  }

  .social-strip {
    justify-content: center;
  }

  .hero-art {
    min-height: 440px;
    margin-top: 4px;
  }

  .hero-art img {
    max-height: none;
    width: min(100%, 520px);
  }

  .hero-art::after {
    right: 12px;
    bottom: 30px;
  }

  .glitch-tag {
    top: 34px;
    left: 14px;
  }
}

@media (max-width: 560px) {
  .page-bg {
    background:
      radial-gradient(circle at 48% 4%, rgba(32, 214, 76, 0.25), transparent 19rem),
      linear-gradient(180deg, rgba(0, 0, 0, 0.56) 0%, rgba(0, 13, 3, 0.79) 45%, rgba(0, 0, 0, 0.94) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.3) 48%, rgba(0, 0, 0, 0.72)),
      url("assets/troll-newspaper-bg-mobile.png") top center / cover no-repeat;
  }

  .site-shell {
    width: min(100% - 22px, 980px);
  }

  .topbar {
    justify-content: center;
  }

  .brand span {
    max-width: 126px;
    line-height: 0.9;
  }

  .nav-actions {
    display: none;
  }

  h1 {
    width: 100%;
    font-size: 72px;
    line-height: 0.82;
  }

  .lead {
    width: min(100%, 292px);
    margin-left: auto;
    margin-right: auto;
    font-size: 23px;
  }

  .ticker span {
    font-size: 36px;
  }

  .hero-art {
    min-height: 380px;
    overflow: hidden;
  }

  .hero-art::after {
    right: -10px;
    bottom: 22px;
    font-size: 22px;
  }

  .big-button {
    align-items: flex-start;
    flex-direction: column;
    min-height: 86px;
    font-size: 42px;
  }

  .lore-panel {
    min-height: 0;
  }

  .footer {
    flex-direction: column;
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
