/* =====================================================================
   FIVE — bold / clean / alive
   Palette: ink, electric lime, cream, coral. Type: Archivo (wdth axis)
   for display + body, Azeret Mono for numbers.
   ===================================================================== */

:root {
  --ink: #0C0C0C;
  --ink-2: #1A1A17;
  --lime: #C8FF2F;
  --lime-deep: #A6D900;
  --cream: #F4EFE3;
  --cream-2: #E7E0CC;
  --coral: #FF4D2E;
  --white: #FFFFFF;
  --up: #1E9B3B;
  --down: #E0361B;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 24px;
  --bw: 3px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 8px 8px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
/* ?static dev flag (fx.js): finish every keyframe animation instantly so screenshots show final states */
.static *, .static *::before, .static *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
/* Lenis smooth scroll (fx.js) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
#progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--coral); transform: scaleX(0); transform-origin: 0 50%; z-index: 60; pointer-events: none; }
/* split-word wrappers for masked heading reveals */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .07em 0; margin-bottom: -.07em; }
.w > span { display: inline-block; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-stretch: 100%;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
b, strong { font-weight: 700; }
h1, h2, h3, p, ul, ol, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(var(--max), 100% - 2.5rem); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 2.5rem); }

/* grain over everything */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .065;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------- type */
.display {
  font-weight: 900;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .9;
}
.eyebrow {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: currentColor; }
.eyebrow--lime { color: var(--lime); }
.lede { font-size: 1.15rem; max-width: 60ch; font-weight: 500; }

/* ------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.5rem;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  font-stretch: 110%;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.btn--hot { background: var(--coral); color: var(--ink); }
.btn--lime { background: var(--lime); }
.btn--ink { background: var(--ink); color: var(--white); box-shadow: 5px 5px 0 var(--lime-deep); }
.btn--ink:hover { box-shadow: 8px 8px 0 var(--lime-deep); }
.btn--ink:active { box-shadow: 1px 1px 0 var(--lime-deep); }
.btn__logo { width: 1.35em; height: 1.35em; flex: none; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.btn:hover .btn__logo { transform: rotate(-10deg) scale(1.15); }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.05rem; }
.btn--sm { padding: .55rem 1rem; font-size: .8rem; box-shadow: 3px 3px 0 var(--ink); }
.btn--sm:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn .arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateY(3px); }

/* ------------------------------------------------------ stickers */
.sticker {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 800;
  font-stretch: 110%;
  font-size: .85rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
}
.sticker--tilt { transform: rotate(-4deg); background: var(--coral); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255, 77, 46, .6); animation: pulse 1.8s infinite; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); display: inline-block; margin-right: .45rem; animation: pulse 1.8s infinite; box-shadow: 0 0 0 0 rgba(30, 155, 59, .5); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 46, .55); } 70% { box-shadow: 0 0 0 9px rgba(255, 77, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 46, 0); } }

