.football-pool-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid #d9dee5;
  border-radius: 10px;
  background: #f8fafc;
}

.football-pool-summary p {
  margin: 0;
}

.football-pool-table {
  width: 100%;
  margin: 0 0 1.5rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.football-pool-table caption {
  text-align: left;
}

.football-pool-table thead tr {
  border-bottom: 2px solid #cfd8e3;
}

.football-pool-row {
  border-bottom: 1px solid #e5e7eb;
}

.football-pool-row:nth-child(even) {
  background: #fafbfc;
}

.football-pool-row:hover {
  background: #f3f7fb;
}

.football-pool-cell {
  padding: 0.8rem 0.9rem;
  vertical-align: middle;
  text-align: center;
}

.football-pool-cell--header {
  font-weight: 700;
  color: #1f2937;
}

.football-pool-cell--kickoff,
.football-pool-cell--actual,
.football-pool-cell--prediction,
.football-pool-cell--points,
.football-pool-cell--leaderboard-points {
  white-space: nowrap;
}

.football-pool-cell--points,
.football-pool-cell--leaderboard-points {
  text-align: right;
  font-weight: 700;
  text-align: center;
}

.football-pool-cell--action a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid #c9d3df;
  border-radius: 6px;
  text-decoration: none;
}

.football-pool-cell--action a:hover,
.football-pool-cell--action a:focus {
  text-decoration: none;
  border-color: #99acc2;
}

.football-pool-team {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.football-pool-flag {
  width: 24px;
  height: 16px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid #cfd8e3;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02);
}

.football-pool-team-name {
  display: inline-block;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: normal;
}

.football-pool-table--leaderboard .football-pool-cell--leaderboard-rank-names {
  font-weight: 600;
}

@media (max-width: 768px) {
  .football-pool-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .football-pool-table {
    table-layout: auto;
  }

  .football-pool-cell {
    padding: 0.7rem 0.55rem;
  }
}
