/* BitCow — the page is the room, everything on it is a flat cartoon sticker.
   Palette is sampled straight out of the base photo; orange is the bitcoin half. */

:root {
  --wall:       #8fa6c4;
  --wall-deep:  #6b85a8;
  --carpet:     #bcad91;
  --carpet-dk:  #a2937a;
  --cream:      #f3eee4;
  --cream-dk:   #e2d9c8;
  --ink:        #000;
  --orange:     #f7931a;
  --orange-dk:  #c8730c;
  --brown:      #6b4229;
  --pink:       #e39aa4;

  --line: 3px;
  --pop: 7px 7px 0 var(--ink);
  --pop-sm: 4px 4px 0 var(--ink);
  --r: 18px;

  --wrap: 1180px;
  --gut: clamp(1.1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--cream); padding: .7rem 1rem;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 4px solid var(--orange);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - var(--gut) * 2);
  margin-inline: auto;
}

/* ── sticker type ───────────────────────────────────────────────────────── */
.display {
  font-variation-settings: "wdth" 112, "wght" 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}

h1.display {
  font-size: clamp(2.3rem, 5.4vw, 4.5rem);
  line-height: 1.08;
  color: var(--cream);
  -webkit-text-stroke: clamp(3px, .5vw, 4px) var(--ink);
  paint-order: stroke fill;
  text-shadow: clamp(4px, .9vw, 8px) clamp(4px, .9vw, 8px) 0 var(--ink);
}
h1.display em {
  font-style: normal;
  color: var(--orange);
}

.h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: .5rem;
}

.section-lede {
  font-size: 1.12rem;
  max-width: 46ch;
  margin: 0 0 2.2rem;
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font: inherit;
  font-variation-settings: "wght" 700;
  padding: .82rem 1.5rem;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--pop-sm);
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--orange); }
.btn-small { padding: .45rem 1rem; font-size: .92rem; }

/* ── top bar ────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: .6rem var(--gut);
  background: var(--cream);
  border-bottom: var(--line) solid var(--ink);
}
.brand {
  display: flex; align-items: center; gap: .55rem;
  text-decoration: none; color: var(--ink);
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: 1.35rem; letter-spacing: -0.03em;
}
.brand img { width: 40px; height: 40px; object-fit: contain; }
.topnav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.6rem); }
.topnav a {
  color: var(--ink); text-decoration: none;
  white-space: nowrap;
  font-variation-settings: "wght" 600;
}
.topnav a:not(.topbuy) { border-bottom: 2px solid transparent; }
.topnav a:not(.topbuy):hover { border-bottom-color: var(--ink); }
.topbuy {
  background: var(--orange);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  padding: .4rem 1.1rem;
  box-shadow: var(--pop-sm);
}
.topbuy:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

/* ── hero: the actual room ──────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(84vh, 840px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}
.wall, .carpet, .baseboard { position: absolute; left: 0; right: 0; z-index: -2; }
/* a vignette over the room: adds depth and breaks up the tiled texture */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(115% 85% at 52% 42%, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 38%, rgba(30,42,64,.22) 100%);
}
.wall {
  top: 0; height: 62%;
  background: var(--wall) url("assets/wall-tile-2.jpg") repeat-x center/auto 100%;
  box-shadow: inset 0 -60px 90px -40px rgba(30,45,70,.35);
}
.baseboard {
  top: 62%; height: 26px;
  background: linear-gradient(#f6f1e6, #ded4c1);
  border-top: 2px solid rgba(0,0,0,.18);
  box-shadow: 0 4px 10px rgba(0,0,0,.22);
}
.carpet {
  top: calc(62% + 26px); bottom: 0;
  background: var(--carpet) url("assets/carpet-tile-2.jpg") repeat-x center top/auto 100%;
}

.hero-inner {
  width: min(var(--wrap), 100% - var(--gut) * 2);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.2rem, 3vh, 2.4rem) 3.4rem;
}

