/* Rift Index scene statistics — stats */
.stats-view {
  min-width: 0;
  font-size: 13px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.stats-view .page-subtitle {
  max-width: 70ch;
}
.stats-tabs {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 23px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.stats-tabs a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  padding: 4px 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted-strong);
  flex: none;
  min-height: 42px;
  white-space: nowrap;
}
.stats-tabs a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
  border-bottom-color: var(--accent);
}
.stats-tabs a:hover {
  color: var(--accent);
}
.stats-tabs span {
  font-size: 11px;
  color: var(--muted);
}
.stats-selection-panel {
  overflow: visible;
  margin-bottom: 22px;
  background: rgba(255,255,255,.035);
}
.stats-filters {
  padding: 22px;
}
.stats-primary-filters {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1fr .75fr .85fr;
  gap: 12px;
}
.stats-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.stats-field>span {
  font-size: 12px;
  color: var(--muted-strong);
}
.stats-field input,.stats-field select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--field,rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  border-color: rgba(255,255,255,.2);
  transition: border-color .15s ease-out,background-color .15s ease-out;
}
.stats-field select {
  padding-right: 29px;
}
.stats-field input:hover,.stats-field select:hover {
  border-color: #22c55e;
  background: rgba(255,255,255,.04);
}
.stats-field input:focus-visible,.stats-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.stats-more-filters {
  margin-top: 16px;
}
.stats-more-filters>summary {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style-position: inside;
  width: fit-content;
  min-height: 32px;
  line-height: 1.7;
  color: var(--accent);
}
.stats-more-filters>summary>span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 9px;
  font-size: 12px;
}
.stats-more-filters>p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 90ch;
  margin: 13px 0 0;
}
.stats-advanced-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px 12px;
  margin-top: 18px;
}
.stats-table-options {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 20px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.stats-table-options .table-search {
  margin-bottom: 0;
  min-height: 42px;
  align-self: flex-end;
  background: var(--field,rgba(255,255,255,.04));
  border-color: rgba(255,255,255,.2);
  border-radius: 8px;
}
.stats-small-field {
  width: 93px;
  flex: none;
}
.stats-sort-field {
  width: 155px;
  flex: none;
}
.stats-direction-field {
  width: 115px;
  flex: none;
}
.stats-filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.stats-filter-actions>span {
  font-size: 12px;
  color: var(--muted);
  margin-left: 5px;
  line-height: 1.6;
}
.stats-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 20px 19px;
}
.stats-active-filters .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,.1);
  color: #86efac;
  border-color: rgba(255,255,255,.2);
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  font-size: 12px;
  padding: 6px 10px;
}
.stats-active-filters .chip svg {
  width: 12px;
  height: 12px;
}
.stats-result-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 13px;
  margin-top: 24px;
}
.stats-result-heading p {
  font-size: 14px;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.stats-result-heading>span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
.stats-table {
  font-size: 13px;
  table-layout: auto;
}
.stats-table th {
  font-size: 11px;
  letter-spacing: .025em;
  color: var(--muted-strong);
  height: 45px;
}
.stats-table td {
  vertical-align: middle;
  height: 72px;
  font-variant-numeric: tabular-nums;
}
.stats-table th:first-child,.stats-table td:first-child {
  padding-left: 20px;
}
.stats-table th:last-child,.stats-table td:last-child {
  padding-right: 20px;
}
.stats-table tbody tr:hover {
  background: rgba(255,255,255,.04);
}
.stats-table th[aria-sort] button {
  font-weight: 600;
  color: var(--accent);
}
.stats-rank {
  color: var(--muted);
  width: 45px;
  font-weight: 600;
}
.stats-entity-link {
  display: block;
  min-width: 120px;
}
.stats-name {
  font-size: 14px;
  font-weight: 600;
  display: block;
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.stats-entity-link:hover .stats-name,.stats-inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent);
}
.stats-identity {
  display: block;
  font-size: 12px;
  color: var(--atlas-gold,#fbbf24);
  font-weight: 400;
  margin-top: 3px;
}
.stats-samples {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
  font-weight: 400;
}
.stats-pagination .pagination {
  gap: 8px;
}
.stats-pagination .page-button {
  min-width: 40px;
  min-height: 40px;
}
.stats-pagination .pagination>span {
  font-size: 12px;
  white-space: nowrap;
}
.stats-empty {
  padding: 38px 24px;
  text-align: center;
}
.stats-empty h2 {
  font-size: 20px;
  margin-bottom: 9px;
  color: var(--ink);
}
.stats-empty p {
  font-size: 13px;
  color: var(--muted);
  max-width: 65ch;
  margin: 0 auto 17px;
  line-height: 1.75;
}
.stats-coverage {
  margin-top: 26px;
  font-size: 13px;
  color: var(--muted);
  padding: 18px 0;
  border-top: 1px solid var(--line);
  padding-top: 21px;
}
.stats-coverage>summary {
  cursor: pointer;
  list-style-position: inside;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  min-height: 32px;
}
.stats-coverage>summary>span {
  font-weight: 400;
  font-size: 12px;
  margin-left: 9px;
  color: var(--muted);
}
.stats-coverage dl {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 16px;
  margin: 20px 0;
}
.stats-coverage dt {
  font-size: 12px;
  margin-bottom: 4px;
}
.stats-coverage dd {
  font-size: 19px;
  margin: 0;
  color: var(--atlas-sky,#67e8f9);
  font-variant-numeric: tabular-nums;
}
.stats-coverage p {
  max-width: 78ch;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0;
}
.stats-coverage code,.stats-identity-details code,.stats-match-details code {
  font-size: 12px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.stats-future {
  font-size: 12px;
  color: var(--muted);
  margin: 17px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.stats-profile-summary {
  padding: 26px;
  margin-bottom: 24px;
  background: rgba(255,255,255,.035);
}
.stats-profile-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 23px;
}
.stats-profile-title h2 {
  font-size: 32px;
  margin-bottom: 5px;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.stats-profile-title p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.stats-summary {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 24px 20px;
  margin: 0;
}
.stats-summary dt {
  font-size: 12px;
  color: var(--muted-strong);
  margin-bottom: 7px;
}
.stats-summary dd {
  font-size: 25px;
  font-weight: 600;
  margin: 0;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  letter-spacing: -.02em;
}
.stats-observed-range {
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0 0;
  line-height: 1.6;
}
.stats-identity-details {
  margin-top: 17px;
  font-size: 12px;
  color: var(--muted);
}
.stats-identity-details summary {
  cursor: pointer;
  list-style-position: inside;
}
.stats-identity-details p {
  margin: 9px 0 0;
  max-width: 80ch;
  overflow-wrap: anywhere;
}
.stats-pool,.stats-team-appearances,.stats-history {
  margin-bottom: 24px;
}
.stats-section-note {
  margin: 0;
  padding: 0 20px 19px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  max-width: 90ch;
}
.stats-match-cell>span {
  display: block;
  font-weight: 600;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stats-match-cell>small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.stats-inline-link {
  font-weight: 600;
  color: var(--atlas-sky,#67e8f9);
}
.stats-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 28px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.stats-result.is-win {
  color: var(--green);
  background: rgba(34,197,94,.12);
}
.stats-result.is-loss {
  color: var(--red);
  background: rgba(248,113,113,.12);
}
.stats-match-details {
  font-size: 12px;
  max-width: 240px;
  white-space: normal;
}
.stats-match-details summary {
  list-style-position: inside;
  cursor: pointer;
  color: var(--accent);
  white-space: nowrap;
  min-height: 32px;
  line-height: 1.7;
}
.stats-match-details p {
  margin: 12px 0 0;
  line-height: 1.5;
}
.stats-match-details dl {
  margin: 12px 0;
}
.stats-match-details dl>div {
  margin: 8px 0;
}
.stats-match-details dt {
  color: var(--muted);
}
.stats-match-details dd {
  margin: 2px 0 0;
  overflow-wrap: anywhere;
}
.stats-source-note {
  color: var(--muted);
}
.stats-loading {
  padding: 28px 0;
  min-height: 370px;
}
.stats-loading p {
  font-size: 13px;
  color: var(--muted);
}
.stats-loading>div {
  height: 48px;
  margin-top: 13px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  width: 100%;
}
.stats-loading>div:first-of-type {
  width: 65%;
  height: 23px;
  margin-bottom: 28px;
}
.stats-loading>div:nth-of-type(3) {
  width: 93%;
}
.stats-error {
  padding: 30px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.stats-error>svg {
  color: var(--atlas-gold,#fbbf24);
  width: 23px;
  height: 23px;
  margin-top: 1px;
}
.stats-error h2 {
  font-size: 22px;
  margin-bottom: 9px;
}
.stats-error p {
  font-size: 13px;
  color: var(--muted);
  max-width: 65ch;
  line-height: 1.6;
  margin-bottom: 18px;
}
.stats-error .button {
  margin: 0 8px 8px 0;
}
.stats-export-error {
  font-size: 13px;
  color: var(--red);
  margin-bottom: 18px;
  max-width: 70ch;
}
.stats-global-search-link {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink);
  padding: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.stats-global-search-link:hover {
  background: var(--accent-tint);
  border-radius: 6px;
}
body[data-stats] .snapshot-dot {
  background: var(--accent);
}
.nav-snapshot-label {
  margin-left: auto;
  font-size: 11px;
  color: #a1a1a1;
  font-weight: 400;
}
.stats-view .profile-back {
  width: fit-content;
}
.stats-view .profile-back:hover {
  color: var(--accent);
}
.stats-freshness {
  padding: 18px 22px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
  display: grid;
  grid-template-columns: minmax(250px,1.3fr) minmax(0,2fr);
  gap: 15px 26px;
  border-color: rgba(255,255,255,.1);
}
.stats-freshness-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}
.stats-freshness h2 {
  font-size: 13px;
  margin: 0 0 5px;
  color: var(--atlas-sky,#67e8f9);
}
.stats-freshness-heading p {
  font-size: 12px;
  color: var(--muted);
  max-width: 76ch;
  margin: 0;
  line-height: 1.6;
}
.stats-freshness-heading .button {
  flex-shrink: 0;
  min-height: 40px;
  font-size: 12px;
}
.stats-freshness-times {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px 18px;
  margin: 0;
  font-variant-numeric: tabular-nums;
  align-items: start;
}
.stats-freshness-times dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}
.stats-freshness-times dd {
  font-size: 12px;
  margin: 0;
  line-height: 1.55;
  color: var(--ink);
}
.stats-freshness-details {
  font-size: 12px;
  color: var(--muted);
  margin-top: 16px;
  grid-column: 1/-1;
  margin: 0;
}
.stats-freshness-details summary {
  cursor: pointer;
  list-style-position: inside;
  width: fit-content;
}
.stats-freshness-details p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 80ch;
  margin: 12px 0 0;
}
.stats-freshness-details code {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.stats-source-times {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px 24px;
  margin-top: 15px;
}
.stats-source-times strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.stats-source-times span {
  display: block;
  font-size: 12px;
  line-height: 1.6;
}
.stats-field input::placeholder {
  color: #a1a1a1;
  opacity: 1;
}
.stats-more-filters[open]>summary {
  color: var(--ink);
}
.stats-samples,.stats-identity {
  font-size: 11px;
  line-height: 1.55;
}
.stats-table tbody tr {
  transition: background-color .15s ease-out;
}
body[data-stats] .stats-table:is([aria-label$="leaderboard"],[aria-label="Player champion pool"]) td:nth-child(5) {
  color: var(--green);
}
body[data-stats] .stats-table:is([aria-label$="leaderboard"],[aria-label="Player champion pool"]) td:nth-child(6) {
  color: var(--atlas-gold,#fbbf24);
}
body[data-stats] .stats-table:is([aria-label$="leaderboard"],[aria-label="Player champion pool"]) td:nth-child(7) {
  color: var(--atlas-rose,#fb7185);
}
body[data-stats] .stats-table:is([aria-label$="leaderboard"],[aria-label="Player champion pool"]) td:nth-child(8) {
  color: var(--red);
}
body[data-stats] .stats-table:is([aria-label$="leaderboard"],[aria-label="Player champion pool"]) td:nth-child(9) {
  color: var(--atlas-lilac,#c084fc);
}
.stats-freshness-details>summary {
  min-height: 28px;
  color: var(--accent);
}
.stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(2) dd {
  color: var(--atlas-sky,#67e8f9);
}
.stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(3) dd, .stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(5) dd {
  color: var(--green);
}
.stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(4) dd, .stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(8) dd {
  color: var(--red);
}
.stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(6) dd {
  color: var(--atlas-gold,#fbbf24);
}
.stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(7) dd, .stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(11) dd {
  color: var(--atlas-rose,#fb7185);
}
.stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(9) dd, .stats-profile-summary>.stats-summary:not(.pr-summary)>div:nth-child(10) dd {
  color: var(--atlas-lilac,#c084fc);
}

@media(max-width:1200px) {
  .stats-table-options {
    flex-wrap: wrap;
  }
  .stats-table-options .table-search {
    flex-basis: 40%;
    min-width: 180px;
  }
  .stats-sort-field {
    flex: 1;
  }
  .stats-advanced-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .stats-summary {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
  .stats-primary-filters {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media(max-width:1000px) {
  .stats-freshness {
    grid-template-columns: minmax(0,1fr);
  }
  .stats-freshness-times {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

@media(max-width:760px) {
  .stats-tabs {
    gap: 23px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
  }
  .stats-tabs a {
    font-size: 12px;
    min-height: 44px;
  }
  .stats-tabs span {
    display: none;
  }
  .stats-filters {
    padding: 17px;
  }
  .stats-primary-filters {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 13px;
  }
  .stats-primary-filters>.stats-field:first-child {
    grid-column: 1/-1;
  }
  .stats-advanced-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats-more-filters>summary>span {
    display: block;
    margin: 4px 0 0 13px;
  }
  .stats-table-options {
    gap: 12px;
  }
  .stats-table-options .table-search {
    flex-basis: 100%;
    min-width: 0;
  }
  .stats-small-field {
    flex: 1;
    width: auto;
    min-width: 90px;
  }
  .stats-sort-field {
    flex-basis: 55%;
    width: auto;
    flex: 1 1 140px;
    min-width: 140px;
  }
  .stats-direction-field {
    flex: 0 0 112px;
    width: auto;
    min-width: 112px;
  }
  .stats-filter-actions {
    flex-wrap: wrap;
  }
  .stats-filter-actions>span {
    flex-basis: 100%;
    margin: 5px 0 0;
  }
  .stats-active-filters {
    padding: 0 16px 16px;
  }
  .stats-result-heading {
    display: block;
  }
  .stats-result-heading>span {
    display: block;
    margin-top: 4px;
  }
  .stats-table th:first-child,.stats-table td:first-child {
    padding-left: 14px;
  }
  .stats-table th:last-child,.stats-table td:last-child {
    padding-right: 14px;
  }
  .stats-table td {
    height: 68px;
  }
  .stats-name {
    max-width: 155px;
    font-size: 13px;
  }
  .stats-table .stats-rank {
    width: 30px;
  }
  .stats-view .table-wrap {
    scrollbar-color: rgba(255,255,255,.2) var(--paper);
    scrollbar-width: thin;
  }
  .stats-pagination {
    flex-wrap: wrap;
    gap: 10px;
  }
  .stats-coverage dl {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats-coverage>summary>span {
    display: block;
    margin: 5px 0 0 13px;
  }
  .stats-profile-summary {
    padding: 20px 17px;
  }
  .stats-profile-title h2 {
    font-size: 29px;
  }
  .stats-summary {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 21px 14px;
  }
  .stats-summary dd {
    font-size: 23px;
  }
  .stats-section-note {
    padding-left: 15px;
    padding-right: 15px;
  }
  .stats-error {
    padding-top: 20px;
  }
  .stats-error>svg {
    display: none;
  }
  .stats-profile-title {
    flex-wrap: wrap;
  }
  .stats-future {
    line-height: 1.6;
  }
  .stats-view .page-heading .heading-actions {
    padding-top: 0;
    margin-left: auto;
  }
  .stats-view .page-heading {
    flex-wrap: wrap;
  }
  .stats-view .page-heading>div:first-child {
    flex: 1 0 100%;
    min-width: 0;
  }
  .stats-freshness {
    padding: 16px;
    gap: 14px;
  }
  .stats-freshness-heading {
    gap: 12px;
    flex-wrap: wrap;
  }
  .stats-freshness-heading .button {
    margin-left: auto;
  }
  .stats-freshness-times {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stats-source-times {
    grid-template-columns: 1fr;
  }
  .stats-field input,.stats-field select {
    min-height: 44px;
  }
  .stats-filter-actions .button {
    min-height: 44px;
  }
  .stats-freshness-times>div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
  }
  .stats-freshness-times dt {
    margin: 0;
  }
  .stats-freshness-times dd {
    text-align: right;
  }
  .stats-pagination .page-button {
    min-width: 44px;
    min-height: 44px;
  }
  .stats-match-details summary {
    min-height: 40px;
  }
}

@media(max-width:380px) {
  .stats-advanced-grid {
    grid-template-columns: minmax(0,1fr);
  }
  .stats-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats-tabs {
    gap: 16px;
  }
  .stats-view .page-heading {
    flex-wrap: wrap;
  }
}

@media(prefers-reduced-motion:reduce) {
  .stats-field input,.stats-field select,.stats-table tbody tr {
    transition: none;
  }
}

/* Scene-backed statistics: one reading surface, compact controls and linked rows. */
body.skycrypt-world .stats-view {
  color: #fafafa;
  font-size: 14px;
  line-height: 1.55;
}
body.skycrypt-world .stats-tabs {
  position: sticky;
  top: 48px;
  z-index: 25;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 20px -8px 24px;
  padding: 8px;
  border-bottom: 1px solid oklch(.627 .194 149.214);
  background: rgb(10 10 10 / 65%);
  backdrop-filter: blur(24px);
  scrollbar-color: rgb(255 255 255 / 25%) transparent;
}
body.skycrypt-world .stats-tabs a {
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 26px;
  color: rgb(250 250 250 / 80%);
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
  text-decoration: none;
}
body.skycrypt-world .stats-tabs a:hover {
  background: rgb(255 255 255 / 10%);
  color: #fafafa;
}
body.skycrypt-world .stats-tabs a[aria-current] {
  background: oklch(.627 .194 149.214);
  color: #f0fdf4;
}
body.skycrypt-world .stats-tabs span {
  color: inherit;
  opacity: .8;
  font-size: 11px;
}
body.skycrypt-world .stats-selection-panel {
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 14px;
  background: rgb(255 255 255 / 3%);
}
body.skycrypt-world .stats-filters { padding: 16px; }
body.skycrypt-world .stats-primary-filters { gap: 12px; }
body.skycrypt-world .stats-field > span { color: #a1a1a1; font-size: 12px; }
body.skycrypt-world .stats-field :is(input, select),
body.skycrypt-world .stats-table-options .table-search {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 26px;
  background: rgb(255 255 255 / 5%);
  color: #fafafa;
  font-size: 13px;
  line-height: 20px;
  color-scheme: dark;
}
body.skycrypt-world .stats-field select { padding-right: 30px; }
body.skycrypt-world .stats-field :is(input, select):hover {
  border-color: rgb(255 255 255 / 30%);
  background: rgb(255 255 255 / 8%);
}
body.skycrypt-world .stats-field input::placeholder { color: #a1a1a1; }
body.skycrypt-world .stats-field :is(input, select):focus-visible {
  outline: 2px solid #4ade80;
  outline-offset: 3px;
}
body.skycrypt-world .stats-table-options { gap: 12px; margin-top: 16px; padding-top: 16px; }
body.skycrypt-world .stats-filter-actions { margin-top: 16px; }
body.skycrypt-world .stats-active-filters { padding: 0 16px 16px; }
body.skycrypt-world .stats-active-filters .chip {
  border: 1px solid rgb(34 197 94 / 30%);
  border-radius: 26px;
  background: rgb(34 197 94 / 12%);
  color: #86efac;
}
body.skycrypt-world .stats-table { font-size: 13px; }
body.skycrypt-world .stats-table th {
  height: 40px;
  font-size: 12px;
  letter-spacing: 0;
  color: #a1a1a1;
  background: transparent;
}
body.skycrypt-world .stats-table td {
  height: 54px;
  padding-block: 9px;
}
body.skycrypt-world .stats-table :is(th, td):first-child { padding-left: 16px; }
body.skycrypt-world .stats-table :is(th, td):last-child { padding-right: 16px; }
body.skycrypt-world .stats-table tbody tr:hover { background: rgb(255 255 255 / 5%); }
body.skycrypt-world .stats-table tbody tr[aria-selected="true"] { background: rgb(34 197 94 / 10%); }
body.skycrypt-world .stats-name { font-size: 14px; font-weight: 600; }
body.skycrypt-world :is(.stats-samples, .stats-identity) { font-size: 12px; line-height: 1.45; }
body.skycrypt-world .stats-identity { color: #a1a1a1; }
body.skycrypt-world .stats-profile-summary {
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  border-radius: 0;
  background: transparent;
}
body.skycrypt-world .stats-profile-title { margin-bottom: 20px; }
body.skycrypt-world .stats-profile-title h2 { font-size: 36px; line-height: 40px; font-weight: 600; }
body.skycrypt-world .stats-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}
body.skycrypt-world .stats-summary > div { flex: 0 1 auto; min-width: 110px; }
body.skycrypt-world .stats-summary dt { margin: 0 0 3px; font-size: 12px; color: #a1a1a1; }
body.skycrypt-world .stats-summary dd { font-size: 20px; line-height: 28px; font-weight: 600; }
body.skycrypt-world .stats-observed-range { margin-top: 16px; }
body.skycrypt-world .stats-freshness {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-color: rgb(255 255 255 / 10%);
  border-radius: 14px;
  background: rgb(255 255 255 / 3%);
}
body.skycrypt-world .stats-freshness h2 { font-size: 14px; color: #fafafa; }
body.skycrypt-world .stats-freshness-times { gap: 12px 20px; }
body.skycrypt-world .stats-freshness-times dt { font-size: 12px; }
body.skycrypt-world .stats-freshness-times dd { font-size: 12px; color: #d4d4d4; }
body.skycrypt-world .stats-freshness-heading .button { min-height: 36px; }
body.skycrypt-world .stats-section-note { padding-inline: 16px; }
body.skycrypt-world .stats-result { width: 26px; height: 26px; border-radius: 26px; }
body.skycrypt-world .stats-result.is-win { color: #4ade80; background: rgb(34 197 94 / 15%); }
body.skycrypt-world .stats-result.is-loss { color: #f87171; background: rgb(248 113 113 / 12%); }
body.skycrypt-world .stats-loading > div { background: rgb(255 255 255 / 5%); }
body.skycrypt-world .stats-pagination .page-button { min-width: 36px; min-height: 36px; }
body.skycrypt-world .stats-view :is(.table-wrap, .table-search) { scrollbar-color: rgb(255 255 255 / 25%) transparent; }
@media (max-width: 760px) {
  body.skycrypt-world .stats-tabs { margin-inline: -16px; padding-inline: 16px; gap: 8px; }
  body.skycrypt-world .stats-tabs a { font-size: 14px; }
  body.skycrypt-world .stats-filters { padding: 16px; }
  body.skycrypt-world .stats-field :is(input, select) { min-height: 36px; }
  body.skycrypt-world .stats-profile-title h2 { font-size: 28px; line-height: 34px; }
  body.skycrypt-world .stats-summary { gap: 14px 22px; }
  body.skycrypt-world .stats-summary > div { min-width: 100px; }
  body.skycrypt-world .stats-summary dd { font-size: 18px; line-height: 26px; }
  body.skycrypt-world .stats-freshness-times { grid-template-columns: 1fr; }
  body.skycrypt-world .stats-filter-actions .button { min-height: 36px; }
}

/* Results lead: one compact primary bar, secondary controls on demand. */
.stats-view .stats-filters.stats-results-first{padding:12px 14px}
.stats-results-first .stats-primary-filters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 12px}
.stats-results-first .stats-primary-filters>.stats-field{flex:1 1 130px;min-width:0}
.stats-results-first .stats-primary-search{flex:2 1 230px;min-width:180px;align-self:flex-end;min-height:38px}
.stats-results-first .stats-primary-search input{min-width:0;width:100%}
.stats-results-first .stats-primary-filters>.button{flex:0 0 auto;min-height:38px;align-self:flex-end}
.stats-results-first .stats-more-filters{margin-top:10px}
.stats-results-first .stats-more-filters>summary{min-height:24px;font-size:12px}
.stats-results-first .stats-filter-actions{margin:12px 0 0}
.stats-view .stats-selection-panel{margin-bottom:12px}
.stats-view .stats-scope-status{margin:0 0 10px;font-size:11px;line-height:1.6;color:var(--muted,#bdbdbd)}
.stats-page-notes{margin:22px 0 0;padding-top:14px;border-top:1px solid var(--line);font-size:12px;line-height:1.7;color:var(--muted,#bdbdbd)}
.stats-page-notes>summary{cursor:pointer;color:var(--green,#4ade80);min-height:30px;font-weight:550}
.stats-page-notes .stats-freshness{margin-top:14px}
.stats-page-notes+.stats-board-navigation{margin:10px 0 0}
@media(max-width:760px){
 .stats-view .stats-filters.stats-results-first{padding:10px 12px}
 .stats-results-first .stats-primary-search{flex-basis:100%;min-width:0}
 .stats-results-first .stats-primary-filters>.stats-field{flex:1 1 calc(50% - 6px)}
 .stats-results-first .stats-primary-filters>.button{flex:1 1 calc(50% - 6px)}
 .stats-results-first .stats-advanced-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stats-page-notes+.stats-board-navigation{gap:6px;flex-wrap:wrap}
}
@media(max-width:380px){.stats-results-first .stats-advanced-grid{grid-template-columns:1fr}}
.stats-results-first .stats-primary-search{display:flex;align-items:center;gap:8px;margin:0;padding:7px 12px;border:1px solid var(--line);border-radius:26px;background:rgb(255 255 255/.035);color:var(--muted,#bdbdbd)}
.stats-results-first .stats-primary-search input{border:0;background:none;color:var(--ink,#fafafa);font:inherit;outline:0;padding:0}
.stats-results-first .stats-primary-search input::placeholder{color:var(--muted,#bdbdbd)}
.stats-filter-loading{margin:0;padding:10px 14px;font-size:11px;line-height:1.6;color:var(--muted,#bdbdbd)}
