/* ==========================================================================
   0xHoodAgent ($HOODAI) — Dark Pool AI Prediction Terminal
   Palette:
   - Obsidian Black: #050806
   - Dark Emerald:   #0A140D
   - Neon RH Green:  #00C805
   - Matrix Bright:  #00FF41
   - Cyber Gold:     #F59E0B
   - Red Feather:    #EF4444
   ========================================================================== */

:root {
  --bg-obsidian: #050806;
  --bg-emerald: #0a140d;
  --bg-panel: rgba(10, 20, 13, 0.76);
  --bg-panel-strong: rgba(7, 14, 9, 0.92);
  --rh-green: #00c805;
  --rh-green-bright: #22ff29;
  --rh-green-glow: rgba(0, 200, 5, 0.38);
  --cyber-gold: #f59e0b;
  --cyber-gold-glow: rgba(245, 158, 11, 0.35);
  --feather-red: #ef4444;
  --feather-red-glow: rgba(239, 68, 68, 0.4);
  --text-primary: #ecfdf5;
  --text-secondary: #86efac;
  --text-muted: #527961;
  --border-green: rgba(0, 200, 5, 0.28);
  --border-bright: rgba(0, 255, 65, 0.65);
  --font-display: 'Syne', 'Space Grotesk', sans-serif;
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: clip;
  selection-background-color: var(--rh-green);
}

::selection {
  background: var(--rh-green);
  color: #020403;
}

body {
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 15% 40%, rgba(0, 200, 5, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(0, 200, 5, 0.05) 0%, transparent 55%);
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  line-height: 1.5;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #12311b;
  border: 1px solid var(--rh-green);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--rh-green);
}

/* Background Cyber Rain Canvas & Particle Canvas */
#cyber-rain-canvas,
#fx-particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#cyber-rain-canvas {
  z-index: 0;
  opacity: 0.16;
}

#fx-particle-canvas {
  z-index: 95;
}

/* Subtle CRT Scanline & Vignette Overlay */
.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  background:
    linear-gradient(
      rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.16) 50%
    ),
    radial-gradient(
      circle at center,
      transparent 62%,
      rgba(2, 5, 3, 0.68) 100%
    );
  background-size: 100% 4px, 100% 100%;
  opacity: 0.3;
}

.crt-off .crt-overlay {
  display: none;
}

/* Screen Shake & God Candle Flash */
@keyframes screenShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-5px, -3px) rotate(-0.4deg); }
  30% { transform: translate(5px, 2px) rotate(0.4deg); }
  45% { transform: translate(-4px, 4px) rotate(-0.2deg); }
  60% { transform: translate(4px, -2px) rotate(0.2deg); }
  75% { transform: translate(-2px, 2px) rotate(-0.1deg); }
}

body.pump-shake {
  animation: screenShake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.god-flash {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 65, 0.26), transparent 70%);
  pointer-events: none;
  z-index: 92;
  opacity: 0;
  transition: opacity 0.25s ease-out;
}
.god-flash.active {
  opacity: 1;
}

/* ==========================================================================
   1. TOP MARQUEE & OCT 27 EARNINGS COUNTDOWN BAR
   ========================================================================== */
.top-terminal-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(5, 8, 6, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-green);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

.marquee-countdown-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #040905 0%, #09170d 50%, #040905 100%);
  border-bottom: 1px solid rgba(0, 200, 5, 0.2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  overflow: hidden;
}

.marquee-wrapper {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 7px 0;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  animation: marqueeScroll 34s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.marquee-item .tag-green {
  color: #020503;
  background: var(--rh-green);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.marquee-item .tag-gold {
  color: #020503;
  background: var(--cyber-gold);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.marquee-item .tag-red {
  color: #fff;
  background: var(--feather-red);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
}

/* Live Countdown Strip */
.earnings-countdown-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 6px 16px;
  background: rgba(15, 29, 19, 0.95);
  border-left: 1px solid var(--border-green);
  flex-shrink: 0;
}

.countdown-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--cyber-gold);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rh-green);
  box-shadow: 0 0 6px var(--rh-green);
}

.pulse-dot.live {
  animation: pulseGlow 1.6s infinite ease-in-out;
}

.pulse-dot.red {
  background: var(--feather-red);
  box-shadow: 0 0 6px var(--feather-red);
}

.pulse-dot.gold {
  background: var(--cyber-gold);
  box-shadow: 0 0 6px var(--cyber-gold);
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.countdown-digits {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
}

.cd-seg {
  background: rgba(3, 8, 5, 0.9);
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 4px;
  padding: 2px 6px;
  min-width: 44px;
  text-align: center;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: inset 0 0 8px rgba(0, 200, 5, 0.12);
}

.cd-seg.cd-ms {
  color: var(--rh-green-bright);
  border-color: var(--rh-green);
  min-width: 52px;
}

.cd-seg small {
  font-size: 0.6rem;
  color: var(--text-muted);
  margin-left: 1px;
}

.cd-sep {
  color: var(--rh-green);
  font-weight: 700;
}

/* Main Navigation Row */
.navbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--rh-green);
  box-shadow: 0 0 15px var(--rh-green-glow);
}