.lede {
  max-width: 34ch;
  margin: 1.4rem 0 1.9rem;
  color: var(--ink);
  background: rgba(243,238,228,.86);
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  padding: .9rem 1.1rem;
  box-shadow: var(--pop-sm);
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* contract address, tucked under the headline */
.hero-ca {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: 100%;
  margin-top: 1.1rem;
  padding: .3rem .35rem .3rem .7rem;
  background: rgba(243, 238, 228, .92);
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--pop-sm);
}
.hero-ca-label {
  flex: none;
  font-size: .7rem;
  font-variation-settings: "wght" 800;
  letter-spacing: .06em;
}
.hero-ca code {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(.58rem, 1.35vw, .74rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-ca-btn {
  flex: none;
  font: inherit;
  font-size: .78rem;
  font-variation-settings: "wght" 700;
  padding: .3rem .8rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--orange);
  cursor: pointer;
}
.hero-ca-btn:hover { background: #ffa838; }
.hero-ca-btn:active { transform: translateY(1px); }

/* the cow */
.stage {
  position: relative;
  align-self: end;
  justify-self: center;
  display: grid;
  justify-items: center;
}
/* sized by height so the cow always fits the room, never crops */
.cow {
  position: relative;
  display: block;
  border: 0; background: none; padding: 0;
  cursor: grab;
  width: fit-content;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1);
  touch-action: manipulation;
  z-index: 2;
}
.cow img { height: min(58vh, 620px); width: auto; max-width: 100%; user-select: none; -webkit-user-drag: none; }
.cow:hover { transform: translateY(-6px) rotate(-1deg); }
.cow.is-held { cursor: grabbing; animation: shake .16s linear infinite; }
@keyframes shake {
  0%,100% { transform: translateY(-3px) scale(1.02) rotate(-.7deg); }
  50%     { transform: translateY(-6px) scale(1.02) rotate(.7deg); }
}

/* the cutout is trimmed to the cow, so the shadow sits right at its hooves */
.cow-shadow {
  position: absolute;
  left: 50%; bottom: -4%;
  translate: -50% 0;
  width: 118%; aspect-ratio: 4.6 / 1;
  background: radial-gradient(closest-side, rgba(48,34,16,.62), rgba(48,34,16,.28) 45%, rgba(48,34,16,0) 78%);
  z-index: -1;
}

.laser {
  position: absolute;
  width: 9%; aspect-ratio: 1;
  border-radius: 50%;
  background: #ff2b2b;
  box-shadow: 0 0 14px 6px rgba(255,43,43,.85), 0 0 44px 20px rgba(255,60,0,.5);
  opacity: 0;
  transition: opacity .12s;
  pointer-events: none;
}
.laser-l { left: 23.9%; top: 18.6%; }
.laser-r { left: 61.6%; top: 15.1%; }
.cow.is-held .laser { opacity: 1; }

.coins { position: absolute; inset: 0; pointer-events: none; z-index: 3; }

/* the cow's one line. Grows when you press the cow. */
.moo {
  position: absolute;
  right: 5%;
  top: -1%;
  margin: 0;
  z-index: 4;
  pointer-events: none;
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--cream);
  -webkit-text-stroke: clamp(2px, .35vw, 3px) var(--ink);
  paint-order: stroke fill;
  text-shadow: 5px 5px 0 var(--ink);
  rotate: -7deg;
  transform-origin: 20% 100%;
  transition: transform .22s cubic-bezier(.34, 1.56, .64, 1);
}
.cow.is-held ~ .moo { transform: translateY(-18px) scale(1.45); }
.coin {
  position: absolute;
  width: 42px; height: 42px;
  will-change: transform, opacity;
}

/* ticker */
.ticker {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--ink);
  border-top: var(--line) solid var(--ink);
  overflow: hidden;
  padding: .55rem 0;
}
.ticker-track {
  display: flex; gap: 3rem; width: max-content;
  animation: roll 26s linear infinite;
}
.ticker-track span {
  color: var(--cream);
  font-variation-settings: "wdth" 112, "wght" 800;
  letter-spacing: .12em;
  font-size: .9rem;
  white-space: nowrap;
}
.ticker-track span:nth-child(even) { color: var(--orange); }
@keyframes roll { to { transform: translateX(-50%); } }

