.groups-wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 64px;
}

.group-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.group-jump a {
  padding: 9px 14px;
  border: 1px solid rgba(214, 255, 0, 0.2);
  border-radius: 10px;
  color: var(--paper-dim);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.group-jump a:hover,
.group-jump a:focus-visible {
  border-color: rgba(214, 255, 0, 0.4);
  background: rgba(214, 255, 0, 0.08);
  color: var(--orange);
}

.group-jump a[aria-current="page"] {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--ink);
}

.board {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid rgba(214, 255, 0, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(80% 80% at 100% 0%, rgba(214, 255, 0, 0.13), transparent 65%),
    linear-gradient(155deg, #151a0d, #0d100b 65%);
}

.board-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(214, 255, 0, 0.2);
}

.board-name {
  margin: 0;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.95rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.board-name span {
  color: var(--orange);
}

.board-when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0 0;
  color: var(--paper-dim);
  font-size: 16px;
  font-weight: 700;
}

.board-format {
  color: var(--muted);
  font-size: 13px;
}

.board-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  align-items: start;
  gap: 24px;
}

.board-label {
  margin: 0 0 14px;
  color: var(--paper);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 800;
}

.rounds {
  display: grid;
  gap: 14px;
}

.round {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.round-time {
  color: var(--orange);
  font-family: "Unbounded", sans-serif;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.round-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.match {
  min-width: 0;
  padding: 12px 14px 6px;
  border: 1px solid rgba(214, 255, 0, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, #1b2211, #12160e 75%);
}

.match-stream {
  margin: 0 0 4px;
  color: var(--paper-dim);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.match-side {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
}

.match-side + .match-side {
  border-top: 1px solid rgba(214, 255, 0, 0.14);
}

.match-side:hover,
.match-side:focus-visible,
.standings .who a:hover,
.standings .who a:focus-visible {
  color: var(--orange);
}

.match-team {
  min-width: 0;
  overflow-wrap: anywhere;
}

.match-team b,
.standings .who b {
  font-size: 17px;
  font-weight: 800;
}

.match-team small,
.standings .who small {
  color: var(--muted);
  font-size: 12px;
}

.match-team > .seed-line,
.standings .who > .seed-line {
  color: var(--muted);
  font-weight: 600;
}

.match-team .seed-dot,
.standings .who .seed-dot {
  border-color: rgba(168, 184, 150, 0.45);
  color: var(--muted);
}

.match-team > b:not(.seed-line),
.standings .who > b:not(.seed-line) {
  display: block;
  color: var(--paper);
}

.match-team > b:not(.seed-line) a,
.standings .who > b:not(.seed-line) a {
  color: var(--paper);
}

.match-side .score {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.match-side .score:empty {
  display: none;
}

.match-side.is-win b,
.match-side.is-win .score {
  color: var(--orange);
}

.match-side.is-lose b,
.match-side.is-lose .score {
  color: var(--muted);
}

.standings {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(214, 255, 0, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, #1b2211, #12160e 75%);
}

.standings .board-label {
  margin-bottom: 9px;
}

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

.standings th,
.standings td {
  padding: 9px 4px;
  border-top: 1px solid rgba(214, 255, 0, 0.14);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.standings th {
  border-top: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.standings .who {
  text-align: left;
  overflow-wrap: anywhere;
}

.standings .who a {
  color: inherit;
  text-decoration: none;
}

.standings.is-pending thead,
.standings.is-pending td:not(.who) {
  display: none;
}

.standings tr.is-through td:first-child {
  color: var(--orange);
  font-weight: 800;
}

.standings-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.board .seed-legend {
  margin-top: 16px;
}

@media (max-width: 840px) {
  .board-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .standings {
    order: -1;
  }
}

@media (max-width: 540px) {
  .groups-wrap {
    width: calc(100% - 24px);
  }

  .board {
    padding: 16px;
  }

  .round {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .round-grid {
    gap: 6px;
  }

  .match {
    padding-inline: 10px;
  }

  .match-team b {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  .round-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
