:root {
  color-scheme: dark;
  --wc-bg: #07130f;
  --wc-bg-soft: #0d1d18;
  --wc-ink: #f7f4eb;
  --wc-muted: rgba(247, 244, 235, 0.68);
  --wc-faint: rgba(247, 244, 235, 0.48);
  --wc-line: rgba(247, 244, 235, 0.16);
  --wc-panel: rgba(255, 255, 255, 0.06);
  --wc-panel-strong: rgba(255, 255, 255, 0.1);
  --wc-gold: #f4c95d;
  --wc-green: #24b47e;
  --wc-blue: #4aa3ff;
  --wc-red: #ff5d5d;
  --wc-radius: 8px;
  --wc-shadow: 0 24px 90px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--wc-bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 22% 12%, rgba(36, 180, 126, 0.18), transparent 32%),
    radial-gradient(circle at 78% 18%, rgba(74, 163, 255, 0.15), transparent 30%),
    linear-gradient(140deg, #06100d 0%, var(--wc-bg-soft) 48%, #08100f 100%);
  color: var(--wc-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 78%);
}

a {
  color: inherit;
}

.wc-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 28px 18px 56px;
}

.wc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.wc-brand {
  color: var(--wc-ink);
  font-size: 0.96rem;
  font-weight: 950;
  text-decoration: none;
}

.wc-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.wc-nav a,
.wc-pill,
.wc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 244, 235, 0.78);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.wc-nav a[aria-current="page"] {
  background: var(--wc-ink);
  color: #07130f;
}

.wc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.wc-eyebrow {
  color: var(--wc-gold);
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wc-title {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--wc-ink);
  font-size: clamp(2.5rem, 8vw, 5.9rem);
  line-height: 0.9;
  font-weight: 950;
}

.wc-copy {
  max-width: 720px;
  color: var(--wc-muted);
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.55;
}

.wc-stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 34px;
}

.wc-stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background: linear-gradient(180deg, var(--wc-panel-strong), var(--wc-panel));
  box-shadow: var(--wc-shadow);
}

.wc-stat strong {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;
}

.wc-stat span {
  display: block;
  margin-top: 7px;
  color: var(--wc-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wc-section {
  margin-top: 34px;
}

.wc-section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.wc-section h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
}

.wc-section-header p {
  max-width: 620px;
  margin: 0;
  color: var(--wc-muted);
  font-size: 0.93rem;
  line-height: 1.45;
}

.wc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wc-card {
  min-width: 0;
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--wc-shadow);
  backdrop-filter: blur(14px);
}

.wc-card-pad {
  padding: 16px;
}

.wc-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background: rgba(255, 255, 255, 0.045);
}

.wc-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.wc-table th,
.wc-table td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--wc-line);
  text-align: left;
  vertical-align: top;
}

.wc-table th {
  color: var(--wc-faint);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wc-table td {
  color: rgba(247, 244, 235, 0.88);
  font-size: 0.9rem;
  line-height: 1.4;
}

.wc-table tr:last-child td {
  border-bottom: 0;
}

.wc-muted {
  color: var(--wc-muted);
}

.wc-flag {
  margin-right: 7px;
}

.wc-team-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.wc-team-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--wc-line);
  color: rgba(247, 244, 235, 0.9);
  font-weight: 800;
}

.wc-team-list small,
.wc-small {
  color: var(--wc-faint);
  font-size: 0.75rem;
  font-weight: 850;
}

.wc-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.wc-filter-row button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--wc-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.wc-filter-row button.is-active {
  background: var(--wc-ink);
  color: #07130f;
}

.wc-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.wc-field {
  display: grid;
  gap: 7px;
}

.wc-field label {
  color: var(--wc-faint);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wc-input,
.wc-select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background: rgba(255, 255, 255, 0.055);
  color: var(--wc-ink);
  font: inherit;
  font-size: 0.92rem;
  outline: 0;
}

.wc-select option {
  color: #07130f;
}

.wc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--wc-radius);
  background: var(--wc-ink);
  color: #07130f;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 950;
  cursor: pointer;
}

.wc-button.secondary {
  border-color: var(--wc-line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--wc-ink);
}

.wc-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.wc-status {
  min-height: 38px;
  margin-top: 12px;
  color: var(--wc-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.wc-status strong {
  color: var(--wc-ink);
}

.wc-number {
  font-variant-numeric: tabular-nums;
}

.wc-trend-good {
  color: #75e0ad;
}

.wc-trend-watch {
  color: var(--wc-gold);
}

.wc-empty {
  color: var(--wc-faint);
}

.wc-position-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  color: #f7f4eb;
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  opacity: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
}

.wc-position-tag.favorite {
  background: #176b45;
}

.wc-position-tag.runner-up {
  background: #55b96f;
  color: #06100d;
}

.wc-position-tag.third {
  background: #d7832f;
  color: #06100d;
}

.wc-position-tag.last {
  background: #b93636;
}

.wc-metric {
  display: grid;
  gap: 8px;
}

.wc-metric strong {
  font-size: clamp(1.65rem, 4vw, 2.7rem);
  line-height: 1;
}

.wc-meter {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 244, 235, 0.11);
}

.wc-meter span {
  display: block;
  width: var(--value, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wc-green), var(--wc-gold), var(--wc-red));
}

.wc-rank-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.wc-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--wc-line);
  color: rgba(247, 244, 235, 0.88);
  font-size: 0.9rem;
}

.wc-team-row span {
  min-width: 0;
}

.wc-flag-img {
  width: 28px;
  aspect-ratio: 3 / 2;
  display: inline-block;
  margin-right: 8px;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 235, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  vertical-align: -5px;
}

.wc-flag-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.wc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(12px);
}

.wc-modal-overlay[hidden] {
  display: none;
}

.wc-modal {
  position: relative;
  width: min(100%, 760px);
  max-height: min(86vh, 900px);
  overflow: auto;
  border: 1px solid var(--wc-line);
  border-radius: var(--wc-radius);
  background:
    radial-gradient(circle at 16% 0%, rgba(36, 180, 126, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(18, 37, 31, 0.98), rgba(8, 20, 17, 0.98));
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.45);
}

.wc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--wc-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.065);
  color: var(--wc-ink);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.wc-callout {
  padding: 15px 16px;
  border: 1px solid rgba(244, 201, 93, 0.35);
  border-radius: var(--wc-radius);
  background: rgba(244, 201, 93, 0.08);
  color: rgba(247, 244, 235, 0.84);
  line-height: 1.45;
}

@media (max-width: 840px) {
  .wc-topbar,
  .wc-hero,
  .wc-section-header {
    display: grid;
    justify-items: start;
  }

  .wc-nav {
    justify-content: flex-start;
  }

  .wc-stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wc-grid,
  .wc-control-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .wc-shell {
    padding: 22px 14px 44px;
  }

  .wc-stat {
    padding: 13px;
  }

  .wc-title {
    font-size: clamp(2.35rem, 16vw, 4.6rem);
  }
}