/* ── bands ──────────────────────────────────────────────────────────────── */
.band { padding: clamp(3.5rem, 9vw, 6.5rem) 0; border-top: var(--line) solid var(--ink); }
.band-cream  { background: var(--cream); }
.band-wall   { background: var(--wall); }
.band-carpet { background: var(--carpet); }

/* ── cards / steps ──────────────────────────────────────────────────────── */
.card {
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--pop);
  padding: 1.6rem 1.4rem 1.4rem;
}

.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
}
.step { position: relative; }
.step:nth-child(2n) { rotate: .8deg; }
.step:nth-child(3n) { rotate: -.9deg; }
.step-n {
  position: absolute; top: -20px; left: -14px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--orange);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  font-variation-settings: "wdth" 110, "wght" 800;
  font-size: 1.25rem;
}
.step h3 {
  margin: .2rem 0 .4rem;
  font-variation-settings: "wdth" 108, "wght" 750;
  font-size: 1.3rem;
  letter-spacing: -.02em;
}
.step p { margin: 0; }
.ico-meme {
  display: block;
  max-width: none;
  width: calc(100% + 2.8rem);
  height: auto;
  margin: -1.6rem -1.4rem 1.1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 34%;
  border-bottom: var(--line) solid var(--ink);
  border-radius: 15px 15px 0 0;
}
.s-line, .s-line-thin { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; }
.s-line { stroke-width: 5; }
.s-line-thin { stroke-width: 4; }
.s-fill-cream  { fill: #fff; stroke: var(--ink); stroke-width: 5; }
.s-fill-orange { fill: var(--orange); stroke: var(--ink); stroke-width: 5; }
.s-fill-brown  { fill: var(--brown); stroke: var(--ink); stroke-width: 5; }
.s-fill-ink    { fill: var(--ink); }

.buy-steps { margin-top: 2.8rem; }

/* ── live payout card ───────────────────────────────────────────────────── */
.live {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: clamp(1.2rem, 3vw, 2.6rem);
  row-gap: 1.1rem;
  align-items: center;
  margin: 0 0 clamp(2.4rem, 5vw, 3.4rem);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--ink);
  color: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--pop);
}
.live-label { margin: 0 0 .3rem; font-size: .85rem; color: #9d968b; }
.live-usd {
  margin: 0;
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: clamp(2.4rem, 6.5vw, 3.9rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}
.live-btc {
  margin: .45rem 0 0;
  font-size: 1.05rem;
  font-variation-settings: "wght" 650;
  font-variant-numeric: tabular-nums;
}
.live-btc b { color: #9d968b; font-size: .82rem; font-variation-settings: "wght" 700; }

.live-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: .1rem 1.4rem;
}
.live-stats > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: .8rem;
  padding: .55rem 0;
  border-bottom: 2px dotted #3d372f;
}
.live-stats dt { color: #9d968b; font-size: .9rem; }
.live-stats dd {
  margin: 0;
  font-variation-settings: "wght" 750;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
/* progress toward the next payout — there is no schedule to count down to */
.live-next {
  grid-column: 1 / -1;
  border-top: 2px dotted #3d372f;
  padding-top: 1rem;
}
.live-next-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .92rem;
  color: #9d968b;
}
.live-next-top b { color: var(--cream); font-variation-settings: "wght" 750; }
.live-next-val {
  color: var(--orange);
  font-variation-settings: "wght" 800;
  font-variant-numeric: tabular-nums;
}
.live-bar {
  margin: .6rem 0 .5rem;
  height: 14px;
  border: 2px solid #5a5147;
  border-radius: 999px;
  background: #221e19;
  overflow: hidden;
}
.live-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--orange);
  transition: width .5s ease;
}
.live-next-note { margin: 0; font-size: .78rem; color: #7d766c; }

.live-foot {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .78rem;
  color: #7d766c;
}
.live.is-stale .live-usd { opacity: .55; }
.live.is-down .live-foot { color: var(--orange); }

.fineprint {
  margin: 2.4rem 0 0;
  max-width: 62ch;
  border-left: var(--line) solid var(--ink);
  padding-left: 1rem;
}

/* ── tokenomics ─────────────────────────────────────────────────────────── */
.tok-head { margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.tok {
  display: grid;
  grid-template-columns: minmax(240px, 400px) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.tok-chart { position: relative; display: grid; place-items: center; }
.tok-cow {
  position: absolute;
  left: -1rem; bottom: -1rem;
  width: 34%; max-width: 140px;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--pop-sm);
  rotate: -6deg;
}
.tok-hint {
  position: absolute; right: 0; bottom: -1.2rem;
  margin: 0; font-size: .85rem; opacity: .7;
}
#donut { width: 100%; max-width: 380px; overflow: visible; }
#donut path {
  stroke: var(--ink); stroke-width: 3; stroke-linejoin: round;
  cursor: pointer;
  transition: transform .16s ease;
  transform-origin: 0 0;
}
#donut path.is-active { transform: scale(1.045); }
.donut-hole { fill: var(--cream); stroke: var(--ink); stroke-width: 3; }
.donut-k, .donut-l {
  text-anchor: middle;
  font-family: Archivo, sans-serif;
  fill: var(--ink);
  stroke: var(--cream);
  paint-order: stroke fill;
  stroke-linejoin: round;
}
.donut-k { font-variation-settings: "wdth" 110, "wght" 800; font-size: 30px; stroke-width: 8px; }
.donut-l { font-variation-settings: "wght" 600; font-size: 12.5px; stroke-width: 6px; }

.tok-body .section-lede { margin-bottom: 1.5rem; }
#memes .section-lede { margin-bottom: 1.6rem; }

.legend { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: .45rem; }
.legend li {
  display: flex; align-items: center; gap: .7rem;
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  padding: .45rem .8rem;
  cursor: default;
}
.legend li.is-active { box-shadow: var(--pop-sm); }
.legend .swatch {
  width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; flex: none;
}
.legend .pct { margin-left: auto; font-variation-settings: "wght" 800; font-variant-numeric: tabular-nums; }

.facts {
  margin: 0 0 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: .1rem 2rem;
}
.facts > div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem 0;
  border-bottom: 2px dotted rgba(0,0,0,.35);
}
.facts dt { font-variation-settings: "wght" 500; }
.facts dd { margin: 0; font-variation-settings: "wght" 800; text-align: right; }

