/* =====================================================================
   DERPY BUDDER — zombies. gold. zero brain cells.
   ===================================================================== */

:root {
  --bg: #0d0a1f;
  --bg-2: #120d2a;
  --panel: #1b1540;
  --panel-2: #241c52;
  --line: #3a2f74;
  --gold: #ffd83a;
  --gold-hi: #fff3a1;
  --gold-mid: #f2b521;
  --gold-lo: #b87a0c;
  --gold-dk: #5e3c05;
  --zomb: #6cb043;
  --zomb-hi: #a6e06f;
  --zomb-dk: #3e7a24;
  --cyan: #3fd6d6;
  --pink: #ff5fa8;
  --purple: #8b5cf6;
  --text: #f6f1e3;
  --muted: #b7aed8;
  --dim: #7f76a8;
  --ink: #2a1a02;
  --display: 'Press Start 2P', ui-monospace, monospace;
  --body: 'Pixelify Sans', ui-rounded, system-ui, sans-serif;
  --nav-h: 68px;
  --n: 6px; /* notch size for pixel corners */
  --notch: polygon(0 var(--n), var(--n) var(--n), var(--n) 0, calc(100% - var(--n)) 0, calc(100% - var(--n)) var(--n), 100% var(--n), 100% calc(100% - var(--n)), calc(100% - var(--n)) calc(100% - var(--n)), calc(100% - var(--n)) 100%, var(--n) 100%, var(--n) calc(100% - var(--n)), 0 calc(100% - var(--n)));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
svg[shape-rendering] { image-rendering: pixelated; }
a { color: var(--gold); }
b, strong { font-weight: 700; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 14px;
  font-family: var(--display); font-size: 11px; text-decoration: none;
}
.skip:focus { top: 12px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.gold { color: var(--gold); }
.zomb { color: var(--zomb-hi); }
.pink { color: var(--pink); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------------- buttons ---------------- */
.btn {
  --b-bg: var(--gold); --b-hi: var(--gold-hi); --b-lo: var(--gold-lo); --b-fg: var(--ink);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--display); font-size: 12px; letter-spacing: .04em; line-height: 1.2;
  padding: 17px 22px 19px;
  border: 0; cursor: pointer; text-decoration: none; text-transform: uppercase;
  color: var(--b-fg); background: var(--b-bg);
  box-shadow: inset 0 -6px 0 var(--b-lo), inset 0 4px 0 var(--b-hi), inset 4px 0 0 var(--b-hi), inset -4px 0 0 var(--b-lo);
  clip-path: var(--notch);
  transition: transform .08s steps(2), filter .12s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--b-lo), inset 0 2px 0 var(--b-hi); }
.btn:disabled { cursor: not-allowed; filter: grayscale(.8) brightness(.7); transform: none; }
.btn-stone { --b-bg: #4a4566; --b-hi: #6e6893; --b-lo: #2c2842; --b-fg: var(--text); }
.btn-zomb { --b-bg: var(--zomb); --b-hi: var(--zomb-hi); --b-lo: var(--zomb-dk); --b-fg: #0f2406; }
.btn-pink { --b-bg: var(--pink); --b-hi: #ff9cc8; --b-lo: #b23270; --b-fg: #2a0617; }
.btn .ico svg { width: 15px; height: 15px; }
.btn.playing { --b-bg: var(--pink); --b-hi: #ff9cc8; --b-lo: #b23270; --b-fg: #2a0617; animation: pulse .5s steps(2) infinite; }
.btn.on { --b-bg: var(--gold); }
@keyframes pulse { 50% { filter: brightness(1.18); } }

/* ---------------- nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(14px, 3vw, 32px);
  background: linear-gradient(rgba(13, 10, 31, .78), rgba(13, 10, 31, .55));
  backdrop-filter: blur(10px) saturate(1.3);
  -webkit-backdrop-filter: blur(10px) saturate(1.3);
  transition: background .2s, box-shadow .2s;
}
.nav.scrolled { background: rgba(13, 10, 31, .92); box-shadow: 0 4px 0 rgba(255, 216, 58, .12); }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 13px; line-height: 1;
  color: var(--zomb-hi); text-decoration: none; white-space: nowrap;
}
.brand b { color: var(--gold); font-weight: 400; }
.brand .brand-ico svg { width: 30px; height: 30px; animation: bob 1.1s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(-2px) rotate(-4deg); } }

.links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.links a {
  position: relative;
  font-family: var(--display); font-size: 11px; line-height: 1;
  color: var(--text); text-decoration: none;
  padding: 12px 12px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .1s;
}
.links a:hover { color: var(--gold); }
.links a.active { color: var(--gold); }
.links a.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 4px; background: var(--gold); }
.soon {
  font-family: var(--display); font-size: 7px; line-height: 1;
  background: var(--pink); color: #fff;
  padding: 4px 5px 3px;
  box-shadow: inset 0 -2px 0 #b23270;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { background: #c23a7c; } }

.nav-right { display: flex; align-items: center; gap: 8px; }
.budder-count {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 12px; color: var(--gold);
  background: #1f1844; border: 0; cursor: pointer;
  padding: 9px 12px;
  box-shadow: inset 0 0 0 3px var(--line);
  clip-path: var(--notch); --n: 3px;
}
.budder-count svg { width: 22px; height: auto; }
.budder-count.bump { animation: bump .35s steps(4); }
@keyframes bump { 40% { transform: scale(1.18) rotate(-3deg); } }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: #1f1844; border: 0; cursor: pointer; color: var(--text);
  box-shadow: inset 0 0 0 3px var(--line);
  clip-path: var(--notch); --n: 3px;
}
.icon-btn:hover { color: var(--gold); }
.icon-btn svg { width: 20px; height: 20px; }
#sound-toggle .off { display: none; }
#sound-toggle.muted .on { display: none; }
#sound-toggle.muted .off { display: block; }
.burger { display: none; }
.burger span { display: block; width: 18px; height: 3px; background: currentColor; margin: 2px 0; }

@media (max-width: 900px) {
  .burger { display: grid; place-content: center; }
  .nav-right { margin-left: auto; }
  .links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13, 10, 31, .97);
    padding: 8px 16px 18px;
    box-shadow: 0 6px 0 rgba(255, 216, 58, .15);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .2s steps(4), opacity .2s, visibility .2s;
  }
  .links.open { transform: none; opacity: 1; visibility: visible; }
  .links a { padding: 18px 8px; font-size: 13px; border-bottom: 3px solid #1f1844; }
  .links a.active::after { left: 8px; right: auto; width: 24px; bottom: 8px; }
}
@media (max-width: 440px) {
  .nav { gap: 10px; }
  .brand { font-size: 10px; gap: 7px; }
  .brand .brand-ico svg { width: 24px; height: 24px; }
  .budder-count { padding: 9px 9px; font-size: 11px; }
  .icon-btn { width: 38px; height: 38px; }
}

/* ---------------- hero (home) ---------------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: #0d0a1f;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; touch-action: manipulation; }
.hero-content {
  position: relative; z-index: 2;
  pointer-events: none;
  text-align: center;
  padding: calc(var(--nav-h) + clamp(14px, 4vh, 48px)) 16px 0;
  display: flex; flex-direction: column; align-items: center;
}
.hero-content a, .hero-content button { pointer-events: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 clamp(10px, 2.2vh, 22px);
  font-family: var(--display); font-size: clamp(8px, 1vw, 11px); letter-spacing: .12em;
  color: var(--muted);
  text-shadow: 0 2px 0 #000;
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--pink); box-shadow: 0 0 12px var(--pink); animation: blink 1s steps(2) infinite; }

.title-wrap { position: relative; display: inline-block; }
.title {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(34px, min(10vw, 9.5vh), 112px);
  line-height: 1;
  display: flex; flex-direction: column; align-items: center; gap: .16em;
  letter-spacing: .02em;
}
.title > span { position: relative; display: block; }
.title > span::before {
  content: attr(data-text);
  position: absolute; inset: 0; z-index: -1;
  color: transparent;
  text-shadow: 0 .06em 0 var(--c1), 0 .12em 0 var(--c2), 0 .18em 0 var(--c3), 0 .3em .25em rgba(0, 0, 0, .6);
}
.t-derpy {
  --c1: #3e7a24; --c2: #2a5517; --c3: #142a09;
  background: linear-gradient(180deg, #d8ffb0 0 18%, #8ad655 18% 58%, #5ea83a 58% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: derpWobble 2.4s ease-in-out infinite;
  transform-origin: 50% 80%;
}
.t-budder {
  --c1: #c98a10; --c2: #8a5a06; --c3: #4a2f02;
  background:
    linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .95) 49%, rgba(255, 255, 255, .95) 51%, transparent 58%) no-repeat,
    linear-gradient(180deg, #fffbd6 0 16%, #ffe45c 16% 55%, #f5b921 55% 100%);
  background-size: 260% 100%, 100% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 3.2s steps(24) infinite;
}
@keyframes shine { 0% { background-position: 160% 0, 0 0; } 60%, 100% { background-position: -60% 0, 0 0; } }
@keyframes derpWobble { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg) translateY(-2px); } }

.splash {
  position: absolute; left: 87%; top: 0.92em;
  transform: rotate(-16deg);
  transform-origin: 0 50% !important;
  font-family: var(--display); font-size: clamp(9px, 1.25vw, 15px);
  color: #fff23a;
  text-shadow: 2px 2px 0 #3f3a00;
  background: none; border: 0; padding: 4px; cursor: pointer;
  white-space: nowrap;
  animation: splash .45s ease-in-out infinite alternate;
}
@keyframes splash { from { transform: rotate(-16deg) scale(.94); } to { transform: rotate(-16deg) scale(1.06); } }
@keyframes splashFlat { from { transform: rotate(-4deg) scale(.94); } to { transform: rotate(-4deg) scale(1.06); } }

.tagline {
  margin: clamp(18px, 3.4vh, 36px) 0 0;
  font-size: clamp(18px, 2.1vw, 26px); line-height: 1.35; font-weight: 600;
  color: var(--text);
  text-shadow: 0 3px 0 #0a0720, 0 0 18px rgba(10, 7, 32, .9);
  max-width: 34ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(16px, 3vh, 28px); }
.hint {
  margin: clamp(10px, 2vh, 18px) 0 0;
  font-size: 15px; color: var(--muted);
  text-shadow: 0 2px 0 #000;
}
.hint b { color: var(--gold); font-weight: 600; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; z-index: 3;
  transform: translateX(-50%);
  font-family: var(--display); font-size: 10px; color: var(--gold);
  text-decoration: none; text-shadow: 0 2px 0 #000;
  animation: cue 1s steps(2) infinite;
}
@keyframes cue { 50% { transform: translate(-50%, 4px); } }
@media (max-height: 720px) { .hint { display: none; } }
@media (max-width: 600px) {
  .wide-only { display: none; }
  .splash {
    position: relative; left: auto; top: auto; display: block;
    margin: 10px auto 0; font-size: 10px;
    transform-origin: 50% 50% !important;
    animation-name: splashFlat;
  }
  .tagline { margin-top: 14px; font-size: 18px; }
  .cta-row .btn { font-size: 11px; padding: 15px 18px 17px; }
  .hint { font-size: 13px; max-width: 30ch; }
}

/* ---------------- ticker ---------------- */
.ticker-wrap { position: relative; z-index: 4; overflow: hidden; margin-top: -30px; padding: 16px 0 18px; }
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  box-shadow: inset 0 5px 0 var(--gold-hi), inset 0 -5px 0 var(--gold-lo), 0 10px 0 rgba(0, 0, 0, .35);
  transform: rotate(-1.2deg);
  margin: 0 -24px;
  padding: 16px 0 15px;
}
.ticker-track {
  display: flex; align-items: center; gap: 22px; width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--display); font-size: clamp(12px, 1.4vw, 16px); white-space: nowrap;
}
.ticker-track i svg { width: 26px; height: auto; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .25)); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- sections ---------------- */
.section { position: relative; padding: clamp(72px, 10vw, 128px) 16px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.kicker { margin: 0; font-family: var(--display); font-size: 11px; letter-spacing: .12em; color: var(--pink); }
.h2 {
  margin: .55em 0 .6em;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(22px, 3.6vw, 42px); line-height: 1.3;
  text-shadow: 0 4px 0 rgba(0, 0, 0, .45);
  text-wrap: balance;
}
.h3 { font-family: var(--display); font-weight: 400; font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.lead { font-size: clamp(19px, 1.7vw, 22px); color: var(--text); max-width: 62ch; }
.section p { max-width: 64ch; }
.center .lead, .center p { margin-left: auto; margin-right: auto; }

html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s steps(6), transform .55s steps(6); }
html.js .reveal.in { opacity: 1; transform: none; }

.tex-stone { background: linear-gradient(rgba(12, 8, 28, .88), rgba(12, 8, 28, .93)), var(--tex-stone) 0 0 / 64px 64px; image-rendering: pixelated; }
.tex-dirt { background: linear-gradient(rgba(26, 12, 6, .82), rgba(18, 10, 24, .92)), var(--tex-dirt) 0 0 / 64px 64px; image-rendering: pixelated; }
.dots { background-color: var(--bg); background-image: radial-gradient(rgba(255, 216, 58, .07) 1.5px, transparent 1.6px); background-size: 26px 26px; }

/* ---------------- lore ---------------- */
.lore-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .lore-grid { grid-template-columns: 1fr; } }
.lore p { color: var(--muted); }
.lore p.lead { color: var(--text); }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 560px) { .slots { grid-template-columns: 1fr; } }
.slot-card {
  background: var(--panel); padding: 16px 14px 14px;
  box-shadow: inset 0 0 0 3px var(--line), inset 0 -7px 0 rgba(0, 0, 0, .25);
  clip-path: var(--notch);
  display: flex; flex-direction: column; gap: 6px;
}
.slot-card i svg { width: 36px; height: auto; margin-bottom: 4px; }
.slot-card b { font-family: var(--display); font-weight: 400; font-size: 11px; color: var(--gold); }
.slot-card span { font-size: 15px; line-height: 1.35; color: var(--muted); }

.cube-col { display: flex; flex-direction: column; align-items: center; }
.cube-scene { --s: clamp(150px, 20vw, 220px); position: relative; width: var(--s); height: calc(var(--s) * 1.5); perspective: 900px; display: grid; place-items: center; }
.cube {
  width: var(--s); height: var(--s);
  position: relative; transform-style: preserve-3d;
  background: none; border: 0; padding: 0; cursor: pointer;
  animation: spin 14s linear infinite;
}
.cube-float { animation: float 3s ease-in-out infinite; transform-style: preserve-3d; }
@keyframes float { 50% { transform: translateY(-14px); } }
@keyframes spin { from { transform: rotateX(-22deg) rotateY(0); } to { transform: rotateX(-22deg) rotateY(360deg); } }
.cube .face {
  position: absolute; inset: 0;
  background: var(--tex-gold, var(--gold)) center / 100% 100%;
  image-rendering: pixelated;
  backface-visibility: hidden;
}
.cube .face::before { content: ''; position: absolute; inset: 0; background: var(--crack, none) center / 100% 100%; image-rendering: pixelated; }
.cube .face::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--shade, 0)); }
.cube .f { transform: translateZ(calc(var(--s) / 2)); }
.cube .bk { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); --shade: .2; }
.cube .r { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); --shade: .14; }
.cube .l { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); --shade: .14; }
.cube .t { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); --shade: -.1; }
.cube .t::after { background: rgba(255, 255, 255, .12); }
.cube .bt { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); --shade: .35; }
.cube.hit .face { animation: hitFlash .15s steps(2); }
@keyframes hitFlash { 50% { filter: brightness(1.6); } }
.cube.broken { animation: none; transform: rotateX(-22deg) scale(0); transition: transform .12s steps(3); }
.cube.respawn { animation: none; transform: rotateX(-22deg) scale(1); transition: transform .3s steps(5); }
.cube-shadow { position: absolute; bottom: 4%; left: 50%; width: 70%; height: 18px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255, 216, 58, .35), rgba(255, 216, 58, 0)); animation: shadowPulse 3s ease-in-out infinite; }
@keyframes shadowPulse { 50% { transform: translateX(-50%) scale(.82); opacity: .7; } }
.cube-hint { font-family: var(--display); font-size: 10px; color: var(--muted); margin: 6px 0 0; text-align: center; }
.chunk {
  position: absolute; left: 50%; top: 45%; width: 14px; height: 14px; pointer-events: none;
  background: var(--tex-gold, var(--gold)) center / 56px 56px; image-rendering: pixelated;
  animation: chunk .9s cubic-bezier(.2, .6, .4, 1) forwards;
}
@keyframes chunk { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }
.cube-pop { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-family: var(--display); font-size: 14px; color: var(--gold); text-shadow: 3px 3px 0 var(--ink); white-space: nowrap; animation: pop 1.1s steps(10) forwards; pointer-events: none; }
@keyframes pop { to { transform: translate(-50%, -50px); opacity: 0; } }

