/* Maria — estilos com letra grande e alto contraste */
:root {
  --fundo: #ffffff;
  --texto: #111111;
  --azul: #0b3a8c;
  --azul-escuro: #072a66;
  --vermelho: #b3121a;
  --cinza-claro: #eef2f8;
  --borda: #0b3a8c;
  --tamanho-texto: 24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--tamanho-texto);
  line-height: 1.4;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.tela {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.tela[hidden] { display: none; }

h1 { font-size: 34px; margin: 8px 0; line-height: 1.2; }
.nome { text-align: center; font-size: 40px; color: var(--azul); }

p { margin: 0; }

button {
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.botao-principal {
  width: 100%;
  min-height: 64px;
  border: none;
  border-radius: 28px;
  background: var(--azul);
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
}
.botao-principal:active { background: var(--azul-escuro); }
.botao-principal:focus-visible,
.botao-secundario:focus-visible,
.botao-link:focus-visible,
textarea:focus-visible { outline: 4px solid #f5b400; outline-offset: 3px; }

.botao-medio { min-height: 88px; }

.botao-falar {
  min-height: 42vh;
  min-height: 42dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 44px;
}
.botao-falar.ouvindo { background: var(--vermelho); }
.botao-falar.ouvindo .icone-mic { animation: pulsar 1.2s ease-in-out infinite; }
.botao-falar.ocupado { background: #4a5a78; }

@keyframes pulsar {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}
@media (prefers-reduced-motion: reduce) {
  .botao-falar.ouvindo .icone-mic { animation: none; }
}

.botao-secundario {
  min-height: 64px;
  border: 3px solid var(--azul);
  border-radius: 20px;
  background: #ffffff;
  color: var(--azul);
  font-size: 28px;
  font-weight: 700;
  padding: 8px 20px;
}

.botao-link {
  min-height: 64px;
  border: none;
  background: transparent;
  color: var(--azul);
  font-size: 28px;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.digitar { display: flex; flex-direction: column; gap: 12px; }
.digitar[hidden] { display: none; }
.digitar label { font-weight: 700; }
textarea {
  font: inherit;
  font-size: 26px;
  width: 100%;
  padding: 12px;
  border: 3px solid var(--borda);
  border-radius: 16px;
  color: var(--texto);
  background: #ffffff;
}

.conversa { display: flex; flex-direction: column; gap: 16px; }
.bloco {
  background: var(--cinza-claro);
  border-radius: 20px;
  padding: 16px 18px;
}
.bloco[hidden] { display: none; }
.bloco-resposta { background: #e3ecff; border: 3px solid var(--azul); }
.titulo-bloco { font-size: 22px; font-weight: 700; color: #333; margin-bottom: 4px; }
.texto-grande { font-size: 28px; font-weight: 600; overflow-wrap: anywhere; }

.versao { text-align: center; font-size: 22px; color: #444; margin-top: 24px; }
