:root {
  --bg: #0b0c10;
  --surface: #14161c;
  --elevated: #1c1f27;
  --fill: rgba(245, 248, 255, 0.06);
  --fill-strong: rgba(245, 248, 255, 0.12);
  --line: rgba(245, 248, 255, 0.08);
  --label: #f5f8ff;
  --label2: rgba(245, 248, 255, 0.72);
  --label3: rgba(245, 248, 255, 0.5);
  --label4: rgba(245, 248, 255, 0.32);
  --mint: #5cf2b0;
  --mint-tint: rgba(92, 242, 176, 0.14);
  --violet: #9e8fff;
  --violet-tint: rgba(158, 143, 255, 0.16);
  --danger: #ff584d;
  --danger-tint: rgba(255, 88, 77, 0.14);
  --amber: #ffb266;
  --amber-tint: rgba(255, 178, 102, 0.14);
  --pink: #ffaac8;
  --radius: 18px;
  --font: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font: 16px/1.5 var(--font);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(16px, calc((100vw - 1040px) / 2));
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; }
.brand img { border-radius: 9px; }
nav { display: flex; gap: 4px; }
nav a {
  padding: 7px 12px; border-radius: 999px; color: var(--label3); font-weight: 600; font-size: 15px;
  transition: color 0.15s, background 0.15s;
}
nav a:hover { color: var(--label); }
nav a.on { color: var(--label); background: var(--fill-strong); }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 24px;
  padding: 56px 0 32px;
}
.hero h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.04; margin: 0 0 16px; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--mint), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--label2); font-size: 19px; margin: 0 0 24px; max-width: 34em; }
.mascot { position: relative; justify-self: center; width: min(320px, 70vw); }
.mascot::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 242, 176, 0.25), rgba(158, 143, 255, 0.12) 50%, transparent 70%);
  filter: blur(24px);
}
.mascot img { position: relative; width: 100%; height: auto; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }
@media (prefers-reduced-motion: reduce) { .mascot img { animation: none; } }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 999px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; font-family: inherit;
}
.btn.primary { background: var(--mint); color: #04140d; }
.btn.ghost { background: var(--fill-strong); color: var(--label); }
.btn:hover { filter: brightness(1.08); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 40px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 30px; line-height: 1.1; font-weight: 700; }
.stat span { color: var(--label3); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat.red b { color: var(--danger); }
.stat.mint b { color: var(--mint); }
.stat.violet b { color: var(--violet); }
.stat.amber b { color: var(--amber); }

/* Sections */
h2 { font-size: 26px; margin: 0 0 6px; }
.sub { color: var(--label3); margin: 0 0 16px; }
.section { margin: 0 0 48px; }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-right: 6px; box-shadow: 0 0 0 0 rgba(92, 242, 176, 0.6); animation: ping 2s infinite; vertical-align: 1px; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(92, 242, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 242, 176, 0); } }

/* Lists */
.list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px;
  border-top: 1px solid var(--line); transition: background 0.12s;
}
.item:first-child { border-top: 0; }
a.item:hover { background: var(--fill); }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--fill); font-weight: 700; overflow: hidden; font-size: 18px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.grow { flex: 1; min-width: 0; }
.title { font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta { color: var(--label3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.right { text-align: right; font-size: 13px; flex: none; }
.right .meta { text-align: right; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 11px;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.pill.rugger { color: var(--danger); background: var(--danger-tint); }
.pill.suspect { color: var(--amber); background: var(--amber-tint); }
.pill.farm { color: var(--violet); background: var(--violet-tint); }
.pill.pass { color: var(--mint); background: var(--mint-tint); }
.red { color: var(--danger); }
.amber { color: var(--amber); }
.mint { color: var(--mint); }
.muted { color: var(--label3); }
.empty { padding: 32px 16px; text-align: center; color: var(--label3); }

/* Segmented */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--fill); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 14px; }
.seg button {
  font: inherit; font-weight: 600; font-size: 14px; color: var(--label3); background: none; border: 0;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.seg button.on { background: var(--fill-strong); color: var(--label); }

/* Bad devs controls */
.controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.controls .seg { margin-bottom: 0; }
.actor-top { display: flex; align-items: center; justify-content: space-between; }
.rank { color: var(--label4); font-weight: 700; font-size: 13px; }
.actor .big { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; }

/* Bad devs: tabs, lookup, leaderboard table */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 8px 0 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; color: var(--label3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--label); border-color: var(--mint); }
.find { display: flex; gap: 8px; }
.find input {
  height: 40px; width: min(340px, 60vw); padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--label); font: 14px var(--mono);
}
.find input:focus { outline: none; border-color: var(--mint); }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.board { width: 100%; border-collapse: collapse; font-size: 14px; }
.board th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--label3); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.board th.sortable { cursor: pointer; user-select: none; }
.board th.sortable:hover, .board th.on { color: var(--label); }
.board td { padding: 10px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
.board tbody tr { cursor: pointer; transition: background 0.12s; }
.board tbody tr:hover { background: var(--fill); }
.board .num-col { text-align: right; }
.board .c-rank { color: var(--label4); width: 36px; }
.op { display: flex; align-items: center; gap: 8px; }
.op .addr, .member .addr, .evidence .addr { font-family: var(--mono); font-weight: 600; }
.op .pill { padding: 0 6px; }
.ring-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 10px; background: var(--violet-tint); color: var(--violet); font-size: 12px; font-weight: 700; }

