@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/archivo-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/static/fonts/archivo-medium.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/archivo-semibold.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo Expanded";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/static/fonts/archivo-expanded-bold.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo Expanded";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/static/fonts/archivo-expanded-extrabold.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo Expanded";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/static/fonts/archivo-expanded-black.woff2") format("woff2");
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-mono-semibold-latin.woff2") format("woff2");
}

:root {
  --background: #0d0e12;
  --panel: #171922;
  --raised: #1f222d;
  --border: #2a2e3b;
  --text: #f2f4f8;
  --dim: #8e96a8;
  --muted-strong: #596174;
  --accent: #ffc800;
  --own: #4a9eff;
  --enemy: #e8433f;
  --positive: #3ecf8e;
  --page-width: 1500px;
  --page-gutter: 24px;
  --font-body: "Archivo", sans-serif;
  --font-display: "Archivo Expanded", sans-serif;
  --font-replay: "IBM Plex Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(120deg, rgb(74 158 255 / 0.05), transparent 34%),
    linear-gradient(300deg, rgb(255 200 0 / 0.035), transparent 28%),
    var(--background);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  font-synthesis: none;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgb(242 244 248 / 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgb(242 244 248 / 0.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  color: var(--background);
  background: var(--accent);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: var(--background);
  background: var(--accent);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.masthead {
  display: flex;
  width: min(100%, calc(var(--page-width) + 2 * var(--page-gutter)));
  min-height: 64px;
  margin: 0 auto;
  padding: 10px var(--page-gutter);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgb(13 14 18 / 0.88);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 44px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--background);
  background: var(--accent);
  clip-path: polygon(0 0, 36px 0, 44px 8px, 44px 34px, 8px 34px, 0 26px);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -1px;
}

.wordmark-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.wordmark:hover .wordmark-title {
  color: var(--accent);
}

.refresh-status {
  display: inline-flex;
  padding: 7px 10px;
  align-items: center;
  gap: 8px;
  color: var(--dim);
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.refresh-status strong {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.status-lamp {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--positive);
  box-shadow: 0 0 0 3px rgb(62 207 142 / 0.12);
}

.refresh-status--disabled .status-lamp {
  background: var(--dim);
  box-shadow: 0 0 0 3px rgb(142 150 168 / 0.12);
}

.refresh-status--failed .status-lamp {
  background: var(--enemy);
  box-shadow: 0 0 0 3px rgb(232 67 63 / 0.12);
}

.refresh-status--running .status-lamp {
  animation: status-pulse 1.2s ease-in-out infinite;
}

main {
  width: min(100%, calc(var(--page-width) + 2 * var(--page-gutter)));
  min-height: calc(100vh - 128px);
  margin: 0 auto;
  padding: 22px var(--page-gutter) 48px;
}

h1,
h2,
h3,
p,
figure,
dl {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 {
  margin-bottom: 10px;
  font-size: 40px;
  letter-spacing: -1.5px;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
  letter-spacing: -1px;
}

h3 {
  font-size: 20px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.lede {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--dim);
  font-size: 16px;
}

.catalogue-header {
  position: relative;
  display: flex;
  margin-bottom: 20px;
  padding: 20px 24px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(105deg, var(--raised), var(--panel));
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
}

.catalogue-header::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0;
  height: 0;
  content: "";
  border-top: 24px solid var(--background);
  border-left: 24px solid transparent;
}

.catalogue-counts {
  display: grid;
  min-width: 260px;
  margin: 0;
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  background: var(--background);
  border: 1px solid var(--border);
}

.catalogue-counts > div {
  padding: 10px 14px;
  border-right: 1px solid var(--border);
}

.catalogue-counts > div:last-child {
  border-right: 0;
}

dt {
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.6px;
  line-height: 1.2;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  font-variant-numeric: tabular-nums;
}

.catalogue-counts dd {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.methodology-banner {
  position: relative;
  display: flex;
  min-width: 0;
  margin-bottom: 20px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(100deg, rgb(255 200 0 / 0.1), transparent 54%),
    var(--panel);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.methodology-banner::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  content: "";
  background: linear-gradient(45deg, transparent 48%, var(--background) 50%);
}

.methodology-banner:hover {
  color: var(--text);
  background:
    linear-gradient(100deg, rgb(255 200 0 / 0.16), transparent 62%),
    var(--raised);
  border-color: var(--muted-strong);
  border-left-color: var(--accent);
}

.methodology-banner__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.methodology-banner__copy .eyebrow {
  margin-bottom: 3px;
}

.methodology-banner__copy > strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.methodology-banner__copy > span:last-child {
  margin-top: 3px;
  color: var(--dim);
  font-size: 14px;
}

.methodology-banner__steps {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.methodology-banner__steps b {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--accent);
  background: var(--background);
  border: 1px solid var(--border);
  font-family: var(--font-replay);
  font-size: 12px;
}

.methodology-banner__steps i {
  margin-left: 6px;
  color: var(--accent);
  font-size: 20px;
  font-style: normal;
}

.rank-filter {
  margin-bottom: 20px;
  padding: 12px 14px 14px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.rank-filter__heading {
  display: flex;
  margin-bottom: 10px;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.rank-filter__label {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.2;
  text-transform: uppercase;
}

.rank-filter__summary {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
}

.rank-filter__summary strong {
  color: var(--text);
  font-weight: 700;
}

.rank-filter__options {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.rank-filter__chip {
  display: flex;
  min-width: 0;
  min-height: 96px;
  padding: 6px 6px 10px;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  gap: 3px;
  color: var(--dim);
  background: var(--background);
  border: 1px solid var(--border);
  text-decoration: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.rank-filter__chip:hover {
  color: var(--text);
  background: var(--raised);
  border-color: var(--muted-strong);
}

.rank-filter__chip--excluded {
  color: var(--dim);
}

.rank-filter__chip--excluded .rank-filter__crest {
  filter: grayscale(1) brightness(0.58) contrast(0.92);
}

.rank-filter__chip--excluded:hover {
  color: var(--text);
}

.rank-filter__chip--excluded:hover .rank-filter__crest {
  filter: drop-shadow(0 4px 5px rgb(0 0 0 / 0.5));
}

/* Minimum-rank semantics: the chosen tier and every tier above it are in
   the filter, so the whole included range carries the same active styling. */
.rank-filter__chip--included,
.rank-filter__chip[aria-current="true"] {
  color: var(--accent);
  background:
    linear-gradient(180deg, rgb(255 200 0 / 0.1), transparent 65%),
    var(--raised);
  border-color: rgb(255 200 0 / 0.62);
  box-shadow:
    inset 0 -4px 0 var(--accent),
    inset 0 0 0 1px rgb(255 200 0 / 0.14),
    0 0 18px rgb(255 200 0 / 0.08);
}

.rank-filter__crest {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px rgb(0 0 0 / 0.5));
}

.rank-filter__chip--included .rank-filter__crest,
.rank-filter__chip[aria-current="true"] .rank-filter__crest {
  filter:
    drop-shadow(0 4px 5px rgb(0 0 0 / 0.5))
    drop-shadow(0 0 7px rgb(255 200 0 / 0.25));
}

.rank-filter__all-mark {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  margin: 3px;
  place-items: center;
  color: var(--text);
  background:
    linear-gradient(135deg, var(--accent) 0 3px, transparent 3px) top left / 14px 14px no-repeat,
    linear-gradient(315deg, var(--muted-strong) 0 3px, transparent 3px) bottom right / 14px 14px no-repeat,
    var(--raised);
  border: 1px solid var(--muted-strong);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.rank-filter__all-mark::before,
.rank-filter__all-mark::after {
  position: absolute;
  right: 9px;
  left: 9px;
  height: 1px;
  content: "";
  background: var(--border);
}

.rank-filter__all-mark::before {
  top: 10px;
}

.rank-filter__all-mark::after {
  bottom: 10px;
}

.rank-filter__all-mark span {
  position: relative;
  z-index: 1;
}

.rank-filter__name {
  max-width: 100%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.section-heading {
  display: flex;
  margin-bottom: 12px;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.section-heading h2 {
  padding-bottom: 9px;
  border-bottom: 3px solid var(--accent);
}

.section-heading p {
  margin: 0 0 10px;
  color: var(--dim);
  font-size: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 10px;
}

.hero-card {
  --card-state: var(--dim);
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  color: var(--text);
  background: var(--raised);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  text-decoration: none;
  transition: background-color 140ms ease, transform 140ms ease;
}

.hero-card--strong {
  --card-state: var(--positive);
}

.hero-card--some {
  --card-state: var(--accent);
}

.hero-card--empty {
  --card-state: #70798b;
  color: #d5d9e2;
  background: #15171e;
}

.hero-card--empty .hero-card__portrait {
  background: #111319;
}

.hero-card--empty .hero-card__portrait img {
  filter: grayscale(1) brightness(0.58) contrast(0.92);
}

.hero-card--empty .hero-card__replays b {
  color: #aeb5c3;
}

.hero-card--empty:hover {
  color: var(--text);
  background: #1b1e27;
}

.hero-card::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 14px;
  left: 0;
  height: 3px;
  content: "";
  background: var(--card-state);
}

.hero-card:hover {
  color: var(--text);
  background: #252936;
  transform: translateY(-2px);
}

.hero-card__portrait {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.hero-card__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 180ms ease;
}

.hero-card:hover .hero-card__portrait img {
  transform: scale(1.035);
}

.hero-card__body {
  display: flex;
  min-height: 106px;
  padding: 10px;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
}

.hero-card__name {
  display: block;
  min-height: 34px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-card__replays {
  display: block;
  margin: 4px 0 8px;
  color: var(--dim);
  font-size: 12px;
}

.hero-card__replays b {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.confidence-badge {
  display: inline-block;
  max-width: 100%;
  margin-top: auto;
  padding: 4px 12px 4px 7px;
  color: var(--dim);
  background: rgb(142 150 168 / 0.1);
  border-left: 3px solid var(--dim);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

.confidence-badge--strong {
  color: var(--positive);
  background: rgb(62 207 142 / 0.1);
  border-left-color: var(--positive);
}

.confidence-badge--some {
  color: var(--accent);
  background: rgb(255 200 0 / 0.08);
  border-left-color: var(--accent);
}

.breadcrumbs {
  display: flex;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.breadcrumbs a {
  text-decoration: none;
}

.hero-banner,
.board-hero {
  position: relative;
  display: grid;
  margin-bottom: 20px;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  background: linear-gradient(110deg, var(--raised), var(--panel));
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
}

.hero-banner::after,
.board-hero::after {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  width: 160px;
  height: 100%;
  pointer-events: none;
  content: "";
  background: linear-gradient(125deg, transparent 50%, rgb(255 200 0 / 0.05) 50%);
}

.hero-banner__portrait,
.board-hero__portrait {
  width: 180px;
  height: 180px;
  background: var(--background);
  border-right: 1px solid var(--border);
}

.hero-banner__portrait img,
.board-hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-banner--full {
  display: block;
  min-height: 320px;
  isolation: isolate;
  background:
    radial-gradient(circle at 84% 28%, rgb(74 158 255 / 0.13), transparent 26%),
    linear-gradient(110deg, var(--raised), var(--panel));
}

.hero-banner--full::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, rgb(13 14 18 / 0.58), transparent 68%),
    linear-gradient(
      90deg,
      rgb(13 14 18 / 0.98) 0%,
      rgb(13 14 18 / 0.96) 36%,
      rgb(13 14 18 / 0.9) 58%,
      rgb(13 14 18 / 0.48) 78%,
      rgb(13 14 18 / 0.12) 100%
    );
}

.hero-banner__art {
  position: absolute;
  z-index: 0;
  top: -24px;
  right: -12px;
  width: clamp(520px, 54vw, 760px);
  height: auto;
  max-width: 900px;
  max-height: 900px;
  object-fit: contain;
  object-position: top right;
  pointer-events: none;
  user-select: none;
}

.hero-banner__copy {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  padding: 22px 26px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.hero-banner--full .hero-banner__copy {
  width: min(64%, 780px);
  min-height: 320px;
  padding: 36px 40px;
  justify-content: flex-end;
}

.hero-banner--full h1 {
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.86);
}

.hero-banner--full .confidence-badge {
  background: rgb(13 14 18 / 0.82);
}

.hero-banner h1 {
  max-width: 100%;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.hero-banner .confidence-badge {
  margin-top: 0;
}

.records {
  min-width: 0;
}

.replay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.replay-card {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: stretch;
  background: var(--panel);
  border: 1px solid var(--border);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.replay-card__portrait {
  position: relative;
  min-height: 100%;
  background: var(--raised);
  border-right: 1px solid var(--border);
}

.replay-card__portrait img {
  width: 136px;
  height: 136px;
  object-fit: contain;
  object-position: center top;
}

.result-badge {
  display: inline-block;
  padding: 5px 13px 5px 8px;
  color: var(--text);
  background: var(--enemy);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
}

.result-badge--win {
  background: var(--positive);
}

.replay-card__portrait .result-badge {
  position: absolute;
  top: 146px;
  left: 10px;
}

.replay-card__body {
  min-width: 0;
  padding: 12px 14px 14px;
}

.copy-control {
  position: relative;
  display: flex;
  min-width: 0;
  margin-bottom: 10px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.replay-id {
  min-width: 0;
  color: var(--accent);
  background: none;
  font-family: var(--font-replay);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.copy-button {
  min-height: 34px;
  padding: 8px 14px 8px 10px;
  color: var(--background);
  background: var(--accent);
  border: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}

.copy-button:hover,
.copy-button.is-copied {
  color: var(--text);
  background: var(--positive);
}

.copy-button.is-error {
  color: var(--text);
  background: var(--enemy);
}

.replay-card.is-seen > .replay-card__portrait,
.replay-card.is-seen > .replay-card__body,
.board-hero .copy-control.is-seen > :not(.seen-toggle) {
  filter: grayscale(1) brightness(0.78) contrast(0.92);
}

.seen-toggle {
  position: absolute;
  z-index: 4;
  padding: 5px 9px;
  color: var(--background);
  background: var(--accent);
  border: 0;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 0 100%);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.seen-toggle[hidden] {
  display: none;
}

.seen-toggle:hover {
  background: var(--text);
}

.replay-card > .seen-toggle {
  top: 10px;
  left: 10px;
}

.copy-control > .seen-toggle {
  top: 0;
  right: 0;
}

.replay-meta {
  display: grid;
  margin: 0 0 10px;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  background: var(--raised);
  border: 1px solid var(--border);
}

.replay-meta li {
  min-width: 0;
  padding: 7px 8px;
  border-right: 1px solid var(--border);
}

.replay-meta li:last-child {
  border-right: 0;
}

.replay-meta span {
  display: block;
  margin-bottom: 2px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.replay-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.replay-evidence {
  min-width: 0;
  margin-bottom: 12px;
}

.evidence-ratings {
  display: grid;
  margin: 0 0 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--raised);
  border: 1px solid var(--border);
}

.evidence-ratings > div {
  display: flex;
  min-width: 0;
  padding: 9px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 5px;
  border-right: 1px solid var(--border);
}

.evidence-ratings > div:last-child {
  border-right: 0;
}

.evidence-ratings > div > span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.score-band {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  align-items: center;
  color: var(--text);
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.2px;
  line-height: 1.2;
  text-transform: uppercase;
}

.score-band--poor,
.score-band--below-average {
  color: var(--enemy);
}

.score-band--average {
  color: var(--dim);
}

.score-band--good {
  color: var(--own);
}

.score-band--great {
  color: var(--positive);
}

.stint-summary,
.teammate-summary {
  margin: 0 0 7px;
  font-size: 14px;
}

.stint-summary {
  color: var(--accent);
  font-weight: 600;
}

.teammate-breakdown {
  border-top: 1px solid var(--border);
}

.teammate-breakdown summary {
  width: fit-content;
  padding: 8px 0 3px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.teammate-breakdown ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
}

.teammate-breakdown li {
  display: flex;
  min-width: 0;
  padding: 7px 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--raised);
  border-bottom: 1px solid var(--border);
}

.teammate-breakdown li:last-child {
  border-bottom: 0;
}

.teammate-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.teammate-identity strong,
.teammate-identity small {
  overflow-wrap: anywhere;
}

.teammate-identity small {
  color: var(--dim);
  font-size: 12px;
}

.board-link {
  display: inline-flex;
  padding-bottom: 3px;
  align-items: center;
  gap: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
}

.empty-state {
  min-height: 160px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
}

.empty-state p {
  max-width: 760px;
  margin: 0;
  font-size: 20px;
}

.board-hero {
  grid-template-columns: 180px minmax(0, 1fr);
}

.board-hero__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 16px 22px;
}

.board-hero__title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.board-hero h1 {
  margin-bottom: 8px;
}

.board-hero .copy-control {
  margin-bottom: 10px;
}

.board-hero .replay-id {
  font-size: 28px;
  letter-spacing: -1px;
}

.board-hero .replay-meta {
  max-width: 700px;
  margin-bottom: 0;
}

.board-evidence {
  margin-bottom: 22px;
  padding: 16px;
  background: var(--raised);
  border: 1px solid var(--border);
}

.board-evidence h2 {
  margin-bottom: 12px;
  font-size: 20px;
}

.board-evidence .replay-evidence {
  margin-bottom: 0;
}

.full-board {
  min-width: 0;
}

.team-board {
  --side-color: var(--dim);
  margin-bottom: 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 3px solid var(--side-color);
}

.team-board--own {
  --side-color: var(--own);
}

.team-board--enemy {
  --side-color: var(--enemy);
}

.team-board > header {
  display: flex;
  min-height: 58px;
  padding: 9px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--raised);
  border-bottom: 1px solid var(--border);
}

.team-board h3 {
  margin: 0;
  color: var(--side-color);
  font-size: 20px;
}

.team-board > header dl {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 24px;
}

.team-board > header dd {
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}

.table-scroll {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--accent) var(--raised);
}

.board-table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.board-table thead th {
  padding: 7px 9px;
  color: var(--dim);
  background: var(--panel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.2;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.board-table tbody th,
.board-table tbody td {
  height: 52px;
  padding: 4px 9px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.board-table tbody tr:last-child th,
.board-table tbody tr:last-child td {
  border-bottom: 0;
}

.board-table tbody th {
  min-width: 230px;
  font-weight: 600;
}

.board-table tbody td {
  color: var(--text);
  white-space: nowrap;
}

.board-table tbody td:nth-child(2) {
  min-width: 150px;
  color: var(--dim);
}

.board-table .target-row {
  background:
    linear-gradient(90deg, rgb(255 200 0 / 0.18), rgb(255 200 0 / 0.06) 52%, transparent),
    var(--raised);
  box-shadow:
    inset 0 1px 0 rgb(255 200 0 / 0.58),
    inset 0 -1px 0 rgb(255 200 0 / 0.58);
}

.board-table .target-row > :first-child {
  border-left: 5px solid var(--accent);
}

.board-table .target-row td:nth-child(2) {
  color: var(--text);
}

.board-player {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.board-player > img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
  object-position: center bottom;
  background: var(--raised);
  border: 1px solid var(--border);
}

.board-player__identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
}

.board-player__identity > strong {
  max-width: 160px;
  font-size: 14px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.target-mark,
.honour-mark {
  display: inline-block;
  margin-right: 3px;
  padding: 2px 5px;
  color: var(--background);
  background: var(--accent);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.target-mark {
  padding-right: 8px;
  padding-left: 8px;
  letter-spacing: 0.35px;
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 0 100%);
}

.honour-mark {
  color: var(--text);
  background: var(--muted-strong);
}

.team-board--enemy .board-table thead th {
  border-top-color: var(--enemy);
}

.method-hero {
  position: relative;
  display: grid;
  margin-bottom: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 18%, rgb(74 158 255 / 0.13), transparent 28%),
    linear-gradient(110deg, var(--raised), var(--panel));
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
}

.method-hero::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 100%;
  pointer-events: none;
  content: "";
  background: linear-gradient(125deg, transparent 50%, rgb(255 200 0 / 0.05) 50%);
}

.method-hero__copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 30px 34px;
}

.method-hero__copy h1 {
  max-width: 850px;
}

.method-hero__copy .lede {
  max-width: 780px;
}

.method-hero__steps {
  position: relative;
  z-index: 1;
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 18px;
  align-self: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  background: rgb(13 14 18 / 0.42);
  border-left: 1px solid var(--border);
}

.method-hero__steps li {
  display: flex;
  min-width: 0;
  padding: 12px 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  text-align: center;
  background: var(--background);
  border: 1px solid var(--border);
}

.method-hero__steps span {
  color: var(--accent);
  font-family: var(--font-replay);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.method-hero__steps strong {
  font-size: 12px;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.method-questions {
  display: grid;
  gap: 16px;
}

.method-question {
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--border);
}

.method-question__header {
  display: grid;
  min-width: 0;
  padding: 16px 20px;
  align-items: center;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  background: var(--raised);
  border-bottom: 1px solid var(--border);
}

.method-question__header .eyebrow {
  margin-bottom: 5px;
}

.method-question__number {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--background);
  background: var(--accent);
  clip-path: polygon(0 0, 51px 0, 64px 13px, 64px 64px, 13px 64px, 0 51px);
  font-family: var(--font-replay);
  font-size: 28px;
  font-weight: 600;
}

.method-question__body {
  min-width: 0;
  padding: 22px;
}

.method-question__lead {
  max-width: 980px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 20px;
  line-height: 1.35;
}

.hero-job-grid {
  display: grid;
  min-width: 0;
  margin-bottom: 12px;
  grid-template-columns: 2fr repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-job {
  position: relative;
  min-width: 0;
  min-height: 190px;
  padding: 18px;
  overflow: hidden;
  background: var(--raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--muted-strong);
}

.hero-job--featured {
  display: grid;
  padding: 0;
  grid-template-columns: 150px minmax(0, 1fr);
  border-top-color: var(--accent);
}

.hero-job__portrait {
  min-height: 100%;
  background:
    linear-gradient(0deg, rgb(13 14 18 / 0.32), transparent 62%),
    var(--background);
  border-right: 1px solid var(--border);
}

.hero-job__portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-job__copy {
  min-width: 0;
  padding: 18px;
}

.hero-job > p:first-of-type,
.hero-job__copy > p:first-child {
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-job h3 {
  margin-bottom: 9px;
}

.hero-job p:last-child {
  margin-bottom: 0;
  color: var(--dim);
  font-size: 14px;
}

.hero-job__mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  place-items: center;
  color: var(--background);
  background: var(--positive);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
}

.hero-job__mark--tank {
  background: var(--own);
  clip-path: polygon(50% 0, 92% 16%, 84% 70%, 50% 100%, 16% 70%, 8% 16%);
}

.plain-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plain-rule {
  min-width: 0;
  padding: 13px 15px;
  background: var(--background);
  border: 1px solid var(--border);
  border-left: 4px solid var(--own);
}

.plain-rule:last-child {
  border-left-color: var(--accent);
}

.plain-rule > strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.plain-rule p {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
}

.team-check-grid {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.team-check {
  min-width: 0;
  padding: 18px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--own);
}

.team-check--ratings {
  border-top-color: var(--accent);
}

.team-check__label {
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.team-check h3 {
  margin-bottom: 14px;
}

.team-check > p:not(.team-check__label) {
  margin-bottom: 8px;
  color: var(--dim);
}

.team-check > p:last-child {
  margin-bottom: 0;
}

.team-check > p strong {
  color: var(--text);
}

.fight-rule {
  display: grid;
  margin-bottom: 14px;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
  background: var(--background);
  border: 1px solid var(--border);
}

.fight-rule span {
  display: grid;
  min-width: 0;
  min-height: 54px;
  padding: 8px;
  place-items: center;
  color: var(--own);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.fight-rule span:last-child {
  color: var(--enemy);
}

.fight-rule b {
  display: grid;
  place-items: center;
  color: var(--text);
  background: var(--panel);
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  font-family: var(--font-replay);
  font-size: 20px;
}

.five-ratings {
  display: grid;
  margin-bottom: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.five-ratings span {
  display: grid;
  min-width: 0;
  min-height: 54px;
  padding: 5px;
  place-items: center;
  color: var(--enemy);
  background: var(--background);
  border: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.five-ratings span:nth-child(4) {
  color: var(--dim);
}

.featured-exclusion {
  display: flex;
  min-width: 0;
  padding: 13px 15px;
  align-items: center;
  gap: 14px;
  background: rgb(255 200 0 / 0.07);
  border: 1px solid rgb(255 200 0 / 0.34);
}

.featured-exclusion > span {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--background);
  background: var(--accent);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.featured-exclusion p {
  margin: 0;
  color: var(--dim);
}

.featured-exclusion strong {
  color: var(--text);
}

.attendance-grid {
  display: grid;
  margin-bottom: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.attendance-rule {
  min-width: 0;
  padding: 16px;
  text-align: center;
  background: var(--raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}

.attendance-rule--competitive {
  border-top-color: var(--positive);
}

.attendance-rule span,
.attendance-rule p {
  display: block;
  margin: 0;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.attendance-rule strong {
  display: block;
  margin: 3px 0;
  color: var(--text);
  font-family: var(--font-replay);
  font-size: 40px;
  line-height: 1;
}

.time-warning {
  padding: 13px 15px;
  background: var(--background);
  border: 1px solid var(--border);
  border-left: 4px solid var(--enemy);
}

.time-warning > strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
}

.time-warning p {
  margin: 3px 0 0;
  color: var(--dim);
}

.honest-note {
  display: grid;
  min-width: 0;
  margin: 16px 0;
  padding: 20px 22px;
  align-items: center;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  background:
    linear-gradient(105deg, rgb(255 200 0 / 0.1), transparent 55%),
    var(--raised);
  border: 1px solid rgb(255 200 0 / 0.45);
  border-left: 5px solid var(--accent);
}

.honest-note__mark {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  color: var(--background);
  background: var(--accent);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
}

.honest-note h2 {
  margin-bottom: 8px;
}

.honest-note p:last-child {
  max-width: 1120px;
  margin-bottom: 0;
  color: var(--text);
  font-size: 16px;
}

.rating-guide,
.outcome-guide {
  min-width: 0;
  margin-bottom: 16px;
  padding: 20px 22px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.rating-meter {
  display: grid;
  height: 16px;
  margin: 18px 0 10px;
  grid-template-columns: 23fr 22fr 22fr 18fr 15fr;
  gap: 3px;
  background: var(--background);
}

.rating-meter span {
  min-width: 0;
}

.rating-meter__poor {
  background: var(--enemy);
}

.rating-meter__below {
  background: var(--enemy);
  opacity: 0.68;
}

.rating-meter__average {
  background: var(--dim);
}

.rating-meter__good {
  background: var(--own);
}

.rating-meter__great {
  background: var(--positive);
}

.rating-key {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}

.rating-key li {
  --rating-color: var(--dim);
  display: flex;
  min-width: 0;
  min-height: 112px;
  padding: 10px;
  flex-direction: column;
  background: var(--raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--rating-color);
}

.rating-key li.rating-key__poor {
  --rating-color: var(--enemy);
}

.rating-key li.rating-key__below {
  --rating-color: var(--enemy);
}

.rating-key li.rating-key__good {
  --rating-color: var(--own);
}

.rating-key li.rating-key__great {
  --rating-color: var(--positive);
}

.rating-key strong {
  color: var(--rating-color);
  font-size: 12px;
  letter-spacing: 0.3px;
  line-height: 1.2;
  text-transform: uppercase;
}

.rating-key b {
  margin: 3px 0;
  color: var(--text);
  font-family: var(--font-replay);
  font-size: 28px;
  line-height: 1;
}

.rating-key span {
  margin-top: auto;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.2;
}

.rating-guide__note,
.outcome-guide__note {
  margin: 12px 0 0;
  padding: 11px 13px;
  color: var(--dim);
  background: var(--background);
  border-left: 4px solid var(--accent);
}

.rating-guide__note strong,
.outcome-guide__note strong {
  color: var(--text);
}

.outcome-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.outcome-card {
  min-width: 0;
  padding: 18px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-top: 3px solid var(--enemy);
}

.outcome-card--win {
  background:
    linear-gradient(120deg, rgb(62 207 142 / 0.09), transparent 58%),
    var(--raised);
  border-top-color: var(--positive);
}

.outcome-card .result-badge {
  margin-bottom: 12px;
}

.outcome-card h3 {
  margin-bottom: 8px;
}

.outcome-card p {
  max-width: 660px;
  margin: 0;
  color: var(--dim);
}

.worked-example {
  min-width: 0;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: 5px solid var(--accent);
}

.worked-example__header {
  display: flex;
  min-width: 0;
  padding: 20px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    linear-gradient(105deg, rgb(255 200 0 / 0.08), transparent 50%),
    var(--raised);
  border-bottom: 1px solid var(--border);
}

.worked-example__match {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.worked-example__match > strong {
  font-family: var(--font-replay);
  font-size: 28px;
}

.worked-example__match code {
  color: var(--accent);
  background: var(--background);
  border: 1px solid var(--border);
  padding: 7px 9px;
  font-family: var(--font-replay);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.worked-example__featured {
  display: grid;
  min-width: 0;
  padding: 16px 22px;
  align-items: stretch;
  grid-template-columns: minmax(230px, 0.8fr) minmax(420px, 1.4fr) minmax(230px, 0.8fr);
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.worked-player {
  display: grid;
  min-width: 0;
  grid-template-columns: 96px minmax(0, 1fr);
  background: var(--raised);
  border: 1px solid var(--border);
}

.worked-player img {
  width: 96px;
  height: 96px;
  align-self: end;
  object-fit: contain;
  object-position: center bottom;
  background: var(--background);
  border-right: 1px solid var(--border);
}

.worked-player > div {
  min-width: 0;
  padding: 12px;
}

.worked-player p {
  margin-bottom: 3px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.worked-player h3 {
  margin-bottom: 7px;
}

.worked-stats {
  display: grid;
  min-width: 0;
  margin: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--raised);
  border: 1px solid var(--border);
}

.worked-stats > div {
  display: flex;
  min-width: 0;
  padding: 11px 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-right: 1px solid var(--border);
}

.worked-stats > div:last-child {
  border-right: 0;
}

.worked-stats dd {
  color: var(--text);
  font-family: var(--font-replay);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
}

.worked-ratings {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: var(--raised);
  border: 1px solid var(--border);
}

.worked-ratings > div {
  display: flex;
  min-width: 0;
  padding: 10px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--border);
}

.worked-ratings > div:last-child {
  border-right: 0;
}

.worked-ratings span {
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
}

.worked-example__callout {
  margin: 0;
  padding: 14px 22px;
  color: var(--text);
  background: rgb(255 200 0 / 0.06);
  border-bottom: 1px solid var(--border);
  font-size: 20px;
}

.worked-example__callout strong {
  color: var(--accent);
  font-family: var(--font-replay);
}

.worked-evidence-grid {
  display: grid;
  min-width: 0;
  padding: 16px 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kill-battle,
.kda-comparison {
  min-width: 0;
  margin: 0;
  padding: 18px;
  background: var(--raised);
  border: 1px solid var(--border);
}

.kill-battle h3,
.kda-comparison h3 {
  margin-bottom: 16px;
}

.kill-bar {
  margin-bottom: 13px;
}

.kill-bar > div {
  display: flex;
  margin-bottom: 5px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.kill-bar > div span {
  color: var(--own);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.kill-bar--enemy > div span {
  color: var(--enemy);
}

.kill-bar > div strong {
  color: var(--text);
  font-family: var(--font-replay);
  font-size: 20px;
}

.kill-bar__track {
  display: block;
  height: 18px;
  overflow: hidden;
  background: var(--background);
  border: 1px solid var(--border);
}

.kill-bar__track i {
  display: block;
  width: 29.333%;
  height: 100%;
  background: var(--own);
}

.kill-bar--enemy .kill-bar__track i {
  width: 100%;
  background: var(--enemy);
}

.kill-battle > p:last-child {
  margin: 16px 0 0;
  color: var(--dim);
}

.kda-comparison > p:not(.eyebrow) {
  margin-bottom: 7px;
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.kda-comparison ol {
  display: grid;
  margin: 0 0 16px;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
}

.kda-comparison li {
  min-width: 0;
  padding: 9px 4px;
  color: var(--text);
  background: var(--background);
  border: 1px solid var(--border);
  border-top: 3px solid var(--own);
  font-family: var(--font-replay);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.kda-comparison__enemy {
  display: flex;
  min-width: 0;
  padding: 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--enemy);
  background: rgb(232 67 63 / 0.08);
  border: 1px solid var(--enemy);
}

.kda-comparison__enemy span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.kda-comparison__enemy strong {
  color: var(--text);
  font-family: var(--font-replay);
  font-size: 20px;
  white-space: nowrap;
}

.worked-example__verdict {
  display: flex;
  min-width: 0;
  padding: 16px 22px 19px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--raised);
  border-top: 1px solid var(--border);
}

.worked-example__verdict p {
  margin: 0;
  font-size: 16px;
}

.worked-example__verdict p strong {
  color: var(--accent);
}

.not-found {
  min-height: 360px;
  padding: 40px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
}

.not-found h1 {
  max-width: 600px;
}

.not-found > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--dim);
  font-size: 16px;
}

.not-found .board-link {
  margin-top: 12px;
}

.site-footer {
  display: flex;
  width: min(100%, calc(var(--page-width) + 2 * var(--page-gutter)));
  margin: 0 auto;
  padding: 16px var(--page-gutter) 20px;
  justify-content: space-between;
  gap: 20px;
  color: var(--dim);
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.site-footer p {
  margin: 0;
}

@media screen and (prefers-reduced-motion: no-preference) {
  @media (any-pointer: fine), (any-pointer: coarse) {
    .reveal {
      animation: rivals-reveal 180ms cubic-bezier(0.22, 0.7, 0.25, 1) both;
      animation-delay: min(calc(var(--reveal-index, 0) * 5ms), 70ms);
    }

    @keyframes rivals-reveal {
      from {
        opacity: 0;
        transform: translateY(5px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
}

@keyframes status-pulse {
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 1120px) {
  .replay-grid {
    grid-template-columns: 1fr;
  }

  .replay-card__portrait .result-badge {
    top: 146px;
  }

  .hero-job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-job--featured {
    grid-column: 1 / -1;
  }

  .worked-example__featured {
    grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.5fr);
  }

  .worked-ratings {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --page-gutter: 16px;
  }

  .catalogue-header {
    align-items: stretch;
    flex-direction: column;
  }

  .catalogue-counts {
    min-width: 0;
  }

  .rank-filter__options {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-banner,
  .board-hero {
    grid-template-columns: 136px minmax(0, 1fr);
  }

  .hero-banner__portrait,
  .board-hero__portrait {
    width: 136px;
    height: 136px;
  }

  .hero-banner__copy {
    padding: 16px;
  }

  .hero-banner--full {
    min-height: 280px;
  }

  .hero-banner--full .hero-banner__copy {
    width: min(72%, 520px);
    min-height: 280px;
    padding: 24px;
  }

  .hero-banner h1,
  .board-hero h1 {
    font-size: 28px;
  }

  .board-hero__copy {
    padding: 12px 14px;
  }

  .board-hero .copy-control {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .team-board > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .team-board > header dl {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .method-hero {
    grid-template-columns: 1fr;
  }

  .method-hero__steps {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .plain-rule-grid,
  .team-check-grid,
  .worked-evidence-grid {
    grid-template-columns: 1fr;
  }

  .worked-example__featured {
    grid-template-columns: 1fr;
  }

  .worked-ratings {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  :root {
    --page-gutter: 12px;
  }

  .masthead {
    min-height: 56px;
    gap: 10px;
  }

  .wordmark-mark {
    width: 38px;
    height: 30px;
    clip-path: polygon(0 0, 31px 0, 38px 7px, 38px 30px, 7px 30px, 0 23px);
    font-size: 14px;
  }

  .wordmark-title {
    font-size: 16px;
  }

  .refresh-status {
    padding: 6px 7px;
  }

  main {
    padding-top: 14px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: 40px;
  }

  .catalogue-header {
    padding: 16px;
  }

  .catalogue-header::after {
    border-top-width: 16px;
    border-left-width: 16px;
  }

  .methodology-banner {
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 11px;
  }

  .methodology-banner__steps {
    width: 100%;
  }

  .methodology-banner__steps i {
    margin-left: auto;
  }

  .rank-filter {
    padding: 10px;
  }

  .rank-filter__heading {
    margin-bottom: 8px;
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .rank-filter__summary {
    margin: 0;
  }

  .rank-filter__options {
    gap: 6px;
  }

  .rank-filter__chip {
    min-height: 86px;
    padding: 4px 3px 8px;
  }

  .rank-filter__crest {
    width: 54px;
    height: 54px;
  }

  .rank-filter__all-mark {
    width: 48px;
    height: 48px;
    margin: 3px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .section-heading p {
    margin-top: 6px;
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .hero-card__body {
    min-height: 110px;
    padding: 9px;
  }

  .hero-card__name {
    min-height: 31px;
    font-size: 14px;
  }

  .hero-banner,
  .board-hero {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .hero-banner__portrait,
  .board-hero__portrait {
    width: 112px;
    height: 112px;
  }

  .hero-banner__copy {
    padding: 12px;
  }

  .hero-banner--full {
    min-height: 250px;
  }

  .hero-banner--full::before {
    background:
      linear-gradient(0deg, rgb(13 14 18 / 0.82), rgb(13 14 18 / 0.04) 78%),
      linear-gradient(90deg, rgb(13 14 18 / 0.98), rgb(13 14 18 / 0.42));
  }

  .hero-banner__art {
    top: -10px;
    right: -112px;
    width: 430px;
  }

  .hero-banner--full .hero-banner__copy {
    width: 100%;
    min-height: 250px;
    padding: 18px;
  }

  .hero-banner h1 {
    margin-bottom: 10px;
    font-size: 28px;
  }

  .hero-banner .confidence-badge {
    font-size: 12px;
  }

  .replay-card {
    display: block;
    clip-path: none;
  }

  .replay-card__portrait {
    display: flex;
    height: 104px;
    min-height: 0;
    align-items: flex-start;
    background: linear-gradient(90deg, var(--raised), var(--panel));
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .replay-card__portrait img {
    width: 104px;
    height: 104px;
  }

  .replay-card__portrait .result-badge {
    top: 12px;
    right: 12px;
    left: auto;
  }

  .replay-card__body {
    padding: 12px;
  }

  .replay-id {
    font-size: 28px;
    letter-spacing: -1px;
  }

  .replay-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .replay-meta li:nth-child(2) {
    border-right: 0;
  }

  .replay-meta li:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
  }

  .evidence-ratings {
    grid-template-columns: 1fr;
  }

  .evidence-ratings > div {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .evidence-ratings > div:last-child {
    border-bottom: 0;
  }

  .board-hero {
    display: block;
  }

  .board-hero__portrait {
    width: 100%;
    height: 112px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .board-hero__portrait img {
    width: 112px;
    height: 112px;
  }

  .board-hero__copy {
    padding: 12px;
  }

  .board-hero .copy-control {
    align-items: center;
    flex-direction: row;
  }

  .board-hero .copy-control > .seen-toggle {
    top: -32px;
  }

  .board-evidence {
    padding: 12px;
  }

  .board-evidence h2 {
    margin-bottom: 10px;
  }

  .team-board > header dl {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .empty-state {
    padding: 20px;
  }

  .empty-state p {
    font-size: 16px;
  }

  .method-hero__copy {
    padding: 20px 18px;
  }

  .method-hero__steps {
    padding: 10px;
    gap: 6px;
  }

  .method-hero__steps li {
    padding: 10px 5px;
  }

  .method-question__header {
    padding: 13px;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 11px;
  }

  .method-question__number {
    width: 52px;
    height: 52px;
    clip-path: polygon(0 0, 42px 0, 52px 10px, 52px 52px, 10px 52px, 0 42px);
    font-size: 20px;
  }

  .method-question__body {
    padding: 13px;
  }

  .method-question__lead {
    font-size: 16px;
  }

  .hero-job-grid {
    grid-template-columns: 1fr;
  }

  .hero-job--featured {
    grid-column: auto;
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .hero-job__copy {
    padding: 14px;
  }

  .hero-job:not(.hero-job--featured) {
    min-height: 0;
  }

  .featured-exclusion {
    align-items: flex-start;
    flex-direction: column;
  }

  .attendance-grid {
    gap: 6px;
  }

  .attendance-rule {
    padding: 11px 5px;
  }

  .honest-note {
    padding: 16px;
    align-items: start;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .honest-note__mark {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .honest-note h2 {
    font-size: 20px;
  }

  .honest-note p:last-child {
    font-size: 14px;
  }

  .rating-guide,
  .outcome-guide {
    padding: 14px;
  }

  .rating-key {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outcome-grid {
    grid-template-columns: 1fr;
  }

  .worked-example__header {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .worked-example__match {
    width: 100%;
    justify-content: flex-start;
  }

  .worked-example__featured,
  .worked-evidence-grid {
    padding: 12px;
  }

  .worked-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .worked-stats > div:nth-child(2) {
    border-right: 0;
  }

  .worked-stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .worked-example__callout {
    padding: 12px;
    font-size: 16px;
  }

  .kda-comparison__enemy {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .worked-example__verdict {
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 420px) {
  .rank-filter__options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
