/* Self-hosted fonts (SIL Open Font License): Barlow Condensed 500/600/700, Inter 300–600. No third-party requests. */
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/barlow-condensed-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/barlow-condensed-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:300;font-display:swap;src:url("/fonts/inter-latin-300-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/inter-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/inter-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/inter-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/inter-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/inter-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/inter-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url("/fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* WRCCA World Ranking by PROCRAWLER — public site. Mobile first; wider screens add columns, never remove content.
   Type: Barlow Condensed for headings, big figures and normal/large buttons. Inter for everything else,
   including tabs, tags, labels and small buttons. Colours: ink #1a1a1a and lime #d0f93b, light and dark. */

:root {
  --bg: #f4f4f2; --surface: #ffffff; --surface-2: #f8f8f6; --chip: #efefec;
  --ink: #1a1a1a; --text: #34363a; --muted: #6c6f76; --faint: #9a9da3; --line: #e7e7e3; --line-2: #d8d8d3;
  --lime: #d0f93b; --lime-soft: #f0fbc4; --lime-ink: #1a1a1a;
  --up: #138a4a; --down: #c8412b; --up-soft: #e3f4ea; --down-soft: #fbe7e3;
  --gold: #e9d79b; --silver: #d9d9d9; --bronze: #e4c1a0;
  --btn-bg: #1a1a1a; --btn-fg: #ffffff; --btn-ic-bg: #d0f93b; --btn-ic-fg: #1a1a1a;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow-1: 0 1px 2px rgba(20, 20, 18, 0.05), 0 1px 1px rgba(20, 20, 18, 0.03);
  --shadow-2: 0 1px 2px rgba(20, 20, 18, 0.06), 0 8px 24px -8px rgba(20, 20, 18, 0.12);
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --hdr-h: 64px; --edge: 8px; --gutter: 16px; --wrap: 1240px; --r: 4px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1011; --surface: #17181a; --surface-2: #1d1e21; --chip: #232528;
  --ink: #f3f3f1; --text: #d3d4d7; --muted: #9a9da4; --faint: #6f727a; --line: #26282b; --line-2: #34373b;
  --lime-soft: rgba(208, 249, 59, 0.12);
  --up: #4ade80; --down: #ff7a66; --up-soft: rgba(74, 222, 128, 0.12); --down-soft: rgba(255, 122, 102, 0.13);
  --btn-bg: #d0f93b; --btn-fg: #1a1a1a; --btn-ic-bg: #1a1a1a; --btn-ic-fg: #d0f93b;
  --glass: rgba(29, 30, 33, 0.66);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 12px 28px -10px rgba(0, 0, 0, 0.7);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --hdr-h: 76px; --edge: 12px; --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: var(--ink); color: var(--surface); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: var(--r); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 100px;
  font: 600 13px/1 var(--sans); text-decoration: none; transition: top 200ms var(--ease-out); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; color: var(--ink); letter-spacing: -0.005em; font-kerning: normal; }

/* buttons: Barlow Condensed for normal and large, Inter for small */
.btn { --h: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: var(--h); padding: 0 24px;
  border-radius: 100px; border: 1px solid transparent; font: 700 17px/1 var(--display); text-transform: uppercase; letter-spacing: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--shadow-2); }
.btn.arrow { padding-right: 7px; }
.btn .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-ic-bg); color: var(--btn-ic-fg);
  transition: transform 260ms var(--ease-out); }
.btn .ic svg { width: 16px; height: 16px; }
.btn.ghost { background: var(--glass); color: var(--ink); border-color: var(--line-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.small { --h: 40px; padding: 0 18px; font: 600 13px/1 var(--sans); text-transform: none; letter-spacing: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover .ic { transform: rotate(45deg); }
  .btn.ghost:hover { border-color: var(--ink); }
}

/* header */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; transition: transform 360ms var(--ease-out); }
.hdr-in { height: var(--hdr-h); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); align-items: center; gap: 8px; position: relative; }
.hdr-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); box-shadow: 0 1px 0 var(--line); }
.hdr[data-state="hidden"] { transform: translateY(-100%); }
.logo { justify-self: start; color: var(--ink); display: block; border-radius: var(--r); transition: opacity 200ms ease; }
.logo .wl { height: 26px; width: auto; aspect-ratio: 815 / 452; }
.hdr .menu { justify-self: center; }
.hdr .menu a { position: relative; z-index: 1; padding: 8px 11px; border-radius: 100px; font: 500 12.5px/1 var(--sans); color: var(--muted);
  text-decoration: none; white-space: nowrap; transition: color 200ms ease; -webkit-tap-highlight-color: transparent; }
