/* ===================================================================
   PAWMIES — DESIGN BIBLE v0 (shiro, msg 19097)
   TWO COLORS ONLY. No third color, no gradients. Depth = dithering.
   =================================================================== */
:root {
  --lime: #ccff03;   /* bg / ground */
  --ink:  #10a406;   /* everything drawn: text, art, borders, UI */
  --px: 4px;         /* base pixel unit for the grid feel */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--lime);
  color: var(--ink);
  font-family: 'Silkscreen', monospace;
  font-weight: 700;                 /* crisper green-on-lime body (shiro P1.3) */
  line-height: 1.6;
  overflow-x: hidden;
  image-rendering: pixelated;
  /* subtle 2-color dither ground — sparser so it whispers (shiro P3, ~30% less) */
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 22px 22px;
}
/* dither lives in EMPTY zones only — text blocks carve a solid-lime clear-zone
   (shiro P1.1) via the .clearzone helper below. */
.clearzone { background: var(--lime); }

#particles {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
}

/* ---------- pixel type: TWO FONTS ONLY (shiro P2.5) ----------
   display = Press Start 2P, body = Silkscreen. No third face anywhere. */
.logo, .brand, .h2, .stat-num, .btn, .cab-title {
  font-family: 'Press Start 2P', monospace;
  font-weight: 400;   /* PS2P has a single weight; keeps it from faux-bolding */
  /* PS2P wide glyphs (W/M) + the ink text-shadow collide with no tracking
     (clint: "w and m are overlapping"). Scales with size so titles never merge. */
  letter-spacing: 0.12em;
}
/* PS2P is a caps face — mixed-case renders soft (reads as a "different" font).
   Uppercase all display type so it's crisp + consistent with the logo (shiro P2.5). */
.h2, .cab-title { text-transform: uppercase; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: var(--lime);
  border-bottom: var(--px) solid var(--ink);
}
.brand { font-size: 18px; text-decoration: none; color: var(--ink); }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 13px; }
.nav a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
/* Mint = loudest thing in the nav; FIX ink-on-ink (shiro P1.2): lime text on ink */
.nav .btn { color: var(--lime); }
.nav .btn:hover { color: var(--ink); }

/* ---------- buttons: blocky, invert on hover, pixel-step ---------- */
.btn {
  display: inline-block; cursor: pointer;
  font-size: 12px; text-transform: uppercase; text-decoration: none;
  color: var(--lime); background: var(--ink);
  border: var(--px) solid var(--ink);
  padding: 14px 22px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: none; /* pixel-grid feel: no smooth easing */
}
.btn:hover { color: var(--ink); background: var(--lime); box-shadow: 2px 2px 0 var(--ink); transform: translate(4px, 4px); }
.btn:active { transform: translate(6px, 6px); box-shadow: 0 0 0 var(--ink); }
.btn-ghost { color: var(--ink); background: var(--lime); }
.btn-ghost:hover { color: var(--lime); background: var(--ink); }
.btn-mini { padding: 8px 12px; font-size: 10px; box-shadow: 3px 3px 0 var(--ink); }
.btn-lg { font-size: 16px; padding: 18px 32px; }
/* no "gray disabled" in a 2-color system (shiro P2.4): outline-only + crisp ink
   label, dither-filled interior, NO opacity fade. */
.btn[disabled] {
  cursor: not-allowed; color: var(--ink); background: var(--lime);
  border: var(--px) solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 8px 8px;
}
.btn[disabled]:hover { transform: none; box-shadow: 6px 6px 0 var(--ink); color: var(--ink); background-color: var(--lime); }
/* anchor-based disabled (Mint-on-OpenSea link before drop): same dither, no nav */
.btn[aria-disabled="true"] {
  cursor: not-allowed; color: var(--ink); background: var(--lime);
  border: var(--px) solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  background-image: radial-gradient(var(--ink) 1px, transparent 1px);
  background-size: 8px 8px; pointer-events: none;
}

