:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #f4f4f0;
  background: #0b0b0b;
  color-scheme: dark;
  font-synthesis: none;
  --st-bg: #0b0b0b;
  --st-panel: #1c1c1c;
  --st-rule: #414141;
  --st-muted: #bdbdb7;
  --st-rank-width: 62px;
  --st-player-width: 190px;
  --st-display: "Arial Narrow", "Liberation Sans Narrow", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
[hidden] { display: none !important; }

.st-shell { max-width: 1440px; margin: auto; padding: 0 clamp(16px, 4vw, 56px); }
.st-nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--st-rule);
}
.st-wordmark { display: inline-block; }
.st-logo-crop {
  --logo-size: 56px;
  position: relative;
  display: block;
  width: var(--logo-size);
  height: calc(var(--logo-size) * .88139);
  overflow: hidden;
}
.st-logo-crop img {
  position: absolute;
  width: calc(var(--logo-size) * 2.22851);
  height: auto;
  left: calc(var(--logo-size) * -.68118);
  top: calc(var(--logo-size) * -.59956);
}
.st-nav-links { display: flex; align-items: center; gap: clamp(12px, 3vw, 26px); }
.st-back { font-size: 14px; text-decoration: none; padding: 12px 0; }
.st-back:hover, .st-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.st-private {
  color: var(--st-muted);
  font-size: 11px;
  padding: 7px 10px;
  border: 1px solid var(--st-rule);
  border-radius: 4px;
}
.st-hero { container-type: inline-size; padding: clamp(28px, 5vw, 66px) 0 clamp(24px, 4vw, 44px); }
.st-eyebrow {
  margin: 0;
  color: var(--st-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.st-hero h1, .st-results-heading h2 {
  font-family: var(--st-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.03em;
}
.st-hero h1 {
  font-size: clamp(24px, 10cqi, 104px);
  line-height: .97;
  margin: 12px 0 14px;
}
.st-hero-description { color: var(--st-muted); font-size: 16px; line-height: 1.5; margin: 0; }
.st-workspace { min-width: 0; margin-bottom: 44px; }

.st-filters {
  padding: 20px 0 12px;
  border-block: 1px solid var(--st-rule);
}
.st-primary-filters, .st-secondary-filters { display: grid; gap: 14px; }
.st-primary-filters { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(142px, 19%)); margin-top: 0; }
.st-secondary-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 6px 0 12px; }
.st-field { min-width: 0; }
.st-field label, .st-sort label {
  display: block;
  color: var(--st-muted);
  font-size: 13px;
  font-weight: 600;
}
.st-field label { margin-bottom: 7px; }
.st-field select, .st-field input, .st-sort select, #st-sort-direction {
  color: #f4f4f0;
  background: var(--st-panel);
  border: 1px solid #545454;
  border-radius: 24px;
  min-height: 46px;
  padding: 9px 15px;
}
.st-field select, .st-field input { width: 100%; font-size: 16px; }
.st-field select, .st-sort select { padding-right: 24px; }
.st-field input::placeholder { color: #adada7; opacity: 1; }
.st-search-wrap { position: relative; }
.st-search-wrap svg { position: absolute; top: 15px; left: 15px; width: 16px; height: 16px; color: var(--st-muted); pointer-events: none; }
.st-search-wrap input { padding-left: 40px; }
.st-filter-actions { position: relative; margin-top: 7px; }
.st-more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}
.st-more summary::-webkit-details-marker { display: none; }
.st-more summary::before { content: '+'; color: var(--st-muted); font-size: 17px; width: 14px; }
.st-more[open] summary::before { content: '−'; }
.st-filter-count {
  color: var(--st-muted);
  border: 1px solid var(--st-rule);
  border-radius: 12px;
  padding: 2px 7px;
  font-size: 11px;
}
.st-reset {
  position: absolute;
  right: 0;
  top: 0;
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--st-muted);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.st-reset:hover, .st-more summary:hover { color: #fff; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.st-chips:empty { display: none; }
.st-chip {
  min-height: 38px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 5px 12px;
  color: #f4f4f0;
  background: var(--st-panel);
  border: 1px solid #545454;
  border-radius: 20px;
  font-size: 13px;
  text-align: left;
}
.st-chip:hover, #st-sort-direction:hover { background: #343434; }
.st-chip span { padding-left: 8px; color: var(--st-muted); }

.st-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 24px 0 18px;
}
.st-results-heading h2 {
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.05;
  margin: 0 0 8px;
}
.st-result-count {
  color: var(--st-muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.st-result-count strong { color: #f4f4f0; }
.st-sort { display: flex; align-items: center; gap: 8px; }
.st-sort label { white-space: nowrap; }
.st-sort select { min-width: 138px; font-size: 16px; }
#st-sort-direction { width: 46px; padding: 0; font-size: 18px; }

.st-compact-rank { display: none; }
.st-table-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; margin-bottom: 9px; }
.st-stats-guide { min-width: 0; margin: 0; font-size: 14px; line-height: 1.5; }
.st-stats-guide[open] { flex-basis: 100%; }
.st-stats-guide summary { display: list-item; width: fit-content; min-height: 44px; padding-block: 11px; }
.st-stats-guide p { max-width: 720px; margin: 0 0 14px; color: var(--st-muted); }
.st-stats-guide dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 24px; margin: 0 0 18px; }
.st-stats-guide dl div { padding-top: 10px; border-top: 1px solid var(--st-rule); }
.st-stats-guide dt { font-weight: 700; }
.st-stats-guide dd { margin: 3px 0 0; color: var(--st-muted); }

.st-scroll-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.st-scroll-actions { display: flex; gap: 8px; }
.st-scroll-actions button {
  min-width: 44px;
  min-height: 44px;
  color: #f4f4f0;
  background: var(--st-panel);
  border: 1px solid #545454;
  border-radius: 24px;
  font-size: 18px;
}
.st-scroll-actions button:not(:disabled):hover { background: #343434; }
.st-scroll-actions button:disabled { opacity: .5; cursor: default; }
.st-table-wrap {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  position: relative;
  border: 1px solid var(--st-rule);
  border-radius: 8px;
  scrollbar-color: #80807b var(--st-panel);
  scroll-padding-inline-start: calc(var(--st-rank-width) + var(--st-player-width));
}
.st-table {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.st-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.st-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #303030;
  color: #d1d1cb;
  border-bottom: 1px solid #5a5a5a;
  padding: 0;
}
.st-table thead button {
  width: 100%;
  min-height: 48px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 10px 12px;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.st-table thead button:hover { background: #414141; }
.st-table thead button:focus-visible { outline-offset: -4px; }
.st-table th[aria-sort]:not([aria-sort="none"]) { background: #3d3d3d; color: #fff; }
.st-sort-icon { margin-left: 4px; color: var(--st-muted); }
.st-table th[aria-sort]:not([aria-sort="none"]) .st-sort-icon { color: #fff; }

.st-table tbody th, .st-table td {
  height: 62px;
  padding: 10px 12px;
  background: #232323;
  color: #ddd;
  border-bottom: 1px solid #404040;
}
.st-table tbody tr:last-child > * { border-bottom: 0; }
.st-table .st-rank, .st-table .st-name { position: sticky; z-index: 2; }
.st-table thead .st-rank, .st-table thead .st-name { z-index: 4; }
.st-table .st-rank { left: 0; width: var(--st-rank-width); min-width: var(--st-rank-width); max-width: var(--st-rank-width); text-align: center; }
.st-table tbody .st-rank { font-weight: 700; }
.st-table .st-name {
  left: var(--st-rank-width);
  width: var(--st-player-width);
  min-width: var(--st-player-width);
  max-width: var(--st-player-width);
  overflow-wrap: anywhere;
  text-align: left;
  border-right: 1px solid #434343;
}
.st-table tbody .st-name { font-weight: 700; color: #f4f4f0; }
.st-player-country { display: block; color: var(--st-muted); font-size: 12px; font-weight: 400; margin-top: 3px; }
.st-table .st-score { border-left: 1px solid #434343; text-align: right; font-weight: 700; color: #f4f4f0; }
.st-table .st-group-start { border-left: 1px solid #5a5a5a; }
.st-table td.st-numeric, .st-table th.st-numeric button { text-align: right; }
.st-table td.st-rank { text-align: center; }
.st-table .st-team, .st-table .st-numeric { white-space: nowrap; }
.st-table td.st-team { padding-right: 20px; }
.st-height { white-space: nowrap; }
.st-sample-note { margin-top: 18px; color: #f4f4f0; font-size: 15px; line-height: 1.55; }
.st-sample-note p { margin: 0; }
.st-empty, .st-error { border: 1px solid var(--st-rule); border-radius: 8px; background: var(--st-panel); }
.st-empty { padding: 28px 18px; text-align: center; }
.st-empty h3 { margin: 0 0 7px; }
.st-empty p { color: var(--st-muted); margin: 0 0 14px; }
.st-empty button {
  padding: 9px 17px;
  min-height: 44px;
  border: 0;
  border-radius: 24px;
  background: #f4f4f0;
  color: #151515;
}
.st-error { color: var(--st-muted); padding: 14px 16px; margin: 0 0 16px; }

.st-method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 36px; }
.st-method h2 { font-size: 15px; line-height: 1.4; margin: 0 0 8px; }
.st-method p { color: var(--st-muted); font-size: 14px; line-height: 1.65; margin: 0; }
.st-method > div + div { border-left: 1px solid var(--st-rule); padding-left: 24px; }
.st-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--st-rule);
  padding: 20px 0 28px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--st-muted);
}
.st-footer a { text-decoration: none; }

.st-embedded .st-shell { max-width: none; padding: 0; }
.st-embedded .st-hero { padding: 0 0 clamp(20px, 3vw, 32px); }
.st-embedded .st-hero h1 { font-size: clamp(24px, 10cqi, 78px); }
.st-embedded .st-workspace { margin: 0; }

@media (max-width: 840px) {
  :root { --st-rank-width: 52px; --st-player-width: 132px; }
  .st-table thead .st-rank button { padding-inline: 7px; }
  .st-secondary-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  :root { --st-rank-width: 46px; --st-player-width: 112px; }
  .st-table .st-name { padding-inline: 9px; }
  .st-table thead .st-rank .st-sort-label { display: none; }
  .st-table thead .st-rank .st-compact-rank { display: inline; }
  .st-table thead .st-rank button { padding-inline: 5px; letter-spacing: 0; }
  .st-table thead .st-rank .st-sort-icon { margin-left: 2px; }
  .st-nav { min-height: 70px; }
  .st-logo-crop { --logo-size: 44px; }
  .st-primary-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-primary-filters > :first-child { grid-column: 1 / -1; }
  .st-filters { padding-top: 14px; }
  .st-primary-filters { gap: 12px; }
  .st-results-heading { flex-direction: column; align-items: stretch; gap: 12px; margin: 18px 0 10px; }
  .st-sort select { flex: 1; min-width: 0; }
  .st-method { grid-template-columns: 1fr; gap: 18px; }
  .st-method > div + div { border-left: 0; border-top: 1px solid var(--st-rule); padding: 16px 0 0; }
}
