Edit in JSFiddle

<div id="green">
  <div id="blue">
    <h1 class="titulo">
      texto
    </h1>
  </div>
</div>
#green .titulo{ /*(0,1,1,0) -> ganador*/
  color: green;
}
.titulo{ /*(0,0,1,0)*/
  color:red
}
#blue h1{ /*(0,1,0,1)*/
  color: blue;
}