/* Trilha da Arca: visual do app (modo noite). Paleta medida do concorrente com as nossas cores (analise-visual.md). */
:root {
  --fundo: #0b1020;
  --fundo-2: #0f1630;
  --cartao: #1a2238;
  --cartao-2: #212b47;
  --borda: #2a3352;
  --texto: #ffffff;
  --texto-2: rgba(255, 255, 255, .75);
  --texto-3: rgba(255, 255, 255, .58);
  --dourado: #f5b324;
  --verde: #2fbf4e;
  --verde-esc: #239a3d;
  --coral: #ff6b5a;
  --raio: 14px;
  --raio-g: 20px;
  --letra-historia: 19px;
  --fonte: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--fundo); color: var(--texto); font-family: var(--fonte);
  font-size: 16px; line-height: 1.5; font-weight: 400;
  background-image: radial-gradient(ellipse 80% 40% at 50% -10%, rgba(245, 179, 36, .12), transparent 70%);
  background-attachment: fixed;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--dourado); outline-offset: 2px; }
h1:focus { outline: none; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; background: var(--dourado); color: #111; padding: 12px 16px; border-radius: 10px; z-index: 50; font-weight: 700; }
.pular:focus { left: 8px; }

/* topo */
.topo { position: sticky; top: 0; z-index: 20; background: rgba(11, 16, 32, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--borda); }
.topo-in { max-width: 1040px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo-btn { background: none; border: 0; padding: 4px 0; min-height: 48px; display: flex; align-items: center; cursor: pointer; }
.logo { height: 38px; width: auto; max-width: 190px; display: block; }
.logo-texto { font-weight: 800; font-size: 20px; color: var(--dourado); letter-spacing: -.01em; }
.perfil-chip { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--cartao); border: 1px solid var(--borda); cursor: pointer; font-weight: 600; font-size: 15px; max-width: 52%; }
.perfil-chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perfil-bolinha { width: 28px; height: 28px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd66b, var(--dourado)); }

