.nash-container {
  position: relative;
  padding: 15px;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  font-size: 14px;
}

.player-labels {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 100;
}

.direction-labels {
  display: flex;
  gap: 120px;
  margin-top: 10px;
}

.harry-label {
  position: absolute;
  left: 0;
  top: 45%;
  opacity: 0.75;
  font-size: 16px;
  font-weight: 600;
  color: #906bff;
  z-index: 100;
  transform: rotate(-90deg) translateX(-30px);
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
}

.hermione {
  opacity: 0.75;
  font-size: 16px;
  font-weight: 600;
  color: #906bff;
  z-index: 100;
  background: rgba(0, 0, 0, 0.7);
}

.direction-label-vertical {
  position: absolute;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 120px;
  z-index: 100;
  /* background: rgba(0, 0, 0, 0.7); */
}

.direction-label-vertical span {
  transform: rotate(-90deg) translateX(-30px);
  background: black;
}

.nash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #333;
  padding: 2px;
  width: 300px;
  margin: 0 auto;
  margin-top: 60px;
}

.matrix-cell {
  background: black;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 20px;
  transition: background-color 0.3s ease;
}

.matrix-cell .numbers {
  display: flex;
  gap: 10px;
}

.matrix-cell .numbers span {
  font-size: 24px;
  color: white;
  transition: color 0.3s ease;
}

.matrix-cell.correct {
  background-color: var(--success-bg);
}

.matrix-cell.correct .numbers span {
  color: var(--success-color);
}

.matrix-cell.incorrect {
  background-color: var(--error-bg);
}
