/* =========================================================
   ECSTACRAFT — styles
   ========================================================= */
:root {
  --ink: #160b2e;
  --ink-2: #2a1a4f;
  --paper: #fffdf3;
  --sky-1: #1672ff;
  --sky-2: #4fb0ff;
  --sky-3: #bfe7ff;
  --grass: #5fd93a;
  --grass-hi: #9dff6a;
  --grass-d: #2f8f1b;
  --dirt: #8b5a2b;
  --stone: #7d7d86;

  --r: #ff2a6d;
  --o: #ff8a1c;
  --y: #ffe14d;
  --g: #3dff7a;
  --c: #20e3ff;
  --b: #3d5bff;
  --p: #a24bff;
  --m: #ff4bd8;

  --up: #3dff7a;
  --down: #ff3d6e;

  --rainbow: linear-gradient(90deg, var(--r), var(--o), var(--y), var(--g), var(--c), var(--b), var(--p), var(--m), var(--r));
  --px: 4px;

  --f-pixel: "Press Start 2P", ui-monospace, monospace;
  --f-body: "Pixelify Sans", system-ui, sans-serif;

  --tex-dirt: none;
  --tex-stone: none;
  --tex-deep: none;
  --tex-grass: none;
  --tex-bedrock: none;
  --tex-edge: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: #0b0716;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: var(--m); color: #fff; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; position: relative; }
.center { text-align: center; }

/* ---------- pixel outline helper (rounded pixel corners) ---------- */
.px-out {
  box-shadow:
    0 calc(var(--px) * -1) 0 0 var(--ink),
    0 var(--px) 0 0 var(--ink),
    calc(var(--px) * -1) 0 0 0 var(--ink),
    var(--px) 0 0 0 var(--ink);
}

/* =========================================================
   LOADER
   ========================================================= */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: #24170d;
  color: #fff;
  font-family: var(--f-pixel);
}
.ld-bg {
  position: absolute; inset: 0;
  background-image: var(--tex-dirt);
  background-size: 64px 64px;
  image-rendering: pixelated;
  opacity: .55;
  filter: brightness(.45) saturate(1.1);
  animation: ldPan 18s linear infinite;
}
@keyframes ldPan { to { background-position: 64px 128px; } }
.ld-inner { position: relative; display: grid; justify-items: center; gap: 18px; padding: 24px; width: min(520px, 100%); }
.ld-art {
  position: relative; width: 168px; height: 168px;
  background: var(--ink);
  box-shadow: 0 -6px 0 0 #000, 0 6px 0 0 #000, -6px 0 0 0 #000, 6px 0 0 0 #000, 0 0 60px 10px rgba(255, 75, 216, .35);
  animation: ldBob 1.6s steps(4) infinite;
}
.ld-art canvas { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.ld-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); pointer-events: none; }
@keyframes ldBob { 50% { transform: translateY(-6px); } }
.ld-title {
  font-size: clamp(20px, 5vw, 34px);
  letter-spacing: 2px;
  background: var(--rainbow); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(3px 3px 0 #000);
  animation: rainbowShift 3s linear infinite;
}
@keyframes rainbowShift { to { background-position: -200% 0; } }
.ld-status { font-size: 11px; color: #e6e6e6; text-shadow: 2px 2px 0 #3f3f3f; min-height: 14px; }
.ld-dots::after { content: ""; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ld-bar {
  position: relative; width: 100%; height: 28px;
  background: #111;
  box-shadow: 0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, inset 0 0 0 3px #5a5a5a;
  overflow: hidden;
}
.ld-fill {
  position: absolute; inset: 3px auto 3px 3px; width: 0;
  background: linear-gradient(90deg, var(--r) 0 12.5%, var(--o) 12.5% 25%, var(--y) 25% 37.5%, var(--g) 37.5% 50%, var(--c) 50% 62.5%, var(--b) 62.5% 75%, var(--p) 75% 87.5%, var(--m) 87.5% 100%);
  background-size: calc(min(520px, 100vw) - 54px) 100%;
  box-shadow: inset 0 4px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.3);
}
.ld-cells { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(0,0,0,.55) 22px 25px); pointer-events: none; }
.ld-pct { font-size: 14px; color: var(--y); text-shadow: 2px 2px 0 #3f2a00; }
.ld-tip { font-family: var(--f-body); font-size: 16px; color: #ffff7f; text-align: center; min-height: 26px; text-shadow: 2px 2px 0 #3f3f00; }
#ld-wipe { position: fixed; inset: 0; z-index: 10001; pointer-events: none; width: 100%; height: 100%; display: none; image-rendering: pixelated; }

/* =========================================================
   CURSOR + FX
   ========================================================= */
#fx { position: fixed; inset: 0; z-index: 9000; pointer-events: none; width: 100%; height: 100%; }
#cursor { position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none; display: none; }
.has-cursor #cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
.has-cursor iframe, .has-cursor .mk-chart { cursor: crosshair; }
.c-block {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--ink), 0 0 12px 2px rgba(255,255,255,.7);
  transition: transform .15s steps(3), background .2s;
}
.c-ring {
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 3px solid rgba(255,255,255,.9);
  outline: 2px solid rgba(22,11,46,.55);
  mix-blend-mode: difference;
  transition: width .25s cubic-bezier(.2,.9,.3,1.3), height .25s cubic-bezier(.2,.9,.3,1.3), margin .25s cubic-bezier(.2,.9,.3,1.3), border-color .2s;
}
#cursor.is-hover .c-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--y); mix-blend-mode: normal; outline-color: var(--ink); }
#cursor.is-hover .c-block { transform: scale(.5) rotate(45deg); background: var(--y); }
#cursor.is-down .c-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
#cursor.is-hidden { opacity: 0; }

/* =========================================================
   HUD
   ========================================================= */
.hud {
  position: fixed; left: 14px; bottom: 14px; z-index: 800;
  font-family: var(--f-pixel); font-size: 8px; line-height: 1.9;
  color: #fff; background: rgba(10, 6, 22, .55);
  padding: 8px 10px; pointer-events: none;
  text-shadow: 1px 1px 0 #000;
  backdrop-filter: blur(4px);
}
.hud b { color: var(--y); font-weight: 400; }
.hud-fps { color: var(--g); margin-left: 6px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 14px; left: 50%; z-index: 900;
  width: min(1200px, 100% - 24px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 16px;
  background: rgba(255, 253, 243, .82);
  backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 0 12px 0 0 rgba(22,11,46,.18);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), background .3s;
}
.nav.is-hidden { transform: translate(-50%, -140%); }
.nav-logo { display: flex; align-items: center; gap: 12px; font-family: var(--f-pixel); font-size: 13px; }
.nav-name em { font-style: normal; filter: drop-shadow(1px 1px 0 var(--ink)); background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbowShift 4s linear infinite; }
.nav-cube { position: relative; width: 26px; height: 26px; display: grid; grid-template-rows: 8px 1fr; box-shadow: 0 0 0 3px var(--ink); }
.nav-cube i:nth-child(1) { background: var(--grass); box-shadow: inset 0 3px 0 var(--grass-hi); }
.nav-cube i:nth-child(2) { background: linear-gradient(180deg, var(--r), var(--o), var(--y), var(--g), var(--c), var(--p)); }
.nav-cube i:nth-child(3) { display: none; }
.nav-logo:hover .nav-cube { animation: cubeHop .5s steps(5); }
@keyframes cubeHop { 40% { transform: translateY(-6px) rotate(-8deg); } 80% { transform: translateY(0) rotate(4deg); } }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  font-family: var(--f-pixel); font-size: 10px; padding: 10px 12px; position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 4px;
  background: var(--rainbow); transform: scaleX(0); transform-origin: left; transition: transform .3s steps(6);
}
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-social { display: flex; align-items: center; gap: 12px; }
.ico-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink), inset -3px -3px 0 rgba(0,0,0,.15);
  transition: background .2s, transform .2s;
}
.ico-btn svg { width: 18px; height: 18px; fill: var(--ink); }
.ico-btn:hover { background: var(--y); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: var(--ink); padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.burger i { display: block; height: 4px; background: #fff; transition: transform .3s; }
.nav.menu-open .burger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav.menu-open .burger i:nth-child(2) { opacity: 0; }
.nav.menu-open .burger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  --bg: var(--grass);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-pixel); font-size: 12px; line-height: 1.2; letter-spacing: .5px;
  padding: 18px 24px; color: #fff; background: var(--bg); border: 0;
  text-shadow: 2px 2px 0 rgba(0,0,0,.45);
  box-shadow:
    0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink),
    inset -4px -5px 0 rgba(0,0,0,.3), inset 4px 4px 0 rgba(255,255,255,.4),
    0 12px 0 0 rgba(22,11,46,.28);
  transition: transform .12s, box-shadow .12s, filter .2s;
  white-space: nowrap;
}
.btn span { position: relative; z-index: 1; }
.btn b { font-weight: 400; }
.btn:hover { filter: brightness(1.08) saturate(1.15); }
.btn:active { transform: translateY(4px); box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), inset -4px -3px 0 rgba(0,0,0,.3), inset 4px 4px 0 rgba(255,255,255,.4), 0 6px 0 0 rgba(22,11,46,.28); }
.btn-buy { background: linear-gradient(90deg, var(--r), var(--o), var(--y), var(--g), var(--c), var(--b), var(--p), var(--m), var(--r)); background-size: 300% 100%; animation: rainbowShift 6s linear infinite; }
.btn-buy::before { content: ""; position: absolute; inset: 0; background: rgba(22,11,46,.18); }
.btn-ghost { --bg: #fff; color: var(--ink); text-shadow: none; }
.btn-sm { font-size: 10px; padding: 12px 14px; }
.btn-lg { font-size: 14px; padding: 22px 32px; }

[data-link].is-soon { position: relative; }
[data-link].is-soon::after {
  content: "SOON"; position: absolute; top: -14px; right: -12px; z-index: 2;
  font-family: var(--f-pixel); font-size: 7px; line-height: 1; padding: 4px 5px;
  background: var(--y); color: var(--ink); text-shadow: none;
  box-shadow: 0 0 0 2px var(--ink);
  transform: rotate(8deg);
  animation: soonPulse 1.6s steps(2) infinite;
}
@keyframes soonPulse { 50% { transform: rotate(8deg) scale(1.12); } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  padding: 130px 0 90px;
  display: flex; align-items: center;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 52%, var(--sky-3) 100%);
  overflow: hidden;
  isolation: isolate;
}
.sky-sun {
  position: absolute; top: -12vmax; right: -10vmax; width: 44vmax; height: 44vmax; z-index: -2;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,250,200,.5) 30%, rgba(255,140,230,.18) 60%, transparent 72%);
  animation: sunPulse 6s ease-in-out infinite;
}
@keyframes sunPulse { 50% { transform: scale(1.06); opacity: .85; } }
.clouds, .cubes { position: absolute; inset: 0; pointer-events: none; }
.clouds { z-index: -1; }
.cloud { position: absolute; left: 0; will-change: transform; animation: drift var(--dur, 60s) linear infinite; animation-delay: var(--delay, 0s); }
.cloud-in { display: grid; grid-auto-flow: column; image-rendering: pixelated; filter: drop-shadow(0 8px 0 rgba(30, 90, 200, .18)); }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(130vw); } }
.cubes { z-index: 2; }
.cube-wrap { position: absolute; perspective: 600px; will-change: transform; }
.cube {
  --s: 40px;
  width: var(--s); height: var(--s); position: relative;
  transform-style: preserve-3d;
  animation: spin var(--spd, 9s) linear infinite;
}
.cube i { position: absolute; inset: 0; background: var(--cc); box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), inset 0 0 calc(var(--s) * .4) rgba(255,255,255,.35); opacity: .92; }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); filter: brightness(.7); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.85); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.8); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); filter: brightness(1.15); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); filter: brightness(.6); }
.cube-wrap::after { content: ""; position: absolute; inset: -30%; background: radial-gradient(closest-side, var(--cc), transparent); opacity: .45; filter: blur(8px); z-index: -1; }
@keyframes spin { from { transform: rotateX(-25deg) rotateY(0deg); } to { transform: rotateX(-25deg) rotateY(360deg); } }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: center; z-index: 3; }
.hero-grid > *, .lore-grid > * { min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-pixel); font-size: 10px; padding: 10px 14px;
  background: rgba(255,255,255,.88); color: var(--ink);
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
}
.chip b { font-weight: 400; color: var(--p); }
.chip-dot { width: 10px; height: 10px; background: var(--g); box-shadow: 0 0 0 2px var(--ink); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { background: var(--grass-d); } }

