:root {
  color-scheme: light;
  --bg: #ffffff;
  --paper: #ffffff;
  --soft: #f8f9fa;
  --ink: #222222;
  --muted: #555f6b;
  --line: #d9dee4;
  --link: #3273dc;
  --button: #363636;
  --green: #2f8f7d;
  --gold: #f7efcd;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--link);
}

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

.section-block {
  padding: 3rem 1.5rem;
}

.section-block:nth-child(even) {
  background: var(--soft);
}

.container {
  width: min(1060px, 100%);
  margin: 0 auto;
  text-align: center;
}

.container.narrow {
  width: min(820px, 100%);
}

.fitting-container {
  width: min(1240px, 100%);
}

.hero {
  padding-top: 3.4rem;
}

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

h1 {
  width: min(920px, 100%);
  margin-right: auto;
  margin-bottom: 1rem;
  margin-left: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.03rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1rem;
  width: min(920px, 100%);
  margin-right: auto;
  margin-bottom: 0.45rem;
  margin-left: auto;
  color: var(--link);
  font-size: 1.15rem;
}

.authors span {
  display: inline-block;
}

.authors a {
  color: var(--link);
  text-decoration: none;
}

.authors a:hover {
  text-decoration: underline;
}

.affiliation {
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.author-note {
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.project-link {
  display: inline-flex;
  min-width: 7rem;
  min-height: 2.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.48rem 1rem;
  background: var(--button);
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
}

.project-link.disabled {
  background: #747b83;
  color: #ffffff;
  cursor: default;
}

.paper-figure {
  margin-right: auto;
  margin-bottom: 1.35rem;
  margin-left: auto;
}

.paper-figure img {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  border-radius: 4px;
}

.paper-figure figcaption {
  width: min(860px, 100%);
  margin: 0.85rem auto 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.real-ai-game {
  margin-top: 2rem;
}

.real-ai-game h2 {
  margin-bottom: 0.65rem;
  font-size: 2rem;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  text-align: left;
}

.quiz-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  background: var(--paper);
}

.quiz-card h3 {
  margin-bottom: 0.7rem;
  text-align: center;
}

.quiz-videos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.quiz-videos video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  background: #000000;
  object-fit: contain;
}

.quiz-videos button {
  width: 100%;
  min-height: 2.25rem;
  margin-top: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.quiz-videos button:hover,
.quiz-videos button.selected {
  border-color: var(--button);
}

.quiz-videos button.correct {
  border-color: var(--green);
  background: #eaf6f2;
  color: #176452;
}

.quiz-videos button.incorrect {
  border-color: #c94d3f;
  background: #fae8e6;
  color: #9b2f25;
}

.quiz-result {
  min-height: 2.8rem;
  margin: 0.7rem 0 0;
  padding: 0.65rem 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.quiz-result.correct {
  color: #176452;
}

.quiz-result.incorrect {
  color: #9b2f25;
}

.quiz-status {
  font-weight: 800;
}

.quiz-result.correct .quiz-status {
  color: #0c7a5f;
}

.quiz-result.incorrect .quiz-status {
  color: #c4362a;
}

.section-intro {
  width: min(820px, 100%);
  margin-right: auto;
  margin-bottom: 1.8rem;
  margin-left: auto;
}

.narrow p {
  text-align: left;
}

.video-box {
  width: min(900px, 100%);
  margin: 0 auto;
  border-radius: 4px;
  background: #000000;
}

.video-box video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.abstract-content {
  width: min(820px, 100%);
  margin: 2.25rem auto 0;
}

.abstract-content h2 {
  text-align: center;
}

.abstract-content p {
  text-align: left;
}

.paper-figure {
  width: min(940px, 100%);
}

.benchmark-figure {
  width: min(660px, 100%);
}

.robustness-figure {
  width: min(560px, 100%);
}

.fitting-pipeline-figure {
  width: min(820px, 100%);
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
  text-align: left;
}

.metric-list article {
  min-height: 8.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--paper);
}

.metric-list p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(760px, 100%);
  margin: 1.5rem auto 0;
}

.numbers div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--paper);
}

.numbers strong {
  display: block;
  color: var(--green);
  font-size: 2.2rem;
  line-height: 1;
}

.numbers span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
}

.subsection-title {
  margin-top: 2.6rem;
  margin-bottom: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
}

.fitting-gallery {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.8rem;
}

.fitting-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: var(--paper);
  text-align: left;
}

.fitting-card h4 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
  letter-spacing: 0;
  text-align: center;
}

.failure-card {
  border-color: #e7c3bd;
}

.video-pair,
.showcase-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: start;
}

.video-pair video,
.showcase-pair img,
.showcase-pair video {
  width: 100%;
  border-radius: 4px;
  background: transparent;
}

.video-pair span,
.showcase-pair span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.humanscore-value {
  display: block;
  margin-top: 0.1rem;
  color: var(--green);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.88rem;
  font-weight: 700;
}

.humanscore-value.bad-score {
  color: #c4362a;
}

.video-pair video {
  aspect-ratio: 1 / 1;
  background: #000000;
  object-fit: contain;
}

.showcase-pair img {
  height: auto;
  aspect-ratio: auto;
  object-fit: fill;
}

.showcase-pair video {
  display: block;
  aspect-ratio: 2 / 1;
  background: #000000;
  object-fit: contain;
}

.table-wrap {
  overflow-x: auto;
  width: min(1060px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 0.72rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:nth-child(2),
td:nth-child(2) {
  text-align: left;
}

th:nth-child(3),
td:nth-child(3) {
  text-align: center;
}

.model-name {
  display: inline-flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 0.62rem;
}

.model-logo {
  display: block;
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
}

.model-logo--wide {
  width: 3.1rem;
}

.model-logo--wordmark {
  width: 4.2rem;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.6rem;
  border-radius: 4px;
  padding: 0.22rem 0.48rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
}

.source-badge--open {
  background: #e7f4ee;
  color: #1d6a4c;
}

.source-badge--closed {
  background: #eef2f6;
  color: #48525e;
}

th {
  background: #eef2f6;
  color: #303943;
  font-size: 0.82rem;
  letter-spacing: 0;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.place-first td {
  background: #fff5ce;
}

.place-second td {
  background: #edf1f5;
}

.place-third td {
  background: #f7e6d6;
}

.metric-best {
  font-weight: 700;
}

.reference td {
  background: var(--gold);
}

pre {
  overflow-x: auto;
  margin: 0;
  border-radius: 4px;
  padding: 1rem;
  background: #f0f0f0;
  color: #222222;
  text-align: left;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

@media (max-width: 820px) {
  .section-block {
    padding: 2.5rem 1rem;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .quiz-grid,
  .metric-list,
  .numbers,
  .video-pair,
  .showcase-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 1.95rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  .project-link {
    min-width: 6rem;
  }
}