.brand-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticker-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: rgba(0, 200, 5, 0.16);
  color: var(--rh-green-bright);
  border: 1px solid var(--rh-green);
  padding: 1px 7px;
  border-radius: 99px;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 11px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(0, 200, 5, 0.12);
  border-color: rgba(0, 200, 5, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sfx-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(10, 24, 14, 0.85);
  color: var(--rh-green-bright);
  border: 1px solid var(--border-green);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sfx-btn:hover {
  border-color: var(--rh-green-bright);
  box-shadow: 0 0 12px var(--rh-green-glow);
}

.sfx-btn.muted {
  color: var(--text-muted);
  border-color: rgba(82, 121, 97, 0.35);
}

.eq-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq-Bars-bar {
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  animation: eqBounce 0.8s infinite ease-in-out;
}
.eq-Bars-bar:nth-child(1) { height: 6px; animation-delay: 0s; }
.eq-Bars-bar:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.eq-Bars-bar:nth-child(3) { height: 8px; animation-delay: 0.3s; }
.sfx-btn.muted .eq-Bars-bar {
  animation: none;
  height: 3px !important;
}

@keyframes eqBounce {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(14, 29, 18, 0.8);
  border: 1px solid var(--border-green);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon-btn:hover {
  background: rgba(0, 200, 5, 0.18);
  border-color: var(--rh-green-bright);
  transform: translateY(-1px);
}

.btn-nav-cta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--rh-green);
  color: #030704;
  text-decoration: none;
  border: 1px solid var(--rh-green-bright);
  transition: all 0.2s ease;
}

.btn-nav-cta:hover {
  background: var(--rh-green-bright);
  box-shadow: 0 0 25px rgba(34, 255, 41, 0.65);
  transform: translateY(-1px);
}

/* ==========================================================================
   LAYOUT CONTAINER & SECTION HEADERS
   ========================================================================== */
.main-container {
  position: relative;
  z-index: 10;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

section {
  padding-top: 4.5rem;
}

.section-header {
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--rh-green-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-subtitle {
  color: #9caea3;
  max-width: 720px;
  font-size: 1rem;
}

.text-green { color: var(--rh-green-bright); }
.text-gold { color: var(--cyber-gold); }
.text-red { color: var(--feather-red); }

/* ==========================================================================
   2. HERO — shared CA bar & buttons (scene styles live at the end of the file)
   ========================================================================== */
/* Let grid columns shrink below their min-content (long CA string, nowrap labels) */
.simulator-grid > * {
  min-width: 0;
}

/* Copy Contract Address Terminal Bar */
.ca-terminal-bar {
  background: rgba(7, 15, 10, 0.92);
  border: 1px solid var(--rh-green);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.ca-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ca-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ca-label span.chain-tag {
  color: var(--cyber-gold);
}

.ca-value {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--rh-green-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-ca-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 200, 5, 0.18);
  color: var(--rh-green-bright);
  border: 1px solid var(--rh-green);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.copy-ca-btn:hover {
  background: var(--rh-green);
  color: #020503;
  box-shadow: 0 0 18px var(--rh-green-glow);
}

.copy-ca-btn.copied {
  background: var(--cyber-gold);
  border-color: var(--cyber-gold);
  color: #020503;
}

/* Hero Action Buttons */
.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}

.btn-primary-neon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 14px 24px;
  border-radius: 10px;
  background: linear-gradient(135deg, #00e606 0%, #00a804 100%);
  color: #020503;
  text-decoration: none;
  border: 1px solid #5eff64;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: all 0.22s ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-primary-neon:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.4);
  background: linear-gradient(135deg, #26ff2c 0%, #00c805 100%);
}

.btn-secondary-glass {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 10px;
  background: rgba(12, 26, 16, 0.78);
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid var(--border-green);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-glass:hover {
  border-color: var(--rh-green-bright);
  background: rgba(0, 200, 5, 0.14);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. 2.5B EVENT CONTRACT & GOD CANDLE SIMULATOR
   ========================================================================== */
.simulator-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-green);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
  position: relative;
  overflow: hidden;
}

.sim-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 200, 5, 0.2);
}

.sim-pair-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pair-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.pair-tf {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 200, 5, 0.16);
  color: var(--rh-green-bright);
  border: 1px solid rgba(0, 200, 5, 0.4);
}

.sim-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-mono);
}

.sim-metric {
  display: flex;
  flex-direction: column;
}

.sim-metric .sm-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.sim-metric .sm-val {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rh-green-bright);
}

.sim-metric .sm-val.gold {
  color: var(--cyber-gold);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.45fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.chart-canvas-wrap {
  position: relative;
  background: #030704;
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 14px;
  min-height: 410px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 200, 5, 0.08);
}

#god-candle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.chart-hud-overlay {
  position: absolute;
  top: 12px;
  left: 14px;
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: rgba(4, 9, 6, 0.8);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 200, 5, 0.25);
}

.chart-error-banner {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(35, 6, 6, 0.94);
  border: 1.5px solid var(--feather-red);
  color: #fecaca;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.22s ease;
}

