body {
  margin: 0;
  padding: 40px;
  font-family: 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #2c3e50;
}

.dashboard-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1280px;
  margin: auto;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 20px;
  flex: 1 1 45%;
  max-width: 500px;
  min-width: 300px;
  transition: all 0.3s ease;
    height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
}

.card h3 {
  margin-top: 0;
  color: #2980b9;
}


.dashboard-grid {
  align-items: stretch;
}


.sphere-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sphere {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #fff;
  font-weight: 400;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.2s ease;
}

.sphere:hover {
  transform: scale(1.1);
}

.opponents-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  justify-content: center;
  padding: 10px 0;
}

.opponent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.opponent-row .sphere {
  width: 60px;
  height: 60px;
  font-size: 22px;
  flex-shrink: 0;
  text-shadow: 1px 2px 2px gray;
}

.match-result {
  font-size: 32px;
  font-weight: 400;
  margin-left: 25px;
  color: #2c3e50;
  text-shadow: 1px 2px 2px gray;
}

.match-score {
  color: #2980b9;
  font-size: 32px;
  font-weight: bold;
  margin-left: 85px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  font-size: 16px;
}

th, td {
  padding: 10px;
  text-align: center;
}

thead {
  background: #ecf0f1;
}

tbody tr:nth-child(even) {
  background: #f9f9f9;
}
.card {
  min-height: 400px; /* Or experiment with 420–450 */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

