/* Artigo: Streaming em três partes. Sem alterações nos estilos globais. */
.stp-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.stp-flow > *,
.stp-lab {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid #9fcddd;
  border-radius: 1rem;
  background: #effaff;
  color: #163b52;
  overflow-wrap: anywhere;
}

.stp-flow > :nth-child(2) {
  background: #e8f9fc;
}

.stp-lab {
  margin: 1.5rem 0;
  border-left: 5px solid #086b83;
}

.stp-lab pre {
  max-width: 100%;
  overflow-x: auto;
}

#streaming-game {
  margin: 2rem 0;
  padding: clamp(1rem, 4vw, 2rem);
  border: 2px solid #87bfda;
  border-radius: 1.25rem;
  background: #f0faff;
  color: #163b52;
  overflow-wrap: anywhere;
}

#streaming-game *,
#streaming-game *::before,
#streaming-game *::after {
  box-sizing: border-box;
}

#streaming-game #stg-title,
#streaming-game #stg-task,
#streaming-game p {
  color: #163b52;
  line-height: 1.65;
}

#streaming-game #stg-progress {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #dceff9;
  color: #173c55;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#streaming-game #stg-task {
  margin: 1rem 0;
  padding: 1rem;
  border-left: 4px solid #086b83;
  background: #fff;
  font-weight: 600;
}

#streaming-game #stg-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

#streaming-game .stg-button {
  min-height: 48px;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid #337c9c;
  border-radius: 0.75rem;
  background: #e4f5fc;
  color: #163b52;
  font: inherit;
  font-weight: 700;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}

#streaming-game .stg-choice {
  width: 100%;
  text-align: left;
}

#streaming-game .stg-button:hover:not(:disabled) {
  background: #cdeaf8;
  border-color: #164965;
}

#streaming-game .stg-button:focus-visible,
#streaming-game #stg-task:focus {
  outline: 3px solid #193d80;
  outline-offset: 4px;
}

#streaming-game .stg-button:disabled {
  cursor: default;
  opacity: 1;
  border-style: dashed;
  color: #465b69;
  background: #e6edf1;
}

#streaming-game .stg-choice.stg-wrong {
  border-color: #985118;
  background: #fff2e5;
  color: #713c13;
}

#streaming-game .stg-choice.stg-correct {
  border-color: #12634d;
  border-style: solid;
  background: #e1f5ed;
  color: #14523f;
}

#streaming-game .stg-feedback {
  margin: 1rem 0;
  min-height: 3rem;
  line-height: 1.65;
}

#streaming-game .stg-feedback.stg-retry,
#streaming-game .stg-feedback.stg-success {
  padding: 1rem;
  border: 1px solid #985118;
  border-radius: 0.75rem;
  background: #fff2e5;
  color: #713c13;
}

#streaming-game .stg-feedback.stg-success {
  border-color: #12634d;
  background: #e1f5ed;
  color: #14523f;
}

#streaming-game .stg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

#streaming-game .stg-reset {
  background: #fff;
}

#streaming-game [hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .stp-flow {
    grid-template-columns: 1fr;
  }

  #streaming-game #stg-choices {
    grid-template-columns: 1fr;
  }

  #streaming-game .stg-actions .stg-button {
    width: 100%;
  }
}
