:root {
  --ink: #171812;
  --paper: #e9e6dc;
  --paper-2: #d9d5c8;
  --night: #11120f;
  --night-2: #191a15;
  --night-3: #23241d;
  --line: rgba(232, 229, 218, .15);
  --muted: #999b90;
  --cream: #f2eee3;
  --acid: #d7f45b;
  --acid-dark: #9eb33f;
  --orange: #f1924c;
  --red: #e76252;
  --cyan: #76c7bb;
  --purple: #b9a7e9;
  --shadow: 0 24px 70px rgba(0, 0, 0, .32);
  color-scheme: dark;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  min-width: 320px;
  min-height: 100vh;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }

.noise {
  position: fixed;
  inset: 0;
  opacity: .035;
  pointer-events: none;
  z-index: 100;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(17, 18, 15, .9);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 20;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}
.wordmark > span:last-child { display: flex; align-items: baseline; gap: 8px; }
.wordmark b {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 20px;
}
.wordmark small {
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.wordmark-mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 5px;
  background: var(--acid);
  transform: rotate(-3deg);
}
.wordmark-mark i { display: block; flex: 1; background: var(--ink); }
.wordmark-mark i:nth-child(1) { height: 55%; }
.wordmark-mark i:nth-child(2) { height: 100%; }
.wordmark-mark i:nth-child(3) { height: 75%; }
.header-meta { display: flex; align-items: center; gap: 18px; }
.live-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(215, 244, 91, .1);
}
.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  display: grid;
  place-items: center;
  transition: .2s ease;
}
.icon-button:hover { color: var(--acid); border-color: var(--acid); transform: rotate(30deg); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }

