/* Jogo isolado: os estilos editoriais abaixo ficam restritos a .post-detail. */
#dd-game {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  margin: 1.5rem 0 2rem;
  padding: clamp(.75rem, 3vw, 1.5rem);
  background: #111f30;
  color: #f1f5f9;
  border: 1px solid #71869e;
  border-radius: 16px;
  font: 1rem/1.6 system-ui, sans-serif;
  text-align: left;
  overflow-wrap: anywhere;
}
#dd-game *, #dd-game *::before, #dd-game *::after { box-sizing: border-box; min-width: 0; }
#dd-game p, #dd-game li, #dd-game h4, #dd-game legend, #dd-game strong { color: inherit; }
#dd-game p { margin: .7rem 0 1rem; text-align: left; }
#dd-game h4 { margin: 0 0 .75rem; font-size: 1.1rem; line-height: 1.4; }
#dd-game .dd-dashboard { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
#dd-game .dd-dashboard p { margin: 0; }
#dd-score { font-weight: 800; color: #9ce8d0; white-space: nowrap; }
#dd-game progress { display: block; width: 100%; height: 1rem; margin: 1rem 0; accent-color: #78dcc0; }
#dd-game #dd-prompt { padding: .8rem; background: #20354e; border-radius: 8px; font-weight: 700; }
#dd-game fieldset { margin: 1rem 0; padding: .75rem; border: 1px solid #71869e; border-radius: 12px; }
#dd-game legend { max-width: 100%; padding: 0 .3rem; font-weight: 700; white-space: normal; }
#dd-game .dd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
#dd-game button {
  max-width: 100%;
  min-height: 48px;
  margin: 0;
  padding: .8rem;
  border: 2px solid #819bb8;
  border-radius: 10px;
  background: #223a55;
  color: #f1f5f9;
  font: inherit;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
#dd-game [data-dd-stage] { display: flex; flex-direction: column; gap: .65rem; width: 100%; }
#dd-game [data-dd-stage] > strong { font-size: 1.05rem; }
#dd-game .dd-card-state { display: block; margin-top: auto; font-size: .9rem; font-weight: 750; color: #b9e5fa; }
#dd-game button:hover:not(:disabled) { background: #304f70; border-color: #c4e4ff; }
#dd-game button:disabled { opacity: 1; cursor: default; border-color: #7ce4c0; background: #153e37; }
#dd-game button:disabled .dd-card-state { color: #a8f1d6; }
#dd-game button:focus-visible { outline: 3px solid #ffdb72; outline-offset: 3px; }
#dd-game #dd-reset { background: #26334a; border-color: #a8b7cc; }
#dd-game #dd-status { padding: 1rem; border-left: 4px solid #91dcff; background: #193248; border-radius: 0 8px 8px 0; }
#dd-game .dd-plan { padding: 1rem; background: #0d1928; border: 1px dashed #71869e; border-radius: 10px; }
#dd-game ol { margin: .5rem 0 0; padding-left: 1.5rem; }
#dd-game li { margin: .8rem 0; padding-left: .2rem; }
#dd-game [hidden] { display: none !important; }
.post-detail .content .info-card { min-width: 0; margin: 1.2rem 0; padding: 1rem 1.25rem; background: #142338; border: 1px solid #526b87; border-left: 4px solid #7dd3fc; border-radius: 10px; overflow-wrap: anywhere; }
.post-detail .content .flow-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; min-width: 0; margin: 1.5rem 0; }
.post-detail .content .flow-cards .info-card { margin: 0; }
.post-detail .content .table-scroll { max-width: 100%; overflow-x: auto; margin: 1.25rem 0; border: 1px solid #526b87; border-radius: 8px; }
.post-detail .content .table-scroll:focus-visible { outline: 3px solid #ffdb72; outline-offset: 3px; }
.post-detail .content .table-scroll table { width: 100%; border-collapse: collapse; margin: 0; }
.post-detail .content .table-scroll th, .post-detail .content .table-scroll td { padding: .75rem; border: 1px solid #526b87; text-align: left; }
.dd-article .post-detail > .article-references {
  margin: 2.5rem 0 1.5rem;
  padding: clamp(1rem, 3vw, 1.75rem);
  background: #111e30;
  border: 1px solid #334b64;
  border-radius: 16px;
  color: #e2e8f0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.dd-article .post-detail > .article-references h3 {
  margin: 0 0 .75rem;
  color: #f1f5f9;
  font-size: 1.25rem;
  line-height: 1.35;
}
.dd-article .post-detail > .article-references p {
  margin: 0 0 1.25rem;
  color: #b7c6d8;
  font-size: .95rem;
  line-height: 1.7;
  text-align: left;
}
.dd-article .post-detail > .article-references ul {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dd-article .post-detail > .article-references li {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dd-article .post-detail > .article-references a {
  display: block;
  padding: .95rem 1.1rem;
  border: 1px solid #334b64;
  border-left: 3px solid #6dc4ec;
  border-radius: 10px;
  background: #0c192a;
  color: #b9e3ff;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.65;
  text-align: left;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color .15s ease, border-color .15s ease;
}
.dd-article .post-detail > .article-references a:hover {
  background: #192f47;
  border-color: #7dd3fc;
  color: #eef8ff;
}
.dd-article .post-detail > .article-references a:focus-visible {
  outline: 3px solid #ffdb72;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  #dd-game .dd-cards { grid-template-columns: minmax(0, 1fr); }
  #dd-game fieldset { padding: .5rem; }
  #dd-game .dd-dashboard { align-items: stretch; }
  #dd-game #dd-reset { width: 100%; text-align: center; }
}
