/* CLUSTER — black and quiet. White type, grey detail, mono numbers; the only colour is the tier
   of a card (RTX violet, A100 magenta, H100 orange, B200 white-gold), used in small doses. */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/assets/fonts/inter.woff2) format("woff2-variations"), url(/assets/fonts/inter.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800; src: url(/assets/fonts/jbmono.woff2) format("woff2-variations"), url(/assets/fonts/jbmono.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-1: #060607;
  --bg-2: #0b0b0d;
  --bg-3: #121215;
  --line: #1d1d21;
  --line-2: #2b2b31;
  --text: #f5f5f6;
  --soft: #c9c9cf;
  --mute: #8e8e96;
  --dim: #5a5a62;
  --rtx: #8b7dff;
  --a100: #ec5fa8;
  --h100: #ff9640;
  --b200: #ffe9b0;
  --hot: #ffffff;
  --ok: #4ade80;
  --bad: #ff5d6c;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --wrap: 1200px;
  --f: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11" 1, "ss01" 1, "tnum" 1; overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(255, 255, 255, .22); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--bg); }
.preview-note { background: var(--bg-2); color: var(--mute); font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-align: center; padding: 7px 16px; border-bottom: 1px solid var(--line); }

/* ---------- the page background: faint dot grid; a few dots light up (bgdots.mjs) ---------- */
.bgfield { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(circle at center, rgba(255, 255, 255, .085) 0.9px, transparent 1.3px); background-size: 26px 26px; background-position: 0 0; }
.bgfield canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
main, footer.foot, .preview-note { position: relative; z-index: 1; }
.preview-note { z-index: 2; }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
h3 { font-size: 17px; line-height: 1.3; }
.h1 { display: grid; font-size: clamp(42px, 5.5vw, 80px); line-height: 1.0; letter-spacing: -0.05em; font-weight: 600; margin: 0; }
.h1 .h1-2 { background: linear-gradient(180deg, #a6a6ae, #5f5f67); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.h1.sm { font-size: clamp(36px, 5vw, 64px); }
.display { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.05em; font-weight: 600; margin: 0; }
.lead { font-size: clamp(16px, 1.35vw, 18px); color: var(--mute); max-width: 34em; margin: 0; line-height: 1.6; }
.label, .k, .kicker { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0; }
.num { font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; }
.small { font-size: 13px; color: var(--mute); }
.dim { color: var(--dim); }
.mute { color: var(--mute); }
.t-rtx { color: var(--rtx); } .t-a100 { color: var(--a100); } .t-h100 { color: var(--h100); } .t-b200 { color: var(--b200); }
.live-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); animation: livedot 2.2s infinite; margin-right: 9px; vertical-align: 2px; }
@keyframes livedot { 0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .5); } 70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.pill { display: inline-flex; align-items: center; gap: 0; width: fit-content; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); background: rgba(255, 255, 255, .02); margin: 0; }
.pill.sm { padding: 5px 10px; font-size: 10.5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em; cursor: pointer; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease);
}
.btn:hover { border-color: #4a4a52; background: rgba(255, 255, 255, .04); }
.btn:active { transform: scale(.985); }
.btn.white, .btn.hot { background: #fff; border-color: #fff; color: #000; }
.btn.white:hover, .btn.hot:hover { background: #e7e7ea; border-color: #e7e7ea; }
.btn.text { border-color: transparent; color: var(--mute); padding: 0 10px; }
.btn.text:hover { color: var(--text); background: none; }
.btn.ghost { background: transparent; }
.btn.solid { background: var(--text); border-color: var(--text); color: #000; }
.btn.small { min-height: 36px; padding: 0 15px; font-size: 14px; }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.busy { opacity: .5; cursor: not-allowed; transform: none; }
.btn.busy::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { background: none; border: 0; padding: 0; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.link:hover { color: var(--text); }

/* ---------- header ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(0, 0, 0, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); }
.top .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 16px; letter-spacing: .02em; justify-self: start; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 7px 14px; border-radius: 999px; color: var(--mute); font-size: 14px; font-weight: 450; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: var(--bg-3); }
.top .right { display: flex; align-items: center; gap: 10px; justify-self: end; }
.acct { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.acct .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.burger { display: none; background: none; border: 1px solid var(--line-2); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; }
.burger span { display: block; width: 15px; height: 1.5px; background: var(--text); margin: 3.5px auto; border-radius: 2px; }
@media (max-width: 960px) {
  .top .wrap { grid-template-columns: 1fr auto; }
  .nav { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; gap: 0; padding: 6px 16px; background: #050506; border: 1px solid var(--line-2); border-radius: var(--r-l); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a[aria-current="page"] { background: none; }
  .burger { display: block; }
}

/* ---------- CA chip ---------- */
.ca { display: inline-flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--dim); max-width: 100%; background: var(--bg-1); }
.ca > span:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; }
.ca code { font-family: var(--mono); font-size: 12px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ca button { flex: none; border: 0; background: var(--bg-3); color: var(--soft); border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; }
.ca button:hover { background: var(--line-2); color: #fff; }
.ca.soon { padding-right: 12px; font-family: var(--mono); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); min-height: min(860px, max(620px, calc(100svh - 64px))); display: flex; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 72% 50%, rgba(255, 255, 255, .045), transparent 70%); pointer-events: none; }
.hero-gpu { position: absolute; top: 0; right: -2%; width: 57%; height: 100%; }
.hero-in { position: relative; display: flex; align-items: center; width: 100%; padding-top: 56px; padding-bottom: 72px; pointer-events: none; }
.hero-in a, .hero-in button, .hero-in .ca { pointer-events: auto; }
.hero-copy { display: grid; gap: 26px; max-width: 640px; min-width: 0; }
.hero-copy > * { min-width: 0; }
.hero-copy > * { animation: up .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; } .hero-copy > :nth-child(3) { animation-delay: .14s; } .hero-copy > :nth-child(4) { animation-delay: .2s; } .hero-copy > :nth-child(5) { animation-delay: .26s; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.facts { margin: 4px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); line-height: 1.9; }
.facts i { font-style: normal; margin: 0 .9em; color: #3a3a40; }
.hero-tier { position: absolute; right: max(24px, 19%); bottom: 72px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; }
.hero-tier .sw { width: 6px; height: 6px; border-radius: 50%; background: var(--heat, var(--h100)); box-shadow: 0 0 10px var(--heat, var(--h100)); }
.hero-tier b { color: var(--text); font-weight: 600; }
.hero-tier.on { animation: fade .6s var(--ease); }
@media (max-width: 900px) {
  .hero { min-height: 0; flex-direction: column; }
  .hero-gpu { position: relative; right: auto; width: 100%; height: 300px; margin-top: 8px; }
  .hero-in { padding-top: 0; padding-bottom: 56px; }
  .hero-tier { position: absolute; top: 262px; right: auto; left: 50%; transform: translateX(-50%); bottom: auto; white-space: nowrap; }
  .hero-tier.on { animation: none; }
  .hero .hero-tier { top: -44px; }
}
@media (max-width: 520px) { .hero-gpu { height: 240px; } .hero .hero-tier { top: -40px; } .facts i { margin: 0 .5em; } .hide-m { display: none; } .pill { letter-spacing: .08em; } }

/* ---------- sections ---------- */
.sec { padding: 120px 0 0; position: relative; }
.sec.end { padding: 140px 0 150px; text-align: center; }
.sec.end .wrap { display: grid; gap: 34px; justify-items: center; }
.sec.end .h1 { justify-items: center; }
.sec-top { display: grid; gap: 14px; margin-bottom: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head p { margin: 8px 0 0; color: var(--mute); max-width: 40em; }
@media (max-width: 640px) { .sec { padding-top: 84px; } .sec.end { padding: 96px 0 110px; } }
[data-reveal] { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease), translate 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
[data-reveal].in { opacity: 1; translate: 0 0; }
/* smooth scrolling (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* lists that load in: cards and rows arrive one after another */
.cards .gpu, .rack .u, .board tbody tr, .slots > * { animation: up .7s var(--ease) both; }
.cards .gpu:nth-child(2), .rack .u:nth-child(2), .board tbody tr:nth-child(2), .slots > :nth-child(2) { animation-delay: .05s; }
.cards .gpu:nth-child(3), .rack .u:nth-child(3), .board tbody tr:nth-child(3), .slots > :nth-child(3) { animation-delay: .1s; }
.cards .gpu:nth-child(4), .rack .u:nth-child(4), .board tbody tr:nth-child(4), .slots > :nth-child(4) { animation-delay: .15s; }
.cards .gpu:nth-child(5), .rack .u:nth-child(5), .board tbody tr:nth-child(5), .slots > :nth-child(5) { animation-delay: .2s; }
.cards .gpu:nth-child(6), .rack .u:nth-child(6), .board tbody tr:nth-child(6), .slots > :nth-child(6) { animation-delay: .25s; }
.cards .gpu:nth-child(7), .rack .u:nth-child(7), .board tbody tr:nth-child(7), .slots > :nth-child(7) { animation-delay: .3s; }
.cards .gpu:nth-child(n+8), .rack .u:nth-child(n+8), .board tbody tr:nth-child(n+8), .slots > :nth-child(n+8) { animation-delay: .35s; }

/* ---------- mining live ---------- */
.minebox { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-1); overflow: hidden; }
.mb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mb-top > div { min-width: 0; max-width: 100%; }
.mb-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.mb-stats > div { padding: 20px 22px; display: grid; gap: 8px; border-left: 1px solid var(--line); min-width: 0; }
.mb-stats > div:first-child { border-left: 0; }
.mb-stats b { font-family: var(--mono); font-weight: 500; font-size: clamp(18px, 1.9vw, 24px); letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.mb-stats b i { font-style: normal; color: var(--dim); font-size: .7em; }
.floorbox { padding: 22px; background: radial-gradient(70% 90% at 50% 50%, rgba(255, 255, 255, .025), transparent 70%); }
.dotfloor { position: relative; width: 100%; }
.dotfloor canvas { display: block; }
.floor-tip { position: absolute; pointer-events: none; z-index: 5; transform: translate(-50%, calc(-100% - 12px)); background: #000; border: 1px solid var(--line-2); border-radius: 8px; padding: 5px 10px; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.floor-tip i { font-style: normal; color: var(--mute); }
.mb-foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px 18px; font-size: 13px; flex-wrap: wrap; }
.mb-foot b { color: var(--text); font-family: var(--mono); font-weight: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 7px; height: 7px; border-radius: 1.5px; background: var(--c); }
.legend i.e { background: #1e1e22; }
@media (max-width: 900px) {
  .mb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mb-stats > div { border-left: 0; border-top: 1px solid var(--line); padding: 16px 18px; }
  .mb-stats > div:nth-child(-n+2) { border-top: 0; }
  .mb-stats > div:nth-child(even) { border-left: 1px solid var(--line); }
  .mb-stats > div:last-child { grid-column: 1 / -1; }
  .floorbox { padding: 16px; }
  .mb-top, .mb-foot { padding-left: 18px; padding-right: 18px; }
}

/* ---------- tier cards ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plate { position: relative; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-1); padding: 16px 18px 18px; display: grid; gap: 14px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), border-color .3s; }
.plate.tilting { transition: transform .08s linear, border-color .3s; }
.plate:hover { border-color: var(--line-2); }
.plate .art { aspect-ratio: 16 / 10; position: relative; }
.plate .art::before { content: ""; position: absolute; inset: 15% 10%; background: radial-gradient(closest-side, color-mix(in srgb, var(--heat) 14%, transparent), transparent); }
.pcard { width: 100%; height: 100%; position: relative; }
.plate .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.plate .name { display: inline-flex; align-items: center; gap: 9px; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.plate .name i { width: 7px; height: 7px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 12px var(--heat); }
.plate .x { font-family: var(--mono); font-size: 14px; color: var(--soft); }
.plate dl { margin: 0; display: grid; gap: 0; }
.plate dl div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding: 8px 0 0; margin-top: 8px; }
.plate dt { color: var(--dim); font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding-top: 2px; }
.plate dd { margin: 0; text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--soft); }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .tiers { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scroll-padding-left: 16px; scrollbar-width: none; }
  .tiers::-webkit-scrollbar { display: none; }
  .plate { scroll-snap-align: start; }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-1); padding: 22px 22px 26px; display: grid; gap: 12px; align-content: start; transition: border-color .3s; }
.step:hover { border-color: var(--line-2); }
.step .n { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--dim); }
.step h3 { font-size: 18px; }
.step p { margin: 0; color: var(--mute); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- live + top ---------- */
.live-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.live-grid > * { min-width: 0; }
.box { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-1); padding: 8px 22px 12px; }
.box-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.box-head h3 { display: flex; align-items: center; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.box-head .more { font-size: 13px; color: var(--mute); }
.box-head .more:hover { color: var(--text); }
.top5 { list-style: none; margin: 0; padding: 0; }
.top5 li { display: grid; grid-template-columns: 26px minmax(0, auto) minmax(30px, 1fr) auto; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.top5 li:last-child { border-bottom: 0; }
.top5 .rk { font-family: var(--mono); color: var(--dim); font-size: 12px; }
.top5 a { font-family: var(--mono); font-size: 13px; color: var(--soft); }
.top5 a:hover { color: #fff; }
.top5 .bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.top5 .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #3a3a40, var(--heat)); }
.top5 b { font-family: var(--mono); font-weight: 500; font-size: 13px; }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } }

/* ---------- activity feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.feed li:last-child { border-bottom: 0; }
.feed li.new { animation: arrive 1.2s var(--ease); }
@keyframes arrive { from { background: rgba(255, 255, 255, .06); } to { background: transparent; } }
.feed .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line); }
.feed .ic svg { width: 14px; height: 14px; }
.feed .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .what a { font-family: var(--mono); font-size: 13px; color: var(--text); }
.feed .what a:hover { text-decoration: underline; text-underline-offset: 3px; }
.feed .when { color: var(--dim); font-size: 11.5px; white-space: nowrap; font-family: var(--mono); }
.chips { display: inline-flex; gap: 4px; vertical-align: 1px; margin-left: 6px; }
.chip { display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 10.5px; font-weight: 500; font-family: var(--mono); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); line-height: 1.7; }
.empty { padding: 26px 0; color: var(--mute); }

/* ---------- rules (how it works) ---------- */
.how { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-1); padding: 4px 28px 20px; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.rules > div { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.rules p { margin: 0; color: var(--mute); max-width: 38em; font-size: 14.5px; }
.rules .no h3 { color: var(--h100); }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } .how { padding: 0 18px 14px; } }

/* ---------- panels / forms ---------- */
.panel { border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-1); padding: 22px; }
.panel h3 { margin-bottom: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.input { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: #000; padding: 0 12px; min-height: 46px; }
.input input, .input select { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; padding: 10px 0; font-family: var(--mono); }
.input:focus-within { border-color: #55555d; }
.input .unit { color: var(--dim); font-size: 12px; white-space: nowrap; font-family: var(--mono); }
.kv { display: grid; gap: 10px; margin: 0; }
.kv div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; font-family: var(--mono); font-size: 13px; text-align: right; }
.note { font-size: 13px; color: var(--dim); margin: 0; }
.warn { font-size: 14px; color: var(--h100); margin: 0; }
.err { font-size: 14px; color: var(--bad); margin: 0; }

/* ---------- page head ---------- */
.page-head { padding: 64px 0 36px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; animation: up .8s var(--ease) both; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; text-wrap: balance; }
.page-head p { margin: 14px 0 0; color: var(--mute); max-width: 36em; }
.mint-grid, .rack-wrap, .mkt, .board-wrap, .how, .mine-head, .floorrow { animation: up .9s var(--ease) both .06s; }

/* ---------- mint ---------- */
.mint-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 16px; align-items: start; padding-bottom: 100px; }
.qty { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-m); overflow: hidden; }
.qty button { height: 56px; border: 0; background: var(--bg-2); font-size: 20px; cursor: pointer; color: var(--soft); }
.qty button:hover:not([disabled]) { background: var(--bg-3); color: #fff; }
.qty output { text-align: center; font-family: var(--mono); font-weight: 500; font-size: 26px; }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { flex: 1; border: 1px solid var(--line); background: none; border-radius: 999px; padding: 5px 0; font-size: 12px; color: var(--mute); cursor: pointer; font-family: var(--mono); }
.quick button:hover { color: var(--text); border-color: var(--line-2); }
.left-bars { display: grid; gap: 12px; }
.bar { display: grid; gap: 6px; font-size: 12.5px; }
.bar .lbl { display: flex; justify-content: space-between; color: var(--mute); font-family: var(--mono); font-size: 11.5px; }
.bar .lbl b { color: var(--text); font-weight: 500; }
.bar .track { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.bar .fill { height: 100%; background: var(--c); border-radius: 3px; transition: width .6s; }
.bay { min-height: 460px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--bg-1); padding: 22px; display: grid; align-content: start; gap: 18px; position: relative; overflow: hidden; }
.bay-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1000px) { .mint-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bay { min-height: 0; } }
.slot-empty { border: 1px dashed var(--line-2); border-radius: var(--r-m); aspect-ratio: 16 / 12; display: grid; place-items: center; color: var(--dim); font-size: 12px; font-family: var(--mono); }

/* GPU card (art + label). --heat is set per tier. */
.gpu { position: relative; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--bg-1); padding: 10px; display: grid; gap: 8px; color: inherit; transition: border-color .25s, transform .3s var(--ease); }
.gpu:hover { border-color: var(--line-2); transform: translateY(-2px); }
.gpu .art { aspect-ratio: 16 / 10; position: relative; display: block; }
.gpu .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12px; font-family: var(--mono); color: var(--mute); }
.gpu .meta b { font-family: var(--f); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--text); display: inline-flex; align-items: center; gap: 7px; }
.gpu .meta b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--heat, var(--dim)); box-shadow: 0 0 8px var(--heat, transparent); }
.gpu.pending .pcard { animation: idle 1.4s ease-in-out infinite; }
@keyframes idle { 50% { opacity: .4; } }
.gpu.heatup { animation: heatup 1.4s var(--ease) both; }
@keyframes heatup { 0% { opacity: .3; transform: scale(.97); } 60% { opacity: 1; box-shadow: 0 0 40px -6px color-mix(in srgb, var(--heat) 45%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; transform: none; } }
.gpu.rare { border-color: color-mix(in srgb, var(--heat) 35%, var(--line)); }
.gpu.sel { border-color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.gpu .tag { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-family: var(--mono); padding: 2px 8px; border-radius: 999px; background: #000; border: 1px solid var(--line-2); color: var(--soft); }
.gpu .buy { margin-top: 2px; }
.cards .btn.hot { background: transparent; color: var(--text); border-color: var(--line-2); }
.cards .btn.hot:hover { background: #fff; border-color: #fff; color: #000; }

/* ---------- cluster (rack) ---------- */
.mine-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-1); align-items: center; }
.mine-head .cell { padding: 18px 22px; border-left: 1px solid var(--line); display: grid; gap: 8px; }
.mine-head .cell:first-child { border-left: 0; }
.mine-head .v { font-family: var(--mono); font-weight: 500; font-size: 24px; letter-spacing: -0.03em; white-space: nowrap; }
.mine-head .act { padding: 14px 18px; }
.ticking { color: #fff; }
@media (max-width: 900px) {
  .mine-head { grid-template-columns: 1fr 1fr; }
  .mine-head .cell { border-left: 0; border-top: 1px solid var(--line); }
  .mine-head .cell:nth-child(-n+2) { border-top: 0; }
  .mine-head .cell:nth-child(even) { border-left: 1px solid var(--line); }
  .mine-head .act { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}
.rack-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-top: 16px; padding-bottom: 100px; }
.rack { border-radius: var(--r-l); border: 1px solid var(--line); background: var(--bg-1); padding: 10px; display: grid; gap: 6px; }
.u { display: grid; grid-template-columns: 22px 112px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 6px 14px 6px 8px; border-radius: 10px; background: transparent; border: 1px solid transparent; cursor: pointer; text-align: left; width: 100%; transition: background .2s, border-color .2s; }
.u:hover { background: var(--bg-2); }
.u.sel { border-color: #fff; background: var(--bg-2); }
.u .led { width: 6px; height: 6px; border-radius: 50%; margin: 0 auto; background: var(--heat); box-shadow: 0 0 8px var(--heat); animation: led 2.4s ease-in-out infinite; }
.u.pending .led { background: var(--mute); box-shadow: none; animation: blink .5s steps(2) infinite; }
@keyframes led { 50% { opacity: .45; } }
@keyframes blink { 50% { opacity: .15; } }
.u .art { height: 66px; display: block; }
.u .art .pcard { height: 100%; width: 100%; }
.u .info { display: grid; gap: 2px; min-width: 0; }
.u .info b { font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--text); }
.u .info span { font-size: 12.5px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u .right { font-size: 12.5px; text-align: right; color: var(--mute); font-family: var(--mono); }
.rack-empty { border: 1px dashed var(--line-2); border-radius: var(--r-l); padding: 32px; text-align: center; color: var(--mute); display: grid; gap: 14px; justify-items: center; }
.side { display: grid; gap: 14px; position: sticky; top: 80px; min-width: 0; }
.side > *, .mkt > *, .rack-wrap > *, .mint-grid > * { min-width: 0; }
@media (max-width: 1000px) { .rack-wrap { grid-template-columns: 1fr; } .side { position: static; } }
@media (max-width: 520px) { .u { grid-template-columns: 14px 84px minmax(0, 1fr); } .u .right { grid-column: 3; text-align: left; } .u .art { height: 52px; } }

/* ---------- market ---------- */
.tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; color: var(--mute); font-size: 13.5px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--bg-3); color: var(--text); }
.mkt { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; padding-bottom: 100px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.floorrow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 16px; background: var(--bg-1); }
.floorrow > div { padding: 16px 20px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.floorrow > div:first-child { border-left: 0; }
.floorrow b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.floorrow b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--heat); box-shadow: 0 0 8px var(--heat); }
.floorrow span { font-size: 12.5px; color: var(--mute); font-family: var(--mono); }
.book { width: 100%; border-collapse: collapse; font-size: 13px; }
.book th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--dim); padding: 6px 0; border-bottom: 1px solid var(--line); }
.book td { padding: 9px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); }
.book td:last-child, .book th:last-child { text-align: right; }
@media (max-width: 1000px) { .mkt { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .floorrow { grid-template-columns: 1fr 1fr; } .floorrow > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); } .floorrow > div:nth-child(4) { border-top: 1px solid var(--line); } .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- leaderboard ---------- */
.board { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-1); overflow: hidden; }
.board th { text-align: left; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--dim); padding: 14px 14px; border-bottom: 1px solid var(--line); }
.board td { padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.board tbody tr:last-child td { border-bottom: 0; }
.board tbody tr:hover td { background: var(--bg-2); }
.board td a { font-family: var(--mono); font-size: 13px; }
.board .r { text-align: right; font-family: var(--mono); font-size: 13px; }
.board tr.me td { background: rgba(255, 255, 255, .04); }
.board .rank { font-family: var(--mono); color: var(--dim); width: 48px; font-size: 12.5px; }
.board tr:nth-child(-n+3) .rank { color: var(--text); }
.heatbar { display: flex; height: 4px; border-radius: 4px; overflow: hidden; min-width: 120px; background: var(--line); }
.heatbar i { display: block; height: 100%; }
@media (max-width: 700px) { .board .hide-s { display: none; } }

/* ---------- one GPU ---------- */
.g-card { position: relative; aspect-ratio: 16 / 10; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease); }
.g-card.tilting { transition: transform .08s linear; }
.g-card.pending .pcard { animation: idle 1.4s ease-in-out infinite; }
#g-art { position: relative; }