.hdr .menu a[aria-current] { color: var(--ink); font-weight: 600; }
.seg.theme { justify-self: end; }
.seg.theme button { padding: 0; width: 32px; height: 28px; display: grid; place-items: center; }
.seg.theme svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .hdr .menu a:not([aria-current]):hover { color: var(--ink); } .logo:hover { opacity: 0.7; } }
@media (max-width: 379px) { .hdr .menu a { padding: 7px 8px; font-size: 12px; } .logo .wl { height: 22px; } .seg.theme button { width: 28px; } .hdr-in { gap: 6px; } }
@media (max-width: 339px) { .hdr .menu a { padding: 7px 6px; font-size: 11px; } .logo .wl { height: 20px; } .seg.theme button { width: 26px; } }
@media (min-width: 400px) { .logo .wl { height: 28px; } }
@media (min-width: 768px) { .hdr .menu a { padding: 9px 18px; font-size: 13.5px; } .logo .wl { height: 34px; } .seg.theme button { width: 38px; height: 32px; } .seg.theme svg { width: 17px; height: 17px; } }
/* view transitions (theme switch, and page to page): the page crossfades; the header, the menu highlight and the menu
   links (named in export_html.py) are layers of their own, so the highlight slides to the new page's item under the text */
@view-transition { navigation: auto; types: page; }
.hdr { view-transition-name: hdr; }
.hdr .menu:has(a[aria-current]) .thumb { view-transition-name: nav-thumb; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 320ms; animation-timing-function: var(--ease-out); }
/* page to page, the highlight is the same pill on both pages, so it slides solid instead of crossfading; it only fades
   when one page has none. A theme switch keeps the crossfade, since the pill changes colour. */
html:active-view-transition-type(page)::view-transition-old(nav-thumb) { display: none; }
html:active-view-transition-type(page)::view-transition-new(nav-thumb) { animation: none; height: 100%; }   /* follow the width change, don't grow taller */
html:active-view-transition-type(page)::view-transition-old(nav-thumb):only-child { display: block; }
html:active-view-transition-type(page)::view-transition-new(nav-thumb):only-child { animation: vt-fade-in 320ms var(--ease-out); }
@keyframes vt-fade-in { from { opacity: 0; } }

/* hero */
.hero { padding: calc(var(--hdr-h) + var(--edge)) var(--edge) 0; }
.hero-card { position: relative; overflow: hidden; isolation: isolate; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1), 0 0 0 1px var(--line);
  padding: 44px 0 20px; }
