:root {
  --bg: #fbfbf7;
  --paper: #ffffff;
  --band-warm: #fff8e9;
  --band-green: #eef8f2;
  --band-blue: #f1f6ff;
  --band-plain: #fbfbf7;
  --ink: #171a1d;
  --muted: #616a71;
  --line: #e4e2d8;
  --green: #21a67a;
  --green-dark: #106147;
  --blue: #326dce;
  --amber: #d79a25;
  --code: #11191f;
  --shadow: 0 16px 42px rgba(23, 26, 29, 0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, BlinkMacSystemFont, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.62;
}

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

.container.is-max-desktop {
  max-width: 920px !important;
}

.project-hero .hero-body {
  padding: 4.5rem 1.5rem 2.75rem;
}

.project-hero {
  background:
    radial-gradient(circle at 50% 6%, rgba(33, 166, 122, 0.16), transparent 310px),
    linear-gradient(180deg, #fffdf6 0%, #fbf5e7 100%);
  border-bottom: 1px solid var(--line);
}

.logo-wrap {
  width: 128px;
  height: 128px;
  margin: 0 auto 1.15rem;
}

.mobiledev-logo {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.orbit {
  fill: none;
  stroke-linecap: round;
  transform-origin: 80px 80px;
}

.orbit-a {
  stroke: rgba(33, 166, 122, 0.34);
  stroke-width: 2.5;
  stroke-dasharray: 11 14;
  animation: spin 13s linear infinite;
}

.orbit-b {
  stroke: rgba(50, 109, 206, 0.3);
  stroke-width: 2;
  stroke-dasharray: 5 10;
  animation: spin 8s linear infinite reverse;
}

.phone {
  animation: float 4s ease-in-out infinite;
}

.phone-body {
  fill: #fbfff8;
  stroke: var(--green-dark);
  stroke-width: 4;
  filter: drop-shadow(0 15px 22px rgba(23, 26, 29, 0.16));
}

.phone-screen {
  fill: url("#logo-screen");
  opacity: 0.95;
}

.code-left,
.code-right,
.code-slash,
.phone-speaker,
.phone-home {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.5;
}

.phone-speaker,
.phone-home {
  stroke: var(--green-dark);
}

.badge {
  animation: pop 2.8s ease-in-out infinite;
  transform-origin: 111px 45px;
}

.badge circle {
  fill: var(--green);
  stroke: #ffffff;
  stroke-width: 4;
}

.badge path {
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.sparkles circle {
  fill: var(--amber);
  stroke: #ffffff;
  stroke-width: 3;
  animation: pulse 3s ease-in-out infinite;
}

.sparkles circle:nth-child(2) {
  fill: var(--green);
  animation-delay: 0.35s;
}

.sparkles circle:nth-child(3) {
  fill: var(--blue);
  animation-delay: 0.7s;
}

.publication-title {
  max-width: 880px;
  margin: 0 auto 1.15rem !important;
  color: var(--ink) !important;
  font-size: clamp(2rem, 4.6vw, 3.3rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.publication-authors {
  margin-bottom: 0.4rem;
  color: #262c30;
  font-size: 1.08rem;
  font-weight: 600;
}

.author-block {
  display: inline-block;
  margin: 0 0.34rem;
}

.publication-affiliations {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  margin-bottom: 1.35rem;
  color: var(--muted);
  font-size: 1rem;
}

.publication-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.project-button {
  border: 1px solid #252a2e !important;
  color: #ffffff !important;
  background: #252a2e !important;
  font-weight: 700 !important;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease !important;
}

.project-button:hover {
  background: #11191f !important;
  border-color: #11191f !important;
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.slim-section {
  padding: 2.75rem 1.5rem;
  border-top: 1px solid rgba(113, 105, 85, 0.12);
}

main > .slim-section:nth-of-type(2) {
  background: var(--paper);
}

main > .slim-section:nth-of-type(3) {
  background: var(--band-green);
}

main > .slim-section:nth-of-type(4) {
  background: var(--band-warm);
}

main > .slim-section:nth-of-type(5) {
  background: var(--band-blue);
}

main > .slim-section:nth-of-type(6) {
  background: var(--paper);
}

main > .slim-section:nth-of-type(7) {
  background: var(--band-green);
}

main > .slim-section:nth-of-type(8) {
  background: var(--band-warm);
}

main > .slim-section:nth-of-type(9) {
  background: var(--band-blue);
}

.section-title {
  margin-bottom: 0.75rem !important;
  color: var(--ink) !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}

.section-title-accent {
  color: var(--green);
}

.content {
  color: var(--muted);
  font-size: 1.02rem;
}

.content strong {
  color: var(--ink);
}

.tldr {
  margin: 0;
  border: 1px solid rgba(16, 97, 71, 0.16);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-size: 1.2rem;
  box-shadow: 0 10px 26px rgba(23, 26, 29, 0.04);
}

.takeaway-list ul {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  list-style: none;
}

.takeaway-list li {
  margin: 0;
  border: 1px solid rgba(16, 97, 71, 0.16);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 26px rgba(23, 26, 29, 0.04);
}

.takeaway-list strong {
  color: var(--ink);
}

.track-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.05rem;
}

.track-tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: var(--muted);
  background: var(--paper);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.track-tab.is-active {
  color: #0b2f25;
  border-color: var(--green);
  background: var(--green-light);
}

.leaderboard-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.leaderboard-table {
  margin-bottom: 0 !important;
  background: transparent !important;
}

.leaderboard-table th {
  color: #485158 !important;
  background: #f5f3ea;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.leaderboard-table td,
.leaderboard-table th {
  border-color: var(--line) !important;
  vertical-align: middle !important;
}

.rank-badge {
  display: inline-grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  color: #0b2f25;
  background: var(--green-light);
  font-weight: 800;
}

.rate-cell {
  color: var(--green-dark);
  font-weight: 800;
}

.table-note {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.project-figure {
  margin: 1.2rem 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.project-figure img {
  width: 100%;
  border-radius: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  position: relative;
  min-height: 138px;
  overflow: hidden;
  border: 1px solid rgba(16, 97, 71, 0.16);
  border-radius: 8px;
  padding: 1.1rem 1rem 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(239, 248, 242, 0.86));
  text-align: left;
  box-shadow: 0 12px 28px rgba(23, 26, 29, 0.06);
}

.stat-card::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.25rem;
  margin-bottom: 1.05rem;
  border-radius: 999px;
  background: var(--green);
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -24px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: rgba(33, 166, 122, 0.1);
}

.stat-card:nth-child(2n) {
  border-color: rgba(50, 109, 206, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 246, 255, 0.88));
}

.stat-card:nth-child(2n)::before {
  background: var(--blue);
}

.stat-card:nth-child(2n)::after {
  background: rgba(50, 109, 206, 0.1);
}

.stat-card:nth-child(3n) {
  border-color: rgba(215, 154, 37, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 233, 0.9));
}

.stat-card:nth-child(3n)::before {
  background: var(--amber);
}

.stat-card:nth-child(3n)::after {
  background: rgba(215, 154, 37, 0.12);
}

.stat-number {
  position: relative;
  z-index: 1;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
}

.stat-label {
  position: relative;
  z-index: 1;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.command-block,
.bibtex {
  overflow-x: auto;
  border: 1px solid #25313a;
  border-radius: 8px;
  padding: 1rem;
  color: #effcf8;
  background: var(--code);
  font-size: 0.92rem;
  line-height: 1.55;
}

.copy-bibtex-btn {
  margin-top: 0.8rem;
  border-radius: 999px !important;
  color: #0b2f25 !important;
  background: var(--green-light) !important;
  border-color: var(--green) !important;
  font-weight: 700 !important;
}

.footer {
  padding: 2rem 1.5rem 2.5rem;
  color: var(--muted);
  background: #f3f1e8;
  border-top: 1px solid var(--line);
}

.footer p {
  margin-bottom: 0.35rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes pop {
  0%,
  100% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.08);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

@media (max-width: 768px) {
  .project-hero .hero-body {
    padding-top: 3rem;
  }

  .logo-wrap {
    width: 106px;
    height: 106px;
  }

  .publication-title {
    font-size: clamp(1.75rem, 9vw, 2.45rem) !important;
  }

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

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