/* ========================================================================
   $MANHOOD — Robin Hood on Robin Hood Chain
   Design: neon-green outlaw / cyberpunk street / dark mode only
   ======================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem;
  --radius-xl: 1rem; --radius-full: 9999px;

  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Bungee', 'Impact', system-ui, sans-serif;
  --font-mono:    'VT323', 'IBM Plex Mono', ui-monospace, monospace;
  --font-body:    'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Palette — MANHOOD neon */
  --color-bg:            #060a06;    /* near-black with a green whisper */
  --color-surface:       #0c110c;
  --color-surface-2:     #121812;
  --color-surface-3:     #1a221a;
  --color-border:        #24322a;
  --color-divider:       #182118;

  --color-text:          #e8ffe6;
  --color-text-muted:    #8fb08a;
  --color-text-faint:    #536253;

  /* Signature neon green from the mascot */
  --color-primary:       #39ff14;
  --color-primary-glow:  #4dff2b;
  --color-primary-deep:  #16b407;
  --color-primary-ink:   #062a04;

  /* Feather red / arrow accent */
  --color-accent:        #ff3b30;
  --color-accent-glow:   #ff6a5c;

  /* Content widths */
  --content-narrow: 720px;
  --content-default: 1080px;
  --content-wide: 1240px;
}

/* ---- BASE RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-16);
}
body {
  min-height: 100dvh;
  line-height: 1.6;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(57,255,20,0.10), transparent 60%),
    radial-gradient(900px 500px at 10% 30%, rgba(57,255,20,0.06), transparent 60%),
    linear-gradient(180deg, #060a06 0%, #050805 100%);
  overflow-x: hidden;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.05; font-family: var(--font-display); letter-spacing: 0.01em; }
p { text-wrap: pretty; max-width: 68ch; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--color-primary); color: var(--color-primary-ink); }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; border-radius: var(--radius-sm); }

/* Interactive transitions */
a, button, [role="button"] {
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}

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

/* ---- CRT / scanlines overlay ---- */
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.14) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
  opacity: 0.55;
}
.crt::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* ---- LAYOUT ---- */
.container {
  width: min(100% - 2rem, var(--content-wide));
  margin-inline: auto;
  position: relative; z-index: 2;
}
.section {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
  position: relative;
  z-index: 2;
  scroll-margin-top: 96px;
}
.army { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
.section__head { margin-bottom: var(--space-12); max-width: 780px; }
.section__title {
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-top: var(--space-3);
  text-transform: uppercase;
}
.section__title em { color: var(--color-primary); font-style: normal; }
.section__lede {
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  font-size: var(--text-lg);
  max-width: 60ch;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary), 0 0 24px var(--color-primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  white-space: nowrap;
  max-width: 100%;
}
.btn--sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
.btn--primary {
  background: var(--color-primary);
  color: var(--color-primary-ink);
  box-shadow: 0 0 0 0 rgba(57,255,20,0.5), 0 8px 24px -8px rgba(57,255,20,0.6);
  border-color: var(--color-primary-glow);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(57,255,20,0.55), 0 12px 32px -8px rgba(57,255,20,0.75);
  background: var(--color-primary-glow);
}
.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--ghost:hover {
  background: rgba(57,255,20,0.08);
  box-shadow: 0 0 18px rgba(57,255,20,0.25);
}

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--space-6);
  padding: var(--space-4) clamp(var(--space-4), 3vw, var(--space-8));
  background: rgba(6,10,6,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
}
.nav__logo {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: var(--text-lg);
  letter-spacing: 0.05em;
}
.nav__logo svg { color: var(--color-primary); filter: drop-shadow(0 0 6px rgba(57,255,20,0.6)); }
.nav__links {
  display: flex; gap: var(--space-6);
  margin-left: auto; margin-right: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav__links a { color: var(--color-text-muted); }
.nav__links a:hover { color: var(--color-primary); }
.nav__cta { font-size: var(--text-sm); padding: var(--space-2) var(--space-4); }
@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__cta { margin-left: auto; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: clamp(var(--space-8), 6vw, var(--space-16)) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(57,255,20,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57,255,20,0.10) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 75%);
}
.hero__glow {
  position: absolute; z-index: 0;
  width: 60vw; height: 60vw; max-width: 900px; max-height: 900px;
  right: -10vw; top: 10%;
  background: radial-gradient(circle, rgba(57,255,20,0.28), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 2;
  width: min(100% - 2rem, var(--content-wide));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(var(--space-8), 5vw, var(--space-16));
  align-items: center;
  padding-bottom: var(--space-16);
}
.hero__copy { min-width: 0; }
.hero__art  { min-width: 0; }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1fr); }
}
.hero__title {
  font-size: clamp(2.75rem, 1rem + 6.5vw, 6.5rem);
  line-height: 0.94;
  text-transform: uppercase;
  margin-top: var(--space-5);
  color: var(--color-text);
  text-shadow: 0 0 30px rgba(57,255,20,0.2);
  overflow-wrap: break-word;
  word-break: normal;
}
.hero__title--accent {
  color: var(--color-primary);
  text-shadow:
    0 0 8px rgba(57,255,20,0.5),
    0 0 24px rgba(57,255,20,0.35),
    0 0 48px rgba(57,255,20,0.25);
}
.hero__sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
}
.hero__sub strong { color: var(--color-primary); font-weight: 700; }
.hero__cta {
  display: flex; gap: var(--space-3); flex-wrap: wrap;
  margin-top: var(--space-8);
}
@media (max-width: 640px) {
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; font-size: var(--text-sm); }
}
.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-10);
  padding: var(--space-4);
  background: rgba(12,17,12,0.7);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(6px);
}
@media (max-width: 640px) { .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hero__stats li {
  display: flex; flex-direction: column; gap: 2px;
  padding: var(--space-2) var(--space-3);
  border-right: 1px solid var(--color-divider);
}
.hero__stats li:last-child { border-right: none; }
@media (max-width: 640px) {
  .hero__stats li:nth-child(2) { border-right: none; }
}
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.stat__value {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.stat__value.up { color: var(--color-primary-glow); }
.stat__value.down { color: var(--color-accent); }
.hero__stats-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-3);
  letter-spacing: 0.06em;
}

