:root {
  --bg: #0c0b0a;
  --panel: #151412;
  --line: #262420;
  --text: #ece8e1;
  --dim: #8f897f;
  --faint: #5b564f;
  --accent: #f5a524;

  --ported: #4cc38a;
  --reshaped: #6ea8fe;
  --dropped: #8b8478;
  --partial: #f5a524;
  --tracked: #b58cf5;
  --missing: #ef5f5f;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
body { margin: 0 auto; max-width: 1040px; padding: 0 28px 80px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(245, 165, 36, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(110, 168, 254, 0.06), transparent 60%);
}

.eyebrow {
  font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim); margin: 0 0 18px;
}

/* Hero */
.hero { padding: 96px 0 40px; }
.verdict {
  font: 400 clamp(72px, 13vw, 168px)/0.9 var(--serif);
  letter-spacing: -0.035em; margin: 0 0 28px;
}
.verdict span { display: inline-block; animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.verdict .accent { color: var(--accent); font-style: italic; animation-delay: 0.12s; }
.lede { max-width: 620px; font-size: 18px; color: #c9c3b9; margin: 0 0 56px; text-wrap: pretty; }
.lede em { font-style: normal; color: var(--text); border-bottom: 1px dashed var(--faint); }

.meter { border: 1px solid var(--line); background: rgba(21, 20, 18, 0.7); border-radius: 16px; padding: 24px 24px 20px; backdrop-filter: blur(6px); }
.meter-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.meter-score b { font: 500 44px/1 var(--mono); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.meter-score small { font: 500 20px var(--mono); color: var(--dim); }
.meter-label { color: var(--dim); }
.bar { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; }
.seg { flex-basis: 0; transform-origin: left; animation: grow 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 13px; color: var(--dim); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { color: var(--text); font: 500 13px var(--mono); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.s-ported { background: var(--ported); }
.s-reshaped { background: var(--reshaped); }
.s-dropped { background: var(--dropped); }
.s-partial { background: var(--partial); }
.s-tracked { background: var(--tracked); }
.s-missing { background: var(--missing); }

/* Filters */
.filters {
  position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 16px 0; margin-bottom: 8px;
  background: linear-gradient(var(--bg) 70%, transparent);
}
.chip {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 13px var(--sans); color: var(--dim);
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.chip small { font: 12px var(--mono); color: var(--faint); }
.chip:hover { color: var(--text); border-color: #3a3731; }
.chip.on { color: var(--bg); background: var(--text); border-color: var(--text); }
.chip.on small { color: #6b665e; }

/* Areas */
.area { margin: 40px 0 0; animation: fade 0.5s ease both; }
.area-head { display: flex; align-items: center; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.area-head h2 { font: 400 28px/1.1 var(--serif); letter-spacing: -0.01em; margin: 0; }
.mini { display: flex; gap: 3px; }
.mini i { width: 6px; height: 14px; border-radius: 2px; opacity: 0.85; }
.area-meta { margin-left: auto; font: 12px var(--mono); color: var(--faint); }

.rows { list-style: none; padding: 0; margin: 0; }
.row {
  display: grid; grid-template-columns: 1fr 24px 1fr 150px; align-items: center; gap: 4px 16px;
  padding: 14px 12px; margin: 0 -12px; border-radius: 10px; border-bottom: 1px solid #1b1a17;
  transition: background 0.15s;
}
.row:hover { background: var(--panel); }
.from, .to { overflow-wrap: anywhere; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tag { font: 500 10px var(--mono); color: var(--faint); letter-spacing: 0.06em; flex: none; }
.to .none { color: var(--faint); font-style: italic; }
.arrow { color: var(--faint); text-align: center; }
.r-missing .arrow { color: var(--missing); opacity: 0.6; }
.pill {
  justify-self: end; font: 500 11px var(--mono); letter-spacing: 0.02em; white-space: nowrap;
  padding: 4px 10px; border-radius: 999px; color: var(--bg);
}
.pill.s-dropped { color: var(--text); background: #2a2824; }
.pill.s-ported { color: var(--ported); background: rgba(76, 195, 138, 0.12); }
.pill.s-reshaped { color: var(--reshaped); background: rgba(110, 168, 254, 0.12); }
.pill.s-partial { color: var(--partial); background: rgba(245, 165, 36, 0.12); }
.pill.s-tracked { color: var(--tracked); background: rgba(181, 140, 245, 0.12); text-decoration: none; }
.pill.s-tracked:hover { background: rgba(181, 140, 245, 0.22); }
.pill.s-missing { color: var(--missing); background: rgba(239, 95, 95, 0.12); }
.note { grid-column: 1 / -1; margin: 2px 0 0 30px; font-size: 13px; color: var(--dim); }

.bonus { margin: 64px 0 0; }
.bonus ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bonus li { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; color: #c9c3b9; font-size: 14px; }
.bonus li::before { content: "+"; color: var(--ported); margin-right: 8px; font-family: var(--mono); }

footer { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); }
footer p { font: 12px/1.6 var(--mono); color: var(--faint); margin: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 760px) {
  body { padding: 0 18px 60px; }
  .hero { padding-top: 56px; }
  .row { grid-template-columns: 1fr auto; }
  .arrow { display: none; }
  .to { grid-column: 1; }
  .pill { grid-row: 1; grid-column: 2; }
  .note { margin-left: 0; }
  .area-meta { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }
