.nav-wrap { min-height:68px; display:flex; align-items:center; justify-content:space-between; }
.brand { font-size:1.4rem; font-weight:900; letter-spacing:-.04em; }
nav { display:flex; align-items:center; gap:22px; font-size:.95rem; }
a { color:inherit; text-decoration:none; }


.navbar-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color:#0f5132;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .navbar-nav .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar-nav .btn {
    padding: 0.65rem 1rem;
  }
}

.bracket-panel {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
    padding: 1.5rem;
}

.bracket-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
}

.bracket-board {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 72px;
    min-width: max-content;
    min-height: 700px;
    padding: 20px 30px;
}

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

.bracket-connector {
    fill: none;
    stroke: #495057;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: square;
}

.bracket-round {
    position: relative;
    z-index: 2;
    width: 260px;
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
}

.bracket-round-title {
    height: 42px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
}

.bracket-match-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    gap: 24px;
}

.bracket-match {
    position: relative;
    width: 100%;
    background: transparent;
}

.bracket-match-number {
    margin-bottom: 6px;
    font-size: 0.72rem;
    color: #6c757d;
}

.bracket-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 10px 14px;
    background: #cfe2ff;
    border-left: 5px solid #0d6efd;
    border-radius: 0.35rem;
    font-size: 1rem;
}

.bracket-team + .bracket-team {
    margin-top: 8px;
}

.bracket-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-team.is-winner {
    background: #d1e7dd;
    border-left-color: #198754;
    color: #0f5132;
    font-weight: 700;
}

.bracket-winner-mark {
    font-weight: 800;
    color: #198754;
}

.bracket-score {
    margin-top: 7px;
    font-size: 0.8rem;
    color: #6c757d;
}

.bracket-result-form {
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
}

.bracket-champion-round {
    width: 260px;
    flex-basis: 260px;
}

.bracket-champion {
    min-height: 100px;
    padding: 20px;
    text-align: center;
    background: #ffe45c;
    border: 2px solid #ffc107;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(255, 193, 7, 0.2);
}

.bracket-trophy {
    margin-bottom: 6px;
    font-size: 2rem;
}

.bracket-champion-name {
    font-size: 1.05rem;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .bracket-panel {
        padding: 0.75rem;
    }

    .bracket-board {
        gap: 48px;
        padding: 15px;
    }

    .bracket-round {
        width: 230px;
        flex-basis: 230px;
    }

    .bracket-champion-round {
        width: 230px;
        flex-basis: 230px;
    }
}

.site-header {
  position: relative;
  z-index: 1030;
}

.site-header .navbar-brand {
  color: #145c37;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: 0.01em;
}

.site-header .navbar-brand:hover {
  color: #0f472b;
}

.site-header .navbar-toggler {
  border: 1px solid #d9dedb;
  border-radius: 0.75rem;
  padding: 0.45rem 0.65rem;
  box-shadow: none;
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.site-header .nav-link {
  color: #343a40;
  font-weight: 500;
  border-radius: 0.65rem;
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  color: #146c43;
  background-color: #f1f8f4;
}

.site-header .logout-button,
.site-header .signup-button {
  min-height: 38px;
  padding: 0.4rem 1rem;
  border-radius: 0.65rem;
  white-space: nowrap;
}

/* Mobile */
@media (max-width: 991.98px) {
  .site-header .navbar {
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  .site-header .navbar-brand {
    font-size: 1.65rem;
  }

  .site-header .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.65rem;
    background-color: #ffffff;
    border: 1px solid #e8ece9;
    border-radius: 0.9rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
  }

  .site-header .navbar-nav {
    gap: 0.15rem;
  }

  .site-header .navbar-nav .nav-link {
    padding: 0.7rem 0.8rem;
    font-size: 1rem;
  }

  .site-header .account-nav-item {
    margin-top: 0.4rem;
    padding-top: 0.5rem;
    border-top: 1px solid #edf0ee;
  }

  .site-header .account-nav-link {
    line-height: 1.25;
  }

  .site-header .logout-nav-item {
    margin-top: 0.45rem;
  }

  .site-header .logout-button,
  .site-header .signup-button {
    display: block;
    width: 100%;
    min-height: 42px;
  }
}

/* Desktop */
@media (min-width: 992px) {
  .site-header .nav-link {
    padding: 0.5rem 0.7rem;
  }
}