/* ------------------------------------------ top chips + bottom dock */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 900; font-stretch: 125%; font-size: 1.35rem; letter-spacing: -.02em; text-transform: uppercase; }
.coin {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--lime); border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 900; font-stretch: 125%; font-size: 1.25rem; line-height: 1;
  transition: transform .4s var(--ease);
}
.footer__logo { flex: none; object-fit: contain; background: #000; }
.nav__brand {
  display: grid; place-items: center; width: 64px; height: 64px; padding: 4px;
  pointer-events: auto; border-radius: 18px;
  background: linear-gradient(145deg, #30352B, #10130E 75%);
  border: 1px solid rgba(200, 255, 47, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 3px 0 rgba(12, 12, 12, .8);
  transition: transform .18s var(--ease);
}
.nav__brand:hover { transform: translateY(-2px); }
.nav__brand:active { transform: translateY(1px); }
.nav__logo {
  width: 100%; height: 100%; object-fit: contain;
  -webkit-mask: url("/assets/five-logo-nav-mask.svg?v=boner-v2") center / contain no-repeat;
  mask: url("/assets/five-logo-nav-mask.svg?v=boner-v2") center / contain no-repeat;
}
.nav__brand:focus-visible, .footer__brand:focus-visible { outline: 3px solid var(--coral); outline-offset: 5px; }

/* Phosphor duotone icons: primary = currentColor, secondary layer tinted */
.ico { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.ico [opacity] { opacity: 1; fill: var(--lime); }

/* one line: logo, icon dock, buy sticker. Transparent over the hero, solid once scrolled. */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
  padding: .5rem clamp(1rem, 2.5vw, 2rem);
  pointer-events: none;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: var(--bw) solid transparent;
}
.top.is-scrolled { background: var(--cream); border-bottom-color: var(--ink); pointer-events: auto; }
.top__slot { animation: dropIn .8s var(--ease) both; }
.top__slot--right { justify-self: end; animation-delay: .15s; display: flex; align-items: center; gap: .6rem; }
.chip {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .4rem 1rem .4rem .4rem;
  background: var(--ink); color: var(--cream);
  border: var(--bw) solid var(--ink); border-radius: 999px;
  text-decoration: none;
  font-weight: 900; font-stretch: 125%; font-size: 1.15rem; letter-spacing: -.02em; text-transform: uppercase;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s var(--ease);
}
.chip:hover { transform: translateY(-2px); }
.chip--icon { padding: 0; width: 42px; height: 42px; justify-content: center; border-radius: 50%; box-shadow: none; }
.chip--icon:hover { transform: translateY(-2px) rotate(-8deg); box-shadow: none; }
.chip__logo { width: 22px; height: 22px; display: block; }
.chip__x { width: 19px; height: 19px; fill: currentColor; }
.chip--x:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

.chip--hot {
  background: var(--coral); color: var(--ink);
  font-stretch: 110%; font-size: .85rem; letter-spacing: .03em;
  padding: .55rem 1rem .55rem .75rem; white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
}
.chip--hot:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.chip--hot .ico { width: 1.35em; height: 1.35em; }
.chip--hot .ico [opacity] { fill: rgba(255, 255, 255, .75); }
.chip--hot:hover .ico { transform: translate(2px, -3px) rotate(10deg) scale(1.15); }

.dock { display: flex; justify-content: center; pointer-events: none; animation: dropIn .9s cubic-bezier(.34, 1.56, .64, 1) .25s both; }
.dock__bar {
  pointer-events: auto;
  display: flex; gap: .2rem; padding: .25rem;
  background: var(--ink);
  border: var(--bw) solid var(--ink); border-radius: 16px;
}
.dock__item {
  position: relative; width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 11px; color: var(--cream); text-decoration: none;
  transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), background .25s, color .25s;
}
.dock__item .ico { width: 22px; height: 22px; }
/* resting icons: cream lines with only a faint lime tint, so the dock reads as line icons, not filled blobs */
.dock__item { color: rgba(244, 239, 227, .88); }
.dock__item .ico [opacity] { fill: var(--lime); opacity: .22; transition: opacity .25s; }
.dock__item:hover { color: var(--cream); }
.dock__item:hover .ico [opacity] { opacity: .55; }
.dock__item:hover, .dock__item:focus-visible { transform: translateY(4px) scale(1.14); outline: none; }
.dock__item:hover:not(.is-active) { background: rgba(244, 239, 227, .12); }
.dock__item:hover .ico { transform: rotate(-10deg); }
.dock__item.is-active { background: var(--lime); color: var(--ink); }
.dock__item.is-active .ico [opacity] { fill: var(--ink); opacity: .22; }
/* plain CSS tooltip */
.dock__item::before {
  content: attr(data-label);
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translate(-50%, -4px);
  padding: .3rem .7rem; white-space: nowrap;
  background: var(--ink); color: var(--lime);
  border-radius: 8px;
  font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .3s cubic-bezier(.34, 1.56, .64, 1);
}
.dock__item:hover::before, .dock__item:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-28px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------- hero */
.hero {
  position: relative;
  background: var(--lime);
  border-bottom: var(--bw) solid var(--ink);
  overflow: hidden;
  padding: calc(clamp(3rem, 7vw, 6rem) + 84px) 0 clamp(3rem, 6vw, 5rem);
}
.hero__dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image: radial-gradient(var(--ink) 1.3px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center; position: relative; }
.hero__title { font-size: clamp(3.6rem, 10.5vw, 9.6rem); margin-bottom: 1.6rem; }
.hero__line { display: block; overflow: hidden; padding-bottom: .04em; margin-bottom: -.04em; }
.hero__line > span { display: inline-block; transform: translateY(110%); animation: rise .95s var(--ease) forwards; }
.hero__line:nth-child(1) > span { animation-delay: .05s; }
.hero__line:nth-child(2) > span { animation-delay: .15s; }
.hero__line:nth-child(3) > span { animation-delay: .25s; }
.hero__line--hollow > span {
  color: var(--cream);
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
  text-shadow: 6px 6px 0 var(--ink);
}
.hero__sub { font-size: clamp(1.05rem, 1.5vw, 1.3rem); max-width: 54ch; font-weight: 500; margin-bottom: 2rem; animation: fadeUp .8s var(--ease) .45s both; }
.hero__sub-short, .hero__explore { display: none; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; animation: fadeUp .8s var(--ease) .55s both; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; animation: fadeUp .8s var(--ease) .65s both; }
.hero__chips li { display: inline-flex; align-items: center; padding: .45rem .9rem; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .02em; background: rgba(255, 255, 255, .45); }

.hero__stage { position: relative; height: clamp(360px, 42vw, 620px); }
.px { position: absolute; inset: 0; pointer-events: none; }
.stage__dog {
  position: absolute; right: -8%; top: -3%;
  width: min(92%, 600px); height: auto;
  --r: -7deg;
  transform: rotate(var(--r));
  filter: drop-shadow(14px 18px 0 rgba(12, 12, 12, .9));
  animation: popIn .9s var(--ease) .35s both, heroFloat 4.5s ease-in-out 1.3s infinite;
  z-index: 2;
}
.stage__p {
  position: absolute; left: 0; bottom: 32%; width: 24%; height: auto; z-index: 3;
  filter: drop-shadow(8px 10px 0 rgba(12, 12, 12, .92));
  animation: popIn .9s var(--ease) .55s both, heroFloat 5s ease-in-out 1.5s infinite;
  --r: -10deg;
}
.stage__cat {
  position: absolute; right: 1%; bottom: 0; width: 28%; height: auto; z-index: 3;
  filter: drop-shadow(8px 10px 0 rgba(12, 12, 12, .92));
  animation: popIn .9s var(--ease) .65s both, heroFloat 4.8s ease-in-out 1.7s infinite;
  --r: 4deg;
}

/* pipedog is cut off at the legs, so he peeks over the top of the P (desktop) or the cat (phones);
   his float timing matches whichever hides him so the cut edge never shows. */
.stage__pipedog {
  position: absolute; left: 31%; bottom: 0; width: 24%; height: auto; z-index: 3;
  filter: drop-shadow(6px 7px 0 rgba(12, 12, 12, .9));
  animation: popIn .9s var(--ease) .75s both, heroFloat 5.4s ease-in-out 1.9s infinite;
  --r: -5deg;
}
.stage__boner {
  position: absolute; right: 0; top: 0; left: auto; width: 19.5%; height: auto; z-index: 3;
  filter: drop-shadow(5px 6px 0 rgba(12, 12, 12, .92));
  animation: popIn .9s var(--ease) .85s both, heroFloat 5.6s ease-in-out 2.1s infinite;
  --r: -9deg;
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.6) rotate(calc(var(--r, 0deg) - 12deg)); } 60% { opacity: 1; transform: scale(1.06) rotate(calc(var(--r, 0deg) + 2deg)); } to { opacity: 1; transform: scale(1) rotate(var(--r, 0deg)); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(calc(var(--r, 0deg) + 2deg)); } }
@keyframes heroFloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-28px) rotate(calc(var(--r, 0deg) + 4deg)); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes nudge { from { translate: 0 0; } to { translate: 5px 0; } }

/* -------------------------------------------------------- ticker */
.ticker {
  background: var(--ink); color: var(--lime);
  border-bottom: var(--bw) solid var(--ink);
  overflow: hidden; white-space: nowrap;
  padding: .85rem 0;
  font-family: var(--mono); font-weight: 600; font-size: .95rem;
}
.ticker__track { display: inline-flex; align-items: center; animation: marquee 50s linear infinite; will-change: transform; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.tick { display: inline-flex; align-items: center; gap: .7rem; padding: 0 1.4rem; }
.tick__sym { color: var(--white); font-family: var(--font); font-weight: 900; font-stretch: 125%; letter-spacing: .02em; }
.tick__price { color: var(--lime); }
.tick .up { color: var(--lime); }
.tick .down { color: var(--coral); }
.tick__sep { color: var(--coral); font-size: 1.1rem; }
.tick__soon { color: var(--cream-2); font-weight: 400; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ------------------------------------------------------- sections */
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section__head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section__head h2 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); margin-bottom: 1.2rem; }

/* scroll reveal */
/* .reveal / .in are hooks used by app.js (count-ups, card tilt); entrance motion lives in fx.js */

/* --------------------------------------------------------- pairs */
.pairs { background: var(--cream); }
.pairs__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2rem 1.75rem; }
.pair-card { grid-column: span 2; }
.pairs__hint { display: none; }
.pair-card:nth-child(4) { grid-column: 2 / span 2; }
.pair-card:nth-child(5) { grid-column: 4 / span 2; }
.pair-card:nth-child(2) { margin-top: 2.5rem; }
.pair-card:nth-child(5) { margin-top: 1.5rem; }

