:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --surface: #101f32;
  --surface-raised: #14263c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #f7f9fc;
  --muted: #91a3b9;
  --muted-light: #bfcbda;
  --blue: #53a8ff;
  --blue-strong: #248cff;
  --cyan: #5de1d7;
  --gold: #ffd166;
  --silver: #cad5e1;
  --bronze: #d8905f;
  --danger: #ff8b8b;
  --radius: 20px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 8% -10%, rgba(36, 140, 255, 0.2), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(93, 225, 215, 0.1), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.76);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand > span:last-child {
  display: grid;
  line-height: 1;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: linear-gradient(to bottom, #ff5e68 0 47%, #e8edf5 47% 100%);
  box-shadow: 0 0 0 5px rgba(83, 168, 255, 0.08);
}

.brand-mark::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 15px;
  left: 0;
  width: 100%;
  height: 4px;
  background: #172235;
}

.brand-mark span {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  width: 10px;
  height: 10px;
  border: 3px solid #172235;
  border-radius: 50%;
  background: #f7f9fc;
}

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-light);
  font-size: 0.78rem;
  font-weight: 650;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-join-link,
.header-history-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(83, 168, 255, 0.3);
  border-radius: 999px;
  background: rgba(36, 140, 255, 0.1);
  color: #dceeff;
  font-size: 0.76rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.header-history-link {
  min-height: 36px;
  padding-inline: 4px;
  border: 0;
  background: transparent;
  color: var(--muted-light);
}

.header-join-link:hover,
.header-history-link:hover {
  border-color: rgba(83, 168, 255, 0.62);
  background: rgba(36, 140, 255, 0.18);
  transform: translateY(-1px);
}

.header-join-link:focus-visible,
.header-history-link:focus-visible,
.social-link:focus-visible,
.story-jump-link:focus-visible,
.whatsapp-button:focus-visible,
.copy-code-button:focus-visible {
  outline: 3px solid rgba(83, 168, 255, 0.38);
  outline-offset: 3px;
}

.join-compact-label {
  display: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(93, 225, 215, 0.1);
}

.intro {
  position: relative;
  overflow: hidden;
  padding: 72px 0 58px;
}

.intro::after {
  content: "";
  position: absolute;
  top: -9rem;
  right: -8rem;
  width: 27rem;
  height: 27rem;
  border: 1px solid rgba(83, 168, 255, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 4rem rgba(83, 168, 255, 0.025),
    0 0 0 8rem rgba(83, 168, 255, 0.018);
  pointer-events: none;
}

.intro-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.9fr);
  align-items: end;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.19em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro-copy {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted-light);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 31, 50, 0.6);
  box-shadow: var(--shadow);
}

.summary div {
  min-width: 0;
  padding: 20px;
}

.summary div + div {
  border-left: 1px solid var(--line);
}

.summary div:nth-child(4) {
  border-top: 1px solid var(--line);
  border-left: 0;
}

.summary div:nth-child(5) {
  grid-column: span 2;
  border-top: 1px solid var(--line);
}

.summary dt {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary dd {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#last-update {
  font-size: 0.86rem;
  letter-spacing: -0.01em;
}

.rankings-section {
  padding: 42px 0 90px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  letter-spacing: -0.045em;
}

.ranking-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.search-field {
  width: min(100%, 320px);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(16, 31, 50, 0.78);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-field:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(83, 168, 255, 0.11);
}

.search-field svg {
  width: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.search-field input::placeholder {
  color: #74879e;
}

.state-filter {
  position: relative;
  width: 190px;
  height: 46px;
}

.state-filter::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.state-filter select {
  width: 100%;
  height: 100%;
  appearance: none;
  padding: 0 38px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  outline: 0;
  background: #101f32;
  color: var(--muted-light);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.state-filter select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(83, 168, 255, 0.11);
}

.ranking-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 28, 46, 0.88);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 7px;
  padding: 9px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.34);
}

.tab-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.tab-button:hover {
  color: var(--text);
}

.tab-button:focus-visible {
  outline: 3px solid rgba(83, 168, 255, 0.48);
  outline-offset: 2px;
}

.tab-button.active {
  border-color: rgba(83, 168, 255, 0.25);
  background: rgba(83, 168, 255, 0.12);
  color: #dceeff;
}

