:root {
  --bg: #0c0b09;
  --bg-2: #12100d;
  --panel: #18150f;
  --panel-2: #201c15;
  --panel-3: #2a251c;
  --line: rgba(236, 216, 178, .12);
  --line-strong: rgba(236, 216, 178, .24);
  --text: #f1e8d6;
  --muted: #b3a891;
  --dim: #7d7462;
  --brass: #e4b25c;
  --brass-hi: #f6d28c;
  --brass-lo: #9c7634;
  --good: #8fcf7a;
  --bad: #ea7a68;
  --amber: #e9a64b;
  --ban: #e0675a;
  --weapon: #e38b3f;
  --vitality: #71b85c;
  --spirit: #a884e6;
  --display: "Big Shoulders Display", "Oswald", Impact, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  color-scheme: dark;
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(1200px 520px at 78% -120px, rgba(228, 178, 92, .16), transparent 70%),
    radial-gradient(900px 600px at -10% 20%, rgba(168, 132, 230, .06), transparent 70%),
    var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
}
button, input, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
img { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow, .mini-label {
  display: block;
  color: var(--brass);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mini-label { color: var(--dim); font-size: 10px; margin-bottom: 8px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 64px;
  padding: 0 clamp(16px, 4vw, 56px);
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 11, 9, .86);
  backdrop-filter: blur(14px);
}
.wordmark { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.wordmark b { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wordmark-mark {
  width: 26px;
  height: 26px;
  flex: none;
  background: linear-gradient(135deg, var(--brass-hi), var(--brass-lo));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  box-shadow: inset 0 0 0 4px rgba(12, 11, 9, .55);
}
.site-nav { display: flex; gap: 6px; margin-left: auto; }
.site-nav a {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}
.site-nav a:hover { color: var(--text); background: var(--panel-2); }
.header-meta { display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 16px; width: 250px; }
.live-status { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.live-status span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-status i { flex: none; }
.live-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px rgba(143, 207, 122, .15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(143, 207, 122, 0); } }
.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  transition: .2s ease;
}
.icon-button:hover { color: var(--brass); border-color: var(--brass); transform: rotate(30deg); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* Masthead */
.masthead {
  position: relative;
  max-width: 1480px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 92px) clamp(16px, 4vw, 56px) 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.masthead::after {
  content: "";
  position: absolute;
  left: clamp(16px, 4vw, 56px);
  right: clamp(16px, 4vw, 56px);
  bottom: 0;
  height: 10px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.masthead h1 {
  margin: 12px 0 18px;
  font-family: var(--display);
  font-size: clamp(54px, 8vw, 118px);
  font-weight: 900;
  line-height: .86;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.masthead h1 em {
  font-style: normal;
  background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.patch-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.patch-chip {
  padding: 6px 12px;
  border: 1px solid rgba(228, 178, 92, .45);
  border-radius: 999px;
  background: rgba(228, 178, 92, .1);
  color: var(--brass-hi);
  font-family: var(--mono);
  font-size: 12px;
}
.refresh-button {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  font-weight: 700;
}
.refresh-button:hover { border-color: var(--brass); color: var(--brass-hi); }
.refresh-button:disabled { opacity: .5; cursor: wait; }

/* Overview cards */
.pulse { max-width: 1480px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 56px) 8px; }
.pulse-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pulse-card {
  position: relative;
  min-height: 176px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  isolation: isolate;
}
.pulse-card img {
  position: absolute;
  right: -10px;
  top: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: .55;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.pulse-card img:not([src]) { display: none; }
.pulse-card > div { padding: 18px 20px; display: flex; flex-direction: column; height: 100%; }
.pulse-label { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pulse-card strong { margin-top: auto; font-family: var(--display); font-size: 48px; font-weight: 800; line-height: 1; }
.pulse-card b { font-size: 16px; }
.pulse-card small { max-width: 60%; color: var(--muted); font-size: 12px; }
.pulse-card.win strong { color: var(--good); }
.pulse-card.draft strong { color: var(--brass-hi); }
.pulse-card.lane strong { color: var(--weapon); }
.pulse-card.damage strong { color: var(--spirit); }

.whats-new { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); gap: 14px; max-width: 1480px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 56px) 8px; }
.news-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.news-card .cell-muted { margin: 0; }
.card-title { color: var(--text); font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.05; text-decoration: none; text-transform: uppercase; }
.card-title:hover { color: var(--brass-hi); }
.card-sub { margin: 0; color: var(--muted); font-size: 13px; }
.patch-faces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.patch-faces .face { width: 34px; height: 34px; margin: 0; border-width: 2px; }
.patch-faces a:hover .face { transform: translateY(-2px); }
.more-faces { display: grid; place-items: center; width: 34px; height: 34px; border: 1px dashed var(--line-strong); border-radius: 50%; color: var(--muted); font-family: var(--mono); font-size: 11px; text-decoration: none; }
.news-card .legend { margin-top: auto; padding-top: 4px; font-size: 11px; }
.news-card .legend .dot { margin-left: 6px; border-radius: 50%; }
.news-card .legend .dot:first-child { margin-left: 0; }
.dot.buff { background: var(--good); }
.dot.nerf { background: var(--bad); }
.dot.mixed { background: var(--amber); }
.card-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.card-list a, .card-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; text-decoration: none; }
.card-list a:hover, .card-list button:hover { background: rgba(255, 255, 255, .04); }
.card-list .face { width: 32px; height: 32px; margin: 0; flex: none; }
.card-list span:not(.face):not(.tier-pill):not(.age-badge) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-list b { font-size: 14px; }
.card-list small { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.card-list .num { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.card-list .num.good { color: var(--good); }
.card-list .num.bad { color: var(--bad); }

/* Sections */
.board { max-width: 1480px; margin: 0 auto; padding: 56px clamp(16px, 4vw, 56px) 24px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading h2 {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.4vw, 60px);
  font-weight: 800;
  line-height: .95;
  text-transform: uppercase;
}
.section-description { max-width: 760px; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.result-count { color: var(--muted); font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.result-count b { color: var(--brass-hi); font-size: 22px; }

.filter-dock {
  position: sticky;
  top: 72px;
  z-index: 20;
  margin-bottom: 14px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto 170px 170px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(24, 21, 15, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.search-control, .select-control, .filter-set { min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.search-control { display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.search-control:focus-within, .select-control:focus-within { border-color: var(--brass); }
.search-control svg { width: 18px; flex: none; fill: none; stroke: var(--dim); stroke-width: 1.8; }
.search-control input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; font-size: 14px; }
.search-control input::placeholder { color: var(--dim); }
.filter-set { display: flex; gap: 2px; padding: 4px; }
.filter-chip { min-width: 42px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-family: var(--display); font-size: 18px; font-weight: 800; }
.filter-chip:hover { color: var(--text); background: var(--panel-2); }
.filter-chip.active { background: var(--brass); color: #1a1306; }
.select-control { display: flex; flex-direction: column; justify-content: center; padding: 4px 12px; }
.select-control > span { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.select-control select { border: 0; outline: 0; background: transparent; font-size: 14px; font-weight: 600; }
.select-control option { background: var(--panel); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.table-wrap.tall { max-height: 560px; overflow-y: auto; }
.table-wrap.flat { border-radius: 8px; background: var(--bg-2); }
.data-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 14px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-align: right;
  text-transform: uppercase;
}
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.hero-table th:nth-child(2), .hero-table td:nth-child(2) { text-align: center; }
.hero-table th:nth-child(8), .hero-table td:nth-child(8), .hero-table th:last-child, .hero-table td:last-child { text-align: left; }
.dlns-stats-table th:nth-child(2), .dlns-stats-table td:nth-child(2) { text-align: left; }
.data-table th button { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.data-table th button:hover { color: var(--text); }
.data-table th button.sorted { color: var(--brass-hi); }
.data-table th button.sorted::after { content: " ↓"; }
.data-table th button.sorted[data-direction="asc"]::after { content: " ↑"; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; font-size: 14px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(228, 178, 92, .05); }
.num { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
b.num { font-size: 14px; font-weight: 500; }
.sub { display: block; margin-top: 2px; color: var(--dim); font-size: 11px; font-family: var(--mono); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.cell-muted, .no-build { color: var(--dim); font-size: 13px; }

.hero-cell { display: flex; align-items: center; gap: 12px; min-width: 170px; }
.hero-cell img { width: 40px; height: 40px; flex: none; border-radius: 8px; object-fit: cover; background: var(--panel-3); border: 1px solid var(--line); }
.hero-cell span { display: flex; flex-direction: column; }
.hero-cell b { font-size: 15px; }
.hero-cell small { color: var(--dim); font-size: 12px; }
.dlns-stats-table .hero-cell img { width: 32px; height: 32px; }

.tier-pill {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 900;
  color: #1a1306;
  background: var(--brass);
}
.tier-pill[data-tier="S"] { background: linear-gradient(135deg, var(--brass-hi), var(--brass)); box-shadow: 0 0 18px rgba(228, 178, 92, .35); }
.tier-pill[data-tier="A"] { background: #c9b9e9; }
.tier-pill[data-tier="B"] { background: #8fb7a8; }
.tier-pill[data-tier="C"] { background: #b0a48c; }
.tier-pill[data-tier="D"] { background: #7a6f60; }
.tier-pill.pending { background: var(--panel-2); color: var(--dim); box-shadow: none; }
.tier-pill[title] { cursor: help; }

.split-bar { display: flex; width: 110px; height: 6px; overflow: hidden; border-radius: 3px; background: var(--panel-3); }
.split-bar.wide { width: 150px; }
.split-bar i { display: block; height: 100%; }
.split-bar i.pick { background: var(--brass); }
.split-bar i.ban { background: var(--ban); }
.draft-cell { min-width: 130px; }
.draft-cell-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.draft-cell-top b { font-family: var(--mono); font-size: 14px; font-weight: 500; }
.draft-cell-top span { font-family: var(--mono); font-size: 11px; }
em.pick { color: var(--brass); font-style: normal; }
em.ban { color: var(--ban); font-style: normal; }
.presence-cell { display: flex; align-items: center; gap: 12px; }
.presence-cell b { font-family: var(--mono); font-size: 13px; font-weight: 500; }

.build-cell {
  min-width: 190px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-2);
  text-align: left;
}
.build-cell span { max-width: 110px; overflow: hidden; color: var(--muted); font-size: 13px; text-overflow: ellipsis; }
.build-cell b { margin-left: auto; color: var(--brass-hi); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.build-cell:hover { border-color: var(--brass); background: var(--panel-2); }
.age-badge {
  min-width: 42px;
  padding: 3px 6px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}
.age-badge.fresh { background: rgba(143, 207, 122, .16); color: var(--good); }
.age-badge.aging { background: rgba(233, 166, 75, .18); color: var(--amber); }
.age-badge.stale { background: rgba(234, 122, 104, .2); color: var(--bad); }
.age-badge.unknown { background: var(--panel-3); color: var(--dim); }
.table-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 12px 0 0; color: var(--dim); font-size: 12px; }
.table-note .age-badge { margin-left: 8px; }
.table-note .age-badge:first-child { margin-left: 0; }
.empty-state { padding: 50px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-size: 20px; }

/* Segmented controls */
.segmented { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.segmented button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.segmented button:hover { color: var(--text); }
.segmented button.active { background: var(--brass); color: #1a1306; }
.segmented.small button { min-height: 32px; padding: 0 12px; font-size: 12px; }

/* Draft leaders */
.draft-analysis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.leader {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  isolation: isolate;
}
.leader img { position: absolute; right: 0; top: 0; width: 50%; height: 100%; object-fit: cover; object-position: top; opacity: .5; z-index: -1; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.leader > div, .leader > span { padding: 16px 18px; }
.leader > div { display: flex; flex-direction: column; }
.leader span { color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.leader b { margin-top: 10px; font-size: 18px; }
.leader strong { font-family: var(--display); font-size: 40px; font-weight: 800; line-height: 1; color: var(--brass-hi); }
.leader small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.analysis-loading { grid-column: 1 / -1; padding: 30px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); text-align: center; }
.table-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.toolbar-note { color: var(--dim); font-size: 12px; }

/* Archive */
.archive-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.week-history { position: sticky; top: 80px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.archive-search { display: block; padding: 10px; border-bottom: 1px solid var(--line); }
.archive-search input { width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: var(--bg-2); }
.archive-search input:focus { border-color: var(--brass); }
.archive-count { padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.week-history-list { max-height: 640px; overflow-y: auto; }
.week-row {
  width: 100%;
  padding: 11px 14px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 2px 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}
.week-row:hover { background: var(--panel-2); }
.week-row.active { background: rgba(228, 178, 92, .1); box-shadow: inset 3px 0 var(--brass); }
.week-number { grid-row: 1 / 3; align-self: center; font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--brass); }
.week-date { font-size: 13px; font-weight: 600; }
.week-series { color: var(--dim); font-size: 11px; }
.week-results { grid-column: 2 / -1; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.week-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.week-summary > div { padding: 14px 16px; border-right: 1px solid var(--line); }
.week-summary > div:last-child { border-right: 0; }
.week-summary span { display: block; color: var(--dim); font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.week-summary b { display: block; margin-top: 2px; font-family: var(--display); font-size: 28px; font-weight: 800; }
.match-list { display: grid; gap: 10px; }
.match-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.match-card[open] { border-color: var(--line-strong); }
.match-card summary { min-height: 64px; padding: 12px 16px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; cursor: pointer; list-style: none; }
.match-card summary::-webkit-details-marker { display: none; }
.match-card summary:hover { background: var(--panel-2); }
.match-region { padding: 4px 0; border: 1px solid var(--line-strong); border-radius: 5px; color: var(--muted); font-family: var(--mono); font-size: 11px; text-align: center; }
.match-teams { display: flex; align-items: center; gap: 10px; min-width: 0; }
.match-teams b { overflow: hidden; color: var(--muted); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.match-teams b.winner { color: var(--text); }
.match-teams b.winner::before { content: "◆ "; color: var(--brass); font-size: 11px; }
.match-teams i { color: var(--dim); font-size: 12px; font-style: normal; }
.match-meta { color: var(--muted); font-family: var(--mono); font-size: 13px; }
.match-open { color: var(--brass); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.match-detail { padding: 16px; border-top: 1px solid var(--line); background: var(--bg-2); }
.draft-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.draft-line b { margin-right: 4px; color: var(--ban); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.draft-line span { padding: 4px 9px; border: 1px solid rgba(224, 103, 90, .35); border-radius: 999px; color: #f0b1a8; font-size: 12px; }
.team-scoreboard { margin-top: 16px; }
.team-scoreboard h3 { margin: 0 0 8px; font-size: 15px; }
.team-scoreboard h3 span { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(228, 178, 92, .16); color: var(--brass-hi); font-size: 11px; text-transform: uppercase; }
.score-table td, .score-table th { padding: 8px 12px; font-size: 13px; }
.player-cell { display: flex; align-items: center; gap: 10px; }
.player-cell img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; }
.player-cell span { display: flex; flex-direction: column; }
.player-cell small { color: var(--dim); font-size: 11px; }
.pro-build { min-width: 280px; max-width: 460px; white-space: normal; text-align: left; }
.purchase-timeline { display: flex; flex-wrap: wrap; gap: 3px; }
.purchase-item { position: relative; width: 30px; height: 36px; border-bottom: 2px solid var(--dim); border-radius: 4px 4px 0 0; background: var(--panel-3); }
.purchase-item.weapon { border-color: var(--weapon); }
.purchase-item.vitality { border-color: var(--vitality); }
.purchase-item.spirit { border-color: var(--spirit); }
.purchase-item img { width: 30px; height: 30px; object-fit: contain; }
.purchase-item small { position: absolute; right: 0; bottom: 0; padding: 0 2px; background: rgba(12, 11, 9, .9); font-size: 8px; font-family: var(--mono); }
.match-actions { display: flex; justify-content: space-between; margin-top: 14px; color: var(--dim); font-size: 12px; }
.match-actions a { color: var(--brass-hi); font-weight: 600; text-decoration: none; }
.loading-panel { padding: 40px 20px; color: var(--muted); text-align: center; }

/* Footer */
.site-footer {
  max-width: 1480px;
  margin: 60px auto 0;
  padding: 36px clamp(16px, 4vw, 56px) 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand div { display: flex; flex-direction: column; }
.footer-brand b { font-family: var(--display); font-size: 18px; font-weight: 800; text-transform: uppercase; }
.footer-brand span { color: var(--dim); font-size: 12px; }
.footer-copy { color: var(--dim); font-size: 12px; line-height: 1.6; }
.footer-copy p { margin: 0 0 8px; }
.footer-copy a { color: var(--muted); }

/* Build sheet */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 32px 20px;
  overflow-y: auto;
  background: rgba(6, 5, 4, .93);
  overscroll-behavior: contain;
}
.modal-backdrop.open { display: flex; }
.build-sheet {
  position: relative;
  contain: layout paint;
  width: min(1180px, 100%);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(12, 11, 9, .7);
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
}
.modal-close:hover { color: var(--text); border-color: var(--text); }
.sheet-loading { padding: 40px; }
.sheet-loading h2 { margin: 0 0 8px; font-family: var(--display); font-size: 40px; text-transform: uppercase; }
.sheet-loading p { color: var(--muted); }
.sheet-header {
  position: relative;
  min-height: 200px;
  padding: 28px 28px 24px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(600px 240px at 0 0, rgba(228, 178, 92, .14), transparent 70%), var(--panel-2);
}
.sheet-portrait { width: 132px; height: 176px; border-radius: 10px; object-fit: cover; object-position: top; border: 1px solid var(--line-strong); box-shadow: 0 14px 30px rgba(0, 0, 0, .4); }
.sheet-title h2 { margin: 6px 0 6px; font-family: var(--display); font-size: clamp(32px, 4vw, 48px); font-weight: 800; line-height: .95; text-transform: uppercase; }
.sheet-title p { margin: 0; color: var(--muted); font-size: 14px; }
.sheet-title p b { color: var(--text); }
.freshness-banner { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 14px; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.freshness-banner span { color: var(--muted); }
.freshness-banner.fresh { background: rgba(143, 207, 122, .12); border: 1px solid rgba(143, 207, 122, .35); }
.freshness-banner.fresh b { color: var(--good); }
.freshness-banner.aging { background: rgba(233, 166, 75, .12); border: 1px solid rgba(233, 166, 75, .4); }
.freshness-banner.aging b { color: var(--amber); }
.freshness-banner.stale { background: rgba(234, 122, 104, .12); border: 1px solid rgba(234, 122, 104, .45); }
.freshness-banner.stale b { color: var(--bad); }
.copy-button {
  margin-right: 46px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 18px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brass-hi), var(--brass));
  color: #1a1306;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  box-shadow: 0 10px 24px rgba(228, 178, 92, .2);
}
.copy-button b { font-family: var(--mono); font-size: 20px; letter-spacing: 0; }
.copy-button:hover { filter: brightness(1.08); }
.copy-button.copied { background: var(--good); }
.sheet-description { margin: 0; padding: 18px 28px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.6; white-space: pre-line; }
.sheet-block { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.sheet-block:last-child { border-bottom: 0; }
.block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.block-head h3 { margin: 0; font-family: var(--display); font-size: 28px; font-weight: 800; text-transform: uppercase; }
.block-head span { color: var(--muted); font-size: 13px; }

.ability-summary { display: flex; flex-wrap: wrap; gap: 18px 40px; margin-bottom: 18px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chain-item { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.chain-item b { font-size: 13px; }
.chain-arrow { color: var(--brass); font-size: 18px; font-style: normal; }
.ability-icon {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid var(--brass-lo);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #3a3226, #15120d);
}
.ability-icon.ult { border-color: var(--brass-hi); box-shadow: 0 0 12px rgba(246, 210, 140, .35); }
.ability-icon img { width: 24px; height: 24px; object-fit: contain; }
.ability-icon i { position: absolute; right: -5px; bottom: -4px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--brass); color: #1a1306; font-family: var(--mono); font-size: 10px; font-style: normal; font-weight: 600; }
.skill-grid-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); }
.skill-grid { width: 100%; border-collapse: collapse; }
.skill-grid th, .skill-grid td { height: 48px; padding: 0; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); text-align: center; }
.skill-grid thead th { height: 32px; color: var(--dim); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.skill-grid tbody th, .skill-grid tfoot th, .skill-grid thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 190px;
  padding: 0 14px;
  border-left: 0;
  background: var(--panel-2);
  text-align: left;
}
.skill-grid td { min-width: 42px; }
.skill-grid tfoot td, .skill-grid tfoot th { height: 30px; border-bottom: 0; color: var(--dim); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.skill-name { display: flex; align-items: center; gap: 12px; }
.skill-name span { display: flex; flex-direction: column; }
.skill-name b { font-size: 14px; }
.skill-name small { color: var(--brass); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.skill-pip {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
}
.skill-pip.unlock { border: 1px solid var(--line-strong); background: var(--panel-3); color: var(--text); }
.skill-pip.t1 { background: #5b4520; color: var(--brass-hi); }
.skill-pip.t2 { background: #9c7634; color: #1a1306; }
.skill-pip.t3 { background: linear-gradient(135deg, var(--brass-hi), var(--brass)); color: #1a1306; box-shadow: 0 0 12px rgba(246, 210, 140, .3); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.legend .skill-pip { width: 24px; height: 24px; margin-left: 10px; font-size: 12px; }
.legend .skill-pip:first-child { margin-left: 0; }

.slot-mix { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.slot-bar { display: flex; width: 220px; height: 8px; overflow: hidden; border-radius: 4px; background: var(--panel-3); }
.slot-bar i { display: block; height: 100%; }
.slot-bar .weapon, .dot.weapon { background: var(--weapon); }
.slot-bar .vitality, .dot.vitality { background: var(--vitality); }
.slot-bar .spirit, .dot.spirit { background: var(--spirit); }
.dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 2px; }
.item-group { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.item-group-label b { display: block; font-family: var(--display); font-size: 20px; font-weight: 800; text-transform: uppercase; }
.item-group-label span { display: block; margin-top: 2px; color: var(--dim); font-size: 12px; }
.item-group-label p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.item-group.optional .item-group-label b { color: var(--muted); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, 108px); gap: 10px; }
.item-tile {
  --slot: var(--dim);
  position: relative;
  height: 142px;
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--slot) 45%, transparent);
  border-radius: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--slot) 26%, var(--panel-2)), var(--panel-2) 72%);
  text-align: center;
}
.item-tile.weapon { --slot: var(--weapon); }
.item-tile.vitality { --slot: var(--vitality); }
.item-tile.spirit { --slot: var(--spirit); }
.item-tile:hover { border-color: var(--slot); transform: translateY(-2px); transition: transform .15s ease; }
.item-art { position: relative; width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(0, 0, 0, .3); }
.item-art img { width: 46px; height: 46px; object-fit: contain; }
.item-note { position: absolute; top: -6px; right: -8px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--brass); color: #1a1306; font-family: var(--mono); font-size: 11px; font-style: normal; font-weight: 600; }
.item-tile b { display: -webkit-box; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.item-tile small { margin-top: auto; color: var(--brass-hi); font-family: var(--mono); font-size: 12px; }
.item-tile em { position: absolute; left: 6px; right: 6px; bottom: 26px; overflow: hidden; color: #d9c6f5; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.item-tile { cursor: help; }
.item-tile:focus-visible { outline: 2px solid var(--brass-hi); outline-offset: 2px; }
.item-tile.has-note { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brass) 35%, transparent); }
.item-note.inline { position: static; display: inline-grid; width: 15px; height: 15px; margin: 0 2px; font-size: 10px; vertical-align: -2px; }

.item-tip {
  --slot: var(--brass);
  position: fixed;
  z-index: 120;
  width: max-content;
  max-width: min(320px, calc(100vw - 16px));
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--slot) 60%, transparent);
  border-top: 3px solid var(--slot);
  border-radius: 10px;
  background: #16130e;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6);
  color: var(--text);
  pointer-events: none;
  animation: tip-in .12s ease-out;
}
.item-tip.weapon { --slot: var(--weapon); }
.item-tip.vitality { --slot: var(--vitality); }
.item-tip.spirit { --slot: var(--spirit); }
.item-tip-head b { display: block; font-size: 14px; font-weight: 700; }
.item-tip-head span { display: block; margin-top: 2px; color: var(--brass-hi); font-family: var(--mono); font-size: 11px; }
.item-tip p { margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.item-tip-imbue { color: #d9c6f5; }
.item-tip-note { padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); }
.item-tip-note span { display: block; margin-bottom: 4px; color: var(--brass); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.item-tip-section { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.item-tip-section > span { color: var(--slot); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.item-tip-section.active > span { color: var(--brass-hi); }
.item-tip-section p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.item-tip-section p b { color: var(--text); }
.item-tip-section ul { display: grid; gap: 2px; margin: 6px 0 0; padding: 0; list-style: none; }
.item-tip-section li { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
.item-tip-section li span { color: var(--muted); }
.item-tip-section li b { font-family: var(--mono); font-weight: 500; }
.item-tip-section li.important b { color: var(--brass-hi); }
@keyframes tip-in { from { opacity: 0; transform: translateY(4px); } }
.item-tip.below { animation-name: tip-in-below; }
@keyframes tip-in-below { from { opacity: 0; transform: translateY(-4px); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--brass);
  color: #1a1306;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: .25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.site-nav a[aria-current="page"] { color: var(--brass-hi); background: var(--panel-2); }
a.patch-chip { text-decoration: none; }
a.patch-chip:hover { border-color: var(--brass); }

.page-bar { max-width: 1480px; margin: 0 auto; padding: 26px clamp(16px, 4vw, 56px) 18px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 28px; border-bottom: 1px solid var(--line); }
.page-bar h1 { margin: 6px 0 10px; font-family: var(--display); font-size: clamp(38px, 4.4vw, 58px); font-weight: 900; line-height: .9; text-transform: uppercase; }
.page-bar h1 em { font-style: normal; background: linear-gradient(180deg, var(--brass-hi), var(--brass) 55%, var(--brass-lo)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-bar .patch-line { font-size: 13px; }
.tab-panel { padding-top: 20px; }
.panel-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 4px; }
.panel-toolbar .table-note { margin: 0; }
.panel-toolbar .search-control { flex: 1 1 220px; max-width: 340px; min-height: 42px; }
.fit-height { max-height: max(360px, calc(100vh - 250px)); overflow: auto; }
.fit-height.short { max-height: max(320px, calc(100vh - 330px)); }

.metric-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.metric-picker button { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.metric-picker button:hover { color: var(--text); border-color: var(--line-strong); }
.metric-picker button.active { border-color: var(--brass); background: rgba(228, 178, 92, .14); color: var(--brass-hi); }
#metricNote { margin: 8px 0 12px; }
.rank-list { max-height: max(340px, calc(100vh - 330px)); overflow-y: auto; scrollbar-width: thin; }
.hero-focus { max-height: max(340px, calc(100vh - 290px)); overflow-y: auto; scrollbar-width: thin; }
.hero-focus:empty { display: none; }
.segmented button:disabled { opacity: .35; cursor: not-allowed; }

.compare-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.rank-chart { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 10px 10px 6px; }
.rank-head { display: flex; justify-content: space-between; padding: 4px 8px 10px; color: var(--dim); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.rank-head span:first-child { color: var(--brass-hi); }
.rank-list { margin: 0; padding: 0; list-style: none; }
.rank-row { display: grid; grid-template-columns: 26px minmax(130px, 170px) minmax(0, 1fr) 74px; align-items: center; gap: 10px; width: 100%; padding: 4px 8px; border: 0; border-radius: 7px; background: none; text-align: left; }
.rank-row:hover { background: rgba(228, 178, 92, .06); }
.rank-row.selected { background: rgba(228, 178, 92, .13); }
.rank-row.selected .rank-hero b { color: var(--brass-hi); }
.rank-no { color: var(--dim); font-family: var(--mono); font-size: 11px; text-align: right; }
.rank-hero { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rank-hero img, .rank-hero .img-blank { width: 26px; height: 26px; flex: none; border-radius: 6px; object-fit: cover; background: var(--panel-3); }
.rank-hero b { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { position: relative; height: 14px; border-radius: 4px; background: var(--bg-2); }
.rank-bar i { display: block; width: 0; height: 100%; border-radius: 4px; transition: width .35s ease; }
.rank-bar i.above { background: linear-gradient(90deg, var(--brass-lo), var(--brass)); }
.rank-bar i.below { background: linear-gradient(90deg, #4b4334, #7d6a48); }
.rank-row.selected .rank-bar i { background: linear-gradient(90deg, var(--brass), var(--brass-hi)); }
.avg-mark { position: absolute; top: -3px; bottom: -3px; width: 1px; background: rgba(241, 232, 214, .45); }
.rank-val { text-align: right; color: var(--text); }
.rank-val small { color: var(--dim); font-size: 11px; }

.hero-focus { position: sticky; top: 84px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.focus-head { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.focus-head img, .focus-head .img-blank { width: 64px; height: 84px; flex: none; border-radius: 8px; object-fit: cover; background: var(--panel-3); border: 1px solid var(--line); }
.focus-head h3 { margin: 4px 0 0; font-family: var(--display); font-size: 34px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.hero-focus h4 { margin: 16px 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.focus-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.focus-stat { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); }
.focus-stat span { display: block; color: var(--dim); font-size: 11px; }
.focus-stat b { display: block; margin-top: 2px; font-size: 16px; }
.focus-stat small { color: var(--dim); font-family: var(--mono); font-size: 10px; }
.focus-stat.high { border-color: rgba(143, 207, 122, .35); }
.focus-stat.high small { color: var(--good); }
.focus-stat.low small { color: var(--bad); }
.focus-scaling { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.focus-scaling b { color: var(--text); text-transform: capitalize; }
.focus-empty { margin: 8px 0 0; color: var(--dim); font-size: 12px; }

.stats-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stats-toolbar .search-control { flex: 1 1 240px; max-width: 360px; }
#viewNote { margin-bottom: 12px; }
.stat-table td { padding-top: 8px; padding-bottom: 8px; }
.stat-table .text-col { text-align: left; }
.stat-table td.text-col { white-space: normal; min-width: 160px; color: var(--muted); font-size: 13px; }
.stat-cell { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 64px; }
.stat-cell .sub { margin: 0; }
.cell-bar { display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--panel-3); }
.cell-bar i { display: block; width: 0; height: 100%; border-radius: 2px; background: var(--brass-lo); }
.cell-bar.weapon i { background: var(--weapon); }
.cell-bar.vitality i { background: var(--vitality); }
.cell-bar.spirit i { background: var(--spirit); }
.link-cell { padding: 0; border: 0; background: none; text-align: left; }
.link-cell:hover b { color: var(--brass-hi); }
.hero-cell .img-blank { width: 40px; height: 40px; flex: none; border-radius: 8px; background: var(--panel-3); }

.rating-legend { display: flex; align-items: center; gap: 4px; margin: 10px 0 12px; color: var(--dim); font-family: var(--mono); font-size: 11px; }
.rating-legend i { width: 22px; height: 10px; border-radius: 2px; }
.rating-table th { padding-left: 6px; padding-right: 6px; }
.rating-table td.rating-cell { min-width: 44px; padding: 0; text-align: center; font-family: var(--mono); font-size: 13px; font-weight: 500; border-left: 1px solid rgba(12, 11, 9, .6); }
.rating-table .hero-cell { min-width: 150px; }
.rating-table .hero-cell img, .rating-table .hero-cell .img-blank { width: 30px; height: 30px; }
.rating-table td { padding-top: 6px; padding-bottom: 6px; }
.avg-cell { color: var(--brass-hi); font-weight: 600; }
.r1 { background: #1d1914; color: #6d6455; }
.r2 { background: #2c2519; color: #9a8b70; }
.r3 { background: #4a3a1f; color: #d9c49a; }
.r4 { background: #7a5a24; color: #fbe7c0; }
.r5 { background: #c08a35; color: #1a1306; }
.data-table tbody tr:hover td.rating-cell { filter: brightness(1.15); }

.economy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.economy-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.economy-card h3 { margin: 0; font-size: 17px; }
.economy-card .table-note { margin-bottom: 14px; }
.economy-card .text-col { text-align: left; }
.milestone td { background: rgba(228, 178, 92, .05); }
.milestone-tag { padding: 3px 8px; border: 1px solid rgba(228, 178, 92, .4); border-radius: 999px; color: var(--brass-hi); font-size: 11px; font-weight: 600; }

.patch-tools { display: flex; flex-wrap: wrap; gap: 8px; flex: 0 1 620px; }
.patch-tools .search-control { flex: 1 1 240px; }
.patch-tools .select-control { flex: 1 1 220px; min-height: 48px; }
.patch-board { padding-top: 20px; }
.patch-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.patch-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 10px; }
.patch-sidebar .segmented { align-self: flex-start; }
.patch-list { max-height: calc(100vh - 150px); margin: 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); scrollbar-width: thin; }
.patch-sidebar .segmented { flex-wrap: wrap; }
.month-label { padding: 12px 12px 4px; color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.month-label:first-child { padding-top: 6px; }
.patch-item { display: grid; gap: 3px; width: 100%; padding: 8px 12px; border: 0; border-left: 2px solid transparent; border-radius: 6px; background: none; text-align: left; }
.patch-item:hover { background: var(--panel-2); }
.patch-item.active { border-left-color: var(--brass); background: rgba(228, 178, 92, .12); }
.patch-item.dim { opacity: .35; }
.patch-item b { font-size: 13px; line-height: 1.3; }
.patch-item.active b { color: var(--brass-hi); }
.patch-date { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--dim); font-family: var(--mono); font-size: 11px; }
.kind-tag { font-style: normal; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.patch-item.major .kind-tag { color: var(--brass); }
.patch-item.hero .kind-tag { color: var(--spirit); }
.patch-item.news .kind-tag { color: #8fb3cf; }
.patch-item.hero { border-left-color: rgba(168, 132, 230, .45); }
.patch-item.hero.active { border-left-color: var(--spirit); background: rgba(168, 132, 230, .12); }
.patch-meta { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 11px; }
.faces { display: inline-flex; }
.face { display: inline-grid; width: 20px; height: 20px; margin-right: -4px; overflow: hidden; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--panel-3); }
.face img { width: 100%; height: 100%; object-fit: cover; }
.face.buff { border-color: var(--good); }
.face.nerf { border-color: var(--bad); }
.face.mixed { border-color: var(--amber); }
.face.new { border-color: var(--spirit); }
.patch-meta .faces + span { margin-left: 4px; }
.tone-bar { display: inline-flex; width: 44px; height: 4px; margin-left: auto; overflow: hidden; border-radius: 2px; background: var(--panel-3); }
.tone-bar i.buff { background: var(--good); }
.tone-bar i.nerf { background: var(--bad); }

.patch-view { min-width: 0; }
.patch-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.patch-header h2 { margin: 6px 0 4px; font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; line-height: 1; text-transform: uppercase; }
.patch-header p { margin: 0; color: var(--muted); font-size: 13px; }
.patch-header a, .text-button { color: var(--brass-hi); }
.text-button { padding: 0; border: 0; background: none; font-size: inherit; text-decoration: underline; }
.history-portrait { width: 64px; height: 84px; flex: none; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); background: var(--panel-3); }
.history-portrait.item { width: 64px; height: 64px; object-fit: contain; padding: 8px; }
.kind-badge { padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.kind-badge.major { border-color: rgba(228, 178, 92, .5); color: var(--brass-hi); }
.kind-badge.hero { border-color: rgba(168, 132, 230, .55); color: #dccbf7; }
.kind-badge.news { border-color: rgba(143, 179, 207, .5); color: #b9d2e6; }
.hero-launch { align-items: flex-end; }
.launch-faces { display: flex; gap: 8px; flex: none; }
.launch-face { width: 96px; height: 128px; overflow: hidden; border: 1px solid rgba(168, 132, 230, .5); border-radius: 10px; background: var(--panel-3); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.launch-face img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.launch-faces:has(.launch-face:nth-child(3)) .launch-face { width: 64px; height: 86px; }
.launch-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.post-body { max-width: 820px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.post-body p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.post-body p b, .post-body p em { color: var(--text); }
.post-body p em { font-style: normal; font-weight: 600; }
.post-body h3 { margin: 18px 0 8px; font-family: var(--display); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.post-body h3:first-child { margin-top: 0; }
.post-body .post-title { color: var(--brass-hi); }
.post-banner { display: block; width: 100%; height: auto; margin-top: 8px; border-radius: 8px; background: var(--panel-3); }
.hero-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.strip-face { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); font-size: 12px; font-weight: 600; }
.strip-face img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.strip-face:hover { border-color: var(--line-strong); color: var(--text); }
.strip-face.buff { border-color: rgba(143, 207, 122, .5); }
.strip-face.nerf { border-color: rgba(234, 122, 104, .5); }
.strip-face.mixed { border-color: rgba(233, 166, 75, .45); }
.hero-strip.compact { gap: 4px; }
.hero-strip.compact .strip-face { padding: 2px; border-width: 2px; }
.hero-strip.compact .strip-face img { width: 30px; height: 30px; }
.hero-strip.compact .strip-face span { display: none; }
.strip-face.buff span { color: #c9e5bf; }
.strip-face.nerf span { color: #f0c3ba; }
.patch-intro { margin-bottom: 14px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); font-size: 13px; }
.patch-intro summary { cursor: pointer; color: var(--text); font-weight: 600; }
.patch-intro p { max-width: 820px; margin: 8px 0 0; }
.section-tabs { margin-bottom: 14px; flex-wrap: wrap; }
.section-tabs button span { margin-left: 4px; opacity: .6; font-family: var(--mono); font-size: 11px; }

.tone-badge { padding: 2px 8px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.tone-badge.buff { background: rgba(143, 207, 122, .16); color: var(--good); }
.tone-badge.nerf { background: rgba(234, 122, 104, .16); color: var(--bad); }
.tone-badge.mixed { background: rgba(233, 166, 75, .16); color: var(--amber); }
.t-buff-text { color: var(--good); }
.t-nerf-text { color: var(--bad); }
.change-rows { display: grid; gap: 8px; }
.change-row { display: grid; grid-template-columns: 210px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
.change-row.loose { grid-template-columns: minmax(0, 1fr); }
.change-row.tone-buff { border-color: rgba(143, 207, 122, .3); }
.change-row.tone-nerf { border-color: rgba(234, 122, 104, .3); }
.change-row.tone-buff .row-head { box-shadow: inset 3px 0 0 var(--good); }
.change-row.tone-nerf .row-head { box-shadow: inset 3px 0 0 var(--bad); }
.change-row.tone-mixed .row-head { box-shadow: inset 3px 0 0 var(--amber); }
.row-head { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-right: 1px solid var(--line); background: var(--panel-2); }
.row-head.slot-weapon { box-shadow: inset 3px 0 0 var(--weapon); }
.row-head.slot-vitality { box-shadow: inset 3px 0 0 var(--vitality); }
.row-head.slot-spirit { box-shadow: inset 3px 0 0 var(--spirit); }
.row-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; overflow: hidden; border-radius: 8px; background: var(--panel-3); }
.row-icon:empty { display: none; }
.row-icon img { width: 100%; height: 100%; object-fit: cover; }
.row-head.item .row-icon img { width: 28px; height: 28px; object-fit: contain; }
.row-head.slot-weapon .row-icon { background: rgba(227, 139, 63, .18); }
.row-head.slot-vitality .row-icon { background: rgba(113, 184, 92, .18); }
.row-head.slot-spirit .row-icon { background: rgba(168, 132, 230, .18); }
.row-name { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.row-name b { font-size: 14px; line-height: 1.2; }
.row-lines { display: grid; gap: 6px; padding: 10px 14px; }
.change-block ul { margin: 0; padding-left: 16px; }
.ability-label { display: block; margin-bottom: 1px; color: var(--text); font-size: 12px; font-weight: 700; }
.change-row li { padding: 2px 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.change-row li::marker { color: var(--dim); }
.change-row li.t-buff { color: #c9e5bf; }
.change-row li.t-buff::marker { color: var(--good); content: "▲  "; font-size: 9px; }
.change-row li.t-nerf { color: #f0c3ba; }
.change-row li.t-nerf::marker { color: var(--bad); content: "▼  "; font-size: 9px; }
.change-row li.t-fix::marker { color: #8fb3cf; content: "●  "; font-size: 8px; }
.change-row .n { color: var(--brass-hi); font-family: var(--mono); font-size: 12px; }
.history-patch .change-row.loose { border-color: transparent; background: none; }
.history-patch .change-row.loose .row-lines { padding: 0; }
.history-patch.hero { border-color: rgba(168, 132, 230, .35); }
.history-post { display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; }
.history-post .face { width: 28px; height: 28px; margin-right: 0; }
.history-post:hover b { text-decoration: underline; }
.patch-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.patch-controls .section-tabs { margin-bottom: 0; }
.tone-filter { display: inline-flex; gap: 4px; }
.tone-filter button { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 12px; font-weight: 600; }
.tone-filter button:hover { color: var(--text); }
.tone-filter button.active { border-color: var(--brass); color: var(--brass-hi); background: rgba(228, 178, 92, .12); }
.tone-filter button.buff.active { border-color: var(--good); color: var(--good); background: rgba(143, 207, 122, .12); }
.tone-filter button.nerf.active { border-color: var(--bad); color: var(--bad); background: rgba(234, 122, 104, .12); }
.tone-filter button.fix.active { border-color: #8fb3cf; color: #8fb3cf; background: rgba(143, 179, 207, .12); }

.item-board { padding-top: 20px; }
.item-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.slot-tabs { display: inline-flex; gap: 6px; }
.slot-tabs button { min-height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg-2); color: var(--muted); font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.slot-tabs button:hover { color: var(--text); }
.slot-tabs button.weapon.active { border-color: var(--weapon); background: rgba(227, 139, 63, .16); color: #f5c79c; }
.slot-tabs button.vitality.active { border-color: var(--vitality); background: rgba(113, 184, 92, .16); color: #c4e8b6; }
.slot-tabs button.spirit.active { border-color: var(--spirit); background: rgba(168, 132, 230, .16); color: #dccbf7; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 18px; align-items: start; }
.shop-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.tier-column { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tier-column header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tier-column header b { font-family: var(--display); font-size: 20px; font-weight: 800; text-transform: uppercase; }
.tier-column header span { color: var(--dim); font-family: var(--mono); font-size: 11px; }
.tier-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; padding: 8px; }
.shop-item { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 8px 4px 7px; border: 1px solid transparent; border-radius: 8px; background: var(--bg-2); text-align: center; }
.shop-item:hover { border-color: var(--line-strong); }
.shop-item.selected { border-color: var(--brass); background: rgba(228, 178, 92, .12); }
.shop-icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 8px; }
.shop-item.weapon .shop-icon, .detail-icon, .item-chip.weapon img { background: rgba(227, 139, 63, .2); }
.shop-item.vitality .shop-icon, .item-detail.vitality .detail-icon, .item-chip.vitality img { background: rgba(113, 184, 92, .2); }
.shop-item.spirit .shop-icon, .item-detail.spirit .detail-icon, .item-chip.spirit img { background: rgba(168, 132, 230, .2); }
.shop-icon img { width: 36px; height: 36px; object-fit: contain; }
.shop-item b { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11px; font-weight: 600; line-height: 1.2; }
.active-tag { position: absolute; right: -6px; bottom: -5px; padding: 1px 4px; border-radius: 4px; background: var(--brass); color: #1a1306; font-family: var(--mono); font-size: 8px; font-style: normal; text-transform: uppercase; }
.active-tag.inline { position: static; font-size: 10px; padding: 2px 6px; }

.item-detail { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); scrollbar-width: thin; }
.item-detail:empty { display: none; }
.item-detail.weapon { border-top: 3px solid var(--weapon); }
.item-detail.vitality { border-top: 3px solid var(--vitality); }
.item-detail.spirit { border-top: 3px solid var(--spirit); }
.detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.detail-icon { display: grid; place-items: center; width: 72px; height: 72px; flex: none; border-radius: 12px; }
.detail-icon img { width: 54px; height: 54px; object-fit: contain; }
.detail-head h2 { margin: 4px 0 2px; font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1; text-transform: uppercase; }
.detail-head p { margin: 0; color: var(--muted); font-size: 13px; }
.detail-head p b { color: var(--brass-hi); font-family: var(--mono); font-weight: 500; }
.detail-section { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 8px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.detail-section.active h3 { color: var(--brass-hi); }
.detail-section p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.detail-section p b { color: var(--text); }
.stat-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.stat-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; border-radius: 6px; background: var(--bg-2); font-size: 13px; }
.stat-list li span { color: var(--muted); }
.stat-list li b { font-family: var(--mono); font-weight: 500; text-align: right; }
.stat-list li.important b { color: var(--brass-hi); }
.stat-list em { margin-left: 6px; color: var(--dim); font-family: var(--mono); font-size: 10px; font-style: normal; }
.stat-list b em { color: var(--spirit); }
.item-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.item-links .mini-label { width: 100%; }
.item-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); font-size: 12px; font-weight: 600; }
.item-chip:hover { border-color: var(--brass); }
.item-chip img { width: 22px; height: 22px; padding: 2px; border-radius: 50%; object-fit: contain; }
.item-history { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.item-history > li > span { color: var(--brass-hi); font-family: var(--mono); font-size: 11px; }
.item-history ul { margin: 2px 0 0; padding-left: 18px; }
.item-history ul li { color: var(--muted); font-size: 12px; }
.item-history li.t-buff { color: #c9e5bf; }
.item-history li.t-buff::marker { color: var(--good); content: "▲  "; font-size: 9px; }
.item-history li.t-nerf { color: #f0c3ba; }
.item-history li.t-nerf::marker { color: var(--bad); content: "▼  "; font-size: 9px; }
.text-link { display: inline-block; margin-top: 10px; color: var(--brass-hi); font-size: 12px; }

.history-list { display: grid; gap: 10px; }
.history-patch { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.history-date { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 0; border: 0; background: none; text-align: left; }
.history-date b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--brass-hi); }
.history-date span { color: var(--dim); font-size: 12px; }
.history-date:hover span { color: var(--text); text-decoration: underline; }

.objectives-page { --o-haunts: #5fc7b8; --o-sinners: var(--amber); --o-urn: var(--brass-hi); --o-rift: var(--spirit); --o-walkers: var(--bad); --o-midboss: var(--vitality); }
.objective-tabs { flex-wrap: wrap; }
.objective-tabs button.has-news::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--bad); vertical-align: middle; }
.objectives-page .tab-panel[hidden] { display: none; }
.timeline-card { padding: 18px 20px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.timeline-axis, .timeline-track { position: relative; }
.timeline-axis { height: 18px; margin-left: 240px; color: var(--dim); font-family: var(--mono); font-size: 11px; }
.timeline-axis span { position: absolute; top: 0; transform: translateX(-50%); }
.timeline-axis span:first-child { transform: none; }
.timeline-axis span:last-child { transform: translateX(-100%); }
.timeline-rows { margin: 0; padding: 0; list-style: none; }
.timeline-rows li { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; min-height: 46px; border-top: 1px solid var(--line); }
.timeline-rows li > button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 12px 6px 0; border: 0; background: none; color: var(--text); text-align: left; }
.timeline-rows li > button b { font-size: 14px; }
.timeline-rows li > button small { color: var(--dim); font-size: 11px; }
.timeline-rows li > button:hover b { color: var(--brass-hi); }
.timeline-track { height: 100%; min-height: 46px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 12.5%); }
.timeline-track .mark { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 0 3px rgba(12, 11, 9, .9); transform: translate(-50%, -50%); }
.timeline-track .mark.fuzzy { width: 30px; border-radius: 6px; opacity: .85; }
.mark.haunts { background: var(--o-haunts); }
.mark.sinners { background: var(--o-sinners); }
.mark.urn { background: var(--o-urn); }
.mark.rift { background: var(--o-rift); }
.mark.walkers { background: var(--o-walkers); }
.mark.midboss { background: var(--o-midboss); }
.objective-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.summary-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--card-color, var(--brass)); border-radius: 10px; background: var(--panel); color: var(--text); text-align: left; }
.summary-card b { font-family: var(--display); font-size: 22px; letter-spacing: .01em; }
.summary-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.summary-card:hover { border-color: var(--line-strong); border-left-color: var(--card-color, var(--brass)); }
.summary-card.haunts { --card-color: var(--o-haunts); }
.summary-card.sinners { --card-color: var(--o-sinners); }
.summary-card.urn { --card-color: var(--o-urn); }
.summary-card.rift { --card-color: var(--o-rift); }
.summary-card.walkers { --card-color: var(--o-walkers); }
.summary-card.midboss { --card-color: var(--o-midboss); }
.objective-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.objective-main h2, .objective-side h3 { margin: 22px 0 10px; font-family: var(--display); font-size: 22px; letter-spacing: .01em; }
.objective-side h3 { font-size: 18px; }
.objective-side h3:first-child { margin-top: 0; }
.key-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.key-facts > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-right: 1px solid var(--line); }
.key-facts > div:last-child { border-right: 0; }
.key-facts span { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.key-facts b { color: var(--brass-hi); font-size: 16px; }
.key-facts small { color: var(--muted); font-size: 12px; }
.guide-list { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.guide-list li { color: var(--muted); font-size: 14px; line-height: 1.55; }
.guide-list li b { color: var(--text); }
.guide-list.tips li::marker { color: var(--brass); }
.guide-table td { font-size: 13px; }
.guide-table td:not(:first-child) { white-space: nowrap; }
.guide-table td:last-child { white-space: normal; }
.guide-table:has(thead.text-cols) th, .guide-table:has(thead.text-cols) td { text-align: left; }
.objective-side .table-note { margin: 8px 0 0; }
.minute-calc { display: grid; grid-template-columns: 170px minmax(0, 1fr); margin-top: 12px; border: 1px solid rgba(228, 178, 92, .28); border-radius: 12px; background: linear-gradient(90deg, rgba(228, 178, 92, .07), transparent 60%), var(--panel); }
.minute-calc-slider { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 14px; border-right: 1px solid var(--line); }
.minute-calc-slider span, .minute-calc-values span { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.minute-calc-slider output { color: var(--brass-hi); font-family: var(--display); font-size: 28px; line-height: 1; }
.minute-calc-slider input { width: 100%; accent-color: var(--brass); }
.minute-calc-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.minute-calc-values > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-right: 1px solid var(--line); }
.minute-calc-values > div:last-child { border-right: 0; }
.minute-calc-values b { color: var(--text); font-size: 18px; }
.minute-calc-values small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.objective-changes { display: grid; gap: 10px; }
.objective-change { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.objective-change.is-new { border-color: rgba(234, 122, 104, .5); }
.objective-change header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.objective-change header a { color: var(--brass-hi); font-family: var(--mono); font-size: 12px; }
.objective-change .kind-tag { padding: 2px 6px; border-radius: 4px; background: rgba(234, 122, 104, .18); color: var(--bad); }
.objective-change ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.objective-change li { color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 1100px) {
  .compare-layout, .economy-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-focus { position: static; max-height: none; }
  .rank-list { max-height: 60vh; }
  .patch-layout { grid-template-columns: 220px minmax(0, 1fr); }
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .item-detail { position: static; max-height: none; }
  .pulse-grid, .draft-analysis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whats-new { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whats-new .patch-card { grid-column: 1 / -1; }
  .objective-layout { grid-template-columns: minmax(0, 1fr); }
  .objective-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-meta { width: 180px; }
  .filter-dock { grid-template-columns: 1fr auto; }
  .archive-layout { grid-template-columns: 1fr; }
  .week-history { position: static; }
  .week-history-list { max-height: 300px; }
  .sheet-header { grid-template-columns: 100px minmax(0, 1fr); }
  .sheet-portrait { width: 100px; height: 134px; }
  .copy-button { grid-column: 1 / -1; margin-right: 0; flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 440px) {
  .wordmark b { display: none; }
}
@media (max-width: 760px) {
  .live-status span { display: none; }
  .site-nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .rank-row { grid-template-columns: 22px minmax(96px, 120px) minmax(0, 1fr) 60px; gap: 8px; padding: 4px; }
  .focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav a { padding: 8px; font-size: 12px; white-space: nowrap; }
  .wordmark b { font-size: 15px; white-space: nowrap; }
  .page-bar { padding-top: 18px; }
  .page-tabs, .patch-tools { width: 100%; }
  .history-patch { grid-template-columns: 1fr; gap: 8px; }
  .patch-layout { grid-template-columns: minmax(0, 1fr); }
  .patch-sidebar { position: static; }
  .change-row { grid-template-columns: minmax(0, 1fr); }
  .row-head { padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .row-name { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hero-launch { flex-direction: column; align-items: flex-start; }
  .launch-face { width: 72px; height: 96px; }
  .post-body { padding: 14px; }
  .patch-list { max-height: 230px; }
  .shop-grid { grid-auto-flow: row; grid-auto-columns: auto; }
  .tier-items { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
  .slot-tabs button { padding: 0 12px; font-size: 16px; }
  .header-meta { margin-left: auto; width: 62px; }
  .masthead { align-items: flex-start; flex-direction: column; }
  .pulse-grid, .draft-analysis { grid-template-columns: 1fr; }
  .whats-new { grid-template-columns: minmax(0, 1fr); }
  .objective-tabs { flex-wrap: nowrap; }
  .objective-summary { grid-template-columns: minmax(0, 1fr); }
  .key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minute-calc { grid-template-columns: minmax(0, 1fr); }
  .minute-calc-slider { border-right: 0; border-bottom: 1px solid var(--line); }
  .minute-calc-values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .minute-calc-values > div { border-bottom: 1px solid var(--line); }
  .key-facts > div:nth-child(2) { border-right: 0; }
  .key-facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timeline-card { padding: 12px; }
  .timeline-axis { margin-left: 112px; font-size: 10px; }
  .timeline-axis span:nth-child(even) { display: none; }
  .timeline-rows li { grid-template-columns: 112px minmax(0, 1fr); }
  .timeline-rows li > button small { display: none; }
  .timeline-rows li > button b { font-size: 12px; }
  .timeline-track .mark { width: 9px; height: 9px; }
  .timeline-track .mark.fuzzy { width: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .segmented { max-width: 100%; overflow-x: auto; }
  .filter-dock { position: static; grid-template-columns: 1fr 1fr; }
  .search-control, .filter-set { grid-column: 1 / -1; }
  .filter-chip { flex: 1; }
  .week-summary { grid-template-columns: repeat(3, 1fr); }
  .week-summary > div:nth-child(3) { border-right: 0; }
  .week-summary > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .match-card summary { grid-template-columns: 44px 1fr; }
  .match-meta, .match-open { grid-column: 2; }
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .modal-backdrop { padding: 0; }
  .build-sheet { border-radius: 0; }
  .sheet-header, .sheet-block, .sheet-description { padding-left: 16px; padding-right: 16px; }
  .sheet-header { grid-template-columns: 72px minmax(0, 1fr); padding-top: 56px; gap: 14px; }
  .sheet-portrait { width: 72px; height: 96px; }
  .item-group { grid-template-columns: 1fr; gap: 10px; }
  .item-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .skill-grid tbody th, .skill-grid tfoot th, .skill-grid thead th:first-child { min-width: 64px; padding: 0 8px; }
  .skill-name b, .skill-name small { display: none; }
}

/* Night Shift item analysis and players to watch */
.pro-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.pro-filters .select-control { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.pro-filters .select-control select { max-width: 190px; color: var(--text); }
.enemy-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.enemy-chips:empty { display: none; }
.enemy-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 3px 10px 3px 4px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--text); font-size: 12px; font-weight: 600; }
.enemy-chip img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.enemy-chip i { color: var(--dim); font-style: normal; font-size: 15px; }
.enemy-chip:hover { border-color: var(--bad); }
.enemy-chip:hover i { color: var(--bad); }
.pro-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.pro-summary:empty { display: none; }
.pro-summary > div { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.pro-summary span { color: var(--dim); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.pro-summary b { font-family: var(--display); font-size: 26px; line-height: 1.1; }
.pro-summary small { color: var(--muted); font-size: 12px; }
.shift-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; margin-bottom: 14px; }
.shift-grid:empty { display: none; }
.shift-column { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.shift-column h3 { margin: 0 0 4px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.shift-column.hint p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.shift-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; padding: 7px 8px; border-radius: 8px; background: rgba(255, 255, 255, .02); }
.shift-card strong { font-family: var(--mono); font-size: 14px; }
.shift-card small { grid-column: 1 / -1; color: var(--dim); font-size: 11px; }
.pro-item { --slot: var(--dim); display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.pro-item.weapon { --slot: var(--weapon); }
.pro-item.vitality { --slot: var(--vitality); }
.pro-item.spirit { --slot: var(--spirit); }
.pro-item img { width: 28px; height: 28px; flex: none; padding: 3px; border: 1px solid var(--slot); border-radius: 6px; background: color-mix(in srgb, var(--slot) 18%, transparent); object-fit: contain; }
.pro-item b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pro-item em { font-family: var(--mono); font-size: 11px; font-style: normal; }
.counter-items { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.counter-hero { padding: 0; border: 0; background: none; color: var(--text); text-align: left; }
.counter-hero:hover b { color: var(--brass-hi); }
.counter-hero img { width: 32px; height: 32px; }
.watch-search { flex: 1 1 240px; padding: 0; border: 0; }
.watch-table th, .watch-table td, .counter-table th:last-child, .counter-table td:last-child { text-align: left; }
.watch-table td.num, .watch-table th:first-child { width: 70px; }
.watch-table tr.featured td:first-child { box-shadow: inset 3px 0 0 var(--brass); }
.watch-table small.sub { display: block; color: var(--dim); font-size: 11px; }
.watch-table small.sub.good { color: var(--good); }
.watch-table small.sub.bad { color: var(--bad); }
.watch-player { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.watch-player > span:last-child { display: flex; flex-direction: column; }
.watch-player small { color: var(--dim); font-size: 11px; }
.watch-player small.watch-team { color: var(--brass); }
.watch-heroes { display: flex; flex: none; width: 82px; }
.watch-heroes img { width: 28px; height: 28px; margin-right: -4px; border: 2px solid var(--bg); border-radius: 50%; object-fit: cover; }
.social-links { display: flex; flex-wrap: wrap; gap: 5px; }
.social-links.compact { margin-top: 3px; gap: 4px; }
.social { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.social small { color: var(--dim); font-size: 10px; font-weight: 400; }
.social.twitch { border-color: rgba(169, 112, 255, .45); }
.social.twitch:hover { background: rgba(169, 112, 255, .16); }
.social.youtube { border-color: rgba(255, 78, 69, .45); }
.social.youtube:hover { background: rgba(255, 78, 69, .14); }
.social.x:hover { background: rgba(255, 255, 255, .08); }
.social-links.compact .social { min-height: 20px; padding: 0 6px; font-size: 10px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(143, 207, 122, .18); }
.live-pill img { width: 22px; height: 22px; border-radius: 5px; object-fit: cover; }
@media (max-width: 760px) {
  .pro-filters { gap: 8px; }
  .pro-filters .segmented { max-width: 100%; overflow-x: auto; }
  .pro-filters .select-control { flex: 1 1 calc(50% - 8px); }
  .pro-filters .select-control select { max-width: none; width: 100%; }
  .shift-grid { grid-template-columns: 1fr; }
  .pro-summary { grid-template-columns: 1fr 1fr; }
  .pro-summary > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pro-summary b { font-size: 22px; }
  .watch-player { min-width: 180px; }
  .watch-heroes { width: 58px; }
  .watch-heroes img { width: 22px; height: 22px; }
  #watchRegion { max-width: 100%; overflow-x: auto; }
}