main { overflow: hidden; }
.hero-intro {
  position: relative;
  padding: clamp(80px, 12vw, 160px) clamp(20px, 7vw, 110px) clamp(90px, 11vw, 145px);
  min-height: 610px;
  isolation: isolate;
}
.hero-intro::before {
  content: "";
  position: absolute;
  width: min(68vw, 980px);
  aspect-ratio: 1;
  right: -20vw;
  top: -38%;
  border: 1px solid rgba(215, 244, 91, .2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 80px var(--night), inset 0 0 0 81px rgba(215, 244, 91, .1), inset 0 0 0 180px var(--night), inset 0 0 0 181px rgba(215, 244, 91, .07);
  z-index: -1;
}
.hero-intro::after {
  content: "META / BUILDS / COMPETITIVE";
  position: absolute;
  right: 5vw;
  bottom: 50px;
  color: rgba(242, 238, 227, .05);
  font-family: "Oswald", sans-serif;
  font-size: clamp(26px, 4vw, 68px);
  letter-spacing: .1em;
  white-space: nowrap;
  z-index: -1;
}
.eyebrow, .kicker {
  display: block;
  color: var(--acid);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.eyebrow::before, .kicker::before { content: "// "; opacity: .6; }
.hero-intro h1 {
  max-width: 890px;
  margin: 24px 0;
  font-family: "Oswald", sans-serif;
  font-size: clamp(56px, 8.7vw, 132px);
  line-height: .88;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.hero-intro h1 em { color: var(--acid); font-style: normal; }
.hero-intro > p {
  max-width: 590px;
  color: #b6b7ad;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.65;
}
.intro-actions { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.primary-action, .secondary-action, .text-action {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 46px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 700;
}
.primary-action {
  background: var(--acid);
  color: var(--ink);
  box-shadow: 5px 5px 0 rgba(215, 244, 91, .18);
}
.primary-action:hover { background: #e3ff6f; transform: translate(-1px, -1px); }
.secondary-action { background: var(--night-3); color: var(--cream); border: 1px solid var(--line); }
.text-action { background: none; color: var(--cream); padding: 0; }
.text-action:hover { color: var(--acid); }
.text-action:disabled { opacity: .5; cursor: wait; }

.pulse, .explorer { padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 64px); }
.pulse { background: var(--paper); color: var(--ink); }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto 30px;
}
.section-heading h2 {
  margin: 7px 0 0;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.02em;
}
.pulse .kicker { color: #5f6740; }
.context-label, .result-count {
  font-family: "DM Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #68695f;
}
.result-count b { color: var(--acid); font-size: 18px; }
.pulse-grid {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(23, 24, 18, .18);
  border-left: 1px solid rgba(23, 24, 18, .18);
}
.pulse-card {
  min-height: 245px;
  padding: 24px;
  border-right: 1px solid rgba(23, 24, 18, .18);
  border-bottom: 1px solid rgba(23, 24, 18, .18);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: .25s ease;
}
.pulse-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.28); }
.pulse-index {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: "DM Mono", monospace;
  font-size: 10px;
  opacity: .45;
}
.pulse-label {
  font-family: "DM Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 10px;
  margin-bottom: auto;
}
.pulse-card strong {
  font-family: "Oswald", sans-serif;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.04em;
}
.pulse-card > span:not(.pulse-index):not(.pulse-label) { font-weight: 700; margin-top: 8px; }
.pulse-card small { color: #77786f; margin-top: 4px; }
.pulse-win strong { color: #728638; }
.pulse-contested strong { color: #b55a38; }
.pulse-lane strong { color: #6e5ba1; }
.pulse-damage strong { color: #337d74; }

.explorer { background: var(--night); min-height: 900px; }
.explorer-heading { margin-bottom: 22px; }
.filter-dock {
  position: sticky;
  top: 12px;
  z-index: 15;
  max-width: 1440px;
  margin: 0 auto 34px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) auto repeat(4, minmax(105px, auto));
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(25, 26, 21, .94);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}
.search-control, .select-control {
  min-height: 54px;
  background: var(--night);
  border: 1px solid var(--line);
}
.search-control {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 16px;
}
.search-control svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.5; }
.search-control input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--cream);
}
.search-control input::placeholder { color: #686a62; }
.filter-set {
  display: flex;
  padding: 5px;
  border: 1px solid var(--line);
  background: var(--night);
}
.filter-chip {
  min-width: 38px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: 11px;
}
.filter-chip:hover { color: var(--cream); }
.filter-chip.active { color: var(--ink); background: var(--acid); }
.select-control {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7px 12px;
}
.select-control > span {
  color: #6e7068;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.select-control select {
  max-width: 140px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 20px 0 0;
}
.select-control option { background: var(--night-2); }

.hero-grid {
  max-width: 1440px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.hero-card {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--line);
  background: var(--night-2);
  transition: transform .25s ease, border-color .25s ease;
}
.hero-card:hover { transform: translateY(-4px); border-color: rgba(215, 244, 91, .45); }
.hero-art {
  position: absolute;
  inset: 0 0 auto;
  height: 58%;
  overflow: hidden;
  z-index: -2;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(.7) contrast(1.08); transition: .4s ease; }
.hero-card:hover .hero-art img { transform: scale(1.025); filter: saturate(.9) contrast(1.04); }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 20%, rgba(25,26,21,.15) 55%, var(--night-2) 100%);
}
.hero-card-top {
  min-height: 255px;
  padding: 17px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.tier-stamp {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--acid);
  font-family: "Oswald", sans-serif;
  font-size: 24px;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 rgba(0,0,0,.22);
}
.tier-stamp[data-tier="A"] { background: var(--cyan); }
.tier-stamp[data-tier="B"] { background: #aaa99f; }
.tier-stamp[data-tier="C"], .tier-stamp[data-tier="D"] { background: var(--orange); }
.presence-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 10px;
  background: rgba(17,18,15,.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
}
.presence-badge b { font-family: "DM Mono", monospace; font-size: 14px; }
.presence-badge small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.hero-card-body { padding: 0 20px 20px; }
.hero-identity { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 17px; }
.hero-identity h3 {
  margin: 0;
  font-family: "Oswald", sans-serif;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}
.role-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.role-tag { padding: 4px 7px; background: var(--night-3); color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  padding: 13px 10px 12px 0;
  border-right: 1px solid var(--line);
}
.metric + .metric { padding-left: 11px; }
.metric:last-child { border-right: 0; }
.metric span { display: block; color: #6e7068; font-family: "DM Mono", monospace; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.metric b { display: block; margin-top: 4px; font-size: 16px; }
.metric b.positive { color: var(--acid); }
.build-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.build-copy { min-width: 0; }
.build-copy small { display: block; color: #6e7068; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.build-copy b { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.build-actions { display: flex; flex-shrink: 0; gap: 6px; }
.mini-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--cream);
  font-family: "DM Mono", monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.mini-button:hover { border-color: var(--acid); color: var(--acid); }
.mini-button.copy { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.mini-button.copy.copied { background: var(--cyan); border-color: var(--cyan); }
.no-build { color: #66685f; font-size: 12px; }
.empty-state { max-width: 1440px; margin: 60px auto; text-align: center; color: var(--muted); }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--cream); font-size: 24px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  padding: 54px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #0d0e0c;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand b { text-transform: uppercase; }
.footer-brand span:not(.wordmark-mark) { color: var(--muted); font-size: 11px; }
.footer-copy { max-width: 850px; color: #73756d; font-size: 11px; line-height: 1.65; }
.footer-copy p { margin: 0 0 8px; }
.footer-copy a { color: #a4a69b; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 8, 6, .78);
  backdrop-filter: blur(12px);
}
.modal-backdrop.open { display: flex; }
.modal {
  position: relative;
  width: min(680px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 36px;
  border: 1px solid var(--line);
  background: var(--night-2);
  box-shadow: var(--shadow);
}
.modal h2 { margin: 8px 0 20px; font-family: "Oswald", sans-serif; font-size: 38px; text-transform: uppercase; }
.modal p { color: var(--muted); line-height: 1.6; }
.modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 28px;
}
.modal-close:hover { color: var(--cream); }
.build-description { margin: 18px 0 0; padding: 15px 17px; border-left: 3px solid var(--acid); background: #0c1118; color: #c5c8be; font-size: 13px; line-height: 1.55; }
.modal-field { display: flex; flex-direction: column; gap: 8px; margin: 24px 0; }
.modal-field span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.modal-field input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); outline: 0; background: var(--night); color: var(--cream); }
.modal-field input:focus { border-color: var(--acid); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  background: var(--acid);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .pulse-grid, .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-dock { grid-template-columns: minmax(250px, 2fr) auto repeat(3, 1fr); }
  .sort-control { display: none; }
}
@media (max-width: 760px) {
  .site-header { height: 66px; padding: 0 16px; }
  .wordmark > span:last-child small, .live-status span { display: none; }
  .hero-intro { min-height: 560px; padding-top: 80px; }
  .hero-intro::before { width: 120vw; right: -65vw; }
  .hero-intro h1 { font-size: clamp(50px, 17vw, 82px); }
  .intro-actions { align-items: flex-start; flex-direction: column; gap: 18px; }
  .pulse-grid, .hero-grid { grid-template-columns: 1fr; }
  .pulse-card { min-height: 210px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .filter-dock { position: relative; top: 0; grid-template-columns: 1fr 1fr; }
  .search-control { grid-column: 1 / -1; }
  .filter-set { grid-column: 1 / -1; }
  .filter-chip { min-height: 38px; flex: 1; }
  .hero-card { min-height: 500px; }
  .hero-card-top { min-height: 285px; }
  .site-footer { grid-template-columns: 1fr; gap: 24px; }
  .modal { padding: 30px 20px; }
  .modal-actions { flex-direction: column-reverse; }
}

/* Data desk redesign */
:root {
  --night: #0d1117;
  --night-2: #131922;
  --night-3: #1a222d;
  --cream: #eef2f5;
  --muted: #8d99a8;
  --acid: #cbe968;
  --line: rgba(190, 205, 219, .14);
}
body { background: #0d1117; }
main { overflow: visible; }
.site-header {
  position: sticky;
  top: 0;
  height: 68px;
  background: rgba(13, 17, 23, .94);
}
.site-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 32px; }
.site-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover { color: var(--cream); }
.dashboard-intro {
  max-width: 1568px;
  margin: auto;
  padding: 70px clamp(20px, 4vw, 64px) 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.dashboard-intro h1 {
  margin: 13px 0 14px;
  font-family: "Oswald", sans-serif;
  font-size: clamp(42px, 5vw, 78px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.025em;
}
.dashboard-intro p { max-width: 760px; margin: 0; color: #a7b0bb; font-size: 16px; line-height: 1.6; }
.refresh-button {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--night-2);
  color: var(--cream);
  font-size: 12px;
  font-weight: 700;
}
.refresh-button:hover { border-color: var(--acid); color: var(--acid); }
.pulse, .explorer, .dlns-section { padding: 52px clamp(20px, 4vw, 64px); }
.pulse { background: #10161e; color: var(--cream); border-block: 1px solid var(--line); }
.pulse .kicker { color: var(--acid); }
.pulse .context-label { color: var(--muted); }
.section-heading { max-width: 1440px; margin-bottom: 24px; }
.section-heading h2 { font-size: clamp(30px, 3vw, 44px); }
.pulse-grid {
  border: 1px solid var(--line);
  background: var(--night);
}
.pulse-card {
  min-height: 142px;
  padding: 20px;
  border-color: var(--line);
}
.pulse-card:hover { transform: none; background: var(--night-2); }
.pulse-card .pulse-label { color: var(--muted); margin: 0 0 25px; }
.pulse-card > div { display: flex; align-items: baseline; gap: 12px; }
.pulse-card strong { color: var(--cream); font-size: 34px; }
.pulse-card > div span { color: var(--acid); font-weight: 700; }
.pulse-card small { color: #737f8d; }
.explorer { min-height: 0; background: var(--night); }
.filter-dock {
  position: sticky;
  top: 78px;
  max-width: 1440px;
  margin-bottom: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.data-table-wrap, .score-table-wrap {
  max-width: 1440px;
  margin: auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--night-2);
}
.hero-table, .score-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.hero-table th, .score-table th {
  padding: 12px 14px;
  background: #0f141b;
  color: #778391;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.hero-table th:first-child, .hero-table th:nth-child(3), .hero-table th:last-child,
.score-table th:first-child { text-align: left; }
.hero-table th button, .dlns-stats-table th button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.hero-table th button.sorted::after, .dlns-stats-table th button.sorted::after { content: " ↓"; color: var(--acid); }
.hero-table th button.sorted[data-direction="asc"]::after,
.dlns-stats-table th button.sorted[data-direction="asc"]::after { content: " ↑"; }
.hero-table td {
  padding: 10px 14px;
  font-size: 12px;
  text-align: right;
  border-bottom: 1px solid rgba(190,205,219,.08);
}
.hero-table td:first-child, .hero-table td:nth-child(3), .hero-table td:last-child { text-align: left; }
.hero-table tr:hover td { background: rgba(203,233,104,.035); }
.hero-cell { display: flex; align-items: center; gap: 11px; min-width: 145px; }
.hero-cell img { width: 34px; height: 34px; border-radius: 3px; object-fit: cover; background: var(--night-3); }
.hero-cell b { font-size: 13px; }
.tier-pill {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 3px;
  background: var(--acid);
  color: var(--ink);
  font-weight: 800;
}
.tier-pill[data-tier="A"] { background: var(--cyan); }
.tier-pill[data-tier="B"] { background: #9ba8b4; }
.tier-pill[data-tier="C"], .tier-pill[data-tier="D"] { background: var(--orange); }
.muted-cell { color: var(--muted); }
.positive { color: var(--acid); }
.pick-ban { color: var(--muted); }
.pick-ban b { color: var(--cream); }
.presence-meter { display: inline-block; width: 64px; height: 4px; margin-right: 7px; background: #2a333e; vertical-align: middle; }
.presence-meter span { display: block; height: 100%; background: var(--acid); }
.hero-table td > small { color: var(--muted); font-size: 9px; }
.sample-size { display: block; margin-top: 2px; }
.table-build { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 175px; }
.table-build span { max-width: 85px; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.mini-button { min-height: 28px; padding: 0 8px; }

.dlns-section { background: #10161e; border-top: 1px solid var(--line); }
.dlns-section > .section-heading, .archive-summary, .archive-layout { max-width: 1440px; margin-inline: auto; }
.section-description { max-width: 710px; margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.archive-controls { display: flex; gap: 8px; }
.archive-controls .select-control { min-width: 150px; }
.archive-controls select { max-width: none; }
.archive-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-bottom: 0;
}
.archive-summary > div { padding: 17px 20px; border-right: 1px solid var(--line); }
.archive-summary > div:last-child { border: 0; }
.archive-summary span { display: block; color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.archive-summary b { display: block; margin-top: 5px; font-size: 22px; }
.dlns-hero-stats {
  max-width: 1440px;
  margin: 0 auto 18px;
  border: 1px solid var(--line);
  background: var(--night);
}
.draft-analysis {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) repeat(4, minmax(135px, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #0d131a;
}
.analysis-intro, .analysis-stat, .analysis-loading {
  min-height: 86px;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
}
.analysis-stat:last-child { border-right: 0; }
.analysis-intro > span, .analysis-stat > span {
  display: block;
  color: #778391;
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.analysis-intro p {
  max-width: 440px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.analysis-intro p b { color: var(--cream); }
.analysis-stat b {
  display: block;
  margin-top: 8px;
  color: var(--acid);
  font-size: 15px;
}
.analysis-stat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}
.analysis-loading {
  grid-column: 1 / -1;
  color: var(--muted);
  border-right: 0;
}
.dlns-stats-table-wrap { max-height: 430px; overflow: auto; }
.dlns-stats-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.dlns-stats-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 14px;
  background: #0f141b;
  color: #778391;
  font-family: "DM Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  text-align: right;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.dlns-stats-table th:first-child { text-align: left; }
.dlns-stats-table td {
  padding: 9px 14px;
  font-size: 11px;
  text-align: right;
  border-bottom: 1px solid rgba(190,205,219,.08);
}
.dlns-stats-table td:first-child { text-align: left; }
.dlns-stats-table tr:hover td { background: rgba(203,233,104,.035); }
.dlns-stats-table .hero-cell img { width: 28px; height: 28px; }
.stats-heading-controls { display: flex; align-items: center; gap: 14px; }
.stats-heading-controls > label {
  min-width: 165px;
  padding: 5px 9px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
}
.stats-heading-controls label > span { font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.stats-heading-controls select { border: 0; outline: 0; background: transparent; color: var(--cream); font-size: 10px; }
.stats-heading-controls option { background: var(--night-2); }
.archive-layout {
  display: grid;
  grid-template-columns: minmax(300px, .72fr) minmax(0, 1.7fr);
  min-height: 700px;
  border: 1px solid var(--line);
  background: var(--night);
}
.week-history { border-right: 1px solid var(--line); min-width: 0; }
.archive-heading {
  min-height: 50px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.archive-heading b { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.archive-heading span { color: var(--muted); font-size: 10px; }
.archive-search { display: block; padding: 10px; border-bottom: 1px solid var(--line); }
.archive-search input {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  outline: 0;
  background: var(--night-2);
  color: var(--cream);
}
.week-history-list { max-height: 800px; overflow-y: auto; }
.week-row {
  width: 100%;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 3px 10px;
  border: 0;
  border-bottom: 1px solid rgba(190,205,219,.08);
  background: transparent;
  color: var(--cream);
  text-align: left;
}
.week-row:hover, .week-row.active { background: var(--night-3); }
.week-row.active { box-shadow: inset 3px 0 var(--acid); }
.week-number { grid-row: 1 / 3; align-self: center; color: var(--acid); font-family: "DM Mono", monospace; font-size: 13px; }
.week-date { font-size: 11px; font-weight: 700; }
.week-series { color: var(--muted); font-size: 9px; }
.week-results { display: flex; min-width: 0; flex-direction: column; }
.week-results i { overflow: hidden; color: #7e8996; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.match-list { padding: 12px; }
.match-card { margin-bottom: 9px; border: 1px solid var(--line); background: var(--night-2); }
.match-card summary {
  min-height: 74px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 38px minmax(210px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
}
.match-card summary::-webkit-details-marker { display: none; }
.match-region { padding: 5px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; text-align: center; }
.match-teams { display: flex; align-items: center; gap: 8px; }
.match-teams b { font-size: 13px; }
.match-teams b.winner { color: var(--acid); }
.match-teams i { color: #586472; font-size: 10px; font-style: normal; }
.match-meta { color: var(--muted); font-size: 10px; }
.match-meta b { color: var(--cream); }
.match-open { color: var(--acid); font-size: 10px; }
.match-detail { border-top: 1px solid var(--line); padding: 16px; }
.draft-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 18px; }
.draft-line b { margin-right: 6px; font-size: 10px; text-transform: uppercase; }
.draft-line span { padding: 5px 7px; background: #202936; color: #aeb7c2; font-size: 9px; }
.team-scoreboard { margin-top: 17px; }
.team-scoreboard h3 { margin: 0 0 7px; font-size: 13px; }
.team-scoreboard h3 span { margin-left: 8px; color: var(--acid); font-size: 9px; text-transform: uppercase; }
.score-table-wrap { border-color: rgba(190,205,219,.1); }
.score-table th, .score-table td { padding: 8px 10px; text-align: right; border-bottom: 1px solid rgba(190,205,219,.07); font-size: 10px; }
.score-table th:first-child, .score-table td:first-child { text-align: left; }
.player-cell { display: flex; align-items: center; gap: 8px; }
.player-cell img { width: 26px; height: 26px; border-radius: 50%; }
.player-cell span { display: flex; flex-direction: column; }
.player-cell small { color: var(--muted); }
.match-actions { display: flex; justify-content: space-between; margin-top: 13px; color: var(--muted); font-size: 10px; }
.match-actions a { color: var(--acid); text-decoration: none; }
.loading-panel { padding: 50px 20px; color: var(--muted); text-align: center; }
.build-link { display: inline-flex; align-items: center; gap: 6px; }
.freshness-dot { width: 6px; height: 6px; border-radius: 50%; background: #64707d; }
.freshness-dot.fresh { background: #9fd35b; box-shadow: 0 0 0 3px rgba(159,211,91,.1); }
.freshness-dot.aging { background: #e6ae55; }
.freshness-dot.stale { background: #df6b61; }
.stale-build { border-color: rgba(223,107,97,.55); color: #ef9a91; }
#buildModal .modal {
  width: min(1120px, 100%);
  padding: 0;
  border-color: rgba(203,233,104,.2);
  background: #111720;
}
#buildModal .modal > .kicker, #buildModal .modal > h2 { margin-inline: 30px; }
#buildModal .modal > .kicker { padding-top: 28px; }
#buildModal .modal-body { padding: 0 30px 30px; }
#buildModal .modal-close { z-index: 2; }
.build-overview {
  margin: 22px -30px 0;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-block: 1px solid var(--line);
  background: #0c1118;
}
.build-overview-copy span { color: var(--muted); font-family: "DM Mono", monospace; font-size: 9px; text-transform: uppercase; }
.build-overview-copy h3 { margin: 6px 0 0; font-family: "Oswald", sans-serif; font-size: 28px; text-transform: uppercase; }
.build-date { display: inline-flex; align-items: center; gap: 9px; padding: 8px 11px; border: 1px solid var(--line); background: var(--night); }
.build-date i { width: 8px; height: 8px; border-radius: 50%; background: #9fd35b; }
.build-date.aging i { background: #e6ae55; }
.build-date.stale i { background: #df6b61; }
.build-date span { display: flex; flex-direction: column; }
.build-date b { font-size: 10px; text-transform: uppercase; }
.build-date small { color: var(--muted); font-size: 9px; }
.ability-sheet, .build-section { margin-top: 18px; padding: 14px; border: 1px solid var(--line); background: #0c1118; }
.build-sections { display: grid; gap: 12px; }
.build-section-head, .ability-key-item span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.build-section-head b, .ability-key-item b { font-size: 11px; text-transform: uppercase; }
.build-section-head b { display: flex; align-items: center; gap: 8px; }
.build-section-head i { color: #596675; font-family: "DM Mono", monospace; font-size: 9px; font-style: normal; }
.build-section-head span, .ability-key-item small, .ability-buy small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.build-section > p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.ability-order, .build-tiles { display: grid; gap: 6px; margin-top: 12px; }
.ability-order { grid-template-columns: repeat(14, minmax(0, 1fr)); }
.build-tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); }
.ability-buy, .build-tile {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 6px 4px 7px;
  border: 1px solid rgba(190,205,219,.1);
  border-top: 3px solid var(--ability-color, #788494);
  background: #151d27;
  text-align: center;
}
.build-tile.weapon { border-top-color: #d28a54; }
.build-tile.vitality { border-top-color: #77b36d; }
.build-tile.spirit { border-top-color: #a78bd6; }
.ability-buy i { color: #667384; font-family: "DM Mono", monospace; font-size: 8px; font-style: normal; }
.ability-buy-icon, .build-tile-icon { width: 44px; height: 44px; display: grid; place-items: center; background: #202936; }
.ability-buy-icon img, .build-tile-icon img { width: 44px; height: 44px; object-fit: contain; }
.ability-buy b { color: var(--cream); font-family: "Oswald", sans-serif; font-size: 14px; line-height: 1; }
.build-tile b {
  width: 100%;
  min-height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px;
  line-height: 1.2;
}
.build-tile small, .ability-buy small { display: flex; flex-direction: column; gap: 2px; font-size: 8px; line-height: 1.2; }
.build-tile small em { color: #d7c2ef; font-style: normal; }
.ability-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ability-key-item { min-width: 0; display: flex; align-items: center; gap: 8px; padding: 6px; border-left: 3px solid var(--ability-color); background: #151d27; }
.ability-key-item span { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ability-key-item b, .ability-key-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.modal-copy { margin-top: 18px; }
.pro-build { min-width: 260px; max-width: 420px; text-align: left; white-space: normal; }
.pro-build > span, .no-purchases { color: var(--muted); font-size: 9px; }
.purchase-meta { margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.purchase-timeline { display: flex; flex-wrap: wrap; gap: 3px; }
.purchase-item { position: relative; width: 28px; height: 34px; border-bottom: 2px solid #788494; background: #202936; }
.purchase-item.weapon { border-color: #d28a54; }
.purchase-item.vitality { border-color: #77b36d; }
.purchase-item.spirit { border-color: #a78bd6; }
.purchase-item img { width: 28px; height: 28px; object-fit: contain; }
.purchase-item small { position: absolute; right: 1px; bottom: 0; padding: 0 2px; background: rgba(8,11,15,.9); color: #dfe5eb; font-size: 6px; }

@media (max-width: 1000px) {
  .site-nav { display: none; }
  .filter-dock { grid-template-columns: minmax(220px, 1fr) repeat(2, 1fr); }
  .archive-layout { grid-template-columns: 1fr; }
  .week-history { border-right: 0; border-bottom: 1px solid var(--line); }
  .week-history-list { max-height: 340px; }
  .draft-analysis { grid-template-columns: repeat(2, 1fr); }
  .analysis-intro { grid-column: 1 / -1; }
  .analysis-stat:nth-child(3), .analysis-stat:nth-child(5) { border-right: 0; }
  .ability-order { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .build-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .dashboard-intro { align-items: flex-start; flex-direction: column; padding-top: 48px; }
  .header-meta .live-status { display: none; }
  .pulse-grid, .archive-summary { grid-template-columns: 1fr 1fr; }
  .pulse-card { min-height: 130px; }
  .archive-summary > div:nth-child(2) { border-right: 0; }
  .archive-summary > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .archive-controls { width: 100%; }
  .archive-controls .select-control { min-width: 0; flex: 1; }
  .match-card summary { grid-template-columns: 35px 1fr; gap: 7px 10px; }
  .match-meta, .match-open { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr; }
  .ability-order { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .build-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ability-key { grid-template-columns: 1fr 1fr; }
  .build-overview { align-items: flex-start; flex-direction: column; }
  .stats-heading-controls { align-items: flex-end; flex-direction: column; gap: 5px; }
  .draft-analysis { grid-template-columns: 1fr; }
  .analysis-intro, .analysis-stat { grid-column: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .analysis-stat:last-child { border-bottom: 0; }
}