.site-message {
  margin: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(83, 168, 255, 0.07);
  color: var(--muted-light);
  font-size: 0.88rem;
}

.site-message.loading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-message.error {
  border-color: rgba(255, 139, 139, 0.25);
  background: rgba(255, 139, 139, 0.08);
  color: #ffc1c1;
}

.site-message[hidden] {
  display: none;
}

.average-period-bar {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(83, 168, 255, 0.035);
}

.average-period-copy {
  display: grid;
  gap: 4px;
}

.average-period-copy strong {
  color: var(--text);
  font-size: 0.88rem;
}

.average-period-copy span,
.average-status {
  color: var(--muted);
  font-size: 0.72rem;
}

.average-period-controls {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.average-period-controls label {
  display: grid;
  gap: 5px;
}

.average-period-controls label > span {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.average-period-controls select {
  width: 225px;
  min-height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: 0;
  background: #101f32;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
}

.average-period-controls select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(83, 168, 255, 0.11);
}

.average-period-controls select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.period-arrow {
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-weight: 800;
}

.average-status {
  grid-column: 1 / -1;
  min-height: 1em;
  margin: -3px 0 0;
}

.average-status.loading {
  color: #b9d9fb;
}

.average-status.error {
  color: var(--danger);
}

.teams-dashboard {
  padding: 22px;
  background:
    radial-gradient(circle at 5% 0%, rgba(83, 168, 255, 0.07), transparent 28rem),
    rgba(5, 14, 25, 0.18);
}

.teams-overview-header,
.team-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.teams-overview-header {
  margin-bottom: 18px;
}

.teams-overview-header .eyebrow {
  margin-bottom: 7px;
}

.teams-overview-header h3,
.team-section-heading h3 {
  margin: 0 0 5px;
  color: var(--text);
  letter-spacing: -0.035em;
}

.teams-overview-header h3 {
  font-size: 1.65rem;
}

.team-section-heading h3 {
  font-size: 1.08rem;
}

.teams-overview-header p:last-child,
.team-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.team-coverage {
  min-width: 210px;
  display: grid;
  gap: 3px;
  padding: 13px 16px;
  border: 1px solid rgba(83, 168, 255, 0.2);
  border-radius: 13px;
  background: rgba(83, 168, 255, 0.075);
  text-align: right;
}

.team-coverage strong {
  color: var(--text);
  font-size: 1rem;
}

.team-coverage span {
  color: var(--muted);
  font-size: 0.66rem;
}

.teams-empty {
  padding: 28px;
  border: 1px dashed rgba(83, 168, 255, 0.3);
  border-radius: 15px;
  background: rgba(83, 168, 255, 0.04);
  color: var(--muted-light);
  line-height: 1.6;
  text-align: center;
}

.team-distribution,
.team-states-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(16, 31, 50, 0.62);
}

.team-section-heading > strong,
.team-section-heading > span {
  color: var(--muted-light);
  font-size: 0.72rem;
}

