:root {
  --bg: #08101d;
  --bg-soft: #101c34;
  --ink: #08101d;
  --cream: #fff7eb;
  --muted: #d5c6ae;
  --gold: #d7ab72;
  --gold-deep: #b78448;
  --red: #ff3b1f;
  --red-deep: #cb250d;
  --navy: #16234d;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(8, 16, 29, 0.16);
  --shadow: 0 25px 90px rgba(0, 0, 0, 0.35);
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: "Space Grotesk", sans-serif;
  color: var(--cream);
  background:
    radial-gradient(circle at top left, rgba(255, 59, 31, 0.16), transparent 28%),
    linear-gradient(180deg, #102043 0%, var(--bg) 42%, #060a13 100%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  position: fixed;
  inset: 16px 0 auto;
  z-index: 40;
  padding: 0 24px;
}

.topbar-shell,
.section-shell,
.hero-grid {
  width: min(var(--max-width), calc(100vw - 48px));
  margin: 0 auto;
}

.topbar-shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 16, 29, 0.64);
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark,
.eyebrow,
h1,
h2,
h3,
.timeline-step,
.address-chip,
.hud-pill span,
.button,
.topnav a,
.overlay-title {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
}

.brand-mark {
  font-size: 2rem;
  line-height: 1;
  color: var(--red);
}

.brand-copy {
  font-size: 0.92rem;
  color: rgba(255, 247, 235, 0.8);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.topnav a {
  font-size: 1rem;
  color: rgba(255, 247, 235, 0.82);
  transition: color 180ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-chart-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 247, 235, 0.9);
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease;
}

.header-chart-link:hover,
.header-chart-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.header-chart-logo {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  flex: none;
}

.header-chart-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topnav a:hover,
.topnav a:focus-visible,
.social-link:hover,
.social-link:focus-visible,
.receipt-row a:hover,
.receipt-row a:focus-visible {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: 132px 0 40px;
  overflow: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -16% auto;
  width: 52vw;
  height: 52vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 31, 0.28), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 32%),
    repeating-linear-gradient(
      115deg,
      transparent 0 52px,
      rgba(255, 255, 255, 0.02) 52px 56px
    );
  opacity: 0.55;
  animation: heroShift 16s linear infinite;
  pointer-events: none;
}

@keyframes heroShift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(60px, -60px, 0);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 28px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--gold);
}

h1 {
  margin: 0;
  font-size: clamp(5.5rem, 19vw, 11rem);
  line-height: 0.82;
  color: var(--cream);
  text-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.hero-subtitle,
.section-lead p,
.receipt-copy p,
.chart-copy p,
.game-header p,
.join-grid p,
.footer p,
.timeline-item p,
.overlay-copy {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 34rem;
  margin: 18px 0 0;
  color: rgba(255, 247, 235, 0.84);
}

.address-panel {
  margin-top: 28px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(8, 16, 29, 0.54);
  box-shadow: var(--shadow);
}

.address-heading,
.address-actions,
.hero-actions,
.social-strip,
.game-hud,
.join-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.address-heading {
  justify-content: space-between;
}

.address-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 247, 235, 0.74);
}

.address-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 59, 31, 0.14);
  color: #ffd2c8;
  font-size: 0.9rem;
}

.address-chip-link {
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.address-chip-link:hover,
.address-chip-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 59, 31, 0.24);
  color: #fff3ef;
}

.contract-address {
  display: block;
  margin: 14px 0 16px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.copy-status {
  min-height: 1.2em;
  font-size: 0.94rem;
  color: #ffd8b0;
}

.hero-actions {
  margin-top: 24px;
  width: 100%;
}

.hero-actions-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.social-link-inline {
  min-height: 52px;
  padding: 0 16px 0 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--red), var(--red-deep));
  color: #fff6ef;
  box-shadow: 0 14px 32px rgba(255, 59, 31, 0.25);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}

.social-strip {
  margin-top: 22px;
}

.chart-strip {
  margin-top: 20px;
}

.chart-strip-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 247, 235, 0.68);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 247, 235, 0.8);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.social-link svg,
.social-link img {
  width: 20px;
  height: 20px;
  flex: none;
}

