@font-face {
  font-family: Hanken;
  src: url("./fonts/hanken.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}
:root {
  --cream: #f4f1ea;
  --layer: #ece9e1;
  --surface: #fbfaf6;
  --ink: #15252b;
  --muted: #4d605f;
  --petrol: #2c6e7d;
  --sage: #57705b;
  --line: #15252b20;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Hanken, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 4px;
}
button {
  color: inherit;
}
.wrap {
  max-width: 1216px;
  margin: auto;
  padding: 0 48px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip {
  position: fixed;
  top: 8px;
  left: 8px;
  background: var(--petrol);
  color: var(--surface);
  padding: 12px;
  z-index: 9;
  transform: translateY(-150%);
}
.skip:focus {
  transform: none;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.055em;
}
.brand img {
  flex: none;
}
.brand-dot {
  color: var(--petrol);
}
.brand-type {
  display: inline-flex;
  align-items: baseline;
  gap: 20px;
}
.brand-wordmark {
  line-height: 1;
}
.grow-label {
  color: var(--petrol);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.015em;
}
nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
}
nav select {
  border: 0;
  background: transparent;
  min-height: 44px;
  color: var(--ink);
  padding: 8px;
}
a:hover,
button:hover {
  color: var(--petrol);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 14px 23px;
  border-radius: 100px;
  background: var(--petrol);
  color: var(--surface);
  min-height: 48px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.pill:hover {
  background: #245a66;
  color: var(--surface);
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 475px;
  padding: 56px 0 62px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sage);
  margin: 0 0 25px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  color: var(--ink);
  font-size: clamp(44px, 4.9vw, 64px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.05;
  max-width: 610px;
  margin-bottom: 24px;
}
.intro {
  max-width: 410px;
  line-height: 1.6;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 26px;
}
.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
}
.garden {
  color: var(--ink);
  position: relative;
  max-width: 420px;
  justify-self: end;
}
.garden .plant-artwork {
  width: 100%;
  height: auto;
  display: block;
  mix-blend-mode: multiply;
  animation: arrive 0.8s ease both;
}
.leaderboard {
  padding-bottom: 20px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  margin-bottom: 26px;
}
.section-head .eyebrow {
  margin-bottom: 12px;
  font-size: 10px;
  color: var(--muted);
}
h2 {
  color: var(--ink);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
  line-height: 1.12;
}
.section-head p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.segments {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 100px;
  background: var(--layer);
}
.segments button {
  border: 0;
  background: transparent;
  white-space: nowrap;
  border-radius: 100px;
  padding: 12px 17px;
  color: var(--muted);
  font-size: 13px;
  min-height: 44px;
}
.segments button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px #15252b0d;
}
.search-wrap {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 10px;
  max-width: 320px;
  width: 100%;
}
.search-wrap span {
  font-size: 30px;
  line-height: 1;
  color: var(--muted);
}
input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--ink);
  min-height: 48px;
  min-width: 0;
  font-size: 13px;
}
input::placeholder {
  color: var(--muted);
}
.podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.podium:empty {
  display: none;
}
.leader-card {
  padding: 25px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  min-width: 0;
  animation: arrive 0.5s ease both;
}
.leader-card:nth-child(2) {
  animation-delay: 0.05s;
}
.leader-card:nth-child(3) {
  animation-delay: 0.1s;
}
.leader-card.winner {
  background: var(--petrol);
  color: var(--surface);
  border-color: var(--petrol);
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.position {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.winner .position {
  color: #e3e8e5;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--layer);
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--sage);
  text-transform: uppercase;
  flex: none;
}
.winner .avatar {
  background: #ffffff1a;
  color: var(--surface);
}
.handle {
  font-size: 19px;
  font-weight: 600;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.card-count {
  font-size: 53px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.card-unit {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.winner .card-unit {
  color: #e3e8e5;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
}
.ranking-table th {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 0 12px 15px;
  border-bottom: 1px solid var(--line);
}
.ranking-table th:first-child {
  width: 70px;
}
.ranking-table th:last-child {
  width: 180px;
  text-align: right;
}
.ranking-table td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.ranking-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: 19px;
}
.ranking-table td:first-child {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}
.person-cell span:last-child {
  overflow-wrap: anywhere;
  min-width: 0;
}
.person-cell .avatar {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.ranking-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  color: var(--muted);
  font-size: 11px;
}
.ranking-meta .text-link {
  font-size: 12px;
}
.share-status {
  color: var(--sage);
  font-size: 13px;
  text-align: right;
  min-height: 18px;
}
.status {
  min-height: 0;
}
.status:empty {
  display: none;
}
.status-message {
  padding: 60px 25px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  margin-bottom: 24px;
}
.status-message h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
}
.status-message p {
  font-size: 15px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 15px;
  line-height: 1.6;
}
.status-message button {
  margin-top: 10px;
}
.loading-ring {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 22px;
  border: 2px solid var(--line);
  border-top-color: var(--petrol);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.explanation {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 38px 0 48px;
  max-width: 830px;
}
.rule-mark {
  font-size: 65px;
  font-family: Georgia, serif;
  color: var(--sage);
  line-height: 1.2;
}
.explanation h2 {
  font-size: 27px;
}
.explanation p {
  line-height: 1.65;
  color: var(--muted);
  font-size: 15px;
  max-width: 650px;
}
.explanation .privacy {
  font-size: 12px;
  margin-bottom: 0;
}
.invitation {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 42px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.invitation .eyebrow {
  margin-bottom: 12px;
}
.invitation h2 {
  font-size: 37px;
  max-width: 650px;
}
.invitation p:not(.eyebrow) {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 34px 0;
  gap: 24px;
  font-size: 12px;
  color: var(--muted);
}
footer .brand {
  font-size: 25px;
}
footer p {
  margin: 0;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 15px;
}
.noscript {
  padding: 24px;
  text-align: center;
}
.noscript a {
  text-decoration: underline;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 900px) {
  .leader-card.winner {
    order: 2;
  }
  .leader-card:nth-child(2) {
    order: 1;
  }
  .leader-card:nth-child(3) {
    order: 3;
  }
  .leader-card.winner .card-count {
    font-size: 58px;
  }
}
@media (max-width: 800px) {
  .wrap {
    padding: 0 28px;
  }
  nav {
    gap: 14px;
  }
  .rules-link {
    display: none;
  }
  .hero {
    gap: 0;
    min-height: 405px;
    grid-template-columns: 1.4fr 1fr;
  }
  .garden {
    margin-right: 0;
  }
  h1 {
    font-size: 47px;
  }
  .intro {
    font-size: 15px;
  }
  .toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .search-wrap {
    max-width: none;
  }
  .segments {
    align-self: flex-start;
  }
  .leader-card {
    padding: 20px;
  }
  .card-count {
    font-size: 44px;
  }
  .section-head .text-link {
    font-size: 12px;
  }
  .invitation h2 {
    font-size: 30px;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 22px;
  }
  header {
    padding: 18px 0;
    gap: 10px;
  }
  header .brand {
    font-size: 26px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand-type {
    gap: 12px;
  }
  .grow-label {
    font-size: 13px;
  }
  nav {
    gap: 7px;
  }
  nav .pill {
    display: none;
  }
  .hero {
    position: relative;
    display: block;
    padding: 48px 0 44px;
    min-height: 0;
    overflow: hidden;
  }
  .hero > div:first-child {
    position: relative;
    z-index: 1;
  }
  h1 {
    font-size: 45px;
    max-width: 340px;
  }
  .intro {
    max-width: 300px;
    line-height: 1.6;
  }
  .garden {
    position: relative;
    width: 210px;
    margin: 20px auto 0;
    opacity: 1;
  }
  .section-head {
    padding-top: 26px;
    align-items: flex-start;
    display: block;
    margin-bottom: 16px;
  }
  .section-head h2 {
    font-size: 26px;
  }
  .section-head .text-link {
    margin-top: 9px;
  }
  .segments {
    width: 100%;
    justify-content: space-between;
  }
  .segments button {
    padding: 11px 10px;
    font-size: 12px;
    flex: 1;
  }
  .podium {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
  }
  .leader-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
    align-items: center;
    padding: 19px 20px;
    border-radius: 16px;
  }
  .card-top {
    margin: 0;
    grid-column: 1;
    gap: 14px;
    justify-content: start;
  }
  .card-top .position {
    order: 0;
    width: 22px;
  }
  .card-top .avatar {
    order: 1;
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
  .handle {
    grid-column: 1;
    margin: 0 0 0 36px;
    font-size: 16px;
  }
  .card-count {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    font-size: 34px;
  }
  .card-unit {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    text-align: right;
    font-size: 11px;
  }
  .ranking-table th:first-child {
    width: 34px;
  }
  .ranking-table th:last-child {
    width: 102px;
    letter-spacing: 0.06em;
    line-height: 1.6;
  }
  .ranking-table td,
  .ranking-table th {
    padding-left: 0;
    padding-right: 0;
  }
  .ranking-table td {
    font-size: 14px;
  }
  .person-cell {
    gap: 10px;
  }
  .person-cell .avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .ranking-meta {
    gap: 8px;
  }
  .ranking-meta span:first-child {
    flex-basis: 100%;
  }
  .explanation {
    grid-template-columns: 32px 1fr;
    gap: 14px;
    padding: 28px 0 32px;
  }
  .rule-mark {
    font-size: 40px;
  }
  .explanation h2 {
    font-size: 24px;
  }
  .explanation p {
    font-size: 14px;
  }
  .invitation {
    display: block;
    padding: 32px 0;
  }
  .invitation h2 {
    font-size: 32px;
  }
  .invitation .pill {
    margin-top: 24px;
  }
  footer {
    flex-wrap: wrap;
    padding: 26px 0;
    gap: 18px;
  }
  footer p {
    order: 3;
    width: 100%;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 360px) {
  .segments button {
    font-size: 11px;
    padding: 11px 7px;
  }
  .wrap {
    padding-inline: 18px;
  }
  .ranking-table th:last-child {
    width: 92px;
  }
}

/* Pin every text role to the product, including embedded previews in dark hosts. */
p,
h1,
h2,
h3,
a,
button,
input,
select,
th,
td,
caption {
  font-family: Hanken, system-ui, sans-serif;
}
h3 {
  color: var(--ink);
}
.leader-card .handle {
  color: inherit;
}
footer p {
  font-family: Georgia, serif;
}


.sort-header { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: .5rem 0; white-space: nowrap; }
.sort-header:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
th[aria-sort="descending"] { color: #245a50; }
#ranking-list { overflow-x: auto; }
.ranking-table { min-width: 540px; }
.card-count { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