/* Hero art */
.hero__art { position: relative; }
.hero__mascot {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1.5px solid var(--color-primary);
  background: #000;
  box-shadow:
    0 0 0 6px rgba(57,255,20,0.08),
    0 0 40px rgba(57,255,20,0.35),
    0 30px 80px -20px rgba(0,0,0,0.8);
  animation: floaty 6s ease-in-out infinite;
}
.hero__mascot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.05) saturate(1.1);
}
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
.hero__contract {
  margin-top: var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface-2);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  overflow: hidden;
}
.hero__contract-label {
  color: var(--color-primary);
  letter-spacing: 0.15em;
}
.hero__contract code {
  color: var(--color-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; font-size: var(--text-sm);
}
.copy {
  color: var(--color-primary);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
}
.copy:hover { color: var(--color-primary-glow); transform: scale(1.1); }
.copy.copied { color: var(--color-primary-glow); }

/* Ticker */
.ticker {
  position: relative; z-index: 2;
  overflow: hidden;
  border-block: 1.5px solid var(--color-primary);
  background: var(--color-primary-ink);
  padding: var(--space-3) 0;
}
.ticker__track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-primary);
  letter-spacing: 0.15em;
  will-change: transform;
}
.ticker__track span {
  padding-inline: 0;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---- LORE ---- */
.defn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-6), 3vw, var(--space-10));
  max-width: var(--content-narrow);
  margin-bottom: var(--space-16);
}
.defn__list { list-style: none; display: grid; gap: var(--space-4); }
.defn__list li {
  font-size: var(--text-base);
  color: var(--color-text);
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  max-width: none;
}
.defn__list li > span:last-child { flex: 1; }
.defn__list em { color: var(--color-text-muted); font-style: italic; }
.defn__n {
  font-family: var(--font-mono);
  color: var(--color-primary);
  font-size: var(--text-base);
  min-width: 1.5rem;
}
.defn__cite {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-divider);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.defn__cite a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }

.lore__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 900px) { .lore__grid { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-interactive), border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(57,255,20,0.08), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-interactive);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--color-primary); box-shadow: 0 20px 40px -20px rgba(57,255,20,0.35); }
.card:hover::before { opacity: 1; }
.card__num {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.card h3 {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
}
.card p { color: var(--color-text-muted); font-size: var(--text-base); }

/* ---- ARMY FULL-BLEED ---- */
.army {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  max-height: 720px;
  overflow: hidden;
  border-block: 1px solid var(--color-border);
}
.army picture {
  display: block;
  width: 100%;
  height: 100%;
}
.army img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.15) contrast(1.08) brightness(0.95);
}
.army::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,10,6,0.85) 0%, transparent 25%, transparent 70%, rgba(6,10,6,0.9) 100%);
  pointer-events: none;
  z-index: 1;
}
.army__caption {
  position: absolute;
  left: clamp(var(--space-4), 5vw, var(--space-16));
  bottom: clamp(var(--space-6), 5vw, var(--space-16));
  padding: var(--space-6);
  background: rgba(6,10,6,0.72);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-lg);
  max-width: 480px;
  z-index: 2;
}
.army__caption p {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-transform: uppercase;
  margin-top: var(--space-3);
}
.army__caption strong { color: var(--color-primary); }

/* ---- CHART ---- */
.chart__frame {
  position: relative;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
  box-shadow: 0 20px 60px -20px rgba(57,255,20,0.4);
}
.chart__frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
@media (max-width: 640px) {
  .chart__frame { aspect-ratio: 4 / 5; }
}
.chart__foot { margin-top: var(--space-6); text-align: center; }

/* ---- TOKENOMICS ---- */
.tok__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 900px) { .tok__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tok__grid { grid-template-columns: minmax(0, 1fr); } }
.tok {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.tok::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.6;
}
.tok__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.tok__value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: var(--space-3);
  line-height: 1;
}
.tok__note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ---- STEPS ---- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 720px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}
.step:hover { border-color: var(--color-primary); transform: translateY(-2px); }
.step__n {
  position: absolute;
  top: var(--space-3); right: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--color-primary);
  opacity: 0.35;
  line-height: 1;
}
.step h3 {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-3);
  text-transform: uppercase;
  max-width: calc(100% - 60px);
}
.step p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.step .btn { margin-top: 0; }

/* ---- QUIVER GAME ---- */
.quiver__box {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: stretch;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-4), 3vw, var(--space-8));
}
@media (max-width: 840px) { .quiver__box { grid-template-columns: minmax(0, 1fr); } }
.quiver__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(57,255,20,0.14), transparent 60%),
    linear-gradient(180deg, #030603, #0a0e0a);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}
.quiver__stage::before {
  /* street grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(57,255,20,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57,255,20,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(600px) rotateX(60deg) translateZ(0);
  transform-origin: 50% 100%;
  opacity: 0.7;
}
.target {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 30%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 0 24px rgba(57,255,20,0.5);
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 150ms ease, box-shadow 200ms ease;
  will-change: transform;
}
.target img { width: 100%; height: 100%; object-fit: cover; }
@keyframes nutGrow {
  0%   { filter: brightness(1) saturate(1); }
  40%  { filter: brightness(1.9) saturate(1.8) drop-shadow(0 0 20px var(--color-primary)); }
  100% { filter: brightness(1) saturate(1); }
}
@keyframes nutShrink {
  0%   { filter: brightness(1) saturate(1); }
  30%  { filter: brightness(0.7) saturate(1.4) hue-rotate(-40deg) drop-shadow(0 0 16px var(--color-accent)); }
  100% { filter: brightness(1) saturate(1); }
}
.target.grow   { animation: nutGrow 380ms ease-out; }
.target.shrink { animation: nutShrink 380ms ease-out; }

.spark--red { background: var(--color-accent); box-shadow: 0 0 12px var(--color-accent); }

.btn--sell {
  width: 100%;
  justify-content: center;
  color: var(--color-accent);
  border-color: rgba(255,59,48,0.4);
}
.btn--sell:hover {
  background: rgba(255,59,48,0.12);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.rank-toast {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 10px 18px;
  background: rgba(6,10,6,0.9);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-display, 'Bungee', sans-serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 24px rgba(57,255,20,0.6);
  opacity: 0;
  transition: opacity 240ms ease, transform 240ms ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 3;
}
.rank-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.arrow {
  position: absolute;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-glow) 70%, var(--color-accent) 100%);
  box-shadow: 0 0 12px rgba(57,255,20,0.7);
  border-radius: 2px;
  pointer-events: none;
  transform-origin: left center;
}
.arrow::after {
  content: "";
  position: absolute;
  right: -10px; top: -6px;
  width: 0; height: 0;
  border-left: 12px solid var(--color-accent);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.arrow::before {
  content: "";
  position: absolute;
  left: -10px; top: -4px;
  width: 0; height: 0;
  border-right: 12px solid var(--color-accent);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.spark {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 12px var(--color-primary);
}

.quiver__ui {
  display: flex; flex-direction: column;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
}
.btn--fire {
  width: 100%;
  justify-content: center;
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-lg);
}
.quiver__stats {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: 0;
}
.quiver__stats > div {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-4);
}
.quiver__stats dt {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.quiver__stats dd {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-primary);
}
.quiver__tip {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  text-align: center;
}

/* ---- HERO PLAY CTA CARD ---- */
.hero__play {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, rgba(57,255,20,0.15), rgba(57,255,20,0.03));
  color: var(--color-text);
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(57,255,20,0.15), 0 12px 40px -20px rgba(57,255,20,0.4);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.hero__play:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, rgba(57,255,20,0.28), rgba(57,255,20,0.08));
  box-shadow: 0 0 0 1px rgba(57,255,20,0.35), 0 20px 50px -20px rgba(57,255,20,0.6);
}
.hero__play-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #060a06;
  font-size: 1.4rem;
  font-family: var(--font-display);
  box-shadow: 0 0 20px rgba(57,255,20,0.6);
}
.hero__play-text { display: flex; flex-direction: column; min-width: 0; }
.hero__play-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  text-transform: uppercase;
}
.hero__play-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  text-transform: uppercase;
}
.hero__play-sub {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  margin-top: 2px;
}

