@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Unbounded:wght@400;600;800;900&display=swap");

:root {
  --page: #030207;
  --ink: #f8f8f9;
  --muted: rgba(248, 248, 249, .56);
  --faint: rgba(248, 248, 249, .34);
  --surface: #1e1d21;
  --surface-light: #29282d;
  --line: rgba(255, 255, 255, .16);
  --line-strong: rgba(255, 255, 255, .27);
  --accent: #454648;
  --accent-light: #929397;
  --full: #98b993;
  --full-rgb: 152, 185, 147;
  --yellow: #c9aa67;
  --yellow-rgb: 201, 170, 103;
  --red: #cb7f76;
  --red-rgb: 203, 127, 118;
  --max-width: 1428px;
}

* { box-sizing: border-box; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-weight: 300;
  line-height: 1.4;
}

body[data-page="solution"],
body[data-page="task"] { --result-accent-rgb: 146, 147, 151; }
body[data-page="solution"][data-result-state="full"] { --result-accent-rgb: var(--full-rgb); }
body[data-page="solution"][data-result-state="partial"] { --result-accent-rgb: var(--yellow-rgb); }
body[data-page="solution"][data-result-state="zero"] { --result-accent-rgb: var(--red-rgb); }

a { color: inherit; text-decoration: none; }
button, select { font: inherit; }

a:focus-visible,
button:focus-visible,
select:focus-visible,
.matrix-scroll:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.site-header,
main,
.site-footer {
  width: min(var(--max-width), calc(100% - 56px));
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 106px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.brand img {
  display: block;
  width: 149px;
  height: auto;
}

.brand-name {
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-family: Unbounded, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -.04em;
  transition: color .2s ease;
}

.brand-logo:hover,
.brand-name:hover { color: var(--ink); }

nav { display: flex; gap: 28px; }
nav a { color: var(--muted); font-size: 16px; transition: color .2s ease; }
nav a:hover, nav a.active { color: var(--ink); }

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .09em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Unbounded, Arial, sans-serif;
  letter-spacing: -.065em;
}

.leaderboard-intro {
  position: relative;
  display: grid;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, .7fr);
  align-items: end;
  gap: 60px;
  min-height: 430px;
  padding: 72px 0 58px;
  overflow: hidden;
}

.leaderboard-intro::before,
.leaderboard-intro::after {
  position: absolute;
  top: 30px;
  right: 45px;
  bottom: 35px;
  width: min(54vw, 760px);
  border-radius: 58px 68px 62px 54px / 52px 64px 56px 68px;
  -webkit-mask: url("assets/torn-paper-mask.svg") center / 100% 100% no-repeat;
  mask: url("assets/torn-paper-mask.svg") center / 100% 100% no-repeat;
  transform: rotate(-.25deg);
  content: "";
}

.leaderboard-intro::after {
  z-index: -2;
  background-color: #3f4042;
  background-image: url("assets/graphite-texture.svg");
  background-position: center;
  background-size: cover;
  filter: drop-shadow(0 24px 34px rgba(0,0,0,.36));
}

.leaderboard-intro::before {
  z-index: -1;
  background-image: url("assets/formula-pattern-desktop.svg");
  background-position: center;
  background-size: 195% auto;
  filter: grayscale(1) invert(1) contrast(.72);
  mix-blend-mode: screen;
  opacity: .29;
}

.leaderboard-intro h1,
.catalog-intro h1 {
  margin: 0;
  font-size: clamp(58px, 9vw, 132px);
  font-weight: 900;
  line-height: .95;
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 0 8px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(3, 2, 7, .86);
  font-size: 16px;
  line-height: 1.45;
  backdrop-filter: blur(12px);
}

.competition-picker {
  padding: 34px 0 4px;
  border-top: 1px solid var(--line);
}

.competition-filters {
  display: grid;
  gap: 10px;
}

.filter-row {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.filter-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-width: 92px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-1px); }
.filter-chip.active { border-color: var(--accent-light); background: var(--accent); color: var(--ink); }

.leaderboard-section,
.catalog-section {
  padding: 38px 0 0;
}

.stage-stack {
  display: grid;
  gap: 32px;
}

.stage-block {
  min-width: 0;
}

.stage-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 36px;
  margin-bottom: 28px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.stage-heading > div {
  position: relative;
}

.stage-heading h3 {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: 800;
  line-height: 1;
}