.ca {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  padding: .7rem .9rem;
  box-shadow: var(--pop-sm);
}
.ca-label { font-variation-settings: "wght" 700; font-size: .85rem; }
.ca code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  overflow-wrap: anywhere;
  flex: 1 1 14rem;
}

/* ── meme wall ──────────────────────────────────────────────────────────── */
.filters {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.8rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
#shuffle { flex: none; }
.chip {
  font: inherit; font-size: .9rem;
  font-variation-settings: "wght" 650;
  padding: .38rem .95rem;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.chip .n { opacity: .55; margin-left: .35rem; font-variation-settings: "wght" 500; }
.chip[aria-pressed="true"] .n { opacity: .7; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(140px, 22vw, 210px), 1fr));
  gap: clamp(.7rem, 1.6vw, 1.2rem);
}
.tile {
  position: relative;
  margin: 0;
  padding: 0; border: var(--line) solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--wall);
  cursor: zoom-in;
  box-shadow: var(--pop-sm);
  transition: transform .12s ease, box-shadow .12s ease;
  aspect-ratio: 1;
}
/* nudge in on the cow so outfits read at thumbnail size */
.tile img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transform-origin: center 46%; }
.tile:hover { transform: translate(-3px,-3px); box-shadow: 8px 8px 0 var(--ink); }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--ink); color: var(--cream);
  font-size: .8rem; font-variation-settings: "wght" 650;
  padding: .35rem .55rem;
  translate: 0 100%;
  transition: translate .14s ease;
  text-align: left;
}
.tile:hover figcaption, .tile:focus-visible figcaption { translate: 0 0; }
.grid-empty { margin-top: 1rem; font-variation-settings: "wght" 600; }

