/* Sessões: Frases, Ouvir, Repetir, Conversar e Teste de nível. */

/* Frases: fundo índigo, cartão branco no centro */
.sessao-frases { background: var(--indigo); }
.frases-area {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 24px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px));
}
.cartao-frase {
  width: 100%; max-width: 560px; background: var(--superficie); color: var(--texto); border-radius: var(--raio-grande);
  padding: 28px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55);
}
.frase-pt { font-family: var(--fonte-titulo); font-weight: 700; font-size: clamp(24px, 5.5vw, 32px); line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.frase-pt-menor { font-size: 17px; font-weight: 500; color: var(--apoio); font-family: var(--fonte-texto); }
.frase-en { font-family: var(--fonte-titulo); font-weight: 800; font-size: clamp(26px, 6vw, 36px); line-height: 1.15; text-wrap: balance; overflow-wrap: anywhere; }
.frase-sua { color: var(--apoio); font-size: 15px; overflow-wrap: anywhere; }
.frase-nota { color: var(--apoio); font-size: 15px; }
.frase-form { width: 100%; display: flex; flex-direction: column; gap: 10px; }
.frase-form .campo { text-align: center; }
.frase-form .botao { width: 100%; }
.notas { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nota { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 10px 4px; border: 0; border-radius: var(--raio); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nota strong { font-family: var(--fonte-titulo); font-size: 16px; }
.nota span { font-size: 13px; }
.nota-errei { background: var(--vermelho-fundo); color: var(--vermelho); }
.nota-acertei { background: var(--verde-fundo); color: var(--verde); }
.nota-facil { background: var(--azul-fundo); color: var(--azul-texto); }
.cartao-fim .botao { width: 100%; }

/* Ouvir */
.ouvir-player { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; background: var(--superficie); color: var(--texto); border: 1px solid var(--linha); border-radius: var(--raio-grande); padding: 28px 20px; }
.tocar-grande { display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--botao-fundo); color: var(--botao-texto); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.nivel-pergunta .tocar-grande { align-self: center; }
.velocidade { display: inline-grid; grid-template-columns: 1fr 1fr; align-self: center; padding: 3px; gap: 3px; border-radius: 999px; background: var(--superficie-2); }
.velocidade-op { min-height: 44px; min-width: 88px; padding: 6px 16px; border: 0; border-radius: 999px; background: none; color: inherit; font-weight: 600; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.velocidade-op.ativa { background: var(--botao-fundo); color: var(--botao-texto); }
.perguntas { display: flex; flex-direction: column; gap: 20px; margin-top: 14px; }
.pergunta legend { font-weight: 600; font-size: 18px; padding: 0; margin-bottom: 8px; }
.opcoes { display: flex; flex-direction: column; gap: 8px; }
.opcao { min-height: 52px; padding: 12px 16px; border: 2px solid var(--linha); border-radius: var(--raio); background: var(--superficie); text-align: left; cursor: pointer; line-height: 1.3; -webkit-tap-highlight-color: transparent; }
.opcao:disabled { cursor: default; opacity: .75; }
.opcao.certa { border-color: var(--verde); background: var(--verde-fundo); color: var(--verde); opacity: 1; font-weight: 600; }
.opcao.errada { border-color: var(--vermelho); background: var(--vermelho-fundo); color: var(--vermelho); opacity: 1; }
.ouvir-fim { display: flex; flex-direction: column; gap: 12px; }
.ouvir-fim .botao { align-self: center; }
.transcricao { display: flex; flex-direction: column; gap: 8px; }
.fala-linha { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: flex-start; min-height: 52px; padding: 12px 14px; border: 2px solid transparent; border-radius: var(--raio); background: var(--superficie); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fala-linha.voce { background: var(--azul-fundo); }
.fala-linha.tocando { border-color: var(--amarelo-escuro); }
.fala-linha > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.fala-linha strong { font-weight: 600; }
.fala-linha span span { color: var(--apoio); font-size: 15px; }
.fala-linha .icone { margin-top: 1px; }
.mais-ouvir { color: var(--apoio); font-size: 15px; text-align: center; }
.dialogo-livre h1 { text-align: center; }
.dialogo-controles { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.dialogo-controles .velocidade { background: var(--superficie-2); }
.dialogo-controles .velocidade-op.ativa { background: var(--botao-fundo); color: var(--botao-texto); }

/* Repetir */
.rodada-topo { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.rodadas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 480px; }
.rodadas li { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--apoio); font-size: 14px; }
.rodadas li > span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--superficie-2); font-weight: 700; }
.rodadas .atual { color: var(--texto); }
.rodadas .atual > span { background: var(--botao-fundo); color: var(--botao-texto); }
.rodadas .feita > span { background: var(--verde-fundo); color: var(--verde); }
.rodadas strong { font-weight: 600; }
.repetir-area .velocidade { background: var(--superficie-2); }
.repetir-area .velocidade-op.ativa { background: var(--botao-fundo); color: var(--botao-texto); }
.falas { display: flex; flex-direction: column; gap: 10px; }
.fala { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--raio); background: var(--superficie); border: 2px solid transparent; max-width: 92%; align-self: flex-start; }
.fala-B { background: var(--azul-fundo); align-self: flex-end; }
.fala.ativa { border-color: var(--amarelo-escuro); }
.fala p { font-weight: 600; overflow-wrap: anywhere; }
.fala .fala-pt { font-weight: 400; font-size: 15px; color: var(--apoio); }
.fala-quem { font-size: 13px; color: var(--apoio); }
.fala .botao { align-self: flex-start; margin-top: 6px; min-height: 44px; padding: 8px 16px; }
.sua-vez { position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--marinho); color: #FFFFFF; font-weight: 600; }
.acoes-rodada { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.memoria { display: flex; flex-direction: column; gap: 14px; }
.memoria .fala { max-width: 100%; align-self: stretch; }
.memoria-contagem { text-align: center; color: var(--apoio); font-size: 15px; }
.memoria-pista { text-align: center; }
.memoria-resultado { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.memoria-fim { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }

/* Conversar */
.conversa-intro { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.conversa-cenario { font-size: 18px; max-width: 54ch; }
.ponto-dia { width: 100%; background: var(--superficie); border-radius: var(--raio); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.ponto-dia ul { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.conversa-intro > .botao { width: 100%; max-width: 360px; }
.conversa { flex: 1; padding-bottom: 12px; gap: 16px; justify-content: flex-start; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.bolha { max-width: 88%; padding: 12px 15px; border-radius: 16px; overflow-wrap: anywhere; }
.bolha-prof { align-self: flex-start; background: var(--superficie); border-bottom-left-radius: 4px; }
.bolha-sua { align-self: flex-end; background: var(--botao-fundo); color: var(--botao-texto); border-bottom-right-radius: 4px; font-weight: 500; }
.bolha-traducao { color: var(--apoio); font-size: 15px; margin-top: 4px; }
.bolha-acoes { display: flex; gap: 6px; margin-top: 8px; }
.pensando span { color: var(--apoio); }
.pensando span::after { content: "..."; }
.correcoes { display: flex; flex-direction: column; gap: 8px; align-self: flex-end; max-width: 92%; }
.correcao { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--raio); background: var(--verde-fundo); color: var(--texto); }
.correcao .selo { align-self: flex-start; background: var(--superficie); color: var(--verde); }
.correcao-pronuncia { background: var(--ambar-fundo); }
.correcao-pronuncia .selo { color: var(--ambar); }
.correcao-disse { font-size: 15px; color: var(--apoio); overflow-wrap: anywhere; }
.correcao-linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.correcao-natural { font-weight: 700; overflow-wrap: anywhere; }
.correcao-porque { font-size: 15px; color: var(--apoio); }
.conversa-fim { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; background: var(--superficie); border-radius: var(--raio); }
.conversa-erro { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.compositor {
  position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 8px; background: var(--papel);
  padding-block: 10px calc(10px + env(safe-area-inset-bottom, 0px));
}
.compositor-linha { display: grid; grid-template-columns: minmax(0, 1fr) 52px; gap: 8px; align-items: end; }
.campo-chat { resize: none; display: block; }
.botao-enviar { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--botao-fundo); color: var(--botao-texto); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.botao-enviar:disabled { opacity: .45; }
.compositor-acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.compositor-acoes .botao { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.dica-sugestao { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: var(--raio); background: var(--superficie); }
.dica-sugestao p { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.dica-sugestao span { color: var(--apoio); font-size: 15px; }

/* Teste de nível */
.nivel-pergunta, .nivel-resultado { display: flex; flex-direction: column; gap: 18px; text-align: center; }
.nivel-pergunta h1 { font-size: clamp(24px, 4.5vw, 32px); }
.nivel-pergunta .opcao { text-align: center; }
.nivel-pular { align-self: center; }
.nivel-numero { font-family: var(--fonte-letreiro); font-weight: 800; font-size: 72px; line-height: 1; }
.nivel-resultado { align-items: center; }
