.fifa-bracket {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
}

/* Each "round" column */
.fifa-bracket .round {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 140px;
}

.fifa-bracket .round h4 {
  margin-bottom: 8px;
  font-size: 14px;
  text-align: center;
}

/* Column where JS absolutely positions matches */
.fifa-bracket .match-column.positioned {
  position: relative;
  width: 100%;
  max-width: 220px;
  min-height: 560px; /* enough vertical space for all rows */
}

/* Match box */
.fifa-match {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 6px 8px;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.fifa-match .team {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  line-height: 1.2;
}

.fifa-match .team.winner {
  font-weight: 600;
  color: #0074d9;
}

.fifa-match::after {
  content: none;
}

/* PRINT */
@media print {
  header,
  nav,
  footer,
  #theme-toggle,
  .section-toggle-buttons,
  .pdf-button {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    margin: 0;
    padding: 0;
  }

  @page {
    size: auto;
    margin: 0.5in;
  }

  .fifa-bracket {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  .fifa-match {
    border: 1px solid #000 !important;
    background: #fff !important;
    color: #000 !important;
    page-break-inside: avoid;
  }

  .fifa-match .team {
    color: #000 !important;
  }

  .fifa-match .team.winner {
    font-weight: 700 !important;
    color: #000 !important;
  }

  .fifa-bracket .round {
    page-break-inside: avoid;
  }

  .bracket-section.hidden {
    display: none !important;
  }
}