.hero-title {
  margin: 26px 0 18px;
  font-family: var(--f-pixel); font-weight: 400;
  font-size: clamp(42px, 7.6vw, 108px); line-height: 1.02; letter-spacing: -.02em;
  display: grid; gap: .12em;
}
.ht-row { display: block; white-space: nowrap; }
.ch {
  display: inline-block; position: relative;
  background: linear-gradient(180deg, var(--grass-hi) 0 9%, var(--grass) 9% 22%, var(--c1) 22% 58%, var(--c2) 58% 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 .05em 0 var(--ink)) drop-shadow(.05em 0 0 var(--ink)) drop-shadow(-.025em 0 0 var(--ink)) drop-shadow(0 -.025em 0 var(--ink)) drop-shadow(.04em .06em 0 rgba(22,11,46,.35));
  will-change: transform;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.ch:hover { transform: translateY(-.12em) rotate(-4deg); }

.hero-sub { max-width: 520px; font-size: 21px; color: #0b1d4a; margin: 0 0 26px; text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.hero-sub b { color: var(--ink); background: linear-gradient(transparent 55%, rgba(255,225,77,.85) 55%); }

.ca-box {
  display: flex; align-items: center; gap: 12px; max-width: 560px;
  padding: 8px 8px 8px 14px; margin-bottom: 26px;
  background: var(--ink); color: #fff;
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), 0 10px 0 0 rgba(22,11,46,.25);
}
.ca-label { font-family: var(--f-pixel); font-size: 10px; color: var(--ink); background: var(--y); padding: 6px 7px; }
.ca-box code { flex: 1; min-width: 0; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d6ccff; }
.ca-copy {
  display: inline-flex; align-items: center; gap: 8px; border: 0;
  font-family: var(--f-pixel); font-size: 9px; padding: 10px 12px;
  background: var(--grass); color: var(--ink);
  box-shadow: inset -3px -3px 0 rgba(0,0,0,.25), inset 3px 3px 0 rgba(255,255,255,.45);
}
.ca-copy svg { width: 14px; height: 14px; fill: currentColor; }
.ca-copy:hover { background: var(--y); }
.ca-copy.is-done { background: var(--c); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.hs {
  min-width: 132px; padding: 10px 14px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(6px);
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink);
}
.hs small { display: block; font-family: var(--f-pixel); font-size: 8px; color: #4b3f78; margin-bottom: 6px; }
.hs b { font-family: var(--f-pixel); font-size: 13px; font-weight: 400; }

.hero-art { position: relative; perspective: 1200px; }
.art-card { position: relative; transform-style: preserve-3d; will-change: transform; }
.art-frame {
  position: relative; overflow: hidden; aspect-ratio: 1;
  box-shadow:
    0 -6px 0 0 var(--ink), 0 6px 0 0 var(--ink), -6px 0 0 0 var(--ink), 6px 0 0 0 var(--ink),
    0 0 0 6px #fff, 0 0 0 12px var(--ink),
    0 30px 80px -10px rgba(162, 75, 255, .6), 0 0 120px rgba(255, 75, 216, .35);
  background: var(--ink);
}
.art-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.art-holo {
  position: absolute; inset: 0; mix-blend-mode: color-dodge; opacity: .22; pointer-events: none;
  background: conic-gradient(from var(--ha, 0deg) at var(--hx, 50%) var(--hy, 50%), var(--r), var(--y), var(--g), var(--c), var(--b), var(--m), var(--r));
}
.art-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--hx, 50%) var(--hy, 30%), rgba(255,255,255,.45), transparent 40%);
  mix-blend-mode: soft-light;
}
.art-tag {
  position: absolute; font-family: var(--f-pixel); font-size: 10px; padding: 10px 12px;
  background: #fff; color: var(--ink);
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink), 0 8px 0 0 rgba(22,11,46,.3);
  transform: translateZ(60px);
  animation: tagFloat 4s ease-in-out infinite;
}
.art-tag span { margin-right: 6px; }
.tag-a { top: 8%; left: -9%; } .tag-a span { color: var(--m); }
.tag-b { top: 46%; right: -8%; animation-delay: -1.3s; } .tag-b span { color: var(--r); }
.tag-c { bottom: 7%; left: -5%; animation-delay: -2.6s; } .tag-c span { color: var(--p); }
@keyframes tagFloat { 50% { translate: 0 -10px; } }

