/* Exclusivamente o jogo do artigo; não altera quiz, laboratório ou estilos globais. */
#pd-game {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  margin: 2rem 0;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  border: 1px solid #54789b;
  border-radius: 1rem;
  background: #101e30;
  color: #eff6ff;
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
  color-scheme: dark;
}
#pd-game *,
#pd-game *::before,
#pd-game *::after { box-sizing: border-box; min-width: 0; }
#pd-game [hidden] { display: none !important; }
#pd-game h3,
#pd-game h4 { color: #f8fafc; line-height: 1.4; margin: 0 0 1rem; }
#pd-game h4 { font-size: 1.15rem; }
#pd-game p { color: #e0ecfa; margin: 1rem 0; }
#pd-game #pd-progress { color: #a5f3fc; font-weight: 700; }
#pd-game form { margin: 1rem 0; }
#pd-game fieldset { width: 100%; padding: 0; margin: 0 0 1rem; border: 0; }
#pd-game legend { width: 100%; max-width: 100%; padding: 0; margin-bottom: 0.75rem; font-weight: 700; white-space: normal; }
#pd-game label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-height: 48px;
  margin: 0.625rem 0;
  padding: 0.875rem;
  border: 1px solid #7293b2;
  border-radius: 0.625rem;
  background: #172c43;
  color: #eff6ff;
  cursor: pointer;
  line-height: 1.5;
}
#pd-game label:has(input:checked) { border-color: #67e8f9; background: #164055; }
#pd-game input[type="radio"] { flex: 0 0 1.25rem; width: 1.25rem; height: 1.25rem; margin: 0.1rem 0 0; accent-color: #67e8f9; }
#pd-game fieldset:disabled label { cursor: default; }
#pd-game fieldset:disabled input { opacity: 1; }
#pd-game button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  min-height: 48px;
  padding: 0.75rem 1.125rem;
  border: 2px solid transparent;
  border-radius: 0.625rem;
  background: #a5f3fc;
  color: #10283b;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
  cursor: pointer;
  touch-action: manipulation;
}
#pd-game button:hover:not(:disabled) { background: #cffafe; }
#pd-game button:disabled { background: #263d50; border-color: #7293b2; color: #dbeafe; cursor: default; }
#pd-game :focus-visible { outline: 3px solid #facc15; outline-offset: 4px; }
#pd-game h4:focus { outline: 3px solid #facc15; outline-offset: 4px; }
#pd-game #pd-status,
#pd-game #pd-budget-note { padding: 0.875rem; border-left: 4px solid #67e8f9; background: #172c43; }
#pd-game table { border-collapse: collapse; table-layout: fixed; width: 100%; max-width: 100%; margin: 1rem 0; font-size: 0.95rem; }
#pd-game caption { text-align: left; color: #a5f3fc; font-weight: 700; padding: 0.5rem 0; }
#pd-game th,
#pd-game td { padding: 0.6rem 0.4rem; text-align: left; vertical-align: top; border: 1px solid #54789b; overflow-wrap: anywhere; white-space: normal; }
#pd-game thead,
#pd-game tfoot { background: #172c43; color: #f8fafc; }
@media (max-width: 400px) {
  #pd-game th,
  #pd-game td { padding: 0.4rem 0.2rem; }
  #pd-game table { font-size: 0.85rem; }
  #pd-game button { width: 100%; }
}