.team-distribution-bar {
  height: 16px;
  display: flex;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

.team-distribution-segment {
  min-width: 0;
  transition: width 220ms ease;
}

.team-distribution-segment.mystic {
  background: linear-gradient(90deg, #237ddb, #5db6ff);
}

.team-distribution-segment.valor {
  background: linear-gradient(90deg, #dc3546, #ff747e);
}

.team-distribution-segment.instinct {
  background: linear-gradient(90deg, #dcae20, #ffdc62);
}

.team-distribution-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.team-distribution-legend > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.team-distribution-legend strong {
  color: var(--text);
  font-size: 0.72rem;
}

.team-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.team-name-badge img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.team-name-badge.compact {
  gap: 5px;
  font-size: 0.7rem;
}

.team-name-badge.compact img {
  width: 18px;
  height: 18px;
}

.team-name-badge.mystic { color: #80c5ff; }
.team-name-badge.valor { color: #ff9299; }
.team-name-badge.instinct { color: #ffe07a; }
.team-name-badge.tie { color: var(--muted-light); }

.team-stat-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.team-stat-card {
  position: relative;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(20, 42, 67, 0.84), rgba(11, 25, 42, 0.82));
}

.team-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--team-color);
}

.team-stat-card.mystic { --team-color: #42a5ff; }
.team-stat-card.valor { --team-color: #ff5f69; }
.team-stat-card.instinct { --team-color: #ffd34f; }

.team-stat-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-stat-card > header > span {
  color: var(--muted);
  font-size: 0.62rem;
}

.team-primary-stat {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 15px;
}

.team-primary-stat strong {
  color: var(--text);
  font-size: 2.15rem;
  letter-spacing: -0.055em;
}

.team-primary-stat span {
  color: var(--muted-light);
  font-size: 0.72rem;
}

.team-stat-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.team-stat-card dl div:last-child {
  grid-column: 1 / -1;
}

.team-stat-card dl div,
.team-highlights > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.team-stat-card dt,
.team-highlights span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.team-stat-card dd {
  margin: 0;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.team-highlights {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.team-highlights > div {
  display: grid;
}

.team-highlights strong {
  overflow: hidden;
  color: var(--text);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-highlights small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.62rem;
}

.team-states-card {
  margin-top: 12px;
  padding: 0;
  overflow: hidden;
}

.team-states-card .team-section-heading {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.team-table-column {
  width: 110px;
}

.dominant-team-column {
  width: 170px;
}

.team-mystic-text { color: #80c5ff; }
.team-valor-text { color: #ff9299; }
.team-instinct-text { color: #ffe07a; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: #29415c transparent;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: #0e1c2e;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--muted-light);
  font-size: 0.9rem;
}

tbody tr {
  transition: background 140ms ease;
}

tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.014);
}

tbody tr:hover {
  background: rgba(83, 168, 255, 0.055);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.position-column {
  width: 76px;
  text-align: center;
}

.numeric-column {
  text-align: right;
}

.date-column {
  width: 140px;
}

.period-column {
  width: 240px;
}

.days-column {
  width: 90px;
}

.rank-number {
  display: inline-grid;
  min-width: 34px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.top-1 .rank-number {
  border-color: rgba(255, 209, 102, 0.4);
  background: rgba(255, 209, 102, 0.12);
  color: var(--gold);
}

.top-2 .rank-number {
  border-color: rgba(202, 213, 225, 0.36);
  background: rgba(202, 213, 225, 0.1);
  color: var(--silver);
}

.top-3 .rank-number {
  border-color: rgba(216, 144, 95, 0.38);
  background: rgba(216, 144, 95, 0.1);
  color: var(--bronze);
}

.player-identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  vertical-align: middle;
}

.team-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.22));
}

.player-name {
  color: var(--text);
  font-weight: 760;
  letter-spacing: -0.012em;
  text-decoration: none;
}

a.player-name:hover {
  color: #9dceff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.player-name:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(83, 168, 255, 0.38);
  outline-offset: 3px;
}

.state-badge {
  display: inline-flex;
  min-width: 36px;
  min-height: 26px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted-light);
  font-size: 0.72rem;
  font-weight: 750;
}

.state-total-badge {
  min-width: 54px;
  min-height: 30px;
  border-color: rgba(83, 168, 255, 0.24);
  background: rgba(83, 168, 255, 0.08);
  color: #dceeff;
  font-size: 0.78rem;
}

.metric-value {
  color: #dfe9f6;
  font-weight: 790;
}

.mobile-player-meta,
.mobile-cell-note {
  display: none;
}

.state-players-column {
  width: 140px;
}

.state-average-column {
  width: 190px;
}

.milestone-label-column strong {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
}

.milestone-track {
  width: min(100%, 360px);
  height: 5px;
  display: block;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.milestone-fill {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-strong), var(--cyan));
  box-shadow: 0 0 14px rgba(83, 168, 255, 0.35);
}

.milestone-count-column {
  width: 160px;
}

.milestone-percent-column {
  width: 150px;
  color: var(--muted);
}

.compact-label {
  display: none;
}

.empty-row td {
  padding: 54px 20px;
  color: var(--muted);
  text-align: center;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.28);
}

.table-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

#results-count {
  color: var(--muted-light);
  font-weight: 700;
}

.community-section {
  position: relative;
  padding: 0 0 96px;
}

#como-participar,
#minha-historia {
  scroll-margin-top: 96px;
}

.community-section::before {
  content: "";
  position: absolute;
  top: 18%;
  right: 0;
  width: min(36vw, 34rem);
  height: 34rem;
  background: radial-gradient(circle, rgba(93, 225, 215, 0.08), transparent 68%);
  pointer-events: none;
}

.creator-card,
.participation-card,
.biography-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  background: rgba(13, 28, 46, 0.9);
  box-shadow: var(--shadow);
}

.creator-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
}

.creator-photo-frame {
  position: relative;
  min-height: 550px;
  overflow: hidden;
  background: #0a1625;
}

.creator-photo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 58%, rgba(5, 13, 23, 0.76) 100%),
    linear-gradient(90deg, transparent 80%, rgba(13, 28, 46, 0.72) 100%);
  pointer-events: none;
}