.chart-error-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Simulator Control Deck */
.sim-control-deck {
  background: rgba(6, 13, 8, 0.92);
  border: 1px solid rgba(0, 200, 5, 0.28);
  border-radius: 14px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
}

.contract-card-header {
  font-family: var(--font-mono);
  border-bottom: 1px dashed rgba(0, 200, 5, 0.22);
  padding-bottom: 0.8rem;
}

.contract-card-header .cc-tag {
  font-size: 0.7rem;
  color: var(--cyber-gold);
  text-transform: uppercase;
}

.contract-card-header h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  margin-top: 4px;
}

.odds-bar-wrap {
  font-family: var(--font-mono);
}

.odds-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.odds-track {
  height: 12px;
  background: rgba(239, 68, 68, 0.25);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 5, 0.45);
}

.odds-fill-yes {
  height: 100%;
  width: 99.9%;
  background: linear-gradient(90deg, var(--rh-green), var(--rh-green-bright));
  box-shadow: 0 0 14px var(--rh-green);
}

/* Giant YES Button */
.btn-execute-yes {
  width: 100%;
  padding: 18px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #24ff2b 0%, #00b804 100%);
  border: 2px solid #86efac;
  color: #020503;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow:
    0 0 18px rgba(0, 200, 5, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.5);
  transition: all 0.12s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.btn-execute-yes:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 0 42px rgba(0, 255, 65, 0.85);
}

.btn-execute-yes:active {
  transform: translateY(2px) scale(0.985);
}

.btn-execute-yes small {
  font-size: 0.68rem;
  opacity: 0.85;
  font-weight: 700;
}

/* Runaway NO Button Arena */
.no-button-arena {
  position: relative;
  height: 76px;
  border: 1px dashed rgba(239, 68, 68, 0.28);
  border-radius: 10px;
  background: rgba(20, 6, 6, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.btn-bet-no {
  position: absolute;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.18);
  border: 1.5px solid var(--feather-red);
  color: #fca5a5;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: not-allowed;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  z-index: 25;
}

.sim-share-box {
  background: rgba(0, 200, 5, 0.1);
  border: 1px solid rgba(0, 200, 5, 0.35);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.btn-share-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--cyber-gold);
  color: #030604;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-share-x:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* ==========================================================================
   4. INTERACTIVE "ASK 0xHoodAgent" AI ORACLE TERMINAL
   ========================================================================== */
.oracle-terminal-window {
  background: var(--bg-panel-strong);
  border: 1.5px solid var(--border-green);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 200, 5, 0.12);
}

.terminal-titlebar {
  background: rgba(12, 26, 16, 0.95);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.term-dots {
  display: flex;
  gap: 7px;
}

.term-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.term-dot.red { background: var(--feather-red); }
.term-dot.gold { background: var(--cyber-gold); }
.term-dot.green { background: var(--rh-green); }

.term-status {
  color: var(--rh-green-bright);
  display: flex;
  align-items: center;
  gap: 8px;
}

.oracle-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.oracle-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.preset-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(14, 31, 19, 0.9);
  border: 1px solid rgba(0, 200, 5, 0.35);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
}

.preset-chip:hover,
.preset-chip.active {
  background: rgba(0, 200, 5, 0.2);
  border-color: var(--rh-green-bright);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(0, 200, 5, 0.25);
  transform: translateY(-1px);
}

.oracle-screen {
  background: #030604;
  border: 1px solid rgba(0, 200, 5, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  min-height: 270px;
  max-height: 420px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.oracle-msg {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(0, 200, 5, 0.15);
}

.oracle-msg-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--cyber-gold);
}

.oracle-scan-steps {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.oracle-scan-steps .step-done {
  color: var(--rh-green);
}

.oracle-consensus-bar {
  margin: 6px 0;
  background: rgba(0, 200, 5, 0.12);
  border: 1px solid var(--rh-green);
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--rh-green-bright);
}

.oracle-response-text {
  color: var(--text-primary);
  line-height: 1.65;
  white-space: pre-wrap;
}

.oracle-input-form {
  display: flex;
  gap: 0.75rem;
}

.oracle-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: #040906;
  border: 1px solid var(--border-green);
  border-radius: 10px;
  padding: 0 14px;
}

.oracle-input-wrap:focus-within {
  border-color: var(--rh-green-bright);
  box-shadow: 0 0 16px rgba(0, 200, 5, 0.25);
}

.prompt-prefix {
  font-family: var(--font-mono);
  color: var(--rh-green-bright);
  font-weight: 700;
  margin-right: 10px;
  font-size: 0.85rem;
}

.oracle-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 13px 0;
}

.btn-oracle-send {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--rh-green);
  color: #020503;
  border: 1px solid var(--rh-green-bright);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-oracle-send:hover {
  background: var(--rh-green-bright);
  box-shadow: 0 0 20px var(--rh-green-glow);
}

/* ==========================================================================
   5. LORE BENTO GRID & CATALYST CARDS
   ========================================================================== */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.bento-card {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-green);
  border-radius: 18px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.bento-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-3px);
}

.bento-span-8 { grid-column: span 8; }
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-12 { grid-column: span 12; }

