:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --bg-soft: #101318;
  --surface: #161a20;
  --surface-strong: #1d222a;
  --surface-light: #252b34;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f3ee;
  --muted: #a9afb8;
  --red: #e15147;
  --red-dark: #a72f2a;
  --blue: #4b92df;
  --green: #74bd72;
  --gold: #d8aa56;
  --discord: #5865f2;
  --content: 1180px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

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

h1,
h2,
h3,
strong {
  text-wrap: balance;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  line-height: 1.15;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  height: 100%;
  color: #cdd1d7;
  font-size: 14px;
  font-weight: 750;
}

.top-nav a {
  position: relative;
  display: grid;
  height: 52px;
  place-items: center;
  white-space: nowrap;
}

.top-nav .new-version-link {
  color: #f2bd68;
}

.top-nav .new-version-link::before {
  content: "NEW";
  margin-right: 5px;
  color: #ff765f;
  font-size: 8px;
  font-weight: 900;
  vertical-align: top;
}

.top-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: #fff;
}

.top-nav a[aria-current="page"]::after {
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.header-action {
  justify-self: end;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid rgba(88, 101, 242, 0.55);
  border-radius: 5px;
  background: rgba(88, 101, 242, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.header-action:hover {
  background: rgba(88, 101, 242, 0.24);
}

.hero {
  position: relative;
  display: flex;
  min-height: min(720px, calc(100svh - 72px));
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #07090b;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 11, 0.98) 0%, rgba(7, 9, 11, 0.84) 42%, rgba(7, 9, 11, 0.2) 76%, rgba(7, 9, 11, 0.54) 100%),
    linear-gradient(180deg, rgba(7, 9, 11, 0.12) 44%, rgba(7, 9, 11, 0.95) 100%),
    url("https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/social/invoker.jpg") center 28% / cover;
  filter: saturate(1.08) contrast(1.08);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  align-items: end;
  gap: 72px;
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 54px;
}

.hero-copy {
  max-width: 760px;
  align-self: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 7px 1px 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(116, 189, 114, 0.14);
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 20px;
  font-size: 68px;
  line-height: 0.96;
}

.hero-lead {
  max-width: 690px;
  margin-bottom: 0;
  color: #dde0e5;
  font-size: 21px;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
}

.button-primary {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--red);
  box-shadow: 0 14px 36px rgba(225, 81, 71, 0.24);
}

.button-primary:hover {
  background: #ee5b50;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(11, 13, 16, 0.62);
  backdrop-filter: blur(12px);
}

.button-secondary:hover {
  background: rgba(37, 43, 52, 0.76);
}

.button-light {
  border-color: #fff;
  background: #fff;
  color: #111318;
}

.hero-note {
  max-width: 650px;
  margin: 18px 0 0;
  color: #9fa5ae;
  font-size: 12px;
  line-height: 1.5;
}

.live-card {
  align-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(17, 20, 25, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.live-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: #c7cbd1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill {
  padding: 5px 8px;
  border: 1px solid rgba(75, 146, 223, 0.34);
  border-radius: 4px;
  background: rgba(75, 146, 223, 0.12);
  color: #a9d1fb;
  font-size: 10px;
}

.status-pill.is-live {
  border-color: rgba(116, 189, 114, 0.38);
  background: rgba(116, 189, 114, 0.12);
  color: #a9dda7;
}

.featured-match {
  min-height: 180px;
  padding: 20px 18px;
}

.featured-live-head,
.site-live-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.featured-live-head .featured-number {
  margin-bottom: 0;
}

.live-delay {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(216, 170, 86, 0.34);
  border-radius: 4px;
  background: rgba(216, 170, 86, 0.09);
  color: #e6c98f;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
}

.featured-live-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
}

.featured-live-score span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-live-score span:last-child {
  text-align: right;
}

.featured-live-score strong {
  font-size: 29px;
  font-variant-numeric: tabular-nums;
}

.featured-live-clock {
  margin-top: 7px;
  color: #c8ccd2;
  font-size: 12px;
  text-align: center;
}

.featured-live-players {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 18px -18px -20px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.featured-live-player {
  min-width: 0;
  padding: 12px 14px;
  background: rgba(11, 13, 16, 0.84);
}

.featured-live-player span,
.featured-live-player strong,
.featured-live-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-live-player span {
  color: var(--muted);
  font-size: 10px;
}

.featured-live-player strong {
  margin-top: 3px;
  font-size: 13px;
}

.featured-live-player small {
  margin-top: 4px;
  color: #aeb4bc;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.featured-live-player.radiant {
  box-shadow: inset 2px 0 0 rgba(116, 189, 114, 0.76);
}

.featured-live-player.dire {
  box-shadow: inset -2px 0 0 rgba(225, 81, 71, 0.76);
  text-align: right;
}

.featured-number {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.featured-match h2 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.08;
}

.featured-score {
  margin: 18px 0;
  font-size: 18px;
  font-weight: 800;
}

.featured-meta,
.loading-line,
.empty-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.live-card > .text-link {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
}

.text-link {
  color: #eef0f3;
  font-size: 13px;
  font-weight: 800;
}

.text-link:hover {
  color: var(--gold);
}

.stats-band {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
}

.stats-inner > div {
  min-height: 118px;
  padding: 25px 28px;
  border-right: 1px solid var(--line);
}

.stats-inner > div:first-child {
  border-left: 1px solid var(--line);
}

.stats-inner strong,
.stats-inner span {
  display: block;
}

.stats-inner strong {
  margin-bottom: 5px;
  font-size: 34px;
}

.stats-inner span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.content-band {
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 38px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.section-heading h2,
.join-copy h2,
.cta-band h2 {
  margin-bottom: 0;
  font-size: 46px;
  line-height: 1.02;
}

.value-band {
  border-bottom: 1px solid var(--line);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-grid article {
  min-height: 255px;
  padding: 30px 30px 34px 0;
  border-right: 1px solid var(--line);
}

.value-grid article + article {
  padding-left: 30px;
}

.value-grid article:last-child {
  border-right: 0;
}

.value-index {
  display: block;
  margin-bottom: 38px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.value-grid h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.value-grid p,
.join-copy p,
.page-hero p {
  color: var(--muted);
  line-height: 1.6;
}

.join-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 64px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.join-visual {
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #050608;
}

.join-visual img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: contain;
}

.steps-list {
  display: grid;
  gap: 0;
  margin: 30px 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.steps-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.steps-list li > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
}

.steps-list strong {
  display: block;
  margin-bottom: 4px;
}

.steps-list p {
  margin-bottom: 0;
  font-size: 14px;
}

.leaders-band {
  border-bottom: 1px solid var(--line);
}

.leaders-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.leader-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  min-height: 112px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.leader-position {
  position: absolute;
  top: 8px;
  right: 12px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
}

.player-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-light);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  object-fit: cover;
}

.leader-main,
.leader-rating {
  position: relative;
  z-index: 1;
}

.leader-main strong,
.leader-main span,
.leader-rating strong,
.leader-rating span {
  display: block;
}

.leader-main strong {
  overflow-wrap: anywhere;
}

.leader-main span,
.leader-rating span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.leader-main .rank-icon {
  width: 18px;
  height: 18px;
  margin-right: 4px;
  vertical-align: -4px;
}

.leader-rating {
  padding-right: 22px;
  text-align: right;
}

.rank-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: contain;
}

.matches-preview-band {
  padding-bottom: 100px;
}

.match-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.match-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 94px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
}

.match-number {
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
}

.match-main strong,
.match-main span {
  display: block;
}

.match-main strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.match-main span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.match-outcome {
  min-width: 150px;
  text-align: right;
}

.match-outcome strong,
.match-outcome span {
  display: block;
}

.match-outcome strong {
  font-size: 14px;
}

.match-outcome span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.match-outcome.is-radiant strong {
  color: var(--green);
}

.match-outcome.is-dire strong {
  color: var(--red);
}

.match-outcome.is-live strong {
  color: var(--blue);
}

.match-outcome.is-canceled strong {
  color: #c3c8cf;
}

.empty-line {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 58px max(24px, calc((100vw - var(--content)) / 2));
  background: linear-gradient(100deg, #b5352f 0%, #7c2f48 52%, #315b8f 100%);
}

.cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 120px;
  padding: 28px max(24px, calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  background: #080a0d;
}

.brand-small img {
  width: 42px;
  height: 42px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.site-footer nav a:hover {
  color: #fff;
}

.page-hero {
  position: relative;
  display: flex;
  min-height: 360px;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: #090b0e;
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 10, 13, 0.98), rgba(8, 10, 13, 0.66) 58%, rgba(8, 10, 13, 0.35)),
    linear-gradient(180deg, rgba(8, 10, 13, 0.1), rgba(8, 10, 13, 0.94));
  content: "";
}

.rankings-hero {
  background: url("/assets/registration-banner.jpg") center 44% / cover;
}

.matches-hero {
  background: url("/assets/registration-banner.jpg") center 58% / cover;
}

.page-hero > div {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-size: 58px;
  line-height: 1;
}

.page-hero p:not(.eyebrow) {
  max-width: 670px;
  margin-bottom: 0;
  font-size: 17px;
}

.rankings-band,
.matches-history-band {
  padding-top: 54px;
}

.board-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-strong);
}

