/* Local: public/jogos/constitucional/css/jogo.css */
/* Sistema de Design Premium e Estilos Globais do Jogo Constitucional Aura */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Cores - Paleta HSL Ultra-Premium */
  --bg-principal: #0b0f19;
  --bg-card: rgba(20, 27, 45, 0.7);
  --border-card: rgba(255, 255, 255, 0.08);
  
  --primary: #4f46e5;
  --primary-glow: rgba(79, 70, 229, 0.4);
  --secondary: #0ea5e9;
  --secondary-glow: rgba(14, 165, 233, 0.4);
  
  --accent-sucesso: #10b981;
  --accent-sucesso-glow: rgba(16, 185, 129, 0.3);
  --accent-alerta: #f59e0b;
  --accent-alerta-glow: rgba(245, 158, 11, 0.3);
  --accent-perigo: #ef4444;
  --accent-perigo-glow: rgba(239, 68, 68, 0.3);
  
  --texto-principal: #f3f4f6;
  --texto-secundario: #9ca3af;
  --texto-mutado: #6b7280;
  
  /* Fontes */
  --fonte-titulo: 'Outfit', sans-serif;
  --fonte-corpo: 'Plus Jakarta Sans', sans-serif;
  
  /* Layout */
  --border-radius: 16px;
  --transicao: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --sombra: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-principal);
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.15) 0px, transparent 50%);
  color: var(--texto-principal);
  font-family: var(--fonte-corpo);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

p {
  color: var(--texto-secundario);
}

/* Layout Geral - Mobile-First */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.75rem;
}

@media (min-width: 768px) {
  .container {
    padding: 2rem 1.5rem;
  }
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-card);
}

@media (min-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
  }
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icone {
  font-size: 2rem;
  animation: float 4s ease-in-out infinite;
}

.sala-tag {
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.3);
  color: #c7d2fe;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px var(--primary-glow);
}

/* Grid de Jogo - Mobile-First (Empilha por padrão) */
.game-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .game-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
  }
}

/* Efeito Glassmorphism nos Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--sombra);
  margin-bottom: 2rem;
  transition: var(--transicao);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Placar de Indicadores */
.placar-titulo {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.indicador-item {
  margin-bottom: 1.5rem;
}

.indicador-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.indicador-nome {
  color: var(--texto-secundario);
}

.indicador-valor {
  color: #ffffff;
}

.container-barra {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  overflow: hidden;
}

.barra-progresso {
  height: 100%;
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* Tela Jogador */
.card-jogador-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.papel-tag {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
}

.nome-jogador {
  font-size: 1.2rem;
  font-weight: 600;
}

.missao-resumo {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--secondary);
  padding: 1rem;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  margin-bottom: 1.5rem;
}

.linguagem-simples {
  font-size: 0.95rem;
  color: #93c5fd;
  line-height: 1.5;
}

/* Opções de Decisão */
.opcoes-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-opcao {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--border-radius);
  color: var(--texto-principal);
  padding: 1.25rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transicao);
  font-family: inherit;
  width: 100%;
}

.btn-opcao:hover:not(:disabled) {
  background: rgba(79, 70, 229, 0.08);
  border-color: rgba(79, 70, 229, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-opcao:active:not(:disabled) {
  transform: translateX(1px);
}

.btn-opcao:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.opcao-texto {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.opcao-explicacao {
  font-size: 0.9rem;
  color: var(--texto-secundario);
}

/* Alertas de Risco Constitucional */
.alerta-card {
  background: rgba(245, 158, 11, 0.06);
  border: 1px dashed rgba(245, 158, 11, 0.3);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
  animation: slideIn 0.4s ease-out;
}

.alerta-card.ativo {
  display: block;
}

.alerta-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-alerta);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.alerta-texto {
  font-size: 0.95rem;
  color: #ffedd5;
  margin-bottom: 1rem;
}

.principios-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-principio {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fde68a;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
}

/* Resultados das Ações */
.resultado-decisao-card {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: none;
  animation: slideIn 0.4s ease-out;
}

.resultado-decisao-card.ativo {
  display: block;
}

.resultado-consequencia {
  font-size: 0.95rem;
  color: #ecfdf5;
  margin-bottom: 1rem;
}

.impactos-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.impacto-tag {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
}

.impacto-positivo {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}

.impacto-negativo {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* Painel do Mediador */
.codigo-sala-gigante {
  font-family: var(--fonte-titulo);
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
  letter-spacing: 0.1em;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 1rem;
  margin: 1.5rem 0;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
}

.jogadores-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.jogador-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius);
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transicao);
}

