/* 牛来了 — landing.
   Styled after the art itself: neon skins on black, BNB gold, hard offset
   shadows, stickers at angles. This one commits to a single visual world on
   purpose — a light-mode version of this aesthetic would be a different,
   worse page — so every colour is painted explicitly and nothing is inherited
   from the host. */

:root {
  /* the banner's green screen, straight off the Twitter header */
  --green: #22d422;
  --green-dark: #12a512;
  --green-deep: #0a7a0f;

  --void: #22d422;      /* the page ground IS the green now */
  --void-2: #14161a;    /* dark panels that sit on it */
  --void-3: #1b1e24;
  --line: #0a7a0f;
  --line-soft: #17161a;

  /* One accent — BNB gold. The neon lives in the art, not in the chrome. */
  --bnb: #f0b90b;
  --gold: #ffc81e;
  --lime: #43c86b;     /* only ever means "available" */
  --cyan: #e9e6e1;     /* was a shouting cyan; now just bright ink */
  --magenta: #232830;  /* was purple; now the hard shadow colour */
  --hot: #e04a4a;      /* calmer red, only for "taken" */

  --ink: #ffffff;
  --ink-2: #0f3d10;     /* body copy on green has to be dark, not grey */
  --ink-3: #135a15;

  --display: "Arial Black", "Arial Bold", Impact, "Helvetica Neue", sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --gut: clamp(1rem, 4vw, 3.5rem);
  --max: 1280px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--ui);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
a { color: var(--bnb); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.cjk { font-family: var(--cjk); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── the shout: display type with a hard neon offset ─────────────────────── */
.shout {
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
  color: #fff;
  /* the banner's trick: fat black outline plus a hard drop, no blur anywhere */
  -webkit-text-stroke: 6px #000;
  paint-order: stroke fill;
  text-shadow: 6px 7px 0 #000;
}

.shout .hit { color: #ffc81e; }
.shout .hit-2 { color: #ffc81e; }
.shout .hit-3 { color: #ffc81e; }

/* ── marquee ─────────────────────────────────────────────────────────────── */
.marquee {
  border-block: 3px solid var(--bnb);
  background: var(--bnb);
  color: #000;
  overflow: hidden;
  padding-block: 0.45rem;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  gap: 2.5rem;
  padding-right: 2.5rem;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: slide 26s linear infinite;
  will-change: transform;
}

.marquee-track span { display: inline-block; }
.marquee-track .dot { color: #7a5e00; }

@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── nav ─────────────────────────────────────────────────────────────────── */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 1.1rem; flex-wrap: wrap;
}
.nav .brand { display: flex; align-items: baseline; gap: 0.6rem; }
.nav .brand b { font-family: var(--cjk); font-size: 1.4rem; color: var(--gold); }
.nav .brand span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--ink-3); }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.cta {
  display: inline-block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85em 1.7em;
  background: var(--gold);
  color: #17140b;
  border: 3px solid #000;
  box-shadow: 6px 6px 0 var(--magenta);
  transition: transform 0.12s, box-shadow 0.12s, background 0.12s;
}
.cta:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--magenta); background: #ffd45c; }
.cta:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--magenta); }

