:root {
  color-scheme: light;
  --ink: #17231e;
  --muted: #67746e;
  --cream: #f5f0e5;
  --card: #fffdf8;
  --green: #2d6a4f;
  --lime: #c9f45b;
  --line: #dedbd1;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 4%, rgba(201, 244, 91, 0.45), transparent 24rem),
    var(--cream);
  font-family: "DM Sans", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 64px 0 48px;
}

.eyebrow, .kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.eyebrow span { color: #ee5f45; margin-right: 8px; }

h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 { margin: 0; max-width: 720px; font-size: clamp(3.2rem, 8vw, 6.3rem); line-height: 0.91; letter-spacing: -0.065em; }
h1 em { color: var(--green); font-style: normal; }
.intro { max-width: 480px; margin: 28px 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }

.shoe {
  display: grid;
  width: 180px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(45, 106, 79, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  font-size: 5rem;
  transform: rotate(-12deg);
}

.leaderboard {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.85);
  box-shadow: 0 24px 70px rgba(34, 54, 45, 0.09);
  backdrop-filter: blur(12px);
}

.section-heading { display: flex; justify-content: space-between; align-items: end; padding: 34px 40px 28px; }
.section-heading .kicker { margin-bottom: 5px; }
h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.05em; }
.metric { display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 0.8rem; }
.metric strong { color: var(--ink); font-size: 1rem; }
.rankings { border-top: 1px solid var(--line); }

.rank {
  display: grid;
  grid-template-columns: 48px 58px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 116px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  animation: enter 500ms both;
}

.rank:last-child { border-bottom: 0; }
.rank:nth-child(2) { animation-delay: 80ms; }
.rank:nth-child(3) { animation-delay: 160ms; }
.rank-1 { background: linear-gradient(90deg, rgba(201, 244, 91, 0.25), transparent 65%); }
.place { font-family: "Manrope", sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--muted); }
.rank-1 .place { color: var(--green); font-size: 1.8rem; }
.avatar { display: grid; width: 54px; aspect-ratio: 1; place-items: center; border-radius: 17px; background: var(--ink); color: var(--cream); font-family: "Manrope", sans-serif; font-size: 1.25rem; font-weight: 800; }
.rank-1 .avatar { background: var(--green); box-shadow: 5px 5px 0 var(--lime); }
.player h3 { margin: 0 0 4px; font-size: 1.15rem; }
.player p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.step-count { text-align: right; }
.step-count strong { display: block; font-family: "Manrope", sans-serif; font-size: clamp(1.3rem, 4vw, 2rem); letter-spacing: -0.04em; }
.step-count span { color: var(--muted); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.14em; }
.status { padding: 56px 30px; text-align: center; color: var(--muted); }
.status strong { display: block; margin-bottom: 15px; color: var(--ink); }
button { padding: 10px 18px; border: 0; border-radius: 999px; background: var(--green); color: white; font: inherit; font-weight: 700; cursor: pointer; }

footer { display: flex; justify-content: center; gap: 22px; padding: 38px 0; color: var(--green); font-size: 0.68rem; font-weight: 800; letter-spacing: 0.2em; }

@keyframes enter { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 700px) {
  .shell { width: min(100% - 24px, 520px); }
  .hero { min-height: auto; padding: 52px 8px 36px; }
  .shoe { display: none; }
  .intro { font-size: 1rem; }
  .section-heading { padding: 26px 22px 22px; }
  .metric { display: none; }
  .rank { grid-template-columns: 30px 46px 1fr auto; gap: 12px; min-height: 96px; padding: 16px 20px; }
  .avatar { width: 44px; border-radius: 14px; }
  .player p { display: none; }
}

@media (prefers-reduced-motion: reduce) { .rank { animation: none; } }