.jogador-item.pronto {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

.jogador-detalhe {
  display: flex;
  flex-direction: column;
}

.jogador-nome {
  font-weight: 600;
  color: #ffffff;
}

.jogador-papel {
  font-size: 0.8rem;
  color: var(--texto-secundario);
}

.jogador-status-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--texto-secundario);
  text-transform: uppercase;
}

.jogador-item.pronto .jogador-status-badge {
  background: var(--accent-sucesso);
  color: #ffffff;
  box-shadow: 0 0 10px var(--accent-sucesso-glow);
}

.historico-painel {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.historico-item {
  background: rgba(255, 255, 255, 0.02);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  border-left: 3px solid var(--primary);
  color: var(--texto-secundario);
}

/* Painel de Controles */
.botoes-controle {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-controle {
  width: 100%;
  padding: 1rem;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transicao);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.btn-iniciar {
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.btn-iniciar:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
  transform: translateY(-2px);
}

.btn-avancar {
  background: linear-gradient(135deg, var(--secondary) 0%, #0288d1 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-avancar:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
  transform: translateY(-2px);
}

.btn-reiniciar {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-reiniciar:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ffffff;
}

.btn-controle:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Pulsar destaque */
.pulso-destaque {
  animation: pulse 2s infinite;
}

/* Tela Pública */
.caso-titulo {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cidade-tema {
  font-size: 0.95rem;
  color: var(--texto-secundario);
  margin-bottom: 1.5rem;
}

.caso-desc {
  font-size: 1.1rem;
  color: var(--texto-principal);
  margin-bottom: 1.5rem;
}

.caso-objetivo {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 1.25rem;
  border-radius: var(--border-radius);
  color: #e0f2fe;
}

.rodada-publico-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.rodada-publico-badge.encerramento {
  background: var(--accent-sucesso);
  box-shadow: 0 0 15px var(--accent-sucesso-glow);
}

.rodada-subtitulo {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.rodada-instrucao {
  font-size: 1.1rem;
  color: var(--texto-secundario);
}

.publico-historico-container {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 0.5rem;
}

.ato-publico-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  padding: 1rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideIn 0.4s ease-out;
}

.ato-icone {
  font-size: 1.25rem;
}

.ato-texto {
  font-size: 0.95rem;
  color: var(--texto-principal);
}

/* Card de Resultado Final */
.card-resultado-final {
  border-radius: var(--border-radius);
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid transparent;
}

.resultado-vitoria {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0.02) 100%);
  border-color: rgba(16, 185, 129, 0.4);
}

.resultado-parcial {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08) 0%, rgba(14, 165, 233, 0.02) 100%);
  border-color: rgba(14, 165, 233, 0.4);
}

.resultado-derrota {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.02) 100%);
  border-color: rgba(239, 68, 68, 0.4);
}

