:root {
  color-scheme: dark;
  --bg: #0c0e14;
  --card: #161922;
  --field: #10131a;
  --line: #2a3142;
  --text: #eef2f7;
  --muted: #9aa3b5;
  --accent: #818cf8;
  --accent-soft: #232742;
  --star: #f5b942;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

.top, .page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 8px;
}

.banner {
  width: min(1080px, calc(100% - 32px));
  height: 220px;
  margin: 8px auto 16px;
  border-radius: 12px;
  background: center/cover no-repeat #161922;
  border: 1px solid var(--line);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--accent-soft);
}

.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

body.hide-score .score,
body.hide-score .score-meta,
body.hide-score .dist,
body.hide-score .score-metric { display: none; }

body.hide-bio .tagline { display: none; }
body.hide-avatars .avatar { display: none; }
body.hide-numbers .number { display: none; }
body.hide-dates .who-text span { display: none; }
body.hide-proof .proof { display: none; }

body.has-bg {
  background-color: #0c0e14;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.has-bg .summary,
body.has-bg .card,
body.has-bg .top {
  background: rgba(22, 25, 34, 0.92);
}

.page {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
  padding-bottom: 40px;
}

.summary {
  position: sticky;
  top: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}

.feed { min-width: 0; }

.top-links { display: flex; gap: 8px; flex: none; }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand em { font-style: normal; color: var(--accent); }

.mark {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: contain;
}

.discord {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}

.discord:hover { border-color: var(--accent); }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.tagline {
  margin: 10px 0 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.score {
  margin: 18px 0 0;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--text);
}

.score-meta { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.dist { display: grid; gap: 6px; min-width: 0; }

.dist-row {
  display: grid;
  grid-template-columns: 14px 1fr 48px;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: #2a3142;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.metrics {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.metrics div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.metrics dt { color: var(--muted); font-size: 13px; }

.metrics dd {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.toolbar { display: flex; gap: 8px; margin: 18px 0 12px; }

.search { flex: 1; position: relative; }

.search input,
.toolbar button,
.more {
  font: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.search input { width: 100%; padding: 11px 12px; outline: none; }

.search input:focus,
.toolbar button:focus-visible,
.more:focus-visible,
.discord:focus-visible { border-color: var(--accent); }

.toolbar button,
.more { padding: 11px 14px; cursor: pointer; font-weight: 600; }

.toolbar button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.list { display: grid; gap: 8px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.who { display: flex; gap: 12px; min-width: 0; }

.avatar {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.who-text { min-width: 0; }
.who-text strong, .who-text span { display: block; }
.who-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text span, .number { color: var(--muted); font-size: 13px; }

.rating { text-align: right; flex: none; }
.stars { color: var(--star); letter-spacing: 1px; }

.content {
  margin: 10px 0 0;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.proof { display: block; margin-top: 12px; }
.proof img, .proof video {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 8px;
  background: #10131a;
}

.missing { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.status { min-height: 1.2em; color: var(--muted); text-align: center; }
.more { display: block; width: 100%; margin: 4px 0 20px; }

footer { padding: 8px 0 36px; color: var(--muted); font-size: 14px; }
footer code { color: var(--text); font-family: inherit; font-weight: 600; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

@media (max-width: 800px) {
  .banner { height: 150px; }
  .page { grid-template-columns: 1fr; }
  .summary { position: static; }
  .toolbar { flex-direction: column; }
}