/* ---------- hero ---------- */
.hero { padding: 70px 20px 30px; text-align: center; }
.hero-inner { max-width: 820px; margin: 0 auto; }
.logo {
  font-size: clamp(38px, 9vw, 84px); line-height: 1.3;
  text-shadow: 6px 6px 0 var(--ink), 12px 12px 0 rgba(16,164,6,0.25);
}
.tagline { font-size: clamp(15px, 2.4vw, 20px); margin: 22px 0 8px; background: var(--lime); display: inline-block; padding: 8px 14px; }
.flex {
  display: inline-block; margin-top: 10px; padding: 8px 14px;
  border: 3px solid var(--ink); font-weight: 700; font-size: 13px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- minted marquee ---------- */
.marquee {
  margin-top: 54px; overflow: hidden; border-top: var(--px) solid var(--ink);
  border-bottom: var(--px) solid var(--ink); padding: 12px 0; background: var(--lime);
}
.marquee-track { display: flex; gap: 18px; width: max-content; animation: scroll-x 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img {
  width: 72px; height: 72px; image-rendering: pixelated;
  border: 3px solid var(--ink);
}
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  max-width: 900px; margin: 60px auto; padding: 0 20px;
}
.stat { text-align: center; border: var(--px) solid var(--ink); padding: 22px 8px; }
.stat-num { display: block; font-size: clamp(20px, 4vw, 34px); }
.stat-label { display: block; margin-top: 10px; font-size: 12px; text-transform: uppercase; }

/* ---------- story ---------- */
.story { max-width: 760px; margin: 0 auto 70px; padding: 0 20px; text-align: center; }
/* clear-zone: solid lime behind headers/copy so dither only lives in the gaps */
.h2 {
  display: inline-block; font-size: clamp(18px, 3.4vw, 26px); line-height: 1.4;
  margin-bottom: 22px; background: var(--lime); padding: 10px 16px;
}
.story p { font-size: 17px; background: var(--lime); padding: 12px 16px; display: inline-block; }
code { background: var(--ink); color: var(--lime); padding: 2px 6px; }
.chip { display: inline-block; padding: 2px 8px; border: 2px solid var(--ink); font-size: 12px; }
.chip-bg { background: var(--lime); color: var(--ink); }
.chip-ink { background: var(--ink); color: var(--lime); }

/* ---------- arcade cabinets ---------- */
.arcade { max-width: 1100px; margin: 0 auto 80px; padding: 0 20px; text-align: center; }
.cabinets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-top: 30px; }
.cab {
  border: var(--px) solid var(--ink); background: var(--lime);
  padding: 18px 14px 20px; cursor: pointer; text-decoration: none; color: var(--ink);
  box-shadow: 8px 8px 0 var(--ink); display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cab:hover { transform: translate(4px, 4px); box-shadow: 4px 4px 0 var(--ink); }
.cab-screen {
  width: 100%; aspect-ratio: 1; border: 3px solid var(--ink);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cab-screen img { width: 64px; height: 64px; image-rendering: pixelated; }
.cab-title { font-family: 'Press Start 2P', monospace; font-size: 11px; }
.cab-desc { font-size: 12px; }
.cab-soon { font-size: 10px; border: 2px solid var(--ink); padding: 2px 6px; text-transform: uppercase; }

/* ---------- mint / footer ---------- */
.mint { text-align: center; margin: 0 auto 90px; padding: 0 20px; }
.mint-note { display: inline-block; margin: 12px 0 24px; font-size: 16px; background: var(--lime); padding: 10px 16px; }
.footer {
  border-top: var(--px) solid var(--ink); padding: 22px 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px;
}
.footer-dim { opacity: 0.7; }

/* ---------- idle pawmie bob (stepped, not smooth) ---------- */
.bob { animation: bob-step 0.9s steps(2) infinite; }
@keyframes bob-step { 0% { transform: translateY(0); } 50% { transform: translateY(-4px); } 100% { transform: translateY(0); } }

@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav a:not(.btn) { display: none; }
}

/* ---------- collection grid (all 87 species bases, on-chain art) ---------- */
.collection { padding: 40px 20px 20px; max-width: 1120px; margin: 0 auto; text-align: center; }
.coll-note { margin: 8px 0 22px; font-size: 12px; }
.coll-note #collCount { color: var(--ink); background: var(--lime); }
.coll-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
}
.coll-cell {
  background: var(--lime);
  border: var(--px) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 6px 6px 4px;
}
.coll-cell img {
  width: 100%; height: auto; display: block;
  image-rendering: pixelated;                 /* crisp upscale of the 48x48 base */
}
.coll-cell figcaption {
  font-size: 8px; margin-top: 4px; text-transform: uppercase; letter-spacing: 0;
  line-height: 1.25; white-space: normal; word-break: break-word;   /* long names wrap, never clip */
}
.coll-cell:hover { box-shadow: 2px 2px 0 var(--ink); transform: translate(2px, 2px); }
