:root {
  --accent: #b3231d;
  --bg: #ffffff;
  --text: #2c2c2c;
  --muted: #6b6b6b;
  --section-bg: #f7f7f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 8px;
}

/* Header */
header {
  text-align: center;
  padding: 80px 24px 48px;
}

header h1 {
  font-size: 3.2rem;
  font-weight: 800;
  max-width: 1300px;
  margin: 0 auto 28px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.venue {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.authors {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.authors sup {
  font-size: 0.7rem;
}

.affiliations {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 24px;
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 22px;
  background: #2c2c2c;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid #2c2c2c;
}

.btn:hover {
  background: #444;
  text-decoration: none;
}

.btn.outline {
  background: #fff;
  color: #2c2c2c;
}

.btn.outline:hover {
  background: #f0f0f0;
}

/* Sections */
section {
  padding: 48px 0;
  background: #f8f9fa;
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 20px;
  color: var(--text);
}

h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}

h2.left-align {
  text-align: left;
}

h2.left-align::after {
  margin: 12px 0 0;
}

/* Boxed content block */
.box {
  display: block;
  width: fit-content;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  margin: 0 auto;
}

.box h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.box.wide {
  display: block;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.box .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1.1rem;
  font-style: italic;
  background: #fafafa;
}

.subsection {
  margin-top: 28px;
}

.subsection:first-of-type {
  margin-top: 0;
}

.subsection h3 {
  margin: 0 0 20px;
  font-size: 1.6rem;
}

.tldr-row {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin: 18px 0;
  flex-wrap: wrap;
}

.tldr-row + .tldr-row {
  border-top: 1px solid #eee;
  padding-top: 18px;
}

.tldr-label {
  flex: 0 0 160px;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--accent);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.15s ease;
}

.tldr-label:hover {
  opacity: 0.7;
}

section {
  scroll-margin-top: 24px;
}

.tldr-content {
  flex: 1;
  min-width: 280px;
  font-size: 1.25rem;
}

.tldr-content ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.tldr-content li {
  margin-bottom: 6px;
}

.blue {
  color: #1a56db;
  font-weight: 600;
}

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

.compare-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 20px 0;
}

.compare-label {
  flex: 0 0 140px;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
}

.compare-media {
  flex: 0 0 auto;
}

.compare-media video {
  display: block;
  height: 265px;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.vs-pair {
  flex: 1;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.vs-item {
  flex: 1;
  min-width: 220px;
  text-align: center;
}

.vs-item video {
  display: block;
  width: 100%;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.vs-caption {
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.vs-caption.highlight {
  color: var(--accent);
  font-weight: 700;
}

.compare-desc {
  flex: 1;
  min-width: 200px;
  font-size: 1.5rem;
  text-align: center;
}

.analysis-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.analysis-text-col {
  flex: 1;
  min-width: 280px;
  padding-left: 32px;
}

.analysis-fig-col {
  flex: 1.4;
  min-width: 320px;
}

.analysis-fig-col .figure {
  margin: 0;
}

.analysis-text {
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.eq-display {
  font-size: 1rem;
  text-align: left;
  margin: 24px 0 0;
}

.eq-display .katex-display {
  margin: 0;
  text-align: left;
}

@media (max-width: 800px) {
  .analysis-row {
    flex-direction: column;
  }
}

.centered-subtitle {
  text-align: center;
  font-size: 1.4rem;
  margin: 0 0 20px;
}

.compare-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 24px 0;
}

@media (max-width: 700px) {
  .compare-row {
    flex-direction: column;
  }

  .compare-label {
    flex: none;
  }
}

.eq-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 16px 0;
  padding-left: 32px;
  flex-wrap: wrap;
}

.eq-label {
  flex: 0 0 260px;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  white-space: nowrap;
}

.eq-formula {
  flex: 1;
  min-width: 280px;
  font-size: 1.25rem;
  overflow-x: auto;
  text-align: left;
}

.eq-formula .katex-display {
  text-align: left;
  margin: 0;
}

.small-figure {
  max-width: 360px;
  margin: 16px auto 0;
}

.box video,
.box img {
  display: block;
  max-width: 1200px;
  width: 100%;
  border-radius: 6px;
}

.overview-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 24px 0;
}

.overview-row .teaser-fig {
  flex: 0.8;
  min-width: 200px;
}

.overview-row video {
  flex: 1.2;
  min-width: 280px;
}

@media (max-width: 800px) {
  .overview-row {
    flex-direction: column;
  }
}

.teaser-fig {
  max-width: 260px;
  margin: 0 auto;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 32px 0 12px;
}

p {
  margin: 0 0 16px;
}

.abstract-text {
  font-size: 1.02rem;
  text-align: justify;
}

/* Media */
.figure {
  text-align: center;
  margin: 24px 0;
}

.figure img,
.figure video {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #e5e5e5;
}

.figure figcaption,
.caption {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: left;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
}

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

.video-grid .figure {
  margin: 0;
}

.video-grid h4 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 760px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* Air Hockey sim2real row */
.ah-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.ah-col {
  flex: 1;
  min-width: 280px;
}

.ah-col:first-child {
  flex: 0.8;
}

.ah-col:last-child {
  flex: 1.4;
}

.ah-col .figure {
  margin: 0;
}

.ah-labels {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  text-align: center;
}

.ah-label {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.ah-label.highlight {
  color: var(--accent);
}

.ah-label.highlight strong {
  font-size: 1rem;
}

@media (max-width: 800px) {
  .ah-row {
    flex-direction: column;
  }

  .ah-labels {
    flex-wrap: wrap;
  }

  .ah-label {
    flex: 1 1 25%;
  }
}

/* Results table */
.table-wrap {
  overflow-x: auto;
  margin: 8px 0 16px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  white-space: nowrap;
}

.results-table th,
.results-table td {
  padding: 8px 12px;
  text-align: right;
  border-bottom: 1px solid #eee;
}

.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
  white-space: normal;
}

.results-table thead th {
  border-top: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  font-weight: 700;
}

.results-table tbody tr:last-child td {
  border-bottom: 2px solid var(--text);
}

.results-table tr.section-divider td {
  padding: 0;
  border: none;
  height: 0;
  border-top: 2px solid var(--text);
}

.results-table tr.gain-row {
  background: #fff8f6;
}

.results-table td.ours {
  background: #ffeeee;
  font-weight: 700;
}

.results-table tr.gain-row td.ours,
.results-table td.ours.strong {
  background: #ffdcdc;
}

/* BibTeX */
pre {
  background: #2c2c2c;
  color: #f1f1f1;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 0.85rem;
}

footer {
  text-align: center;
  padding: 32px 24px;
  color: var(--muted);
  font-size: 0.88rem;
}