.creator-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.creator-photo-label {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 22px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.creator-photo-label span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(93, 225, 215, 0.13);
}

.creator-content {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 78px);
}

.creator-content h2,
.participation-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.creator-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.7;
}

.story-preview {
  width: 100%;
  margin-bottom: 24px;
  padding: 20px 22px;
  border: 1px dashed rgba(83, 168, 255, 0.3);
  border-radius: 16px;
  background: rgba(36, 140, 255, 0.07);
}

.story-preview span {
  display: block;
  margin-bottom: 8px;
  color: #dceeff;
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-preview p {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.6;
}

.story-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.story-jump-link:hover {
  color: #87c4ff;
}

.story-jump-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: transform 160ms ease;
}

.story-jump-link:hover svg {
  transform: translateY(2px);
}

.social-link {
  display: inline-flex;
  min-width: 260px;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(7, 17, 31, 0.55);
  color: var(--text);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.social-link:hover {
  border-color: rgba(83, 168, 255, 0.46);
  background: rgba(36, 140, 255, 0.1);
  transform: translateY(-2px);
}

.x-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 12px;
  background: #f7f9fc;
  color: #07111f;
  font-size: 1.2rem;
  font-weight: 900;
}

.social-link > span:nth-child(2) {
  display: grid;
  flex: 1;
  gap: 3px;
}

.social-link small {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 700;
}

.social-link strong {
  font-size: 0.9rem;
}

.social-link svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--muted-light);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.participation-card {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 58px);
}

.participation-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
}

.participation-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 30px;
}

.participation-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}

.participation-heading > p {
  max-width: 440px;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.participation-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.requirement {
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(93, 225, 215, 0.16);
  border-radius: 16px;
  background: rgba(93, 225, 215, 0.055);
}

.requirement-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(93, 225, 215, 0.13);
  color: var(--cyan);
}

.requirement-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.requirement p {
  display: grid;
  gap: 5px;
  margin: 0;
}

.requirement strong {
  font-size: 0.98rem;
}

.requirement small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

.participation-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.participation-step {
  position: relative;
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 17, 31, 0.48);
}

.step-number {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(83, 168, 255, 0.45);
  border-radius: 13px;
  background: rgba(36, 140, 255, 0.12);
  color: var(--blue);
  font-size: 1rem;
  font-weight: 900;
}

.step-content {
  min-width: 0;
  flex: 1;
}

.step-kicker {
  margin-bottom: 7px;
  color: var(--blue);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.step-content h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.step-description {
  margin-bottom: 17px;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.friend-code-row {
  display: flex;
  align-items: stretch;
  gap: 9px;
}

.friend-code-row code {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0 15px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.07);
  color: var(--gold);
  font-family: inherit;
  font-size: clamp(1rem, 2vw, 1.24rem);
  font-weight: 900;
  letter-spacing: 0.075em;
  white-space: nowrap;
}

.copy-code-button,
.whatsapp-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 850;
  cursor: pointer;
  transition: filter 160ms ease, transform 160ms ease, background 160ms ease;
}

.copy-code-button {
  padding: 0 15px;
  border: 1px solid rgba(83, 168, 255, 0.28);
  background: rgba(36, 140, 255, 0.11);
  color: #dceeff;
}

.copy-code-button:hover,
.copy-code-button.copied {
  background: rgba(36, 140, 255, 0.22);
}

.copy-code-button svg,
.whatsapp-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.copy-feedback {
  min-height: 18px;
  margin: 7px 0 -5px;
  color: var(--cyan);
  font-size: 0.69rem;
  font-weight: 700;
}

.participation-checklist {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  color: var(--muted-light);
  font-size: 0.8rem;
  line-height: 1.45;
  list-style: none;
}

.participation-checklist li {
  position: relative;
  padding-left: 20px;
}

