@font-face {
  font-family: Sora;
  src: url("assets/sora-latin-variable.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans-latin-variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #192139;
  background: #f7f8fc;
  font-size: 16px;
  line-height: 1.55;
  --violet: #6d3deb;
  --cyan: #35c2f2;
  --muted: #59647a;
  --border: #e1e5ef;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
:where(a, button, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}
.site-header,
main,
footer {
  width: calc(100% - 96px);
  max-width: 1240px;
  margin-inline: auto;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-family: Sora, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1.2;
}
.brand img {
  object-fit: contain;
}
.brand-caption {
  display: block;
  margin-top: 5px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.home-link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 600;
}
.home-link:hover,
footer a:hover {
  color: var(--violet);
}
.home-link span {
  font-size: 22px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 34px 0 28px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--violet);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
}
.status-dot {
  width: 7px;
  height: 7px;
  background: var(--violet);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #6d3deb12;
}
h1,
h2,
h3,
h4 {
  font-family: Sora, system-ui, sans-serif;
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 550;
  margin: 0;
}
h1 {
  font-size: clamp(36px, 4vw, 50px);
}
h1 span {
  color: var(--violet);
}
.intro-copy {
  color: var(--muted);
  max-width: 610px;
  font-size: 17px;
  margin: 14px 0 0;
}
.intro-mark {
  width: 230px;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  transform: rotate(-9deg);
  margin: 0 34px 0 0;
}
.intro-mark span {
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #35c2f2, #80ddfa);
  box-shadow: inset -3px -4px 0 #1499cf20;
}
.intro-mark span:nth-child(n + 4) {
  background: linear-gradient(135deg, #6d3deb, #9c7af8);
  box-shadow: inset -3px -4px 0 #4f26b620;
  transform: translateX(18px);
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border);
}
.summary > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border);
}
.summary > div:last-child {
  border: 0;
}
.summary span {
  font-size: 15px;
  color: var(--muted);
}
.summary strong {
  font-family: Sora, sans-serif;
  font-size: 28px;
  font-weight: 550;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.leaderboard {
  background: white;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 8px 40px #19213904;
  overflow: hidden;
}
.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px 24px;
}
.board-heading .eyebrow {
  margin-bottom: 10px;
}
h2 {
  font-size: 25px;
}
.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.refresh-button:hover {
  background: #f6f3ff;
  color: var(--violet);
  border-color: #d8cafa;
}
.refresh-button span {
  font-size: 20px;
}
.task-tabs {
  display: flex;
  gap: 28px;
  padding-inline: 32px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
}
.task-tabs button {
  flex-shrink: 0;
  min-height: 54px;
  padding: 12px 0 15px;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}