.hero-inner { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); text-align: center; container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; }
.hero-title { margin: 0; font-weight: 700; font-synthesis: none; line-height: 0.86; font-size: 22.5cqi; letter-spacing: -0.012em; }
.hero-title span { display: block; }
.hero-title span:last-child { font-size: 0.545em; }
.sponsor { display: block; width: 148px; margin-top: 18px; color: var(--ink); border-radius: var(--r); }
/* the hover grow sits on the logo itself: the link carries the page-load animation, which would hold its transform */
.sponsor .pc, .foot-pc .pc { width: 100%; height: auto; aspect-ratio: 240 / 94; transition: transform 380ms var(--ease-out); transform-origin: 50% 50%; }
.sponsor:active .pc, .foot-pc:active .pc { transform: scale(0.98); transition-duration: 140ms; }
@media (hover: hover) and (pointer: fine) { .sponsor:hover .pc, .foot-pc:hover .pc { transform: scale(1.05); } }
.hero .lede { margin: 22px 0 0; max-width: 34ch; font-size: 16px; line-height: 1.55; color: var(--ink); text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.actions .btn.arrow { padding-left: 46px; justify-content: space-between; }

.leaders-wrap { margin-top: 44px; }
.rule-title { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto 14px; padding-inline: var(--gutter); text-align: center;
  font: 600 12.5px/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.leaders { list-style: none; margin: 0; padding: 4px var(--gutter) 12px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.leaders::-webkit-scrollbar { display: none; }
.leaders li { flex: 0 0 min(76%, 290px); scroll-snap-align: start; animation: rise 560ms var(--ease-out) both; animation-delay: calc(160ms + var(--i) * 50ms); }
.leader { width: 100%; height: 100%; text-align: left; display: grid; gap: 14px; padding: 16px; border-radius: var(--r); border: 0; cursor: pointer;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  -webkit-tap-highlight-color: transparent; transition: transform 220ms var(--ease-out), box-shadow 220ms ease, background-color 220ms ease; }
.leader:active { transform: scale(0.98); }
.leader .lt { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.leader .cls { min-width: 0; font: 600 11.5px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.leader .no { flex: none; white-space: nowrap; font: 600 11px/1 var(--sans); padding: 5px 8px; border-radius: 100px; background: var(--gold); color: #1a1a1a; }
.leader .lw { display: flex; align-items: center; gap: 12px; min-width: 0; }
.leader .nm { display: grid; min-width: 0; }
.leader .name { font: 600 15px/1.25 var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader .ln { font: 500 12px/1.4 var(--sans); color: var(--muted); }
.leader .lp { display: flex; align-items: baseline; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.leader .lp b { font: 700 30px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.005em; }
.leader .lp small { font: 500 12px/1 var(--sans); color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .leader:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow-2); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.hero-inner > * { animation: rise 560ms var(--ease-out) both; }
.hero-inner > :nth-child(2) { animation-delay: 40ms; }
.hero-inner > :nth-child(3) { animation-delay: 80ms; }
.hero-inner > :nth-child(4) { animation-delay: 120ms; }
.hero-inner > :nth-child(5) { animation-delay: 160ms; }

@media (min-width: 640px) {
  .hero-title { font-size: 11.4cqi; }
  .hero-title span { display: inline; }
  .hero-title span:last-child { font-size: 1em; }
  .hero .lede { max-width: 46ch; font-size: 17px; }
  .sponsor { width: 168px; margin-top: 22px; }
  .leaders li { flex-basis: 260px; }
  .actions { display: flex; flex-wrap: wrap; justify-content: center; width: auto; }
  .actions .btn.arrow { padding-left: 24px; justify-content: center; }
}
@media (min-width: 768px) {
  .hero-card { padding-top: 72px; padding-bottom: 28px; }
    .hero .lede { margin-top: 26px; font-size: 18px; }
  .actions { margin-top: 32px; gap: 12px; }
  .btn { --h: 54px; font-size: 18px; }
  .btn.arrow { padding-left: 28px; }
  .btn .ic { width: 40px; height: 40px; }
  .leaders-wrap { margin-top: 72px; }
}
@media (min-width: 1100px) {
  .hero-title { font-size: min(10.6cqi, 150px); }
  .sponsor { width: 190px; }
  .leaders { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; }
}

/* avatars */
.av { --s: 36px; flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--chip);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent); }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.ph { font: 600 12.5px/1 var(--sans); letter-spacing: 0.02em; color: var(--muted); }
.av.lg { --s: 44px; }
.av.lg.ph { font-size: 14px; }

/* flags (flag-icons, MIT) */
.natc { display: inline-flex; align-items: center; gap: 6px; }
.flag { width: 18px; height: 13px; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 10%, transparent); }

/* sections */
.sec { padding: 72px 0 0; }
.sec:last-of-type { padding-bottom: 80px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 22px; }
.sec-head h2 { margin: 0; font-size: clamp(44px, 12vw, 80px); line-height: 0.88; }
.sec-sub { margin: 10px 0 0; color: var(--muted); font-size: 14px; max-width: 60ch; }
@media (min-width: 768px) { .sec { padding-top: 112px; } .sec:last-of-type { padding-bottom: 120px; } .sec-head { margin-bottom: 28px; } .sec-sub { font-size: 15px; } }

/* list switch (segmented) */
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 100px; background: var(--chip); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 8px 14px; border-radius: 100px; cursor: pointer; white-space: nowrap;
  font: 500 13px/1 var(--sans); color: var(--muted); transition: color 200ms ease; -webkit-tap-highlight-color: transparent; }
.seg button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.seg .thumb { position: absolute; top: 3px; bottom: 3px; left: 0; border-radius: 100px; background: var(--surface); box-shadow: var(--shadow-1);
  transition: transform 380ms var(--ease-out), width 380ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .seg button[aria-pressed="false"]:hover { color: var(--ink); } }

/* class tabs (underline with counts) */
.tabs-wrap { position: relative; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent); }
.tabs-wrap::-webkit-scrollbar { display: none; }
.tabs { position: relative; display: flex; gap: 24px; min-width: max-content; border-bottom: 1px solid var(--line); }
.tabs button { position: relative; border: 0; background: none; padding: 12px 0 14px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 7px;
  font: 500 15px/1 var(--sans); color: var(--muted); transition: color 200ms ease; -webkit-tap-highlight-color: transparent; }
.tabs button .n { font: 500 12.5px/1 var(--sans); color: var(--faint); font-variant-numeric: tabular-nums; transition: color 200ms ease; }
.tabs button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.tabs button[aria-selected="true"] .n { color: var(--ink); }
.tabs .bar { position: absolute; bottom: -1px; left: 0; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 420ms var(--ease-out), width 420ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tabs button[aria-selected="false"]:hover { color: var(--ink); } }
@media (min-width: 768px) { .tabs { gap: 32px; } .tabs-wrap { margin: 0; padding: 0; -webkit-mask-image: none; mask-image: none; } }

/* ranking board */
.board-card { margin-top: 16px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); overflow: hidden; }
.board-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 16px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font: 400 13px/1.3 var(--sans); color: var(--muted); }
.meta b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.meta .cls { font: 600 12px/1 var(--sans); color: var(--surface); background: var(--ink); padding: 6px 10px; border-radius: 100px; }
.search { position: relative; display: flex; align-items: center; width: 100%; }
.search svg { position: absolute; left: 13px; width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.search input { width: 100%; height: 42px; padding: 0 14px 0 38px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface-2);
  font: 400 14px/1 var(--sans); color: var(--ink); transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 8%, transparent); }