.chart-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.chart-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 247, 235, 0.9);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.chart-link:hover,
.chart-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.chart-link-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  flex: none;
}

.chart-link-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chart-link-logo-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: #0f1117;
  background: linear-gradient(135deg, #86f29f, #d4ff70);
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.hero-ring {
  position: absolute;
  inset: 20px 10% auto auto;
  width: min(460px, 78%);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 28px rgba(255, 255, 255, 0.03);
}

.hero-logo {
  position: absolute;
  top: 26px;
  right: 40px;
  width: min(360px, 62%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  animation: drift 7s ease-in-out infinite;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-character {
  position: absolute;
  right: -10px;
  bottom: -30px;
  width: min(440px, 82%);
  filter: drop-shadow(0 34px 50px rgba(0, 0, 0, 0.45));
  animation: drift 6s ease-in-out infinite reverse;
}

.hero-receipt {
  position: absolute;
  left: 0;
  bottom: 68px;
  display: grid;
  gap: 6px;
  width: min(240px, 46%);
  padding: 18px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 247, 235, 0.94), rgba(231, 210, 175, 0.9));
  color: var(--ink);
  transform: rotate(-8deg);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-receipt span {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(8, 16, 29, 0.6);
}

.hero-receipt strong {
  font-size: 1.4rem;
  line-height: 1.08;
}

.marquee {
  position: relative;
  margin-top: 38px;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 18px 0;
  animation: marquee 28s linear infinite;
}

.marquee-track span {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: rgba(255, 247, 235, 0.86);
}

.marquee-track span::after {
  content: "•";
  margin-left: 28px;
  color: rgba(255, 59, 31, 0.8);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

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

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

section {
  position: relative;
  padding: clamp(84px, 10vw, 120px) 0;
}

.story-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 25%);
}

.story-grid,
.chart-grid,
.receipt-grid,
.join-grid {
  display: grid;
  gap: 40px;
  align-items: start;
}

.story-grid {
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
}

.section-lead h2,
.receipt-copy h2,
.chart-copy h2,
.game-header h2,
.join-grid h2 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.9;
}

.section-lead p {
  max-width: 32rem;
  margin: 0;
  color: rgba(255, 247, 235, 0.76);
}

.timeline {
  display: grid;
  gap: 28px;
}

.timeline-item {
  position: relative;
  padding-left: 84px;
  min-height: 72px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 0;
  bottom: -28px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.26), transparent);
}

.timeline-item:last-child::before {
  bottom: 10px;
}

.timeline-step {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 59, 31, 0.12);
  color: #ffe1d9;
  font-size: 1.35rem;
}

.timeline-item h3 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.timeline-item p {
  margin: 0;
  color: rgba(255, 247, 235, 0.72);
}

.receipt-section {
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #f8eddc 0%, #ead2ac 100%);
}

.chart-section {
  background:
    radial-gradient(circle at center top, rgba(255, 59, 31, 0.12), transparent 28%),
    linear-gradient(180deg, #0b1429 0%, #060b15 100%);
}

.chart-grid {
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 1.12fr);
  align-items: center;
}

.chart-copy p {
  max-width: 34rem;
  margin: 0 0 22px;
  color: rgba(255, 247, 235, 0.78);
}

.chart-links-large .chart-link {
  min-height: 58px;
  padding-right: 18px;
}

.chart-link-featured {
  background: rgba(255, 255, 255, 0.05);
}

.chart-link-gecko {
  background: linear-gradient(135deg, rgba(133, 242, 159, 0.12), rgba(212, 255, 112, 0.08));
}

