/* Self-hosted type (OFL). Jersey ships one weight; declaring the whole weight
   range maps every font-weight to the real file, so the browser never fakes a
   smeared bold on the pixels. */
@font-face { font-family: 'Jersey 10'; src: url('/fonts/jersey-10.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: block; size-adjust: 108%; }
@font-face { font-family: 'Jersey 15'; src: url('/fonts/jersey-15.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: block; size-adjust: 122%; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-500.woff2') format('woff2'); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-700.woff2') format('woff2'); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  --ink: #2b1d3a;
  --ink-2: #6b5a80;
  --ink-3: #9a8cad;
  --paper: #fff3df;
  --cream: #fff8ee;
  --card: #fffdf8;
  --line: #2b1d3a;
  --sky: #8ed1ff;
  --sky-2: #c4e8ff;
  --pink: #ff5fa2;
  --pink-2: #ffd6ea;
  --green: #2fcf78;
  --green-2: #d4f7e3;
  --yellow: #ffd23f;
  --yellow-2: #fff1c2;
  --red: #ff5d5d;
  --red-2: #ffd9d9;
  --lilac: #a99be0;
  --night: #1a1430;
  --night-2: #241c40;
  --night-3: #322853;
  --up: #1f9d5a;
  --down: #d93a5a;
  /* --display: UI chrome, labels, numbers (finer pixel grid, crisp when small).
     --headline: the big moments (chunky pixels). */
  --display: 'Jersey 15', ui-monospace, monospace;
  --headline: 'Jersey 10', 'Jersey 15', ui-monospace, monospace;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --b: 3px;
  --shadow: 4px 4px 0 var(--ink);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  background-image: radial-gradient(rgba(43, 29, 58, .07) 1px, transparent 1px);
  background-size: 18px 18px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-synthesis: none;
}
main { flex: 1; outline: none; }
a { color: inherit; }
img { max-width: 100%; }
svg.sprite { image-rendering: pixelated; display: block; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; line-height: 1.05; letter-spacing: .02em; margin: 0; }
h1, .brand-word { font-family: var(--headline); letter-spacing: .03em; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: .92em; }
.up { color: var(--up); }
.down { color: var(--down); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── buttons & bits ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px/1 var(--display);
  padding: 11px 16px;
  border: var(--b) solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .06s, box-shadow .06s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-pink { background: var(--pink); color: #fff; }
.btn-green { background: var(--green); }
.btn-yellow { background: var(--yellow); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-sm { padding: 7px 10px; font-size: 13px; box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { opacity: .5; pointer-events: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 700 12px/1 var(--display);
  text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  background: var(--cream);
  white-space: nowrap;
}
.chip-pumping { background: #ff9cc9; }
.chip-happy, .chip-fed-ok { background: #8ff0b7; }
.chip-okay { background: #ffe680; }
.chip-sick { background: #c9d39c; }
.chip-fed { background: #ff8fab; }
.chip-dead { background: #c4b9ee; }
.chip-stage { background: var(--yellow-2); }
.chip-loading { background: #e9e2f2; color: var(--ink-2); }
.chip-ok { background: #8ff0b7; }
.chip-no { background: #f0e6da; color: var(--ink-2); }

.panel {
  background: var(--card);
  border: var(--b) solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.panel-pad { padding: 22px; }
.section { padding: 44px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); }
.section-head p { color: var(--ink-2); max-width: 560px; margin-top: 6px; }

/* ── header ─────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--cream);
  border-bottom: var(--b) solid var(--ink);
}
.top-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-pet svg { width: 40px; height: 40px; }
.brand-word { font: 700 32px/1 var(--headline); letter-spacing: .04em; }
.brand-word.small { font-size: 22px; }
.nav { display: flex; gap: 4px; }
.nav a {
  font: 700 15px/1 var(--display);
  text-decoration: none;
  padding: 9px 10px;
  border: 2px solid transparent;
}
.nav a:hover { border-color: var(--ink); background: #fff; }
.nav a.on { background: var(--ink); color: var(--cream); }
.top-search { position: relative; margin-left: auto; }
.top-search input {
  width: 230px; font: 500 14px var(--body);
  padding: 9px 12px;
  border: var(--b) solid var(--ink);
  background: #fff;
  color: var(--ink);
}
.top-search input:focus, .big-search input:focus { outline: 3px solid var(--pink); outline-offset: 1px; }
.search-results {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 40;
  width: 340px; max-height: 420px; overflow: auto;
  background: #fff; border: var(--b) solid var(--ink); box-shadow: var(--shadow);
}
.search-results a, .search-results .sr-empty {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; text-decoration: none; border-bottom: 1px solid #eee3d2;
}
.search-results a:hover, .search-results a.sel { background: var(--yellow-2); }
.search-results img, .search-results .sr-dot { width: 28px; height: 28px; border: 2px solid var(--ink); background: var(--sky-2); object-fit: cover; flex: none; }
.search-results .sr-name { font-weight: 700; }
.search-results .sr-sub { font-size: 12px; color: var(--ink-2); }
.search-results .sr-empty { color: var(--ink-2); font-size: 14px; }

.ticker {
  display: flex; align-items: center;
  border-top: 2px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  height: 32px;
  overflow: hidden;
}
.ticker-live {
  flex: none; display: flex; align-items: center; gap: 6px;
  font: 700 12px/1 var(--display); letter-spacing: .08em;
  padding: 0 12px; height: 100%;
  background: var(--red); color: #fff;
}
.ticker-live i { width: 8px; height: 8px; background: #fff; animation: blink 1s steps(2) infinite; }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.ticker-items { display: inline-flex; gap: 34px; white-space: nowrap; padding-left: 100%; animation: marquee 80s linear infinite; }
.ticker:hover .ticker-items { animation-play-state: paused; }
.ticker-items a { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.ticker-items a:hover { text-decoration: underline; }
.ticker-items .t-death { color: #ff9b9b; }
.ticker-items .t-grow { color: #8ff0b7; }
.ticker-items .t-pump { color: #ffb8d9; }
.ticker-items .t-sick { color: #d6e09f; }
.ticker-items .t-recover { color: #a5e8ff; }
.ticker-items .t-fed { color: #ffd23f; }
.ticker-items svg { width: 18px; height: 18px; }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes blink { 50% { opacity: 0; } }

/* ── hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  border-bottom: var(--b) solid var(--ink);
  background: linear-gradient(#78c6ff 0 20%, #8ed1ff 20% 40%, #a6dcff 40% 60%, #bde6ff 60% 80%, #d6f0ff 80%);
  overflow: hidden;
}
.hero .cloud { position: absolute; opacity: .95; animation: drift 60s linear infinite; }
@keyframes drift { from { transform: translateX(-10vw); } to { transform: translateX(110vw); } }
.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--wrap); margin: 0 auto; padding: 56px 20px 0;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: end;
}
.hero-copy { padding-bottom: 64px; }
.hero h1 { font-size: clamp(54px, 7.4vw, 96px); line-height: .9; letter-spacing: .035em; }
.hero h1 .pet { color: var(--pink); text-shadow: .045em .045em 0 var(--ink); }

/* The intro: each word boots in like an old console, choppy steps and a two-colour
   glitch fringe that snaps clean; "pet." lands last and gives a little hop now and then. */
.intro .w { display: inline-block; animation: boot .44s steps(4, end) both; animation-delay: calc(var(--i) * 110ms + 60ms); }
.intro .pet { animation: boot .44s steps(4, end) both, intro-hop 3.2s steps(2, end) 1.8s infinite; animation-delay: calc(var(--i) * 110ms + 60ms), 1.8s; }
@keyframes boot {
  0%   { opacity: 0; transform: translateY(-.45em) scale(1.4); text-shadow: -.07em 0 var(--sky), .07em 0 var(--pink); }
  60%  { opacity: 1; transform: translateY(.06em) scale(.96); text-shadow: -.04em 0 var(--sky), .04em 0 var(--pink); }
  100% { opacity: 1; transform: none; }
}
@keyframes intro-hop {
  0%, 84%, 100% { transform: none; }
  88% { transform: translateY(-.14em) rotate(-4deg); }
  94% { transform: translateY(0) rotate(3deg); }
}
.hero-lede { font-size: 20px; margin-top: 14px; font-weight: 500; }
.hero-rules { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 10px; }
.hero-rules li { display: flex; align-items: center; gap: 12px; font-size: 16px; background: rgba(255, 255, 255, .7); border: 2px solid var(--ink); padding: 8px 12px; }
.hero-rules svg { width: 34px; height: 34px; flex: none; }
.hero-rules b { font-family: var(--display); }
.big-search { position: relative; display: flex; gap: 10px; max-width: 560px; }
.big-search input {
  flex: 1; min-width: 0;
  font: 500 17px var(--body);
  padding: 14px 16px;
  border: var(--b) solid var(--ink);
  background: #fff; box-shadow: var(--shadow);
}
.big-search .search-results { left: 0; right: auto; width: 100%; }
.hero-stage { position: relative; display: flex; align-items: end; justify-content: center; gap: 4%; min-height: 330px; }
.hero-pet { display: flex; flex-direction: column; align-items: center; text-decoration: none; position: relative; }
.hero-pet .bubble {
  font: 700 13px/1.2 var(--display);
  background: #fff; border: 2px solid var(--ink); padding: 6px 8px; margin-bottom: 8px;
  position: relative; text-align: center; white-space: nowrap;
}
.hero-pet .bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; width: 10px; height: 8px; background: var(--ink); transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.hero-pet .bubble small { display: block; font: 500 11px var(--body); color: var(--ink-2); }
.hero-pet svg { width: 150px; height: 150px; margin-bottom: -7px; }
.hero-pet.big svg { width: 190px; height: 190px; }
.hero-pet.small svg { width: 120px; height: 120px; }
.grass { height: 34px; background: #6fd25f; border-top: var(--b) solid var(--ink); box-shadow: inset 0 -12px 0 #4fb04a; position: relative; z-index: 1; }

/* ── stat strip ─────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.stat { padding: 16px 18px; background: var(--card); border: var(--b) solid var(--ink); box-shadow: var(--shadow); }
.stat b { display: block; font: 700 34px/1 var(--display); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.stat.pink { background: var(--pink-2); }
.stat.green { background: var(--green-2); }
.stat.red { background: var(--red-2); }
.stat.yellow { background: var(--yellow-2); }

/* ── feeding banner ─────────────────────────────────────────────────── */
.feedbar {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  padding: 22px 26px;
  background: var(--yellow);
  border: var(--b) solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
}
.feedbar svg { width: 112px; height: 112px; }
.feedbar h3 { font-size: 26px; }
.feedbar p { margin-top: 6px; max-width: 620px; }
.feedbar .clock { font: 700 40px/1 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
.feedbar .clock small { display: block; font: 500 13px var(--body); margin-bottom: 6px; }

/* ── pet tiles ──────────────────────────────────────────────────────── */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  font: 700 14px/1 var(--display);
  padding: 9px 12px; border: 2px solid var(--ink); background: var(--cream);
  cursor: pointer; color: var(--ink);
}
.tab.on { background: var(--ink); color: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.tile {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--card); border: var(--b) solid var(--ink); box-shadow: var(--shadow);
  text-decoration: none; position: relative;
  transition: transform .08s;
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.tile-stage {
  height: 142px; display: flex; align-items: end; justify-content: center;
  border-bottom: var(--b) solid var(--ink);
  background: linear-gradient(#a6dcff 0 72%, #6fd25f 72% 80%, #4fb04a 80%);
  position: relative; overflow: hidden;
}
.tile-stage.sick { background: linear-gradient(#b1bd8f 0 72%, #9fb067 72% 80%, #839552 80%); }
.tile-stage.dead { background: linear-gradient(#1f1838 0 72%, #4b3f78 72% 80%, #3a3063 80%); }
.tile-stage svg { margin-bottom: 14px; }
.tile-rank {
  position: absolute; top: 8px; left: 8px;
  font: 700 13px/1 var(--display); background: var(--cream); border: 2px solid var(--ink); padding: 4px 6px;
}
.tile-fed { position: absolute; top: 8px; right: 8px; }
.tile-body { padding: 10px 12px 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.tile-name { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.tile-name b { font: 700 18px/1.1 var(--display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-name span { flex: none; font-size: 13px; color: var(--ink-2); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50%; }
.tile-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; }
.tile-meta .muted { font-weight: 400; }

.hbar { display: flex; gap: 2px; height: 12px; }
.hbar i { flex: 1; background: #eadfcf; border: 1.5px solid var(--ink); }
.hbar i.on.g { background: #3ddc84; }
.hbar i.on.y { background: var(--yellow); }
.hbar i.on.r { background: var(--red); }
.hbar.big { height: 26px; gap: 4px; }
.hbar.big i { border-width: 2px; }
.hrow { display: flex; align-items: center; gap: 8px; }
.hrow .hbar { flex: 1; }
.hrow b { font: 700 14px/1 var(--display); min-width: 24px; text-align: right; font-variant-numeric: tabular-nums; }

/* idle animations, in whole pixels so they stay crisp */
.anim-bob { animation: bob 1.1s steps(2) infinite; }
.anim-pump { animation: hop .5s steps(2) infinite; }
.anim-sick { animation: sway 2.4s steps(4) infinite; transform-origin: bottom center; }
.anim-egg { animation: wobble 1.6s steps(4) infinite; transform-origin: bottom center; }
.anim-ghost { animation: float 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-4px); } }
@keyframes hop { 50% { transform: translateY(-10px); } }
@keyframes sway { 25% { transform: rotate(-3deg); } 75% { transform: rotate(3deg); } }
@keyframes wobble { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
@keyframes float { 50% { transform: translateY(-12px); } }
/* Motion is opt-out with ?motion=off (see js/motion.js), not the OS switch. */
.no-motion .anim-bob, .no-motion .anim-pump, .no-motion .anim-sick, .no-motion .anim-egg, .no-motion .anim-ghost,
.no-motion .hero .cloud, .no-motion .ticker-items, .no-motion .intro .w { animation: none !important; }
.no-motion .ticker-items { padding-left: 0; }


/* ── graves ─────────────────────────────────────────────────────────── */
.night {
  background: var(--night);
  background-image: radial-gradient(rgba(255, 244, 201, .5) 1px, transparent 1.5px), radial-gradient(rgba(255, 244, 201, .25) 1px, transparent 1.5px);
  background-size: 120px 90px, 70px 110px;
  background-position: 0 0, 35px 50px;
  color: #efe9ff;
  border-top: var(--b) solid var(--ink);
  border-bottom: var(--b) solid var(--ink);
}
.night .section-head p, .night .muted { color: #b1a6d6; }
.night .tile, .grave {
  background: var(--night-2); color: #efe9ff; border-color: #0c0918; box-shadow: 4px 4px 0 #0c0918;
}
.grave { display: flex; flex-direction: column; text-decoration: none; border: var(--b) solid #0c0918; }
.grave:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.grave-stage {
  height: 132px; display: flex; align-items: end; justify-content: center; gap: 0;
  background: linear-gradient(#18122d 0 74%, #4b3f78 74% 82%, #3a3063 82%);
  border-bottom: var(--b) solid #0c0918; position: relative;
}
.grave-stage .ghost { position: absolute; top: 6px; right: 14px; opacity: .8; }
.grave-stage > svg { margin-bottom: 10px; }
.grave-body { padding: 10px 12px 12px; display: grid; gap: 5px; font-size: 13px; }
.grave-body .here { font-size: 12px; color: #b1a6d6; }
.grave-body b { font: 700 18px/1.1 var(--display); color: #fff; }
.grave-body .cause { color: #ff9b9b; font-weight: 700; }
.grave-body .dev { display: flex; justify-content: space-between; gap: 6px; padding-top: 6px; border-top: 1px dashed #4b3f78; }
.grave-body .dev .mono { color: #e4dcff; }
.killer-badge { background: #ff5d5d; color: #fff; border: 2px solid #0c0918; padding: 1px 5px; font: 700 11px/1.4 var(--display); }

/* ── pet page ───────────────────────────────────────────────────────── */
.crumbs { font-size: 14px; color: var(--ink-2); padding: 22px 0 14px; }
.crumbs a { text-decoration: none; font-weight: 700; }
.petpage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; align-items: start; padding-bottom: 50px; }
.pet-stage {
  position: relative; aspect-ratio: 1 / .86;
  border: var(--b) solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  background: linear-gradient(#78c6ff 0 15%, #8ed1ff 15% 30%, #a6dcff 30% 45%, #bde6ff 45% 60%, #d6f0ff 60% 76%, #6fd25f 76% 81%, #4fb04a 81% 84%, #3f8f3f 84%);
  display: flex; align-items: end; justify-content: center; overflow: hidden;
}
.pet-stage.sick { background: linear-gradient(#8f9d6a 0 15%, #a0ad7c 15% 30%, #b1bd8f 30% 45%, #c2cca2 45% 60%, #d3dbb6 60% 76%, #9fb067 76% 81%, #839552 81% 84%, #6a7a43 84%); }
.pet-stage.dead { background: linear-gradient(#120d22 0 15%, #18122d 15% 30%, #1f1838 30% 45%, #271f45 45% 60%, #302752 60% 76%, #4b3f78 76% 81%, #3a3063 81% 84%, #2a2349 84%); }
.pet-stage .stage-pet { margin-bottom: 14%; position: relative; z-index: 2; }
.pet-stage .stage-pet svg { width: 100%; height: 100%; }
.pet-stage .shadow { position: absolute; bottom: 14%; height: 3%; background: rgba(0, 0, 0, .16); z-index: 1; }
.pet-stage .ghost { position: absolute; top: 8%; right: 12%; width: 26%; z-index: 3; opacity: .85; }
.pet-stage .cloud { position: absolute; }
.pet-stage .stage-label {
  position: absolute; left: 12px; top: 12px; z-index: 4;
  font: 700 13px/1 var(--display); background: var(--cream); border: 2px solid var(--ink); padding: 5px 8px;
}
.pet-stage.dying .stage-pet { animation: dying 1.6s steps(8) forwards; }
@keyframes dying {
  0% { transform: none; filter: none; }
  20% { transform: translateX(-8px); filter: brightness(2); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px) rotate(-8deg); filter: grayscale(1); }
  100% { transform: translateY(40px) rotate(90deg); opacity: 0; filter: grayscale(1); }
}
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.pet-head h1 { font-size: clamp(40px, 5vw, 60px); }
.pet-head .coin { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 18px; font-weight: 500; flex-wrap: wrap; }
.pet-head .coin img { width: 30px; height: 30px; border: 2px solid var(--ink); object-fit: cover; }
.pet-head .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.health-big { margin-top: 22px; padding: 18px 20px; }
.health-big .top-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.health-big .top-row b { font: 700 52px/1 var(--display); font-variant-numeric: tabular-nums; }
.health-big .top-row span { font: 700 16px var(--display); color: var(--ink-2); }
.health-big .blurb { margin-top: 10px; color: var(--ink-2); }
.parts { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed #e3d6c3; }
.part { display: grid; grid-template-columns: 150px 1fr 54px; gap: 10px; align-items: center; font-size: 14px; }
.part .meter { height: 12px; border: 2px solid var(--ink); background: #f1e8da; position: relative; }
.part .meter i { position: absolute; inset: 0 auto 0 0; background: var(--pink); }
.part .w { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 18px; border: var(--b) solid var(--ink); background: var(--card); box-shadow: var(--shadow); }
.kv div { padding: 12px 14px; border-right: 2px solid #eadfcf; border-bottom: 2px solid #eadfcf; }
.kv div:nth-child(4n) { border-right: 0; }
.kv div:nth-last-child(-n + 4) { border-bottom: 0; }
.kv span { display: block; font-size: 12px; color: var(--ink-2); font-weight: 500; }
.kv b { font: 700 18px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.chart-box { margin-top: 18px; padding: 16px 18px 12px; }
.chart-box h3 { font-size: 18px; display: flex; justify-content: space-between; align-items: baseline; }
.chart-box h3 small { font: 500 13px var(--body); color: var(--ink-2); }
.chart-box svg { width: 100%; height: 150px; display: block; margin-top: 10px; }
.feed-box { margin-top: 18px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.feed-box h3 { font-size: 18px; }
.feed-box ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.dev-box { margin-top: 18px; padding: 18px 20px; background: var(--night-2); color: #efe9ff; border-color: #0c0918; box-shadow: 6px 6px 0 #0c0918; }
.dev-box h3 { font-size: 18px; color: #fff; }
.dev-box .addr { font-family: var(--mono); font-size: 15px; word-break: break-all; margin: 10px 0 12px; padding: 10px 12px; background: #120d22; border: 2px solid #0c0918; color: #fff; }
.dev-box .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dev-box .btn { background: #efe9ff; }
.dev-box .note { font-size: 13px; color: #b1a6d6; margin-top: 12px; }
.card-preview { margin-top: 18px; border: var(--b) solid var(--ink); box-shadow: var(--shadow); display: block; width: 100%; height: auto; image-rendering: pixelated; background: #a6dcff; aspect-ratio: 1200 / 630; }

/* ── tables ─────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: var(--b) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font: 700 13px/1 var(--display); text-align: left; padding: 12px 12px; background: var(--ink); color: var(--cream); white-space: nowrap; }
td { padding: 9px 12px; border-top: 2px solid #eee3d2; vertical-align: middle; white-space: nowrap; }
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: var(--yellow-2); }
td.r, th.r { text-align: right; }
.cell-pet { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cell-pet svg { width: 44px; height: 44px; flex: none; }
.cell-pet b { font: 700 16px/1.1 var(--display); display: block; }
.cell-pet span { font-size: 12px; color: var(--ink-2); }
.td-health { min-width: 150px; }
.blockers { font-size: 12px; color: var(--ink-2); white-space: normal; max-width: 240px; }
.rank { font: 700 16px var(--display); }
.rank-1 { color: #d49100; }

/* ── feeding page ───────────────────────────────────────────────────── */
.feed-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 34px 0 10px; align-items: stretch; }
.feed-hero .panel { padding: 24px 26px; }
.feed-hero h1 { font-size: clamp(38px, 5vw, 56px); }
.countdown { font: 700 clamp(44px, 7vw, 76px)/1 var(--display); font-variant-numeric: tabular-nums; margin: 10px 0 6px; }
.steps { counter-reset: s; display: grid; gap: 12px; margin-top: 18px; padding: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.steps li::before { content: counter(s); font: 700 18px/36px var(--display); text-align: center; background: var(--ink); color: var(--cream); width: 36px; height: 36px; }
.wallet-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 2px dashed #eadfcf; font-size: 15px; }
.wallet-row:last-child { border-bottom: 0; }
.wallet-row b { font: 700 18px var(--display); font-variant-numeric: tabular-nums; }
.preview-box { margin-top: 14px; padding: 12px 14px; background: var(--yellow-2); border: 2px solid var(--ink); font-size: 14px; }

/* ── how page ───────────────────────────────────────────────────────── */
.how { display: grid; gap: 24px; padding: 34px 0 60px; }
.how h1 { font-size: clamp(38px, 5vw, 56px); }
.how h2 { font-size: 28px; margin-bottom: 12px; }
.how .panel { padding: 24px 26px; }
.how p + p { margin-top: 10px; }
.how ul { margin: 10px 0 0; padding-left: 20px; }
.how li + li { margin-top: 6px; }
.lifecycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.life { border: var(--b) solid var(--ink); padding: 14px; background: var(--cream); display: grid; justify-items: center; text-align: center; gap: 8px; }
.life svg { width: 110px; height: 110px; }
.life b { font: 700 20px var(--display); }
.life span { font-size: 14px; color: var(--ink-2); }
.stages { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.stages div { display: grid; justify-items: center; gap: 4px; font-size: 13px; text-align: center; }
.stages b { font: 700 16px var(--display); }
.weights { display: grid; gap: 10px; margin-top: 14px; }
.weight { display: grid; grid-template-columns: 54px 180px 1fr; gap: 12px; align-items: center; }
.weight b { font: 700 22px var(--display); text-align: right; }
.weight span { font-weight: 700; }
.weight small { color: var(--ink-2); font-size: 14px; }
.ca { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ca code { font-family: var(--mono); background: #fff; border: 2px solid var(--ink); padding: 8px 10px; word-break: break-all; }

/* ── misc ───────────────────────────────────────────────────────────── */
.empty { padding: 40px 20px; text-align: center; color: var(--ink-2); display: grid; justify-items: center; gap: 12px; }
.empty svg { width: 96px; height: 96px; }
.loading { padding: 80px 0; display: grid; justify-items: center; gap: 14px; color: var(--ink-2); font: 700 18px var(--display); }
.loading svg { width: 96px; height: 96px; }
.more { display: flex; justify-content: center; margin-top: 22px; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.toolbar input {
  font: 500 15px var(--body); padding: 9px 12px; border: var(--b) solid var(--ink); background: #fff; min-width: 240px; color: var(--ink);
}
.night .toolbar input { background: #120d22; color: #fff; border-color: #0c0918; }
.night .tab { background: var(--night-3); color: #efe9ff; border-color: #0c0918; }
.night .tab.on { background: #efe9ff; color: var(--night); }
.killers { margin-bottom: 22px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.killers a { text-decoration: none; display: inline-flex; gap: 8px; align-items: center; background: var(--night-3); border: 2px solid #0c0918; padding: 6px 10px; font-size: 13px; }
.killers a:hover { background: #3d3266; }
.page-title { padding: 34px 0 6px; }
.page-title h1 { font-size: clamp(38px, 5vw, 56px); }
.page-title p { color: var(--ink-2); margin-top: 8px; max-width: 680px; font-size: 17px; }
.night .page-title p { color: #b1a6d6; }

.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: grid; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.toast {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center;
  padding: 10px 12px; text-decoration: none;
  background: var(--night-2); color: #fff; border: var(--b) solid #0c0918; box-shadow: 4px 4px 0 #0c0918;
  animation: toast-in .25s steps(3);
}
.toast.grow { background: var(--card); color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow); }
.toast svg { width: 52px; height: 52px; }
.toast b { font: 700 15px var(--display); display: block; }
.toast span { font-size: 13px; opacity: .85; }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } }

.foot { border-top: var(--b) solid var(--ink); background: var(--cream); margin-top: 40px; }
.night + .foot, .graveyard-page ~ .foot { margin-top: 0; }
.foot-inner { max-width: var(--wrap); margin: 0 auto; padding: 26px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; font-size: 14px; }
.foot-inner p { margin-top: 6px; }

/* ── responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1040px) {
  .nav a { padding: 8px 6px; font-size: 14px; }
  .top-search input { width: 170px; }
}
@media (max-width: 900px) {
  .top-inner { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .top-buy { display: none; }
  .top-search input { width: 180px; }
  .hero-inner, .petpage, .feed-hero { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 10px; }
  .hero-stage { min-height: 250px; }
  .hero-pet svg { width: 110px; height: 110px; }
  .hero-pet.big svg { width: 140px; height: 140px; }
  .hero-pet.small svg { width: 92px; height: 92px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feedbar { grid-template-columns: auto 1fr; }
  .feedbar .clock { grid-column: 1 / -1; text-align: left; }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .kv div:nth-child(4n) { border-right: 2px solid #eadfcf; }
  .kv div:nth-child(2n) { border-right: 0; }
  .kv div:nth-last-child(-n + 4) { border-bottom: 2px solid #eadfcf; }
  .kv div:nth-last-child(-n + 2) { border-bottom: 0; }
  .lifecycle { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap, .top-inner, .hero-inner, .foot-inner { padding-left: 16px; padding-right: 16px; }
  .brand-word { font-size: 24px; }
  .top-search { margin-left: auto; }
  .top-search input { width: 150px; }
  .search-results { width: calc(100vw - 32px); }
  .hero-inner { padding-top: 30px; }
  .hero-lede { font-size: 17px; }
  .big-search { flex-direction: column; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile-stage { height: 120px; }
  .tile-stage svg { width: 92px !important; height: 92px !important; }
  .part { grid-template-columns: 110px 1fr 44px; }
  .weight { grid-template-columns: 44px 1fr; }
  .weight small { grid-column: 2; }
  .feedbar svg { width: 72px; height: 72px; }
  .feedbar h3 { font-size: 21px; }
}

/* ── launch ─────────────────────────────────────────────────────────── */
.launch { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 28px; align-items: start; padding: 18px 0 50px; }
.launch-form { display: grid; gap: 22px; }
.step { font-size: 24px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step span { width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--cream); font-size: 18px; }
.lbl { display: block; font: 700 14px var(--display); margin: 14px 0 8px; }
.pick-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.pick { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; background: var(--cream); border: var(--b) solid var(--ink); cursor: pointer; font: 700 13px var(--display); color: var(--ink); }
.pick:hover { background: #fff; }
.pick.on { background: var(--yellow); box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 38px; height: 38px; border: var(--b) solid var(--ink); cursor: pointer; background: linear-gradient(var(--c) 0 62%, var(--s) 62%); }
.swatch.bg { width: 50px; }
.swatch.on { box-shadow: var(--shadow); transform: translate(-2px, -2px); outline: 3px solid #fff; outline-offset: -6px; }
.launch-form label:not(.lbl) { display: grid; gap: 6px; font: 700 14px var(--display); margin-top: 12px; }
.launch-form label small { font: 400 12px var(--body); }
.launch-form input, .launch-form textarea {
  font: 500 15px var(--body); padding: 10px 12px; border: var(--b) solid var(--ink); background: #fff; color: var(--ink); width: 100%; resize: vertical;
}
.launch-form input:focus, .launch-form textarea:focus { outline: 3px solid var(--pink); outline-offset: 1px; }
.fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.fields.three { grid-template-columns: repeat(3, 1fr); }
.wallet-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; background: var(--yellow-2); border: 2px solid var(--ink); font-size: 14px; }
.launch-notes { margin: 16px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.form-error { margin-top: 14px; padding: 10px 12px; background: var(--red-2); border: 2px solid var(--ink); font-weight: 500; }
.btn-big { margin-top: 18px; width: 100%; font-size: 22px; padding: 16px; }
.launch-preview { position: sticky; top: 120px; display: grid; gap: 18px; }
.preview-card { padding: 16px; display: grid; gap: 10px; }
.preview-art svg { width: 100%; height: auto; display: block; border: var(--b) solid var(--ink); image-rendering: pixelated; }
.preview-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.preview-meta b { font: 700 26px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-meta span { font: 700 16px var(--display); color: var(--ink-2); }
.life-mini h3 { font-size: 18px; margin-bottom: 10px; }
.mini-row { display: flex; justify-content: space-around; text-align: center; }
.mini-row div { display: grid; justify-items: center; gap: 4px; font: 700 13px var(--display); }
.hatch-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(43, 29, 58, .55); display: grid; place-items: center; padding: 16px; }
.hatch-box { padding: 30px 34px; text-align: center; display: grid; justify-items: center; gap: 10px; max-width: 420px; }
.hatch-box h2 { font-size: 28px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.curve-bar { height: 16px; border: 2px solid var(--ink); background: #f1e8da; position: relative; margin-top: 6px; }
.curve-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--green), #8ff0b7); }
.warn { padding: 10px 12px; background: var(--red-2); border: 2px solid var(--ink); font-weight: 700; margin-top: 14px; }
@media (max-width: 900px) {
  .launch { grid-template-columns: 1fr; }
  .launch-preview { position: static; order: -1; }
  .preview-art svg { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .pick-row { grid-template-columns: repeat(3, 1fr); }
  .fields, .fields.three { grid-template-columns: 1fr; }
}

/* ───────────────────────────────────────── holder airdrop (feeding page) ── */
.holder-drop { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; padding: 24px 26px; background: var(--pink-2); }
.holder-drop h2 { font-size: 28px; margin-bottom: 6px; }
.drop-rules { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.drop-count { margin-top: 14px; font-size: 15px; }
.drop-count b { font: 700 22px var(--display); }
.drop-check { align-self: start; background: var(--card); border: var(--b) solid var(--ink); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; }
.drop-row { display: flex; gap: 8px; }
.drop-row input { flex: 1; min-width: 0; font: 500 14px var(--mono); padding: 10px 12px; border: var(--b) solid var(--ink); background: #fff; color: var(--ink); }
.drop-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.drop-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 2px dashed #eadfcf; font-size: 14px; }
.drop-list li:last-child { border-bottom: 0; }
.holder-drop > * { min-width: 0; }
@media (max-width: 900px) { .holder-drop { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .holder-drop { padding: 18px 16px; } .drop-row { flex-wrap: wrap; } .drop-row .btn { flex: 1; } }


/* ════════════════════════════════════════════════════════════ motion chrome ══ */
.top { transition: transform .35s cubic-bezier(.7, 0, .2, 1); }
.top.tucked { transform: translateY(-100%); }
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; height: 5px; z-index: 200; pointer-events: none; }
.scroll-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--yellow), var(--green)); transform-origin: 0 50%; transform: scaleX(0); }
.curtain { position: fixed; inset: 0; z-index: 500; pointer-events: none; visibility: hidden; }
.curtain.on { visibility: visible; pointer-events: auto; }
.curtain-a, .curtain-b { position: absolute; inset: 0; transform: translateY(100%); }
.curtain-a { background: var(--pink); }
.curtain-b { background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--yellow); }
.curtain-b .sprite { width: 120px; height: 120px; animation: curtain-wobble .5s steps(2, end) infinite; }
#curtain-label { font: 700 clamp(40px, 6vw, 72px)/1 var(--headline); letter-spacing: .04em; text-transform: uppercase; }
@keyframes curtain-wobble { 0% { transform: rotate(-6deg); } 100% { transform: rotate(6deg); } }
.tile:hover .tile-stage .sprite { animation: hop-tile .45s steps(3, end); }
@keyframes hop-tile { 0%, 100% { transform: none; } 50% { transform: translateY(-14%) rotate(-4deg); } }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 3px; background: var(--pink); transition: right .2s steps(4, end); }
.nav a:hover::after, .nav a.on::after { right: 0; }

/* ═══════════════════════════════════════════════════════════════ the story ══ */
.story { position: relative; overflow: clip; } /* clip, not hidden: hidden breaks position: sticky inside */
.st-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }
.st-kicker { font: 700 18px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; opacity: .75; margin-bottom: 22px; }
.st-title { font: 700 clamp(64px, 9vw, 140px)/.9 var(--headline); letter-spacing: .03em; }
.st-title .pink, .finale-title .pink { color: var(--pink); text-shadow: .045em .045em 0 var(--ink); }
.st-lede { font-size: clamp(18px, 1.6vw, 22px); margin: 18px 0 36px; max-width: 620px; }

/* I · manifesto */
.st-manifesto { background: var(--night); color: #efe9ff; padding: 22vh 0; }
.st-manifesto::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(239, 233, 255, .18) 1.5px, transparent 2px); background-size: 34px 34px; }
.st-big { font: 700 clamp(40px, 6.2vw, 92px)/1.04 var(--headline); letter-spacing: .02em; max-width: 1100px; }
.mw.up { color: #3ddc84; } .mw.warn { color: var(--yellow); } .mw.down { color: var(--red); }

/* II · life (pinned) */
.st-life { height: 100vh; min-height: 620px; }
.life-sky, .life-sick, .life-night, .life-flash { position: absolute; inset: 0; }
.life-sky { background: linear-gradient(#8ed1ff 0 25%, #a6dbff 25% 50%, #bee5ff 50% 75%, #d6efff 75%); }
.life-sick { background: linear-gradient(#b9bc76 0 25%, #c6c884 25% 50%, #d2d493 50% 75%, #dedfa4 75%); opacity: 0; }
.life-night { background: #1a1430; opacity: 0; }
.life-night::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#efe9ff 1.5px, transparent 2px); background-size: 90px 70px; opacity: .5; }
.life-flash { background: #fffdf8; opacity: 0; z-index: 3; }
.life-grid { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px; height: 100%; }
.life-copy { display: grid; gap: 18px; align-content: center; }
.life-copy .st-kicker { color: var(--ink); opacity: .9; background: var(--cream); justify-self: start; padding: 8px 12px; border: 3px solid var(--ink); }
.life-stage-label { position: relative; height: clamp(76px, 10vw, 150px); }
.ls { position: absolute; left: 0; top: 0; font: 700 clamp(76px, 10vw, 150px)/1 var(--headline); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); text-shadow: 6px 6px 0 #fffdf8; opacity: 0; }
.ls.on { opacity: 1; }
.ls-sick { color: #c79a00; } .ls-dead { color: var(--red); text-shadow: 6px 6px 0 #0e0a1e; }
.life-mc, .life-hp { display: flex; align-items: center; gap: 14px; background: var(--card); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 12px 16px; justify-self: start; min-width: min(420px, 100%); }
.life-mc small, .life-hp small { font: 700 13px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.life-mc b { font: 700 46px/1 var(--headline); font-variant-numeric: tabular-nums; margin-left: auto; }
.life-hp b { font: 700 30px/1 var(--headline); min-width: 42px; text-align: right; }
.life-bar { flex: 1; display: flex; gap: 4px; height: 26px; padding: 3px; background: var(--ink); }
.life-bar i { flex: 1; background: rgba(239, 233, 255, .18); }
.life-plaque { display: grid; gap: 10px; justify-items: start; background: #241c40; color: #efe9ff; border: 4px solid #efe9ff; box-shadow: 8px 8px 0 #4b3f78; padding: 18px 22px; opacity: 0; }
.life-plaque b { font: 700 40px/1 var(--headline); letter-spacing: .03em; }
.chip-red { background: var(--red); color: var(--ink); border: 3px solid #0e0a1e; padding: 4px 10px; font: 700 14px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.life-dev { font: 700 26px var(--headline); color: var(--yellow); letter-spacing: .06em; }
.life-stage { position: relative; height: min(68vh, 560px); }
.life-chart { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.life-chart path { fill: none; stroke-width: 10; stroke-linecap: square; }
.lc-up { stroke: #2fcf78; } .lc-down, .lc-rug { stroke: var(--red); }
.lp { position: absolute; left: calc(50% - 160px); bottom: 6%; width: 320px; opacity: 0; }
.lp.on { opacity: 1; }
.lp .sprite { width: 100%; height: auto; }
.lp-grave { z-index: 2; }

/* III · split */
.st-split { background: var(--yellow-2); padding: 20vh 0; }
.split { display: flex; min-height: 190px; border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); background: var(--card); }
.split-seg { flex: 0 0 var(--w); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 20px 22px; overflow: hidden; min-width: 0; }
.split-seg b { font: 700 clamp(56px, 7vw, 96px)/.9 var(--headline); }
.split-seg > span { font-size: 15px; font-weight: 500; max-width: 340px; }
.seg-a { background: var(--pink); color: #fffdf8; }
.seg-a b { text-shadow: 5px 5px 0 var(--ink); }
.seg-b { background: var(--yellow); border-left: 4px solid var(--ink); }

/* IV · stacking cards */
.st-steps { background: var(--sky-2); padding: 16vh 0 14vh; }
.step-stack { display: flex; flex-direction: column; gap: 34vh; }
.step-spacer { height: 22vh; flex: none; }
.step-card { position: sticky; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; min-height: 250px; padding: 34px 36px; background: var(--card); border: 4px solid var(--ink); box-shadow: 10px 10px 0 var(--ink); transform-origin: 50% 0; }
.sc-1 { top: 120px; } .sc-2 { top: 150px; background: #fff7e0; } .sc-3 { top: 180px; background: #ffeef6; }
.step-n { display: grid; place-items: center; width: 92px; height: 92px; background: var(--pink); color: #fffdf8; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); font: 700 64px/1 var(--headline); }
.step-card h3 { font: 700 clamp(40px, 4.4vw, 64px)/1 var(--headline); letter-spacing: .03em; }
.step-card p { margin-top: 8px; font-size: 17px; max-width: 460px; color: var(--ink-2); }
.step-art { display: flex; gap: 6px; align-items: flex-end; }
.step-art .sprite { width: 76px; height: 76px; }
.name-tag, .ca-pill { font: 700 34px/1 var(--headline); letter-spacing: .05em; border: 4px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 12px 18px; background: var(--card); white-space: nowrap; }
.ca-pill b { color: var(--pink); background: var(--yellow); padding: 0 4px; margin-left: 2px; }

/* V · sliding names */
.st-names { background: var(--ink); padding: 7vh 0; display: grid; gap: 1vh; }
.names-row { white-space: nowrap; width: max-content; font: 700 clamp(84px, 12vw, 190px)/1 var(--headline); letter-spacing: .03em; }
.names-row span { display: inline-block; }
.names-row i { font-style: normal; display: inline-block; margin: 0 .25em; color: var(--yellow); font-size: .5em; vertical-align: middle; }
.nr-1 span { color: var(--pink); }
.nr-2 span { color: transparent; -webkit-text-stroke: 3px #fffdf8; }

/* finale */
.st-finale { background: linear-gradient(#8ed1ff 0 30%, #a6dbff 30% 60%, #c4e8ff 60%); padding: 16vh 0 0; text-align: center; }
.st-finale::after { content: ""; display: block; height: 70px; background: linear-gradient(#3ddc84 0 40px, #2bb56a 40px); border-top: var(--b) solid var(--ink); }
.finale-title { font: 700 clamp(84px, 13vw, 210px)/.9 var(--headline); letter-spacing: .03em; }
.fm { display: inline-block; overflow: hidden; padding-bottom: .14em; vertical-align: bottom; }
.fm > span { display: inline-block; }
.finale-egg { position: relative; width: 240px; height: 240px; margin: 10px auto 0; }
.fe { position: absolute; inset: 0; }
.fe .sprite { width: 100%; height: 100%; }
.fe-pet { opacity: 0; }
html:not(.motion) .fe-pet { opacity: 1; }
html:not(.motion) .fe-egg { opacity: 0; }
.finale-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; padding: 26px 0 70px; }
.finale-ctas .btn-big { width: auto; margin: 0; min-width: 220px; }

@media (max-width: 900px) {
  .life-grid { grid-template-columns: 1fr; gap: 10px; align-content: center; padding-top: 64px; }
  .life-copy { gap: 10px; }
  .life-copy .st-kicker { display: none; }
  .life-stage { height: 34vh; }
  .lp { width: 210px; left: calc(50% - 105px); }
  .life-mc b { font-size: 34px; }
  .life-plaque b { font-size: 30px; }
  .step-card { grid-template-columns: auto 1fr; padding: 24px; min-height: 0; }
  .step-art { grid-column: 1 / -1; flex-wrap: wrap; }
  .step-n { width: 64px; height: 64px; font-size: 44px; }
  .split { flex-direction: column; }
  .split-seg { flex-basis: auto !important; }
  .seg-b { border-left: 0; border-top: 4px solid var(--ink); }
}

/* ── official CA bar (under the ticker, on every page) ── */
.ca-bar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; border-top: var(--b) solid var(--ink); font-size: 15px; text-align: center; }
.ca-bar a { color: inherit; font-weight: 700; }
.ca-none { background: var(--yellow); color: var(--ink); }
.ca-live { background: #3ddc84; color: var(--ink); }
.ca-live code { font: 600 14px var(--mono); background: var(--card); border: 2px solid var(--ink); padding: 4px 8px; word-break: break-all; }
@media (max-width: 560px) { .ca-bar { font-size: 13px; padding: 6px 12px; } .ca-live code { font-size: 12px; } }