.cols { display: none; }
.nomove .cols span:nth-child(2) { visibility: hidden; }
.board { list-style: none; margin: 0; padding: 0; transition: opacity 130ms ease, transform 130ms ease; }
.board.swap { opacity: 0; transform: translateY(4px); }
.board > li { border-top: 1px solid var(--line); }
.row { width: 100%; border: 0; background: none; cursor: pointer; text-align: left; display: grid; align-items: center; gap: 12px;
  grid-template-columns: 30px minmax(0, 1fr) auto 16px; padding: 12px 14px; -webkit-tap-highlight-color: transparent; transition: background-color 160ms ease; }
.row:focus-visible { outline-offset: -2px; border-radius: 0; }
.pos { display: grid; place-items: center; }
.pos span { min-width: 28px; height: 28px; padding: 0 4px; display: grid; place-items: center; border-radius: 100px;
  font: 600 14px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.p1 .pos span { background: var(--gold); color: #1a1a1a; }
.p2 .pos span { background: var(--silver); color: #1a1a1a; }
.p3 .pos span { background: var(--bronze); color: #1a1a1a; }
.mvc, .nat, .cnt { display: none; }
.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nm { display: grid; gap: 2px; min-width: 0; }
.name { font: 600 15px/1.25 var(--sans); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font: 400 12.5px/1.35 var(--sans); color: var(--muted); }
.sub > span + span::before { content: "·"; margin-right: 8px; color: var(--faint); }
.pts { font: 600 15px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; text-align: right; }
.chev { color: var(--faint); display: grid; place-items: center; transition: transform 320ms var(--ease-out), color 200ms ease; }
.chev svg { width: 14px; height: 14px; }
.row[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--ink); }
.mv { display: inline-flex; align-items: center; justify-content: center; gap: 3px; min-width: 36px; padding: 4px 7px; border-radius: 100px;
  font: 600 11.5px/1 var(--sans); font-variant-numeric: tabular-nums; }
.mv svg { width: 7px; height: 7px; }
.mv.up { color: var(--up); background: var(--up-soft); }
.mv.down { color: var(--down); background: var(--down-soft); }
.mv.same { color: var(--faint); }
.mv.new { font-size: 10px; letter-spacing: 0.05em; text-transform: uppercase; background: var(--lime-soft); color: var(--ink); }
.sub .mv { min-width: 0; padding: 2px 6px; }
.mvkey { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mv { white-space: nowrap; }
.mvkey .mv { min-width: 0; padding: 3px 5px; }
.sub .mv.same { display: none; }
.sub > .mv::before { display: none; }
@media (hover: hover) and (pointer: fine) { .row:hover { background: var(--surface-2); } .row:hover .chev { color: var(--ink); } }

.detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
.detail[data-open="true"] { grid-template-rows: 1fr; }
.detail > div { overflow: hidden; min-height: 0; }
.detail .inner { padding: 14px 14px 16px; opacity: 0; transform: translateY(-4px); transition: opacity 220ms ease, transform 300ms var(--ease-out); }
.detail[data-open="true"] .inner { opacity: 1; transform: none; transition-delay: 60ms; }
.res-head { display: flex; justify-content: space-between; gap: 12px; padding: 0 2px 10px; font: 600 11px/1.2 var(--sans); letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--faint); }
.res { list-style: none; margin: 0; padding: 0; background: var(--surface-2); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); }
.res li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d g" "ev ev" "pl p"; gap: 6px 12px; padding: 12px 14px;
  font-size: 13px; font-variant-numeric: tabular-nums; }
.res li + li { border-top: 1px solid var(--line); }
.res li.out { opacity: 0.5; }
.res .d { grid-area: d; color: var(--muted); }
.res .ev { grid-area: ev; min-width: 0; justify-self: start; }
.res .ev a { color: var(--ink); font-weight: 500; text-decoration: none; }
.res .ev svg { display: inline-block; vertical-align: 1px; width: 10px; height: 10px; margin-left: 5px; color: var(--faint); }
.res .g { grid-area: g; justify-self: end; }
.res .pl { grid-area: pl; color: var(--muted); }
.res .p { grid-area: p; justify-self: end; font-weight: 600; color: var(--ink); }
.res small { font-size: inherit; font-weight: 400; color: var(--muted); }
.res-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .res .ev a:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; } }
.more { display: flex; justify-content: center; padding: 0 14px; }
.more:not(:empty) { padding: 16px 14px 18px; border-top: 1px solid var(--line); }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); font-size: 14px; }
.empty b { display: block; color: var(--ink); font: 700 26px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }

@media (min-width: 768px) {
  .board-top { padding: 16px 20px; }
  .search { width: 300px; }
  .cols, .row { grid-template-columns: 52px 64px minmax(0, 1fr) 84px 84px 110px 20px; gap: 16px; padding-inline: 20px; }
  .cols { display: grid; padding-block: 11px; background: var(--surface-2); border-top: 1px solid var(--line);
    font: 600 11px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
  .cols span:nth-child(n+4):nth-child(-n+6) { text-align: right; }
  .cols span:first-child { text-align: center; }
  .row { padding-block: 13px; }
  .mvc, .nat, .cnt { display: block; }
  .nat, .cnt { text-align: right; font: 400 14px/1 var(--sans); color: var(--text); font-variant-numeric: tabular-nums; }
  .nat { display: flex; justify-content: flex-end; }
  .mvc { display: flex; justify-content: center; }
  .cols span:nth-child(2) { text-align: center; }
  .sub { display: none; }
  .pts { font-size: 16px; }
  .av { --s: 38px; }
  .detail .inner { padding: 16px 20px 20px 152px; }
  .res li { grid-template-columns: 104px minmax(0, 1fr) 70px 70px 84px; grid-template-areas: "d ev g pl p"; align-items: center; padding: 11px 16px; }
  .res .g { justify-self: start; }
  .res .pl { text-align: right; }
}

/* grade tags */
.grade { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; padding: 4px 8px; border-radius: 100px;
  font: 600 11px/1.1 var(--sans); letter-spacing: 0.03em; white-space: nowrap; border: 1px solid transparent; }
.grade.W2000, .grade.C1000 { background: var(--ink); color: var(--surface); }
.grade.N500, .grade.N250, .grade.N100 { border-color: var(--ink); color: var(--ink); }

/* how it works */
.how { display: grid; gap: 12px; }
.card { container-type: inline-size; background: var(--surface); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-1), 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.card header { display: flex; align-items: center; gap: 12px; }
.card .ic { width: 36px; height: 36px; border-radius: var(--r); background: var(--chip); color: var(--ink); display: grid; place-items: center; flex: none; }
.card .ic svg { width: 18px; height: 18px; }
.card h3 { margin: 0; font: 700 22px/1 var(--display); text-transform: uppercase; color: var(--ink); }
.card p { margin: 0; font-size: 14px; color: var(--muted); }
.card .big { margin: 6px 0 0; font: 700 60px/0.9 var(--display); color: var(--ink); text-transform: uppercase; letter-spacing: -0.01em; }
.card .big small { display: block; margin-top: 8px; font: 500 13px/1.3 var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; }
.rates { display: grid; grid-template-columns: repeat(3, max-content); column-gap: clamp(14px, 6cqi, 44px); row-gap: 8px; margin-top: 6px; }
.rates span { display: grid; gap: 6px; }
.rates b { font: 700 clamp(26px, 12cqi, 46px)/0.9 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.rates small { font: 500 12.5px/1.2 var(--sans); color: var(--muted); }
.grades { list-style: none; margin: 4px 0 0; padding: 0; }
.grades li { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--text); }
.grades li b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.how-foot { margin-top: 20px; display: flex; justify-content: center; }
@media (min-width: 640px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card.wide { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 899px) { .how .card.pp { grid-column: 1 / -1; } }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .card { padding: 24px; }
  .card.wide .grades { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .card.wide .grades li { grid-template-columns: 1fr; gap: 8px; align-content: start; justify-items: start; padding: 14px 0 0; }
  .card.wide .grades li b { font: 700 28px/1 var(--display); } }
@media (min-width: 1180px) { .how { grid-template-columns: 1.5fr 1.25fr 1fr 1fr; } .card.wide { grid-column: auto; }
  .card.wide .grades { display: block; } .card.wide .grades li { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 9px 0; }
  .card.wide .grades li b { font: 600 14px/1 var(--sans); } }

/* text pages */
.hero.page .hero-card { padding-bottom: 44px; }
.hero.page .hero-inner > * { animation: none; }
.page-title { margin: 0; font-size: clamp(54px, 15vw, 120px); line-height: 0.86; }
.hero.page .lede { margin: 18px 0 0; max-width: 52ch; color: var(--ink); font-size: 16px; text-wrap: balance; }
.doc { padding: 32px 0 88px; display: grid; gap: 24px; }
.toc { display: none; }
.toc-m { background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.toc-m summary { list-style: none; cursor: pointer; padding: 14px 16px; font: 600 14px/1 var(--sans); color: var(--ink); display: flex; justify-content: space-between; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: "+"; font-weight: 400; color: var(--muted); transition: transform 240ms var(--ease-out); }
.toc-m[open] summary::after { transform: rotate(45deg); }
/* open and close by height where the browser can animate to auto; elsewhere it snaps as before.
   .snap: closed by a link tap, so the scroll that follows measures the page with the box already shut */
@supports (interpolate-size: allow-keywords) {
  .toc-m { interpolate-size: allow-keywords; }
  .toc-m::details-content { block-size: 0; opacity: 0; overflow: clip;
    transition: block-size 280ms var(--ease-out), opacity 200ms ease, content-visibility 280ms allow-discrete; }
  .toc-m[open]::details-content { block-size: auto; opacity: 1; }
  .toc-m.snap::details-content { transition: none; }
}
.toc-m nav { display: grid; padding: 0 8px 10px; }
.toc-m a, .toc a { font: 500 13.5px/1.35 var(--sans); color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: var(--r); transition: background-color 160ms ease, color 160ms ease; }
.toc a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.toc p { margin: 0 0 8px; padding: 0 10px; font: 600 11px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
@media (hover: hover) and (pointer: fine) { .toc a:hover, .toc-m a:hover { color: var(--ink); } }
@media (min-width: 1024px) {
  .doc { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; padding-top: 56px; padding-bottom: 120px; }
  .doc.single { grid-template-columns: minmax(0, 1fr); }
  .toc { display: grid; gap: 2px; position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; }
  .toc-m { display: none; }
}
.prose { max-width: 72ch; min-width: 0; }
.doc.single .prose { margin-inline: auto; }
.prose > :first-child { margin-top: 0; }
.prose h1 { display: none; }
.prose h2 { font: 700 32px/1 var(--display); text-transform: uppercase; color: var(--ink); margin: 52px 0 14px; }
.prose h3 { font: 600 16px/1.3 var(--sans); color: var(--ink); margin: 28px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; color: var(--text); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 20px; margin: 12px 0; }
.prose li { margin: 6px 0; padding-left: 4px; }
.prose li::marker { color: var(--faint); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose a { color: var(--ink); text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose code { font-size: 0.9em; background: var(--chip); padding: 1px 5px; border-radius: var(--r); }
.prose table { display: block; overflow-x: auto; max-width: 100%; width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; margin: 18px 0 24px;
  background: var(--surface); border-radius: var(--r); box-shadow: 0 0 0 1px var(--line); }
.prose th { text-align: left; font: 600 11px/1.2 var(--sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--faint); padding: 12px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.prose th:first-child { border-top-left-radius: var(--r); } .prose th:last-child { border-top-right-radius: var(--r); }
.prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; color: var(--text); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.todo { background: var(--lime); color: #1a1a1a; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
@media (min-width: 768px) { .prose h2 { font-size: 38px; margin-top: 64px; } .hero.page .hero-card { padding-bottom: 64px; } .hero.page .lede { font-size: 18px; } }

/* footer */
.foot { padding: 0 var(--edge) var(--edge); }
.foot-card { background: #1a1a1a; color: rgba(255, 255, 255, 0.66); border-radius: var(--r); padding: 36px var(--gutter) 22px; }
[data-theme="dark"] .foot-card { background: #0a0a0b; box-shadow: 0 0 0 1px var(--line); }
.foot-top, .foot-bottom { max-width: var(--wrap); margin: 0 auto; }
.foot-top { display: grid; gap: 28px; }
.foot-name { margin: 0; color: #fff; font-size: 40px; line-height: 0.9; }
.foot-brand { display: grid; justify-items: start; }
.foot-op { margin: 14px 0 0; max-width: 52ch; font-size: 14px; line-height: 1.55; }
.foot-sp { display: grid; justify-items: start; gap: 14px; margin-top: 32px; }
.foot-sp p { margin: 0; font-size: 14px; line-height: 1.55; }
.foot-pc { display: block; width: 132px; color: #fff; border-radius: var(--r); transform-origin: 0 50%; }
.foot-pc .pc { transform-origin: 0 50%; }
.foot-brand a:not(.foot-pc) { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
.foot a { transition: color 180ms ease, text-decoration-color 180ms ease; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; align-content: start; }
.foot nav a { color: #fff; text-decoration: none; font: 500 14px/1.4 var(--sans); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 36px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; }
.foot-bottom a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .foot a:not(.foot-pc):hover { color: #ffffffcc; text-decoration-color: #ffffffcc; } }
@media (min-width: 768px) {
  .foot-card { padding: 56px 40px 26px; }
  .foot-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .foot-name { font-size: 56px; }
}

/* motion and transparency preferences */
/* reduced motion: nothing slides, grows, rotates or scrolls smoothly; fades and colour changes stay */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  @keyframes rise { from { opacity: 0; } }
  .hero-inner > *, .leaders li { animation-duration: 300ms; animation-delay: 0ms; }
  .skip, .hdr, .seg .thumb, .tabs .bar, .detail, .chev, .btn .ic, .toc-m summary::after, .sponsor .pc, .foot-pc .pc { transition: none; }
  .btn, .leader { transition-property: background-color, border-color, color, box-shadow; }
  .btn:active, .leader:active, .leader:hover, .btn.primary:hover .ic, .sponsor:active .pc, .foot-pc:active .pc, .sponsor:hover .pc, .foot-pc:hover .pc { transform: none; }
  .board { transition: opacity 130ms ease; }
  .board.swap, .detail .inner { transform: none; }
  .detail .inner { transition: opacity 220ms ease; }
  .toc-m::details-content { transition: opacity 200ms ease, content-visibility 200ms allow-discrete; }
  ::view-transition-group(*) { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .leader,   .hdr-bg { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .hdr-bg { background: var(--surface); }
  .seg { background: var(--chip); }
}