.scroll-hint {
  position: absolute; left: 50%; bottom: 24px; z-index: 4; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-family: var(--f-pixel); font-size: 9px; color: var(--ink);
}
.pickaxe {
  width: 32px; height: 32px; display: block; image-rendering: pixelated;
  background-size: 100% 100%;
  animation: dig 1.1s steps(4) infinite;
  transform-origin: 70% 70%;
}
@keyframes dig { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-35deg) translateY(4px); } }

/* =========================================================
   SURFACE / MARQUEE
   ========================================================= */
.surface {
  position: relative; z-index: 5; height: 64px; margin-top: -40px;
  background-image: var(--tex-tuft);
  background-size: 64px 64px; background-repeat: repeat-x;
  image-rendering: pixelated;
}
.marquee {
  position: relative; z-index: 6; overflow: hidden;
  background: var(--ink); color: #fff;
  padding: 18px 0; margin: -6px 0 -18px;
  transform: rotate(-1.4deg); width: 104%; margin-left: -2%;
  box-shadow: 0 -6px 0 0 var(--y), 0 6px 0 0 var(--m);
}
.mq-track { display: flex; width: max-content; gap: 34px; animation: mq 28s linear infinite; font-family: var(--f-pixel); font-size: 18px; white-space: nowrap; }
.mq-track span:nth-of-type(6n+1) { color: var(--y); }
.mq-track span:nth-of-type(6n+3) { color: var(--c); }
.mq-track span:nth-of-type(6n+5) { color: var(--g); }
.mq-track i { font-style: normal; color: var(--m); }
@keyframes mq { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS GENERIC
   ========================================================= */
.sec { position: relative; padding: 130px 0; overflow: hidden; isolation: isolate; }
.sec-head { margin-bottom: 56px; }
.sec-head p { max-width: 560px; margin: 16px auto 0; font-size: 20px; }
.kicker {
  display: inline-block; font-family: var(--f-pixel); font-size: 10px; letter-spacing: 1px;
  padding: 8px 10px; margin-bottom: 18px;
  background: var(--ink); color: var(--y);
  box-shadow: 0 0 0 3px var(--y);
}
.h2 {
  margin: 0; font-family: var(--f-pixel); font-weight: 400;
  font-size: clamp(28px, 4.6vw, 58px); line-height: 1.15;
}
.h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em; margin: -.08em 0; }
.h2 .w > span { display: inline-block; will-change: transform; }
.lead { font-size: 22px; }