/* Nav: emphasize the game link */
.nav__game {
  color: var(--color-primary) !important;
  font-weight: 700;
}

/* ---- PLAY TEASER SECTION ---- */
.play-teaser {
  background: linear-gradient(180deg, transparent, rgba(57,255,20,0.04));
  border-top: 1px dashed rgba(57,255,20,0.15);
  border-bottom: 1px dashed rgba(57,255,20,0.15);
}
.play-teaser__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(var(--space-6), 5vw, var(--space-12));
  align-items: center;
}
@media (max-width: 900px) {
  .play-teaser__inner { grid-template-columns: minmax(0, 1fr); }
}
.play-teaser__copy .btn {
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-lg);
}
.play-teaser__ranks {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-2) var(--space-3);
  padding: var(--space-6);
  border: 1.5px solid rgba(57,255,20,0.35);
  border-radius: var(--radius-lg);
  background: rgba(6,10,6,0.6);
}
.play-teaser__ranks .rank {
  font-family: var(--font-display);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(57,255,20,0.35);
  color: var(--color-primary);
  letter-spacing: 0.06em;
  font-size: clamp(0.7rem, 1.6vw, 0.95rem);
  text-transform: uppercase;
}
.play-teaser__ranks .rank--6 {
  border-color: var(--color-primary);
  background: rgba(57,255,20,0.15);
  box-shadow: 0 0 20px rgba(57,255,20,0.4);
}
.play-teaser__ranks .rank__arrow {
  color: var(--color-text-faint);
  font-family: var(--font-mono);
}

/* ---- CLICKER PAGE ---- */
.page--clicker { background: var(--color-bg); }
.clicker {
  position: relative;
  min-height: calc(100vh - 80px);
  padding: clamp(var(--space-6), 4vw, var(--space-12)) 0 var(--space-12);
  overflow: hidden;
}
.clicker__inner {
  position: relative; z-index: 2;
  width: min(100% - 2rem, var(--content-wide));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(var(--space-6), 3vw, var(--space-8));
}
.clicker__back {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-text-faint);
  text-decoration: none;
  margin-bottom: var(--space-3);
}
.clicker__back:hover { color: var(--color-primary); }
.clicker__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
  margin: var(--space-3) 0 var(--space-4);
  color: var(--color-text);
  text-shadow: 0 0 30px rgba(57,255,20,0.2);
}
.clicker__lede {
  color: var(--color-text-faint);
  max-width: 60ch;
  line-height: 1.6;
}
.nutometer__box--full {
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(6,10,6,0.9), rgba(6,10,6,0.7));
  padding: clamp(var(--space-4), 3vw, var(--space-6));
  box-shadow: 0 0 0 1px rgba(57,255,20,0.15), 0 20px 60px -20px rgba(57,255,20,0.35);
}
.clicker__stats {
  padding: var(--space-4);
  border: 1px dashed rgba(57,255,20,0.25);
  border-radius: var(--radius-md);
  background: rgba(6,10,6,0.5);
}
.clicker__foot {
  display: flex; gap: var(--space-3); justify-content: space-between; flex-wrap: wrap;
  padding-top: var(--space-4);
  border-top: 1px dashed rgba(57,255,20,0.15);
}

