/* BRRR — design tokens */
:root {
  --bg: #08090b;
  --bg-2: #0d0f12;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f1eb;
  --text-2: #b8bcc4;
  --muted: #7d838d;
  --cash: #7cf2a5;
  --cash-ink: #1d4d33;
  --cash-deep: #37c374;
  --hot: #ffb13d;
  --keep: #4ade80;
  --burn: #ff5c5c;
  --lp: #4f9bff;
  --holders: #b58cff;
  --radius: 22px;
  --radius-s: 12px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.8);
}

* { 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(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
b, strong { font-weight: 600; }
::selection { background: var(--cash); color: #06120b; }

.noise-def { position: absolute; width: 0; height: 0; }
.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 0;
  background: url("assets/noise.png") repeat; background-size: 160px 160px;
  opacity: 0.05; mix-blend-mode: overlay;
}
.glow {
  pointer-events: none; position: absolute; inset: 0; z-index: 0; height: 120vh;
  background:
    radial-gradient(900px 500px at 78% 8%, rgba(124, 242, 165, 0.13), transparent 60%),
    radial-gradient(700px 420px at 12% 20%, rgba(181, 140, 255, 0.07), transparent 60%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px clamp(16px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(8,9,11,0.9), rgba(8,9,11,0.6));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-word { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.08em; font-size: 15px; }
.brand-mark { display: inline-grid; grid-auto-flow: column; gap: 3px; align-items: end; height: 16px; }
.brand-mark i { display: block; width: 4px; background: var(--cash); border-radius: 2px; animation: brrr 0.9s var(--ease) infinite alternate; }
.brand-mark i:nth-child(1) { height: 8px; animation-delay: 0s; }
.brand-mark i:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.brand-mark i:nth-child(3) { height: 11px; animation-delay: 0.3s; }
@keyframes brrr { to { transform: scaleY(0.45); } }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.nav-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 0 rgba(124,242,165,0.5); }
.nav-live.is-live .dot { background: var(--cash); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124,242,165,0.5);} 70% { box-shadow: 0 0 0 9px rgba(124,242,165,0);} 100% { box-shadow: 0 0 0 0 rgba(124,242,165,0);} }

/* ---------- hero ---------- */
main { position: relative; z-index: 1; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center;
  padding: clamp(48px, 9vh, 110px) clamp(16px, 4vw, 48px) 40px;
  max-width: 1400px; margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-2);
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  animation: rise 0.9s var(--ease) both;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(38px, 5.4vw, 74px); line-height: 1.02; margin: 0 0 24px;
  animation: rise 1s var(--ease) 0.08s both;
}
.hero h1 em { font-style: normal; color: var(--cash); text-shadow: 0 0 40px rgba(124,242,165,0.35); }
.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 54ch; margin: 0 0 30px; animation: rise 1s var(--ease) 0.16s both; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; animation: rise 1s var(--ease) 0.24s both; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--cash); color: #06120b; box-shadow: 0 10px 30px -10px rgba(124,242,165,0.6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px -12px rgba(124,242,165,0.7); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn.wide { width: 100%; margin-top: 18px; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, auto); gap: 8px 32px; margin: 44px 0 0; padding: 0;
  animation: rise 1s var(--ease) 0.32s both;
}
.hero-stats div { display: grid; gap: 4px; }
.hero-stats dt { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.hero-stats dd { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: clamp(18px, 1.8vw, 24px); color: var(--text); font-variant-numeric: tabular-nums; }

.hero-stage { position: relative; min-height: 520px; display: grid; place-items: center; animation: fade 1.4s var(--ease) 0.2s both; }
.stage-word {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(120px, 20vw, 260px); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  transform: translateY(-6%);
}
.hero-caption { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }

/* ---------- hero art (generated key art + live overlay) ---------- */
.hero-art { position: relative; width: min(640px, 100%); aspect-ratio: 2688 / 1520; border-radius: 28px; overflow: visible; }
.hero-art img, .hero-art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; background: #000;
  mask-image: radial-gradient(120% 100% at 50% 60%, #000 55%, transparent 100%); -webkit-mask-image: radial-gradient(120% 100% at 50% 60%, #000 55%, transparent 100%); }
.hero-art .hp-bills { position: absolute; left: 50%; top: 26%; z-index: 3; }
.hero-art .bill { --bw: 54px; --travel: -600%; opacity: 0.9; }
.hero-art .hp-panel { position: absolute; left: 9%; bottom: 14%; display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px;
  background: rgba(6,8,10,0.86); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 10px 30px -10px rgba(0,0,0,0.9); font-family: var(--font-mono); line-height: 1.2; min-width: 42%; backdrop-filter: blur(6px); }
.hero-art .hp-panel b { color: var(--cash); font-size: 14px; letter-spacing: 0.08em; font-weight: 600; }
.hero-art .hp-panel small { color: #8fa397; font-size: 11px; }

/* ---------- hero printer (big) ---------- */
.hero-printer { position: relative; width: min(420px, 80%); aspect-ratio: 1 / 0.92; }
.hp-bills { position: absolute; left: 50%; bottom: 52%; width: 0; height: 0; z-index: 3; }
.hp-lid {
  position: absolute; left: 10%; right: 10%; top: 32%; height: 10%;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(180deg, #2c3038, #1b1e24);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.12) inset, 0 10px 20px -8px rgba(0,0,0,0.7);
  z-index: 2;
}
.hp-tray { position: absolute; left: 14%; right: 14%; top: -22%; height: 50%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #171a1f, #22262d); box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset; }
.hp-body {
  position: absolute; left: 4%; right: 4%; top: 42%; height: 40%;
  border-radius: 26px;
  background: linear-gradient(180deg, #30343c 0%, #1f2329 55%, #171a1f 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.16) inset,
    0 -2px 0 rgba(0,0,0,0.5) inset,
    0 40px 60px -30px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.05);
  z-index: 2;
}
.hp-slot {
  position: absolute; left: 12%; right: 12%; top: -4px; height: 12px; border-radius: 6px;
  background: #050607; box-shadow: 0 2px 6px rgba(0,0,0,0.9) inset, 0 1px 0 rgba(255,255,255,0.08);
}
.hp-panel {
  position: absolute; left: 7%; bottom: 20%; display: grid; gap: 2px; padding: 10px 14px; border-radius: 10px;
  background: #0a0c0f; box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 0 24px rgba(124,242,165,0.08) inset;
  font-family: var(--font-mono); line-height: 1.2; min-width: 46%;
}
.hp-panel b { color: var(--cash); font-size: 14px; letter-spacing: 0.08em; font-weight: 600; }
.hp-panel small { color: #6c7a72; font-size: 11px; }
.hp-led { position: absolute; right: 8%; bottom: 36%; width: 10px; height: 10px; border-radius: 50%; background: var(--cash); box-shadow: 0 0 12px var(--cash); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
.hp-base { position: absolute; left: 10%; right: 10%; top: 82%; height: 6%; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #111318, #0a0b0e); z-index: 1; }
.hp-shadow { position: absolute; left: 0; right: 0; top: 86%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.75), transparent); filter: blur(4px); z-index: 0; }

/* bills — shared by hero and cards */
.bill {
  position: absolute; left: 0; top: 0; transform-origin: 50% 100%;
  width: var(--bw, 120px); height: calc(var(--bw, 120px) * 0.46); margin-left: calc(var(--bw, 120px) / -2);
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.0) 0, rgba(255,255,255,0.0) 28%, transparent 30%),
    linear-gradient(135deg, #9df5bb 0%, #58d98a 48%, #3fbf73 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 0 0 1px rgba(0,60,30,0.35) inset;
  animation: print var(--period, 1.6s) linear infinite;
  animation-delay: calc(var(--i, 0) * var(--period, 1.6s) / -2);
}
.bill::before {
  content: ""; position: absolute; inset: 4px; border-radius: 3px; border: 1px solid rgba(0,70,35,0.35);
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(0,70,35,0.08) 6px 7px);
}
.bill::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34%; height: 70%; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1.5px solid rgba(0,70,35,0.45); background: rgba(255,255,255,0.18);
  background-image: var(--logo); background-size: cover; background-position: center;
}
.bill .bill-sym { position: absolute; right: 6px; bottom: 3px; font-family: var(--font-mono); font-weight: 700; font-size: calc(var(--bw, 120px) * 0.09); color: var(--cash-ink); letter-spacing: 0.04em; }
@keyframes print {
  0%   { transform: translateY(0) scaleY(0.1) rotate(0deg); opacity: 0; }
  10%  { transform: translateY(-10%) scaleY(1) rotate(0deg); opacity: 1; }
  60%  { transform: translateY(calc(var(--travel, -330%) * 0.6)) rotate(var(--rot, -6deg)) translateX(var(--drift, 10px)); opacity: 1; }
  100% { transform: translateY(var(--travel, -330%)) rotate(calc(var(--rot, -6deg) * 2)) translateX(calc(var(--drift, 10px) * 2)); opacity: 0; }
}
.is-paused .bill { animation-play-state: paused; }

/* ---------- board ---------- */
.board { max-width: 1400px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 48px) 40px; }
.board-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.board h2, .how h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(26px, 3vw, 38px); margin: 0 0 6px; }
.sub { margin: 0; color: var(--muted); font-size: 14px; }
.controls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; height: 40px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }
.search input { background: none; border: 0; outline: 0; width: 180px; color: var(--text); }
.search input::placeholder { color: var(--muted); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); }
.seg button { border: 0; background: none; padding: 7px 14px; white-space: nowrap; border-radius: 999px; font-size: 13.5px; color: var(--text-2); cursor: pointer; transition: background 0.3s, color 0.3s; }
.seg button.is-on { background: var(--text); color: #0a0b0d; font-weight: 600; }
.select { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 13.5px; color: var(--muted); }
.select select { background: none; border: 0; outline: 0; color: var(--text); padding: 6px 8px; cursor: pointer; }
.select select option { background: #121418; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- card ---------- */
.card {
  position: relative; display: grid; gap: 14px; padding: 18px 18px 16px;
  border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  cursor: pointer; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s;
  animation: rise 0.8s var(--ease) both; animation-delay: calc(min(var(--n, 0), 12) * 40ms);
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card.is-top::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(124,242,165,0.6), transparent 40%, transparent 60%, rgba(181,140,255,0.4)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.card.is-jam { opacity: 0.78; }
.card.is-jam:hover { opacity: 1; }

.c-head { display: flex; align-items: center; gap: 12px; position: relative; z-index: 4; }
.c-rank { font-family: var(--font-mono); font-size: 12px; color: var(--muted); width: 28px; flex: none; }
.c-rank.r1 { color: var(--cash); font-weight: 700; }
.c-avatar { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; background: #1b1e23; flex: none; box-shadow: 0 0 0 1px var(--line-2); }
.c-id { min-width: 0; flex: 1; }
.c-name { font-weight: 600; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-meta { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.c-meta span { overflow: hidden; text-overflow: ellipsis; }
.c-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--cash); letter-spacing: 0.08em; flex: none; }
.c-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--cash); animation: pulse 2s infinite; }
.c-live.off { color: var(--muted); }
.c-live.off i { background: var(--muted); animation: none; }

.c-main { display: grid; grid-template-columns: 118px 1fr; gap: 14px; align-items: end; margin-top: 6px; }
.printer { position: relative; height: 96px; }
.printer .p-bills { position: absolute; left: 50%; top: 48px; z-index: 3; }
.printer .bill { --bw: 58px; --travel: -210%; }
.printer .p-lid { position: absolute; left: 14px; right: 14px; top: 38px; height: 10px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #2a2e36, #1b1e24); box-shadow: 0 -1px 0 rgba(255,255,255,0.1) inset; z-index: 2; }
.printer .p-body { position: absolute; left: 4px; right: 4px; top: 46px; height: 40px; border-radius: 12px; background: linear-gradient(180deg, #2d3139, #1c2026 60%, #15181d); box-shadow: 0 1px 0 rgba(255,255,255,0.14) inset, 0 16px 24px -14px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.05); z-index: 2; }
.printer .p-slot { position: absolute; left: 14px; right: 14px; top: -2px; height: 6px; border-radius: 3px; background: #050607; box-shadow: 0 1px 3px rgba(0,0,0,0.9) inset; }
.printer .p-led { position: absolute; right: 12px; bottom: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--cash); box-shadow: 0 0 8px var(--cash); animation: blink 1.4s infinite; }
.printer .p-screen { position: absolute; left: 12px; bottom: 9px; height: 14px; width: 44px; border-radius: 3px; background: #0a0c0f; box-shadow: 0 0 0 1px rgba(255,255,255,0.05); }
.printer .p-screen::after { content: ""; position: absolute; left: 5px; top: 5px; width: 60%; height: 4px; border-radius: 2px; background: rgba(124,242,165,0.6); }
.printer .p-shadow { position: absolute; left: 6px; right: 6px; top: 84px; height: 10px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,0.7), transparent); z-index: 1; }
.is-jam .printer .p-led { background: var(--burn); box-shadow: 0 0 8px var(--burn); animation: none; }
.is-jam .printer .p-screen::after { background: rgba(255,92,92,0.6); width: 30%; }
.is-jam .printer .p-bills { display: none; }
.printer .p-jam { display: none; position: absolute; left: 50%; top: 24px; transform: translateX(-50%) rotate(-8deg); width: 54px; height: 24px; border-radius: 4px; background: linear-gradient(135deg, #6c7b70, #4a5750); clip-path: polygon(0 20%, 15% 0, 40% 15%, 60% 0, 85% 10%, 100% 30%, 92% 70%, 100% 100%, 55% 85%, 30% 100%, 8% 80%, 0 55%); opacity: 0.85; }
.is-jam .printer .p-jam { display: block; }

.c-speed { display: grid; gap: 2px; text-align: right; }
.c-speed .v { font-family: var(--font-mono); font-weight: 700; font-size: clamp(26px, 2.2vw, 32px); letter-spacing: -0.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.c-speed .v.hot { color: var(--cash); text-shadow: 0 0 24px rgba(124,242,165,0.35); }
.c-speed .u { font-size: 12px; color: var(--muted); }
.c-speed .proj { font-family: var(--font-mono); font-size: 11px; color: var(--text-2); margin-top: 4px; }
.c-speed .proj b { color: var(--text); font-weight: 600; }

.spark-wrap { position: relative; }
.spark { width: 100%; height: 34px; display: block; }
.spark-lbl { position: absolute; left: 0; top: -2px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); opacity: 0.8; }
.spark path.fill { fill: url(#sparkFill); }
.spark path.line { fill: none; stroke: var(--cash); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spark.flat path.line { stroke: var(--muted); }

.split { display: grid; gap: 6px; }
.split-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,0.06); gap: 2px; }
.split-bar i { display: block; height: 100%; }
.split-bar .keep { background: var(--keep); } .split-bar .burn { background: var(--burn); } .split-bar .lp { background: var(--lp); } .split-bar .holders { background: var(--holders); }
.split-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.split-row .rate { color: var(--text); }
.split-row .rate b { color: var(--holders); font-weight: 600; }
.split-row .mult { color: var(--cash); }

.c-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.c-stats div { display: grid; gap: 2px; }
.c-stats dt { font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; text-transform: uppercase; }
.c-stats dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.ca { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.01em; word-break: break-all; line-height: 1.4; }
.ca mark { background: none; color: var(--cash); font-weight: 600; }
.chip-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.chip-dot.keep { background: var(--keep); } .chip-dot.burn { background: var(--burn); } .chip-dot.lp { background: var(--lp); } .chip-dot.holders { background: var(--holders); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); }
.badge.nr { border-color: rgba(181,140,255,0.4); color: var(--holders); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(5,6,8,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade 0.3s both; }
.modal-card {
  position: relative; width: min(880px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  border-radius: 28px; background: linear-gradient(180deg, #15181d, #0e1014); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,0.03) inset;
  padding: 28px; animation: pop 0.5s var(--ease) both;
}
@keyframes pop { from { transform: translateY(16px) scale(0.98); opacity: 0; } }
.m-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text-2); }
.m-close:hover { color: var(--text); background: var(--surface-2); }
.m-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.m-head img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: #1b1e23; box-shadow: 0 0 0 1px var(--line-2); }
.m-head h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.m-head .m-sub { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.m-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.m-panel { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.m-panel h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.m-speed { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.m-speed .big { font-family: var(--font-mono); font-weight: 700; font-size: 44px; letter-spacing: -0.04em; line-height: 1; color: var(--cash); text-shadow: 0 0 30px rgba(124,242,165,0.35); }
.m-speed .u { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.m-speed .printer { width: 118px; flex: none; }
.m-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 16px; }
.m-kv div { display: grid; gap: 2px; }
.m-kv dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.m-kv dd { margin: 0; font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.m-compare { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(124,242,165,0.06); border: 1px solid rgba(124,242,165,0.18); font-size: 13.5px; color: var(--text-2); }
.m-compare b { color: var(--cash); }
.payouts { display: grid; gap: 6px; }
.payout { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); font-family: var(--font-mono); font-size: 12.5px; }
.payout b { color: var(--cash); font-weight: 600; }
.payout .h { color: var(--muted); }
.payout a { color: var(--muted); border-bottom: 1px dotted var(--muted); }
.payout a:hover { color: var(--text); }
.m-split .split-bar { height: 12px; border-radius: 6px; }
.m-split ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; font-size: 13.5px; }
.m-split li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.m-split li span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.m-split li b { font-family: var(--font-mono); color: var(--text); }
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.m-dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 4px; margin-top: 14px; }
.m-dots i { aspect-ratio: 1; border-radius: 50%; background: var(--c); opacity: 0.9; animation: dotin 0.6s var(--ease) both; animation-delay: calc(var(--k) * 6ms); }
@keyframes dotin { from { transform: scale(0.2); opacity: 0; } }

/* ---------- paystub ---------- */
.pay { position: relative; max-width: 1400px; margin: 40px auto 0; padding: 72px clamp(16px, 4vw, 48px) 60px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; overflow: hidden; }
.pay::before { content: ""; position: absolute; inset: 0; background: url("assets/art/bills-bg.webp") center / cover no-repeat; opacity: 0.22; pointer-events: none;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent); }
.pay > * { position: relative; }
.pay-art { border-radius: 24px; overflow: hidden; box-shadow: 0 50px 90px -40px rgba(0,0,0,1), 0 0 0 1px var(--line); transform: rotate(-2deg); }
.pay-art img { display: block; width: 100%; height: auto; }
.pay h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; margin: 0 0 16px; }
.pay-form { display: flex; gap: 10px; margin-top: 6px; }
.pay-form input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.05); color: var(--text); font-family: var(--font-mono); font-size: 13.5px; outline: 0; transition: border-color 0.3s, box-shadow 0.3s; }
.pay-form input:focus { border-color: var(--cash); box-shadow: 0 0 0 4px rgba(124,242,165,0.15); }
.pay-form .btn { height: 52px; white-space: nowrap; }
.pay-note { margin-top: 12px !important; }
.pay-result { grid-column: 1 / -1; display: grid; gap: 16px; animation: rise 0.7s var(--ease) both; }
.pay-result[hidden] { display: none; }
.pay-loading { display: flex; align-items: center; gap: 14px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; color: var(--text-2); }
.pay-loading .printer { width: 118px; flex: none; }
.pay-err { padding: 16px 20px; border-radius: 14px; background: rgba(255,92,92,0.08); border: 1px solid rgba(255,92,92,0.3); color: #ffb3b3; font-size: 14px; }
.stub { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.stub-card { position: relative; padding: 26px 28px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, #14171c, #0b0d10); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,0.02) inset; }
.stub-card::after { content: ""; position: absolute; inset: 0; background: url("assets/art/bills-bg.webp") center / cover; opacity: 0.12; pointer-events: none; }
.stub-card > * { position: relative; }
.stub-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.stub-head .brand-word { font-size: 13px; }
.stub-head .period { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.stub-who { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); margin-bottom: 18px; word-break: break-all; }
.stub-gross { display: grid; gap: 4px; margin-bottom: 20px; }
.stub-gross .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stub-gross .big { font-family: var(--font-mono); font-weight: 700; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; line-height: 1; color: var(--cash); text-shadow: 0 0 40px rgba(124,242,165,0.35); }
.stub-rows { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.stub-rows div { display: grid; gap: 3px; }
.stub-rows dt { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.stub-rows dd { margin: 0; font-family: var(--font-mono); font-size: 15px; color: var(--text); }
.stub-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.stub-side { display: grid; gap: 16px; align-content: start; }
.stub-panel { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stub-panel h4 { margin: 0 0 12px; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.emp { display: grid; gap: 8px; }
.emp-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,0.03); }
.emp-row img { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; background: #1b1e23; }
.emp-row .n { font-weight: 600; font-size: 14px; }
.emp-row .m { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.emp-row .v { font-family: var(--font-mono); font-size: 14px; color: var(--cash); text-align: right; }
.emp-row .v small { display: block; color: var(--muted); font-size: 10.5px; }
.stub-empty { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; }
.stub-empty img { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; }
.feed { display: grid; gap: 6px; max-height: 420px; overflow: auto; padding-right: 4px; }
.feed .payout { grid-template-columns: auto 1fr auto auto; }
.feed .payout img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.timeline { position: relative; height: 64px; margin: 6px 0 2px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); overflow: hidden; }
.timeline .tl-day { position: absolute; bottom: 0; top: 0; width: 1px; background: rgba(255,255,255,0.05); }
.timeline .tl-bill { position: absolute; bottom: 10px; width: 10px; height: 5px; margin-left: -5px; border-radius: 1.5px; background: linear-gradient(135deg, #9df5bb, #3fbf73); box-shadow: 0 0 8px rgba(124,242,165,0.6); animation: tlin 0.6s var(--ease) both; animation-delay: calc(var(--k) * 12ms); }
.timeline .tl-lbl { position: absolute; left: 10px; top: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.timeline .tl-now { position: absolute; right: 10px; top: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--cash); letter-spacing: 0.08em; text-transform: uppercase; }
@keyframes tlin { from { transform: translateY(40px); opacity: 0; } }

/* ---------- how ---------- */
.how { max-width: 1400px; margin: 40px auto 0; padding: 60px clamp(16px, 4vw, 48px) 80px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; border-top: 1px solid var(--line); }
.how p { color: var(--text-2); font-size: 16.5px; max-width: 62ch; }
.formula { display: grid; gap: 6px; margin: 22px 0; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); }
.f-line { font-family: var(--font-mono); font-size: 15px; color: var(--text); }
.f-line b { color: var(--cash); }
.f-note { font-size: 13px; color: var(--muted); }
.legend { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; font-size: 15px; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 12px; }
.legend b { color: var(--text); }
.fine { font-size: 13px !important; color: var(--muted) !important; }
.how-visual { display: grid; align-content: start; gap: 18px; }
.dots { display: grid; grid-template-columns: repeat(25, 1fr); gap: 6px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); animation: dotin 0.6s var(--ease) both; animation-delay: calc(var(--k) * 8ms); }
.how-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.how-compare > div { padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 4px; }
.how-compare .win { border-color: rgba(124,242,165,0.35); background: rgba(124,242,165,0.06); }
.how-compare .lbl { font-size: 12px; color: var(--muted); }
.how-compare b { font-family: var(--font-mono); font-size: 30px; letter-spacing: -0.03em; }
.how-compare .win b { color: var(--cash); }
.how-compare small { font-size: 12px; color: var(--text-2); }
.how-compare .vs { display: grid; place-items: center; font-family: var(--font-mono); color: var(--muted); font-size: 12px; background: none; border: 0; padding: 0; }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot p { margin: 0; max-width: 70ch; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-stage { min-height: 420px; order: -1; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
  .how { grid-template-columns: 1fr; gap: 32px; }
  .pay { grid-template-columns: 1fr; }
  .pay-art { max-width: 420px; }
  .stub { grid-template-columns: 1fr; }
  .m-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-live { white-space: nowrap; }
  .nav-live span:last-child { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
  .hero { padding-top: 28px; }
  .hero-stage { min-height: 340px; }
  .hero-printer { width: min(320px, 86%); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { padding: 12px 12px 10px; gap: 10px; border-radius: 16px; }
  .c-head { gap: 8px; }
  .c-rank { width: 20px; font-size: 10.5px; }
  .c-avatar { width: 30px; height: 30px; border-radius: 9px; }
  .c-name { font-size: 13px; }
  .c-meta { font-size: 10px; }
  .c-meta span:nth-child(2), .c-meta span:nth-child(3) { display: none; }
  .c-live { font-size: 0; gap: 0; }
  .c-live i { width: 7px; height: 7px; }
  .c-name { font-size: 12.5px; }
  .c-main { grid-template-columns: 1fr; gap: 6px; align-items: start; }
  .printer { height: 64px; width: 84px; }
  .printer .p-bills { top: 30px; }
  .printer .bill { --bw: 40px; }
  .printer .p-lid { top: 24px; height: 7px; left: 10px; right: 10px; }
  .printer .p-body { top: 30px; height: 28px; border-radius: 9px; }
  .printer .p-screen { width: 30px; height: 10px; bottom: 7px; left: 9px; }
  .printer .p-led { right: 8px; bottom: 9px; }
  .printer .p-shadow { top: 58px; }
  .printer .p-jam { top: 14px; width: 40px; height: 18px; }
  .c-speed { text-align: left; }
  .c-speed .v { font-size: 24px; }
  .c-speed .u { font-size: 10.5px; }
  .c-speed .proj { display: none; }
  .spark-wrap { display: none; }
  .split-row { font-size: 10px; flex-wrap: wrap; gap: 2px 8px; }
  .c-stats { grid-template-columns: repeat(2, 1fr); gap: 6px; padding-top: 8px; }
  .c-stats div:nth-child(n+3) { display: none; }
  .c-stats dt { font-size: 9.5px; }
  .c-stats dd { font-size: 12px; }
  .ca { display: none; }
  .hero-art video { display: none; }
  .hero-art img { display: block; }
  .controls { width: 100%; }
  .search input { width: 100%; }
  .search { width: 100%; }
  .seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .modal { padding: 10px; }
  .modal-card { padding: 20px; border-radius: 22px; }
  .how-compare { grid-template-columns: 1fr; }
  .pay-form { flex-direction: column; }
  .stub-rows { grid-template-columns: repeat(2, 1fr); }
  .stub-empty { grid-template-columns: 1fr; }
  .how-compare .vs { padding: 4px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art video { display: none; }
  .bill, .brand-mark i, .card, .eyebrow, .hero h1, .lede, .hero-cta, .hero-stats { animation: none !important; }
}