/* ---------------- crew ---------------- */
.crew-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 36px; }
.card {
  position: relative;
  background: var(--panel);
  box-shadow: inset 0 0 0 3px var(--line), inset 0 -8px 0 rgba(0, 0, 0, .3);
  clip-path: var(--notch);
  transition: transform .15s steps(3);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px) rotate(-.5deg); }
.card canvas {
  width: 100%; aspect-ratio: 1 / 1; cursor: pointer;
  background: radial-gradient(120% 90% at 50% 100%, #2d2266 0%, #1b1540 60%);
}
.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tag {
  align-self: flex-start;
  font-family: var(--display); font-size: 8px; letter-spacing: .08em;
  padding: 5px 7px 4px; color: var(--ink); background: var(--gold);
}
.tag.pinktag { background: var(--pink); color: #fff; }
.tag.cyantag { background: var(--cyan); color: #04201f; }
.card h3 { margin: 6px 0 0; font-family: var(--display); font-weight: 400; font-size: 14px; line-height: 1.4; color: var(--text); }
.card .move { margin: 0; font-size: 15px; color: var(--muted); }
.card .move b { color: var(--zomb-hi); font-weight: 600; }
.card blockquote { margin: 4px 0 6px; font-size: 17px; font-style: italic; color: var(--text); }
.stats { display: grid; gap: 5px; margin: 6px 0 0; }
.stats div { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 8px; }
.stats dt { font-family: var(--display); font-size: 8px; color: var(--dim); }
.stats dd { margin: 0; }
.pips {
  --v: 5; display: block; height: 9px; width: 129px;
  background:
    repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 13px) 0 0 / calc(var(--v) * 13px) 100% no-repeat,
    repeating-linear-gradient(90deg, #2c2552 0 10px, transparent 10px 13px);
}
.pips.red { background: repeating-linear-gradient(90deg, var(--pink) 0 10px, transparent 10px 13px) 0 0 / calc(var(--v) * 13px) 100% no-repeat, repeating-linear-gradient(90deg, #2c2552 0 10px, transparent 10px 13px); }
.card.wanted { box-shadow: inset 0 0 0 3px #7a2449, inset 0 -8px 0 rgba(0, 0, 0, .3); }
.stamp {
  position: absolute; top: 18px; right: 14px; z-index: 2;
  font-family: var(--display); font-size: 13px; color: var(--pink);
  border: 3px solid var(--pink); padding: 6px 8px 5px;
  transform: rotate(12deg); background: rgba(13, 10, 31, .6);
  pointer-events: none;
}

/* ---------------- history timeline ---------------- */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 6px;
  background: repeating-linear-gradient(180deg, var(--gold) 0 10px, var(--gold-lo) 10px 14px);
}
.timeline li { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 20px; align-items: start; margin-bottom: 22px; }
.year {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  height: 52px;
  font-family: var(--display); font-size: 12px; color: var(--ink);
  background: var(--tex-gold, var(--gold)) center / 52px 52px; image-rendering: pixelated;
  box-shadow: inset 0 0 0 3px rgba(94, 60, 5, .5), 0 6px 0 rgba(0, 0, 0, .35);
  text-shadow: 1px 1px 0 var(--gold-hi);
}
.year.small { font-size: 8px; line-height: 1.3; text-align: center; padding: 0 4px; }
.tl-card {
  background: var(--panel);
  padding: 18px 20px 16px;
  box-shadow: inset 0 0 0 3px var(--line);
  clip-path: var(--notch);
}
.tl-card h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--gold); }
.tl-card p { margin: 0; color: var(--muted); font-size: 17px; }
.tl-card.hot { background: linear-gradient(135deg, #3a1d5c, #1b1540); box-shadow: inset 0 0 0 3px var(--pink); }
.tl-card.hot h3 { color: var(--pink); }
@media (max-width: 560px) {
  .timeline::before { left: 33px; }
  .timeline li { grid-template-columns: 72px 1fr; gap: 12px; }
  .year { font-size: 10px; height: 46px; }
}

/* ---------------- the code (signs) ---------------- */
.signs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 26px; margin-top: 40px; }
@media (max-width: 860px) { .signs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .signs { grid-template-columns: 1fr; } }
.sign {
  position: relative;
  background: linear-gradient(rgba(255, 226, 170, .5), rgba(255, 214, 150, .42)), var(--tex-wood, #a06a37) 0 0 / 96px 96px;
  image-rendering: pixelated;
  color: #2a1405;
  padding: 22px 22px 22px;
  box-shadow: inset 0 0 0 5px #5a3a1a, inset 0 0 0 7px rgba(255, 230, 180, .35), 0 10px 0 rgba(0, 0, 0, .35);
  rotate: var(--rot, 0deg);
  transition: rotate .15s steps(3), scale .15s steps(3);
}
.sign:hover { rotate: 0deg; scale: 1.03; }
.sign::after { content: ''; position: absolute; left: 50%; top: 100%; width: 12px; height: 30px; background: linear-gradient(90deg, #6e4520 50%, #5a3a1a 50%); transform: translateX(-50%); }
.sign .num { font-family: var(--display); font-size: 22px; color: #7a3d10; text-shadow: 2px 2px 0 rgba(255, 235, 190, .6); }
.sign h3 { margin: 10px 0 6px; font-family: var(--display); font-weight: 400; font-size: 12px; line-height: 1.6; color: #2a1405; }
.sign p { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; color: #3a1d08; }

/* ---------------- vault ---------------- */
.vault-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .vault-grid { grid-template-columns: 1fr; } }
.counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0; }
.counter {
  background: var(--panel); padding: 18px 16px 14px;
  box-shadow: inset 0 0 0 3px var(--line), inset 0 -7px 0 rgba(0, 0, 0, .25);
  clip-path: var(--notch);
}
.counter b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 3vw, 30px); color: var(--gold); text-shadow: 3px 3px 0 var(--gold-dk); }
.counter span { font-family: var(--display); font-size: 8px; letter-spacing: .06em; color: var(--dim); }
.unlocks { display: flex; flex-wrap: wrap; gap: 12px; }
.secret { font-size: 15px; color: var(--dim); margin-top: 18px; }
.ach-panel { background: rgba(10, 7, 24, .7); padding: 22px; box-shadow: inset 0 0 0 3px var(--line); clip-path: var(--notch); }
.ach-panel .h3 { display: flex; justify-content: space-between; gap: 10px; color: var(--text); }
.ach-panel .h3 span { color: var(--gold); }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.ach {
  position: relative;
  aspect-ratio: 1;
  display: grid; place-items: center;
  background: #8b8b8b;
  box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #ffffff;
  background: #3a345c;
  box-shadow: inset 3px 3px 0 #1d1838, inset -3px -3px 0 #5a5390;
  cursor: help;
}
.ach svg { width: 56%; height: auto; opacity: .45; }
.ach.got { background: #4a3d16; box-shadow: inset 3px 3px 0 #2a2208, inset -3px -3px 0 #8a7322, 0 0 18px rgba(255, 216, 58, .25); }
.ach.got svg { opacity: 1; animation: bob 1.4s steps(2) infinite; }
.ach::after, [data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 20;
  transform: translateX(calc(-50% + var(--tip-shift, 0px)));
  width: max-content; max-width: min(220px, calc(100vw - 24px));
  background: #150f2e; color: var(--text);
  font-family: var(--body); font-size: 14px; line-height: 1.3; text-align: left;
  padding: 8px 10px;
  box-shadow: inset 0 0 0 2px #5b2db0, 0 6px 0 rgba(0, 0, 0, .4);
  display: none; pointer-events: none;
}
.ach:hover::after, .ach:focus::after, [data-tip]:hover::after, [data-tip]:focus::after { display: block; }

/* ---------------- join band ---------------- */
.join { background: radial-gradient(80% 70% at 50% 0%, rgba(255, 216, 58, .12), transparent 70%), var(--bg); }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }
.join-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: var(--text); text-align: left;
  background: var(--panel); padding: 24px 22px 22px;
  box-shadow: inset 0 0 0 3px var(--line), inset 0 -8px 0 rgba(0, 0, 0, .3);
  clip-path: var(--notch);
  transition: transform .15s steps(3), box-shadow .15s;
}
.join-card:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 3px var(--gold), inset 0 -8px 0 rgba(0, 0, 0, .3); }
.join-card i svg { width: 56px; height: auto; }
.join-card h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 400; font-size: 16px; color: var(--gold); }
.join-card p { margin: 0; color: var(--muted); font-size: 17px; flex: 1; }
.join-card .go { font-family: var(--display); font-size: 10px; color: var(--zomb-hi); }
.join-card .tag { position: absolute; top: 22px; right: 20px; }

/* ---------------- sub-page header ---------------- */
.page-head {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(36px, 7vw, 80px));
  background:
    radial-gradient(1.5px 1.5px at 12% 20%, rgba(255, 248, 220, .8), transparent),
    radial-gradient(1.5px 1.5px at 78% 14%, rgba(255, 248, 220, .7), transparent),
    radial-gradient(1.5px 1.5px at 40% 34%, rgba(255, 248, 220, .5), transparent),
    radial-gradient(1.5px 1.5px at 90% 44%, rgba(255, 248, 220, .6), transparent),
    linear-gradient(180deg, #0a0820 0%, #191141 55%, #3d256d 100%);
  overflow: hidden;
}
.page-head .wrap { position: relative; z-index: 2; padding: 0 16px; }
.mega {
  margin: .4em 0 .45em;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 6.4vw, 76px); line-height: 1.15;
  text-shadow: 0 .07em 0 rgba(0, 0, 0, .55), 0 .14em 0 rgba(0, 0, 0, .3);
  text-wrap: balance;
}
.mega .gold { text-shadow: 0 .07em 0 var(--gold-lo), 0 .14em 0 var(--gold-dk); }
.stage { display: block; width: 100%; height: clamp(240px, 32vw, 380px); margin-top: clamp(10px, 3vw, 30px); }
.soon-word { display: inline-block; animation: glitch 2.6s steps(1) infinite; }
@keyframes glitch {
  0%, 92%, 100% { transform: none; text-shadow: 0 .07em 0 rgba(0, 0, 0, .55); }
  93% { transform: translate(-4px, 2px); text-shadow: 4px 0 0 var(--pink), -4px 0 0 var(--cyan); }
  96% { transform: translate(3px, -2px); text-shadow: -4px 0 0 var(--pink), 4px 0 0 var(--cyan); }
}

/* store loader */
.loader { max-width: 520px; margin: 26px auto 0; }
.loader-bar { height: 26px; background: #0f0b24; box-shadow: inset 0 0 0 3px var(--line); padding: 5px; }
.loader-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, var(--gold) 0 12px, var(--gold-mid) 12px 16px); transition: width .4s steps(4); }
.loader-bar i.stolen { background: repeating-linear-gradient(90deg, var(--pink) 0 12px, #b23270 12px 16px); }
.loader p { font-family: var(--display); font-size: 10px; color: var(--muted); margin: 12px 0 0; }

/* inventory */
.inv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px; max-width: 760px; }
@media (max-width: 560px) { .inv { grid-template-columns: repeat(2, 1fr); } }
.inv-slot {
  position: relative; aspect-ratio: 1;
  display: grid; place-items: center;
  background: #2b2550;
  box-shadow: inset 4px 4px 0 #17122f, inset -4px -4px 0 #4a4285;
  cursor: help;
}
.inv-slot .item { width: 100%; display: grid; place-items: center; }
.inv-slot .item svg { width: 46%; height: auto; margin: auto; filter: brightness(0) opacity(.55); transition: filter .2s; }
.inv-slot:hover .item svg { filter: brightness(.35) sepia(1) hue-rotate(10deg) saturate(3) opacity(.9); }
.inv-slot .lk { position: absolute; right: 8px; bottom: 8px; }
.inv-slot .lk svg { width: 18px; height: auto; }
.inv-slot .nm { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: var(--display); font-size: 7px; color: var(--dim); }

/* ---------------- generic cards / grids for sub-pages ---------------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.panel {
  position: relative;
  background: var(--panel);
  padding: 22px 20px 20px;
  box-shadow: inset 0 0 0 3px var(--line), inset 0 -8px 0 rgba(0, 0, 0, .3);
  clip-path: var(--notch);
}
.panel i.pi svg { width: 44px; height: auto; margin-bottom: 12px; }
.panel h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 13px; line-height: 1.5; color: var(--gold); }
.panel p { margin: 0; color: var(--muted); font-size: 17px; }
.panel ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 16px; }
.panel.feature { background: linear-gradient(160deg, #3a2a10, #1b1540 70%); box-shadow: inset 0 0 0 3px var(--gold-lo), inset 0 -8px 0 rgba(0, 0, 0, .3); }

/* recipe rows (collab ideas) */
.recipes { display: grid; gap: 14px; margin-top: 32px; }
.recipe {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1.4fr; align-items: center; gap: 14px;
  background: var(--panel); padding: 16px 18px;
  box-shadow: inset 0 0 0 3px var(--line);
  clip-path: var(--notch);
}
.recipe .ing { font-family: var(--display); font-size: 10px; line-height: 1.5; padding: 12px; text-align: center; background: #2b2550; box-shadow: inset 3px 3px 0 #17122f, inset -3px -3px 0 #4a4285; }
.recipe .op { font-family: var(--display); font-size: 16px; color: var(--gold); }
.recipe .res b { display: block; font-family: var(--display); font-weight: 400; font-size: 11px; color: var(--gold); margin-bottom: 4px; }
.recipe .res span { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .recipe { grid-template-columns: 1fr auto 1fr; }
  .recipe .op.eq { display: none; }
  .recipe .res { grid-column: 1 / -1; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 20px; top: 18px;
  width: 30px; height: 30px; display: grid; place-items: center;
  font-family: var(--display); font-size: 13px; color: var(--ink);
  background: var(--gold); box-shadow: inset 0 -4px 0 var(--gold-lo);
}

/* forms */
.form-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 5vw, 60px); align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; } }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; background: var(--panel); padding: clamp(18px, 3vw, 28px); box-shadow: inset 0 0 0 3px var(--line); clip-path: var(--notch); }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--display); font-size: 9px; letter-spacing: .06em; color: var(--gold); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: #0f0b24; color: var(--text);
  border: 0; border-radius: 0;
  box-shadow: inset 0 0 0 3px #3a2f74;
  padding: 13px 14px;
  font: inherit; font-size: 17px;
  outline: none;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 3px var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: #5f578c; }