/* ---- HERO CLICK-O-NUT PANEL ---- */
.hero__game {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: clamp(var(--space-3), 2vw, var(--space-5));
  background: linear-gradient(180deg, rgba(6,10,6,0.85), rgba(6,10,6,0.6));
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(57,255,20,0.15),
    0 20px 60px -20px rgba(57,255,20,0.35),
    inset 0 0 40px rgba(57,255,20,0.08);
  min-width: 0;
}
.hero__game-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  padding-bottom: var(--space-2);
  border-bottom: 1px dashed rgba(57,255,20,0.25);
}
.hero__game-head .nutometer__rank-row {
  border-bottom: none;
  padding-bottom: 0;
  gap: var(--space-2);
}
.hero__game-head .nutometer__rank-value {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}
.eyebrow--tight { margin: 0; }

/* Stage sized for the hero — a bit shorter than the standalone version */
.hero__game .nutometer__stage {
  aspect-ratio: 5 / 4;
  min-height: 260px;
}

/* Compact stats grid inside the hero panel */
.nutometer__stats--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: var(--space-3);
  gap: var(--space-2) var(--space-3);
}
@media (max-width: 520px) {
  .nutometer__stats--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.nutometer__stats--compact dt { font-size: 0.6rem; }
.nutometer__stats--compact dd { font-size: 1rem; }

/* Contract card inside the hero game panel */
.hero__game .hero__contract {
  margin: 0;
}

/* Actions inside hero — 3 columns on wider hero panel */
.hero__game .nutometer__actions {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.hero__game .nutometer__actions .btn--fire {
  grid-column: 1 / -1;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
}

/* Note styling within hero */
.hero__game .nutometer__note {
  text-align: center;
  font-size: 0.8rem;
  margin: 0;
  padding-top: var(--space-2);
  border-top: 1px dashed rgba(57,255,20,0.15);
}

/* Hide old bar label text on tight hero panel to prevent wrap */
.hero__game .nutometer__bar-labels { font-size: 0.55rem; }
@media (max-width: 480px) {
  .hero__game .nutometer__bar-labels span:nth-child(2),
  .hero__game .nutometer__bar-labels span:nth-child(4) { display: none; }
}

/* Legacy mobile rules (game no longer in hero, but kept for scoped selector safety) */
@media (max-width: 900px) {
  .hero__game .nutometer__stage { min-height: 260px; }
}

/* ---- CLICK-O-NUT ---- */
.nutometer__box {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--space-4), 3vw, var(--space-8));
}
@media (max-width: 840px) { .nutometer__box { grid-template-columns: minmax(0, 1fr); } }

.nutometer__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(57,255,20,0.18), transparent 60%),
    linear-gradient(180deg, #030603, #0a0e0a);
  border: 1px dashed var(--color-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.nutometer__stage:focus-visible { box-shadow: 0 0 0 3px rgba(57,255,20,0.55); }
.nutometer__stage::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(57,255,20,0.10) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(57,255,20,0.10) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(600px) rotateX(60deg) translateZ(0);
  transform-origin: 50% 100%;
  opacity: 0.7;
  pointer-events: none;
}

.nut-glow {
  position: absolute;
  left: 50%; top: 55%;
  width: 55%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(57,255,20,0.6) 0%, rgba(57,255,20,0.15) 40%, transparent 70%);
  opacity: 0.35;
  filter: blur(30px);
  pointer-events: none;
  transition: opacity 400ms ease, filter 400ms ease;
  z-index: 0;
}

