:root {
  --rh-green: #00c805;
  --rh-green-pressed: #00b004;
  --rh-neon: #ccff00;
  --void: #0e0e0e;
  --void-deep: #000000;
  --ink: #ffffff;
  --muted: #9a9a9a;
  --line: rgba(255, 255, 255, 0.12);
  --header-h: 4rem;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--void-deep);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--rh-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rh-green-pressed);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 1.25rem;
  background: rgba(14, 14, 14, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.header-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
  margin-right: 0.35rem;
}

.header-socials[hidden] {
  display: none;
}

.header-socials a {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}

.header-socials a:hover {
  color: var(--rh-green);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(0, 0, 0, 0.88);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover {
  color: var(--rh-green);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

@media (min-width: 761px) {
  .site-nav {
    order: 2;
    margin-left: auto;
  }

  .header-socials {
    order: 3;
    margin-left: 1rem;
    margin-right: 0;
  }

  .nav-toggle {
    order: 4;
  }
}

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid rgba(0, 200, 5, 0.35);
  background: #050805;
  padding: 0.7rem 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}

.marquee-group {
  padding-right: 2rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rh-green);
  white-space: nowrap;
}

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

.site-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--rh-green);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.35rem auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--void-deep);
}

/* Override global img/video max-width/height:auto */
.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.hero-fallback {
  opacity: 0;
  transition: opacity 0.4s;
}

.hero-media.is-fallback .hero-video {
  display: none;
}

.hero-media.is-fallback .hero-fallback {
  opacity: 1;
}

.hero-haze {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 70% 40%,
      rgba(0, 200, 5, 0.22),
      transparent 55%
    ),
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.92) 0%,
      rgba(0, 0, 0, 0.55) 42%,
      rgba(0, 0, 0, 0.25) 100%
    );
  animation: haze-drift 14s ease-in-out infinite alternate;
}

@keyframes haze-drift {
  from {
    background-position: 0% 0%, 0 0;
    filter: hue-rotate(0deg);
  }
  to {
    background-position: 12% 8%, 0 0;
    filter: hue-rotate(-8deg);
  }
}

.hero-content {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0 1.25rem calc(4.5rem + env(safe-area-inset-bottom));
}

.ticker {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--rh-green);
  text-transform: uppercase;
}

.brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.2rem, 16vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.tagline {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--rh-green);
  color: var(--void);
}

.btn-primary:hover {
  background: var(--rh-green-pressed);
  color: var(--void);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: var(--rh-green);
  color: var(--rh-green);
}

.btn-small {
  min-height: 2.1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  background: transparent;
  color: var(--rh-green);
  border-color: rgba(0, 200, 5, 0.45);
}

.btn-small:hover {
  background: rgba(0, 200, 5, 0.12);
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  background: var(--void);
}

.section:nth-of-type(even) {
  background: var(--void-deep);
}

.section-inner {
  width: min(52rem, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rh-green);
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
}

.section p {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

/* Lore */
.community-grid {
  width: min(68rem, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .community-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.chapters {
  display: grid;
  gap: 0;
  align-content: center;
}

.chapter {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.chapter:last-child {
  border-bottom: 1px solid var(--line);
}

.chapter-num {
  margin: 0 0 0.35rem !important;
  font-size: 0.75rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rh-green) !important;
}

.chapter h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.visual-split {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .visual-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }

  .visual-split-reverse {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.rotator-row {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .rotator-row {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }
}

.meme-rotator {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 0.5rem;
  background: #050505;
  cursor: pointer;
  aspect-ratio: 1;
}

.meme-rotator-lg {
  width: min(100%, 28rem);
  margin-inline: auto;
}

.meme-rotator img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
  transition: opacity 0.25s var(--ease);
}

.meme-marquee {
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 200, 5, 0.28);
  background: #050505;
  padding: 0.65rem 0;
}

.meme-marquee-track {
  display: flex;
  width: max-content;
  gap: 0.65rem;
  animation: meme-marquee-scroll 90s linear infinite;
}

.meme-marquee-track img {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid rgba(0, 200, 5, 0.25);
  flex: 0 0 auto;
}

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

.origin {
  margin: 1.75rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 3px solid var(--rh-green);
}

.origin p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.origin-note {
  margin-top: 0.5rem !important;
  color: var(--muted) !important;
  font-size: 0.95rem;
}

.nobody {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}

.nobody li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.nobody li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--rh-green);
}

.nobody li:last-child {
  border-bottom: 1px solid var(--line);
}

/* Why */
.why-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.why-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.why-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.philosophy {
  margin-top: 2rem !important;
  max-width: 36rem;
  color: var(--rh-green) !important;
  font-weight: 500;
}