.board-toolbar h2 {
  margin-bottom: 4px;
  font-size: 32px;
}

.board-summary {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.search-control {
  display: grid;
  gap: 7px;
  width: min(320px, 100%);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.search-control input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  outline: none;
  background: var(--surface);
  color: #fff;
  font-size: 14px;
  text-transform: none;
}

.search-control input:focus {
  border-color: rgba(75, 146, 223, 0.72);
  box-shadow: 0 0 0 3px rgba(75, 146, 223, 0.1);
}

.rankings-table-wrap {
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
}

.rankings-table {
  width: 100%;
  border-collapse: collapse;
}

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

.rankings-table th {
  height: 50px;
  color: #7f8792;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.rankings-table td {
  font-size: 14px;
  font-weight: 700;
}

.rankings-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

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

.position-cell {
  width: 70px;
  color: var(--gold);
  font-size: 18px !important;
  font-weight: 900 !important;
}

.player-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.player-link:hover .player-name {
  color: var(--gold);
}

.player-name,
.mobile-player-meta {
  display: block;
}

.player-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-player-meta {
  display: none;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.rank-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rank-number {
  display: block;
  margin: 4px 0 0 38px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.score-cell {
  font-variant-numeric: tabular-nums;
}

.score-cell {
  color: #fff;
  font-size: 17px !important;
  font-weight: 900 !important;
}

.empty-state {
  padding: 40px 18px !important;
  color: var(--muted);
  text-align: center !important;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding-top: 24px;
}

.page-button {
  min-width: 100px;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.page-button:hover:not(:disabled) {
  border-color: rgba(216, 170, 86, 0.6);
  background: var(--surface-strong);
}

.page-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.page-label {
  min-width: 118px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

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

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
}

.profile-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 4, 6, 0.78);
  backdrop-filter: blur(10px);
}

.profile-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(780px, calc(100svh - 44px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  margin: 12px 12px -48px auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-strong);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.profile-content {
  padding: 30px;
}

.profile-header {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.profile-avatar {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-light);
  font-size: 20px;
  font-weight: 900;
  object-fit: cover;
}

.profile-header h2 {
  margin-bottom: 5px;
  overflow-wrap: anywhere;
  font-size: 30px;
}

.profile-muted {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.profile-rank-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.profile-grid > div {
  min-height: 92px;
  padding: 14px;
  background: var(--bg-soft);
}

.profile-grid dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
  font-weight: 850;
}

.profile-section {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.profile-section h3 {
  margin-bottom: 9px;
  font-size: 16px;
}

.profile-section p {
  margin-bottom: 0;
  color: #d4d7dc;
  line-height: 1.6;
}

.segmented-control {
  display: flex;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
}

.segmented-control button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.segmented-control button:last-child {
  border-right: 0;
}

.segmented-control button[aria-pressed="true"] {
  background: var(--surface-light);
  color: #fff;
}

.match-list.history .match-item {
  min-height: 108px;
}

.live-match-item {
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.site-live-header {
  min-height: 60px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}

.site-live-header > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-live-header .match-number {
  font-size: 14px;
}

.site-live-header strong {
  font-size: 15px;
}

.site-live-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 94px;
  padding: 16px 24px;
  background: var(--bg-soft);
}

.site-live-score > span {
  font-size: 14px;
  font-weight: 850;
  text-transform: uppercase;
}

.site-live-score > span.radiant {
  color: var(--green);
}

.site-live-score > span.dire {
  color: var(--red);
  text-align: right;
}

.site-live-score > strong {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}

.site-live-score > strong small {
  min-width: 62px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: #c9cdd3;
  font-size: 12px;
  text-align: center;
}

.site-live-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.site-live-overview strong {
  margin-left: 5px;
  color: #e4e7eb;
}

.site-live-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--line);
  gap: 1px;
}

.site-live-team {
  min-width: 0;
  padding: 15px 18px 18px;
  background: var(--surface);
}

.site-live-team h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.site-live-team h3 > span {
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.site-live-team.radiant h3 > span {
  background: var(--green);
}

.site-live-team.dire h3 > span {
  background: var(--red);
}

.site-live-team h3 small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.site-live-player {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px 48px;
  gap: 10px;
  align-items: center;
  min-height: 50px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

.site-live-player-main {
  min-width: 0;
}

.site-live-player-main strong,
.site-live-player-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-live-player-main strong {
  font-size: 12px;
}

.site-live-player-main small,
.site-live-kda,
.site-live-networth,
.live-empty {
  color: var(--muted);
  font-size: 10px;
}

.site-live-player-main small {
  margin-top: 3px;
}

.site-live-kda,
.site-live-networth {
  text-align: right;
}

.site-live-networth {
  color: #d9b86f;
  font-weight: 850;
}

.live-empty {
  margin: 0;
  padding: 12px 0;
}

@media (max-width: 1000px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    height: 42px;
  }

  .top-nav a {
    height: 42px;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 32px;
    padding: 64px 0 46px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .stats-inner > div {
    padding: 22px 18px;
  }

  .leaders-preview {
    grid-template-columns: 1fr;
  }

  .leader-card {
    min-height: 94px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 112px;
    padding: 8px 16px 0;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 14px;
  }

  .header-action {
    display: none;
  }

  .top-nav {
    gap: 24px;
    overflow-x: auto;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(7, 9, 11, 0.42) 0%, rgba(7, 9, 11, 0.86) 34%, rgba(7, 9, 11, 0.99) 72%),
      url("https://cdn.cloudflare.steamstatic.com/apps/dota2/images/dota_react/heroes/social/invoker.jpg") 63% top / auto 330px no-repeat;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    width: min(100% - 32px, var(--content));
    gap: 24px;
    padding: 44px 0 28px;
  }

  .hero-copy {
    padding-top: 58px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-note {
    display: none;
  }

  .featured-match {
    min-height: 86px;
    padding: 14px 16px;
  }

  .featured-match h2 {
    margin-bottom: 4px;
    font-size: 20px;
  }

  .featured-score {
    margin: 9px 0;
    font-size: 15px;
  }

  .live-card > .text-link {
    display: none;
  }

  .site-live-teams {
    grid-template-columns: 1fr;
  }

  .site-live-score {
    padding: 14px 16px;
  }

  .site-live-score > strong {
    gap: 8px;
    font-size: 26px;
  }

  .site-live-score > strong small {
    min-width: 54px;
    padding: 5px;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .stats-inner > div,
  .stats-inner > div:first-child {
    min-height: 96px;
    padding: 18px 16px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .stats-inner strong {
    font-size: 28px;
  }

  .content-band {
    width: min(100% - 32px, var(--content));
    padding: 58px 0;
  }

  .section-heading {
    margin-bottom: 26px;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading-row .text-link {
    display: inline-block;
    margin-top: 16px;
  }

  .section-heading h2,
  .join-copy h2,
  .cta-band h2 {
    font-size: 34px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .value-grid article,
  .value-grid article + article {
    min-height: 0;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .value-grid article:last-child {
    border-bottom: 0;
  }

  .value-index {
    margin-bottom: 18px;
  }

  .join-band {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .join-visual,
  .join-visual img {
    min-height: 260px;
  }

  .join-visual img {
    object-fit: contain;
  }

  .leader-card {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 15px;
  }

  .leader-card .player-avatar {
    width: 44px;
    height: 44px;
  }

  .leader-rating {
    padding-right: 8px;
  }

  .match-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 16px 0;
  }

  .match-outcome {
    grid-column: 2;
    min-width: 0;
    text-align: left;
  }

  .cta-band {
    display: grid;
    padding: 42px 16px;
  }

  .cta-band .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
    padding: 28px 16px;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .page-hero {
    min-height: 300px;
  }

  .page-hero > div {
    width: min(100% - 32px, var(--content));
    padding: 40px 0;
  }

  .page-hero h1 {
    font-size: 44px;
  }

  .page-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .board-toolbar {
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    gap: 26px;
  }

  .search-control {
    width: 100%;
    justify-self: stretch;
  }

  .rankings-table-wrap {
    overflow: visible;
    border-bottom: 0;
  }

  .rankings-table,
  .rankings-table tbody {
    display: block;
    width: 100%;
  }

  .rankings-table thead {
    display: none;
  }

  .rankings-table tr {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    grid-template-areas:
      "position player score"
      "position rank score";
    gap: 3px 10px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .rankings-table td {
    display: block;
    padding: 0;
    border: 0;
  }

  .rankings-table .position-cell {
    grid-area: position;
    width: auto;
  }

  .rankings-table .player-cell {
    grid-area: player;
    min-width: 0;
  }

  .rankings-table .rank-cell {
    grid-area: rank;
  }

  .rankings-table .score-cell {
    grid-area: score;
    text-align: right;
  }

  .rankings-table .record-cell,
  .rankings-table .winrate-cell {
    display: none;
  }

  .rankings-table .empty-state {
    display: block;
    grid-column: 1 / -1;
  }

  .player-link {
    width: 100%;
  }

  .player-link .player-avatar {
    width: 38px;
    height: 38px;
  }

  .player-name {
    max-width: 190px;
  }

  .mobile-player-meta {
    display: block;
  }

  .rank-icon {
    width: 24px;
    height: 24px;
  }

  .rank-line {
    font-size: 12px;
  }

  .rank-number {
    display: none;
  }

  .pagination {
    gap: 10px;
  }

  .page-button {
    min-width: 82px;
  }

  .profile-modal {
    padding: 0;
    place-items: end center;
  }

  .profile-card {
    width: 100%;
    max-height: calc(100svh - 28px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 6px 6px 0 0;
  }

  .profile-content {
    padding: 22px 16px 30px;
  }

  .profile-header {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .profile-avatar {
    width: 66px;
    height: 66px;
  }

  .profile-header h2 {
    font-size: 24px;
  }

  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .segmented-control {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Tournaments */
.tournament-heading-band {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  min-height: 230px;
  padding: 56px max(24px, calc((100vw - var(--content)) / 2)) 38px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #11151a url("/assets/league-submission/mix-games-league-banner-1024x400.png") no-repeat center 24% / cover;
  position: relative;
  isolation: isolate;
}

.tournament-heading-band::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #0b0d10 0%, rgba(11, 13, 16, 0.95) 38%, rgba(11, 13, 16, 0.58) 68%, rgba(11, 13, 16, 0.2) 100%),
    linear-gradient(0deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0) 58%);
  content: "";
}

.tournament-heading-copy {
  max-width: 700px;
}

.tournament-heading-copy h1 {
  margin-bottom: 12px;
  font-size: 56px;
  line-height: 1;
}

.tournament-heading-copy > p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  color: #c6cbd2;
  font-size: 17px;
}

.tournament-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.tournament-list-band {
  min-height: 480px;
}

.tournament-list {
  border-top: 1px solid var(--line);
}

.tournament-list-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 22px;
  min-height: 132px;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
}

.tournament-list-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.tournament-date-block {
  display: grid;
  width: 64px;
  height: 72px;
  place-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  text-align: center;
}

.tournament-date-block strong {
  font-size: 25px;
  line-height: 1;
}

.tournament-date-block span,
.tournament-list-meta span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.tournament-list-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tournament-list-title > strong {
  font-size: 21px;
}

.tournament-list-main p {
  margin: 9px 0 7px;
  color: #c2c7ce;
}

.tournament-list-main small {
  color: var(--gold);
}

.tournament-list-meta {
  display: grid;
  text-align: right;
}

.tournament-list-meta strong {
  font-size: 27px;
}

.tournament-status {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 25px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: #d4d8dd;
  font-size: 12px;
  font-weight: 800;
}

.tournament-status.is-open { border-color: rgba(116, 189, 114, 0.5); color: #9bd398; }
.tournament-status.is-live { border-color: rgba(225, 81, 71, 0.6); color: #ff9189; }
.tournament-status.is-completed { border-color: rgba(216, 170, 86, 0.55); color: #e7c37d; }
.tournament-status.is-canceled { color: #9ca2aa; }

.tournament-detail {
  padding-bottom: 70px;
}

.tournament-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: var(--content);
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tournament-facts > div {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.tournament-facts > div:last-child {
  border-right: 0;
}

.tournament-facts span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.tournament-facts strong {
  font-size: 15px;
}

.tournament-tabs {
  display: flex;
  gap: 4px;
  max-width: var(--content);
  margin: 30px auto 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.tournament-tabs button {
  min-width: 108px;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.tournament-tabs button[aria-selected="true"] {
  border-bottom-color: var(--red);
  color: var(--text);
}

.tournament-panel {
  max-width: var(--content);
  margin: 0 auto;
  padding-top: 32px;
}

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

.tournament-section-heading h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.tournament-bracket {
  min-width: 0;
}

.bracket-viewport {
  max-height: min(74vh, 860px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background-color: #111418;
  overscroll-behavior: contain;
  scrollbar-color: #535b65 #181c21;
}

.bracket-canvas {
  position: relative;
  isolation: isolate;
  width: max-content;
  min-width: 100%;
  padding: 20px 24px 32px;
}

.bracket-connectors {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.bracket-connector {
  fill: none;
  stroke: #69717c;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.bracket-connector.is-winners { stroke: #6f9e75; }
.bracket-connector.is-losers { stroke: #a35c60; }
.bracket-connector.is-grand_final { stroke: #a98548; }

.bracket-lane {
  position: relative;
  z-index: 1;
  width: max-content;
  min-width: 100%;
  padding: 0 0 28px;
}

.bracket-lane + .bracket-lane {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.bracket-lane > h3 {
  position: sticky;
  left: 0;
  z-index: 4;
  width: max-content;
  margin: 0 0 16px;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #181c21;
  font-size: 16px;
}

.bracket-winners > h3 { color: #9bd398; }
.bracket-losers > h3 { color: #ff9189; }
.bracket-grand_final > h3 { color: #e7c37d; }

.bracket-rounds {
  display: grid;
  grid-auto-columns: 300px;
  grid-auto-flow: column;
  gap: 72px;
  width: max-content;
  min-height: calc(var(--lane-slots) * 126px + 32px);
}

.bracket-round {
  display: grid;
  grid-template-rows: 28px minmax(0, 1fr);
  min-width: 0;
}

.bracket-round > h4 {
  min-height: 22px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.bracket-round-series {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 18px;
  min-height: calc(var(--lane-slots) * 126px);
}

.series-card {
  position: relative;
  width: 300px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-left: 3px solid #59616d;
  border-radius: 6px;
  background: var(--surface);
}

.series-card.is-live {
  border-left-color: var(--red);
}

.series-card header,
.series-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  color: var(--muted);
  font-size: 11px;
}

.series-card header {
  border-bottom: 1px solid var(--line);
}

.series-card footer {
  border-top: 1px solid var(--line);
}

.series-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  align-items: center;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  letter-spacing: 0;
  text-align: left;
}

.series-team + .series-team {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.series-team.is-interactive {
  cursor: pointer;
}

.series-team.is-interactive:hover,
.series-team.is-interactive:focus-visible {
  outline: 0;
  background: rgba(255, 255, 255, 0.055);
}

.series-team-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.series-team-identity small {
  flex: 0 0 auto;
  color: #8d949e;
  font-size: 10px;
  font-weight: 800;
}

.series-team-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}

.series-team > b {
  text-align: right;
}

.series-team.is-winner .series-team-identity strong,
.series-team.is-winner > b {
  color: #9bd398;
}

.series-side-label {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.series-side-label.is-radiant {
  border-color: rgba(116, 189, 114, 0.45);
  color: #9bd398;
}

.series-side-label.is-dire {
  border-color: rgba(225, 81, 71, 0.48);
  color: #ff9189;
}

.series-map-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 11px 9px;
}

.series-map-line span,
.series-map-line a {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--surface-light);
  color: var(--muted);
  font-size: 10px;
}

.series-map-line a:hover {
  color: var(--text);
}

.bracket-team-popover {
  position: fixed;
  z-index: 100;
  width: min(330px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #59616d;
  border-radius: 6px;
  background: #1a1e23;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.bracket-team-popover[hidden] {
  display: none;
}

.bracket-team-popover header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.bracket-team-popover header span,
.bracket-team-popover header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.bracket-team-popover header strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bracket-team-popover ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bracket-team-popover li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 7px 9px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.bracket-team-popover li:last-child {
  border-bottom: 0;
}

.bracket-team-popover li > span {
  grid-row: span 2;
  color: var(--muted);
  font-size: 11px;
}

.bracket-team-popover li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.bracket-team-popover li small {
  color: var(--muted);
  font-size: 10px;
}

.dota-match-link {
  color: #62b6e7;
  text-decoration: none;
}

.dota-match-link:hover {
  color: #9bd8fa;
  text-decoration: underline;
}

.tournament-teams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tournament-team-card {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.tournament-team-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.tournament-team-card header span,
.tournament-team-card header > strong {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.tournament-team-card h3 {
  margin: 3px 0 0;
  font-size: 18px;
}

.tournament-team-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tournament-team-card li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tournament-team-card li:last-child {
  border-bottom: 0;
}

.tournament-team-card li > span {
  display: grid;
  width: 28px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.tournament-team-card li strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.tournament-team-card li small {
  color: var(--muted);
  font-size: 11px;
}

.tournament-rules {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 44px;
  padding-top: 4px;
}

.tournament-rules-copy p {
  color: #c2c7ce;
  line-height: 1.65;
}

.rules-markdown {
  white-space: pre-line;
}

.tournament-prize-list {
  border-top: 1px solid var(--line-strong);
}

.tournament-prize-list > div {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.tournament-prize-list span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .tournament-heading-band {
    min-height: 210px;
    background-position: center 24%;
    background-size: cover;
  }

  .tournament-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: 20px;
    margin-left: 20px;
  }

  .tournament-facts > div:nth-child(2) {
    border-right: 0;
  }

  .tournament-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .tournament-tabs,
  .tournament-panel {
    margin-right: 20px;
    margin-left: 20px;
  }

  .tournament-teams {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tournament-heading-band {
    min-height: 260px;
    align-items: start;
    flex-direction: column;
    justify-content: end;
    padding: 36px 16px 24px;
    background-position: 58% top;
    background-size: auto 145%;
  }

  .tournament-heading-band::before {
    background: linear-gradient(0deg, #0b0d10 0%, rgba(11, 13, 16, 0.94) 55%, rgba(11, 13, 16, 0.2));
  }

  .tournament-heading-copy h1 {
    font-size: 34px;
  }

  .tournament-heading-copy > p:last-child {
    font-size: 14px;
  }

  .tournament-heading-actions {
    width: 100%;
    justify-content: stretch;
  }

  .tournament-heading-actions .button {
    flex: 1 1 auto;
  }

  .tournament-list-item {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }

  .tournament-date-block {
    width: 50px;
    height: 62px;
  }

  .tournament-list-title > strong {
    width: 100%;
    font-size: 17px;
  }

  .tournament-list-meta {
    display: none;
  }

  .tournament-facts {
    grid-template-columns: 1fr;
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  .tournament-facts > div,
  .tournament-facts > div:nth-child(2) {
    min-height: 72px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tournament-tabs {
    margin: 20px 12px 0;
    overflow-x: auto;
  }

  .tournament-tabs button {
    min-width: 94px;
  }

  .tournament-panel {
    margin-right: 12px;
    margin-left: 12px;
    padding-top: 24px;
  }

  .tournament-rules {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .tournament-team-card li {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .tournament-team-card li small {
    grid-column: 2;
  }

  .bracket-viewport {
    max-height: 68vh;
  }

  .bracket-canvas {
    padding: 16px 14px 24px;
  }

  .bracket-rounds {
    grid-auto-columns: 280px;
    gap: 58px;
  }

  .series-card {
    width: 280px;
  }
}