.sack-svg {
  position: absolute;
  left: 50%; top: 50%;
  width: 78%; height: 78%;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: 50% 50%;
  transition: transform 260ms cubic-bezier(0.34, 1.4, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}
.sack-svg { transform: translate(-50%, -50%) scale(var(--sack-scale, 1)); }

/* keyframe pulses on click */
@keyframes sackGrow {
  0%   { filter: brightness(1) saturate(1); }
  40%  { filter: brightness(1.9) saturate(1.6) drop-shadow(0 0 22px var(--color-primary)); }
  100% { filter: brightness(1) saturate(1); }
}
@keyframes sackShrink {
  0%   { filter: brightness(1) saturate(1); }
  30%  { filter: brightness(0.65) saturate(1.5) hue-rotate(-40deg) drop-shadow(0 0 16px var(--color-accent)); }
  100% { filter: brightness(1) saturate(1); }
}
.sack-svg.grow-pulse { animation: sackGrow 320ms ease-out; }
.sack-svg.shrink-pulse { animation: sackShrink 380ms ease-out; }

.nut-hint {
  position: absolute;
  left: 50%; bottom: 8%;
  transform: translateX(-50%);
  font-family: var(--font-display, 'Bungee', sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  background: rgba(6,10,6,0.7);
  padding: 6px 12px;
  border: 1px solid rgba(57,255,20,0.4);
  border-radius: var(--radius-sm);
  transition: opacity 400ms ease;
  pointer-events: none;
  z-index: 2;
  animation: nutHintPulse 1600ms ease-in-out infinite;
}
@keyframes nutHintPulse {
  0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.9; }
  50%      { transform: translateX(-50%) scale(1.05); opacity: 1; }
}

.nut-pop {
  position: absolute;
  transform: translate(-50%, -50%);
  font-family: var(--font-display, 'Bungee', sans-serif);
  font-size: 1.6rem;
  color: var(--color-primary);
  text-shadow: 0 0 12px rgba(57,255,20,0.8);
  pointer-events: none;
  animation: nutPopUp 850ms ease-out forwards;
  z-index: 3;
}
.nut-pop--red { color: var(--color-accent); text-shadow: 0 0 12px rgba(255,59,48,0.8); }
@keyframes nutPopUp {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  20%  { opacity: 1; transform: translate(-50%, -60%) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -140%) scale(1); }
}

.nutometer__ui {
  display: flex; flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
}
.nutometer__rank-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-3);
}
.nutometer__rank-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.nutometer__rank-value {
  font-family: var(--font-display, 'Bungee', sans-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--color-primary);
  text-shadow: 0 0 12px rgba(57,255,20,0.6);
  letter-spacing: 0.04em;
}

.nutometer__bar-wrap { display: flex; flex-direction: column; gap: var(--space-2); }
.nutometer__bar {
  position: relative;
  height: 12px;
  background: rgba(57,255,20,0.08);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  overflow: hidden;
}
.nutometer__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0a5c1e, var(--color-primary), #b8ff9c);
  box-shadow: 0 0 12px rgba(57,255,20,0.7);
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nutometer__bar-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--color-text-faint);
  text-transform: uppercase;
}

.nutometer__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
}
.nutometer__actions .btn--fire { grid-column: 1 / -1; }
.nutometer__actions .btn--sm { padding: var(--space-3) var(--space-4); }
@media (min-width: 520px) {
  .nutometer__actions { grid-template-columns: 1fr 1fr; }
  .nutometer__actions .btn--fire { grid-column: 1 / -1; }
}

.nutometer__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: 0;
}
.nutometer__stats > div {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.nutometer__stats dt {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.nutometer__stats dd {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--color-primary);
  margin: 0;
  overflow-wrap: anywhere;
}
.nutometer__note {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}
.nutometer__note strong { color: var(--color-primary); }
.nutometer__debug {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-faint);
  border-top: 1px dashed var(--color-border);
  padding-top: var(--space-3);
}
.nutometer__debug summary {
  cursor: pointer;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.nutometer__debug p { margin-top: var(--space-2); line-height: 1.5; }

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid var(--color-border);
  background:
    linear-gradient(180deg, transparent, rgba(57,255,20,0.04)),
    var(--color-bg);
  padding-block: var(--space-16);
  margin-top: var(--space-16);
  position: relative; z-index: 2;
}
.footer__inner { display: grid; gap: var(--space-8); }
.footer__brand {
  display: flex; align-items: center; gap: var(--space-4);
  color: var(--color-primary);
}
.footer__brand svg { filter: drop-shadow(0 0 8px rgba(57,255,20,0.5)); }
.footer__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  letter-spacing: 0.05em;
}
.footer__tag {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer__nav {
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-block: var(--space-4);
  border-block: 1px solid var(--color-divider);
}
.footer__nav a { color: var(--color-text-muted); }
.footer__nav a:hover { color: var(--color-primary); }
.footer__disclaimer {
  font-size: var(--text-sm);
  color: var(--color-text-faint);
  max-width: 72ch;
}
.footer__mini {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