.bento-scene-card {
  padding: 0;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bento-scene-card img.scene-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.5s ease;
}

.bento-scene-card:hover img.scene-bg {
  transform: scale(1.03);
}

.bento-scene-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(3, 7, 5, 0.96) 0%,
    rgba(4, 11, 7, 0.78) 55%,
    transparent 100%
  );
  padding: 2rem 1.75rem 1.6rem;
}

.catalyst-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyber-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  display: inline-block;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 9px;
  border-radius: 99px;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.38rem;
  margin-bottom: 0.6rem;
}

.bento-card p {
  color: #a9c7b4;
  font-size: 0.94rem;
  line-height: 1.6;
}

.spec-list {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(0, 200, 5, 0.2);
}

.spec-list li span:first-child {
  color: var(--text-muted);
}

.spec-list li span:last-child {
  color: var(--rh-green-bright);
  font-weight: 700;
}

/* Raid Banner Kit Card */
.banner-showcase-wrap {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 5, 0.35);
}

.banner-showcase-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   6. FLOATING LIVE DARK POOL WHALE FEED (BOTTOM-RIGHT)
   ========================================================================== */
.whale-feed-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 300px;
  z-index: 85;
  background: rgba(6, 14, 9, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--rh-green);
  border-radius: 14px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 200, 5, 0.2);
  font-family: var(--font-mono);
  overflow: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.whale-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 200, 5, 0.14);
  border-bottom: 1px solid rgba(0, 200, 5, 0.28);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rh-green-bright);
  cursor: pointer;
}

.whale-feed-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 185px;
  overflow: hidden;
}

