/* Jura de Dedinho (nasceu do Combinado v2) · dois temas no mesmo app.
   tema-crianca (bonequinha): sálvia, cartões macios, botões redondos, mascote apoiada no placar.
   tema-mae: branco/lavanda com roxo→rosa, painel com gráficos; .escuro troca para o tema escuro.
   Todas as cores passam pelas variáveis abaixo: os componentes não conhecem o tema. */
:root {
  --fonte: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fonte-mae: 'Poppins', 'Nunito', system-ui, sans-serif;
}
body.tema-crianca {
  color-scheme: light;
  --fundo: #F3F6EF; --cartao: #FFFFFF; --texto: #34402F; --texto2: #5E6B58; --borda: #E3EADD;
  --primaria: #5F7D58; --primaria2: #5F7D58; --primaria-clara: #DFE9D9; --primaria-texto: #46613F; --icone: #6F8E67;
  --estrela: #E3A82B; --estrela-clara: #FBF0D4; --estrela-texto: #6E4E0A;
  --espera-fundo: #FBF1DA; --espera-texto: #74560F; --espera-borda: #EED9A4;
  --ok-fundo: #E3EEDD; --ok-texto: #3F5E38; --ok-borda: #BFD3B6;
  --volta-fundo: #FBE9E2; --volta-texto: #8A3E22; --volta-borda: #EDC0AE;
  --dinheiro-fundo: #DFE9D9; --dinheiro-texto: #46613F;
  --sombra: 0 10px 28px rgba(70, 92, 62, .12); --sombra-btn: 0 6px 14px rgba(95, 125, 88, .32);
  --raio: 22px; --raio-btn: 999px; --fonte-titulo: var(--fonte);
}
body.tema-mae {
  color-scheme: light;
  --fundo: #F6F3FB; --cartao: #FFFFFF; --texto: #241F3D; --texto2: #6B6687; --borda: #ECE7F5;
  --primaria: #7C3AED; --primaria2: #C026D3; --primaria-clara: #EFE7FE; --primaria-texto: #6D28D9; --icone: #7C3AED;
  --estrela: #F59E0B; --estrela-clara: #FEF3C7; --estrela-texto: #92400E;
  --espera-fundo: #FFF4DB; --espera-texto: #8A5A00; --espera-borda: #F7DD9C;
  --ok-fundo: #E6F6EE; --ok-texto: #17663F; --ok-borda: #B6E2CB;
  --volta-fundo: #FDECEC; --volta-texto: #9F2D2D; --volta-borda: #F3C1C1;
  --dinheiro-fundo: #FCE7F3; --dinheiro-texto: #BE185D;
  --saudacao: linear-gradient(120deg, #FCE7F3 0%, #EDE9FE 100%);
  --sombra: 0 10px 30px rgba(76, 52, 140, .08); --sombra-btn: 0 8px 18px rgba(124, 58, 237, .26);
  --raio: 18px; --raio-btn: 12px; --fonte-titulo: var(--fonte-mae);
  font-family: var(--fonte-mae);
}
body.tema-mae.escuro {
  color-scheme: dark;
  --fundo: #17162B; --cartao: #232142; --texto: #EEECF8; --texto2: #A9A6C8; --borda: #312E58;
  --primaria-clara: #352B66; --primaria-texto: #C4B5FD; --icone: #C4B5FD;
  --estrela-clara: #3B3220; --estrela-texto: #FCD34D;
  --espera-fundo: #3A3120; --espera-texto: #F6D58A; --espera-borda: #5C4A22;
  --ok-fundo: #1C3A2D; --ok-texto: #86E0B0; --ok-borda: #2C5A45;
  --volta-fundo: #3D2230; --volta-texto: #F5A3B5; --volta-borda: #5E3346;
  --dinheiro-fundo: #43203A; --dinheiro-texto: #F9A8D4;
  --saudacao: linear-gradient(120deg, #3B1F4A 0%, #2A2457 100%);
  --sombra: 0 10px 30px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); color: var(--texto); background: var(--fundo); -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--primaria); outline-offset: 2px; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
svg.i.cheia { fill: currentColor; }

.tela { position: relative; max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
.tela.centro { justify-content: center; align-items: center; text-align: center; padding: 24px 20px; gap: 14px; }
.topo { padding: 16px 20px 10px; display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.cresce { flex: 1; min-width: 0; }
.conteudo { padding: 4px 20px 120px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.conteudo.sem-nav { padding-bottom: 32px; }

.avatar { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 22px var(--fonte-titulo); flex-shrink: 0; background: linear-gradient(135deg, var(--primaria), var(--primaria2)); box-shadow: var(--sombra-btn); overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; background: var(--primaria-clara); }
.avatar.grande { width: 84px; height: 84px; font-size: 38px; }
.titulo { font: 900 28px/1.1 var(--fonte-titulo); letter-spacing: -.01em; }
.tema-mae .titulo { font-weight: 700; }
.titulo.medio { font-size: 21px; }
.titulo.enorme { font-size: 40px; line-height: 1; }
.sub { font-size: 15px; font-weight: 700; color: var(--texto2); }
.tema-mae .sub { font-weight: 500; font-size: 14px; }
.secao { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.secao h2 { font: 800 18px var(--fonte-titulo); }
.tema-mae .secao h2 { font-weight: 600; font-size: 16px; }
.secao span { font-size: 13px; font-weight: 700; color: var(--texto2); }
.nota { font-size: 13px; font-weight: 600; color: var(--texto2); line-height: 1.5; }
.tema-mae .nota { font-weight: 400; }

/* cartões */
.cartao { background: var(--cartao); border: 1.5px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; width: 100%; color: var(--texto); }
.cartao.esperando { border-color: var(--espera-borda); }
.cartao.conferido { border-color: var(--ok-borda); }
.cartao.devolvido { border-color: var(--volta-borda); }
.cartao.botao { cursor: pointer; font: inherit; }
.cartao.botao:active { transform: scale(.99); }
.cartao.tracejado { border-style: dashed; box-shadow: none; text-align: center; padding: 20px; }
.linha { display: flex; align-items: center; gap: 12px; }
.nome { font-weight: 800; font-size: 15.5px; line-height: 1.25; }
.tema-mae .nome { font-weight: 600; font-size: 15px; }
.valor { font-size: 13px; font-weight: 700; color: var(--texto2); }
.tema-mae .valor { font-weight: 500; }
.tile { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--icone); color: #fff; }
.tema-mae .tile { border-radius: 13px; background: var(--primaria-clara); color: var(--primaria-texto); }
.tile.extra { background: var(--dinheiro-fundo); color: var(--dinheiro-texto); }
.tile.premio { background: var(--estrela-clara); color: var(--estrela-texto); }

/* botões */
.btn { border: 1.5px solid var(--borda); border-radius: var(--raio-btn); padding: 10px 16px; min-height: 44px; font-weight: 800; font-size: 15px; line-height: 1.15; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; background: var(--cartao); color: var(--texto); }
.tema-mae .btn { font-weight: 600; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primario { background: linear-gradient(135deg, var(--primaria), var(--primaria2)); color: #fff; border-color: transparent; box-shadow: var(--sombra-btn); }
.btn-escuro { background: var(--texto); color: var(--cartao); border-color: transparent; }
.btn-contorno { color: var(--volta-texto); border-color: var(--volta-borda); }
.btn-grande { width: 100%; font-size: 18px; padding: 13px 16px; min-height: 54px; }
.btn-fiz { font-size: 18px; font-weight: 900; padding: 9px 20px; }
.btn-pequeno { min-height: 40px; padding: 7px 13px; font-size: 14px; }
.btn-icone { width: 42px; min-height: 42px; padding: 0; }
.botoes { display: flex; gap: 10px; }
.botoes > * { flex: 1; }
.botoes > .btn { white-space: nowrap; padding-left: 10px; padding-right: 10px; }
.link { background: none; border: 0; color: var(--primaria-texto); font-weight: 800; font-size: 15px; padding: 10px; text-decoration: underline; text-underline-offset: 3px; }

/* selos */
.selo { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 7px 11px; font-size: 12.5px; font-weight: 800; line-height: 1.15; max-width: 128px; }
.selo-esperando { background: var(--espera-fundo); color: var(--espera-texto); }
.selo-conferido { background: var(--ok-fundo); color: var(--ok-texto); }
.recado { background: var(--volta-fundo); border-radius: 14px; padding: 9px 11px; font-size: 14px; font-weight: 700; color: var(--volta-texto); line-height: 1.4; }
.contador { background: linear-gradient(135deg, #DB2777, #C026D3); color: #fff; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; position: absolute; top: 2px; right: calc(50% - 24px); }

/* barras */
.barra { height: 12px; border-radius: 999px; background: var(--primaria-clara); overflow: hidden; }
.barra > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primaria), var(--primaria2)); transition: width .45s ease; }
.barra.estrela { background: var(--estrela-clara); height: 9px; }
.barra.estrela > span { background: var(--estrela); }

/* área da criança: cabeçalho da bonequinha */
.folhas { position: absolute; pointer-events: none; color: #9DB596; opacity: .5; z-index: 0; }
.folhas.direita { top: 50px; right: -14px; width: 86px; transform: rotate(16deg); }
.folhas.esquerda { top: 300px; left: -22px; width: 74px; transform: scaleX(-1) rotate(8deg); opacity: .35; }
.marca { display: flex; align-items: center; gap: 6px; font: 900 15px var(--fonte); color: var(--primaria-texto); letter-spacing: .02em; }
.saudacao-crianca { text-align: center; padding: 0 20px; position: relative; z-index: 1; }
.saudacao-crianca .titulo { font-size: 30px; }
.mascote { display: block; margin: 2px auto -30px; width: 178px; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 10px 14px rgba(70, 92, 62, .18)); }
.placar { margin: 0 20px 4px; padding: 38px 14px 14px; background: var(--cartao); border-radius: 26px; box-shadow: var(--sombra); border: 1.5px solid var(--borda); display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.placas { display: flex; gap: 10px; }
.placa { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--fundo); border: 0; border-radius: 18px; padding: 10px 12px; text-align: left; color: var(--texto); }
.placa .tile { width: 38px; height: 38px; }
.placa b { display: block; font: 900 19px/1 var(--fonte); white-space: nowrap; }
.placa small { font-size: 12px; font-weight: 700; color: var(--texto2); }
.mascote-festa { width: 160px; height: auto; margin: -92px auto 0; display: block; filter: drop-shadow(0 12px 16px rgba(70, 92, 62, .2)); }

/* potes e extrato */
.potes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pote { background: var(--cartao); border: 1.5px solid var(--borda); box-shadow: var(--sombra); border-radius: var(--raio); padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.pote b { font: 900 17px/1.1 var(--fonte-titulo); }
.tema-mae .pote b { font-weight: 600; }
.pote small { font-size: 11.5px; font-weight: 700; color: var(--texto2); line-height: 1.3; }
.pote span { font-size: 13px; font-weight: 800; }
.pote .tile { width: 36px; height: 36px; }
.extrato { background: var(--cartao); border: 1.5px solid var(--borda); box-shadow: var(--sombra); border-radius: var(--raio); padding: 2px 14px; }
.extrato-linha { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--borda); }
.extrato-linha:last-child { border-bottom: 0; }
.extrato-linha .cresce { font-size: 14px; font-weight: 700; }
.extrato-linha small { display: block; font-size: 12px; color: var(--texto2); font-weight: 600; }
.extrato-linha b { font: 800 15px var(--fonte-titulo); white-space: nowrap; }
.extrato-linha b.mais { color: var(--ok-texto); }

/* área do responsável: painel */
.saudacao-mae { background: var(--saudacao); border-radius: 22px; padding: 18px 0 18px 16px; display: flex; align-items: center; gap: 4px; min-height: 148px; overflow: hidden; position: relative; }
.saudacao-mae .titulo { font-size: 20px; }
.saudacao-mae .btn { margin-top: 10px; }
.saudacao-mae img { width: 132px; height: auto; margin: -8px -6px -26px 0; align-self: flex-end; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { background: var(--cartao); border: 1.5px solid var(--borda); box-shadow: var(--sombra); border-radius: 16px; padding: 12px 10px; display: flex; flex-direction: column; gap: 4px; }
.stat b { font: 600 19px/1.1 var(--fonte-mae); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { font-size: 11.5px; color: var(--texto2); font-weight: 500; line-height: 1.25; }
.stat svg { color: var(--primaria-texto); }
.grafico svg { width: 100%; height: auto; max-height: 230px; display: block; overflow: visible; }
.grafico .rotulo { font: 500 11px var(--fonte-mae); fill: var(--texto2); }
.grafico .rotulo.hoje { fill: var(--primaria-texto); font-weight: 700; }
.grafico .grade { stroke: var(--borda); stroke-width: 1; stroke-dasharray: 3 4; }
.anel-caixa { display: flex; align-items: center; gap: 16px; }
.anel { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
.anel svg { width: 104px; height: 104px; transform: rotate(-90deg); }
.anel b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 22px var(--fonte-mae); }
.legenda { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--texto2); }
.legenda span::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--cor, var(--primaria)); }
.calendario { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.calendario .cab { font-size: 11px; font-weight: 600; color: var(--texto2); padding: 2px 0 4px; }
.calendario .dia { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 12.5px; font-weight: 500; color: var(--texto); max-width: 38px; margin: 0 auto; width: 100%; }
.calendario .dia.vazio { visibility: hidden; }
.calendario .dia.futuro { color: var(--texto2); opacity: .55; }
.calendario .dia.parcial { background: var(--primaria-clara); color: var(--primaria-texto); font-weight: 700; }
.calendario .dia.completo { background: linear-gradient(135deg, var(--primaria), var(--primaria2)); color: #fff; font-weight: 700; }
.calendario .dia.hoje { box-shadow: 0 0 0 2px var(--primaria); }
.cabecalho-cartao { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cabecalho-cartao h2 { font: 600 16px var(--fonte-titulo); }

/* navegação */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; background: var(--cartao); border-top: 1.5px solid var(--borda); padding: 6px 4px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(0, 0, 0, .04); }
.nav-itens { display: flex; width: 100%; max-width: 480px; }
.nav button { position: relative; flex: 1; background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--texto2); font-size: 11.5px; font-weight: 700; padding: 6px 0; min-height: 52px; }
.nav button svg { padding: 4px 12px; box-sizing: content-box; border-radius: 999px; }
.nav button[aria-current="page"] { color: var(--primaria-texto); }
.nav button[aria-current="page"] svg { background: var(--primaria-clara); }

/* formulários */
.campo { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 800; color: var(--texto2); }
.tema-mae .campo { font-weight: 600; }
.campo input, .campo select, .campo textarea { border: 1.5px solid var(--borda); border-radius: 14px; padding: 12px 13px; font-size: 16.5px; font-weight: 600; color: var(--texto); background: var(--cartao); width: 100%; }
.campo textarea { resize: vertical; min-height: 64px; font-size: 15px; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: 3px solid var(--primaria-clara); border-color: var(--primaria); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.rolar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { border: 1.5px solid var(--borda); background: var(--cartao); border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 13.5px; min-height: 40px; white-space: nowrap; color: var(--texto); }
.chip[aria-pressed="true"] { background: var(--primaria-clara); border-color: var(--primaria); color: var(--primaria-texto); }
.cores .chip { width: 44px; height: 44px; padding: 0; border-width: 3px; }
.cores .chip[aria-pressed="true"] { border-color: var(--texto); box-shadow: inset 0 0 0 3px var(--cartao); }
.grade-icones { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.grade-icones button { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--borda); background: var(--cartao); display: grid; place-items: center; color: var(--texto); padding: 0; }
.grade-icones button[aria-pressed="true"] { background: var(--primaria-clara); border-color: var(--primaria); color: var(--primaria-texto); }
.dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.dias .chip { padding: 0; min-height: 42px; border-radius: 12px; font-size: 13px; }
.escolha { display: flex; align-items: center; gap: 12px; text-align: left; background: var(--cartao); border: 1.5px solid var(--borda); border-radius: 18px; padding: 10px 12px; width: 100%; color: var(--texto); box-shadow: var(--sombra); }
.escolha[aria-pressed="true"] { border-color: var(--primaria); }
.caixa { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--borda); display: grid; place-items: center; flex-shrink: 0; background: var(--cartao); color: #fff; }
.escolha[aria-pressed="true"] .caixa { background: var(--primaria); border-color: var(--primaria); }
.passos { display: flex; gap: 5px; }
.passos span { width: 22px; height: 6px; border-radius: 99px; background: var(--borda); }
.passos span.feito { background: var(--primaria); }
.codigo { font: 700 32px/1 var(--fonte-mae); letter-spacing: 3px; background: var(--estrela-clara); color: var(--texto); border-radius: 16px; padding: 16px 12px; text-align: center; border: 2px dashed var(--estrela); }

/* boas-vindas: o rosto do app, no tema da bonequinha */
/* Atrás do cartão: o corte reto da ilustração fica escondido e as duas parecem espiar por cima. */
.boasvindas-arte { width: 236px; height: auto; margin: 0 auto -56px; position: relative; z-index: 0; }
.boasvindas-cartao { width: 100%; max-width: 360px; background: var(--cartao); border-radius: 28px; box-shadow: var(--sombra); border: 1.5px solid var(--borda); padding: 52px 20px 22px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }

/* PIN */
.pin-pontos { display: flex; gap: 14px; justify-content: center; margin: 6px 0; }
.pin-pontos span { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--primaria); }
.pin-pontos span.cheio { background: var(--primaria); }
.teclado { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; justify-content: center; }
.teclado button { height: 64px; border-radius: 20px; border: 1.5px solid var(--borda); background: var(--cartao); box-shadow: var(--sombra); font: 600 24px var(--fonte-titulo); display: grid; place-items: center; color: var(--texto); }
.teclado button:active { transform: scale(.96); }
.aviso { min-height: 22px; font-weight: 700; color: var(--volta-texto); }
.tremer { animation: tremer .35s; }
@keyframes tremer { 25% { transform: translateX(-8px); } 50% { transform: translateX(8px); } 75% { transform: translateX(-4px); } }

/* camadas por cima */
.modal-fundo { position: fixed; inset: 0; z-index: 20; background: rgba(20, 18, 40, .45); display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--cartao); color: var(--texto); width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; animation: subir .2s ease-out; }
@keyframes subir { from { transform: translateY(40px); opacity: 0; } }
.toast { position: fixed; z-index: 30; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 40px); max-width: 440px; background: #241F3D; color: #fff; border-radius: 18px; padding: 10px 10px 10px 14px; font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 28px rgba(15, 12, 40, .3); }
.tema-crianca .toast { background: #34402F; }
.toast .cresce { line-height: 1.3; }
.toast .brilho { color: #F6C453; display: flex; }
.toast .btn { min-height: 38px; padding: 6px 12px; font-size: 14px; background: #fff; color: #241F3D; border: 0; }
.festa-fundo { position: fixed; inset: 0; z-index: 25; background: rgba(243, 246, 239, .94); display: flex; align-items: center; justify-content: center; padding: 110px 20px 20px; overflow: hidden; }
.festa { position: relative; background: var(--cartao); border: 1.5px solid var(--borda); border-radius: 28px; box-shadow: var(--sombra); padding: 22px 18px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px; text-align: center; animation: pular .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pular { from { transform: scale(.7); opacity: 0; } }
.festa-item { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--fundo); border-radius: 18px; padding: 10px; }
.confete { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: cair 2.6s linear forwards; }
@keyframes cair { to { transform: translateY(110vh) rotate(540deg); } }
.pulo { animation: pulo .45s ease; }
@keyframes pulo { 40% { transform: scale(1.03); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .confete { display: none; }
}
@media (min-width: 520px) {
  .modal { border-radius: 26px; margin-bottom: 24px; }
  .modal-fundo { align-items: center; }
}
/* No computador, a área do responsável vira painel: menu na lateral, duas colunas. */
@media (min-width: 900px) {
  .tema-mae .tela.painel-largo { max-width: 1180px; padding-left: 232px; }
  .tema-mae .nav { left: 0; right: auto; top: 0; bottom: 0; width: 212px; flex-direction: column; justify-content: flex-start; border-top: 0; border-right: 1.5px solid var(--borda); padding: 92px 14px 20px; }
  .tema-mae .nav-itens { flex-direction: column; gap: 4px; }
  .tema-mae .nav button { flex-direction: row; justify-content: flex-start; gap: 10px; font-size: 14px; padding: 6px 8px; min-height: 46px; border-radius: 14px; }
  .tema-mae .nav button[aria-current="page"] { background: var(--primaria-clara); }
  .tema-mae .nav button[aria-current="page"] svg { background: none; }
  .tema-mae .contador { position: static; margin-left: auto; }
  .tema-mae .conteudo { padding-bottom: 40px; }
  .painel { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .painel > div { display: flex; flex-direction: column; gap: 12px; }
}

/* v4 · família e aparelhos: o QR do convite (sempre preto no branco, para a câmera ler em qualquer tema) e a Folha da família */
.qr-convite { background: #fff; padding: 10px; border-radius: 16px; width: min(280px, 100%); margin: 6px auto 12px; box-sizing: border-box; }
.qr-convite svg { display: block; width: 100%; height: auto; }
.folha-texto { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace; background: var(--cartao); color: var(--texto); border: 1px solid var(--borda); border-radius: var(--raio); padding: 12px; max-height: 40vh; overflow: auto; margin: 8px 0 12px; }
details.cartao summary { cursor: pointer; font-weight: 700; }
.botoes.coluna { flex-direction: column; align-items: stretch; }
.botoes.coluna .btn { width: 100%; }

/* v5: galeria de desenhos */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 10px; }
.desenho-opcao { aspect-ratio: 1; width: 100%; border-radius: 50%; border: 3px solid transparent; padding: 0; overflow: hidden; background: var(--primaria-clara); cursor: pointer; }
.desenho-opcao img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.desenho-opcao[aria-pressed="true"] { border-color: var(--primaria); box-shadow: inset 0 0 0 3px var(--cartao); }
.desenho-opcao:focus-visible { outline: 3px solid var(--primaria); outline-offset: 2px; }
.pedido-desenho { margin-top: 10px; padding: 14px 16px; border-radius: 16px; background: var(--primaria-clara); color: var(--texto); }
.pedido-desenho ol { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; }

/* Jura de Dedinho v1 (edição de cliente) */
.marca-simbolo { display: block; width: 31px; height: 20px; flex: none; }
.copia-seguranca { border: 2px solid var(--primaria); }
.sobre a { color: var(--primaria-texto); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.sobre-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
.sobre-links a { padding: 6px 0; }