/* ---- Meadow (lore) ---- */
.meadow {
  background-color: #6cd63f;
  background-image: linear-gradient(180deg, rgba(160, 255, 110, .55), rgba(60, 170, 40, .35)), var(--tex-grass);
  background-size: auto, 64px 64px;
  image-rendering: pixelated;
  padding-top: 170px;
}
.lore-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.lore-art { position: relative; }
.pixel-reveal {
  position: relative; aspect-ratio: 1; background: var(--ink);
  box-shadow: 0 -6px 0 0 var(--ink), 0 6px 0 0 var(--ink), -6px 0 0 0 var(--ink), 6px 0 0 0 var(--ink), 0 0 0 6px #fff, 0 0 0 12px var(--ink), 18px 22px 0 6px rgba(22,11,46,.3);
}
.pixel-reveal canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.pr-corners i { position: absolute; width: 18px; height: 18px; border: 4px solid var(--y); }
.pr-corners i:nth-child(1) { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.pr-corners i:nth-child(2) { top: 10px; right: 10px; border-left: 0; border-bottom: 0; }
.pr-corners i:nth-child(3) { bottom: 10px; left: 10px; border-right: 0; border-top: 0; }
.pr-corners i:nth-child(4) { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.lore-badge {
  position: absolute; right: -18px; top: -22px;
  font-family: var(--f-pixel); font-size: 14px; padding: 14px;
  background: var(--y); color: var(--ink);
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
  transform: rotate(6deg);
  animation: soonPulse 2s steps(2) infinite;
}
.lore-copy {
  background: var(--paper); padding: 40px;
  box-shadow: 0 -6px 0 0 var(--ink), 0 6px 0 0 var(--ink), -6px 0 0 0 var(--ink), 6px 0 0 0 var(--ink), 16px 18px 0 0 rgba(22,11,46,.25);
}
.lore-copy .h2 { font-size: clamp(22px, 3vw, 36px); margin-bottom: 18px; }
.lore-copy em { font-style: normal; color: var(--m); font-weight: 700; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 26px; }
.feat {
  padding: 18px 14px; background: #fff;
  box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink), inset -4px -4px 0 rgba(22,11,46,.08);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.feat:hover { transform: translateY(-6px) rotate(-1deg); }
.feat h3 { font-family: var(--f-pixel); font-size: 10px; line-height: 1.5; margin: 12px 0 8px; }
.feat p { margin: 0; font-size: 15px; line-height: 1.4; }
.feat-ico, .slot-ico, .step-ico, .ach-ico { width: 48px; height: 48px; image-rendering: pixelated; background-size: 100% 100%; }

/* ---- Dirt (tokenomics) ---- */
.dirt {
  background-color: #6b4423;
  background-image: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.35)), var(--tex-dirt);
  background-size: auto, 64px 64px;
  image-rendering: pixelated;
  color: #fff;
  padding-top: 170px;
}
.grass-top { position: absolute; left: 0; right: 0; top: 0; height: 64px; background-image: var(--tex-edge); background-size: 64px 64px; background-repeat: repeat-x; image-rendering: pixelated; }
.dirt .h2 { text-shadow: 4px 4px 0 #2b1709; }
.dirt .sec-head p { color: #f5e2c8; }
.inv {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  padding: 14px; background: #c6c6c6; color: #3a3a3a;
  box-shadow: 0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, inset 4px 4px 0 #fff, inset -4px -4px 0 #555;
}
.slot {
  display: grid; justify-items: center; text-align: center; gap: 8px;
  padding: 26px 12px;
  background: #8b8b8b;
  box-shadow: inset 4px 4px 0 #373737, inset -4px -4px 0 #fff;
  color: #fff;
  transition: background .2s;
}
.slot:hover { background: #a3a3a3; }
.slot-ico { width: 56px; height: 56px; filter: drop-shadow(3px 3px 0 rgba(0,0,0,.35)); }
.slot small { font-family: var(--f-pixel); font-size: 9px; color: #2b2b2b; }
.slot b { font-family: var(--f-pixel); font-weight: 400; font-size: clamp(13px, 1.6vw, 18px); color: #fff; text-shadow: 3px 3px 0 #3f3f3f; }
.slot > span { font-size: 15px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.craft {
  margin: 46px auto 0; width: fit-content; max-width: 100%;
  display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 22px;
  padding: 22px 26px; background: #c6c6c6; color: #3a3a3a;
  box-shadow: 0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, inset 4px 4px 0 #fff, inset -4px -4px 0 #555;
}
.craft-grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; }
.craft-grid i { width: 44px; height: 44px; background: #8b8b8b; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff; position: relative; }
.craft-grid i::after { content: ""; position: absolute; inset: 9px; background: var(--k); box-shadow: inset -4px -4px 0 rgba(0,0,0,.25), inset 4px 4px 0 rgba(255,255,255,.4); }
.c-r { --k: var(--r); } .c-o { --k: var(--o); } .c-y { --k: var(--y); } .c-g { --k: var(--g); } .c-c { --k: var(--c); }
.c-b { --k: var(--b); } .c-p { --k: var(--p); } .c-m { --k: var(--m); } .c-w { --k: #fff; }
.craft-arrow { font-size: 40px; color: #8b8b8b; text-shadow: 2px 2px 0 #fff; }
.craft-out { position: relative; width: 92px; height: 92px; background: #8b8b8b; box-shadow: inset 4px 4px 0 #373737, inset -4px -4px 0 #fff; padding: 12px; }
.craft-out img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; image-rendering: pixelated; }
.craft-out span { position: absolute; right: 6px; bottom: 4px; font-family: var(--f-pixel); font-size: 10px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.craft-note { grid-column: 1 / -1; margin: 0; text-align: center; font-size: 15px; color: #3a3a3a; }

/* ---- Cave (chart) ---- */
.cave {
  background-color: #191426;
  background-image: linear-gradient(180deg, rgba(25, 20, 38, .55), rgba(12, 8, 24, .9)), var(--tex-stone);
  background-size: auto, 64px 64px;
  image-rendering: pixelated;
  color: #fff;
}
.ores { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ore { position: absolute; width: 8px; height: 8px; background: var(--oc); box-shadow: 0 0 14px 4px var(--oc); animation: twinkle var(--t, 3s) steps(3) infinite; animation-delay: var(--d, 0s); opacity: .8; }
@keyframes twinkle { 50% { opacity: .15; } }
.cave .sec-head p { color: #cfc6ee; }

.market {
  position: relative;
  background: rgba(13, 9, 26, .92);
  padding: 22px;
  box-shadow:
    0 -4px 0 0 #3b2c66, 0 4px 0 0 #3b2c66, -4px 0 0 0 #3b2c66, 4px 0 0 0 #3b2c66,
    0 0 0 8px rgba(162, 75, 255, .12), 0 0 80px rgba(162, 75, 255, .25);
  font-family: var(--f-body);
}
.market::before {
  content: ""; position: absolute; left: 0; right: 0; top: -4px; height: 4px;
  background: var(--rainbow); background-size: 200% 100%; animation: rainbowShift 5s linear infinite;
}
.mk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-bottom: 18px; }
.mk-id { display: flex; align-items: center; gap: 12px; }
.mk-id img { width: 44px; height: 44px; object-fit: cover; box-shadow: 0 0 0 3px #fff; image-rendering: auto; }
.mk-pair { display: block; font-family: var(--f-pixel); font-weight: 400; font-size: 13px; }
.mk-id small { color: #a99fd0; font-size: 15px; }
.mk-price { display: flex; align-items: baseline; gap: 14px; margin-right: auto; }
.mk-price b { font-family: var(--f-pixel); font-weight: 400; font-size: clamp(18px, 2.4vw, 28px); }
.chg { font-family: var(--f-pixel); font-size: 12px; padding: 6px 8px; background: rgba(255,255,255,.08); }
.chg.up { color: var(--up); background: rgba(61,255,122,.12); }
.chg.down { color: var(--down); background: rgba(255,61,110,.12); }
.mk-state { display: grid; justify-items: end; gap: 4px; }
.mk-state small { color: #a99fd0; font-size: 14px; }
.mk-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-pixel); font-size: 10px; padding: 7px 10px; background: rgba(255,255,255,.06); }
.mk-status b { font-weight: 400; }
.mk-status .dot { width: 9px; height: 9px; background: var(--y); }
.mk-status[data-state="live"] { color: var(--up); }
.mk-status[data-state="live"] .dot { background: var(--up); box-shadow: 0 0 10px var(--up); animation: blinkSoft 1.2s steps(2) infinite; }
.mk-status[data-state="connecting"] { color: var(--y); }
.mk-status[data-state="connecting"] .dot { animation: blinkSoft .5s steps(2) infinite; }
.mk-status[data-state="offline"] { color: var(--down); }
.mk-status[data-state="offline"] .dot { background: var(--down); }
.mk-status[data-state="demo"] { color: var(--m); }
.mk-status[data-state="demo"] .dot { background: var(--m); }
@keyframes blinkSoft { 50% { opacity: .25; } }

.mk-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.seg { display: inline-flex; background: #0a0716; padding: 4px; gap: 4px; box-shadow: inset 0 0 0 2px #2a2048; }
.seg button {
  border: 0; background: transparent; color: #b8afd9;
  font-family: var(--f-pixel); font-size: 10px; padding: 10px 12px;
  transition: background .15s, color .15s;
}
.seg button:hover { color: #fff; background: rgba(255,255,255,.06); }
.seg button.on { color: var(--ink); background: var(--y); box-shadow: inset -3px -3px 0 rgba(0,0,0,.2), inset 3px 3px 0 rgba(255,255,255,.5); }
#mk-type button[data-type="dex"].on { background: var(--c); }

.mk-chart-wrap { position: relative; height: 480px; background: #0b0816; box-shadow: inset 0 0 0 2px #241b40; overflow: hidden; }
.mk-chart { position: absolute; inset: 0; }
.mk-dexframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0816; z-index: 3; }
.mk-legend {
  position: absolute; left: 12px; top: 10px; z-index: 2; pointer-events: none;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12px; color: #b8afd9;
  display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: calc(100% - 140px);
}
.mk-legend b { font-weight: 600; color: #fff; }
.mk-legend .up { color: var(--up); } .mk-legend .down { color: var(--down); }
.mk-overlay {
  position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: rgba(11, 8, 22, .85); font-family: var(--f-pixel); font-size: 11px; color: #cfc6ee; text-align: center; padding: 20px;
  transition: opacity .35s;
}
.mk-overlay.is-hidden { opacity: 0; pointer-events: none; }
.mk-spinner { display: grid; grid-template-columns: repeat(2, 14px); gap: 4px; }
.mk-spinner i { width: 14px; height: 14px; animation: spinCell 1.2s steps(1) infinite; }
.mk-spinner i:nth-child(1) { background: var(--r); }
.mk-spinner i:nth-child(2) { background: var(--y); animation-delay: .3s; }
.mk-spinner i:nth-child(3) { background: var(--c); animation-delay: .9s; }
.mk-spinner i:nth-child(4) { background: var(--m); animation-delay: .6s; }
.mk-overlay.no-spin .mk-spinner { display: none; }
@keyframes spinCell { 0%, 74% { opacity: 1; } 75%, 100% { opacity: .15; } }
.demo-badge {
  position: absolute; right: 70px; top: 12px; z-index: 5;
  font-family: var(--f-pixel); font-size: 11px; padding: 8px 10px;
  background: var(--m); color: #fff; text-shadow: 2px 2px 0 rgba(0,0,0,.35);
  box-shadow: 0 0 0 3px var(--ink), 0 0 24px rgba(255,75,216,.6);
  animation: soonPulseFlat 1.4s steps(2) infinite;
}
@keyframes soonPulseFlat { 50% { transform: scale(1.06); } }

.mk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.st { padding: 14px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 2px #241b40; min-width: 0; }
.st small { display: block; font-family: var(--f-pixel); font-size: 8px; color: #8f85bb; margin-bottom: 8px; }
.st b { font-family: var(--f-pixel); font-weight: 400; font-size: 14px; display: inline-block; padding: 2px 4px; margin: -2px -4px; transition: background .6s, color .6s; white-space: nowrap; }
.st-wide { grid-column: span 2; }
.bs { display: flex; align-items: center; gap: 10px; }
.bs .up { color: var(--up); } .bs .down { color: var(--down); }
.bs-bar { flex: 1; height: 10px; background: var(--down); position: relative; box-shadow: 0 0 0 2px #0a0716; }
.bs-bar i { position: absolute; inset: 0 auto 0 0; width: 50%; background: var(--up); transition: width .8s cubic-bezier(.2,.8,.2,1); }
.flash-up { background: rgba(61,255,122,.28) !important; color: var(--up) !important; transition: none !important; }
.flash-down { background: rgba(255,61,110,.28) !important; color: var(--down) !important; transition: none !important; }
.mk-attrib { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; margin-top: 14px; font-size: 13px; color: #8f85bb; }
.mk-attrib a { color: #cfc6ee; text-decoration: underline; text-decoration-color: rgba(207,198,238,.35); text-underline-offset: 3px; }
.mk-attrib a:hover { color: var(--y); }

/* ---- Deep (how to buy) ---- */
.deep {
  background-color: #1b1b25;
  background-image: linear-gradient(180deg, rgba(12, 8, 24, .9), rgba(20, 18, 32, .75)), var(--tex-deep);
  background-size: auto, 64px 64px;
  image-rendering: pixelated;
  color: #fff;
}
.steps { list-style: none; margin: 0 0 54px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step {
  position: relative; padding: 30px 22px 26px;
  background: linear-gradient(180deg, #2a2440, #1a1630);
  box-shadow: 0 -4px 0 0 #4a3f75, 0 4px 0 0 #0a0716, -4px 0 0 0 #3a3160, 4px 0 0 0 #0a0716;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1), box-shadow .3s;
}
.step:hover { transform: translateY(-8px); box-shadow: 0 -4px 0 0 var(--y), 0 4px 0 0 var(--y), -4px 0 0 0 var(--y), 4px 0 0 0 var(--y), 0 20px 50px rgba(255,225,77,.15); }
.step-n { position: absolute; top: 18px; right: 18px; font-family: var(--f-pixel); font-size: 22px; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.3); }
.step-ico { width: 56px; height: 56px; margin-bottom: 18px; filter: drop-shadow(0 0 14px rgba(255,255,255,.18)); }
.step h3 { font-family: var(--f-pixel); font-weight: 400; font-size: 12px; margin: 0 0 12px; color: var(--y); }
.step p { margin: 0; color: #cfc6ee; font-size: 16px; }

/* ---- Deep 2 (roadmap) ---- */
.deep2 {
  background:
    radial-gradient(60% 50% at 20% 30%, rgba(61, 255, 122, .12), transparent 70%),
    radial-gradient(50% 50% at 85% 70%, rgba(255, 75, 216, .14), transparent 70%),
    #120d22;
  color: #fff;
}
.road { position: relative; display: grid; gap: 22px; max-width: 760px; margin: 0 auto; padding-left: 44px; }
.road-line { position: absolute; left: 10px; top: 10px; bottom: 10px; width: 8px; background: #2a2048; }
.road-line i { position: absolute; left: 0; right: 0; top: 0; height: 0; background: linear-gradient(180deg, var(--g), var(--c), var(--p), var(--m)); box-shadow: 0 0 18px rgba(61,255,226,.6); }
.ach {
  position: relative; display: flex; gap: 18px; align-items: center;
  padding: 18px 20px; background: #212121; color: #fff;
  box-shadow: 0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, inset 0 0 0 3px #555;
}
.ach::before { content: ""; position: absolute; left: -42px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--y); box-shadow: 0 0 0 4px #120d22, 0 0 16px var(--y); }
.ach-ico { flex: none; width: 52px; height: 52px; padding: 6px; background: #8b8b8b; box-shadow: inset 3px 3px 0 #373737, inset -3px -3px 0 #fff; background-origin: content-box; background-clip: border-box; background-repeat: no-repeat; background-size: 40px 40px; background-position: center; }
.ach small { display: block; font-family: var(--f-pixel); font-size: 9px; color: var(--y); margin-bottom: 6px; }
.ach h3 { font-family: var(--f-pixel); font-weight: 400; font-size: 13px; margin: 0 0 6px; }
.ach p { margin: 0; color: #d0d0d0; font-size: 16px; }

/* ---- Bedrock (join) ---- */
.bedrock {
  background-color: #0b0a10;
  background-image: linear-gradient(180deg, rgba(11,10,16,.92), rgba(11,10,16,.7)), var(--tex-bedrock);
  background-size: auto, 64px 64px;
  image-rendering: pixelated;
  color: #fff; padding-bottom: 40px;
}
.join-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.join-bg img { position: absolute; inset: 0; margin: auto; width: min(900px, 120vw); opacity: .2; filter: blur(3px) saturate(1.4); -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent); mask-image: radial-gradient(closest-side, #000 30%, transparent); }
.join { padding: 40px 0 110px; }
.join-title { font-size: clamp(30px, 6vw, 76px); filter: drop-shadow(4px 4px 0 #000); }
.join-title .w > span { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rainbowShift 5s linear infinite; }
.join > p { font-size: 21px; color: #d8d0f5; max-width: 560px; margin: 18px auto 40px; }
.join-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; }
.big-link {
  display: flex; align-items: center; gap: 16px; text-align: left;
  min-width: 250px; padding: 20px 24px;
  background: #fff; color: var(--ink);
  box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink), inset -4px -5px 0 rgba(0,0,0,.12), 0 0 0 8px rgba(255,255,255,.08);
  transition: background .2s, transform .2s;
}
.big-link svg { width: 34px; height: 34px; fill: var(--ink); flex: none; }
.big-link b { display: block; font-family: var(--f-pixel); font-weight: 400; font-size: 12px; margin-bottom: 4px; }
.big-link small { font-size: 15px; color: #4b3f78; }
.big-link:nth-child(1):hover { background: var(--c); }
.big-link:nth-child(2):hover { background: var(--g); }
.big-link:nth-child(3):hover { background: var(--y); }

.foot { display: grid; justify-items: center; gap: 12px; text-align: center; padding-top: 40px; border-top: 4px dashed rgba(255,255,255,.1); }
.foot-logo { font-family: var(--f-pixel); font-size: 18px; }
.foot-logo em { font-style: normal; color: var(--m); }
.foot-note { max-width: 680px; margin: 0; font-size: 14px; color: #8f85bb; }
.foot-copy { margin: 0; font-size: 13px; color: #5f5785; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 9800;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-pixel); font-size: 10px; line-height: 1.6;
  padding: 14px 18px; background: #212121; color: #fff;
  box-shadow: 0 -4px 0 0 #000, 0 4px 0 0 #000, -4px 0 0 0 #000, 4px 0 0 0 #000, inset 0 0 0 3px #555;
  transform: translate(-50%, 160%); transition: transform .45s cubic-bezier(.2,1.4,.4,1);
  pointer-events: none; max-width: calc(100% - 32px);
}
.toast b { color: var(--y); font-weight: 400; display: block; }
.toast.show { transform: translate(-50%, 0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .feat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-art { max-width: 520px; width: 88%; margin: 0 auto; }
  .lore-grid { grid-template-columns: minmax(0, 1fr); }
  .lore-art { max-width: 460px; width: 90%; margin: 0 auto; }
  .inv { grid-template-columns: repeat(2, 1fr); }
  .mk-stats { grid-template-columns: repeat(2, 1fr); }
  .mk-state { justify-items: start; }
  .hud { display: none; }
}
@media (max-width: 900px) {
  .nav-links {
    position: absolute; left: -4px; right: -4px; top: calc(100% + 10px);
    flex-direction: column; gap: 0; padding: 10px;
    background: rgba(255,253,243,.97);
    box-shadow: 0 -4px 0 0 var(--ink), 0 4px 0 0 var(--ink), -4px 0 0 0 var(--ink), 4px 0 0 0 var(--ink);
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none;
    transition: transform .3s steps(5), opacity .2s;
  }
  .nav.menu-open .nav-links { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 16px 12px; font-size: 11px; }
  .burger { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { top: 10px; padding: 8px 8px 8px 12px; }
  .nav-name { display: none; }
  .nav-social .ico-btn { display: none; }
  .sec { padding: 96px 0; }
  .meadow, .dirt { padding-top: 130px; }
  .hero-title { font-size: clamp(30px, 14.5vw, 64px); }
  .hero-sub { font-size: 18px; }
  .hero-cta { gap: 18px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hs { min-width: 0; flex: 1 1 calc(50% - 14px); }
  .art-tag { font-size: 8px; padding: 8px; }
  .tag-a { left: -4%; } .tag-b { right: -4%; } .tag-c { left: -2%; }
  .lore-copy { padding: 26px 20px; }
  .lore-badge { right: -6px; }
  .inv { grid-template-columns: 1fr 1fr; padding: 8px; gap: 6px; }
  .slot { padding: 18px 6px; }
  .craft { grid-template-columns: 1fr; justify-items: center; }
  .craft-arrow { transform: rotate(90deg); }
  .market { padding: 14px; }
  .mk-chart-wrap { height: 360px; }
  .mk-toolbar .seg { width: 100%; }
  .seg button { flex: 1; padding: 10px 4px; font-size: 9px; }
  .demo-badge { right: 12px; top: auto; bottom: 34px; font-size: 9px; }
  .mk-legend { max-width: calc(100% - 24px); font-size: 11px; }
  .st-wide { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .road { padding-left: 34px; }
  .road-line { left: 4px; }
  .ach::before { left: -36px; }
  .ach { padding: 14px; gap: 12px; }
  .big-link { min-width: 0; width: 100%; }
  .marquee .mq-track { font-size: 13px; }
}

@media (hover: none), (pointer: coarse) {
  #cursor { display: none !important; }
}

html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
html.reduce-motion .mq-track { animation: none; }