.whale-feed-widget.over-hero {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.whale-feed-widget.minimized .whale-feed-body {
  display: none;
}

.whale-tx-item {
  font-size: 0.72rem;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(12, 26, 16, 0.85);
  border-left: 3px solid var(--rh-green-bright);
  animation: slideInRight 0.35s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.whale-tx-top {
  display: flex;
  justify-content: space-between;
  color: var(--cyber-gold);
  font-weight: 700;
  margin-bottom: 2px;
}

.whale-tx-desc {
  color: var(--text-primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-green);
  background: rgba(4, 8, 5, 0.95);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--rh-green-bright);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1080px) {
  .simulator-grid {
    grid-template-columns: 1fr;
  }
  .bento-span-8,
  .bento-span-4,
  .bento-span-6 {
    grid-column: span 12;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 720px) {
  .marquee-countdown-strip {
    flex-direction: column;
  }
  .earnings-countdown-box {
    width: 100%;
    justify-content: center;
    border-left: none;
    border-top: 1px solid rgba(0, 200, 5, 0.2);
  }
  .whale-feed-widget {
    width: min(300px, calc(100vw - 24px));
    right: 12px;
    bottom: 12px;
  }
  .whale-feed-widget.minimized {
    width: auto;
  }
  .countdown-label {
    white-space: nowrap;
  }
  .section-title {
    overflow-wrap: anywhere;
  }
  .whale-feed-header {
    gap: 8px;
  }
  #sfx-status-label,
  .countdown-label-extra,
  .brand-sub,
  .social-icon-btn,
  .btn-nav-cta {
    display: none;
  }
  .navbar {
    padding: 0.6rem 1rem;
  }
  .main-container {
    padding: 0 1rem 5rem;
  }
  .cd-seg {
    min-width: 36px;
    padding: 2px 4px;
  }
  .ca-terminal-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .copy-ca-btn {
    justify-content: center;
  }
}

/* Millisecond counter read as jitter, not urgency */
.cd-ms,
.cd-sep:has(+ .cd-ms) {
  display: none;
}

/* ==========================================================================
   7. BOOT INTRO
   ========================================================================== */
.boot {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #020403;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  font-family: var(--font-mono);
  transition: opacity 0.6s ease, visibility 0.6s ease;
  /* Failsafe: never trap the page if JS dies mid-sequence */
  animation: bootFailsafe 0s linear 5s forwards;
}

@keyframes bootFailsafe {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.boot-skip .boot {
  display: none;
}

.boot.boot-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html.booting,
html.booting body {
  overflow: hidden;
}

.boot-inner {
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.boot-log {
  min-height: 7.5em;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.boot-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  animation: bootLineIn 0.18s ease-out;
}

.boot-line b {
  font-weight: 700;
  flex-shrink: 0;
}

.boot-line b.ok { color: var(--rh-green); }
.boot-line b.bad { color: var(--feather-red); }

@keyframes bootLineIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.boot-stage {
  position: relative;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-sell {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 220px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--feather-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.2s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.boot-sell.show,
.boot-sell-piece {
  opacity: 1;
  transform: none;
}

.boot-sell.glitch {
  animation: sellGlitch 0.45s steps(2, end) infinite;
}

@keyframes sellGlitch {
  0%   { transform: translate(0, 0); text-shadow: 3px 0 #22ff29, -3px 0 #00e5ff; clip-path: inset(0 0 0 0); }
  20%  { transform: translate(-4px, 2px); clip-path: inset(10% 0 55% 0); }
  40%  { transform: translate(5px, -2px); text-shadow: -4px 0 #22ff29, 4px 0 #00e5ff; clip-path: inset(45% 0 20% 0); }
  60%  { transform: translate(-2px, 0); clip-path: inset(0 0 0 0); }
  80%  { transform: translate(3px, 1px); clip-path: inset(70% 0 5% 0); }
  100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

.boot-verdict {
  min-height: 4.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.boot-verdict.show {
  opacity: 1;
  transform: none;
}

.boot-404 {
  font-size: 0.8rem;
  color: var(--feather-red);
  letter-spacing: 0.12em;
}

.boot-yes {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  color: var(--rh-green-bright);
  text-shadow: 0 0 32px rgba(34, 255, 41, 0.45);
}

.boot-skip-hint {
  position: absolute;
  right: 1.25rem;
  bottom: 1.1rem;
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   8. FULL-SCREEN HERO SCENE
   ========================================================================== */
.hero-scene {
  position: relative;
  z-index: 10;
  min-height: calc(100vh - 104px);
  min-height: calc(100svh - 104px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #030604;
}

.hero-bg {
  --ox: 0.7;
  --oy: 0.35;
  position: absolute;
  inset: 0;
  z-index: -3;
  transform: scale(1.14);
  transition: transform 2.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html.booted .hero-bg {
  transform: scale(1);
}

/* JS sizes this box like object-fit: cover; until then it simply fills the hero */
.hero-art {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: scale(1.08);
  will-change: transform;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 35%;
}

/* Darken the monitor wall behind the copy, leave the cat lit */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 6, 4, 0.94) 0%, rgba(3, 6, 4, 0.82) 34%, rgba(3, 6, 4, 0.25) 62%, rgba(3, 6, 4, 0.1) 100%),
    linear-gradient(0deg, #050806 0%, rgba(5, 8, 6, 0) 22%);
}

.hero-pulse {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 72% 32%, rgba(34, 255, 41, 0.35), transparent 45%);
  opacity: 0;
}

.hero-pulse.active {
  animation: heroPulse 0.7s ease-out;
}

@keyframes heroPulse {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

.hero-content {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}

.hero-content > * {
  max-width: 600px;
}

/* Staggered entrance once the boot intro hands off */
html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--d, 0) * 90ms + 200ms);
}

html.js.booted .reveal {
  opacity: 1;
  transform: none;
}

.hero-eyebrow {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fca5a5;
  margin-bottom: 1.1rem;
}

.hero-eyebrow-sep {
  color: var(--text-muted);
}

.hero-eyebrow span:last-child {
  color: var(--text-secondary);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
  max-width: 760px;
}

.sell-strike {
  position: relative;
  display: inline-block;
  color: var(--feather-red);
}

.sell-strike::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -4%;
  top: 54%;
  height: 0.09em;
  background: var(--feather-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1) 0.75s;
}

html.booted .sell-strike::after {
  transform: scaleX(1);
}

.hero-yes {
  color: var(--rh-green-bright);
  text-shadow: 0 0 40px rgba(34, 255, 41, 0.35);
}

.hero-sub {
  font-size: 1.08rem;
  line-height: 1.6;
  color: #b7c9bd;
  margin-bottom: 1.6rem;
  max-width: 520px;
}

.hero-sub strong {
  color: var(--text-primary);
}

.hero-play {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}

.hero-yes-btn {
  flex-shrink: 0;
  padding: 20px 34px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2bff31 0%, #00b804 100%);
  border: 2px solid #a7f3b0;
  color: #021003;
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow:
    0 0 0 6px rgba(34, 255, 41, 0.1),
    0 14px 40px rgba(0, 200, 5, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.55);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.hero-yes-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 8px rgba(34, 255, 41, 0.14),
    0 18px 50px rgba(0, 255, 65, 0.45),
    inset 0 2px 4px rgba(255, 255, 255, 0.55);
}

.hero-yes-btn:active {
  transform: translateY(2px) scale(0.98);
}

.hero-no-arena {
  position: relative;
  flex: 1;
  max-width: 220px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-play-status {
  min-height: 1.4em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

#hero-yes-count.active {
  color: var(--rh-green-bright);
}

.hero-no-error {
  color: var(--feather-red);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.hero-no-error.visible {
  opacity: 1;
}

.hero-ca {
  max-width: 560px;
  margin-bottom: 1rem;
  background: rgba(3, 7, 5, 0.78);
  backdrop-filter: blur(10px);
  border-color: rgba(0, 200, 5, 0.4);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 200, 5, 0.22);
  background: rgba(3, 7, 5, 0.6);
  backdrop-filter: blur(8px);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hero-link:hover {
  color: var(--text-primary);
  border-color: var(--rh-green-bright);
}

.hero-link.primary {
  color: #021003;
  background: var(--rh-green);
  border-color: var(--rh-green);
}

.hero-link.primary:hover {
  background: var(--rh-green-bright);
  color: #021003;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}

.hero-scroll-cue span {
  display: inline-block;
  animation: cueBob 1.8s ease-in-out infinite;
}

@keyframes cueBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero-scroll-cue:hover {
  color: var(--text-secondary);
}

@media (max-width: 720px) {
  .hero-scene {
    min-height: calc(100svh - 96px);
    align-items: flex-end;
  }
  /* Artwork owns the top of the screen so the cat's face stays clear of the copy */
  .hero-bg {
    bottom: auto;
    height: 430px;
  }
  .hero-bg {
    --ox: 0.86;
    --oy: 0.3;
  }
  .hero-art img {
    object-position: 86% 30%;
  }
  .hero-shade {
    background:
      linear-gradient(0deg, #050806 0%, #050806 calc(100% - 430px), rgba(5, 8, 6, 0.85) calc(100% - 330px), rgba(5, 8, 6, 0) calc(100% - 160px));
  }
  .hero-pulse {
    background: radial-gradient(circle at 72% 150px, rgba(34, 255, 41, 0.35), transparent 220px);
  }
  .hero-content {
    padding: 290px 1rem 4.2rem;
  }
  .hero-eyebrow {
    font-size: 0.64rem;
  }
  .hero-eyebrow-sep,
  .hero-eyebrow span:last-child {
    display: none;
  }
  .hero-title {
    font-size: clamp(2.3rem, 12vw, 3.2rem);
  }
  .hero-sub {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }
  .hero-yes-btn {
    padding: 17px 20px;
    font-size: 0.98rem;
  }
  .hero-no-arena {
    height: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  html.js .reveal,
  .sell-strike::after {
    transition: none;
  }
  .hero-scroll-cue span {
    animation: none;
  }
}

/* ==========================================================================
   9. LIVING SCENE — rain, lightning, monitors, eyes (positions in % of art)
   ========================================================================== */
.hero-rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-lightning {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: polygon(54.5% 0, 89.5% 0, 89.5% 19.5%, 73.8% 21.5%, 72.1% 52.1%, 54.5% 52.1%);
  background: linear-gradient(180deg, rgba(225, 235, 255, 0.95), rgba(170, 195, 255, 0.55));
  mix-blend-mode: screen;
  opacity: 0;
}

.hero-art.strike .hero-lightning {
  animation: lightningFlash 0.9s ease-out;
}

.hero-art.strike img {
  animation: roomFlash 0.9s ease-out;
}

@keyframes lightningFlash {
  0% { opacity: 0; }
  6% { opacity: 0.85; }
  14% { opacity: 0.1; }
  22% { opacity: 0.7; }
  100% { opacity: 0; }
}

@keyframes roomFlash {
  0%, 100% { filter: none; }
  6% { filter: brightness(1.35) saturate(0.8); }
  14% { filter: none; }
  22% { filter: brightness(1.22) saturate(0.85); }
}

/* Monitors: a slow scanline roll keeps them alive; YES spikes a god candle on each */
.scr {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  border-radius: 7%;
  overflow: hidden;
  mix-blend-mode: screen;
  pointer-events: none;
}

.scr::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 35%;
  top: -35%;
  background: linear-gradient(180deg, transparent, rgba(120, 255, 140, 0.16), transparent);
  animation: scanRoll 4.6s linear infinite;
  animation-delay: calc(var(--d, 0) * -1s);
}

@keyframes scanRoll {
  to { transform: translateY(400%); }
}

.scr::after {
  content: "";
  position: absolute;
  left: 58%;
  bottom: 14%;
  width: 11%;
  height: 72%;
  background: linear-gradient(180deg, #d9ffd0, #22ff29 30%, #00c805);
  box-shadow: 0 0 14px #22ff29, 0 0 28px rgba(34, 255, 41, 0.6);
  transform: scaleY(0);
  transform-origin: bottom;
  opacity: 0;
}

.scr.spike {
  animation: screenFlash 0.9s ease-out;
}

.scr.spike::after {
  animation: spikeBar 1.1s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes screenFlash {
  0% { background: rgba(80, 255, 100, 0.55); }
  100% { background: transparent; }
}

@keyframes spikeBar {
  0% { transform: scaleY(0); opacity: 1; }
  35% { transform: scaleY(1); opacity: 1; }
  75% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.scr.alarm {
  animation: screenAlarm 0.35s steps(2, end) 3;
}

@keyframes screenAlarm {
  0% { background: rgba(255, 60, 60, 0.5); }
  100% { background: transparent; }
}

/* The cat's eyes behind the glasses */
.cat-eye {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: 2.6%;
  aspect-ratio: 1.6;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(215, 255, 140, 0.95), rgba(34, 255, 41, 0.5) 42%, transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.3;
  animation: eyeBreath 4.5s ease-in-out infinite;
  transition: background 0.15s ease;
}

@keyframes eyeBreath {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.5; }
}

.hero-art.eyes-yes .cat-eye {
  animation: eyeFlare 0.9s ease-out;
}

@keyframes eyeFlare {
  0% { opacity: 1; transform: scale(2.2); }
  100% { opacity: 0.3; transform: scale(1); }
}

.hero-art.eyes-red .cat-eye {
  background: radial-gradient(ellipse at center, rgba(255, 210, 200, 0.95), rgba(255, 40, 40, 0.65) 42%, transparent 72%);
  animation: none;
  opacity: 1;
  transform: scale(1.6);
}

/* Share button appears after the first god candle */
.hero-share {
  display: none;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--cyber-gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-share.visible {
  display: inline;
}

/* ==========================================================================
   10. THE STORY — sticky stage + chapters
   ========================================================================== */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem;
  align-items: start;
}

.story-stage {
  position: sticky;
  top: 130px;
  height: min(540px, calc(100vh - 170px));
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.story-stage-inner {
  position: relative;
  flex: 1;
  border-radius: 20px;
  border: 1px solid var(--border-green);
  background: radial-gradient(circle at 50% 40%, rgba(0, 200, 5, 0.08), transparent 60%), #040805;
  overflow: hidden;
}

.story-vis {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.75rem;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.story-vis.is-active {
  opacity: 1;
  transform: none;
}

.story-progress {
  display: flex;
  gap: 6px;
}

.story-progress span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(0, 200, 5, 0.15);
  transition: background 0.4s ease;
}

.story-progress span.on {
  background: var(--rh-green);
}

.story-chapter {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  opacity: 0.28;
  transition: opacity 0.4s ease;
}

.story-chapter.is-current {
  opacity: 1;
}

.story-chapter:last-child {
  min-height: 60vh;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--rh-green-bright);
}

.story-chapter h3 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.story-chapter p {
  color: #a9bdb1;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 480px;
}

.story-chapter .chapter-kicker {
  color: var(--text-primary);
  font-weight: 600;
}

.chapter-cta {
  align-self: flex-start;
  margin-top: 0.6rem;
}

/* Shared window chrome for the stage visuals */
.vis-window {
  position: relative;
  width: min(440px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(0, 200, 5, 0.3);
  background: rgba(8, 16, 11, 0.95);
  padding: 1rem 1.1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.vis-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

.vis-pill {
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 99px;
  padding: 2px 8px;
}

.vis-pill.red {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.5);
}

/* 01 — the lie */
.lie-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 200, 5, 0.1);
  color: var(--text-primary);
}

.lie-row .up { color: var(--rh-green-bright); }
.lie-row .down { color: var(--feather-red); }

.lie-follow {
  font-size: 0.64rem;
  color: var(--text-muted);
}

.lie-you {
  color: #fca5a5;
}

.vis-lie.is-active .lie-you {
  animation: youSink 2.4s ease-in-out infinite;
}

@keyframes youSink {
  0%, 100% { background: transparent; }
  50% { background: rgba(239, 68, 68, 0.1); }
}

.lie-foot {
  margin-top: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

/* 02 — their exit is your entry */
.pool-chart {
  width: 100%;
  height: 170px;
  display: block;
}

.pool-line {
  fill: none;
  stroke: var(--rh-green);
  stroke-width: 2.5;
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
}

.vis-pool.is-active .pool-line {
  animation: drawLine 1.6s ease-out forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.pool-dot.exit { fill: var(--cyber-gold); }

.pool-dot.entry {
  fill: none;
  stroke: var(--feather-red);
  stroke-width: 2.5;
}

.pool-dot {
  opacity: 0;
}

.vis-pool.is-active .pool-dot {
  animation: dotIn 0.4s ease-out 1.1s forwards;
}

@keyframes dotIn {
  to { opacity: 1; }
}

.pool-tag {
  position: absolute;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 4px;
  opacity: 0;
}

.pool-tag-exit {
  left: 64%;
  top: 2.6rem;
  color: #020503;
  background: var(--cyber-gold);
}

.pool-tag-entry {
  left: 64%;
  top: 4.4rem;
  color: #fff;
  background: var(--feather-red);
}

.vis-pool.is-active .pool-tag {
  animation: dotIn 0.4s ease-out 1.4s forwards;
}

.pool-book {
  margin-top: 0.6rem;
  display: grid;
  gap: 4px;
}

.pool-book div {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 0.6rem;
  color: var(--text-secondary);
}

.pool-book .redacted {
  color: #fca5a5;
}

/* 03 — the cat wakes up */
.wake-frame {
  width: min(250px, 58%);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(0, 200, 5, 0.4);
  box-shadow: 0 0 0 10px rgba(0, 200, 5, 0.05);
}

.wake-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.08) saturate(0);
  transition: filter 1.6s ease 0.2s;
}

.vis-wake.is-active .wake-frame img {
  filter: none;
}

.vis-wake.is-active .wake-frame {
  animation: wakeGlow 2.4s ease-out forwards;
}

@keyframes wakeGlow {
  to { box-shadow: 0 0 0 10px rgba(0, 200, 5, 0.08), 0 0 60px rgba(34, 255, 41, 0.35); }
}

.wake-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
}

.wake-count span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--rh-green-bright);
  letter-spacing: -0.01em;
}

/* 04 — the deletion */
.del-buttons {
  display: flex;
  gap: 1rem;
}

.del-btn {
  width: 150px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--feather-red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.del-no {
  background: #7f1d1d;
}

.vis-delete.is-active .del-btn {
  animation: delGlitch 0.4s steps(2, end) 0.3s 3, delGone 0.5s ease-in 1.5s forwards;
}

.vis-delete.is-active .del-no {
  animation-delay: 0.45s, 1.7s;
}

@keyframes delGlitch {
  0% { transform: translate(0, 0); clip-path: inset(0 0 0 0); text-shadow: 3px 0 #22ff29, -3px 0 #00e5ff; }
  33% { transform: translate(-5px, 2px); clip-path: inset(15% 0 50% 0); }
  66% { transform: translate(4px, -2px); clip-path: inset(55% 0 10% 0); }
  100% { transform: translate(0, 0); clip-path: inset(0 0 0 0); }
}

@keyframes delGone {
  to { opacity: 0; transform: scale(0.6) translateY(20px); filter: blur(6px); }
}

.del-404 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--feather-red);
  opacity: 0;
}

.vis-delete.is-active .del-404 {
  animation: dotIn 0.4s ease-out 2s forwards;
}

/* 05 — bad luck for them */
.vis-luck img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 5, 0.3);
}

.luck-line {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  font-weight: 800;
  text-align: center;
  color: var(--rh-green-bright);
}

@media (max-width: 860px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .story-stage {
    top: 96px;
    height: 40vh;
    z-index: 5;
    padding-bottom: 0.8rem;
    background: var(--bg-obsidian);
  }
  .story-vis {
    padding: 1rem;
    gap: 0.8rem;
  }
  .vis-window {
    font-size: 0.68rem;
    padding: 0.7rem 0.8rem;
  }
  .lie-row {
    padding: 0.35rem 0;
  }
  .pool-chart {
    height: 90px;
  }
  .pool-tag-exit { top: 2.1rem; }
  .pool-tag-entry { top: 3.6rem; }
  .del-btn {
    width: 110px;
    height: 52px;
    font-size: 1.2rem;
  }
  .story-chapter {
    min-height: 62vh;
  }
}

/* ==========================================================================
   11. SHARE MODAL, TOAST & SELL GLITCH
   ========================================================================== */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.share-modal[hidden] {
  display: none;
}

html.share-open,
html.share-open body {
  overflow: hidden;
}

.share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 3, 0.78);
  backdrop-filter: blur(6px);
}

.share-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  background: #07100a;
  border: 1px solid var(--border-green);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.share-dialog h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
}

.share-close {
  position: absolute;
  top: 0.8rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border-green);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
}

.share-preview-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 200, 5, 0.25);
  background: #030604;
}

.share-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.share-modal.rendering .share-preview-wrap::after {
  content: "RENDERING YOUR RECEIPT...";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.share-actions [hidden] {
  display: none;
}

.share-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cat-toast {
  position: fixed;
  left: 50%;
  top: 140px;
  z-index: 160;
  translate: -50% -10px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #1a0606;
  border: 1px solid var(--feather-red);
  color: #fecaca;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, translate 0.2s ease;
}

.cat-toast.visible {
  opacity: 1;
  translate: -50% 0;
}

body.glitch-all .main-container,
body.glitch-all .hero-content {
  animation: pageGlitch 0.6s steps(3, end);
}

@keyframes pageGlitch {
  0% { transform: translate(0, 0); filter: none; }
  25% { transform: translate(-6px, 2px); filter: hue-rotate(-60deg) saturate(2); }
  50% { transform: translate(5px, -3px); filter: hue-rotate(90deg); }
  75% { transform: translate(-3px, 1px); filter: none; }
  100% { transform: translate(0, 0); }
}

.footer-egg {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

@media (prefers-reduced-motion: reduce) {
  .scr::before,
  .cat-eye,
  .vis-lie.is-active .lie-you {
    animation: none;
  }
  .story-vis,
  .wake-frame img {
    transition: none;
  }
}

/* No broken-image icon while the card renders (or if it can't) */
#share-preview:not([src]) {
  visibility: hidden;
}

.share-modal.render-failed .share-preview-wrap::after {
  content: "IMAGE CARD UNAVAILABLE IN THIS BROWSER";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* 01 — you made someone rich */
.rich-label,
.rich-note {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.rich-note {
  font-size: 0.6rem;
}

.rich-amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--rh-green-bright);
  text-shadow: 0 0 40px rgba(34, 255, 41, 0.35);
  font-variant-numeric: tabular-nums;
}

.rich-vs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  width: min(380px, 100%);
}

.rich-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.9rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 200, 5, 0.3);
  background: rgba(0, 200, 5, 0.06);
  font-family: var(--font-mono);
}

.rich-col span {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.rich-col b {
  font-size: 1rem;
  color: var(--rh-green-bright);
}

.rich-you {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}

.rich-you b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--feather-red);
}

.vis-rich.is-active .rich-you b {
  animation: youBlink 1.2s steps(2, end) infinite;
}

@keyframes youBlink {
  50% { opacity: 0.25; }
}

.chapter-money {
  color: var(--rh-green-bright);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 860px) {
  .rich-amount {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }
  .rich-vs {
    gap: 0.5rem;
  }
  .rich-col {
    padding: 0.5rem;
  }
  .rich-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vis-rich.is-active .rich-you b {
    animation: none;
  }
}
