@font-face { font-family: "FP Latin"; src: url("/fonts/fp-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/geist-mono-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #080808; --panel: #0d0d0d; --panel-2: #121212; --line: #1F1F1F; --line-2: #2a2a2a;
  --text: #E6E6E6; --muted: #7c7c7c; --dim: #4d4d4d;
  --yellow: #FCD535; --green: #0ECB81; --red: #F6465D;
  --vipers: #F6465D; --ravens: #4C7DFF; --jackals: #FCD535; --wolves: #0ECB81;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --px: "FP Latin", "Geist Mono", monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); }
body { background: var(--bg); color: var(--text); font-family: var(--mono); font-size: 13px; line-height: 20px; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum"; letter-spacing: -0.01em; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: var(--text); }
.px, .logo-word, .hero h1, .stat-big b, .kv b, .fam .score b, .page-h h1, .price b { font-family: var(--px); -webkit-font-smoothing: none; letter-spacing: 0; font-weight: 400; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.y { color: var(--yellow); }
.g { color: var(--green); }
.r { color: var(--red); }
.hide { display: none !important; }
.mono { font-family: var(--mono); }

/* top bar */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; align-items: center; gap: 28px; height: 56px; }
.logo-word { color: var(--yellow); font-size: 36px; line-height: 36px; }
.logo-word.sm { font-size: 24px; line-height: 24px; }
.nav { display: flex; gap: 22px; font-size: 12px; letter-spacing: .04em; }
.nav a { color: #bdbdbd; padding: 4px 0; }
.nav a:hover, .nav a.on { color: var(--yellow); }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.ca-box { display: flex; gap: 10px; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); color: #bdbdbd; font-size: 12px; }
.ca-box:hover { border-color: var(--yellow); color: var(--yellow); }
.ca-box .k { color: var(--dim); }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; background: var(--yellow); color: #000; font-family: var(--px); font-size: 12px; box-shadow: 3px 3px 0 var(--line-2); white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--line-2); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: 3px 3px 0 var(--line); }
.btn.ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0 40px; align-items: start; }
.eyebrow { color: var(--yellow); font-size: 12px; letter-spacing: .04em; margin-bottom: 18px; }
.hero h1 { font-size: 36px; line-height: 44px; margin-bottom: 20px; }
.hero ul { list-style: none; color: #cfcfcf; display: grid; gap: 2px; margin-bottom: 26px; }
.hero li::before { content: "› "; color: var(--yellow); }
.ca-line { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--line-2); padding: 10px 14px; background: var(--panel); max-width: 100%; }
.ca-line .k { color: var(--yellow); }
.ca-line .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-line button { color: var(--dim); font-size: 11px; }
.ca-line button:hover { color: var(--yellow); }
.hero-cta { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.stat-big { border: 1px solid var(--line-2); background: var(--bg); box-shadow: 6px 6px 0 var(--line); padding: 26px 22px 18px; text-align: center; }
.stat-big .lab { font-size: 11px; color: #bdbdbd; letter-spacing: .04em; }
.stat-big b { display: block; font-size: 48px; line-height: 56px; color: #d9d9d9; margin: 14px 0 10px; }
.stat-big .sub { color: var(--muted); font-size: 12px; line-height: 18px; }
.stat-big .foot-l { border-top: 1px solid var(--line-2); margin-top: 18px; padding-top: 12px; font-size: 11px; color: #bdbdbd; }
.stat-big .foot-l a:hover { color: var(--yellow); }
.sq { display: inline-block; width: 9px; height: 9px; background: var(--yellow); }

/* ticker */
.ticker { display: flex; border: 1px solid var(--line-2); height: 38px; overflow: hidden; margin-bottom: 18px; }
.ticker .lab { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-right: 1px solid var(--line-2); color: var(--yellow); font-size: 11px; flex: none; background: var(--bg); position: relative; z-index: 1; }
.ticker .track { display: flex; white-space: nowrap; animation: slide 60s linear infinite; }
.ticker .it { display: flex; align-items: center; gap: 6px; padding: 0 18px; border-right: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ticker .it b { color: var(--text); font-weight: 500; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* panels */
.win { border: 1px solid var(--line-2); background: var(--bg); margin-bottom: 18px; }
.win > .t { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-bottom: 1px solid var(--line-2); font-size: 12px; letter-spacing: .03em; }
.win > .t .name { flex: 1; }
.win > .t .aside { color: var(--muted); font-size: 11px; }
.win > .b { padding: 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cols3 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.tabs { display: flex; gap: 2px; min-width: 0; }
.tabs button { flex: none; }
.tabs button { height: 26px; padding: 0 10px; font-size: 11px; color: var(--muted); }
.tabs button.on { background: var(--yellow); color: #000; }
.tabs button:hover:not(.on) { color: var(--text); }

/* stats row */
.kvs { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line-2); margin-bottom: 18px; }
.kv { padding: 16px 14px; border-right: 1px solid var(--line-2); min-width: 0; }
.kv:last-child { border-right: 0; }
.kv .lab { font-size: 11px; color: var(--muted); letter-spacing: .03em; }
.kv b { display: block; font-size: 12px; margin: 6px 0 2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv .sub { font-size: 11px; color: var(--dim); }
.bar { height: 8px; border: 1px solid var(--line-2); background: var(--panel); margin-bottom: 18px; }
.bar i { display: block; height: 100%; background: var(--green); }

/* families */
.fams { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fam { border: 1px solid var(--line-2); background: var(--panel); padding: 14px; position: relative; }
.fam.lead { border-color: var(--yellow); }
.fam .hd { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fam .hd .sw { width: 14px; height: 14px; }
.fam .hd .nm { font-family: var(--px); -webkit-font-smoothing: none; font-size: 12px; letter-spacing: 0; }
.fam .hd .rk { margin-left: auto; color: var(--dim); font-size: 11px; }
.fam .score b { font-size: 24px; line-height: 28px; }
.fam .score span { color: var(--muted); font-size: 11px; margin-left: 6px; }
.fam .rows { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 11px; color: var(--muted); }
.fam .rows b { display: block; color: var(--text); font-weight: 500; font-size: 12px; }
.share { display: flex; height: 6px; margin-top: 12px; background: var(--line); }
.share i { display: block; height: 100%; }

/* the city map */
.map { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 4px; }
.blk { position: relative; height: 62px; border: 1px solid var(--line-2); background: var(--panel); padding: 7px 8px; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .15s; }
.blk:hover { border-color: var(--text); }
.blk .h { font-size: 11px; line-height: 14px; color: #cfcfcf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; }
.blk .l { font-size: 10px; color: var(--muted); display: flex; justify-content: space-between; position: relative; }
.blk .fill { position: absolute; inset: 0; opacity: .16; }
.blk .edge { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.blk.held .h { color: #fff; }
.blk.flash { animation: flash 1.2s ease-out; }
@keyframes flash { 0% { box-shadow: inset 0 0 0 2px var(--yellow); } 100% { box-shadow: inset 0 0 0 0 transparent; } }
.legend { display: flex; gap: 16px; font-size: 11px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; display: inline-block; }

/* feed */
.feed { display: grid; max-height: 420px; overflow: auto; }
.feed .row { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 12px; }
.feed .row:last-child { border-bottom: 0; }
.feed .ago { color: var(--dim); font-size: 11px; }
.feed .txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.feed .txt b { color: var(--text); font-weight: 500; }
.feed .took { color: var(--yellow); }
.fam-name { font-weight: 500; }
.empty { color: var(--muted); padding: 26px 4px; text-align: center; font-size: 12px; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; font-weight: 400; color: var(--muted); font-size: 11px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); letter-spacing: .03em; }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
td .sw { display: inline-block; width: 8px; height: 8px; margin-right: 8px; }
.tag { display: inline-block; border: 1px solid currentColor; padding: 0 5px; font-size: 10px; line-height: 16px; }

/* page header */
.page-h { padding: 34px 0 20px; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-h h1 { font-size: 36px; line-height: 40px; }
.page-h p { color: var(--muted); max-width: 560px; margin-top: 8px; }
.page-h .act { margin-left: auto; }

/* forms */
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; letter-spacing: .03em; }
.field input, .field select { width: 100%; height: 38px; background: var(--panel); border: 1px solid var(--line-2); padding: 0 12px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--yellow); }
.pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pick button { border: 1px solid var(--line-2); padding: 12px 10px; text-align: left; background: var(--panel); }
.pick button .sw { width: 12px; height: 12px; display: block; margin-bottom: 8px; }
.pick button b { font-family: var(--px); -webkit-font-smoothing: none; font-weight: 400; font-size: 12px; display: block; }
.pick button span { font-size: 11px; color: var(--muted); }
.pick button.on { border-color: var(--yellow); box-shadow: 3px 3px 0 var(--line-2); }
.note { border: 1px solid var(--line-2); background: var(--panel); padding: 10px 12px; font-size: 12px; color: #cfcfcf; }
.note.bad { border-color: var(--red); color: var(--red); }
.note.good { border-color: var(--green); color: var(--green); }
.steps { list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: #cfcfcf; }
.steps li::before { content: counter(s); font-family: var(--px); -webkit-font-smoothing: none; color: #000; background: var(--yellow); width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }

/* boss chat */
.chat { display: grid; gap: 12px; }
.log { min-height: 280px; max-height: 460px; overflow: auto; border: 1px solid var(--line-2); background: var(--panel); padding: 14px; display: grid; gap: 14px; align-content: start; }
.msg .who { font-size: 11px; color: var(--dim); margin-bottom: 4px; }
.msg.you .txt { color: var(--muted); }
.msg.boss .txt { color: var(--text); }
.msg.boss .txt em { color: var(--yellow); font-style: normal; }
.ask { display: flex; gap: 10px; }
.ask input { flex: 1; height: 38px; background: var(--panel); border: 1px solid var(--line-2); padding: 0 12px; outline: none; }
.ask input:focus { border-color: var(--yellow); }
.ladder { display: grid; gap: 10px; }
.ladder .st { display: grid; grid-template-columns: 1fr auto; font-size: 12px; }
.ladder .bar { margin: 4px 0 0; grid-column: 1 / -1; height: 6px; }
.ladder .bar i { background: var(--yellow); }

/* doc */
.doc { max-width: 760px; padding-bottom: 40px; }
.doc h2 { font-family: var(--px); -webkit-font-smoothing: none; font-weight: 400; font-size: 12px; color: var(--yellow); margin: 28px 0 10px; letter-spacing: 0; }
.doc p, .doc li { color: #cfcfcf; margin-bottom: 8px; }
.doc ul { padding-left: 18px; }

/* reading view */
.reading { border: 1px solid var(--line-2); background: var(--panel); padding: 16px; max-height: 420px; overflow: auto; }
.reading .url { color: var(--yellow); font-size: 11px; margin-bottom: 10px; word-break: break-all; }
.reading h3 { font-size: 14px; margin-bottom: 10px; font-weight: 500; }
.reading p { color: #bdbdbd; margin-bottom: 8px; font-size: 12px; }

/* footer, toast */
.foot { border-top: 1px solid var(--line); margin-top: auto; }
.foot-in { display: flex; align-items: center; gap: 18px; height: 56px; font-size: 12px; }
.foot .r { margin-left: auto; display: flex; gap: 18px; color: var(--muted); }
.foot .r a:hover { color: var(--yellow); }
main { padding-bottom: 30px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--yellow); color: #000; padding: 8px 14px; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s; box-shadow: 3px 3px 0 var(--line-2); }
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1020px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .fams { grid-template-columns: 1fr 1fr; }
  .kvs { grid-template-columns: repeat(3, 1fr); }
  .kv:nth-child(3) { border-right: 0; }
  .kv:nth-child(-n+3) { border-bottom: 1px solid var(--line-2); }
  .cols, .cols3 { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .win > .t { height: auto; min-height: 36px; flex-wrap: wrap; padding: 8px 12px; row-gap: 8px; }
  .win > .t .tabs { width: 100%; overflow-x: auto; }
  .win > .t .aside { display: none; }
  .hero { padding-top: 28px; }
  .logo-word { font-size: 24px; line-height: 24px; }
  .ca-box { display: none; }
  .hero h1 { font-size: 24px; line-height: 32px; }
  .fams { grid-template-columns: 1fr; }
  .kvs { grid-template-columns: 1fr 1fr; }
  .kv { border-right: 1px solid var(--line-2) !important; border-bottom: 1px solid var(--line-2); }
  .kv:nth-child(2n) { border-right: 0 !important; }
  .map { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .foot-in { flex-wrap: wrap; height: auto; padding: 14px 16px; }
  table .opt { display: none; }
}
