/* Escopo exclusivo do jogo; tipografia herdada do artigo. */
#django-flow-game {
  margin-block: 2rem;
  padding: clamp(1rem, 4vw, 2rem);
  border: 2px solid #315a88;
  border-radius: 1rem;
  background: #f3f7fc;
  color: #172b43;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#django-flow-game,
#django-flow-game * { box-sizing: border-box; }
#django-flow-game [hidden] { display: none !important; }
#django-flow-game h2,
#django-flow-game h3 { color: #172b43; line-height: 1.4; }
#django-flow-game [data-choices] {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .75rem;
  margin-block: 1rem;
}
#django-flow-game button {
  min-height: 48px;
  max-width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #315a88;
  border-radius: .6rem;
  background: #fff;
  color: #172b43;
  font: inherit;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
#django-flow-game button:hover:not(:disabled) { background: #dfebf8; }
#django-flow-game button:disabled {
  background: #e8edf3;
  color: #42556a;
  border-color: #708298;
  cursor: default;
}
#django-flow-game button:focus-visible,
#django-flow-game [tabindex="-1"]:focus {
  outline: 3px solid #172b43;
  outline-offset: 4px;
}
#django-flow-game [data-next] { background: #214e7b; color: #fff; }
#django-flow-game [data-next]:hover { background: #163a5f; }
#django-flow-game [data-reset] { margin-top: .75rem; }
#django-flow-game progress {
  display: block;
  width: 100%;
  height: 1.25rem;
  margin-block: .5rem 1rem;
  accent-color: #214e7b;
}
#django-flow-game .django-flow-path {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: .5rem;
  padding-left: 1.75rem;
}
#django-flow-game .django-flow-path li {
  padding: .5rem;
  border: 1px solid #708298;
  border-radius: .4rem;
  background: #fff;
}
#django-flow-game [data-feedback] { padding: .75rem; border-left: 4px solid #315a88; }
#django-flow-game [data-result="error"] { border-color: #9e3814; }
#django-flow-game [data-result="success"] { border-color: #24653a; }
#django-flow-game [data-finish] { font-weight: 600; }