.participation-checklist li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--cyan);
  font-weight: 900;
}

.whatsapp-button {
  width: 100%;
  padding: 0 18px;
  background: #20b95a;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(32, 185, 90, 0.18);
}

.whatsapp-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.biography-card {
  margin-top: 28px;
  padding: clamp(34px, 6vw, 72px);
  background:
    radial-gradient(circle at 92% 4%, rgba(83, 168, 255, 0.1), transparent 27rem),
    rgba(13, 28, 46, 0.92);
}

.biography-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--cyan), transparent);
}

.biography-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  max-width: 1020px;
  margin: 0 auto 48px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.biography-header h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.biography-header > p {
  max-width: 390px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.biography-layout {
  display: grid;
  grid-template-columns: 130px minmax(0, 820px);
  justify-content: center;
  gap: clamp(34px, 6vw, 76px);
}

.biography-timeline {
  display: flex;
  min-height: 310px;
  align-items: center;
  flex-direction: column;
  padding-top: 8px;
  color: var(--blue);
}

.biography-timeline strong {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.biography-timeline span {
  position: relative;
  width: 1px;
  min-height: 190px;
  flex: 1;
  margin: 13px 0;
  background: linear-gradient(var(--blue), rgba(93, 225, 215, 0.3));
}

.biography-timeline span::before,
.biography-timeline span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(93, 225, 215, 0.1);
  transform: translateX(-50%);
}

.biography-timeline span::before {
  top: 0;
}

.biography-timeline span::after {
  bottom: 0;
}

.biography-timeline small {
  max-width: 100px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 750;
  line-height: 1.45;
  text-align: center;
  text-transform: uppercase;
}

.biography-copy p {
  margin-bottom: 25px;
  color: var(--muted-light);
  font-size: 1rem;
  line-height: 1.82;
}

.biography-copy .biography-intro {
  color: #edf5ff;
  font-size: 1.12rem;
  line-height: 1.75;
}

.biography-highlight {
  margin: 32px 0;
  padding: 23px 25px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 15px 15px 0;
  background: rgba(93, 225, 215, 0.06);
  color: #dce9f7 !important;
}

.biography-copy .biography-closing {
  margin: 36px 0 0;
  padding: 25px;
  border: 1px solid rgba(83, 168, 255, 0.24);
  border-radius: 16px;
  background: rgba(36, 140, 255, 0.075);
  color: #edf5ff;
  font-weight: 680;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.45);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-inner strong {
  color: var(--muted-light);
}

.noscript-message {
  position: fixed;
  z-index: 10;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 15px;
  border-radius: 12px;
  background: #7d2934;
  color: white;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

@media (min-width: 901px) {
  body {
    background:
      radial-gradient(circle at 7% -8%, rgba(36, 140, 255, 0.22), transparent 34rem),
      radial-gradient(circle at 94% 5%, rgba(93, 225, 215, 0.1), transparent 30rem),
      linear-gradient(180deg, #07111f 0%, #06101d 100%);
  }

  .container {
    width: min(1240px, calc(100% - 64px));
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(6, 15, 27, 0.84);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  }

  .header-inner {
    min-height: 68px;
  }

  .header-status {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(16, 31, 50, 0.68);
  }

  .intro {
    padding: 54px 0 42px;
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(540px, 0.95fr);
    align-items: center;
    gap: 68px;
  }

  h1 {
    max-width: 650px;
    margin-bottom: 16px;
    font-size: clamp(3.75rem, 4.6vw, 4.5rem);
    line-height: 0.98;
  }

  .intro-copy {
    max-width: 590px;
    font-size: 1.08rem;
  }

  .summary {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .summary div {
    position: relative;
    min-height: 98px;
    grid-column: span 2;
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background:
      linear-gradient(145deg, rgba(20, 42, 67, 0.88), rgba(13, 28, 46, 0.78));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.17);
  }

  .summary div::before {
    content: "";
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(83, 168, 255, 0.58), transparent);
  }

  .summary div + div,
  .summary div:nth-child(4),
  .summary div:nth-child(5) {
    border: 1px solid var(--line);
  }

  .summary div:nth-child(4),
  .summary div:nth-child(5) {
    grid-column: span 3;
  }

  .summary dt {
    margin-bottom: 8px;
    color: #8fb7df;
    font-size: 0.63rem;
  }

  .summary dd {
    font-size: clamp(1.15rem, 1.65vw, 1.42rem);
  }

  #last-update {
    font-size: 0.87rem;
  }

  .rankings-section {
    padding: 26px 0 90px;
  }

  .section-heading {
    align-items: center;
    margin-bottom: 16px;
  }

  .section-heading .eyebrow {
    margin-bottom: 7px;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .ranking-filters {
    gap: 9px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 16px;
    background: rgba(7, 17, 31, 0.4);
  }

  .search-field {
    width: 330px;
    border-color: transparent;
    background: rgba(16, 31, 50, 0.92);
  }

  .state-filter {
    width: 168px;
  }

  .state-filter select {
    border-color: transparent;
    background: rgba(16, 31, 50, 0.92);
  }

  .ranking-card {
    border-color: rgba(255, 255, 255, 0.115);
    background: rgba(12, 27, 45, 0.92);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  }

  .tabs {
    gap: 8px;
    padding: 10px 12px;
    background: rgba(5, 14, 25, 0.48);
  }

  .tab-button {
    min-width: 150px;
  }

  .tab-button.active {
    border-color: rgba(83, 168, 255, 0.42);
    background: linear-gradient(135deg, rgba(36, 140, 255, 0.24), rgba(83, 168, 255, 0.1));
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  th,
  td {
    padding: 15px 22px;
  }

  th {
    height: 46px;
    background: #0c1b2d;
  }

  td {
    height: 60px;
  }

  tbody tr.top-1 {
    background: linear-gradient(90deg, rgba(255, 209, 102, 0.06), transparent 48%);
  }

  tbody tr.top-2 {
    background: linear-gradient(90deg, rgba(202, 213, 225, 0.045), transparent 48%);
  }

  tbody tr.top-3 {
    background: linear-gradient(90deg, rgba(216, 144, 95, 0.05), transparent 48%);
  }

  .player-name {
    font-size: 0.92rem;
  }

  .metric-value {
    color: #f0f6ff;
    font-size: 0.92rem;
  }

  .table-footer {
    min-height: 50px;
    padding-inline: 22px;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  .container {
    width: min(1240px, calc(100% - 48px));
  }

  .intro-grid {
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: clamp(32px, 4vw, 42px);
  }

  h1 {
    font-size: clamp(3rem, 5vw, 3.45rem);
  }

  .intro-copy {
    font-size: 0.98rem;
  }

  .summary div {
    min-height: 92px;
    padding: 15px;
  }

  .summary dt {
    font-size: 0.58rem;
  }

  .summary dd {
    font-size: 1.16rem;
  }
}

@media (max-width: 900px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .summary {
    max-width: 620px;
  }

  .creator-card {
    grid-template-columns: 1fr;
  }

  .creator-photo-frame {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .creator-photo {
    object-position: center 55%;
  }

  .creator-photo-frame::after {
    background: linear-gradient(180deg, transparent 58%, rgba(5, 13, 23, 0.82) 100%);
  }

  .creator-content {
    padding: 44px;
  }

  .participation-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .participation-steps {
    grid-template-columns: 1fr;
  }

  .biography-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .biography-layout {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 30px;
  }

  .team-stat-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    background:
      radial-gradient(circle at 50% -7rem, rgba(36, 140, 255, 0.22), transparent 25rem),
      var(--bg);
  }

  .container {
    width: min(100% - 20px, 1160px);
  }

  .header-inner {
    min-height: 58px;
  }

  .header-status {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .header-join-link,
  .header-history-link {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.7rem;
  }

  .join-wide-label {
    display: none;
  }

  .join-compact-label {
    display: inline;
  }

  .intro {
    padding: 28px 0 24px;
  }

  .intro::after {
    top: -15rem;
    right: -17rem;
  }

  h1 {
    max-width: 390px;
    margin-bottom: 10px;
    font-size: clamp(2.05rem, 10vw, 2.7rem);
    line-height: 1.02;
  }

  .intro-copy {
    max-width: 340px;
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .intro-grid {
    gap: 22px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 0.62rem;
  }

  .summary {
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
  }

  .summary div {
    padding: 11px 12px;
  }

  .summary dt {
    margin-bottom: 4px;
    font-size: 0.57rem;
    letter-spacing: 0.055em;
  }

  .summary dd {
    font-size: 1.03rem;
  }

  .summary div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .summary div:nth-child(4) {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .summary div:nth-child(5) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  #last-update {
    font-size: 0.76rem;
  }

  .section-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 13px;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  .section-eyebrow {
    display: none;
  }

  .search-field {
    width: 100%;
    height: 44px;
    min-width: 0;
    padding-inline: 12px;
  }

  .ranking-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 8px;
  }

  .state-filter {
    width: 100%;
    height: 44px;
  }

  .state-filter select {
    padding-right: 30px;
    padding-left: 11px;
    font-size: 0.78rem;
  }

  .state-filter::after {
    right: 12px;
  }

  .rankings-section {
    padding: 18px 0 48px;
  }

  .ranking-card {
    border-radius: 17px;
  }

  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 7px;
  }

  .tab-button {
    min-width: 0;
    min-height: 42px;
    padding-inline: 9px;
    font-size: 0.78rem;
  }

  .tab-button.active {
    border-color: rgba(83, 168, 255, 0.52);
    background: linear-gradient(135deg, rgba(36, 140, 255, 0.28), rgba(83, 168, 255, 0.14));
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  }

  .average-period-bar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 12px;
  }

  .average-period-copy span {
    line-height: 1.4;
  }

  .average-period-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
    gap: 6px;
  }

  .average-period-controls label {
    min-width: 0;
  }

  .average-period-controls select {
    width: 100%;
    min-width: 0;
    padding: 0 7px;
    font-size: 0.7rem;
  }

  .average-status {
    grid-column: 1;
    line-height: 1.4;
  }

  .table-scroll {
    overflow-x: hidden;
  }

  table {
    min-width: 0;
    table-layout: fixed;
  }

  #averages-panel table {
    min-width: 0;
  }

  #best-averages-panel table {
    min-width: 0;
  }

  th,
  td {
    height: 58px;
    padding: 9px 7px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  th {
    height: 40px;
    font-size: 0.61rem;
  }

  td {
    font-size: 0.82rem;
  }

  .position-column {
    width: 50px;
    padding-right: 3px;
    padding-left: 7px;
  }

  .rank-number {
    min-width: 32px;
    height: 29px;
    font-size: 0.69rem;
  }

  .player-column {
    width: auto;
  }

  .player-identity {
    max-width: 100%;
    gap: 6px;
  }

  .team-icon {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
  }

  .player-name,
  .mobile-player-meta,
  .metric-value,
  .mobile-cell-note {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .player-name {
    font-size: 0.84rem;
  }

  .mobile-player-meta {
    margin-top: 4px;
    color: var(--blue);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .metric-column {
    width: 122px;
  }

  #averages-panel .metric-column {
    width: 170px;
  }

  #best-averages-panel .metric-column {
    width: 170px;
  }

  #states-panel .metric-column {
    width: 178px;
  }

  .metric-value {
    font-size: 0.82rem;
  }

  .mobile-cell-note {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 600;
  }

  .state-column,
  .date-column,
  .period-column,
  .days-column,
  .state-players-column,
  .state-average-column {
    display: none;
  }

  .state-name-column {
    width: auto;
  }

  .state-total-badge {
    min-width: 48px;
    min-height: 28px;
    font-size: 0.71rem;
  }

  .milestone-label-column strong {
    font-size: 0.79rem;
  }

  .milestone-track {
    height: 4px;
    margin-top: 7px;
  }

  .milestone-count-column {
    width: 76px;
  }

  .milestone-percent-column {
    width: 70px;
  }

  .wide-label {
    display: none;
  }

  .compact-label {
    display: inline;
  }

  .top-1 .metric-value,
  .top-2 .metric-value,
  .top-3 .metric-value {
    color: var(--text);
  }

  .site-message {
    margin: 12px;
  }

  .teams-dashboard {
    padding: 13px;
  }

  .teams-overview-header,
  .team-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .teams-overview-header h3 {
    font-size: 1.35rem;
  }

  .team-coverage {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .team-distribution,
  .team-stat-card {
    padding: 14px;
  }

  .team-distribution-legend {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .team-primary-stat {
    margin-block: 14px 12px;
  }

  .team-states-card .team-section-heading {
    padding: 14px;
  }

  #teams-panel .table-scroll {
    overflow-x: auto;
  }

  #teams-panel table {
    min-width: 500px;
    table-layout: auto;
  }

  #teams-panel th,
  #teams-panel td {
    height: 50px;
    padding: 8px 10px;
  }

  .team-table-column {
    width: 74px;
  }

  .dominant-team-column {
    width: 125px;
  }

  .table-footer {
    min-height: 46px;
    padding: 12px 14px;
  }

  .table-footer p:last-child {
    display: none;
  }

  .community-section {
    padding-bottom: 52px;
  }

  .creator-card,
  .participation-card,
  .biography-card {
    border-radius: 19px;
  }

  .creator-photo-frame {
    aspect-ratio: 5 / 4;
  }

  .creator-photo {
    object-position: center 57%;
  }

  .creator-photo-label {
    right: 16px;
    bottom: 15px;
    left: 16px;
    font-size: 0.63rem;
  }

  .creator-content {
    padding: 28px 20px 24px;
  }

  .creator-content .eyebrow,
  .participation-heading .eyebrow {
    margin-bottom: 9px;
    font-size: 0.64rem;
  }

  .creator-content h2,
  .participation-heading h2 {
    margin-bottom: 13px;
    font-size: 1.88rem;
    line-height: 1.05;
  }

  .creator-lead {
    margin-bottom: 20px;
    font-size: 0.92rem;
    line-height: 1.62;
  }

  .story-preview {
    margin-bottom: 18px;
    padding: 17px;
  }

  .story-preview span {
    font-size: 0.69rem;
  }

  .story-preview p {
    font-size: 0.81rem;
  }

  .story-jump-link {
    font-size: 0.73rem;
  }

  .social-link {
    width: 100%;
    min-width: 0;
  }

  .participation-card {
    margin-top: 14px;
    padding: 27px 16px 16px;
  }

  .participation-heading {
    margin-bottom: 20px;
  }

  .participation-heading > p {
    font-size: 0.82rem;
  }

  .participation-requirements {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .requirement {
    min-height: 76px;
    gap: 12px;
    padding: 14px;
  }

  .requirement-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .requirement strong {
    font-size: 0.88rem;
  }

  .requirement small {
    font-size: 0.7rem;
  }

  .participation-steps {
    gap: 10px;
  }

  .participation-step {
    gap: 12px;
    padding: 17px 14px;
    border-radius: 15px;
  }

  .step-number {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
    border-radius: 11px;
    font-size: 0.86rem;
  }

  .step-content h3 {
    font-size: 1.02rem;
  }

  .step-description {
    font-size: 0.77rem;
  }

  .friend-code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .friend-code-row code {
    min-height: 50px;
    font-size: 1.03rem;
  }

  .copy-code-button {
    width: 100%;
  }

  .biography-card {
    margin-top: 14px;
    padding: 29px 18px 22px;
  }

  .biography-header {
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 21px;
  }

  .biography-header .eyebrow {
    margin-bottom: 8px;
    font-size: 0.64rem;
  }

  .biography-header h2 {
    font-size: 1.88rem;
  }

  .biography-header > p {
    font-size: 0.79rem;
  }

  .biography-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .biography-timeline {
    display: grid;
    min-height: 0;
    grid-template-columns: auto minmax(40px, 1fr) auto;
    padding: 0 5px;
  }

  .biography-timeline strong {
    font-size: 0.98rem;
  }

  .biography-timeline span {
    width: auto;
    min-height: 1px;
    margin: 0 14px;
    background: linear-gradient(90deg, var(--blue), rgba(93, 225, 215, 0.35));
  }

  .biography-timeline span::before {
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
  }

  .biography-timeline span::after {
    top: 50%;
    right: 0;
    bottom: auto;
    left: auto;
    transform: translate(50%, -50%);
  }

  .biography-timeline small {
    max-width: none;
    grid-column: 1 / -1;
    margin-top: 11px;
    font-size: 0.61rem;
  }

  .biography-copy p {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.76;
  }

  .biography-copy .biography-intro {
    font-size: 1rem;
    line-height: 1.7;
  }

  .biography-highlight {
    margin: 26px 0;
    padding: 18px;
    border-radius: 0 13px 13px 0;
  }

  .biography-copy .biography-closing {
    margin-top: 28px;
    padding: 19px;
    border-radius: 14px;
  }

  .footer-inner {
    min-height: 94px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
