.game-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(40, 40, 40, 0.7);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.game-footer .rematch-button .tez-button { outline: none; }
.game-footer .rematch-button .tez-button:focus { outline: none; box-shadow: none; }
.game-footer .rematch-button .tez-button::-moz-focus-inner { border: 0; }

.game-content {
  display: flex;
  width: 100%;
  gap: 15px;
}

.game-card.joining {
  pointer-events: none;
  opacity: 0.7;
}

.game-card.joining::after {
  content: "Joining...";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 6px;
  font-size: 18px;
  color: var(--accent-color);
  animation: pulse 1s infinite;
}

.game-preview {
  width: 80px;
  height: 80px;
  background-color: #333;
  border-radius: 4px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.game-status-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: auto;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-bottom-right-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.game-time-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--accent-color);
  font-size: 12px;
  padding: 3px 0;
  text-align: center;
  font-family: 'Orbitron', sans-serif;
}

.game-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-terrain {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--light-color);
}

.game-creator {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
}

.team-counts {
  display: flex;
  gap: 15px;
  align-items: center;
}

.team-count {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
  border-radius: 4px;
}

.team-count-value {
  font-weight: bold;
}

.total-players {
  margin-left: auto;
  font-size: 12px;
  color: #ccc;
}

/* Game results (shown when completed) */
.game-results {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.game-results .winner-text {
  font-weight: 700;
  color: var(--light-color);
}
.game-results .score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
}
.game-results .blue-score { color: #3498db; font-weight: 700; }
.game-results .red-score { color: #e74c3c; font-weight: 700; }
.game-results .score-separator { color: #aaa; }

/* Footer actions / messages */
.game-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.game-abort-reason {
  color: #ffb3b3;
  font-size: 12px;
}

.game-participant-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 12px;
  padding: 4px 8px 4px 8px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.15);
}
.game-participant-badge .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  margin-top: 3px;
}
.game-participant-badge.blue .dot { background: #3498db; }
.game-participant-badge.red .dot { background: #e74c3c; }

.game-footer .rematch-button {
  margin-right: 10px;
}

/* State variants */
.game-card.not-created {
  cursor: default;
  opacity: 0.7;
  border-style: dashed;
  pointer-events: none;
}
.game-card.not-created:hover {
  transform: none;
  box-shadow: none;
}
.game-card.not-created .game-status-badge {
  background-color: rgba(255, 165, 0, 0.8);
}
.game-card.not-created .game-time-badge {
  display: none;
}

.game-card.aborted {
  border-color: rgba(255, 99, 71, 0.5);
  background-color: rgba(80, 20, 20, 0.6);
}
.game-card.aborted .game-status-badge {
  background-color: rgba(255, 69, 58, 0.85);
}

.game-card.completed {
  border-color: rgba(46, 204, 113, 0.5);
  background-color: rgba(20, 60, 40, 0.6);
}
.game-card.completed .game-status-badge {
  background-color: rgba(39, 174, 96, 0.85);
}

/* Removed border highlight for participant */