.stage-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 15px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  align-items: end;
  gap: 36px;
  margin-bottom: 38px;
}

.section-heading.compact h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 900;
  line-height: 1;
}

.section-note {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 15px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 15px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend-full { background: var(--full); }
.legend-partial { background: var(--yellow); }
.legend-zero { background: var(--red); }
.legend-empty { background: #4a494e; }

.leaderboard-meta {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 17px 22px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.matrix-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0 0 24px 24px;
  background: var(--surface);
}

/* Таблице разрешено выходить за колонку текста до краёв окна: иначе
   последняя задача финала не помещается и её приходится доскроллировать. */
@media (min-width: 1100px) {
  .leaderboard-meta,
  .matrix-shell {
    width: min(calc(100vw - 56px), max(var(--max-width), 1500px));
    margin-inline: calc(50% - min(calc(50vw - 28px), max(var(--max-width), 1500px) / 2));
  }
}

.matrix-scroll {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.leaderboard-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.leaderboard-table th,
.leaderboard-table td {
  height: 74px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.leaderboard-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 58px;
  background: #252429;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sort-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  text-transform: inherit;
}

.leaderboard-table thead th:has(> .sort-button) { padding: 0 !important; }
.participant-column .sort-button { justify-content: space-between; text-align: left; }
.sort-button b {
  margin-left: 6px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 400;
}
.sort-button:hover,
.sort-button.active { color: var(--ink); }
.sort-button.active b { color: var(--accent-light); }
.leaderboard-table thead th:has(> .sort-button:hover) { background: #2b2a2f; }

.task-header-link {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 57px;
  color: inherit;
  transition: color .16s ease, background-color .16s ease;
}
.task-column { padding: 0 !important; }
.task-header-link:hover,
.task-header-link:focus-visible { background: rgba(255,255,255,.06); color: var(--ink); }
.sort-button:focus-visible,
.task-header-link:focus-visible,
.participant-cell-link:focus-visible,
.result-cell a:focus-visible { outline: 0; }
.leaderboard-table th:has(> .sort-button:focus-visible),
.task-column:has(> .task-header-link:focus-visible),
.participant-cell:has(> .participant-cell-link:focus-visible),
.result-cell:has(> a:focus-visible) { box-shadow: inset 0 0 0 2px rgba(255,255,255,.72); }

.leaderboard-table tr:last-child > * { border-bottom: 0; }
.leaderboard-table tr > *:last-child { border-right: 0; }

.rank-column,
.rank-cell {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 54px;
  min-width: 54px;
  background: var(--surface);
}

.participant-column,
.participant-cell {
  position: sticky;
  left: 54px;
  z-index: 4;
  width: 344px;
  min-width: 344px;
  max-width: 344px;
  background: var(--surface);
  text-align: left !important;
}

.leaderboard-table thead .rank-column,
.leaderboard-table thead .participant-column {
  z-index: 7;
  background: #252429;
}

/* Hover filters create stacking contexts; keep them below the sticky columns. */
.leaderboard-table tbody .result-cell {
  position: relative;
  z-index: 0;
}

.leaderboard-table tbody .result-cell:has(a):hover {
  z-index: 1;
}

.leaderboard-table tbody .rank-cell { z-index: 6; }
.leaderboard-table tbody .participant-cell { z-index: 5; }

.rank-cell {
  color: var(--muted);
  font-family: Unbounded, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.participant-cell { padding-left: 18px !important; }
.participant-cell:has(> .participant-cell-link) { padding: 0 !important; transition: box-shadow .16s ease, background-color .16s ease; }
.participant-cell-link {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 73px;
  padding: 10px 12px 10px 18px;
  color: inherit;
}
.participant-cell:has(> .participant-cell-link:hover) {
  background: #2b2a2f;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}
.participant-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.participant-name { display: block; min-width: 0; color: var(--ink); font-family: Unbounded, Arial, sans-serif; font-size: 13px; font-weight: 600; line-height: 1.35; letter-spacing: -.045em; overflow-wrap: anywhere; white-space: normal; }
.participant-cell-link:hover .participant-name,
.participant-cell-link:focus-visible .participant-name { color: #fff; }
/* Состав команды держим одной строкой: перенос одной фамилии вниз рвал ритм строк. */
.participant-meta { display: block; margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 300; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }

.task-column,
.result-cell {
  width: 62px;
  min-width: 62px;
}

.result-cell {
  padding: 0 !important;
  transition: box-shadow .16s ease;
}
.result-cell > span,
.result-cell a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 73px;
  border: 0;
  border-radius: 0;
  color: #070609;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.result-cell:has(a):hover { box-shadow: inset 0 0 0 2px rgba(255,255,255,.65); }

.result-cell.score-full { background: var(--full); }
.result-cell.score-partial { background: var(--yellow); }
.result-cell.score-zero { background: var(--red); }
.result-cell.score-empty { background: #27262b; }
.score-empty > span,
.score-empty > a { color: var(--faint); }
.result-cell .review-status { min-width: 0; padding: 4px 2px; font-size: 10px; line-height: 1.05; white-space: normal; }

.metric-column,
.metric-cell {
  width: 116px;
  min-width: 116px;
}

.metric-cell {
  color: var(--ink);
  font-family: Unbounded, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.04em;
}
.metric-cell.strong { color: var(--ink); font-weight: 700; }
.prize-cell small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.model-row:hover > td:not(.result-cell):not(.rank-cell):not(.participant-cell),
.team-row:hover > td:not(.result-cell):not(.rank-cell):not(.participant-cell) {
  background-color: rgba(255,255,255,.045);
}

.team-row .rank-cell,
.team-row .participant-cell { background: #17161a; }
.team-row .participant-name { color: rgba(255,255,255,.74); }
.team-row .participant-name {
  overflow: visible;
  white-space: normal;
  line-height: 1.25;
  text-overflow: clip;
}
.medal { font-size: 22px; filter: grayscale(.15); }

.empty-state {
  padding: 70px 30px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
  text-align: center;
}

.empty-state h3 { margin-bottom: 16px; font-size: 27px; }
.empty-state > p:last-child { max-width: 570px; margin: 0 auto; color: var(--muted); }

.method-section {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  padding: 150px 0 110px;
}

.method-section + .method-section { padding-top: 0; padding-bottom: 155px; }

.method-section h2 {
  margin-bottom: 33px;
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 900;
  line-height: 1.04;
}

.method-section div p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.launch-rules {
  max-width: 700px;
  margin: 0;
  padding-left: 1.2em;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}

.launch-rules li::marker { color: var(--accent-light); }
.launch-rules li + li { margin-top: 10px; }

.catalog-intro {
  max-width: 1120px;
  padding: 130px 0 55px;
}

.catalog-intro p:last-child {
  max-width: 590px;
  margin: 38px 0 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.competition-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 150px;
}

.competition-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(255,255,255,.075), transparent 42%),
    linear-gradient(145deg, #18171b, #0d0c10 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.competition-card:has(.competition-card-link:hover),
.competition-card:has(.competition-card-link:focus-visible) {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 60px rgba(0,0,0,.24);
  transform: translateY(-5px);
}
.competition-card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.competition-card-link:focus-visible { outline: 2px solid var(--accent-light); outline-offset: -5px; }
.competition-card-top,
.competition-card-body { position: relative; z-index: 2; pointer-events: none; }
.competition-card-top { display: flex; justify-content: space-between; gap: 22px; color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.competition-card-body { margin: auto 0; }
.competition-card h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); font-weight: 850; line-height: 1.02; }
.competition-card-stage { margin: 9px 0 23px; color: var(--muted); font-family: Unbounded, Arial, sans-serif; font-size: clamp(17px, 1.7vw, 23px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.competition-stage-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.competition-stage-tags span { padding: 7px 11px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 12px; }
.competition-card-actions { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.catalog-action { display: grid; min-height: 54px; place-items: center; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(255,255,255,.035); color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.catalog-action:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); transform: translateY(-1px); }

.problem-set-list { display: grid; gap: 18px; padding: 55px 0 150px; }
.problem-set-task { overflow: hidden; border: 1px solid var(--line); border-radius: 32px; background: rgba(255,255,255,.018); }
.problem-set-task-heading { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: baseline; gap: 18px; padding: 30px 34px; border-bottom: 1px solid var(--line); }
.problem-set-task-heading > span { color: var(--muted); font-family: Unbounded, Arial, sans-serif; font-size: 13px; }
.problem-set-task-heading h2 { margin: 0; font-size: clamp(25px, 3vw, 40px); line-height: 1.08; }
.problem-set-task-sections { display: grid; gap: 10px; padding: 12px; }
.problem-set-task .reading-solution { border-radius: 22px; box-shadow: none; }

.solution-main { min-width: 0; padding-top: 70px; }
.back-link { display: inline-block; color: var(--muted); font-size: 14px; }
.back-link:hover { color: var(--ink); }

.solution-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 45px;
  padding: 85px 0 70px;
  border-bottom: 1px solid var(--line);
}

.solution-hero > div:first-child { min-width: 0; }
.solution-hero h1 { max-width: 100%; margin: 0; overflow-wrap: anywhere; word-break: break-word; font-size: clamp(44px, 6vw, 82px); font-weight: 900; line-height: 1; }
.solution-verdict { align-self: start; min-width: 180px; padding: 23px; border-radius: 28px; background: #4a494e; color: var(--ink); }
.solution-verdict span { display: block; margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; }
.solution-verdict strong { font-family: Unbounded, Arial, sans-serif; font-size: 26px; letter-spacing: -.06em; }
.solution-result-badge.score-full { background: var(--full); color: #09080a; }
.solution-result-badge.score-partial { background: var(--yellow); color: #09080a; }
.solution-result-badge.score-zero { background: var(--red); color: #09080a; }
.solution-result-badge.score-empty { background: #4a494e; color: var(--ink); }

.solution-layout {
  display: grid;
  gap: 14px;
  padding: 60px 0 150px;
}

.solution-card,
.solution-metrics,
.reading-solution,
.solution-review-section {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #08070b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .035),
    0 22px 55px rgba(0, 0, 0, .16);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.task-copy { padding: clamp(32px, 5vw, 66px); }
.solution-review-section {
  overflow: hidden;
  border-color: rgba(var(--result-accent-rgb), .68);
}
.solution-review-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 4vw, 48px);
}
.solution-review-summary .eyebrow { margin-bottom: 12px; }
.solution-review-summary h2 { margin: 0; font-size: clamp(27px, 3.5vw, 46px); line-height: 1.08; }
.solution-review-summary .solution-verdict { flex: 0 0 auto; }
.solution-review-section .solution-metrics {
  border: 0;
  border-top: 1px solid rgba(var(--result-accent-rgb), .34);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.expert-review-comment {
  padding: clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(var(--result-accent-rgb), .34);
}
.expert-review-comment[hidden] { display: none; }
.expert-review-comment > .eyebrow { margin-bottom: 20px; color: rgb(var(--result-accent-rgb)); }
.expert-review-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 420px);
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
}
.expert-review-heading .eyebrow { margin-bottom: 14px; }
.expert-review-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.05;
}
.expert-review-heading > p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 14px;
}
.expert-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 12px;
}
.expert-review-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(3, 2, 7, .45);
}
.expert-review-card.final { border-color: rgba(var(--result-accent-rgb), .58); }
.expert-review-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}
.expert-review-card h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.045em; }
.expert-score {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: #09080a;
  font-family: Unbounded, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}
.expert-score.score-full { background: var(--full); }
.expert-score.score-partial { background: var(--yellow); }
.expert-score.score-zero { background: var(--red); }
.expert-score.score-empty { background: #4a494e; color: var(--ink); }
.expert-review-copy.prose { max-width: none; margin: 0; font-size: 16px; line-height: 1.6; }
.review-no-comment { color: var(--muted); font-style: italic; }
.prose { width: 100%; max-width: 1080px; margin-right: auto; margin-left: auto; color: rgba(248,248,249,.82); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.74; }
.prose p { margin: 0 0 1.35em; }
.prose > *:last-child { margin-bottom: 0; }
.prose h1,
.prose h2,
.prose h3,
.prose h4 { margin: 1.8em 0 .7em; color: var(--ink); font-family: Unbounded, Arial, sans-serif; line-height: 1.25; letter-spacing: -.045em; }
.prose h1 { font-size: 28px; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 17px; }
.prose ul,
.prose ol { margin: 0 0 1.35em; padding-left: 1.5em; }
.prose li + li { margin-top: .45em; }
.prose blockquote { margin: 1.5em 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--accent-light); color: var(--muted); }
.prose code { color: var(--accent-light); font-size: .9em; }
.prose pre { max-width: 100%; overflow-x: auto; padding: 18px; border-radius: 16px; background: #121115; }
.prose pre code { color: var(--ink); }
.prose table { display: block; max-width: 100%; overflow-x: auto; margin: 1.5em 0; border-collapse: collapse; }
.prose th,
.prose td { padding: 9px 12px; border: 1px solid var(--line); text-align: left; }
.prose a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; }
.prose .katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 8px 0; }
.prose .math-negation-slash { display: inline-block; font-family: KaTeX_Main, "Times New Roman", serif; font-style: normal; transform: translate(.02em, -.01em) rotate(-2deg); }
.prose .preformatted { white-space: pre-wrap; overflow-wrap: anywhere; }

.solution-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 10px 28px;
}

.metrics-list { margin: 0; padding: 27px; }
.metrics-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.metrics-list div:first-child { padding-top: 0; }
.metrics-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.solution-metrics div,
.solution-metrics div:first-child,
.solution-metrics div:last-child {
  padding: 17px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}
.solution-metrics div:first-child { padding-left: 0; }
.solution-metrics div:last-child { padding-right: 0; border-right: 0; }
.metrics-list dt { margin-bottom: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.metrics-list dd { margin: 0; font-family: Unbounded, Arial, sans-serif; font-size: 14px; font-weight: 600; letter-spacing: -.04em; }

.reading-solution {
  overflow: hidden;
  border-color: rgba(var(--result-accent-rgb), .68);
}
.reading-solution summary { background: transparent; }
.reading-solution[open] {
  border-color: rgba(var(--result-accent-rgb), .88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045),
    0 24px 65px rgba(0, 0, 0, .16);
}
.reading-solution summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 5vw, 58px) clamp(28px, 5vw, 66px); cursor: pointer; font-family: Unbounded, Arial, sans-serif; font-size: clamp(25px, 4vw, 44px); font-weight: 700; letter-spacing: -.055em; list-style: none; }
.reading-solution summary span { min-width: 0; overflow-wrap: anywhere; }
.reading-solution summary small { display: block; margin-bottom: 12px; color: var(--muted); font-family: Inter, Arial, sans-serif; font-size: 11px; font-weight: 400; letter-spacing: .09em; text-transform: uppercase; }
.reading-solution summary::-webkit-details-marker { display: none; }
.reading-solution[open] summary { border-bottom: 1px solid var(--line); }
.reading-solution[open] summary {
  border-bottom-color: rgba(var(--result-accent-rgb), .42);
  background: transparent;
}
.reading-solution summary b { flex: 0 0 auto; font-size: 32px; font-weight: 300; transition: transform .2s ease; }
.reading-solution[open] summary b { transform: rotate(45deg); }
.reading-solution .prose { padding: clamp(32px, 5vw, 66px); }

.reading-reference,
.reading-reference[open] {
  border-color: var(--line);
}
.reading-reference[open] summary {
  border-bottom-color: var(--line);
}

.task-model-list { display: grid; gap: 14px; }
.model-overview {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 2.28fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #0b0a0e;
}
.model-overview-rank {
  display: grid;
  align-content: center;
  min-height: 190px;
  padding: 34px 42px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 16%, rgba(255, 255, 255, .08), transparent 42%),
    #111015;
}
.model-overview-rank span,
.model-overview-stats dt {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.model-overview-rank strong {
  margin: 8px 0 3px;
  font-family: Unbounded, Arial, sans-serif;
  font-size: clamp(54px, 6vw, 82px);
  font-weight: 700;
  letter-spacing: -.08em;
  line-height: .95;
}
.model-overview-rank small { color: var(--faint); font-size: 12px; }
.model-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  margin: 0;
}
.model-overview-stats div {
  display: grid;
  align-content: center;
  gap: 13px;
  min-width: 0;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
}
.model-overview-stats div:last-child { border-right: 0; }
.model-overview-stats dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Unbounded, Arial, sans-serif;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 600;
  letter-spacing: -.045em;
}
.task-model-solution.score-full { --result-accent-rgb: var(--full-rgb); }
.task-model-solution.score-partial { --result-accent-rgb: var(--yellow-rgb); }
.task-model-solution.score-zero { --result-accent-rgb: var(--red-rgb); }
.task-model-solution.score-empty { --result-accent-rgb: 146, 147, 151; }
.neutral-solution { --result-accent-rgb: 146, 147, 151; }
.task-model-summary-result { display: flex; align-items: center; gap: 22px; }
.task-verdict {
  color: rgb(var(--result-accent-rgb));
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
}
.task-model-body > .prose { padding: clamp(32px, 5vw, 66px); }
.task-result-panel {
  padding: clamp(24px, 4vw, 40px) clamp(32px, 5vw, 66px);
  border-bottom: 1px solid rgba(var(--result-accent-rgb), .42);
  background: #0b0a0e;
}
.task-result-line { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.task-result-line span { color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.task-result-line strong { color: rgb(var(--result-accent-rgb)); font-family: Unbounded, Arial, sans-serif; font-size: 15px; text-align: right; }
.task-run-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.task-run-metrics[hidden] { display: none; }
.task-run-metrics div { padding: 0 24px; border-right: 1px solid rgba(255, 255, 255, .09); }
.task-run-metrics div:first-child { padding-left: 0; }
.task-run-metrics div:last-child { padding-right: 0; border-right: 0; }
.task-run-metrics dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.task-run-metrics dd {
  margin: 0;
  font-family: Unbounded, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.035em;
}
.task-final-comment { padding-top: 26px; }
.task-final-comment .eyebrow { margin-bottom: 16px; }
.task-final-comment .prose { margin: 0; padding: 24px; border: 1px solid rgba(var(--result-accent-rgb), .5); border-radius: 20px; background: #111015; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer img { display: block; width: 149px; height: auto; }
.footer-brand { flex: 1 1 auto; }
.footer-nav { flex: 0 0 auto; }
.footer-contact {
  display: grid;
  flex: 1 1 auto;
  justify-items: end;
  gap: 3px;
}
.footer-contact span {
  color: var(--faint);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-contact a { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.footer-contact a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .leaderboard-intro { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 470px; gap: 25px; }
  .leaderboard-intro::before,
  .leaderboard-intro::after { top: 55px; right: -80px; bottom: 0; width: 620px; }
  .leaderboard-intro::before { opacity: .23; }
  .intro-copy { max-width: 500px; }
  .section-heading { grid-template-columns: 1fr; }
  .stage-heading { grid-template-columns: 1fr; }
  .legend { justify-content: flex-start; }
  .method-section { grid-template-columns: 1fr; gap: 22px; }
  .competition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 744px) {
  .site-header,
  main,
  .site-footer { width: min(calc(100% - 28px), var(--max-width)); }
  main,
  section,
  .leaderboard-intro,
  .competition-picker { min-width: 0; }
  .site-header { min-height: 82px; }
  .brand img { width: 118px; }
  .brand-name { display: none; }
  nav { gap: 16px; }
  nav a { font-size: 12px; }

  .leaderboard-intro { min-height: 440px; padding: 48px 0 38px; }
  .leaderboard-intro h1,
  .catalog-intro h1 { font-size: clamp(42px, 13vw, 58px); }
  .leaderboard-intro::before,
  .leaderboard-intro::after {
    top: 165px;
    right: 50px;
    bottom: 40px;
    width: min(69vw, 265px);
    border-radius: 46px 54px 48px 42px / 42px 50px 44px 56px;
  }
  .leaderboard-intro::before {
    background-image: url("assets/formula-pattern-mobile.svg");
    background-size: 255% auto;
    opacity: .24;
  }
  .intro-copy { max-width: calc(100% - 28px); padding: 17px 18px; font-size: 14px; }

  .competition-picker { padding-top: 26px; }
  .filter-row { grid-template-columns: 1fr; gap: 7px; }
  .filter-options { flex-wrap: nowrap; margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
  .filter-options::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; min-width: 84px; padding: 9px 14px; }

  .leaderboard-section,
  .catalog-section { padding-top: 40px; }
  .stage-stack { gap: 32px; }
  .stage-heading { gap: 18px; margin-bottom: 22px; }
  .stage-heading h3 { font-size: 34px; }
  .stage-heading > p { font-size: 13px; }
  .section-heading.compact h2 { font-size: 44px; }
  .leaderboard-meta { display: grid; padding: 14px; }
  .matrix-shell, .leaderboard-meta { margin-right: -14px; margin-left: -14px; }
  .rank-column, .rank-cell { width: 36px; min-width: 36px; padding-right: 4px !important; padding-left: 4px !important; }
  .participant-column, .participant-cell { left: 36px; width: 148px; min-width: 148px; max-width: 148px; }
  .participant-column .sort-button span { line-height: 1.2; white-space: normal; }
  .participant-cell { padding-left: 10px !important; }
  .participant-cell:has(> .participant-cell-link) { padding: 0 !important; }
  .participant-cell-link { min-height: 66px; padding: 8px 8px 8px 10px; }
  .participant-name { font-size: 10px; line-height: 1.25; }
  .participant-meta { display: none; }
  .cost-column, .cost-cell, .tokens-column, .tokens-cell, .accuracy-column, .accuracy-cell { display: none; }
  .points-column, .points-cell { width: 68px; min-width: 68px; }
  .task-column, .result-cell { width: 52px; min-width: 52px; }
  .leaderboard-table th, .leaderboard-table td { height: 67px; padding: 8px; }
  .result-cell > span, .result-cell a { min-height: 66px; font-size: 13px; }
  .metric-cell { font-size: 14px; }

  .method-section { padding: 105px 0; }
  .method-section h2 { font-size: 39px; }
  .method-section div p { font-size: 15px; }

  .catalog-intro { padding: 100px 0 35px; }
  .catalog-intro p:last-child { margin-top: 28px; font-size: 15px; }
  .competition-grid { grid-template-columns: 1fr; padding-bottom: 100px; }
  .competition-card { min-height: 315px; padding: 22px; border-radius: 25px; }
  .competition-card-actions { grid-template-columns: 1fr; }
  .catalog-action { min-height: 48px; }

  .problem-set-hero h1 { font-size: 34px; }
  .problem-set-list { padding: 35px 0 100px; }
  .problem-set-task { border-radius: 24px; }
  .problem-set-task-heading { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 23px 18px; }
  .problem-set-task-heading h2 { font-size: 25px; }
  .problem-set-task-sections { padding: 8px; }

  .solution-main { padding-top: 45px; }
  .solution-hero { grid-template-columns: 1fr; padding: 60px 0 45px; }
  .solution-hero h1 { font-size: 36px; letter-spacing: -.075em; }
  .solution-verdict { width: max-content; min-width: 155px; }
  .solution-layout { padding: 35px 0 100px; }
  .solution-card, .solution-metrics, .reading-solution, .solution-review-section { border-radius: 24px; }
  .task-copy { padding: 28px 20px; }
  .solution-review-summary { align-items: flex-start; flex-direction: column; gap: 24px; padding: 28px 20px; }
  .expert-review-comment { padding: 28px 20px; }
  .expert-review-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 24px; }
  .expert-review-heading h2 { font-size: 30px; }
  .expert-review-card { padding: 20px; border-radius: 20px; }
  .prose { font-size: 16px; }
  .solution-metrics { grid-template-columns: 1fr; padding: 8px 20px; }
  .solution-metrics div,
  .solution-metrics div:first-child,
  .solution-metrics div:last-child {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .solution-metrics div:last-child { border-bottom: 0; }
  .model-overview { grid-template-columns: 1fr; border-radius: 24px; }
  .model-overview-rank {
    min-height: 0;
    padding: 27px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .model-overview-rank strong { font-size: 56px; }
  .model-overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-overview-stats div { padding: 22px 20px; }
  .model-overview-stats div:nth-child(2) { border-right: 0; }
  .model-overview-stats div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .model-overview-stats dd { font-size: 18px; }
  .reading-solution summary { padding: 27px 20px; font-size: 25px; }
  .reading-solution .prose { padding: 25px 20px; }
  .task-model-solution summary { align-items: flex-start; flex-direction: column; gap: 18px; }
  .task-model-summary-result { justify-content: space-between; width: 100%; }
  .task-verdict { white-space: normal; }
  .task-result-line { align-items: flex-start; flex-direction: column; gap: 10px; }
  .task-result-line strong { text-align: left; }
  .task-run-metrics { grid-template-columns: 1fr; padding-top: 10px; }
  .task-run-metrics div,
  .task-run-metrics div:first-child,
  .task-run-metrics div:last-child {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }
  .task-run-metrics div:last-child { border-bottom: 0; }
  .task-run-metrics dt { margin: 0; }

  .site-footer { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 28px 16px; }
  .site-footer img { width: 132px; }
  .footer-nav { justify-content: flex-end; }
  .footer-contact { grid-column: 1 / -1; justify-items: start; }
}
