:root {
  --bg: #0a0a0a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: rgba(232, 255, 232, 0.92);
  --muted: rgba(232, 255, 232, 0.62);
  --green: #32ff7e;
  --red: #ff3b3b;
  --amber: #ffd166;
  --cyan: #00e5ff;
  --shadow: rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.5;
}

a { color: inherit; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(50, 255, 126, 0.14), transparent 45%),
    radial-gradient(circle at 84% 18%, rgba(0, 229, 255, 0.14), transparent 48%),
    radial-gradient(circle at 72% 84%, rgba(255, 59, 59, 0.08), transparent 52%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, auto, 48px 48px, 48px 48px;
  background-position: center, center, center, 0 0, 0 0;
  filter: saturate(1.1);
  opacity: 1;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  padding: 22px 0 8px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(50, 255, 126, 0.14), rgba(0, 229, 255, 0.10));
  box-shadow: 0 10px 30px var(--shadow);
}

.title {
  font-weight: 700;
  font-size: 18px;
}

.sub {
  color: var(--muted);
  font-size: 12px;
}

.right {
  display: flex;
  align-items: flex-end;
  gap: 16px;
}

.meta-k {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.meta-v {
  font-weight: 600;
  font-size: 12px;
}

.badge {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.badge-live {
  border-color: rgba(50, 255, 126, 0.35);
  box-shadow: 0 0 0 1px rgba(50, 255, 126, 0.12) inset, 0 10px 30px rgba(50, 255, 126, 0.08);
  animation: blink 1.15s steps(1) infinite;
}

.hidden { display: none !important; }

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.35; }
  100% { opacity: 1; }
}

.hero {
  padding: 18px 0 4px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.02em;
}

.hook {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 900px;
}

.chips {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.chip:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cards {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 12px 36px var(--shadow);
}

.card-k {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.card-v {
  margin-top: 8px;
  font-weight: 700;
  font-size: 14px;
}

.panel {
  margin-top: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 44px var(--shadow);
}

.panel-h {
  padding: 14px 14px 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.panel-title {
  font-weight: 700;
}

.panel-note {
  color: var(--muted);
  font-size: 12px;
}

.table-wrap {
  width: 100%;
  overflow: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}

.table th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(0, 0, 0, 0.12);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.rank {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

.mono { font-variant-ligatures: none; }

.pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}

.q-neutral { color: var(--text); }
.q-good { color: var(--green); border-color: rgba(50, 255, 126, 0.28); }
.q-warn { color: var(--amber); border-color: rgba(255, 209, 102, 0.28); }
.q-bad { color: var(--red); border-color: rgba(255, 59, 59, 0.28); }

.mono {
  font-variant-ligatures: none;
  font-feature-settings: "liga" 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.q-good {
  border-color: rgba(50, 255, 126, 0.28);
  color: rgba(50, 255, 126, 0.95);
}

.q-warn {
  border-color: rgba(255, 209, 102, 0.28);
  color: rgba(255, 209, 102, 0.95);
}

.q-bad {
  border-color: rgba(255, 59, 59, 0.28);
  color: rgba(255, 59, 59, 0.95);
}

.q-neutral {
  color: var(--muted);
}

.muted { color: var(--muted); }

.footer {
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .right { align-items: flex-start; flex-direction: column; }
}