/* telas */
main { max-width: 1040px; margin: 0 auto; padding: 20px 16px 24px; }
main:focus { outline: none; }
.tela { display: flex; flex-direction: column; gap: 16px; animation: entra .25s ease-out; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tela > h1, .saudacao { font-size: 28px; }
.sub { color: var(--texto-2); font-size: 16px; margin-top: -8px; }
.rotulo { color: var(--dourado); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ref { color: var(--texto-2); font-size: 15px; font-weight: 500; }
.dica { color: var(--texto-3); font-size: 14px; }
.h-sec { font-size: 18px; font-weight: 700; }
.card { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio-g); padding: 20px; display: flex; flex-direction: column; gap: 10px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 20px; border-radius: var(--raio);
  border: 1px solid transparent; background: var(--cartao-2); font-weight: 700; font-size: 16px; cursor: pointer; text-decoration: none; text-align: center;
  transition: transform .12s ease, filter .12s ease, background-color .12s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-verde { background: var(--verde); color: #fff; min-height: 56px; width: 100%; font-size: 17px; font-weight: 800; box-shadow: 0 6px 22px rgba(47, 191, 78, .35); text-shadow: 0 1px 1px rgba(0, 0, 0, .25); }
.btn-verde:hover { filter: brightness(1.06); }
.btn-sec { background: transparent; border-color: var(--borda); color: var(--texto); width: 100%; }
.btn-sec:hover { background: var(--cartao-2); }
.btn-sec.perigo, .btn-mini.perigo { color: var(--coral); border-color: rgba(255, 107, 90, .5); }
.btn-voltar { background: transparent; border: 1px solid var(--borda); padding: 8px 14px; font-size: 15px; font-weight: 600; color: var(--texto-2); align-self: flex-start; }
.btn-link { background: none; border: 0; color: var(--texto-2); text-decoration: underline; font-weight: 600; padding: 8px 12px; }
.btn-mini { min-height: 48px; padding: 6px 14px; font-size: 14px; font-weight: 600; background: transparent; border-color: var(--borda); }
.btn-mini.ativo { background: rgba(245, 179, 36, .14); border-color: var(--dourado); color: var(--dourado); }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic.grande { width: 40px; height: 40px; }
.ic.dourado { color: var(--dourado); }
.ic.verde { color: var(--verde); }
.ic-trilha { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--dourado); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ic-trilha circle { fill: var(--dourado); stroke: none; }
.ic-trilha.medio { width: 44px; height: 44px; }
.ic-trilha.grande { width: 56px; height: 56px; padding: 8px; border-radius: 16px; background: rgba(245, 179, 36, .1); border: 1px solid rgba(245, 179, 36, .3); }

/* início */
.perfis { display: flex; flex-wrap: wrap; gap: 8px; }
.perfil-op { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--borda); background: var(--cartao); cursor: pointer; font-weight: 600; font-size: 15px; }
.perfil-op[aria-pressed="true"] { border-color: var(--dourado); background: rgba(245, 179, 36, .14); }
.perfil-ini { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cartao-2); color: var(--dourado); font-weight: 800; }
.perfil-op[aria-pressed="true"] .perfil-ini { background: var(--dourado); color: #1a1405; }
.perfil-novo { padding: 6px 16px; color: var(--texto-2); border-style: dashed; }
.hoje { background: linear-gradient(160deg, #24305a 0%, var(--cartao) 55%); border-color: rgba(245, 179, 36, .45); padding: 22px; gap: 12px; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.hoje-topo { display: flex; gap: 14px; align-items: center; }
.hoje-trilha { color: var(--texto-2); font-size: 14px; font-weight: 500; }
.hoje-titulo { font-size: 26px; }
.mini-passos { list-style: none; margin: 4px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini-passos li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--texto-2); }
.mini-passos .n, .etapas .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cartao-2); border: 1px solid var(--borda); color: var(--dourado); font-weight: 800; font-size: 14px; }
.trava { display: flex; gap: 10px; align-items: center; color: var(--dourado); font-weight: 600; font-size: 15px; }
.prog-num { font-size: 16px; color: var(--texto-2); }
.prog-num strong { font-size: 30px; color: var(--texto); font-weight: 800; margin-right: 4px; }
.barra-prog { height: 12px; border-radius: 999px; background: var(--fundo-2); border: 1px solid var(--borda); overflow: hidden; }
.barra-prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--dourado), #ffd66b); border-radius: 999px; transition: width .4s ease; min-width: 0; }
.barra-prog.fina { height: 8px; }
.estrelas { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.estrelas .ic { width: 28px; height: 28px; fill: var(--dourado); }
.selos-grade { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.selo { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; background: var(--fundo-2); border: 1px solid var(--borda); }
.selo .ic-trilha { width: 70%; height: 70%; stroke: rgba(255, 255, 255, .22); }
.selo .ic-trilha circle { fill: rgba(255, 255, 255, .22); }
.selo.ganho { background: rgba(245, 179, 36, .16); border-color: var(--dourado); }
.selo.ganho .ic-trilha { stroke: var(--dourado); }
.selo.ganho .ic-trilha circle { fill: var(--dourado); }

/* trilhas */
.grade-trilhas { display: grid; grid-template-columns: 1fr; gap: 12px; }
.trilha-card { text-align: left; cursor: pointer; color: var(--texto); font: inherit; transition: border-color .15s ease, transform .15s ease; }
.trilha-card:hover { border-color: rgba(245, 179, 36, .6); }
.trilha-topo { display: flex; align-items: center; gap: 12px; }
.trilha-num { color: var(--texto-3); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.etiqueta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--fundo-2); border: 1px solid var(--borda); color: var(--texto-2); white-space: nowrap; }
.etiqueta .ic { width: 14px; height: 14px; }
.etiqueta.livre { color: var(--verde); border-color: rgba(47, 191, 78, .5); }
.trilha-nome { font-size: 20px; }
.trilha-desc { color: var(--texto-2); font-size: 15px; }
.bolinhas { list-style: none; padding: 0; margin: 4px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.bolinhas li { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--borda); }
.bolinhas li.aberta { border-color: rgba(245, 179, 36, .7); }
.bolinhas li.feita { background: var(--dourado); border-color: var(--dourado); }
.bolinhas li.fechada { background: var(--fundo-2); }
.trilha-cab { display: flex; gap: 14px; align-items: center; }
.trilha-cab h1 { font-size: 26px; }
.lista-dev { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.dev-item { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; text-align: left; border-radius: var(--raio); background: var(--cartao); border: 1px solid var(--borda); cursor: pointer; }
.dev-item:hover { border-color: rgba(245, 179, 36, .6); }
.dev-num { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cartao-2); color: var(--dourado); font-weight: 800; }
.dev-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dev-tit { font-weight: 600; font-size: 16px; }
.dev-ref { color: var(--texto-3); font-size: 13px; }
.dev-st { color: var(--dourado); display: flex; }
.dev-item.feito .dev-num { background: var(--dourado); color: #1a1405; }
.dev-item.feito .dev-st { color: var(--verde); }
.dev-item.fechado { opacity: .8; }
.dev-item.fechado .dev-st { color: var(--texto-3); }

/* devocional */
.dev-barra { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.etapas-box { display: flex; flex-direction: column; gap: 10px; }
.etapas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.etapas li { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--texto-3); font-size: 13px; font-weight: 600; }
.etapas li.atual { color: var(--texto); }
.etapas li.atual .n { background: var(--dourado); color: #1a1405; border-color: var(--dourado); box-shadow: 0 0 0 4px rgba(245, 179, 36, .2); }
.etapas li.feita .n { background: var(--verde); color: #fff; border-color: var(--verde); }
.passo { display: flex; flex-direction: column; gap: 14px; }
.dev-titulo { font-size: 28px; }
.faixa-voz { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px 10px 14px; border-radius: var(--raio); background: rgba(245, 179, 36, .1); border: 1px solid rgba(245, 179, 36, .35); color: var(--dourado); font-weight: 600; font-size: 15px; }
.faixa-voz > span { flex: 1; min-width: 150px; }
.letra { display: flex; gap: 6px; }
.btn-letra { min-width: 52px; min-height: 48px; padding: 6px 10px; gap: 2px; background: var(--cartao); border-color: var(--borda); color: var(--texto); font-weight: 800; }
.btn-letra .ic { width: 16px; height: 16px; }
.historia { font-size: var(--letra-historia); line-height: 1.6; display: flex; flex-direction: column; gap: .8em; }
.historia p { max-width: 62ch; }
.pergunta { font-size: 24px; line-height: 1.3; }
.opcoes { display: flex; flex-direction: column; gap: 10px; }
.opcao { display: flex; align-items: center; gap: 14px; min-height: 64px; width: 100%; padding: 12px 16px; text-align: left; border-radius: var(--raio); background: var(--cartao); border: 2px solid var(--borda); font-size: 18px; font-weight: 600; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.opcao:hover:not([disabled]) { border-color: rgba(245, 179, 36, .7); }
.opcao[disabled] { cursor: default; }
.letra-op { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cartao-2); color: var(--dourado); font-weight: 800; font-size: 16px; }
.opcao.certa { border-color: var(--verde); background: rgba(47, 191, 78, .16); animation: pula .5s ease; }
.opcao.certa .letra-op { background: var(--verde); color: #fff; }
.opcao.errada { border-color: rgba(255, 107, 90, .6); background: rgba(255, 107, 90, .08); opacity: .75; animation: treme .35s ease; }
.opcao.errada .letra-op { background: var(--coral); color: #2a0b06; }
@keyframes pula { 0% { transform: scale(1); } 40% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes treme { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.feedback { min-height: 28px; font-size: 18px; position: relative; }
.feedback.ok { color: var(--verde); font-size: 22px; text-align: center; padding: 8px 0; }
.feedback.quase { color: var(--coral); }
.reler { border: 1px solid var(--borda); border-radius: var(--raio); background: var(--cartao); }
.reler summary { min-height: 48px; display: flex; align-items: center; padding: 10px 16px; cursor: pointer; font-weight: 600; color: var(--dourado); }
.reler .historia { padding: 0 16px 16px; }
.confete { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.confete i { position: absolute; width: 8px; height: 12px; border-radius: 2px; background: var(--dourado); opacity: 0;
  animation: confete .9s ease-out forwards; transform: rotate(calc(var(--i) * 30deg)) translateY(0); }
.confete i:nth-child(3n) { background: var(--verde); }
.confete i:nth-child(3n+1) { background: #7cc4ff; }
@keyframes confete { 0% { opacity: 1; transform: rotate(calc(var(--i) * 30deg)) translateY(0); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(-70px); } }
.destaque { background: linear-gradient(160deg, #24305a, var(--cartao)); border-color: rgba(245, 179, 36, .4); font-size: 20px; font-weight: 600; line-height: 1.45; }
.at-nome { font-size: 20px; }
.at-passos { font-size: 17px; color: var(--texto-2); line-height: 1.6; }
.cron { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--borda); }
.cron-vis { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--dourado); min-width: 110px; }
.cron-acoes { display: flex; gap: 8px; flex: 1; align-items: center; }
.cron-acoes .btn-sec { width: auto; flex: 1; }
.oracao-txt { font-size: 21px; line-height: 1.6; font-weight: 500; }
.versiculo { margin: 0; background: linear-gradient(160deg, rgba(245, 179, 36, .14), var(--cartao)); border-color: rgba(245, 179, 36, .45); }
.versiculo blockquote { margin: 0; font-size: 19px; line-height: 1.55; font-weight: 500; }
.versiculo figcaption { color: var(--dourado); font-size: 15px; }
.versiculo .credito { color: var(--texto-3); font-weight: 400; }
.selo-dia { position: relative; display: grid; place-items: center; padding: 16px 0 4px; }
.estrela-grande { width: 150px; height: 150px; fill: var(--dourado); stroke: #ffd66b; stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 0 28px rgba(245, 179, 36, .55)); animation: brilha 1s ease-out; }
.selo-dia .confete { top: 55%; }
@keyframes brilha { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 60% { transform: scale(1.1) rotate(4deg); opacity: 1; } 100% { transform: none; } }
.fim-titulo { font-size: 30px; text-align: center; }
.fim-sub { text-align: center; color: var(--texto-2); font-size: 17px; }
.amanha { text-align: center; align-items: center; }
.amanha strong { font-size: 20px; }

/* plano */
.paywall { align-items: flex-start; border-color: rgba(245, 179, 36, .5); background: linear-gradient(160deg, #24305a, var(--cartao)); }
.paywall h1 { font-size: 24px; }
.paywall p:last-child { color: var(--texto-2); }
.planos { display: grid; gap: 12px; }
.planos h2, .ativar h2, .ativo h2, #tela-ajustes .card h2 { font-size: 20px; }
.plano-completo { border-color: rgba(47, 191, 78, .55); }
.lista-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lista-check li { display: flex; gap: 10px; align-items: flex-start; color: var(--texto-2); }
.lista-check .ic { margin-top: 1px; }
.ativo { border-color: rgba(47, 191, 78, .6); }
.ativar label, .campo label { font-size: 14px; font-weight: 600; color: var(--texto-2); }
input[type="text"], select { width: 100%; min-height: 52px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--borda); background: var(--fundo-2); font-size: 17px; }
#codigo { font-size: 18px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
input::placeholder { color: var(--texto-3); text-transform: none; letter-spacing: 0; font-weight: 400; }
.msg { min-height: 1.5em; font-size: 15px; font-weight: 500; color: var(--texto-2); }
.msg.erro { color: var(--coral); }
.msg.ok { color: var(--verde); }

/* ajustes */
.perfil-linha { display: grid; grid-template-columns: 1fr 120px; gap: 10px; padding: 14px 0; border-top: 1px solid var(--borda); }
.perfil-linha.ativo .campo:first-child input { border-color: rgba(245, 179, 36, .6); }
.perfil-acoes { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.perfil-prog { grid-column: 1 / -1; color: var(--texto-3); font-size: 14px; }
.campo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.letra-linha { display: flex; align-items: center; gap: 12px; }
.letra-valor { color: var(--texto-2); font-weight: 600; }
.amostra-letra { font-size: var(--letra-historia); line-height: 1.6; }
.acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* aviso */
.aviso { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 40; max-width: min(92vw, 520px);
  background: #f4f6ff; color: #0b1020; font-weight: 600; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); text-align: center; }

/* menu de baixo */
.barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(11, 16, 32, .96); border-top: 1px solid var(--borda); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.barra-in { max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.nav-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 66px; background: none; border: 0; color: var(--texto-3); font-size: 12px; font-weight: 600; cursor: pointer; }
.nav-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.nav-btn[aria-current="page"] { color: var(--dourado); }
.nav-btn[aria-current="page"] svg { fill: rgba(245, 179, 36, .18); }

/* ficha (prévia na tela) */
.ficha-acoes { display: flex; gap: 8px; align-items: center; }
.ficha-acoes .btn-verde { width: auto; flex: 1; }
.ficha { background: #fff; color: #1b1b1b; border-radius: 10px; padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.ficha h1 { font-size: 22px; color: #0b1020; }
.ficha h2 { font-size: 15px; color: #8a5a00; text-transform: uppercase; letter-spacing: .05em; margin-top: 6px; border-bottom: 1px solid #e6d8b8; padding-bottom: 2px; }
.ficha-cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: #555; border-bottom: 2px solid #f5b324; padding-bottom: 6px; }
.ficha-marca { font-weight: 800; color: #0b1020; }
.ficha-ref { font-size: 12.5px; color: #444; }
.ficha-hist { display: flex; flex-direction: column; gap: 5px; }
.ficha-perg { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.ficha-perg p { font-weight: 600; }
.ficha-perg ul { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.ficha-oracao { font-style: italic; }

/* tablet e computador */
@media (min-width: 720px) {
  main { padding: 32px 24px 40px; }
  .tela > h1, .saudacao { font-size: 36px; }
  #tela-inicio { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; align-items: start; }
  #tela-inicio > h1, #tela-inicio > .sub, #tela-inicio > .perfis { grid-column: 1 / -1; }
  #tela-inicio > .hoje { grid-row: span 2; }
  #tela-inicio > #ver-trilhas { grid-column: 2; }
  .hoje-titulo { font-size: 32px; }
  .grade-trilhas { grid-template-columns: repeat(2, 1fr); }
  .planos { grid-template-columns: 1fr 1fr; }
  #tela-devocional, #tela-trilha, #tela-ficha, #tela-ajustes, #tela-plano { max-width: 760px; margin: 0 auto; width: 100%; }
  .dev-titulo { font-size: 34px; }
  .btn-verde { width: auto; min-width: 320px; align-self: center; padding: 10px 36px; }
  .card .btn-verde, .ativar .btn-verde { align-self: stretch; }
  .perfil-linha { grid-template-columns: 1fr 140px auto; align-items: end; }
  .perfil-acoes { grid-column: auto; }
}
@media (min-width: 1100px) {
  .grade-trilhas { grid-template-columns: repeat(3, 1fr); }
  .barra { top: 0; bottom: auto; background: transparent; border: 0; pointer-events: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .barra-in { max-width: 1040px; display: flex; justify-content: center; gap: 4px; padding-top: 8px; }
  .nav-btn { pointer-events: auto; flex-direction: row; gap: 8px; min-height: 48px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
  .nav-btn[aria-current="page"] { background: rgba(245, 179, 36, .12); }
  .nav-btn svg { width: 22px; height: 22px; }
  body { padding-bottom: 24px; }
  .aviso { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .confete { display: none; }
}

/* ficha em A4: a mesma regra serve para a impressão e para a cópia escondida que mede a letra (app.js ajusta --ficha-fs) */
.ficha.medir { position: absolute; left: -10000px; top: 0; width: 184mm; visibility: hidden; }
.ficha.medir, .ficha.a4 { padding: 0; border-radius: 0; font-size: var(--ficha-fs, 10.5pt); line-height: 1.36; gap: .4em; }
.ficha.medir h1, .ficha.a4 h1 { font-size: 1.6em; }
.ficha.medir h2, .ficha.a4 h2 { font-size: .95em; margin-top: .3em; }
.ficha.medir .ficha-hist, .ficha.a4 .ficha-hist { gap: .3em; }
.ficha.medir .ficha-cab, .ficha.medir .ficha-ref, .ficha.a4 .ficha-cab, .ficha.a4 .ficha-ref { font-size: .9em; }

/* impressão: só a ficha, A4, 1 página */
@page { size: A4; margin: 11mm 13mm; }
#ficha-regua { position: absolute; left: -10000px; top: 0; height: 262mm; width: 1px; visibility: hidden; }
@media print {
  html, body { background: #fff !important; color: #000; }
  body { padding: 0 !important; background-image: none; min-height: 0 !important; }
  #conteudo, .tela { min-height: 0; }
  .topo, .barra, .aviso, .pular, .ficha-acoes, .ficha-dica { display: none !important; }
  main { max-width: none; padding: 0; margin: 0; }
  .tela { animation: none; gap: 0; }
  .tela:not(#tela-ficha) { display: none !important; }
  .ficha { padding: 0; border-radius: 0; font-size: var(--ficha-fs, 10.5pt); line-height: 1.36; gap: .4em; }
  .ficha h1 { font-size: 1.6em; }
  .ficha h2 { font-size: .95em; margin-top: .3em; }
  .ficha-hist { gap: .3em; }
  .ficha-cab, .ficha-ref { font-size: .9em; }
  .ficha * { break-inside: avoid; }
}
