:root {
  --bg: #000000;
  --panel: #070707;
  --panel-2: #0d0d0d;
  --fg: #ffffff;
  --dim: #9a9a9a;
  --faint: #565656;
  --line: rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --neg: #ff5c5c;
  --pos: #58d68d;
  --accent: #fa2b3f;
  --sans: "Inter", -apple-system, sans-serif;
  --display: "Inter Tight", "Inter", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--mono); }
.dim { color: var(--dim); }
.neg { color: var(--neg); }
.pos { color: var(--pos); }
a { color: inherit; text-decoration: none; }
b { font-weight: 500; }

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 4px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--dim);
}
.ph-right {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-align: right;
}

/* ---------- header ---------- */
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
}
.head-id { display: flex; align-items: center; gap: 16px; }
.bob-mark { width: 40px; height: 40px; flex: none; }
.head-name { font-size: 15px; letter-spacing: 0.3em; font-weight: 500; }
.head-sub { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 26px; padding: 2px 6px; }
.tab {
  background: none;
  border: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  padding: 8px 2px;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}
.tab:hover { color: var(--dim); }
.tab.active { color: var(--fg); border-bottom-color: var(--accent); }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 13px 18px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.stat:nth-child(4n) { border-right: none; }
.stat:nth-child(n+5) { border-bottom: none; }
.stat .k { font-size: 9.5px; letter-spacing: 0.2em; color: var(--faint); }
.stat .v { font-size: 13px; font-weight: 500; }

/* ---------- columns ---------- */
.cols {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 14px;
  align-items: start;
}
.col { display: flex; flex-direction: column; gap: 14px; }

/* ---------- phone ---------- */
.phone-wrap { padding: 26px 18px 20px; display: flex; flex-direction: column; align-items: center; }
.phone {
  width: 250px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel-2);
  padding: 12px 12px 10px;
}
.phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--dim);
  padding: 2px 6px 10px;
}
.notch { width: 52px; height: 5px; border-radius: 3px; background: rgba(255,255,255,0.14); }
.phone-app {
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: #000;
  padding: 16px 14px 10px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.phone-brand {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.24em;
  margin-bottom: 18px;
}
.phone-brand span:last-child { color: var(--faint); letter-spacing: 0.12em; }
.phone-label { font-size: 8.5px; letter-spacing: 0.26em; color: var(--faint); margin-bottom: 4px; }
.phone-token {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.phone-note { font-size: 10.5px; color: var(--faint); }
.phone-fill { flex: 1; }
.phone-nav {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--faint);
  border-top: 1px solid var(--line-soft);
  padding: 10px 4px 2px;
}
.phone-nav .on { color: var(--fg); }
.phone-cap {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  line-height: 1.6;
}

/* ---------- book / positions ---------- */
.book { padding: 6px 18px 12px; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.row:last-child { border-bottom: none; }
.row.sub { padding-left: 2px; color: var(--dim); font-size: 12.5px; }
.row .r { text-align: right; font-weight: 500; }
.avg { display: block; font-size: 9.5px; color: var(--faint); letter-spacing: 0.06em; margin-top: 2px; }
.pl { display: block; font-size: 11px; font-weight: 400; margin-top: 2px; }

/* ---------- contenders ---------- */
.contenders { padding: 4px 18px 8px; }
.cont { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.cont:last-child { border-bottom: none; }
.cont-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
  font-size: 14px;
}
.cont-head .dim { font-size: 10px; letter-spacing: 0.1em; }
.cont p { color: var(--dim); font-size: 12.5px; }
.trigger { margin-top: 5px; color: var(--dim); }
.trigger b { color: var(--fg); }

/* ---------- now ---------- */
.now-line { padding: 14px 18px 18px; font-size: 15px; line-height: 1.6; }

/* ---------- theses ---------- */
.theses, .quotes, .decisions { padding: 4px 18px 8px; }
.thesis, .quote, .decision { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.thesis:last-child, .quote:last-child, .decision:last-child { border-bottom: none; }
.th-head, .q-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 4px;
  font-size: 12.5px;
}
.th-head > span:first-child, .q-head > span:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}
.th-head > .mono.dim, .q-head > .mono.dim { flex: none; }
.thesis p, .quote p { color: var(--dim); font-size: 12.5px; }
.badge {
  border: 1px solid var(--line);
  padding: 1px 7px;
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--dim);
  border-radius: 2px;
}
.read-more {
  display: block;
  padding: 12px 18px 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--dim);
}
.read-more:hover { color: var(--fg); }

/* ---------- decisions ---------- */
.d-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 5px;
  font-size: 13px;
}
.pass {
  border: 1px solid var(--neg);
  color: var(--neg);
  padding: 1px 7px;
  font-size: 9px;
  letter-spacing: 0.14em;
  border-radius: 2px;
}
.decision p { color: var(--dim); font-size: 12.5px; line-height: 1.7; }
.decision b { color: var(--fg); }

/* ---------- stream ---------- */
.stream { padding: 10px 18px 16px; display: flex; flex-direction: column; }
.s-line {
  display: flex;
  gap: 14px;
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.6;
  border-bottom: 1px solid var(--line-soft);
}
.s-line:last-child { border-bottom: none; }
.s-time { flex: none; color: var(--faint); }
.s-line span:last-child { color: var(--dim); }
.s-line.hot span:last-child { color: var(--fg); }
.s-line.refused span:last-child { color: var(--neg); }
.stream.alt .s-line span:last-child { color: var(--dim); }

/* ---------- footer ---------- */
.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 18px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--dim);
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(4n) { border-right: 1px solid var(--line-soft); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(n+5) { border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(n+7) { border-bottom: none; }
  .tabs { gap: 18px; overflow-x: auto; }
}