.cta-sm {
  font-size: 0.8rem; padding: 0.7em 1.2em;
  background: transparent; color: var(--bnb); border-color: var(--bnb);
  box-shadow: 4px 4px 0 var(--void-3);
}
.cta-sm:hover { background: var(--bnb); color: #000; box-shadow: 6px 6px 0 var(--void-3); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero { padding-block: clamp(1rem, 2.5vw, 2rem) clamp(2rem, 6vw, 4rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

/* capped so the headline, the lede and the mint button all clear the fold —
   a landing whose only call to action is below the first screen is decoration */
.hero h1 { font-size: clamp(2.1rem, 4.9vw, 4rem); }
.hero h1 .line { display: block; }
.hero h1 .out { color: #ffc81e; }

.hero-lede {
  margin: 1.1rem 0 1.3rem;
  color: var(--ink-2);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 46ch;
}
.hero-lede b { color: var(--ink); }
.hero-lede.tight { margin-top: -0.4rem; }
.hero-lede .num { color: var(--bnb); font-family: var(--mono); }

.hero-actions { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }

/* the picture, hung crooked with stickers on it */
.frame { position: relative; }
.frame img {
  /* the HTML height attribute was winning and stretching a square to 528×900 */
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  display: block; border: 4px solid var(--ink);
  box-shadow: 14px 14px 0 var(--magenta);
  transform: rotate(-1.4deg);
}

.sticker {
  position: absolute;
  font-family: var(--display);
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 0.5em 0.85em;
  border: 3px solid #000;
  color: #000;
  z-index: 2;
  white-space: nowrap;
}
.sticker.a { top: -1rem; left: -0.8rem; background: var(--bnb); transform: rotate(-7deg); }
.sticker.b { bottom: 1.2rem; right: -1.2rem; background: var(--cyan); transform: rotate(5deg); }
.sticker.c { top: 3.2rem; right: -1.6rem; background: var(--hot); color: #fff; transform: rotate(9deg); }

/* ── numbers strip ───────────────────────────────────────────────────────── */
.numbers {
  border-block: 3px solid var(--line);
  background: var(--void-2);
  padding-block: clamp(1.5rem, 4vw, 2.6rem);
}

.numbers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.6rem 2rem; }
.numbers .n { font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.8rem); line-height: 0.9; overflow-wrap: anywhere; }
.numbers .k { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.5rem; display: block; }
.numbers .i:nth-child(1) .n { color: var(--bnb); }
.numbers .i:nth-child(2) .n { color: var(--cyan); }
.numbers .i:nth-child(3) .n { color: var(--lime); }
.numbers .i:nth-child(4) .n { color: var(--hot); }

/* ── sections ────────────────────────────────────────────────────────────── */
.section { padding-block: clamp(2.5rem, 7vw, 5rem); }
.section-head { margin-bottom: clamp(1.5rem, 4vw, 2.4rem); }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 3.2rem); }
.section-head p { color: var(--ink-2); max-width: 58ch; margin: 0.9rem 0 0; }

/* trait sheet */
.traits { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.trait {
  border: 3px solid var(--line);
  background: var(--void-2);
  padding: 1.1rem 1.2rem;
  transition: border-color 0.15s, transform 0.15s;
}
.trait:hover { border-color: var(--gold); transform: translateY(-3px); }
.trait b { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--ink); }
.trait span { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.trait p { margin: 0.6rem 0 0; color: var(--ink-2); font-size: 0.88rem; }

/* ── the grid of bulls, dense and full bleed ─────────────────────────────── */
.bulls {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 4px;
  padding-inline: 4px;
  /* grid stretches its children by default, which overrides aspect-ratio and
     turns square art into tall slices of nostril */
  align-items: start;
}
.bulls img {
  width: 100%; height: auto; display: block; aspect-ratio: 1; object-fit: cover;
  transition: transform 0.18s, filter 0.18s;
  filter: saturate(1.05);
}
.bulls img:hover { transform: scale(1.08); filter: saturate(1.4) contrast(1.05); z-index: 2; position: relative; }

/* ── closing call ────────────────────────────────────────────────────────── */
.close {
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem);
  border-top: 3px solid var(--line);
}
.close h2 { font-size: clamp(2.2rem, 7vw, 4.5rem); margin-bottom: 1.4rem; }
.close p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 2rem; }

/* ── footer ──────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3.5rem; color: var(--ink-3); font-size: 0.82rem; }
footer p { margin: 0 0 0.7rem; max-width: 66ch; }
footer b { color: var(--ink-2); }
footer .big { font-family: var(--cjk); font-size: 1.6rem; color: var(--gold); margin-bottom: 1rem; }

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .frame { max-width: 520px; }
  .sticker.b { right: 0.5rem; }
  .sticker.c { right: 0.2rem; }
}

@media (max-width: 520px) {
  .frame img { box-shadow: 8px 8px 0 var(--magenta); }
  .sticker { font-size: 0.7rem; }
  .sticker.a { left: -0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .cta, .trait, .bulls img { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   live state, lore, and the full 4,444
   ═══════════════════════════════════════════════════════════════════════════ */