/* Rings */
.rings { display: grid; gap: 12px; }
.ring { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.ring-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--fill); border: 1px solid var(--line); }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.member { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--fillsubtle, var(--fill)); flex-wrap: wrap; }
.member:hover { background: var(--fill-strong); }
.member .meta { width: 100%; }
details summary { cursor: pointer; color: var(--label3); font-size: 14px; }
.evidence { margin: 8px 0 0; padding-left: 18px; color: var(--label2); font-size: 14px; display: grid; gap: 4px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.thumbs img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--fill); }

/* Actor cards */
.actors { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.actor { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 6px; transition: border-color 0.15s, transform 0.15s; }
.actor:hover { border-color: rgba(255, 88, 77, 0.45); transform: translateY(-2px); }
.actor .addr { font-family: var(--mono); font-size: 15px; font-weight: 600; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature .ico { font-size: 26px; }
.feature h3 { margin: 8px 0 4px; font-size: 18px; }
.feature p { margin: 0; color: var(--label3); font-size: 15px; }
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.bar i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--danger), var(--amber)); }

/* Dev page */
.back { display: inline-block; color: var(--label3); margin: 24px 0 12px; font-weight: 600; }
.back:hover { color: var(--label); }
.dev-head h1 { font-size: clamp(28px, 5vw, 40px); margin: 8px 0 4px; font-family: var(--font); }
.copy { cursor: pointer; border-bottom: 1px dashed var(--label4); }
.copy:hover { border-color: var(--label2); }
.wallets .item { min-height: 52px; }
.note { color: var(--label3); margin: 0 0 20px; }
.skel { height: 64px; border-top: 1px solid var(--line); background: linear-gradient(90deg, transparent, var(--fill), transparent); background-size: 200% 100%; animation: sh 1.4s infinite; }
.skel:first-child { border-top: 0; }
@keyframes sh { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Static pages */
.doc { max-width: 720px; padding: 32px 16px 48px; margin: 0 auto; }
.doc h1 { font-size: 36px; margin: 0 0 8px; }
.doc h2 { font-size: 20px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--label2); }
.doc a { color: var(--mint); }

/* Support form */
.support-form { display: grid; gap: 14px; margin: 20px 0 8px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.support-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--label2); }
.support-form .opt { font-weight: 400; color: var(--label4); }
.support-form input, .support-form select, .support-form textarea {
  font: 15px var(--font); color: var(--label); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px; width: 100%;
}
.support-form textarea { resize: vertical; min-height: 120px; }
.support-form .mono { font-family: var(--mono); }
.support-form input:focus, .support-form select:focus, .support-form textarea:focus { outline: none; border-color: var(--mint); }
.support-form .btn { justify-self: start; }
.support-form .btn:disabled { opacity: 0.6; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: 14px; color: var(--label3); min-height: 1.2em; }
.form-status.ok { color: var(--mint); }
.form-status.err { color: var(--danger); }

/* Footer */
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 24px max(16px, calc((100vw - 1040px) / 2)) 40px; border-top: 1px solid var(--line);
  color: var(--label3); font-size: 14px;
}
.foot .links { display: flex; gap: 16px; }
.foot a:hover { color: var(--label); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--elevated);
  border: 1px solid var(--line); padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; text-align: left; }
  .mascot { grid-row: 1; width: 160px; justify-self: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  nav { gap: 0; }
  nav a { padding: 6px 7px; font-size: 13px; white-space: nowrap; }
  .controls .seg { overflow-x: auto; max-width: 100%; }
  .seg button { white-space: nowrap; }
  .brand span { display: none; }
}
