/* ZERO PUNKS. Layout: sticky nav, centered 1120px column, pixel-cut cards on a dotted black field. */
:root {
  --bg: #050505; --bg2: #0a0a0a; --card: #0e0e0e; --card2: #151515;
  --line: #1f1f1f; --line2: #303030; --fg: #f4f4f4; --mut: #8f8f8f; --mut2: #5f5f5f;
  --ice: #cfeaff; --ember: #d1453b; --ok: #a6e3b4;
  --px: 'Silkscreen', ui-monospace, 'Courier New', monospace;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 1px 1px, #1a1a1a 1px, transparent 0); background-size: 24px 24px;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

/* nav */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(5, 5, 5, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--px); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.brand canvas { width: 36px; height: 36px; border: 1px solid var(--line2); }
.links { display: flex; gap: 2px; margin-left: 10px; flex: 1; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger { display: none; width: 42px; height: 38px; border: 1px solid var(--line2); background: var(--card); cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger i { display: block; width: 18px; height: 2px; background: var(--fg); }
.links a { padding: 8px 12px; color: var(--mut); font-size: 14px; }
.links a:hover, .links a.on { color: var(--fg); }
.links a.on { box-shadow: inset 0 -2px 0 var(--fg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--fg); background: var(--fg); color: #000; font-family: var(--px); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 13px 20px; cursor: pointer; box-shadow: 4px 4px 0 #3a3a3a; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 #3a3a3a; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 #3a3a3a; }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line2); box-shadow: 4px 4px 0 #161616; }
.btn.sm { padding: 9px 14px; font-size: 11px; box-shadow: 3px 3px 0 #3a3a3a; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; color: var(--mut); background: var(--card); cursor: pointer; }
.pill:hover { color: var(--fg); border-color: #555; }
.pill.on { background: var(--fg); color: #000; border-color: var(--fg); font-weight: 600; }

/* typography */
h1, h2, h3 { font-family: var(--px); font-weight: 700; letter-spacing: .02em; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 6.4vw, 66px); text-transform: uppercase; }
h2 { font-size: clamp(22px, 3.4vw, 32px); text-transform: uppercase; }
h3 { font-size: 16px; text-transform: uppercase; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.lead { font-size: 18px; color: #bdbdbd; max-width: 52ch; }
.cursor { display: inline-block; width: .5em; height: .9em; background: var(--fg); margin-left: .12em; vertical-align: -0.05em; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line2); background: var(--card); font-family: var(--mono); font-size: 12px; color: #cfcfcf; }
.dot { width: 8px; height: 8px; background: var(--ok); display: inline-block; animation: blink 1.6s steps(1) infinite; }

/* hero */
.hero { padding: 56px 0 36px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 span.dim { color: #6a6a6a; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; min-width: 0; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.feat { border: 1px solid var(--line2); background: var(--card); padding: 18px; box-shadow: 8px 8px 0 #141414; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.feat-art { position: relative; cursor: pointer; border: 1px solid var(--line); }
.feat-art canvas { width: 100%; height: auto; aspect-ratio: 1; }
.feat-art .tag { position: absolute; left: 10px; top: 10px; background: #000; border: 1px solid var(--line2); padding: 3px 8px; font-family: var(--mono); font-size: 11px; color: var(--mut); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-size: 11px; padding: 4px 8px; border: 1px solid var(--line2); color: #c9c9c9; background: #0a0a0a; }
.chip b { color: var(--mut); font-weight: 400; margin-right: 6px; }
.feat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

/* sections */
section.block { padding: 48px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.sec-head p { color: var(--mut); max-width: 48ch; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line2); background: var(--card); }
.stat { padding: 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat .k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mut); }
.stat .v { font-family: var(--px); font-size: 24px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.thumbs { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; }
.thumbs button { padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.thumbs button:hover, .thumbs button.on { border-color: var(--fg); }
.thumbs canvas { width: 100%; height: auto; aspect-ratio: 1; }
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; background: #070707; }
.track { display: flex; gap: 10px; width: max-content; animation: scroll 60s linear infinite; }
.track canvas { width: 96px; height: 96px; border: 1px solid var(--line); }
@keyframes scroll { to { transform: translateX(-50%); } }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--line2); background: var(--card); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card .n { font-family: var(--px); font-size: 28px; color: #4a4a4a; }
.card p { color: var(--mut); font-size: 15px; }
.rare-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rare { border: 1px solid var(--line2); background: var(--card); display: flex; flex-direction: column; min-width: 0; }
.rare canvas { width: 100%; height: auto; aspect-ratio: 1; border-bottom: 1px solid var(--line); }
.rare .meta { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.rare .nm { font-family: var(--px); font-size: 13px; text-transform: uppercase; }
.rare .sub { font-family: var(--mono); font-size: 11px; color: var(--mut); }
.layers-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.layer-pill { border: 1px solid var(--line2); background: var(--card); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.layer-pill:hover { border-color: #666; }
.layer-pill span { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.cta-band { border: 1px solid var(--line2); background: linear-gradient(180deg, #121212, #0a0a0a); padding: 44px 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; box-shadow: 8px 8px 0 #141414; }

/* panel pages (mint, docs, register) */
.panel-page { padding: 44px 0 70px; display: flex; justify-content: center; }
.panel { width: 100%; max-width: 580px; border: 1px solid var(--line2); background: var(--card); padding: 22px; box-shadow: 8px 8px 0 #141414; display: flex; flex-direction: column; gap: 20px; }
.panel.wide { max-width: 980px; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.mint-head { display: flex; gap: 16px; align-items: center; }
.mint-head canvas { width: 72px; height: 72px; border: 1px solid var(--line2); flex: none; }
.mint-head h2 { font-size: 28px; }
.mint-head p { font-family: var(--mono); font-size: 12px; color: var(--mut); margin-top: 6px; }
.rows { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 14px; border: 1px solid var(--line); background: #0a0a0a; font-size: 14px; }
.row .k { font-family: var(--mono); color: var(--ice); font-size: 12px; }
.row .v { text-align: right; color: #d9d9d9; min-width: 0; overflow-wrap: anywhere; }
.note { font-size: 12px; color: var(--mut2); font-family: var(--mono); }

/* register */
.steps-h { display: flex; justify-content: space-between; align-items: baseline; }
.steps-h h2 { font-size: 22px; }
.steps-h span { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.step { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); background: #0a0a0a; }
.step.done { border-color: #3d5a45; }
.step .num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line2); font-family: var(--px); font-size: 12px; color: var(--mut); }
.step.done .num { background: var(--ok); color: #000; border-color: var(--ok); }
.step .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step .t { font-weight: 600; font-size: 15px; }
.step .t small { font-weight: 400; color: var(--mut); font-family: var(--mono); font-size: 11px; margin-left: 6px; }
.step .d { font-size: 13px; color: var(--mut); }
.field-row { display: flex; gap: 8px; }
.field-row > * { min-width: 0; }
input[type=text], input[type=email], input.f { width: 100%; background: #050505; border: 1px solid var(--line2); padding: 11px 12px; font-family: var(--mono); font-size: 13px; color: var(--fg); border-radius: 0; }
input::placeholder { color: #4d4d4d; }
input:focus { outline: none; border-color: var(--fg); }
input.bad { border-color: var(--ember); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { font-family: var(--mono); font-size: 12px; min-height: 18px; }
.msg.err { color: #ff8b80; } .msg.ok { color: var(--ok); }
.preview-note { border: 1px dashed #5a4a2a; background: #14110a; color: #d8c28a; padding: 10px 12px; font-family: var(--mono); font-size: 12px; }
.success { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.big-pos { border: 1px solid var(--line2); background: #0a0a0a; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.big-pos .num { font-family: var(--px); font-size: 52px; line-height: 1; }
.big-pos .lbl { font-family: var(--mono); font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .12em; }
.divider { height: 1px; background: var(--line); }

/* cloudflare turnstile */
.cf-wrap { margin-top: 16px; min-height: 65px; max-width: 100%; overflow: hidden; background: transparent; }
.cf-wrap > div, .cf-wrap iframe { max-width: 100%; }
.cf-wrap iframe { display: block; }
.cf-fake { display: flex; align-items: center; gap: 12px; min-height: 65px; padding: 0 16px; border: 1px solid var(--line2); background: #151515; color: var(--mut); font-family: var(--mono); font-size: 12px; }
.cf-fake .box { flex: none; width: 24px; height: 24px; border: 2px solid #555; background: #0a0a0a; }

/* traits */
.page-head { padding: 52px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.page-head p { color: #b5b5b5; max-width: 60ch; }
.filters { position: sticky; top: 64px; z-index: 20; background: rgba(5, 5, 5, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; margin: 16px 0 8px; }
.filters .wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters .grow { flex: 1; min-width: 160px; }
.filters select { background: var(--card); border: 1px solid var(--line2); padding: 7px 10px; font-size: 13px; color: var(--fg); }
.layer { padding: 30px 0 6px; }
.layer-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.layer-head span { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.layer .nt { color: var(--mut); font-size: 14px; margin-bottom: 16px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.tcard { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
.tcard canvas { width: 72px; height: 72px; border: 1px solid var(--line); }
.tcard .info { display: flex; flex-direction: column; gap: 5px; min-width: 0; justify-content: center; }
.tcard .nm { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.tcard .ct { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; }
.bar { height: 6px; background: #1a1a1a; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #fff, #8a8a8a); }
.tier { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.t-leg { color: var(--ice); } .t-epic { color: #b9a7f0; } .t-rare { color: #e9e9e9; } .t-unc { color: #9a9a9a; } .t-com { color: #626262; }
.empty { padding: 40px; text-align: center; color: var(--mut); border: 1px dashed var(--line2); }

/* docs */
.docs { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; }
.toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.toc button { text-align: left; background: none; border: 0; border-left: 2px solid var(--line); padding: 7px 12px; color: var(--mut); cursor: pointer; font-size: 14px; }
.toc button:hover { color: var(--fg); border-color: var(--fg); }
.doc-body { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.doc-body section { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.doc-body h2 { font-size: 20px; }
.doc-body p, .doc-body li { color: #bdbdbd; font-size: 15px; }
.doc-body ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc-body code { font-family: var(--mono); font-size: 13px; background: #141414; border: 1px solid var(--line2); padding: 1px 6px; }
.roadmap { display: flex; flex-direction: column; border: 1px solid var(--line2); }
.rm { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--card); }
.rm:last-child { border-bottom: 0; }
.rm .ph { font-family: var(--mono); font-size: 12px; color: var(--ice); }
.rm b { display: block; font-size: 15px; margin-bottom: 2px; color: var(--fg); }
details { border: 1px solid var(--line2); background: var(--card); }
details + details { margin-top: -1px; }
summary { padding: 14px 16px; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--px); color: var(--mut); }
details[open] summary::after { content: '-'; }
details p { padding: 0 16px 16px; color: #b5b5b5; font-size: 15px; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 34px 0 44px; background: #040404; }
footer .f-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
footer .fl { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--mut); }
footer .fl a:hover { color: var(--fg); }
footer .fine { font-family: var(--mono); font-size: 11px; color: var(--mut2); max-width: 60ch; margin-top: 10px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--fg); color: #000; font-family: var(--mono); font-size: 12px; padding: 10px 16px; opacity: 0; pointer-events: none; transition: .2s; z-index: 99; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line); }
  .thumbs { grid-template-columns: repeat(6, 1fr); }
  .rare-grid, .layers-list { grid-template-columns: repeat(2, 1fr); }
  .cards3 { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
  .toc button { border-left: 0; border: 1px solid var(--line2); }
}
@media (max-width: 760px) {
  .burger { display: flex; }
  .nav-in { flex-wrap: nowrap; }
  .links { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0; background: #070707; border-bottom: 1px solid var(--line2); padding: 6px 20px 12px; }
  header.top.open .links { display: flex; }
  .links a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .links a.on { box-shadow: none; color: var(--fg); }
  .brand span { font-size: 13px; }
}
@media (max-width: 560px) {
  .rare-grid, .layers-list { grid-template-columns: 1fr 1fr; }
  .rm { grid-template-columns: 1fr; gap: 4px; }
  .filters { top: 0; position: static; }
}
@media (prefers-reduced-motion: reduce) { .track, .cursor, .dot { animation: none; } }