.nav-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cta.hot { background: var(--gold); border-color: var(--gold); color: #17140b; box-shadow: 4px 4px 0 var(--void-3); }
.cta.hot:hover { background: #ffd45c; border-color: #ffd45c; color: #17140b; }

/* ── live bar ────────────────────────────────────────────────────────────── */
.live-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }

.pulse {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--lime); flex-shrink: 0;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 70%, transparent);
  animation: beat 2s ease-out infinite;
}
@keyframes beat {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 70%, transparent); }
  70%  { box-shadow: 0 0 0 14px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.meter-wrap { margin-bottom: 1.8rem; }
.meter-track { height: 14px; background: var(--void); border: 2px solid var(--line); overflow: hidden; }
.meter-fill {
  display: block; height: 100%; width: var(--fill, 0%);
  background: linear-gradient(90deg, #8a6408, var(--gold) 70%, #ffd45c);
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.meter-legend {
  display: flex; justify-content: space-between; margin-top: 0.6rem;
  font-size: 0.76rem; color: var(--ink-3);
}

/* ── lore ────────────────────────────────────────────────────────────────── */
.lore-body { max-width: 62ch; }
.lore-body p { color: var(--ink-2); font-size: clamp(1rem, 1.5vw, 1.14rem); margin: 0 0 1.1rem; }
.lore-body .num { color: var(--bnb); font-family: var(--mono); }
.lore-body b { color: var(--ink); }

.drop {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem) !important;
  color: var(--ink) !important;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.lore-punch {
  border-left: 4px solid var(--gold);
  padding-left: 1.2rem;
  color: var(--ink) !important;
}

.lore-end {
  font-size: clamp(2rem, 5vw, 3.2rem) !important;
  color: var(--gold) !important;
  font-weight: 800;
  margin-top: 2rem !important;
}

/* ── filters ─────────────────────────────────────────────────────────────── */
.herd-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.chip {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.6em 1em;
  background: transparent; color: var(--ink-2);
  border: 2px solid var(--line); cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #17140b; }
.chip span { opacity: 0.7; }

/* ── the herd ────────────────────────────────────────────────────────────── */
.herd {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 6px;
  align-items: start;   /* grid stretch would override aspect-ratio */
}

.bull {
  position: relative; margin: 0;
  border: 2px solid var(--line-soft, #262c38);
  background: var(--void-2);
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}
.bull:hover { transform: translateY(-3px); border-color: var(--gold); z-index: 2; }
.bull img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; display: block; }

.bull figcaption {
  display: flex; justify-content: space-between; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  font-family: var(--mono); font-size: 0.64rem;
}
.bull figcaption b { color: var(--ink-2); font-weight: 600; }
.bull .st { color: var(--lime); text-transform: uppercase; letter-spacing: 0.06em; }

/* taken bulls read as gone: drained of colour, stamped */
.bull.taken img { filter: grayscale(1) brightness(0.42); }
.bull.taken { border-color: #1c212b; }
.bull.taken .st { color: var(--hot); }
.bull.taken::after {
  content: "TAKEN";
  position: absolute; top: 8px; left: -26px;
  transform: rotate(-38deg);
  background: var(--hot); color: #fff;
  font-family: var(--display); font-size: 0.56rem; letter-spacing: 0.1em;
  padding: 2px 30px;
  pointer-events: none;
}

.herd-more { text-align: center; margin-top: 2rem; }
.close-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .meter-fill, .bull, .chip { transition: none; }
}

/* ── box office chart: nine flat days, then the candle ───────────────────── */
.chart {
  margin: 2.5rem 0 2.5rem;
  border: 3px solid var(--line);
  background: var(--void-2);
  padding: 1.4rem 1.4rem 1rem;
  max-width: 62ch;
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 190px;
}

.chart-bars .bar {
  flex: 1;
  background: var(--ink-3);
  min-height: 2px;
  position: relative;
  transition: height 1.1s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.chart-bars .bar.spike {
  flex: 1.6;
  background: linear-gradient(180deg, var(--gold), #a37c07);
  box-shadow: 0 0 26px -4px color-mix(in srgb, var(--gold) 60%, transparent);
}

.chart-bars .bar.spike::after {
  content: "+500,000 ¥";
  position: absolute;
  top: -1.5rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--gold);
  white-space: nowrap;
}

.chart figcaption {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 0.9rem; font-size: 0.7rem; color: var(--ink-3);
}
.chart figcaption .hit { color: var(--gold); }

@media (prefers-reduced-motion: reduce) { .chart-bars .bar { transition: none; } }


/* ═══════════════════════════════════════════════════════════════════════════
   green screen: panels, stickers, and the loud bits
   ═══════════════════════════════════════════════════════════════════════════ */

/* floating stickers — decorative, never in the way */
.sticker-float {
  position: absolute;
  transform: rotate(var(--tilt, 0deg));
  animation: bob 5s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(3px 4px 0 rgba(0,0,0,0.35));
}
@keyframes bob {
  0%, 100% { transform: rotate(var(--tilt,0deg)) translateY(0); }
  50%      { transform: rotate(var(--tilt,0deg)) translateY(-11px); }
}

.hero, .lore, .close, .herd-section { position: relative; }

/* anything with reading in it gets a dark slab so the green stays behind */
.slab {
  position: relative; z-index: 2;
  background: var(--void-2);
  border: 4px solid #000;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.45);
  padding: clamp(1.3rem, 3.5vw, 2.4rem);
}
.slab p { color: #cfd4dc; }
.slab b { color: #fff; }
.slab .drop { color: #fff !important; }

.numbers { border-block: 5px solid #000; background: var(--void-2); position: relative; z-index: 2; }
.numbers .k { color: #8b93a0; }
.live-head .label { color: #8b93a0; }

.lore-body p { color: #cfd4dc; }
.lore-body b { color: #fff; }
.lore-punch { border-left-color: var(--gold); color: #fff !important; }
.chart { background: var(--void-2); border-color: #000; border-width: 4px; }

/* section headings on green need the outline too */
.section-head h2 { color: #fff; }
.section-head p { color: #0f3d10; font-weight: 600; }

.marquee { border-block-width: 5px; border-block-color: #000; }

.chip { background: rgba(0,0,0,0.35); border-color: #000; color: #fff; }
.chip:hover { border-color: #000; background: rgba(0,0,0,0.55); color: #fff; }
.chip.on { background: var(--gold); border-color: #000; color: #17140b; }

.bull { border-color: #000; border-width: 3px; background: var(--void-2); }
.bull figcaption { background: var(--void-2); }
.bull figcaption b { color: #cfd4dc; }

.frame img { border-color: #000; box-shadow: 14px 14px 0 rgba(0,0,0,0.45); }

footer { border-top: 5px solid #000; background: var(--void-2); color: #8b93a0; }
footer b { color: #cfd4dc; }

.close p { color: #0f3d10; font-weight: 600; }
.close { border-top: 5px solid #000; }

.herd-more .cta { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) { .sticker-float { animation: none; } }

/* Anything sitting straight on the green needs white + a hard black edge —
   dark-green-on-green was technically legible and practically muddy. */
.hero-lede,
.section-head p,
.close p,
.meter-legend,
.live-head .label {
  color: #fff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.55);
  font-weight: 600;
}
.hero-lede b, .section-head p b, .close p b { color: #ffe27a; }
.hero-lede .num { color: #ffe27a; }
.hero-actions .mono { color: #0a4a0c !important; text-shadow: none; }

/* the dark panels keep their own quieter treatment */
.numbers .meter-legend, .numbers .live-head .label { text-shadow: none; font-weight: 400; }
.numbers .live-head .label { color: #9aa0aa; }
.slab p, .slab .lore-punch { text-shadow: none; font-weight: 400; }

/* ── sticker motion ──────────────────────────────────────────────────────── */
.sticker-float.behind { z-index: 0; }

.an-bob   { animation: bob 5s ease-in-out infinite; }
.an-spin  { animation: spin 9s linear infinite; }
.an-shake { animation: shake 3.4s ease-in-out infinite; }
.an-pop   { animation: pop 6s ease-in-out infinite; }
.an-peek  { animation: peek 7s ease-in-out infinite; }

@keyframes spin {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
@keyframes shake {
  0%,88%,100% { transform: rotate(var(--tilt,0deg)) translate(0,0); }
  90% { transform: rotate(calc(var(--tilt,0deg) - 4deg)) translate(-4px,2px); }
  93% { transform: rotate(calc(var(--tilt,0deg) + 4deg)) translate(4px,-2px); }
  96% { transform: rotate(calc(var(--tilt,0deg) - 3deg)) translate(-3px,1px); }
}
@keyframes pop {
  0%,100% { transform: rotate(var(--tilt,0deg)) scale(1); }
  6%      { transform: rotate(var(--tilt,0deg)) scale(1.13); }
  12%     { transform: rotate(var(--tilt,0deg)) scale(1); }
}
/* a bull leaning in from the edge of the section */
@keyframes peek {
  0%,100% { transform: rotate(var(--tilt,0deg)) translateY(10px); }
  50%     { transform: rotate(var(--tilt,0deg)) translateY(-6px); }
}

@media (max-width: 900px) {
  /* on a phone the cut-outs would sit on top of the words */
  .sticker-float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .an-bob, .an-spin, .an-shake, .an-pop, .an-peek { animation: none; }
}