/* ── lightbox ───────────────────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(18,15,12,.94);
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: clamp(.4rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
}
.lb[hidden] { display: none; }
.lb-fig { margin: 0; display: grid; justify-items: center; gap: .9rem; }
.lb-fig img {
  max-height: 76vh; width: auto;
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  background: var(--wall);
}
.lb-fig figcaption {
  display: flex; align-items: center; gap: 1rem;
  color: var(--cream);
  font-variation-settings: "wdth" 108, "wght" 750;
  font-size: 1.15rem;
}
.lb-nav, .lb-close {
  font: inherit; font-size: 1.8rem; line-height: 1;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}
.lb-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.1rem; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--cream); padding: 3rem 0 2.4rem; }
.footer-in { display: flex; gap: 1.6rem; align-items: flex-start; flex-wrap: wrap; }
.footer-cow { width: 90px; height: 90px; object-fit: contain; }
.footer-big {
  margin: 0 0 .3rem;
  font-variation-settings: "wdth" 115, "wght" 800;
  font-size: 2rem; letter-spacing: -.03em;
  color: var(--orange);
}
.footer-links { margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; }
.footer-links a { color: var(--cream); }
.disclaimer { margin: 0; max-width: 62ch; font-size: .85rem; opacity: .68; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cow img { height: min(52vh, 520px); }
}

@media (max-width: 880px) {
  .hero { min-height: 0; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.6rem;
    padding-block: 1.6rem 3.6rem;
  }
  .wall { height: 58%; }
  .baseboard { top: 58%; }
  .carpet { top: calc(58% + 26px); }
  .lede { max-width: none; margin: 1.1rem 0 1.4rem; }
  .stage { justify-self: stretch; }
  .cow img { height: min(40vh, 380px); }


  .live { grid-template-columns: 1fr; row-gap: 1.2rem; }
  .tok { grid-template-columns: 1fr; }
  .tok-chart { padding-bottom: 2.2rem; }
  #donut { max-width: 300px; }
  .tok-hint { display: none; }
  .tok-cow { width: 26%; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .topbar { padding-inline: 1rem; }
  .topnav { gap: .85rem; font-size: .9rem; }
  .topbuy { padding: .35rem .85rem; }
  .filters { flex-direction: column; align-items: stretch; }
  #shuffle { align-self: flex-start; }
  .steps { gap: 1.8rem; }
  .step-n { top: -16px; left: -10px; width: 38px; height: 38px; font-size: 1.05rem; }

  /* the side arrows would squeeze the image to nothing on a phone */
  .lb { grid-template-columns: 1fr; grid-template-areas: "fig"; padding: 3.5rem 1rem 1rem; }
  .lb-fig { grid-area: fig; }
  .lb-fig img { max-height: 62vh; }
  .lb-nav {
    position: absolute; bottom: 1.4rem;
    width: 58px; height: 58px;
  }
  .lb-prev { left: 1.2rem; }
  .lb-next { right: 1.2rem; }
  .lb-fig figcaption { flex-direction: column; gap: .6rem; padding-bottom: 4.4rem; }
}

@media (max-width: 520px) {
  .brand span { display: none; }
  .topnav { gap: .7rem; font-size: .82rem; }
  .ticker-word { display: none; }
  .cow img { height: min(36vh, 330px); }
  .hero-actions { gap: .6rem; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; padding: .75rem 1rem; font-size: .95rem; }
  .live-stats { grid-template-columns: 1fr; }
  .ca { gap: .5rem; }
  .ca code { font-size: .72rem; flex-basis: 100%; }
  .tok-cow { display: none; }
  .footer-in { gap: 1rem; }
}

@media (max-width: 880px) {
  /* scaled-up MOO must grow inward on a phone, or it runs off the edge */
  .moo { right: 8%; top: 0; font-size: 1.4rem; transform-origin: 70% 100%; }
  .cow.is-held ~ .moo { transform: translateY(-12px) scale(1.25); }
}

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