:root {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: #202b38;
  background: #f2f5f8;
  font-synthesis: none;
  --navy: #151e2b;
  --orange: #b64720;
  --muted: #566477;
  --line: #dce2e9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--orange);
}
button,
input,
select {
  font: inherit;
}
button,
.button {
  display: inline-block;
  padding: 11px 18px;
  border: 0;
  border-radius: 5px;
  background: var(--orange);
  color: white;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  color: white;
  background: #943718;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
input,
select {
  min-height: 43px;
  border: 1px solid #8895a6;
  border-radius: 4px;
  padding: 9px;
  background: white;
  color: var(--navy);
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #2074c9;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -100px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 5px;
}
header {
  background: var(--navy);
  color: white;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px max(24px, calc((100% - 1280px) / 2));
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}
.brand:hover {
  color: white;
}
.brand svg {
  width: 43px;
  height: 43px;
  color: #e77a4b;
}
.brand small {
  font-size: 13px;
  font-weight: 500;
  display: block;
  margin-top: 5px;
}
.beta {
  font-size: 12px;
  border: 1px solid #738093;
  padding: 5px 7px;
  border-radius: 4px;
}
nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 0;
  border-bottom: 3px solid transparent;
}
nav a:hover,
nav a[aria-current] {
  color: white;
  border-color: #ee956f;
}
.update-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: flex-end;
  padding: 12px max(24px, calc((100% - 1280px) / 2));
  font-size: 12px;
  background: white;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.update-bar > span:first-child {
  margin-right: auto;
}
.connected:before,
.delayed:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19704c;
  margin-right: 7px;
}
.delayed:before {
  background: #ab4f14;
}
main {
  max-width: 1328px;
  margin: auto;
  padding: 30px 24px 60px;
  min-height: 75vh;
}
h1 {
  font-size: 42px;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin: 0 0 16px;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.65;
  color: var(--muted);
  max-width: 75ch;
}
.heading {
  margin: 18px 0 30px;
}
.hero {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: #e6edf5;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
  padding: 42px 48px;
  gap: 35px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 850;
  letter-spacing: -2px;
}
.hero p {
  max-width: 47ch;
}
.hero .button {
  margin-top: 10px;
}
.league-night {
  border-left: 2px solid #b9c9da;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #304c70;
  font-size: 18px;
}
.league-night strong {
  font-size: 150px;
  line-height: 1.2;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.section-title h2 {
  margin: 0;
}
main > section {
  margin-bottom: 34px;
}
.table-scroll {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th,
td {
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
thead th {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
  background: #f9fbfd;
}
tbody th {
  font-weight: 650;
}
tbody a {
  text-decoration: none;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f8fafc;
}
.place {
  font-size: 20px;
  color: var(--muted);
  font-weight: 700;
}
.mmr {
  font-size: 21px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.rank {
  display: inline-block;
  font-size: 12px;
  font-weight: 750;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 5px 9px;
  white-space: nowrap;
  background: #eef0f2;
  color: #515d68;
}
.rank-copper {
  color: #904923;
  background: #faeee5;
}
.rank-bronze {
  color: #835a25;
  background: #f5eddf;
}
.rank-silver {
  color: #52647b;
  background: #eaf0f6;
}
.rank-gold {
  color: #785600;
  background: #fbf1d6;
}
.rank-ringer {
  color: #286c69;
  background: #e5f2ef;
}
.rank-striker {
  color: #6952a3;
  background: #eee9fa;
}
.rank-kingpin {
  color: #9b4c1d;
  background: #fff0df;
}
.filters {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  background: white;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 24px;
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  min-width: 130px;
}
.filters input {
  width: 100%;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 18px 0;
}
.pager span {
  margin-right: auto;
  color: var(--muted);
  font-size: 13px;
}
.pager button {
  font-size: 13px;
  background: #334961;
}
.scorecards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.scorecard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.card-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.card-label span {
  color: #216748;
}
.score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding-top: 16px;
}
.score-line a {
  font-weight: 650;
  text-decoration: none;
}
.score-line small,
.movements small,
.event-players small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.score {
  text-align: right;
  flex-shrink: 0;
}
.score strong {
  font-size: 25px;
}
.winner .score strong,
.bracket-person.winner > span:first-child {
  color: #196647;
}
.mmr-line {
  text-align: right;
  font-size: 12px;
  padding: 5px 0 9px;
}
.gain {
  color: #196647;
}
.loss {
  color: #af3434;
}
.muted,
.note {
  color: var(--muted);
  font-size: 12px;
}
.split,
.events {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.split > section,
.events > section {
  min-width: 0;
}
.movements,
.session-list,
.event-players {
  list-style: none;
  margin: 0;
  padding: 0;
}
.movements li,
.session-list li,
.event-players li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.movements a,
.session-list a,
.event-players a {
  font-weight: 600;
  text-decoration: none;
}
.movements strong {
  white-space: nowrap;
}
.session-list li {
  align-items: start;
  flex-direction: column;
  gap: 5px;
}
.session-list span {
  font-size: 13px;
  color: var(--muted);
}
.spaced {
  margin-top: 32px;
}
.empty {
  padding: 32px;
  border: 1px dashed #a5b1bf;
  border-radius: 6px;
  color: var(--muted);
  line-height: 1.7;
  background: #f9fbfd;
}
.profile-stats {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-wrap: wrap;
  background: white;
  border-left: 5px solid var(--orange);
  padding: 25px;
  margin-bottom: 36px;
}
.profile-stats strong {
  display: block;
  font-size: 28px;
}
.profile-stats span:not(.rank) {
  font-size: 12px;
  color: var(--muted);
}
.back {
  display: inline-block;
  margin-bottom: 15px;
}
.notice {
  padding: 16px 20px;
  background: #e6edf5;
  border-left: 4px solid #536f8c;
  max-width: none;
}
.events > section {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.game-chips {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.game-chips span {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
}
.game-chips strong {
  display: block;
  font-size: 17px;
  margin-top: 4px;
  color: var(--navy);
}
details summary {
  cursor: pointer;
  padding: 19px;
  font-weight: 650;
}
details summary span {
  float: right;
  font-size: 13px;
  color: var(--muted);
}
.session-picker,
.bracket {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  margin: 18px 0;
}
.session-picker .session-list,
.session-picker .pager {
  margin: 0 20px 20px;
}
.bracket-scroll {
  overflow-x: auto;
  padding: 0 20px 25px;
}
.rounds {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 32px;
  min-width: 800px;
}
.round {
  display: flex;
  flex-direction: column;
}
.round h3 {
  padding: 10px 0;
  border-bottom: 2px solid #96aac1;
}
.round-matches {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-around;
  gap: 22px;
}
.bracket-match {
  border: 1px solid #bfcbd8;
  border-radius: 5px;
  padding: 12px;
  position: relative;
  background: #f9fbfd;
}
.round:not(:last-child) .bracket-match:after {
  content: "";
  position: absolute;
  right: -33px;
  top: 50%;
  width: 32px;
  border-top: 2px solid #96aac1;
}
.bracket-match > small {
  font-size: 10px;
  color: var(--muted);
}
.bracket-person {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 13px;
}
.bracket-person + div {
  border-top: 1px solid var(--line);
}
.bracket-person > span:last-child {
  text-align: right;
  flex-shrink: 0;
}
.bracket-person small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: var(--muted);
}
.bye {
  padding: 15px;
  color: var(--muted);
  font-style: italic;
}
footer {
  background: var(--navy);
  color: #e4eaf1;
  padding: 25px max(24px, calc((100% - 1280px) / 2));
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
footer span {
  color: #b6c2d1;
}
@media (max-width: 1000px) {
  nav {
    width: 100%;
    margin: 0;
  }
  .hero {
    padding: 30px;
  }
  .league-night strong {
    font-size: 110px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 18px 16px;
    gap: 16px;
  }
  .brand {
    font-size: 23px;
  }
  nav {
    gap: 19px;
    overflow-x: auto;
    white-space: nowrap;
  }
  nav a {
    font-size: 13px;
  }
  .update-bar {
    padding: 10px 16px;
    justify-content: flex-start;
    gap: 8px 16px;
  }
  .update-bar > span:first-child {
    display: none;
  }
  main {
    padding: 22px 16px 40px;
  }
  h1 {
    font-size: 34px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 26px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .league-night {
    border-left: 0;
    border-top: 1px solid #b9c9da;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    padding-top: 18px;
    font-size: 13px;
  }
  .league-night strong {
    font-size: 55px;
    order: -1;
  }
  .scorecards,
  .split,
  .events {
    grid-template-columns: 1fr;
  }
  .scorecard {
    padding: 16px;
  }
  th,
  td {
    padding: 14px 11px;
  }
  .leaderboard td:last-child,
  .leaderboard th:last-child {
    display: none;
  }
  .rank {
    padding: 4px 6px;
    font-size: 11px;
  }
  .mmr {
    font-size: 18px;
  }
  .place {
    font-size: 16px;
  }
  table {
    font-size: 13px;
  }
  .filters {
    gap: 12px;
    padding: 16px;
  }
  .filters label {
    min-width: calc(50% - 12px);
  }
  .filters button {
    width: 100%;
  }
  .section-title a {
    font-size: 12px;
  }
  .profile-stats {
    gap: 20px;
  }
  .profile-stats > div {
    min-width: 38%;
  }
  .event-players li {
    gap: 10px;
  }
  .events > section {
    padding: 18px;
  }
  summary span {
    float: none !important;
    display: block;
    margin-top: 7px;
  }
  footer {
    flex-direction: column;
    padding: 24px 16px;
  }
  .pager {
    gap: 8px;
  }
  .pager button {
    padding: 10px 12px;
  }
}
/* Long public display names must wrap even at narrow phone widths. */
h1,
h2,
.score-line a,
.event-players a,
.movements a,
.bracket-person,
.session-list a {
  overflow-wrap: anywhere;
}
.score-line > div:first-child,
.event-players li > div:first-child,
.movements li > div:first-child {
  min-width: 0;
}