.card-resultado-final h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.mensagem-final-texto {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.divisor-resultado {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 1.5rem 0;
}

.metricas-finais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.metrica-final {
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.metrica-label {
  font-size: 0.8rem;
  color: var(--texto-secundario);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.metrica-valor {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.auditoria-legenda {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--texto-mutado);
  text-align: center;
}

/* Telas Auxiliares (Acesso) */
.acesso-card {
  max-width: 450px;
  margin: 4rem auto;
}

.acesso-titulo {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-grupo {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--texto-secundario);
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-family: inherit;
  transition: var(--transicao);
}

.form-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #141b2d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  color: #ffffff;
  font-family: inherit;
  transition: var(--transicao);
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* Spinner e Animações */
.spinner {
  width: 35px;
  height: 35px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 1.5rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(14, 165, 233, 0.6);
  }
}

.animado {
  animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Utilitários */
.item-vazio {
  text-align: center;
  padding: 2rem;
  color: var(--texto-mutado);
  font-style: italic;
}

.feedback-aguardando {
  text-align: center;
  padding: 2rem;
}

.feedback-aguardando p {
  font-size: 0.95rem;
}

/* ==========================================================================
   ESTILOS DE PORTAL GLOBAIS (index.html)
   ========================================================================== */
.portal-container {
  max-width: 800px !important;
  margin: 4rem auto;
  text-align: center;
}
.portal-desc {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  color: var(--texto-secundario);
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transicao);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.portal-card:hover {
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
  transform: translateY(-5px);
}
.portal-icon {
  font-size: 3rem;
  animation: float 4s ease-in-out infinite;
}
.portal-card:nth-child(2) .portal-icon {
  animation-delay: 1s;
}
.portal-card:nth-child(3) .portal-icon {
  animation-delay: 2s;
}
.portal-card h3 {
  font-size: 1.5rem;
  color: #ffffff;
}
.portal-card p {
  font-size: 0.95rem;
  color: var(--texto-secundario);
}
.badge-premium {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   OTIMIZAÇÃO RESPONSIVA PARA CELULARES (MOBILE FIRST DESIGN TUNING)
   ========================================================================== */
@media (max-width: 600px) {
  /* Contêiner e Cabeçalhos */
  .container {
    padding: 1rem 0.75rem;
  }
  
  header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .logo-container {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .sala-tag {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    display: inline-block;
    margin-top: 0.25rem;
  }

  /* Portal Inicial (index.html) */
  .portal-container {
    margin: 2rem auto;
  }
  
  .portal-desc {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
  }
  
  .portal-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .portal-card {
    padding: 1.5rem;
    text-align: center;
  }
  
  .portal-icon {
    font-size: 2.5rem;
  }

  /* Cartões e Layout Principal do Jogo */
  .card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }
  
  .game-grid {
    gap: 1rem;
  }

  /* Elementos da Tela do Jogador */
  .card-jogador-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .nome-jogador {
    font-size: 1.1rem;
  }
  
  #dilema-titulo {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  
  #dilema-descricao {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .btn-opcao {
    padding: 1rem;
    border-radius: 12px;
  }
  
  .opcao-texto {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
  }
  
  .opcao-explicacao {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  /* Placar e Indicadores */
  .placar-titulo {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  .indicador-item {
    margin-bottom: 1rem;
  }
  
  .indicador-header {
    font-size: 0.75rem;
  }
  
  .container-barra {
    height: 6px;
  }

  /* Alertas de Risco e Resultados */
  .alerta-card {
    padding: 1rem;
  }
  
  .alerta-header {
    font-size: 0.95rem;
  }
  
  .alerta-texto {
    font-size: 0.85rem;
  }
  
  .tag-principio {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
  }
  
  .resultado-decisao-card {
    padding: 1rem;
  }
  
  .resultado-consequencia {
    font-size: 0.85rem;
  }
  
  .impacto-tag {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }

  /* Painel do Mediador e Código de Sala */
  .codigo-sala-gigante {
    font-size: 2.2rem;
    padding: 0.75rem;
    margin: 1rem 0;
  }
  
  .jogador-item {
    padding: 0.75rem;
    border-radius: 12px;
  }
  
  .jogador-nome {
    font-size: 0.9rem;
  }
  
  .jogador-papel {
    font-size: 0.75rem;
  }
  
  .jogador-status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
  }
  
  .btn-controle {
    padding: 0.85rem;
    font-size: 0.95rem;
    border-radius: 12px;
  }

  /* Projeção Pública */
  .caso-titulo {
    font-size: 1.5rem;
  }
  
  .caso-desc {
    font-size: 0.95rem;
  }
  
  .caso-objetivo {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .rodada-publico-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
  
  .rodada-subtitulo {
    font-size: 1.25rem;
  }
  
  .rodada-instrucao {
    font-size: 0.95rem;
  }

  /* Telas de Acesso (Login) */
  .acesso-card {
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .acesso-titulo {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
  }
  
  .form-input, .form-select {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  /* Resultados de Fim de Jogo */
  .card-resultado-final {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .card-resultado-final h2 {
    font-size: 1.4rem;
  }
  
  .mensagem-final-texto {
    font-size: 0.95rem;
    line-height: 1.6;
  }
  
  .metricas-finais-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  
  .metrica-final {
    padding: 0.75rem;
    border-radius: 8px;
  }
  
  .metrica-label {
    font-size: 0.7rem;
  }
  
  .metrica-valor {
    font-size: 1.25rem;
  }
}

