/* Família Aprende · telas de entrada (desenho aprovado em 07/11 no Claude Design).
   Boas-vindas, responsável, código mágico, primeiro filho, escolher filho, mesada e modo local. */
body[data-tela="inicio"] { background: #F2FAFC; }
body[data-tela="inicio"]:has(.fa-tela.mel) { background: #FFF8EA; }
body[data-tela="inicio"] #conteudo { max-width: 480px; padding: 0; }

.fa-tela {
  --fa-ciano: #0E7490; --fa-tinta: #12303A; --fa-cinza: #4C5F66; --fa-mel: #FFD27A;
  position: relative; overflow: hidden; min-height: 100dvh; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 18px; padding: 24px 22px;
  background: #F2FAFC; color: var(--fa-tinta); font-family: Nunito, system-ui, sans-serif; font-size: 16px;
}
.fa-tela.mel { background: #FFF8EA; }
.fa-tela > * { position: relative; }
.fa-bola { position: absolute !important; border-radius: 50%; pointer-events: none; }
.fa-bola.b1 { top: -120px; right: -90px; width: 300px; height: 300px; background: #D5F0F6; }
.fa-bola.b2 { top: 210px; left: -60px; width: 120px; height: 120px; background: #FFE9B8; }
.fa-tela h1 { margin: 0; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--fa-tinta); }
.fa-tela p { margin: 0; }
.fa-sub { font-size: 16px; line-height: 1.45; color: #3F5A63; }
.fa-tela.mel .fa-sub, .fa-tela.mel .fa-rodape { color: #5B4A2A; }

.fa-logo { display: flex; align-items: center; gap: 10px; font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -.2px; color: var(--fa-ciano); }
.fa-logo i { width: 36px; height: 36px; border-radius: 12px; background: var(--fa-ciano); display: grid; place-items: center; }
.fa-heroi { display: flex; justify-content: center; margin-top: 4px; }
.fa-heroi div { width: 190px; height: 190px; border-radius: 50%; background: #fff; box-shadow: 0 10px 30px rgba(14,116,144,.14); display: grid; place-items: center; }
.fa-centro { display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center; }
.fa-titulo { display: flex; flex-direction: column; gap: 6px; }
.fa-rotulo { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--fa-ciano); }

/* botões grandes da boas-vindas */
.fa-opcoes { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.fa-opcao { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; min-height: 44px; }
.fa-opcao.ciano { background: var(--fa-ciano); color: #fff; box-shadow: 0 6px 16px rgba(14,116,144,.28); }
.fa-opcao.branco { background: #fff; color: var(--fa-tinta); border: 2px solid var(--fa-mel); }
.fa-opcao .ic { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 16px; display: grid; place-items: center; }
.fa-opcao.ciano .ic { background: #fff; }
.fa-opcao.branco .ic { background: #FFF3D6; }
.fa-opcao .tx { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; }
.fa-opcao .tx b { font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 20px; line-height: 1.1; }
.fa-opcao .tx small { font-size: 14px; line-height: 1.35; }
.fa-opcao.ciano small { color: #DDF4F8; }
.fa-opcao.branco small { color: var(--fa-cinza); }
.fa-opcao:focus-visible, .fa-tecla:focus-visible, .fa-voltar:focus-visible, .fa-chip:focus-visible, .fa-pet:focus-visible,
.fa-filho:focus-visible, .fa-novo:focus-visible, .fa-atalho:focus-visible, .fa-link:focus-visible, .fa-botao:focus-visible { outline: 3px solid #FFB020; outline-offset: 2px; }

.fa-espaco { flex: 1 1 auto; }
.fa-pe { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.fa-link { all: unset; cursor: pointer; font-weight: 700; font-size: 15px; padding: 12px 8px; color: var(--fa-ciano); text-decoration: underline; text-underline-offset: 3px; }
.fa-cadeado { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fa-cinza); }
.fa-voltar { all: unset; cursor: pointer; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(18,48,58,.08); }

/* responsável */
.fa-google { min-height: 56px; border-radius: 18px; border: 2px solid #CFE3E8; background: #fff; display: flex; align-items: center; justify-content: center; padding: 6px; box-shadow: 0 4px 12px rgba(18,48,58,.06); }
.fa-caixa { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid #DCEBEF; }
.fa-caixa-tit { display: flex; align-items: center; gap: 10px; font-family: "Baloo 2", sans-serif; font-weight: 700; font-size: 18px; }
.fa-caixa-tit i { width: 36px; height: 36px; border-radius: 12px; background: #FCE7F3; display: grid; place-items: center; }
.fa-dica { font-size: 14px; line-height: 1.4; color: var(--fa-cinza); }
.fa-pequeno { font-size: 13px; color: var(--fa-cinza); }
.fa-campo { height: 52px; box-sizing: border-box; width: 100%; border-radius: 14px; border: 2px solid #CFE3E8; background: #fff; padding: 0 16px; font: 700 18px Nunito, sans-serif; color: var(--fa-tinta); }
.fa-campo.num { border-color: #DCEBEF; background: #F7FBFC; font: 700 24px "Baloo 2", sans-serif; letter-spacing: 8px; }
.fa-campo:focus { outline: none; border-color: var(--fa-ciano); }
.fa-guardamos { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: #E6F5F8; }
.fa-guardamos b { font-weight: 800; font-size: 14px; color: #0E5266; }
.fa-guardamos span { display: flex; gap: 8px; font-size: 14px; line-height: 1.4; color: #24434D; }
.fa-guardamos svg { flex: 0 0 18px; margin-top: 1px; }
.fa-erro { color: #7A2E0B; background: #FFE9B8; border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 700; }
.fa-teste { display: flex; flex-direction: column; gap: 10px; }

/* código mágico */
.fa-digitos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.fa-digitos div { height: 60px; border-radius: 16px; background: #fff; border: 3px solid #F1DDB0; display: grid; place-items: center; font: 800 30px "Baloo 2", sans-serif; color: var(--fa-tinta); }
.fa-digitos div.atual { border-color: #FFB020; }
.fa-digitos div.cheio { border-color: var(--fa-ciano); }
.fa-pronto { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; font-size: 15px; color: #0E5266; }
.fa-teclado { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.fa-tecla { all: unset; cursor: pointer; text-align: center; height: 60px; border-radius: 18px; background: #fff; font: 700 26px/60px "Baloo 2", sans-serif; color: var(--fa-tinta); box-shadow: 0 3px 0 rgba(154,91,0,.18); }
.fa-tecla.acao { background: #FFE9B8; }
.fa-tecla:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(154,91,0,.18); }
.fa-botao { all: unset; box-sizing: border-box; cursor: pointer; height: 58px; border-radius: 20px; background: var(--fa-ciano); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 20px "Baloo 2", sans-serif; }
.fa-botao:disabled { background: #E9D9B4; color: #6B5A36; cursor: default; }
.fa-rodape { text-align: center; font-size: 13px; line-height: 1.4; }

/* primeiro filho */
.fa-topo { display: flex; align-items: center; gap: 12px; }
.fa-passos { flex: 1 1 auto; display: flex; gap: 6px; }
.fa-passos span { flex: 1 1 0; height: 8px; border-radius: 4px; background: #CFE3E8; }
.fa-passos span.feito { background: var(--fa-ciano); }
.fa-grupo { display: flex; flex-direction: column; gap: 8px; }
.fa-grupo > .fa-nome-campo { font-weight: 800; font-size: 15px; }
.fa-anos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.fa-chip { all: unset; cursor: pointer; box-sizing: border-box; text-align: center; height: 46px; border-radius: 14px; background: #fff; border: 2px solid #CFE3E8; font: 700 18px/42px "Baloo 2", sans-serif; color: var(--fa-tinta); }
.fa-chip[aria-pressed="true"] { background: var(--fa-ciano); border-color: var(--fa-ciano); color: #fff; }
.fa-chip.breve { cursor: default; background: #EEF5F7; border-style: dashed; color: #5E7279; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.fa-chip.breve small { font: 700 10px/1 Nunito, sans-serif; color: #5E7279; }
.fa-pets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fa-pet { all: unset; cursor: pointer; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 16px; background: #fff; border: 3px solid transparent; box-shadow: 0 2px 6px rgba(18,48,58,.06); }
.fa-pet[aria-pressed="true"] { border-color: #FFB020; }
.fa-pet i, .fa-filho .av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; }
.fa-pet i svg { width: 48px; height: 53px; margin-top: 10px; }
.fa-pet span { font-weight: 700; font-size: 13px; color: var(--fa-tinta); }

/* escolher filho */
.fa-filhos { display: flex; flex-direction: column; gap: 12px; }
.fa-filho { all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 22px; background: #fff; color: var(--fa-tinta); box-shadow: 0 4px 14px rgba(18,48,58,.07); }
.fa-filho .av { width: 64px; height: 64px; flex: 0 0 64px; }
.fa-filho .av svg { width: 60px; height: 66px; margin-top: 12px; }
.fa-filho .tx { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.fa-filho .tx b { font: 800 22px/1 "Baloo 2", sans-serif; }
.fa-filho .tx small { font-size: 14px; color: var(--fa-cinza); }
.fa-selos { display: flex; gap: 6px; flex-wrap: wrap; }
.fa-selos span { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #E6F5F8; color: #0E5266; }
.fa-selos span.mel { background: #FFF3D6; color: #7A4700; }
.fa-novo { all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 10px; height: 60px; border-radius: 22px; border: 2px dashed #9CC9D4; color: var(--fa-ciano); font-weight: 800; font-size: 16px; }
.fa-atalhos { display: flex; flex-direction: column; gap: 10px; }
.fa-atalho { all: unset; cursor: pointer; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; min-height: 44px; }
.fa-atalho.mel { background: #FFF3D6; color: var(--fa-tinta); }
.fa-atalho.ciano { background: var(--fa-ciano); color: #fff; }
.fa-atalho .tx { display: flex; flex-direction: column; flex: 1 1 auto; }
.fa-atalho b { font-weight: 800; font-size: 15px; }
.fa-atalho small { font-size: 13px; }
.fa-atalho.mel small { color: #5B4A2A; }
.fa-atalho.ciano small { color: #DDF4F8; }

/* formulários simples (mesada, senha do modo local) */
.fa-form { display: flex; flex-direction: column; gap: 14px; }
.fa-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: 15px; }

/* computador: a tela vira um cartão no meio */
@media (min-width: 520px) {
  .fa-tela { min-height: auto; margin: 24px 0; border-radius: 28px; box-shadow: 0 10px 40px rgba(18,48,58,.08); }
}