.gas-chart {
  margin-top: 0;
  max-width: 36rem;
  border-top: 0;
  padding-top: 0;
}

.gas-chart-title {
  margin: 0 0 0.85rem !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rh-green) !important;
}

.gas-chart-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gas-chart-list li {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.gas-k {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.gas-v {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.closing {
  width: min(68rem, 100%);
  margin: 3.5rem auto 0;
  padding: 0 1.25rem;
  text-align: left;
}

.closing-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3rem);
}

.closing-copy {
  margin: 0.85rem 0 0 !important;
  max-width: 32rem !important;
  color: var(--muted) !important;
}

.closing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

/* Roadmap */
.phases {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid rgba(0, 200, 5, 0.35);
}

.phases li {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: 0 0 1.75rem 1.5rem;
}

.phases li:last-child {
  padding-bottom: 0;
}

.phases li::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--rh-green);
  box-shadow: 0 0 0 4px rgba(0, 200, 5, 0.15);
}

.phase-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-green);
}

.phase-text {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--ink);
}

/* Games */
.games-inner {
  width: min(46rem, 100%);
}

.game-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 1.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.85rem;
}

.game-pick {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.35rem 0;
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -0.85rem;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.game-pick:hover {
  color: var(--ink);
}

.game-pick.is-active {
  color: var(--rh-green);
  border-bottom-color: var(--rh-green);
}

.game-shell {
  margin-top: 1.25rem;
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.game-score {
  margin: 0 !important;
  max-width: none !important;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink) !important;
  letter-spacing: 0.02em;
}

.game-best {
  margin-left: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

#game-canvas {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 10;
  height: auto;
  background: #050505;
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 0.35rem;
  touch-action: none;
  cursor: pointer;
  user-select: none;
}

.game-hint {
  margin: 0.65rem 0 0 !important;
  max-width: none !important;
  font-size: 0.85rem;
  color: var(--muted) !important;
}

/* Gallery */
.gallery .section-inner {
  margin-bottom: 1.5rem;
}

.meme-gallery {
  width: min(72rem, 100%);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: 0.65rem;
}

.meme-tile {
  margin: 0;
  overflow: hidden;
  border-radius: 0.4rem;
  border: 1px solid rgba(0, 200, 5, 0.28);
  background: #050505;
  aspect-ratio: 1;
}

.meme-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--ease);
}

.meme-tile:hover img {
  transform: scale(1.04);
}

@media (min-width: 900px) {
  .meme-gallery {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  }
}

/* Buy */
.how-steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 40rem;
}

.how-steps li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0.85rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--line);
}

.how-steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.how-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rh-green);
  line-height: 1.2;
}

.how-steps h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.how-steps p {
  margin: 0.4rem 0 0 !important;
  max-width: none !important;
  color: var(--muted) !important;
}

.buy-panel {
  margin-top: 2rem;
  max-width: 36rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.buy-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.buy-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.buy-value {
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}

.ca-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.ca {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.88);
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.buy-hint {
  margin-top: 1.25rem !important;
  font-size: 0.85rem;
}

.buy-hint code {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8em;
}

/* Community */
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.share-slug {
  margin-top: 1rem !important;
  max-width: 34rem !important;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--rh-green);
  white-space: pre-wrap;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78) !important;
  background: rgba(0, 200, 5, 0.06);
}

.contact-line {
  margin-top: 1.5rem !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.phrases {
  margin-top: 2rem !important;
  max-width: 28rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7) !important;
}

.hashtags {
  margin-top: 0.75rem !important;
  font-size: 0.85rem;
  color: var(--rh-green) !important;
  letter-spacing: 0.02em;
}

.disclaimer {
  width: min(68rem, 100%);
  margin: 3rem auto 0;
  padding: 0 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: none;
}

.site-footer {
  padding: 1.5rem 1.25rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--void-deep);
}

.site-footer p {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.site-footer a {
  color: var(--rh-green);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Mobile nav */
@media (max-width: 760px) {
  .nav-toggle {
    display: block;
    z-index: 60;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 1.75rem;
    background: rgba(0, 0, 0, 0.96);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
  }

  .buy-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .hero-content {
    padding-bottom: calc(3.25rem + env(safe-area-inset-bottom));
  }

  /*
    iPhone is taller than the video: cover was cropping the sides.
    Contain keeps the full Queefy frame visible on black.
  */
  .hero-video,
  .hero-fallback {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center center;
  }

  .gas-chart-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

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

  .hero-haze,
  .reveal,
  .marquee-track,
  .meme-marquee-track {
    animation: none;
    transition: none;
  }

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