.form .note { font-size: 14px; color: var(--dim); margin: 0; }
.form .btn { justify-self: start; }

.try-sign { display: flex; gap: 10px; max-width: 520px; margin: 22px auto 0; }
.try-sign input {
  flex: 1; min-width: 0;
  background: #0f0b24; color: var(--gold);
  border: 0; box-shadow: inset 0 0 0 3px var(--gold-lo);
  padding: 14px; font-family: var(--display); font-size: 12px; text-transform: uppercase;
  outline: none;
}
.try-sign input:focus { box-shadow: inset 0 0 0 3px var(--gold); }
@media (max-width: 480px) { .try-sign { flex-direction: column; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }
.fact b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(18px, 2.4vw, 26px); color: var(--gold); margin-bottom: 10px; text-shadow: 3px 3px 0 var(--gold-dk); }

.callout {
  display: flex; gap: 16px; align-items: center;
  background: rgba(63, 214, 214, .08);
  box-shadow: inset 0 0 0 3px rgba(63, 214, 214, .35);
  padding: 18px 20px; margin-top: 26px;
  clip-path: var(--notch);
}
.callout svg { width: 36px; height: auto; flex: none; }
.callout p { margin: 0; color: var(--text); font-size: 17px; }

/* ---------------- 404 ---------------- */
.void { position: fixed; inset: 0; }
.void canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.void-content { position: relative; z-index: 2; min-height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; pointer-events: none; }
.void-content > div { pointer-events: auto; }
.void-content .mega { color: #ff5f5f; text-shadow: 0 .07em 0 #5a0d0d; }

/* ---------------- footer ---------------- */
.footer { position: relative; z-index: 3; background: #08061a; padding: 0 16px 22px; text-align: center; }
.footer::before { content: ''; display: block; height: 32px; margin: 0 -16px 20px; background: var(--tex-grass, #5cb23a) 0 0 / 32px 32px repeat-x; image-rendering: pixelated; }
.footer .copy { margin: 0; font-family: var(--display); font-size: 10px; line-height: 1.8; letter-spacing: .06em; color: var(--text); text-shadow: 0 2px 0 #000; }
.footer .legal { margin: 6px 0 0; font-size: 12px; line-height: 1.4; color: var(--dim); }

/* ---------------- home: just the horde and the budder rain ---------------- */
body[data-page="home"] { position: relative; }
.home { position: relative; height: 100vh; height: 100svh; min-height: 460px; overflow: hidden; background: #0d0a1f; }
.home-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body[data-page="home"] .footer { position: absolute; left: 0; right: 0; bottom: 0; padding-top: 34px; background: linear-gradient(rgba(8, 6, 26, 0), rgba(8, 6, 26, .82) 55%); }
body[data-page="home"] .footer::before { display: none; }
body[data-page="home"] .footer .legal { color: var(--muted); }

/* ---------------- toasts ---------------- */
.toasts { position: fixed; top: calc(var(--nav-h) + 12px); right: 12px; z-index: 120; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; gap: 14px; align-items: center;
  min-width: 260px; max-width: min(360px, calc(100vw - 24px));
  background: #191232; color: var(--text);
  padding: 12px 16px 12px 12px;
  box-shadow: inset 0 0 0 3px var(--gold-lo), 0 8px 0 rgba(0, 0, 0, .45);
  animation: toastIn .3s steps(5) both;
}
.toast.out { animation: toastOut .3s steps(5) both; }
.toast-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; background: #2b2550; box-shadow: inset 3px 3px 0 #17122f, inset -3px -3px 0 #4a4285; }
.toast-ico svg { width: 28px; height: auto; }
.toast b { display: block; font-family: var(--display); font-weight: 400; font-size: 9px; color: var(--gold); margin-bottom: 5px; }
.toast span span { font-size: 16px; line-height: 1.25; }
@keyframes toastIn { from { transform: translateX(110%); } }
@keyframes toastOut { to { transform: translateX(110%); opacity: 0; } }

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .cube { animation: none; transform: rotateX(-22deg) rotateY(35deg); }
}