.pair-card {
  position: relative;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  --tilt: -1.2deg;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pair-card.in { transform: rotate(var(--tilt)); }
.pair-card:nth-child(even) { --tilt: 1deg; }
.pair-card.in:hover { transform: rotate(0deg) translateY(-8px); box-shadow: 12px 14px 0 var(--ink); }
.pair-card__banner { position: relative; aspect-ratio: 3 / 1.15; background: var(--ink) center / cover no-repeat; border-bottom: var(--bw) solid var(--ink); }
.pair-card__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.pair-card__pool { position: absolute; top: 12px; left: 12px; z-index: 2; padding: .3rem .65rem; background: var(--lime); border: 2px solid var(--ink); border-radius: 8px; font-family: var(--mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; }
.pair-card__body { padding: 0 1.4rem 1.4rem; }
.pair-card__avatar {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  border: var(--bw) solid var(--ink); background: var(--cream);
  margin-top: -42px; position: relative; z-index: 2;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .4s var(--ease);
}
.pair-card__avatar--contain { object-fit: contain; padding: 10px; background: var(--white); }
.pair-card:hover .pair-card__avatar { transform: rotate(-8deg) scale(1.06); }
.pair-card__title { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: .9rem; }
.pair-card__title h3 { font-weight: 900; font-stretch: 120%; font-size: 1.55rem; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.pill { display: inline-block; padding: .25rem .6rem; border: 2px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: .75rem; font-weight: 700; background: var(--cream); }
.pair-card__tagline { font-size: .92rem; color: #3f3f3a; margin-top: .55rem; min-height: 2.7em; }
.pair-card__pair { margin-top: .9rem; font-family: var(--mono); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: .45rem; padding: .55rem .8rem; background: var(--cream); border-radius: 12px; border: 2px dashed var(--ink); }
.pair-card__pair .swap { font-size: 1.05rem; color: var(--coral); }
.pair-card__price { display: flex; align-items: baseline; gap: .8rem; margin-top: 1rem; }
.price { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; transition: color .3s; }
.chg { font-family: var(--mono); font-size: .85rem; font-weight: 700; padding: .25rem .55rem; border-radius: 8px; border: 2px solid var(--ink); background: var(--cream); }
.chg.up { background: var(--lime); }
.chg.down { background: var(--coral); }
.pair-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: 1rem; }
.pair-card__stats > div { border-top: 2px solid var(--ink); padding-top: .45rem; }
.pair-card__stats dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #5a5a52; }
.pair-card__stats dd { margin: .15rem 0 0; font-family: var(--mono); font-weight: 700; font-size: .95rem; }
.pair-card__links { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: 1.1rem; font-size: .85rem; font-weight: 700; }
.pair-card__links a { text-decoration: none; border-bottom: 2px solid var(--coral); }
.pair-card__links a:hover { background: var(--lime); }

.pair-card--tba { background: var(--cream-2); border-style: dashed; }
.pair-card--tba .pair-card__banner { background: repeating-linear-gradient(-45deg, var(--cream-2) 0 14px, var(--cream) 14px 28px); display: grid; place-items: center; }
.pair-card--tba .pair-card__banner::after { display: none; }
.mystery { width: 38%; max-width: 130px; animation: float 5s ease-in-out infinite; }
.pair-card--tba .pair-card__title h3 { font-family: var(--mono); font-stretch: 100%; }
.pair-card--tba .pair-card__body { padding-top: 1.4rem; }

/* flash on price update */
@keyframes flashUp { 0% { color: var(--up); } 100% { color: inherit; } }
@keyframes flashDown { 0% { color: var(--down); } 100% { color: inherit; } }
.flash-up { animation: flashUp 1.4s ease-out; }
.flash-down { animation: flashDown 1.4s ease-out; }

/* --------------------------------------------------------- story */
.story { background: var(--ink); color: var(--cream); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); }
.story .display { color: var(--lime); }
.manifesto { display: grid; gap: clamp(1.1rem, 2.4vw, 1.8rem); }
.manifesto__line { font-size: clamp(1.25rem, 2.1vw, 1.8rem); font-weight: 600; line-height: 1.28; letter-spacing: -.01em; max-width: 36ch; }
.manifesto__line em { font-style: normal; color: var(--lime); }
.nb { white-space: nowrap; }
.story__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.story__grid > * { min-width: 0; }
.flow__svg { min-width: 0; }
.flow { position: sticky; top: 80px; }
.flow__svg svg { display: block; width: 100%; max-width: 440px; height: auto; max-height: calc(100vh - 210px); margin: 0 auto; overflow: visible; }
.flow__caption { max-width: 34ch; margin: .9rem auto 0; text-align: center; font-family: var(--mono); font-size: .78rem; line-height: 1.5; letter-spacing: .04em; color: rgba(244, 239, 227, .7); }
.flow__pipe { fill: none; stroke: rgba(244, 239, 227, .14); stroke-width: 11; stroke-linecap: round; }
.flow__fill { fill: none; stroke: var(--lime); stroke-width: 11; stroke-linecap: round; }
.flow text { font-family: var(--font); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.flow .flow__label { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .06em; fill: var(--cream); }
.flow__drop, .flow__shine { opacity: 0; }
.no-fx .flow__ring { stroke: var(--lime); }
.no-fx .flow__drop { opacity: 1; }
@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .flow { position: static; margin-top: 2.5rem; }
}

/* --------------------------------------------------------- board */
.board { background: var(--cream); position: relative; overflow: hidden; }
.board .wrap { position: relative; z-index: 1; }
/* pipedog is cut off at the legs, so he sits on the scoreboard: anchored to the card, legs tucked behind its top edge */
.score-wrap { position: relative; }
.bm--pipedog { position: absolute; right: 30%; bottom: calc(100% - 26px); width: clamp(110px, 10.5vw, 150px); z-index: 0; }
.bm--pipedog .bm__tilt { transform: rotate(3deg); }
.bm--pipedog .bm__cut { animation-duration: 5.5s; animation-delay: -1s; }
.score { position: relative; z-index: 1; border: var(--bw) solid var(--ink); border-radius: 24px; background: var(--white); box-shadow: 10px 10px 0 var(--ink); overflow: hidden; }
.score__head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .8rem 1.1rem; background: var(--lime); border-bottom: var(--bw) solid var(--ink); }
.score__live { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem .3rem .6rem; background: var(--coral); color: var(--ink); border: 2.5px solid var(--ink); border-radius: 999px; font-weight: 900; font-stretch: 110%; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; transform: rotate(-3deg); box-shadow: 3px 3px 0 var(--ink); }
.score__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); animation: pulse 1.4s infinite; }
.score__title { font-weight: 900; font-stretch: 120%; text-transform: uppercase; letter-spacing: -.01em; font-size: 1.05rem; }
.board__status { margin-left: auto; font-family: var(--mono); font-size: .76rem; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.board__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.board__status.is-error::before { background: var(--down); }
.table-wrap { overflow-x: auto; }
.board__table { width: 100%; border-collapse: collapse; min-width: 880px; font-family: var(--mono); font-size: .9rem; }
.board__table th { text-align: left; padding: .8rem 1rem; background: var(--ink); color: var(--cream); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.board__table td { padding: .9rem 1rem; border-top: 2px solid var(--cream-2); white-space: nowrap; vertical-align: middle; }
.board__table tbody tr { transition: background .2s; }
.board__table tbody tr:hover { background: var(--cream); }
.board__table tr.is-self { background: #F3FFCF; }
.board__table .rank { font-size: .78rem; color: #8a8a80; width: 2.5rem; }
.tok { display: flex; align-items: center; gap: .8rem; font-family: var(--font); }
.tok__img { width: 44px; height: 44px; border-radius: 50%; border: 2.5px solid var(--ink); object-fit: cover; background: var(--cream); flex: none; box-shadow: 2px 2px 0 var(--lime); }
.tok__img--contain { object-fit: contain; padding: 5px; background: var(--white); }
.tok__img--logo { object-fit: contain; border-radius: 8px; background: #000; }
.tok__name { font-weight: 800; font-stretch: 110%; line-height: 1.1; }
.tok__sym { font-family: var(--mono); font-size: .72rem; color: #5a5a52; }
.board__table .price { font-size: 1.05rem; font-weight: 700; }
.board__table td.up .chg-pill, .board__table td.down .chg-pill { display: inline-block; padding: .18rem .55rem; border-radius: 999px; border: 2px solid var(--ink); font-weight: 700; font-size: .8rem; color: var(--ink); }
.board__table td.up .chg-pill { background: var(--lime); }
.board__table td.down .chg-pill { background: var(--coral); }
.board__table .muted { color: #8a8a80; }
.board__table a { font-family: var(--font); font-weight: 700; font-size: .82rem; text-decoration: none; border-bottom: 2px solid var(--coral); }

/* mascots floating around the scoreboard */
.board__mascots { position: absolute; inset: 0; pointer-events: none; }
.bm { position: absolute; z-index: 0; }
.bm__tilt > img, .bm__tilt > .mystery, .bm__tilt > .bm__frame, .bm__tilt > .sticker { display: block; animation: float 6s ease-in-out infinite; }
.bm__cut { width: 100%; height: auto; filter: drop-shadow(6px 7px 0 rgba(12, 12, 12, .9)); }
.bm--smile2 .bm__cut { animation-duration: 6.5s; animation-delay: -3s; filter: drop-shadow(5px 6px 0 rgba(12, 12, 12, .9)); }
.bm--dog { right: -3%; top: 3%; width: clamp(240px, 26vw, 420px); z-index: 2; }
.bm--dog .bm__tilt { transform: rotate(-8deg); }
.bm--dog img { width: 100%; height: auto; filter: drop-shadow(8px 10px 0 rgba(12, 12, 12, .9)); animation-duration: 7s; }
.bm--p { left: 1%; top: 38%; width: clamp(90px, 9vw, 140px); }
.bm--p img { width: 100%; height: auto; filter: drop-shadow(6px 6px 0 rgba(12, 12, 12, .9)); animation-duration: 8s; animation-delay: -2s; }
.bm--smile1 .mystery { width: 100%; max-width: none; animation-duration: 5.5s; animation-delay: -1s; }
.bm--smile2 { right: 3%; bottom: 4%; width: clamp(72px, 7vw, 104px); z-index: 2; }
.bm--cat { left: 2%; bottom: 3%; width: clamp(80px, 8vw, 120px); z-index: 2; }
.bm--cat .bm__tilt { transform: rotate(6deg); }
.bm--cat img { width: 100%; height: auto; filter: drop-shadow(6px 7px 0 rgba(12, 12, 12, .9)); animation-duration: 6.5s; animation-delay: -1.5s; }
.bm--smile2 .bm__tilt { transform: rotate(-14deg); }
.bm--smile2 .mystery { width: 100%; max-width: none; animation-duration: 6.5s; animation-delay: -3s; }
.bm--badge { right: 4%; top: 36%; z-index: 2; }
.bm--badge .bm__tilt { transform: rotate(-7deg); }
.bm--badge .sticker { font-size: 1.1rem; padding: .45rem 1rem; animation-duration: 5s; animation-delay: -2.5s; }
@media (max-width: 900px) {
  /* phones + tablets: a few small mascots in the free space. Dog by the heading, P / ×5 / cat in a strip under the card. */
  .board.section { padding-bottom: 7rem; }
  .bm--pipedog, .bm--smile2 { display: none; }
  .bm--dog { right: -6px; top: 22px; width: clamp(104px, 28vw, 160px); }
  .bm--dog img { filter: drop-shadow(5px 6px 0 rgba(12, 12, 12, .9)); }
  .bm--p { left: 5%; top: auto; bottom: 18px; width: clamp(44px, 12vw, 64px); }
  .bm--p img { filter: drop-shadow(4px 4px 0 rgba(12, 12, 12, .9)); }
  .bm--cat { left: auto; right: 6%; bottom: 10px; width: clamp(60px, 16vw, 84px); }
  .bm--cat img { filter: drop-shadow(4px 5px 0 rgba(12, 12, 12, .9)); }
  .bm--badge { right: auto; left: 50%; top: auto; bottom: 34px; translate: -50% 0; }
  .bm--badge .sticker { font-size: .85rem; padding: .35rem .8rem; }
}

/* ----------------------------------------------------------- cta */
.cta { background: var(--lime); border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink); text-align: center; }
.section__head--center { margin-left: auto; margin-right: auto; max-width: 900px; }
.cta .display { font-size: clamp(2.4rem, 5.2vw, 4.6rem); }
.section__head--center .eyebrow { justify-content: center; }
.section__head--center .lede { margin-left: auto; margin-right: auto; }
.cta__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn--x { background: var(--white); }
.btn__x { width: 1.05em; height: 1.05em; flex: none; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.btn:hover .btn__x { transform: rotate(-10deg) scale(1.15); }
.contract { position: relative; margin-top: 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--ink); color: var(--cream); border-radius: 999px; padding: .7rem .7rem .7rem 1.4rem; border: var(--bw) solid var(--ink); }
.contract--center { max-width: 720px; margin-left: auto; margin-right: auto; margin-top: 2.5rem; text-align: left; }
.contract__l { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--lime); }
.contract__addr { font-family: var(--mono); font-size: .9rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contract .btn { box-shadow: 3px 3px 0 var(--lime); }

/* --------------------------------------------------- pixel parade */
.parade { --sprite: 224px; --lap: 27s; --journey: max(calc(100vw + var(--sprite)), calc(5 * (var(--sprite) + 32px))); position: relative; background: var(--cream); overflow: hidden; isolation: isolate; }
.parade__heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 42px; position: relative; z-index: 2; }
.parade__heading .eyebrow { font-size: .65rem; margin-bottom: 8px; }
.parade__heading h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 850; letter-spacing: -.045em; }
.parade__toggle { display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #c4bfaf; color: var(--ink); background: transparent; border-radius: 0; font-family: var(--mono); font-size: .65rem; cursor: pointer; transition: background .2s; }
.parade__toggle[hidden] { display: none; }
.parade__toggle:hover { background: var(--lime); }
.parade__toggle:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }
.parade__toggle-icon { width: 12px; font-size: .9rem; font-weight: 700; }
.parade__scene { position: relative; height: 300px; }
.parade__lane { position: absolute; inset: 0 0 51px; z-index: 1; mix-blend-mode: multiply; }
.walker { position: absolute; bottom: 0; left: 0; width: var(--sprite); animation: parade-cross var(--lap) linear infinite; animation-delay: calc(var(--lap) * var(--phase)); }
/* The source is 1448 × 1086, with 362px-wide frames. Tight row viewports
   exclude neighboring sprites and leave approximately 6px below the feet. */
.walker__art { width: var(--sprite); height: calc(var(--sprite) * var(--frame-height)); background-image: url('/assets/pixel-mascots/walk-atlas.png'); background-size: 400% auto; background-repeat: repeat-x; background-position: 0 var(--row); image-rendering: pixelated; animation: parade-step .64s steps(4) infinite; }
.walker--ai { --row: 0px; --frame-height: .939227; --phase: -.9; --tag: -8px; }
.walker--pons { --row: calc(var(--sprite) * .018038); --frame-height: .883978; --phase: -.7; }
.walker--cashcat { --row: calc(var(--sprite) * -.05); --frame-height: .883978; --phase: -.5; }
.walker--pipedog { --phase: -.3; --frame-height: .9; --tag: -2px; --frame-x1: -.026316; --frame-x2: -.922648; --frame-y2: -1; }
.walker--boner { --phase: -.1; --frame-height: .908; --tag: 0px; }
.walker--pipedog .walker__art { background-size: 200% auto; background-repeat: no-repeat; background-position: calc(var(--sprite) * var(--frame-x1)) 0; animation: parade-partner .88s steps(1, end) infinite; }
.walker--pipedog .walker__art { background-image: url('/assets/pixel-mascots/pipedog-walk.webp'); }
.walker--boner .walker__art { background-image: url('/assets/pixel-mascots/boner-left-step.webp'); background-size: 200% auto; background-repeat: no-repeat; background-position: 0 0; animation: parade-boner .96s steps(1, end) infinite; }
.walker--pons .walker__art { background-image: url('/assets/pixel-mascots/walk-short.png'); animation: parade-pons .72s steps(1, end) infinite; }
.walker--cashcat .walker__art { background-image: url('/assets/pixel-mascots/cashcat-right-step.png'); background-size: 220% auto; background-position: calc(var(--sprite) * -.040042) var(--row); animation: parade-cashcat .88s steps(1, end) infinite; }
.walker__name {
  position: absolute; bottom: calc(100% + var(--tag, 14px)); left: 50%; transform: translateX(-50%);
  padding: 7px 9px 6px; background: var(--cream); color: var(--ink);
  font: 400 .5rem 'Press Start 2P', var(--mono); letter-spacing: .04em; line-height: 1; white-space: nowrap;
  image-rendering: pixelated;
  /* pixel-stepped border: 3px ink outline drawn with box-shadows so the corners stay square-notched */
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink), 3px 3px 0 var(--ink), 6px 6px 0 rgba(12, 12, 12, .18);
  animation: parade-tag 1.28s steps(2, end) infinite;
}
.walker__name::after {
  content: ''; position: absolute; top: 100%; left: 50%; width: 15px; height: 9px; transform: translateX(-50%);
  background: var(--ink);
  clip-path: polygon(0 0,100% 0,100% 33%,80% 33%,80% 66%,60% 66%,60% 100%,40% 100%,40% 66%,20% 66%,20% 33%,0 33%);
}
.walker__name::before {
  content: ''; position: absolute; top: 100%; left: 50%; width: 9px; height: 3px; transform: translateX(-50%); background: var(--cream); z-index: 1;
}
@keyframes parade-tag { from { translate: 0 0; } to { translate: 0 -3px; } }
.parade__cloud { position: absolute; width: 100px; height: 32px; background: #e7e1d2; clip-path: polygon(0 65%,15% 65%,15% 35%,30% 35%,30% 0,65% 0,65% 30%,85% 30%,85% 65%,100% 65%,100% 100%,0 100%); }
.parade__cloud--one { top: 22px; left: 38%; }
.parade__cloud--two { top: 62px; right: 7%; width: 72px; height: 24px; }
.parade__spark { position: absolute; width: 20px; height: 20px; background: var(--lime-deep); clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%); }
.parade__spark--one { top: 78px; left: 8%; }
.parade__spark--two { top: 25px; left: 70%; width: 12px; height: 12px; }
.parade__hills { position: absolute; bottom: 53px; width: 100%; height: 75px; background: #e5e6d5; clip-path: polygon(0 76%,6% 76%,6% 58%,10% 58%,10% 38%,17% 38%,17% 58%,22% 58%,22% 80%,36% 80%,36% 64%,42% 64%,42% 84%,61% 84%,61% 66%,66% 66%,66% 44%,74% 44%,74% 22%,80% 22%,80% 44%,86% 44%,86% 65%,93% 65%,93% 82%,100% 82%,100% 100%,0 100%); }
.parade__ground { position: absolute; inset: auto 0 0; height: 54px; border-top: 3px solid var(--ink); background: #dedfc7; display: flex; align-items: end; justify-content: space-between; padding: 0 max(24px, calc((100vw - var(--max)) / 2)) 8px; font: 500 .55rem var(--mono); color: #62654e; letter-spacing: .04em; }
.parade__ground::before { content: ''; position: absolute; inset: 0 0 auto; height: 7px; border-top: 3px solid var(--lime); background: repeating-linear-gradient(90deg, #a8ad86 0 5px, transparent 5px 28px); }
.parade.is-resting .walker, .parade.is-resting .walker__art, .parade.is-resting .walker__name { animation-play-state: paused; }
/* A longer offscreen route on small screens keeps all five evenly spaced. */
.stage__boner, .bm__cut[src*="boner-cut"] {
  -webkit-mask: url('/assets/boner-mascot-mask.svg') center / contain no-repeat;
  mask: url('/assets/boner-mascot-mask.svg') center / contain no-repeat;
}
@keyframes parade-boner {
  /* Separate opposing poses switch the planted foot. Register each strip's
     head position at one fixed scale; foot movement stays in the artwork. */
  0%, 100% { background-image: url('/assets/pixel-mascots/boner-left-step.webp'); background-position: 0 0; }
  25% { background-image: url('/assets/pixel-mascots/boner-left-step.webp'); background-position: calc(var(--sprite) * -.948704) 0; }
  50% { background-image: url('/assets/pixel-mascots/boner-right-step.webp'); background-position: calc(var(--sprite) * -.026494) calc(var(--sprite) * -.009019); }
  75% { background-image: url('/assets/pixel-mascots/boner-right-step.webp'); background-position: calc(var(--sprite) * -.943067) calc(var(--sprite) * -.009019); }
}
@keyframes parade-cross { from { transform: translateX(calc(-1 * var(--sprite))); } to { transform: translateX(calc(var(--journey) - var(--sprite))); } }
@keyframes parade-step { from { background-position-x: 0; } to { background-position-x: calc(-4 * var(--sprite)); } }
/* Registered 627px cells; right plant → left swing → left plant → right swing. */
@keyframes parade-partner {
  0%, 100% { background-position: calc(var(--sprite) * var(--frame-x1)) 0; }
  25% { background-position: calc(var(--sprite) * var(--frame-x2)) calc(var(--sprite) * var(--frame-y2)); }
  50% { background-position: calc(var(--sprite) * var(--frame-x1)) calc(var(--sprite) * var(--frame-y2)); }
  75% { background-position: calc(var(--sprite) * var(--frame-x2)) 0; }
}
/* Register the torso to the first frame instead of the atlas cell center.
   PONS's planted-foot sequence runs 1 → 4 → 3 → 2, so the supporting
   foot moves backward relative to the body as the character moves right.
   Cashcat uses separate, visibly opposite planted-paw poses. */
@keyframes parade-pons {
  0%, 100% { background-position-x: 0; }
  25% { background-position-x: calc(var(--sprite) * -2.960541); }
  50% { background-position-x: calc(var(--sprite) * -1.917700); }
  75% { background-position-x: calc(var(--sprite) * -.965051); }
}
@keyframes parade-cashcat {
  /* Right paw bears weight; left paw swings through. */
  0%, 100% { background-image: url('/assets/pixel-mascots/cashcat-right-step.png'); background-position: calc(var(--sprite) * -.040042) calc(var(--sprite) * -.05); }
  25% { background-image: url('/assets/pixel-mascots/cashcat-right-step.png'); background-position: calc(var(--sprite) * -1.081756) calc(var(--sprite) * -.05); }
  /* Left paw bears weight; right paw swings through. */
  50% { background-image: url('/assets/pixel-mascots/cashcat-left-step.png'); background-position: calc(var(--sprite) * -.040352) calc(var(--sprite) * -.062); }
  75% { background-image: url('/assets/pixel-mascots/cashcat-left-step.png'); background-position: calc(var(--sprite) * -1.082376) calc(var(--sprite) * -.062); }
}
@media (max-width: 600px) {
  .parade { --sprite: 144px; --lap: 30s; }
  .parade__heading { padding-top: 28px; gap: 12px; }
  .parade__heading .eyebrow { font-size: .55rem; }
  .parade__toggle { padding: 10px; }
  .parade__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .parade__scene { height: 236px; }
  .parade__hills { height: 50px; }
}
/* Static previews and reduced motion retain a complete, visible cast. */
.static .parade { --sprite: clamp(106px, 16vw, 200px); }
.static .parade__toggle { display: none; }
.static .parade__scene { height: auto; padding-top: 24px; }
.static .parade__lane { position: relative; inset: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 36px 12px; padding: 20px 12px 55px; }
.static .walker, .static .walker__art, .static .walker__name { animation: none !important; }
.static .walker { position: relative; left: auto; bottom: auto; transform: none; flex: 0 0 var(--sprite); }
@media (prefers-reduced-motion: reduce) {
  .parade { --sprite: clamp(106px, 16vw, 200px); }
  .parade__toggle { display: none; }
  .parade__scene { height: auto; padding-top: 24px; }
  .parade__lane { position: relative; inset: auto; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; gap: 36px 12px; padding: 20px 12px 55px; }
  .walker, .walker__art, .walker__name { animation: none !important; }
  .walker { position: relative; left: auto; bottom: auto; transform: none; flex: 0 0 var(--sprite); }
}

/* -------------------------------------------------------- footer */
/* Pixel underground beneath the parade ground: dithered soil, buried gems, and a pixel-bordered panel. */
.footer {
  --px: 3px;
  --soil: #dedfc7;
  position: relative; overflow: hidden; isolation: isolate;
  padding: 3.5rem 0 2rem;
  color: var(--ink);
  background: var(--soil);
}
/* a darker pixel stratum right under the ground line, with a stepped bottom edge */
.footer::before { content: ''; position: absolute; inset: 0 0 auto; height: 46px; background: #cfd1b3; clip-path: polygon(0 0,100% 0,100% 62%,92% 62%,92% 78%,80% 78%,80% 55%,66% 55%,66% 84%,52% 84%,52% 66%,40% 66%,40% 90%,28% 90%,28% 70%,16% 70%,16% 82%,7% 82%,7% 60%,0 60%); z-index: 0; }
.footer__scene { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.footer__gem { position: absolute; width: 16px; height: 16px; background: var(--lime-deep); clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%); animation: gem-twinkle 2.4s steps(2, end) infinite; }
.footer__gem--a { left: 6%; top: 22px; }
.footer__gem--b { right: 9%; top: 14px; width: 22px; height: 22px; background: var(--coral); animation-delay: -1.2s; }
.footer__gem--c { left: 40%; top: 30px; width: 10px; height: 10px; animation-delay: -.6s; }
@keyframes gem-twinkle { from { opacity: 1; } to { opacity: .55; } }

/* pixel button: hard-edged, corner-notched outline drawn with box-shadow */
.pxbtn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 20px 15px; margin: var(--px);
  background: var(--white); color: var(--ink); text-decoration: none;
  font: 400 .72rem 'Press Start 2P', var(--mono); letter-spacing: .02em; line-height: 1; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 calc(-1 * var(--px)) 0 var(--ink), 0 var(--px) 0 var(--ink), calc(-1 * var(--px)) 0 0 var(--ink), var(--px) 0 0 var(--ink), var(--px) var(--px) 0 var(--ink), 7px 7px 0 var(--ink);
  transition: background .15s steps(2, end);
}
.pxbtn__k { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; background: var(--ink); color: var(--lime); font-size: .6rem; }
.pxbtn__logo { width: 40px; height: 40px; flex: none; object-fit: contain; image-rendering: pixelated; mix-blend-mode: multiply; }
.pxbtn__logo--dex { filter: brightness(0); mix-blend-mode: normal; }
.pxbtn:hover { background: var(--lime); }
.pxbtn:active { translate: 4px 4px; box-shadow: 0 calc(-1 * var(--px)) 0 var(--ink), 0 var(--px) 0 var(--ink), calc(-1 * var(--px)) 0 0 var(--ink), var(--px) 0 0 var(--ink), var(--px) var(--px) 0 var(--ink), 3px 3px 0 var(--ink); }
.pxbtn:focus-visible { outline: var(--px) solid var(--coral); outline-offset: 5px; }
.pxbtn--lime { background: var(--lime); }
.pxbtn--lime:hover { background: var(--coral); color: var(--cream); }

.footer__panel { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 2.4rem 3rem; align-items: end; padding-top: 1.5rem; }
.footer__brand { display: inline-flex; align-items: center; gap: 22px; text-decoration: none; color: var(--ink); }
.footer__logo { width: 84px; height: 84px; padding: 5px; border-radius: 18px; box-shadow: 5px 5px 0 var(--lime-deep); }
.footer__name { font: 400 clamp(2rem, 4.6vw, 3.4rem) 'Press Start 2P', var(--mono); text-transform: uppercase; text-shadow: 6px 6px 0 var(--lime), 9px 9px 0 var(--ink); }
.footer__tag { margin: 1.4rem 0 0; font: 400 .75rem 'Press Start 2P', var(--mono); line-height: 1.8; letter-spacing: .02em; text-transform: uppercase; color: #3f4134; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px; justify-self: end; }
.footer__legal {
  grid-column: 1 / -1; margin: 0; padding-top: 1.6rem;
  border-top: var(--px) solid var(--ink);
  font: 400 .58rem 'Press Start 2P', var(--mono); line-height: 2; letter-spacing: .01em; text-transform: uppercase; color: #55574a; max-width: 92ch;
}
.footer__legal a { color: var(--ink); text-decoration: none; box-shadow: inset 0 -3px 0 var(--coral); }
.footer__legal a:hover { box-shadow: inset 0 -3px 0 var(--lime-deep); }
.footer__bar { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: var(--px) solid var(--ink); font: 400 .58rem 'Press Start 2P', var(--mono); text-transform: uppercase; color: var(--ink); }
.footer__ca { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; min-width: 0; }
.footer__ca-l { padding: 4px 5px 3px; background: var(--ink); color: var(--lime); }
.footer__ca code { font: 500 .72rem var(--mono); text-transform: none; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.footer__ca-s { color: #7a7c66; box-shadow: inset 0 -2px 0 var(--lime-deep); transition: color .15s steps(2, end); }
.footer__ca:hover .footer__ca-s { color: var(--ink); }
.footer__ca:focus-visible { outline: var(--px) solid var(--coral); outline-offset: 4px; }
.footer__blink i { display: inline-block; width: 8px; height: 12px; margin-left: 8px; vertical-align: -1px; background: var(--ink); animation: cursor-blink 1s steps(2, end) infinite; }
@keyframes cursor-blink { from { opacity: 1; } to { opacity: 0; } }

/* ---------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .pairs__grid { grid-template-columns: repeat(2, 1fr); }
  .pair-card, .pair-card:nth-child(4), .pair-card:nth-child(5) { grid-column: auto; margin-top: 0; }
  .footer__panel { grid-template-columns: 1fr; }
  .footer__links { justify-self: start; }
}
@media (max-width: 900px) {
  /* pool cards: one swipeable, edge-to-edge snap row instead of a tall stack */
  .pairs__grid {
    display: flex; gap: 1rem; align-items: stretch;
    overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory; scroll-padding-inline: 1.25rem;
    margin-inline: -1.25rem; padding: .4rem 1.25rem 1.1rem;
    scrollbar-width: none;
  }
  .pairs__grid::-webkit-scrollbar { display: none; }
  .pairs__grid::after { content: ''; flex: 0 0 .25rem; } /* room for the last card's shadow */
  .pair-card, .pair-card:nth-child(2), .pair-card:nth-child(4), .pair-card:nth-child(5) { flex: 0 0 min(76vw, 340px); margin-top: 0; scroll-snap-align: start; --tilt: 0deg; display: flex; flex-direction: column; }
  .pair-card__body { flex: 1; display: flex; flex-direction: column; }
  .pair-card--tba .pair-card__body { justify-content: center; }
  .pair-card.in:hover { transform: none; box-shadow: var(--shadow); }
  .pair-card__body { padding: 0 1.15rem 1.2rem; }
  .pairs__hint { display: flex; align-items: center; gap: .5rem; margin-top: .2rem; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6a6a60; }
  .pairs__hint span { display: inline-block; animation: nudge 1.2s steps(2, end) infinite; }
    .hero__grid { grid-template-columns: 1fr; gap: 1rem; }
  .hero__stage { height: clamp(300px, 70vw, 460px); margin-top: 1rem; }
  .stage__dog { right: -2%; top: 7%; width: min(80%, 480px); }
  .hero__line--hollow > span { -webkit-text-stroke: 2px var(--ink); text-shadow: 4px 4px 0 var(--ink); }
  .stage__pipedog { left: 27%; bottom: 0; width: 16%; }
  .stage__p { left: 4%; bottom: 18%; width: 19%; }
  .stage__cat { right: 5%; bottom: 3%; width: 22%; }
  .stage__boner { right: auto; left: 0; top: 4%; width: 15%; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { grid-template-columns: auto 1fr auto; gap: .5rem; padding: .6rem .6rem; }
  .nav__brand { width: 56px; height: 56px; padding: 3px; border-radius: 16px; }
  .chip--hot { padding: .55rem .6rem; }
  .chip--icon { display: none; }
  .chip--x { display: inline-flex; }
  .chip--hot span { display: none; }
  .chip--hot .ico { width: 1.5em; height: 1.5em; }
  .dock { justify-self: center; }
  .dock__bar { gap: .1rem; padding: .2rem; border-radius: 14px; }
  .dock__item { width: 36px; height: 36px; border-radius: 10px; }
  .dock__item .ico { width: 20px; height: 20px; }
  .dock__item::before { display: none; }
  /* rhythm: tighter sections, headings sized to the 375px column */
  .section { padding: 3.25rem 0; }
  .section__head { margin-bottom: 1.6rem; }
  .section__head h2 { font-size: clamp(2rem, 9.6vw, 3rem); margin-bottom: .9rem; }
  .lede { font-size: 1rem; }
  .eyebrow { font-size: .7rem; margin-bottom: .7rem; }
  /* Separate mascot rows share the space around the copy; no overlapping piles. */
  .hero { padding: 0; }
  .hero__grid { width: 100%; min-height: clamp(620px, 100svh, 800px); grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: minmax(116px, 1fr) auto minmax(124px, 1fr) 32px; gap: clamp(14px, 2.5svh, 22px) 0; padding: 84px 20px 18px; justify-items: center; }
  .hero__copy { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 2; width: 100%; margin: 0; text-align: center; }
  .hero__title { font-size: clamp(2.125rem, 10.5vw, 4rem); margin-bottom: .75rem; }
  .hero__line { white-space: nowrap; }
  .hero__line:nth-child(n + 2) { display: inline-block; vertical-align: top; }
  .hero__line--hollow { padding-right: .07em; margin-right: -.07em; }
  .hero__line--hollow > span { text-shadow: 3px 3px 0 var(--ink); }
  .hero__sub { font-size: .875rem; line-height: 1.5; margin: 0 auto 1rem; max-width: 38ch; }
  .hero__sub-full, .hero__chips, .hero__cta .btn:nth-child(n + 2) { display: none; }
  .hero__sub-short { display: inline; }
  .hero__cta { justify-content: center; margin-bottom: 0; }
  .hero__cta .btn--lg { justify-content: center; min-width: 160px; min-height: 52px; padding: .85rem 1.4rem; font-size: .875rem; box-shadow: 4px 4px 0 var(--ink); }
  .hero__stage { display: contents; }
  .hero__stage .px { position: relative; inset: auto; width: 100%; height: 100%; min-width: 0; display: flex; align-items: center; justify-content: center; }
  .hero__stage .px--frame { grid-column: 1 / 3; grid-row: 1; padding-top: 24px; }
  .hero__stage .px--dog { grid-column: 3 / 7; grid-row: 1; }
  .hero__stage .px--pipedog { grid-column: 1 / 3; grid-row: 3; padding-top: 12px; }
  .hero__stage .px--boner { grid-column: 3 / 5; grid-row: 3; padding-bottom: 28px; }
  .hero__stage .px--cat { grid-column: 5 / 7; grid-row: 3; padding-top: 10px; }
  .hero__stage img { position: relative; inset: auto; flex: none; height: auto; animation-name: popIn, heroFloatMobile; }
  .stage__dog { width: min(43vw, 180px); filter: drop-shadow(5px 6px 0 rgba(12, 12, 12, .9)); }
  .stage__p { width: clamp(50px, 16vw, 72px); filter: drop-shadow(3px 4px 0 rgba(12, 12, 12, .92)); }
  .stage__cat { width: clamp(66px, 20vw, 90px); filter: drop-shadow(3px 4px 0 rgba(12, 12, 12, .92)); }
  .stage__pipedog { width: clamp(78px, 25vw, 110px); filter: drop-shadow(3px 4px 0 rgba(12, 12, 12, .9)); mask-image: linear-gradient(#000 88%, transparent); }
  .stage__boner { width: clamp(66px, 20.5vw, 92px); filter: drop-shadow(3px 3px 0 rgba(12, 12, 12, .92)); }
  .hero__explore { grid-column: 1 / -1; grid-row: 4; position: relative; inset: auto; z-index: 2; display: flex; align-items: center; gap: .8rem; min-height: 44px; font-family: var(--mono); font-size: .65rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
  .hero__explore > span:last-child { font-family: var(--font); font-size: 1.4rem; }
  .hero__explore:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
  /* story */
  .manifesto__line { font-size: 1.15rem; }
  .flow { margin-top: 2rem; }
  /* scoreboard: lighter card chrome, denser table */
  .score { border-radius: 18px; box-shadow: 6px 6px 0 var(--ink); }
  .score__head { padding: .65rem .85rem; gap: .6rem; }
  .score__title { font-size: .95rem; }
  .board__status { flex-basis: 100%; margin-left: 0; font-size: .7rem; }
  .board__table { font-size: .82rem; }
  .board__table th { padding: .65rem .8rem; }
  .board__table td { padding: .7rem .8rem; }
  .board__table .price { font-size: .95rem; }
  /* cta */
  .cta .display { font-size: clamp(2rem, 10vw, 2.6rem); }
  .cta__row { gap: .7rem; }
  .cta__row .btn--lg { width: 100%; justify-content: center; padding: 1rem 1.2rem; font-size: .95rem; }
  .contract--center { margin-top: 1.6rem; }
  .footer { padding: 2.5rem 0 1.5rem; }
  .footer__panel { gap: 1.8rem; }
  .footer__name { font-size: 1.6rem; text-shadow: 4px 4px 0 var(--lime), 6px 6px 0 var(--ink); }
  .footer__logo { width: 60px; height: 60px; border-radius: 14px; }
  /* footer buttons: all three on one row */
  .footer__links { flex-wrap: nowrap; gap: 10px; width: 100%; justify-self: stretch; }
  /* logo buttons go logo-only on phones; the label stays for screen readers */
  .pxbtn:has(.pxbtn__logo) { position: relative; }
  .pxbtn:has(.pxbtn__logo) > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pxbtn { flex: 1 1 0; justify-content: center; min-width: 0; gap: 7px; font-size: .5rem; padding: 11px 8px 10px; box-shadow: 0 calc(-1 * var(--px)) 0 var(--ink), 0 var(--px) 0 var(--ink), calc(-1 * var(--px)) 0 0 var(--ink), var(--px) 0 0 var(--ink), var(--px) var(--px) 0 var(--ink), 5px 5px 0 var(--ink); }
  .pxbtn__logo { width: 30px; height: 30px; }
  .pxbtn__k { min-width: 22px; height: 22px; padding: 0 4px; font-size: .5rem; }
  .footer__bar { flex-direction: column; gap: .7rem; }
  .footer__ca { order: 3; max-width: 100%; }
  .footer__ca code { max-width: 22ch; }
    .contract { border-radius: 24px; }
  .contract__addr { flex-basis: 100%; }
}

@keyframes heroFloatMobile {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-8px) rotate(calc(var(--r, 0deg) + 2deg)); }
}

/* ------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero__line > span { transform: none; }
}

/* Keep the logo, section dock, X and buy action on one line on small phones. */
@media (max-width: 380px) {
  .top { gap: .25rem; }
  .top__slot--right { gap: .25rem; }
  .dock__item { width: 28px; }
  .chip--x { width: 36px; height: 36px; }
}