/* ---------- misc ---------- */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .72); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
.modal .box { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #070708; border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 22px; display: grid; gap: 16px; }
.modal .box header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal .close { border: 0; background: var(--bg-3); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 17px; line-height: 1; color: var(--soft); }
.wallets { display: grid; gap: 8px; }
.wallets button { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); background: #000; border-radius: var(--r-m); padding: 12px 14px; cursor: pointer; font-weight: 500; text-align: left; }
.wallets button:hover { border-color: #55555d; }
.wallets img { width: 28px; height: 28px; border-radius: 6px; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; background: #0b0b0d; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px; font-size: 14px; max-width: calc(100% - 32px); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.toast.err { border-color: color-mix(in srgb, var(--bad) 60%, var(--line-2)); }
.toast.ok { border-color: color-mix(in srgb, var(--ok) 50%, var(--line-2)); }
.steps-run { display: grid; gap: 8px; font-size: 14px; }
.steps-run div { display: flex; gap: 10px; align-items: center; color: var(--mute); }
.steps-run div.on { color: var(--text); }
.steps-run div.done { color: var(--ok); }
footer.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--dim); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.foot a:hover { color: var(--text); }
.skeleton { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 6px; min-height: 18px; }
@keyframes sk { to { background-position: -200% 0; } }
.reveal-cue { font-size: 13px; color: var(--mute); display: flex; gap: 8px; align-items: center; }
.reveal-cue .pip { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink .6s steps(2) infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