.task-tabs button[aria-selected="true"] {
  border-bottom-color: var(--violet);
  color: var(--violet);
}
.task-tabs button:hover {
  color: var(--violet);
}
.task-tabs button:focus-visible {
  outline-offset: -4px;
  border-radius: 5px;
}
#task-panel {
  padding: 26px 32px 22px;
}
.task-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
h3 {
  font-size: 20px;
}
.task-details p {
  margin: 7px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.layer-switch {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
  background: #f3f4f9;
  border: 1px solid #ebedf5;
  padding: 4px;
  border-radius: 12px;
}
.layer-switch button {
  min-height: 40px;
  min-width: 94px;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}
.layer-switch button[aria-pressed="true"] {
  color: var(--violet);
  background: white;
  box-shadow: 0 2px 5px #19213909;
}
.release-control {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}
.release-control select {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  padding: 8px;
  color: #192139;
}
.results-status {
  color: var(--muted);
  font-size: 14px;
  margin: 20px 0 14px;
  min-height: 22px;
}
.results-status[data-error="true"] {
  color: #a53044;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  scrollbar-width: thin;
}
table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  text-align: left;
  font-variant-numeric: tabular-nums;
}
thead {
  background: #f8f9fd;
}
th {
  padding: 16px 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
th:not(:nth-child(2)),
td:not(:nth-child(2)) {
  text-align: right;
}
th:first-child,
td:first-child {
  text-align: center;
  width: 70px;
}
th span {
  color: var(--violet);
}
abbr {
  text-decoration: none;
  cursor: help;
}
td {
  padding: 22px 18px;
  border-top: 1px solid var(--border);
  font-size: 16px;
}
td:nth-child(2) {
  min-width: 210px;
  max-width: 330px;
  overflow-wrap: anywhere;
}
tbody tr:hover {
  background: #fcfbff;
}
.rank {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  border-radius: 10px;
  background: #f0ecfc;
  color: var(--violet);
  font-weight: 700;
}
.team-name {
  display: block;
  font-weight: 650;
}
.primary-score {
  color: var(--violet);
  font-weight: 750;
}
.empty-state {
  padding: 44px 20px;
  text-align: center;
  border: 1px dashed #dcd5ee;
  border-radius: 14px;
  background: #fcfbff;
}
.empty-symbol {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #f0eafd;
  color: var(--violet);
  font-size: 24px;
  border-radius: 14px;
  margin-bottom: 16px;
}
h4 {
  font-size: 18px;
}
.empty-state p,
.ranking-note {
  color: var(--muted);
  font-size: 14px;
}
.empty-state p {
  margin-bottom: 0;
}
.ranking-note {
  margin: 16px 0 0;
}
.formula-notice {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: linear-gradient(100deg, #f6f2ff, #f1fbff);
  border: 1px solid #e4dbfb;
  border-radius: 14px;
  margin-bottom: 20px;
}
.formula-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: white;
  color: var(--violet);
  font-size: 23px;
}
.formula-notice strong {
  font-size: 16px;
  font-weight: 650;
}
.formula-notice p {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
}
/* Quiet disclosure follows the leaderboard typography and spacing. */
.scoring-guide {
  margin: 0 0 18px;
}
.scoring-guide > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 3px 0 12px;
  cursor: pointer;
  list-style: none;
}
.scoring-guide > summary::-webkit-details-marker {
  display: none;
}
.scoring-guide-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--violet);
  font-size: 14px;
  font-weight: 600;
}
.scoring-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s;
}
.scoring-guide[open] .scoring-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}
.scoring-guide-range {
  color: var(--muted);
  font-size: 13px;
}
.scoring-guide-body {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafaff;
}
.scoring-guide-formulas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px 36px;
}
.scoring-guide-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.score-math {
  font-size: 16px;
  color: #252b42;
}
.score-math .katex-display {
  margin: 0;
  text-align: left;
}
.score-math .katex-display > .katex {
  text-align: left;
}
.score-math-mobile {
  display: none;
}
.scoring-guide-rules {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.scoring-guide-rules p {
  margin: 0 0 8px;
}
.scoring-guide-rules p:first-child {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.scoring-guide-rules strong {
  margin-right: 7px;
  color: #343b51;
  font-weight: 600;
}
.scoring-guide-rules p:last-child {
  margin: 0;
}
.task-weight {
  padding: 3px 8px;
  background: #eeeff6;
  border-radius: 5px;
  color: #535c73;
  font-size: 12px;
}
.task-weight-hard {
  color: #6844b0;
  background: #eee8fc;
}
.pending-badge {
  display: inline-block;
  background: #ede7fc;
  color: #5730b2;
  padding: 5px 10px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.formula-notice > .pending-badge {
  margin-left: auto;
}
.overall-table {
  min-width: 840px;
}
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.scenario-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 8px;
  min-height: 104px;
  padding: 16px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  color: #192139;
}
.scenario-card:hover {
  border-color: #c8b5f5;
  background: #fcfaff;
}
.scenario-card strong {
  font-size: 15px;
  font-weight: 650;
}
.scenario-card span {
  font-size: 14px;
  color: var(--violet);
}
.scenario-card small {
  font-size: 13px;
  color: var(--muted);
}
.metric-guide {
  margin-top: 34px;
  padding-bottom: 40px;
}
.guide-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 28px;
}
.guide-heading h2 {
  font-size: 20px;
  flex-shrink: 0;
}
.guide-heading p {
  font-size: 14px;
  color: var(--muted);
  max-width: 430px;
  margin: 0;
}
dl {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 24px 0 0;
}
dl > div {
  border-top: 2px solid #d9ccfa;
  padding-top: 14px;
}
dl > div:last-child {
  border-color: var(--cyan);
}
dt {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}
dt span {
  color: var(--violet);
}
dd {
  margin: 7px 0 0;
  font-size: 14px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-block: 24px 32px;
  font-size: 14px;
  color: var(--muted);
}
footer > span {
  font-weight: 650;
  color: #192139;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.no-script {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
@media (max-width: 900px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 48px);
  }
  .intro-mark {
    width: 165px;
    margin-right: 10px;
  }
  .intro-mark span {
    height: 34px;
  }
  .guide-heading {
    display: block;
  }
  .guide-heading p {
    margin-top: 12px;
  }
  .task-details {
    align-items: start;
  }
  .task-tabs {
    gap: 24px;
  }
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .site-header {
    padding-block: 20px;
    gap: 12px;
  }
  .brand {
    font-size: 22px;
    gap: 8px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand-caption {
    font-size: 12px;
    max-width: 170px;
  }
  .home-link {
    font-size: 14px;
    gap: 5px;
  }
  .intro {
    padding: 34px 0 26px;
  }
  .intro-mark {
    display: none;
  }
  .intro-copy {
    font-size: 16px;
  }
  .summary {
    gap: 12px;
    padding-block: 20px 24px;
  }
  .summary span {
    font-size: 13px;
  }
  .summary strong {
    font-size: 26px;
  }
  .summary > div {
    padding-right: 8px;
  }
  .board-heading {
    padding: 24px 20px;
    gap: 12px;
  }
  h2 {
    font-size: 21px;
  }
  .eyebrow {
    font-size: 12px;
  }
  .refresh-button {
    padding: 8px 10px;
    font-size: 14px;
  }
  .task-tabs {
    padding-inline: 20px;
    gap: 24px;
  }
  .task-tabs button {
    font-size: 15px;
  }
  .task-details {
    flex-direction: column;
    gap: 18px;
  }
  #task-panel {
    padding: 22px 20px;
  }
  .task-details p {
    font-size: 14px;
  }
  .layer-switch {
    width: 100%;
  }
  .layer-switch button {
    flex: 1;
  }
  #table-wrap table {
    min-width: 660px;
  }
  #table-wrap td,
  #table-wrap th {
    padding-inline: 12px;
  }
  #table-wrap td:nth-child(2) {
    min-width: 150px;
  }
  #table-wrap th:first-child,
  #table-wrap td:first-child {
    width: 44px;
  }
  .release-control {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .formula-notice {
    align-items: start;
    padding: 16px;
    gap: 12px;
  }
  .scoring-guide > summary {
    align-items: flex-start;
    gap: 8px;
  }
  .scoring-guide-range {
    font-size: 11px;
  }
  .scoring-guide-trigger {
    font-size: 13px;
    gap: 8px;
  }
  .scoring-guide-body {
    padding: 16px 14px;
  }
  .scoring-guide-formulas {
    display: block;
  }
  .scoring-guide-progress {
    margin-top: 22px;
  }
  .score-math {
    font-size: 14px;
  }
  .score-math-desktop {
    display: none;
  }
  .score-math-mobile {
    display: block;
  }
  .formula-icon,
  .formula-notice > .pending-badge {
    display: none;
  }
  .scenario-grid {
    gap: 12px;
  }
  .scenario-card {
    padding: 14px;
    min-height: 140px;
  }
  .metric-guide {
    margin-top: 30px;
    padding-bottom: 32px;
  }
  dl {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 20px;
  }
  dl > div:last-child {
    grid-column: 1/-1;
  }
  footer {
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
}
