@font-face {
  font-family: Amiri;
  src: url("/assets/AmiriRegular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Roboto;
  src: url("/assets/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("/assets/RobotoCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #161616;
  --muted: #565656;
  --line: #d3d3d3;
  --gray: #efefef;
  --soft: #f8f8f8;
  --display: Amiri, Georgia, serif;
  --label: "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; margin: 0;
  background: #fff; color: var(--ink); font: 16px/1.5 var(--body);
}
h1, h2, p { margin: 0; }
main { flex: 1; width: min(calc(100% - 2rem), 46rem); margin-inline: auto; padding-bottom: 3rem; }
.access { max-width: 28rem; }
.intro { text-align: center; }
.brand { display: block; width: clamp(11.75rem, 49vw, 16rem); height: auto; margin: 0 auto -.6rem; }
.title h1 {
  font: 400 clamp(2rem, 6.6vw, 3.5rem)/1.15 var(--display);
  text-wrap: balance;
}
.single-title h1 { font-size: clamp(1.85rem, 6vw, 2.65rem); }
.intro p {
  margin: .8rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font: 400 clamp(.96rem, 2.7vw, 1.12rem)/1.5 var(--body);
  text-wrap: balance;
}
.leaderboard { margin-top: clamp(1.75rem, 5vw, 2.6rem); }
.section-heading {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: .4rem .8rem; padding: .8rem .75rem;
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  font: 400 clamp(1.3rem, 4.4vw, 1.8rem)/1.15 var(--display);
  letter-spacing: .004em;
}
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
thead th {
  padding: .7rem .65rem;
  text-align: left;
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.rank-column, tbody td:first-child { width: clamp(2.9rem, 12vw, 5.25rem); text-align: center; }
.count-column, tbody td:last-child { width: clamp(4.7rem, 20vw, 8.5rem); text-align: right; }
tbody tr { border-bottom: 1px solid var(--line); }
tbody th, tbody td { padding: .55rem .65rem; text-align: left; }
tbody tr[data-podium] { background: var(--gray); }
tbody tr[data-podium="1"] { background: var(--ink); color: #fff; }
.rank { display: inline-grid; min-width: 1.6rem; min-height: 1.6rem; place-items: center; font: 700 1rem/1 var(--label); }
[data-podium] .rank { background: var(--ink); color: #fff; }
[data-podium="1"] .rank { background: #fff; color: var(--ink); }
[data-podium="1"] th, [data-podium="1"] td { padding-block: .78rem; }
.store { display: block; font-size: clamp(.86rem, 2.5vw, 1rem); font-weight: 750; overflow-wrap: anywhere; }
.area { display: block; color: var(--muted); font-size: .73rem; font-weight: 400; }
[data-podium="1"] .area { color: #e5e5e5; }
.count { white-space: nowrap; font: 700 clamp(1.22rem, 3.3vw, 1.75rem)/1 var(--label); }
.access-panel { margin-top: 1.5rem; padding: clamp(1rem, 4.5vw, 1.45rem); background: var(--soft); border: 1px solid var(--line); border-top: 2px solid var(--ink); }
.access-panel label { display: block; margin-bottom: .38rem; font-weight: 700; }
.access-panel input { display: block; width: 100%; min-height: 48px; padding: .55rem .7rem; border: 1px solid var(--ink); border-radius: 0; background: #fff; color: var(--ink); font: inherit; }
.action {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .55rem .85rem;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  font: 700 1rem/1.2 var(--label); letter-spacing: .05em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.action:hover { background: #383838; }
.access-panel button { width: 100%; margin-top: .8rem; }
.error { margin-top: .55rem; font-size: .88rem; font-weight: 700; }
.leaderboard-actions {
  display: flex; justify-content: center; align-items: center; gap: .65rem;
  width: 100%; margin: 1.2rem auto 0;
}
.leaderboard-actions > * { flex: 0 1 8rem; min-width: 0; }
.leaderboard-actions .action { width: 100%; border-radius: 999px; }
.action.outline { background: #fff; color: var(--ink); }
.action.outline:hover { background: var(--gray); }
.site-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1rem;
  color: var(--muted);
  text-align: center;
  font: 700 10px/1.5 var(--label);
  letter-spacing: .035em;
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
