:root {
  color-scheme: light;
  --bg: #f7f7f3;
  --surface: #ffffff;
  --surface-2: #f0f2ee;
  --ink: #151816;
  --muted: #68706a;
  --line: #d9ded6;
  --line-strong: #aeb8ad;
  --accent: #2f5f8f;
  --accent-ink: #ffffff;
  --warn: #8a4b12;
  --locked: #f1f0ea;
  --shadow: 0 12px 28px rgba(24, 32, 26, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

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

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 247, 243, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  max-width: 1180px;
  height: 58px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  margin-right: 16px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-link {
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-link.active,
.nav-link:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 18px 56px;
}

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

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

.subtle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.muted {
  color: var(--muted);
}

.coverage-note {
  color: var(--ink);
  font-weight: 750;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.home-actions {
  justify-content: flex-end;
}

.share-tools {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.share-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.color-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.color-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--swatch);
}

.sort-control {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sort-control select {
  height: 38px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  width: 220px;
  padding: 0 14px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  font-weight: 750;
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.static-page {
  max-width: 860px;
}

.static-page h1 {
  max-width: 720px;
}

.static-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}

.static-panel {
  margin-top: 22px;
}

.static-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.static-list li + li {
  margin-top: 8px;
}

.static-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.static-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.static-links a:hover {
  color: var(--ink);
}

.app-links {
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel,
.team-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 18px;
}

.section-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.leader {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.leader-compact {
  min-height: 42px;
  padding: 9px 10px;
}

.leader-mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.leader-mini strong {
  min-width: 18px;
  text-align: right;
  font-size: 15px;
}

.leader-compact .flag-wrap,
.leader-compact .flag,
.leader-compact .flag-placeholder {
  width: 24px;
  height: 16px;
  flex-basis: 24px;
}

.leader small,
.eyebrow,
.date-line,
.source-line {
  color: var(--muted);
  font-size: 12px;
}

.source-line a {
  color: #244f7c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-link {
  color: #244f7c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stats-panel {
  margin-top: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.extras-block {
  margin-top: 22px;
}

.extras-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.officials-block {
  margin-top: 18px;
}

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

.least-stoppage-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.least-stoppage-card h4 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.collapsible-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.collapsible-table summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}

.collapsible-table summary::-webkit-details-marker {
  display: none;
}

.collapsible-table summary::after {
  content: "+";
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.collapsible-table[open] summary {
  border-bottom: 1px solid var(--line);
}

.collapsible-table[open] summary::after {
  content: "-";
}

.officials-table-wrap {
  overflow-x: auto;
  background: var(--surface);
}

.officials-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.compact-source-table {
  min-width: 560px;
}

.officials-table th,
.officials-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

.officials-table th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

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

.officials-match {
  display: grid;
  gap: 5px;
}

.officials-match > span:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.stat-card {
  min-height: 150px;
  padding: 12px;
  background: #fff;
}

.compact-stat-card {
  min-height: 92px;
}

.stat-card h3 {
  min-height: 36px;
  color: #374039;
  font-size: 13px;
}

.compact-stat-card h3 {
  min-height: 0;
}

.big-stat {
  margin: 8px 0 0;
  font-size: 30px;
  font-weight: 850;
  line-height: 1;
}

.observation-detail {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.stat-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.stat-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.stat-list .team {
  min-width: 0;
}

.stat-list strong {
  font-size: 16px;
  font-weight: 850;
}

.stat-more {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.stat-more summary {
  width: max-content;
  color: #244f7c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  list-style: none;
}

.stat-more summary::-webkit-details-marker {
  display: none;
}

.stat-more summary span:last-child {
  display: none;
}

.stat-more[open] summary span:first-child {
  display: none;
}

.stat-more[open] summary span:last-child {
  display: inline;
}

.stat-more .stat-list {
  margin-top: 10px;
}

.stat-row-link {
  display: inline-flex;
  min-width: 0;
  color: inherit;
}

.player-stat-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-weight: 750;
}

.player-stat-name span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.unavailable-card {
  background: #fbfaf7;
}

.unavailable-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.single-note {
  min-height: auto;
  margin-top: 14px;
}

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

.flag-wrap,
.flag,
.flag-placeholder {
  display: inline-block;
  width: 22px;
  height: 15px;
  flex: 0 0 22px;
}

.flag,
.flag-placeholder {
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
  background: var(--surface-2);
}

.team-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 7px;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.team-name {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.team-roster-link {
  color: #244f7c;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.team-roster-link:hover,
.team-roster-link:focus-visible {
  color: var(--accent);
}

.group-card {
  padding: 18px;
  scroll-margin-top: 84px;
}

.group-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th,
td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}

th:first-child,
td:first-child {
  text-align: left;
}

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

.standings-wrap {
  overflow-x: auto;
}

.matches {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.match-row,
.ko-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
}

.match-row.locked,
.ko-card.locked {
  background: var(--locked);
  border-color: #d8d5cb;
}

.match-teams {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.score-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.score-inputs input {
  width: 48px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

.score-inputs input:disabled {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  font-weight: 800;
  opacity: 1;
}

.locked-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e4e1d8;
  color: #514f47;
  font-size: 12px;
  font-weight: 800;
}

.notice {
  padding: 18px;
  background: #fff8ed;
  border: 1px solid #ead6b6;
  border-radius: 8px;
  color: var(--warn);
}

.champion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  background: #334a67;
  color: #fff;
  border-radius: 8px;
}

.champion .team-code {
  color: #fff;
}

.champion .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.champion .flag {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.bracket-page {
  max-width: none;
  padding: 28px clamp(16px, 2vw, 34px) 64px;
}

.bracket-page .page-head,
.bracket-page .champion {
  max-width: 1680px;
  margin-left: auto;
  margin-right: auto;
}

.bracket-frame {
  max-width: 1680px;
  margin: 0 auto;
  overflow: visible;
}

.bracket-board {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) 190px minmax(560px, 1fr);
  gap: clamp(18px, 2vw, 32px);
  align-items: stretch;
}

.bracket-side {
  display: grid;
  grid-template-columns: repeat(4, minmax(126px, 1fr));
  gap: clamp(10px, 1vw, 16px);
  min-width: 0;
}

.round {
  display: grid;
  grid-template-rows: 34px repeat(16, minmax(68px, 1fr));
  gap: 0;
  min-height: 1130px;
  min-width: 0;
}

.round-title {
  position: static;
  grid-row: 1;
  align-self: start;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ko-slot {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 0;
}

.ko-slot::after,
.ko-slot::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.bracket-side.left .ko-slot::after {
  top: 50%;
  right: calc(-1 * clamp(10px, 1vw, 16px));
  width: clamp(10px, 1vw, 16px);
  border-top: 1px solid var(--line-strong);
}

.bracket-side.right .ko-slot::after {
  top: 50%;
  left: calc(-1 * clamp(10px, 1vw, 16px));
  width: clamp(10px, 1vw, 16px);
  border-top: 1px solid var(--line-strong);
}

.bracket-side.left .round:not(:last-child) .ko-slot.pair-start::before {
  top: 50%;
  right: calc(-1 * clamp(10px, 1vw, 16px));
  height: 100%;
  border-right: 1px solid var(--line-strong);
}

.bracket-side.right .round:not(:last-child) .ko-slot.pair-start::before {
  top: 50%;
  left: calc(-1 * clamp(10px, 1vw, 16px));
  height: 100%;
  border-left: 1px solid var(--line-strong);
}

.ko-card {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 7px 9px;
  min-height: 104px;
  border-color: rgba(174, 184, 173, 0.75);
  box-shadow: 0 8px 22px rgba(24, 32, 26, 0.06);
}

.ko-card .mini-button {
  min-width: 48px;
}

.ko-card.complete {
  border-color: rgba(47, 95, 143, 0.32);
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.ko-card .team {
  gap: 6px;
  max-width: 100%;
}

.ko-card .flag-wrap,
.ko-card .flag,
.ko-card .flag-placeholder {
  width: 28px;
  height: 19px;
  flex-basis: 28px;
}

.ko-card .team-code {
  min-width: 36px;
  height: auto;
  min-height: 24px;
  padding: 0;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  justify-content: flex-start;
}

.pending-team .team-code {
  min-width: 0;
  color: var(--muted);
}

.ko-meta {
  display: block;
  min-height: 18px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ko-meta strong {
  color: #244f7c;
  font-size: 11px;
  white-space: nowrap;
}

.ko-team {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  padding: 3px 0;
}

.ko-score {
  text-align: center;
  color: var(--ink);
  font-weight: 850;
}

.ko-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(217, 222, 214, 0.8);
}

.ko-actions {
  display: grid;
  grid-template-columns: 38px 38px auto;
  gap: 6px;
  margin-top: 8px;
}

.ko-actions input,
.ko-actions select {
  width: 100%;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  background: #fff;
}

.ko-actions select {
  grid-column: 1 / -1;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 56px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.mini-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.score-save-button[hidden] {
  display: none;
}

.ko-editor {
  position: relative;
  min-width: 0;
}

.ko-editor summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ko-editor summary::-webkit-details-marker {
  display: none;
}

.ko-waiting {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(217, 222, 214, 0.8);
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.final-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 3vh, 30px);
  min-width: 0;
}

.final-column .round-title {
  position: static;
}

.final-stack {
  padding: 0;
  min-width: 0;
}

.third-place-stack {
  margin-top: clamp(28px, 5vh, 64px);
}

.primary-final {
  color: var(--ink);
}

.ko-card.stage-f {
  min-height: 146px;
  background: #334a67;
  border-color: #334a67;
  color: #fff;
  box-shadow: 0 18px 38px rgba(33, 55, 81, 0.2);
}

.ko-card.stage-f.complete {
  background: #334a67;
  border-color: #334a67;
}

.ko-card.stage-f .team-code,
.ko-card.stage-f .ko-score {
  color: #fff;
}

.ko-card.stage-f .ko-meta,
.ko-card.stage-f .ko-editor summary,
.ko-card.stage-f .ko-waiting {
  color: rgba(255, 255, 255, 0.7);
}

.ko-card.stage-f .ko-meta strong {
  color: #fff;
}

.ko-card.stage-f .ko-card-footer {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.ko-card.stage-f .mini-button {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.ko-card.stage-f .flag,
.ko-card.stage-f .flag-placeholder {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.team-panel {
  padding: 16px;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.team-list li {
  min-width: 0;
  font-size: 14px;
}

.team-list-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.team-list .team {
  align-items: flex-start;
}

.team-list-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.title-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 28px;
  min-height: 24px;
  padding: 0 6px;
  border: 1px solid #d8c995;
  border-radius: 999px;
  background: #fff8db;
  color: #6d560c;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.title-badge svg {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
}

.title-count {
  line-height: 1;
}

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

.footer-note {
  margin-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 860px) {
  .topbar-inner {
    overflow-x: auto;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-actions {
    justify-content: flex-start;
  }

  .button {
    width: min(100%, 260px);
  }

  .sort-control {
    width: min(100%, 260px);
  }

  .grid.cols-2,
  .grid.cols-3,
  .stat-grid,
  .extras-grid,
  .least-stoppage {
    grid-template-columns: 1fr;
  }

  .leader-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .match-row {
    grid-template-columns: 1fr;
  }

  .score-inputs {
    justify-content: flex-start;
  }

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

@media (max-width: 520px) {
  .leader-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .bracket-board {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .bracket-side {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .round {
    grid-template-rows: 36px repeat(16, minmax(58px, 1fr));
    min-height: 1000px;
  }

  .final-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 2;
  }

  .bracket-side.left {
    order: 1;
  }

  .bracket-side.right {
    order: 3;
  }
}

@media (max-width: 720px) {
  .bracket-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .bracket-side {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .final-column {
    grid-template-columns: 1fr;
  }

  .round {
    grid-template-rows: auto;
    min-height: auto;
    gap: 8px;
  }

  .ko-slot {
    grid-row: auto !important;
  }

  .ko-slot::before,
  .ko-slot::after {
    display: none;
  }
}
