/* gptsfun · censo de critters — terminal pixel, menta sobre negro, todo se mueve en pasos. */

/* Pixelify sin los dígitos (U+0030-0039): en esa fuente el 5 parece una S y el 2 un 8 a tamaño chico.
   Los números caen a JB Mono, que se lee perfecto. */
@font-face { font-family: "Pixelify"; src: url("/fonts/pixelify-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Pixelify"; src: url("/fonts/pixelify-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-002F, U+003A-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JB Mono"; src: url("/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JB Mono"; src: url("/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #0f1110;
  --bg-2: #151917;
  --bg-3: #1b201e;
  --line: #262d2a;
  --line-2: #36403b;
  --text: #e6efe9;
  --soft: #c3cec8;
  --muted: #8e9a94;
  --dim: #5f6a65;
  --mint: #3ddc97;
  --mint-2: #aaf8d4;
  --mint-3: #22a06b;
  --mint-ink: #0e2a1e;
  --gold: #f5c542;
  --red: #e5484d;
  --pixel: "Pixelify", "JB Mono", ui-monospace, monospace;
  --mono: "JB Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 var(--mono);
  overflow-x: hidden;
}
/* Líneas de monitor viejo, muy sutiles. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0, 0, 0, 0.14) 2px 3px);
}
img { max-width: 100%; }
a { color: var(--mint); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px dashed var(--mint-2); outline-offset: 3px; }
::selection { background: var(--mint); color: var(--mint-ink); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--mint); color: var(--mint-ink); padding: 8px 12px; }
.skip:focus { left: 16px; }

/* ---------- cielo de puntos que se desplaza ---------- */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky-layer { position: absolute; left: 0; background-repeat: repeat-x; will-change: transform; }
.sky-a { top: 40px; width: 3200px; height: 700px; background-image: url("/bg-clouds.svg"); background-size: 1600px 700px; animation: drift-a 140s linear infinite; }
.sky-b { top: 420px; width: 2200px; height: 480px; background-image: url("/bg-clouds.svg"); background-size: 1100px 480px; opacity: 0.55; animation: drift-b 90s linear infinite; }
@keyframes drift-a { to { transform: translateX(-1600px); } }
@keyframes drift-b { to { transform: translateX(-1100px); } }

/* ---------- ticker en vivo ---------- */
.ticker { position: relative; overflow: hidden; white-space: nowrap; border-bottom: 1px dashed var(--line-2); background: rgba(15, 17, 16, 0.9); color: var(--muted); font-size: 12px; line-height: 1; }
.ticker-track { display: inline-flex; animation: marquee 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: inline-flex; padding: 9px 0; }
.ticker-group > span { padding: 0 18px; border-right: 1px dashed var(--line-2); }
.ticker b { color: var(--text); font-weight: 700; }
.ticker .tk { color: var(--mint); text-transform: uppercase; letter-spacing: 0.12em; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--mint); vertical-align: 1px; animation: blink 1.2s steps(1, end) infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- cabecera ---------- */
.top { max-width: var(--wrap); margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 22px/1 var(--pixel); }
.brand img { image-rendering: pixelated; animation: bob 1.8s steps(1, end) infinite; }
.brand:hover img { animation-duration: 0.4s; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 6px 10px; color: var(--muted); text-decoration: none; border: 1px dashed transparent; }
.nav a:hover { color: var(--text); border-color: var(--line-2); }
.nav a[aria-current="page"] { color: var(--mint); border-color: var(--mint-3); }
@keyframes bob { 50% { transform: translateY(-2px); } }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ---------- tipografía ---------- */
h1, h2, h3 { font-family: var(--pixel); font-weight: 600; line-height: 1.06; letter-spacing: 0.01em; margin: 0 0 12px; text-wrap: balance; }
h1 { font-size: clamp(34px, 6.4vw, 62px); }
h2 { font-size: clamp(22px, 3.2vw, 30px); }
p { margin: 0 0 12px; }
.eyebrow { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.lede { max-width: 54ch; color: var(--soft); font-size: 16px; }
.sub { color: var(--muted); }
.fine { font-size: 12px; color: var(--dim); }
.warn { color: var(--gold); }
.hl { position: relative; color: var(--mint); text-shadow: 0 0 22px rgba(61, 220, 151, 0.35); animation: glitch 7s steps(1, end) infinite; }
@keyframes glitch {
  0%, 91%, 100% { text-shadow: 0 0 22px rgba(61, 220, 151, 0.35); transform: none; }
  92% { text-shadow: 3px 0 0 var(--red), -3px 0 0 #7fe3f0; transform: translateX(2px); }
  94% { text-shadow: -2px 0 0 var(--red), 2px 0 0 #7fe3f0; transform: translateX(-2px); }
  96% { text-shadow: 0 0 22px rgba(61, 220, 151, 0.35); transform: none; }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 17px/1.1 var(--pixel); color: var(--mint-ink); background: var(--mint);
  box-shadow: 4px 4px 0 var(--mint-3);
  transition: transform 0.08s steps(1, end), box-shadow 0.08s steps(1, end);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--mint-3); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--mint-3); }
.btn[disabled] { cursor: progress; opacity: 0.7; transform: none; }
.btn-ghost { background: transparent; color: var(--mint); box-shadow: inset 0 0 0 2px var(--mint-3), 4px 4px 0 var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--mint), 5px 5px 0 var(--line); }
.btn-big { width: 100%; padding: 16px 22px; font-size: 21px; }
.btn-small { padding: 8px 12px; font-size: 14px; box-shadow: 3px 3px 0 var(--mint-3); }

/* ---------- paneles con esquinas de visor ---------- */
.panel { position: relative; margin: 0 0 28px; padding: 24px; background: rgba(21, 25, 23, 0.86); border: 1px dashed var(--line-2); }
.panel::before, .panel::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--mint); pointer-events: none; }
.panel::before { top: -2px; left: -2px; border-width: 3px 0 0 3px; }
.panel::after { right: -2px; bottom: -2px; border-width: 0 3px 3px 0; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.panel-head h2 { margin: 0; }
.panel-head a { font-size: 13px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 0 28px; align-items: start; }

/* ---------- héroe ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding: 30px 0 44px; }
.mascot { position: relative; justify-self: center; width: min(380px, 80vw); padding-top: 40px; }
.mascot-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.mascot-img { display: block; width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 0 34px rgba(61, 220, 151, 0.2)); }
.mascot.poke .mascot-img { animation: squish 0.36s steps(3, end); }
@keyframes squish { 40% { transform: scale(1.08, 0.88) translateY(6%); } 70% { transform: scale(0.96, 1.06); } }
.bubble {
  position: absolute; top: 0; right: -4%; max-width: 70%; min-height: 44px; margin: 0;
  padding: 10px 12px; background: var(--text); color: var(--mint-ink);
  font: 600 14px/1.3 var(--pixel);
  box-shadow: 0 -4px 0 var(--text), 0 4px 0 var(--text), -4px 0 0 var(--text), 4px 0 0 var(--text);
}
.bubble::before, .bubble::after { content: ""; position: absolute; background: var(--text); }
.bubble::before { width: 12px; height: 12px; left: 18%; bottom: -22px; }
.bubble::after { width: 7px; height: 7px; left: 12%; bottom: -36px; }
.bubble.awake { background: var(--mint); box-shadow: 0 -4px 0 var(--mint), 0 4px 0 var(--mint), -4px 0 0 var(--mint), 4px 0 0 var(--mint); }
.bubble.awake::before, .bubble.awake::after { background: var(--mint); }
.caret { display: inline-block; width: 0.55em; height: 1em; margin-left: 2px; background: currentColor; vertical-align: -0.15em; animation: blink 1s steps(1, end) infinite; }

/* ---------- barra de progreso por segmentos ---------- */
.progress { margin: 20px 0; padding: 14px 16px; border: 1px dashed var(--line-2); background: rgba(15, 17, 16, 0.75); }
.progress-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.progress-head b { color: var(--mint); font: 600 24px/1 var(--pixel); }
.progress-next { margin: 10px 0 0; font-size: 13px; color: var(--soft); }
.progress-next b { color: var(--mint); }
.segbar { display: grid; gap: 3px; }
.segbar.big { grid-template-columns: repeat(40, 1fr); height: 18px; }
.segbar.small { grid-template-columns: repeat(20, 1fr); height: 8px; gap: 2px; }
.segbar i { display: block; background: var(--line); }
.segbar i.on { background: var(--mint); box-shadow: 0 0 8px rgba(61, 220, 151, 0.35); animation: seg-on 0.3s steps(2, end) both; }
.segbar.big i.on:last-of-type { animation: seg-on 0.3s steps(2, end) both, seg-pulse 1s steps(1, end) 1.2s infinite; }
@keyframes seg-on { from { background: var(--line); box-shadow: none; } }
@keyframes seg-pulse { 50% { background: var(--mint-2); } }
.mine { margin: 0 0 14px; padding: 8px 12px; border: 1px solid var(--mint-3); background: rgba(61, 220, 151, 0.08); font-size: 14px; }

/* ---------- formulario del censo ---------- */
.founders { margin: 0; color: var(--soft); font-size: 14px; }
.founders b { color: var(--gold); font: 600 18px var(--pixel); }
.census-form { display: grid; gap: 22px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; margin-bottom: 10px; padding: 0; font: 600 16px var(--pixel); color: var(--mint-2); }
.hint { margin: 6px 0 0; font-size: 12px; color: var(--dim); }
.handle-row { display: flex; align-items: center; border-bottom: 2px dotted var(--line-2); }
.handle-row:focus-within { border-bottom-color: var(--mint); }
.handle-row span { padding-right: 6px; color: var(--mint); font: 600 22px var(--pixel); }
.handle-row input { flex: 1; min-width: 0; padding: 10px 0; border: 0; outline: none; background: transparent; color: var(--text); font: 18px var(--mono); }
.handle-row input::placeholder { color: var(--dim); }
.scar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.scar { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--muted); background: var(--bg-2); border: 1px dashed var(--line-2); cursor: pointer; transition: border-color 0.1s steps(1, end); }
.scar input { appearance: none; position: absolute; top: 8px; left: 8px; width: 14px; height: 14px; margin: 0; border: 2px solid var(--line-2); background: var(--bg); cursor: pointer; }
.scar input:checked { border-color: var(--mint); background: var(--mint); box-shadow: inset 0 0 0 2px var(--bg); }
.scar img { width: 102px; height: auto; image-rendering: pixelated; }
.scar:hover { border-color: var(--mint-3); color: var(--text); }
.scar:hover img { animation: hop 0.5s steps(3, end); }
.scar:has(input:checked) { border: 1px solid var(--mint); color: var(--text); background: rgba(61, 220, 151, 0.08); box-shadow: 0 0 0 1px var(--mint), 0 0 26px rgba(61, 220, 151, 0.14); }
.scar:has(input:checked) img { animation: hop 0.5s steps(3, end); }
@keyframes hop { 50% { transform: translateY(-8px); } }
.preview { display: flex; align-items: center; gap: 16px; padding: 10px 14px; border: 1px dashed var(--mint-3); background: rgba(61, 220, 151, 0.05); }
.preview[hidden] { display: none; }
.preview img { width: 120px; height: auto; image-rendering: pixelated; flex: none; }
.preview img.pop { animation: pop-in 0.42s steps(4, end); }
.preview p { margin: 0; font-size: 14px; color: var(--soft); }
.preview b { color: var(--mint); font: 600 22px var(--pixel); }
@keyframes pop-in { from { transform: scale(0.5) translateY(14px); opacity: 0; } }
.form-error { margin: 0 0 18px; padding: 10px 14px; border: 1px solid var(--red); background: rgba(229, 72, 77, 0.1); color: #ffc2c4; animation: shake 0.4s steps(4, end); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.cf-turnstile { min-height: 65px; }

/* ---------- conteo colectivo ---------- */
.tally { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tally a { display: grid; grid-template-columns: 52px 76px minmax(0, 1fr); grid-template-areas: "img n label" "img bar bar"; align-items: center; column-gap: 12px; row-gap: 4px; padding: 6px 8px; color: var(--text); text-decoration: none; border: 1px dashed transparent; }
.tally a:hover { border-color: var(--line-2); background: var(--bg-2); }
.tally a:hover img { animation: hop 0.5s steps(3, end); }
.tally img { grid-area: img; width: 52px; height: auto; image-rendering: pixelated; }
.tally-n { grid-area: n; font: 600 22px/1 var(--pixel); color: var(--mint); }
.tally-label { grid-area: label; color: var(--soft); font-size: 14px; }
.tally .segbar { grid-area: bar; }

/* ---------- token ---------- */
.ca { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; margin: 0 0 12px; }
.ca code { flex: 1 1 220px; min-width: 0; padding: 10px 12px; overflow-wrap: anywhere; background: var(--bg); border: 1px dashed var(--line-2); font: 13px/1.4 var(--mono); color: var(--soft); }
.facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.facts li { position: relative; padding-left: 20px; font-size: 14px; color: var(--soft); }
.facts li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; background: var(--mint); }

/* ---------- arco de redención ---------- */
.arc { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: arc; }
.arc-step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 12px; background: var(--bg-2); border: 1px dashed var(--line-2); counter-increment: arc; }
.arc-step::before { content: counter(arc); position: absolute; top: -11px; left: 10px; padding: 0 6px; background: var(--bg); color: var(--muted); font: 600 14px var(--pixel); }
.arc-step img { align-self: center; width: 100%; max-width: 150px; height: auto; image-rendering: pixelated; filter: grayscale(1) brightness(0.55); }
.arc-step b { font: 600 17px var(--pixel); }
.arc-step span { font-size: 13px; color: var(--soft); }
.arc-step em { font-style: normal; font-size: 12px; color: var(--muted); }
.arc-step.done { border-color: var(--mint-3); }
.arc-step.done::before { color: var(--mint); }
.arc-step.done img { filter: none; }
.arc-step.done em { color: var(--mint); }
.arc-step.next { border-style: solid; animation: frame-pulse 1.4s steps(1, end) infinite; }
.arc-step.next img { filter: grayscale(0.4) brightness(0.85); }
@keyframes frame-pulse { 50% { border-color: var(--mint); } }

/* ---------- mosaicos de critters ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 10px 14px; text-align: center; color: var(--text); text-decoration: none; background: var(--bg-2); border: 1px dashed var(--line-2); animation: tile-in 0.45s steps(4, end) both; }
.tile img { width: 120px; height: auto; margin-bottom: 4px; image-rendering: pixelated; }
.tile:hover { border-color: var(--mint); transform: translateY(-3px); }
.tile:hover img { animation: hop 0.5s steps(3, end); }
.tile-num { font: 600 19px var(--pixel); color: var(--mint); }
.tile-handle { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.tile-scar { font-size: 12px; line-height: 1.3; color: var(--soft); }
.tile.gold { border: 1px solid var(--gold); box-shadow: inset 0 0 26px rgba(245, 197, 66, 0.07); }
.tile.gold .tile-num { color: var(--gold); }
.tile.gold::after { content: "★"; position: absolute; top: 6px; right: 8px; font-size: 12px; color: var(--gold); }
@keyframes tile-in { from { opacity: 0; transform: translateY(12px) scale(0.95); } }
.grid > :nth-child(12n + 2) { animation-delay: 40ms; }
.grid > :nth-child(12n + 3) { animation-delay: 80ms; }
.grid > :nth-child(12n + 4) { animation-delay: 120ms; }
.grid > :nth-child(12n + 5) { animation-delay: 160ms; }
.grid > :nth-child(12n + 6) { animation-delay: 200ms; }
.grid > :nth-child(12n + 7) { animation-delay: 240ms; }
.grid > :nth-child(12n + 8) { animation-delay: 280ms; }
.grid > :nth-child(12n + 9) { animation-delay: 320ms; }
.grid > :nth-child(12n + 10) { animation-delay: 360ms; }
.grid > :nth-child(12n + 11) { animation-delay: 400ms; }
.grid > :nth-child(12n + 12) { animation-delay: 440ms; }
.empty { padding: 36px 0; text-align: center; color: var(--muted); }
.empty b { color: var(--mint); }

/* ---------- página de critter ---------- */
.critter-page { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding: 26px 0 40px; }
.welcome, .notice { grid-column: 1 / -1; margin: 0; padding: 12px 16px; font-size: 14px; }
.welcome { border: 1px solid var(--mint); background: rgba(61, 220, 151, 0.1); color: var(--text); animation: pop-in 0.5s steps(4, end); }
.notice { border: 1px dashed var(--line-2); background: var(--bg-2); color: var(--soft); }
.critter-frame { position: relative; padding: 22px 18px 14px; border: 2px dashed var(--mint-3); background: radial-gradient(circle at 50% 62%, rgba(61, 220, 151, 0.14), transparent 62%), var(--bg-2); }
.critter-frame.gold { border: 2px solid var(--gold); background: radial-gradient(circle at 50% 62%, rgba(245, 197, 66, 0.14), transparent 62%), var(--bg-2); box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.1), 0 0 60px rgba(245, 197, 66, 0.12); animation: gold-shine 2.4s steps(1, end) infinite; }
@keyframes gold-shine { 50% { box-shadow: 0 0 0 4px rgba(245, 197, 66, 0.22), 0 0 70px rgba(245, 197, 66, 0.2); } }
.critter-big { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.badge-gold { position: absolute; top: -15px; left: 16px; padding: 4px 10px; background: var(--gold); color: #1d1600; font: 600 14px var(--pixel); }
.critter-num { margin: 0 0 6px; font-size: clamp(56px, 11vw, 108px); font-variant-numeric: tabular-nums; }
.gold .critter-num { color: var(--gold); text-shadow: 0 0 26px rgba(245, 197, 66, 0.3); }
.critter-handle { margin: 0; color: var(--mint); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.unverified { display: inline-block; margin-left: 4px; font-size: 11px; font-weight: 400; color: var(--dim); }
.critter-scar { margin: 16px 0; padding: 14px 16px; border-left: 4px solid var(--mint); background: var(--bg-2); font: 600 clamp(20px, 3vw, 27px)/1.25 var(--pixel); }
.gold .critter-scar { border-left-color: var(--gold); }
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.stats div { min-width: 96px; padding: 8px 12px; border: 1px dashed var(--line-2); }
.stats dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font: 600 22px var(--pixel); }
.share { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.invite p { margin-bottom: 8px; font-size: 14px; color: var(--soft); }
.same { font-size: 14px; color: var(--muted); }
.same b { color: var(--mint); }
.cta { display: inline-block; margin-top: 4px; font: 600 18px var(--pixel); }
.confetti { position: fixed; top: -14px; z-index: 60; pointer-events: none; animation: fall 2.4s steps(26, end) forwards; }
@keyframes fall { to { transform: translate(var(--dx, 0), 106vh); } }

/* ---------- muro, ranking, reglas ---------- */
.page-head { padding: 26px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.chip { padding: 6px 10px; border: 1px dashed var(--line-2); color: var(--muted); text-decoration: none; font-size: 13px; }
.chip b { color: var(--text); }
.chip:hover { border-color: var(--mint-3); color: var(--text); }
.chip.active { border-style: solid; border-color: var(--mint); color: var(--mint); }
.more { display: flex; width: fit-content; margin: 28px auto 8px; }
.rank { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.rank li { display: grid; grid-template-columns: 40px 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 12px; background: var(--bg-2); border: 1px dashed var(--line-2); animation: tile-in 0.4s steps(4, end) both; }
.rank-pos { font: 600 24px var(--pixel); color: var(--muted); text-align: center; }
.rank li:nth-child(1) .rank-pos { color: var(--gold); }
.rank li:nth-child(2) .rank-pos { color: var(--soft); }
.rank li:nth-child(3) .rank-pos { color: #d08a4e; }
.rank img { width: 56px; height: auto; image-rendering: pixelated; }
.rank-who { min-width: 0; }
.rank-who a { font: 600 18px var(--pixel); text-decoration: none; }
.rank-who > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--muted); }
.gold-text { font-style: normal; color: var(--gold); }
.rank-pts { text-align: right; font: 600 18px var(--pixel); }
.rank-pts small { display: block; font: 12px var(--mono); color: var(--muted); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 30px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; color: var(--soft); }
.prose li::marker { color: var(--mint); }
.lost { padding: 30px 0 50px; text-align: center; }
.lost img { width: min(300px, 70vw); height: auto; image-rendering: pixelated; }
.lost h1 { font-size: clamp(56px, 12vw, 110px); color: var(--mint); }

/* ---------- token: reparto, cofre, llaves y vesting ---------- */
.alloc { display: flex; gap: 3px; height: 20px; margin: 14px 0 10px; transform-origin: left center; animation: alloc-in 0.9s steps(9, end) both; }
.alloc span { display: block; min-width: 6px; }
.alloc-curve { flex: 90; background: var(--line-2); }
.alloc-chest { flex: 5; background: var(--mint); box-shadow: 0 0 12px rgba(61, 220, 151, 0.4); }
.alloc-team { flex: 3; background: var(--gold); }
.alloc-mkt { flex: 2; background: #7fe3f0; }
@keyframes alloc-in { from { transform: scaleX(0); } }
.legend { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--soft); }
.legend b { color: var(--text); font: 600 15px var(--pixel); }
.sw { display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: 0; }
.sw-curve { background: var(--line-2); }
.sw-chest { background: var(--mint); }
.sw-team { background: var(--gold); }
.sw-mkt { background: #7fe3f0; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.alloc-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13px; }
.alloc-table th { text-align: left; padding: 8px 10px; color: var(--muted); font-weight: 400; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px dashed var(--line-2); }
.alloc-table td { padding: 10px; border-bottom: 1px dashed var(--line); color: var(--soft); vertical-align: top; }
.alloc-table td:nth-child(2), .alloc-table td:nth-child(3) { font: 600 16px var(--pixel); color: var(--text); white-space: nowrap; }
.addr { font: 13px var(--mono); }
.pending { color: var(--dim); font-size: 12px; }
.cofre-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.cofre-art { padding: 10px; border: 1px dashed var(--line-2); background: radial-gradient(circle at 50% 58%, rgba(245, 197, 66, 0.12), transparent 64%), var(--bg-2); }
.cofre-art img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.keys { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.key { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; background: var(--bg-2); border: 1px dashed var(--line-2); }
.key-n { display: grid; place-items: center; width: 36px; height: 36px; background: var(--bg); border: 2px solid var(--line-2); font: 600 18px var(--pixel); color: var(--muted); }
.key-body b { display: block; font: 600 16px var(--pixel); }
.key-body span { display: block; font-size: 13px; color: var(--soft); }
.key-body em { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: var(--muted); }
.key-state { padding: 3px 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--line-2); white-space: nowrap; }
.key-lograda { border-color: var(--mint-3); }
.key-lograda .key-n { border-color: var(--mint); color: var(--mint); }
.key-lograda .key-state { color: var(--mint); border-color: var(--mint-3); }
.key-lista { border-style: solid; border-color: var(--gold); animation: key-pulse 1.4s steps(1, end) infinite; }
.key-lista .key-n { border-color: var(--gold); color: var(--gold); }
.key-lista .key-state { color: #1d1600; background: var(--gold); border-color: var(--gold); }
.key-repartida { border-color: var(--mint); background: rgba(61, 220, 151, 0.07); }
.key-repartida .key-n { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.key-repartida .key-state { color: var(--mint-ink); background: var(--mint); border-color: var(--mint); }
@keyframes key-pulse { 50% { box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.25), 0 0 22px rgba(245, 197, 66, 0.18); } }
.segbar.vest { grid-template-columns: repeat(9, 1fr); height: 14px; margin: 12px 0 8px; }
.segbar.vest i.on { background: var(--gold); box-shadow: 0 0 8px rgba(245, 197, 66, 0.35); }
.cofre-share { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--mint-3); background: rgba(61, 220, 151, 0.06); }
.gold .cofre-share { border-color: var(--gold); background: rgba(245, 197, 66, 0.06); }
.cofre-share h2 { margin-bottom: 8px; font-size: 20px; }
.cofre-share p { margin-bottom: 6px; font-size: 14px; color: var(--soft); }
.cofre-share b { color: var(--text); font: 600 17px var(--pixel); }
.cofre-share .fine { margin: 8px 0 0; }

@media (max-width: 820px) {
  .cofre-grid { grid-template-columns: minmax(0, 1fr); }
  .cofre-art { max-width: 360px; justify-self: center; width: 100%; }
}
@media (max-width: 480px) {
  .key { grid-template-columns: 30px minmax(0, 1fr); }
  .key-n { width: 30px; height: 30px; font-size: 15px; }
  .key-state { grid-column: 2; justify-self: start; }
}

/* ---------- pie ---------- */
.foot { max-width: var(--wrap); margin: 44px auto 0; padding: 22px 16px 44px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.foot .fine { max-width: 80ch; }

/* ---------- pantallas chicas ---------- */
@media (max-width: 820px) {
  .hero, .critter-page, .cols { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 18px; padding-top: 14px; }
  .mascot { width: min(330px, 78vw); }
  .arc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .panel { padding: 18px 14px; }
  .scar-grid, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scar img { width: 88px; }
  .tile img { width: 100px; }
  .bubble { right: 0; max-width: 78%; font-size: 13px; }
  .rank li { grid-template-columns: 28px 44px minmax(0, 1fr) auto; gap: 8px; }
  .rank img { width: 44px; }
  .segbar.big { gap: 2px; }
  .arc { grid-template-columns: minmax(0, 1fr); }
  .arc-step img { max-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ticker { white-space: normal; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .ticker-group { flex-wrap: wrap; row-gap: 6px; }
}