.chart-panel {
  padding: 18px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.chart-embed {
  position: relative;
  width: 100%;
  height: 430px;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.receipt-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
}

.receipt-eyebrow,
.receipt-copy p {
  color: rgba(8, 16, 29, 0.7);
}

.receipt-board {
  padding: 24px;
  border-radius: 30px;
  background: rgba(255, 247, 235, 0.76);
  border: 1px solid var(--line-dark);
  box-shadow: 0 28px 80px rgba(86, 54, 17, 0.14);
}

.receipt-row {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(8, 16, 29, 0.1);
}

.receipt-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.receipt-row span {
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(8, 16, 29, 0.52);
}

.receipt-row strong,
.receipt-row a {
  font-size: 1.12rem;
  line-height: 1.55;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.game-section {
  background:
    radial-gradient(circle at center top, rgba(255, 59, 31, 0.14), transparent 28%),
    linear-gradient(180deg, #111f3f 0%, #070d18 100%);
}

.game-header {
  max-width: 42rem;
  margin-bottom: 28px;
}

.game-header p {
  margin: 0;
  color: rgba(255, 247, 235, 0.76);
}

.game-shell {
  padding: 24px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 19, 0.62);
  box-shadow: var(--shadow);
}

.game-hud {
  justify-content: space-between;
  margin-bottom: 18px;
}

.hud-pill {
  min-width: 102px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-pill span {
  display: block;
  font-size: 0.96rem;
  color: rgba(255, 247, 235, 0.64);
}

.hud-pill strong {
  display: block;
  margin-top: 4px;
  font-size: 1.6rem;
}

.restart-button {
  margin-left: auto;
}

.game-area {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #08101d;
  aspect-ratio: 960 / 420;
}

.game-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

#dashRunCanvas {
  display: block;
  width: 100%;
  height: 100%;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(8, 16, 29, 0.1), rgba(8, 16, 29, 0.72));
  transition: opacity 180ms ease;
}

.game-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.overlay-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.overlay-copy {
  max-width: 34rem;
  margin: 0 auto;
  color: rgba(255, 247, 235, 0.82);
}

.join-section {
  padding-top: clamp(70px, 8vw, 104px);
}

.join-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  padding-bottom: 12px;
}

.join-grid p {
  margin: 0 0 10px;
  color: rgba(255, 247, 235, 0.74);
}

.footer {
  padding: 0 24px 38px;
}

.footer p {
  width: min(var(--max-width), calc(100vw - 48px));
  margin: 0 auto;
  color: rgba(255, 247, 235, 0.48);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .story-grid,
  .chart-grid,
  .receipt-grid,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 116px;
  }

  .hero-visual {
    min-height: 560px;
    order: -1;
  }

  .hero-logo {
    right: 18px;
    width: min(320px, 58vw);
  }

  .hero-character {
    right: 0;
    width: min(400px, 80vw);
  }

  .hero-receipt {
    left: 8px;
    bottom: 42px;
  }
}

@media (max-width: 760px) {
  .topbar {
    inset: 12px 0 auto;
    padding: 0 14px;
  }

  .hero {
    padding-top: 198px;
  }

  .topbar-shell,
  .section-shell,
  .hero-grid {
    width: min(var(--max-width), calc(100vw - 28px));
  }

  .topbar-shell {
    border-radius: 28px;
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    gap: 14px;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .hero-copy {
    padding-top: 18px;
  }

  h1 {
    font-size: clamp(4.8rem, 28vw, 7rem);
  }

  .hero-subtitle,
  .section-lead p,
  .timeline-item p,
  .receipt-copy p,
  .chart-copy p,
  .game-header p,
  .join-grid p,
  .overlay-copy {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 500px;
  }

  .hero-actions-right {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }

  .hero-receipt {
    width: min(220px, 52%);
    padding: 16px;
  }

  .timeline-item {
    padding-left: 72px;
  }

  .timeline-item h3 {
    font-size: 1.65rem;
  }

  .chart-embed {
    height: 380px;
  }

  .game-section .section-shell {
    width: min(var(--max-width), calc(100vw - 12px));
  }

  .game-shell {
    padding: 12px;
    border-radius: 28px;
  }

  .game-hud {
    gap: 10px;
  }

  .hud-pill {
    min-width: calc(50% - 5px);
  }

  .restart-button {
    margin-left: 0;
    width: 100%;
  }

  .game-area {
    height: clamp(230px, 72vw, 310px);
    aspect-ratio: auto;
    border-radius: 20px;
  }

  .game-stage {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: auto;
    height: 100%;
    aspect-ratio: 960 / 420;
    transform: translateX(-46%);
  }

  .game-overlay {
    padding: 18px 20px;
  }

  .overlay-title {
    font-size: clamp(1.65rem, 8vw, 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
