/* public/estilo.css — v1.3: identidade final — terracota #C8624B, The Youngest Serif nos títulos, monograma e folhas reais */

/* ===== Fonte de título (arquivo local; sem ele, usa Cormorant Garamond) ===== */
@font-face {
  font-family: 'The Youngest Serif';
  src: local('The Youngest Serif Display'), local('TheYoungestSerif-Display'),
    url('/fontes/TheYoungestSerif-Display.woff2') format('woff2'),
    url('/fontes/TheYoungestSerif-Display.otf') format('opentype');
  font-weight: 100 900;
  font-display: swap;
}

/* ===== Tokens ===== */
:root {
  --fundo: #FBF7F2;
  --cartao: #FFFFFF;
  --tinta: #3B3F31;
  --tinta-suave: #575C4B;
  --ouro: #A47A4A;
  --ouro-texto: #A64B37;
  --terracota: #C8624B;          /* cor da marca: monograma, títulos grandes, bordas */
  --destaque: #B5523D;           /* mesma cor, um tom abaixo: fundo de botão com texto branco legível (AA) */
  --destaque-escuro: #9A4432;    /* texto pequeno sobre marfim */
  --salvia: #8C9A74;
  --linha: #E6DCCD;
  --borda-campo: #8E8678;
  --placeholder: #EEE6DA;
  --tinta-cor: rgba(200, 98, 75, 0.28);
  --raio: 18px;
  --fonte-display: 'The Youngest Serif', 'Cormorant Garamond', Georgia, serif;
  --fonte-titulo: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --fonte-texto: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 20px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--fundo);
  color: var(--tinta);
  font-family: var(--fonte-texto);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ===== Estrutura da tela ===== */
.tela {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.empurra { flex: 1; }
.carregando { margin: auto; color: var(--tinta-suave); }

/* ===== Tipografia ===== */
.titulo-noivos, .titulo {
  margin: 0;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ouro-texto);
}
.titulo-noivos { font-family: var(--fonte-display); font-size: 2.4rem; text-align: center; color: var(--terracota); }
.titulo-noivos .e-comercial { color: var(--ouro); }
.titulo { font-family: var(--fonte-display); font-size: 1.8rem; color: var(--tinta); }
.subtitulo { margin: 0; font-size: 1rem; color: var(--tinta-suave); text-align: center; }
.texto-suave { margin: 0; color: var(--tinta-suave); }
.centro { text-align: center; }
.aviso-noivos { margin: 0; font-size: 0.95rem; color: var(--tinta-suave); text-align: center; }

/* ===== Monograma ===== */
.monograma { display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 8px; color: var(--ouro); }
.monograma-letras { display: flex; align-items: center; gap: 14px; font-family: var(--fonte-titulo); font-weight: 600; font-size: 2.2rem; line-height: 1; }
.monograma-letras .barra { width: 2px; height: 40px; background: var(--ouro); }
.monograma svg { width: 120px; height: 34px; stroke: var(--ouro); stroke-width: 1.6; fill: var(--ouro); fill-opacity: 0.35; stroke-linecap: round; }

/* ===== Botões ===== */
.botao {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 64px; padding: 0 20px;
  border: 2px solid transparent; border-radius: var(--raio);
  font-size: 1.1rem; font-weight: 700; text-align: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.botao svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.botao-principal { background: var(--destaque); color: #FFFFFF; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 0 1px var(--ouro); }
.botao-principal:active { background: var(--destaque-escuro); }
.botao-principal:disabled { opacity: 0.6; cursor: wait; }
.botao-contorno { background: transparent; border-color: var(--destaque); color: var(--destaque-escuro); }
.botao-texto { min-height: 52px; background: none; border: 0; color: var(--destaque-escuro); }
.botao-escuro { background: var(--tinta); color: #FFFFFF; }

.voltar {
  align-self: flex-start; display: flex; align-items: center; gap: 4px;
  min-height: 48px; padding: 0 12px 0 0; background: none; border: 0;
  font-size: 1rem; font-weight: 700; color: var(--tinta); cursor: pointer;
}
.voltar svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Ilustrações ===== */
.ilustracao { fill: none; stroke: var(--tinta); stroke-linecap: round; stroke-linejoin: round; }
.ilustracao .p { fill: transparent; transition: fill 900ms ease; }
.ilustracao.colorida .p { fill: var(--tinta-cor); }

/* ===== Cartões de missão (passaporte) ===== */
.lista-missoes { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cartao-missao {
  display: flex; align-items: center; gap: 16px;
  min-height: 88px; padding: 14px 16px;
  background: var(--cartao); border: 2px solid var(--linha); border-radius: var(--raio);
}
.cartao-missao .ilustracao { width: 48px; height: 48px; stroke-width: 2.4; }
.cartao-missao-titulo { flex: 1; font-size: 1.1rem; font-weight: 700; line-height: 1.25; }
.cartao-missao-etiqueta { display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ouro-texto); }
.cartao-missao .seta { width: 28px; height: 28px; fill: none; stroke: var(--tinta-suave); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.cartao-missao.feita { border-color: var(--ouro); }
.cartao-missao.especial { border-style: dashed; border-color: var(--ouro); }
.cartao-missao.livre { background: transparent; border-style: dashed; }
.contagem { display: flex; align-items: center; gap: 4px; font-size: 0.95rem; font-weight: 700; color: var(--destaque-escuro); }
.contagem svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.frase-coletiva { margin: 0; font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.3rem; line-height: 1.3; color: var(--tinta); text-align: center; }

/* ===== Tela da missão ===== */
.palco {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 280px; background: var(--cartao); border: 2px solid var(--linha); border-radius: 24px;
}
.palco .ilustracao { width: 200px; height: 200px; stroke-width: 1.2; }
.palco.feito { border-color: var(--ouro); }
.carimbo {
  position: absolute; right: 16px; bottom: 16px;
  width: 104px; height: 104px; border: 3px solid var(--ouro); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--ouro-texto); text-align: center; transform: rotate(-12deg);
}
.carimbo strong { font-family: var(--fonte-titulo); font-size: 1.05rem; line-height: 1.05; }
.carimbo span { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; }
.carimbo.cai { animation: carimbo-cai 520ms cubic-bezier(0.2, 0.9, 0.3, 1.2) 700ms both; }
@keyframes carimbo-cai {
  from { opacity: 0; transform: rotate(-30deg) scale(1.8); }
  to { opacity: 1; transform: rotate(-12deg) scale(1); }
}
.cabecalho-missao { display: flex; flex-direction: column; gap: 8px; text-align: center; }

/* ===== Envio ===== */
.grade-fotos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.miniatura {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: 14px; background: var(--placeholder);
  display: flex; align-items: center; justify-content: center;
}
.miniatura img { width: 100%; height: 100%; object-fit: cover; }
.miniatura .icone-foto { width: 36px; height: 36px; fill: none; stroke: var(--tinta-suave); stroke-width: 2; }
.progresso { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.85); overflow: hidden; }
.progresso-barra { width: 0; height: 100%; background: var(--destaque); transition: width 200ms linear; }
.miniatura.ok::after, .miniatura.falhou::after {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 700; color: #FFFFFF; background: rgba(74, 81, 64, 0.55); content: '✓';
}
.miniatura.falhou::after { content: '!'; background: rgba(122, 46, 58, 0.6); }

.campo { display: flex; flex-direction: column; gap: 8px; }
.campo label { font-size: 1rem; font-weight: 700; }
.campo label span { font-weight: 400; color: var(--tinta-suave); }
.campo input {
  min-height: 60px; padding: 0 16px;
  background: var(--cartao); border: 2px solid var(--borda-campo); border-radius: 14px; font-size: 1.05rem;
}
.campo input:focus { border-color: var(--destaque); outline: none; box-shadow: 0 0 0 3px rgba(181, 82, 61, 0.25); }
.mensagem { margin: 0; padding: 14px 16px; border-radius: 14px; background: #F3EBDD; font-size: 0.95rem; }
.mensagem.erro { background: #F6E4E4; color: #6B2730; }

/* ===== Recompensa ===== */
.cartao-especial {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  background: var(--cartao); border: 2px dashed var(--ouro); border-radius: var(--raio);
}
.cartao-especial svg { width: 40px; height: 40px; fill: none; stroke: var(--ouro-texto); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cartao-especial strong { display: block; font-size: 1.05rem; }
.cartao-especial small { display: block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ouro-texto); }
.botoes { display: flex; flex-direction: column; gap: 8px; }

/* ===== Minhas fotos ===== */
.secao-fotos { display: flex; flex-direction: column; gap: 12px; }
.secao-fotos h2 { margin: 0; font-size: 1.05rem; }
.apagar {
  position: absolute; top: 6px; right: 6px; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cartao); border: 2px solid var(--tinta); border-radius: 50%; cursor: pointer;
}
.apagar svg { width: 22px; height: 22px; fill: none; stroke: var(--tinta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Confirmação (folha inferior) ===== */
.cortina { position: fixed; inset: 0; z-index: 10; display: flex; align-items: flex-end; justify-content: center; background: rgba(59, 63, 49, 0.6); }
.folha {
  width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 18px;
  padding: 28px 20px max(28px, env(safe-area-inset-bottom));
  background: var(--fundo); border-radius: 28px 28px 0 0;
}
.folha .miniatura { width: 96px; align-self: center; }

/* ===== Movimento reduzido ===== */
@media (prefers-reduced-motion: reduce) {
  .ilustracao .p { transition: none; }
  .carimbo.cai { animation: none; }
}

/* ===== Acessibilidade ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== v1.1 · Abertura e seções ===== */
.abertura { display: flex; flex-direction: column; gap: 6px; }
.abertura .subtitulo { font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.25rem; line-height: 1.3; color: var(--tinta); }
.titulo-pagina { font-size: 2.1rem; }
.secao-missoes { display: flex; flex-direction: column; gap: 12px; }
.titulo-secao { margin: 0; font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.45rem; line-height: 1.15; color: var(--terracota); text-align: center; }
.ornamento { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ouro); }
.ornamento span { width: 64px; height: 1.5px; background: var(--ouro); opacity: 0.7; }
.ornamento svg { width: 16px; height: 16px; fill: var(--ouro); }
.instrucao { margin: 0; font-size: 1.1rem; line-height: 1.45; color: var(--tinta); }

/* ===== v1.1 · Missão cumprida: destaque com selo e polaroid ===== */
.cartao-cumprido {
  display: flex; align-items: center; gap: 14px;
  min-height: 92px; padding: 12px 14px;
  background: #F7EFE2; border: 2px solid var(--ouro); border-radius: var(--raio);
  box-shadow: 0 6px 18px -10px rgba(133, 96, 47, 0.45);
}
.cartao-cumprido .cartao-missao-titulo { font-size: 1.05rem; }
.polaroid-mini {
  width: 64px; height: 72px; flex-shrink: 0; padding: 5px 5px 12px;
  background: #FFFFFF; border-radius: 3px; transform: rotate(-4deg);
  box-shadow: 0 3px 10px rgba(59, 63, 49, 0.25);
  display: flex; align-items: center; justify-content: center;
}
.polaroid-mini img { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; }
.polaroid-mini .ilustracao { width: 40px; height: 40px; stroke-width: 2.4; }
.selo-cumprida {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
  background: var(--ouro); color: #FFFFFF; box-shadow: inset 0 0 0 3px #FFFFFF, 0 0 0 2px var(--ouro);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.selo-cumprida svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.selo-cumprida b { font-size: 0.75rem; }
.cartao-cumprido.recem { animation: recem-cumprida 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cartao-cumprido.recem .selo-cumprida { animation: selo-pulsa 900ms 600ms ease-out both; }
@keyframes recem-cumprida {
  0% { opacity: 0; transform: translateY(-40px) scale(0.96); }
  60% { opacity: 1; transform: translateY(4px) scale(1.01); box-shadow: 0 0 0 6px rgba(164, 122, 74, 0.25); }
  100% { transform: none; }
}
@keyframes selo-pulsa { 0% { transform: scale(0.4) rotate(-30deg); } 70% { transform: scale(1.15); } 100% { transform: none; } }

.cartao-final {
  position: relative; display: flex; align-items: center; gap: 16px; width: 100%;
  min-height: 120px; padding: 16px 16px 16px 128px; text-align: left; cursor: pointer;
  background: #F7EFE2; border: 2px solid var(--ouro); border-radius: var(--raio); font: inherit; color: inherit;
}
.cartao-final .carimbo { left: 14px; right: auto; top: 50%; bottom: auto; width: 96px; height: 96px; margin-top: -48px; }
.cartao-final > span strong { display: block; font-family: var(--fonte-titulo); font-size: 1.4rem; line-height: 1.15; color: var(--ouro-texto); }
.cartao-final > span small { display: block; margin-top: 4px; font-size: 0.9rem; color: var(--tinta-suave); }

/* ===== v1.1 · Carrossel de polaroids na missão ===== */
.palco:has(.carrossel) { height: 360px; background: #F7EFE2; border-color: var(--ouro); overflow: hidden; }
.carrossel { position: absolute; inset: 0; cursor: pointer; }
.polaroid {
  position: absolute; left: 50%; top: 22px; width: 236px; margin: 0 0 0 -118px; padding: 10px 10px 36px;
  background: #FFFFFF; border-radius: 3px; box-shadow: 0 12px 28px -12px rgba(59, 63, 49, 0.55);
  opacity: 0; transform: translateX(46px) rotate(calc(var(--giro, 0deg) + 6deg)) scale(0.94);
  transition: opacity 700ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.polaroid img { width: 216px; height: 252px; object-fit: cover; border-radius: 1px; background: var(--placeholder); }
.polaroid.ativa { opacity: 1; transform: rotate(var(--giro, 0deg)); z-index: 2; }
.polaroid.saindo { opacity: 0; transform: translateX(-60px) rotate(calc(var(--giro, 0deg) - 8deg)) scale(0.94); z-index: 1; }
.pontos { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 8px; }
.pontos span { width: 8px; height: 8px; border-radius: 50%; background: rgba(133, 96, 47, 0.3); transition: background 300ms, transform 300ms; }
.pontos span.ativo { background: var(--ouro-texto); transform: scale(1.3); }
.palco:has(.carrossel) .carimbo { z-index: 3; right: 10px; bottom: 26px; width: 92px; height: 92px; background: rgba(251, 247, 242, 0.85); }

/* ===== v1.1 · Suas lembranças (mural de polaroids) ===== */
.secao-lembrancas { display: flex; flex-direction: column; gap: 14px; }
.mural { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; padding: 4px 4px 8px; }
.polaroid-galeria {
  position: relative; margin: 0; padding: 8px 8px 30px; background: #FFFFFF; border-radius: 3px;
  box-shadow: 0 10px 22px -12px rgba(59, 63, 49, 0.5); transform: rotate(var(--giro, 0deg));
}
.polaroid-galeria img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1px; background: var(--placeholder); }
.polaroid-galeria .icone-foto { width: 100%; aspect-ratio: 1; padding: 30%; fill: none; stroke: var(--tinta-suave); stroke-width: 1.6; background: var(--placeholder); }
.polaroid-galeria .apagar { top: auto; bottom: -14px; right: -8px; border-color: var(--ouro); box-shadow: 0 4px 10px rgba(59, 63, 49, 0.2); }
.polaroid-galeria .apagar svg { stroke: var(--ouro-texto); }
.centro-folha { width: 140px; align-self: center; transform: rotate(-2deg); }

/* ===== v1.1 · Celebração ===== */
.celebracao {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto;
  display: flex; align-items: center; justify-content: center; padding: 24px 20px;
  background: radial-gradient(circle at 50% 30%, #FFFDF8 0%, var(--fundo) 60%, #F3E9D9 100%);
  animation: aparece 700ms ease both;
}
.celebracao-conteudo { position: relative; z-index: 2; width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.celebracao-monograma .monograma-letras span:not(.barra) { animation: letra 1.2s 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.celebracao-monograma .monograma-letras span:last-child { animation-delay: 550ms; }
.celebracao-monograma .barra { animation: barra 900ms 200ms ease both; transform-origin: center; }
.ramo-desenha path { stroke-dasharray: 220; stroke-dashoffset: 220; animation: desenha 2.2s 900ms ease forwards; }
.celebracao-titulo { margin: 8px 0 0; font-family: var(--fonte-titulo); font-weight: 700; font-size: 3.4rem; line-height: 1; font-family: var(--fonte-display); color: var(--ouro-texto); animation: sobe 1s 1.3s ease both; }
.celebracao-texto { margin: 0; font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.45rem; line-height: 1.3; animation: sobe 1s 1.8s ease both; }
.celebracao-texto + .celebracao-texto { animation-delay: 2.2s; }
.celebracao-assinatura { margin: 6px 0 10px; font-size: 1rem; color: var(--tinta-suave); animation: sobe 1s 2.7s ease both; }
.celebracao .botoes { animation: sobe 1s 3.1s ease both; }
.petalas { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.petala {
  position: absolute; top: -40px; width: var(--tamanho); height: calc(var(--tamanho) * 1.6);
  background: var(--ouro); opacity: 0.55; border-radius: 0 100% 0 100%;
  animation: cai var(--duracao) var(--atraso) linear infinite;
}
.petala.oliva { background: var(--salvia); opacity: 0.5; }
.petala.terracota { background: var(--terracota); opacity: 0.45; }
@keyframes cai {
  0% { transform: translate(0, -40px) rotate(0deg); }
  50% { transform: translate(var(--deriva), 50vh) rotate(200deg); }
  100% { transform: translate(calc(var(--deriva) * -0.5), 110vh) rotate(400deg); }
}
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }
@keyframes letra { from { opacity: 0; letter-spacing: 0.4em; filter: blur(4px); } to { opacity: 1; letter-spacing: 0; filter: none; } }
@keyframes barra { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes desenha { to { stroke-dashoffset: 0; } }
@keyframes sobe { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cartao-cumprido.recem, .cartao-cumprido.recem .selo-cumprida, .celebracao, .celebracao *, .polaroid { animation: none !important; transition: none !important; }
  .ramo-desenha path { stroke-dashoffset: 0; }
}

/* ===== v1.2 · Vídeo ===== */
.palco-video { height: auto; min-height: 280px; padding: 12px; }
.video-quadro, .previa-video video, .cortina-video video {
  display: block; width: 100%; max-height: 56vh; border-radius: 12px; background: #1F211A; object-fit: contain;
}
.palco-video.feito { background: #F7EFE2; border-color: var(--ouro); }
.previa-video { padding: 10px 10px 30px; background: #FFFFFF; border-radius: 4px; box-shadow: 0 12px 28px -14px rgba(59, 63, 49, 0.55); transform: rotate(-1deg); }
.envio-video { display: flex; flex-direction: column; gap: 8px; }
.progresso-video { height: 14px; border-radius: 7px; background: var(--placeholder); overflow: hidden; box-shadow: inset 0 0 0 1px var(--linha); }
.progresso-video-barra { width: 0; height: 100%; background: linear-gradient(90deg, var(--destaque), var(--ouro)); transition: width 300ms linear; }
.progresso-texto { margin: 0; font-size: 1.05rem; font-weight: 700; text-align: center; color: var(--destaque-escuro); }
.cartao-missao.video { border-style: solid; border-color: var(--ouro); background: #FFFDF9; }
.e-video .tocar {
  position: absolute; left: 50%; top: calc(50% - 11px); width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(251, 247, 242, 0.92); box-shadow: 0 6px 16px rgba(59, 63, 49, 0.35);
}
.e-video .tocar svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--destaque-escuro); }
.e-video .duracao { position: absolute; left: 14px; bottom: 6px; font-size: 0.8rem; font-weight: 700; color: var(--tinta-suave); }
.e-video .icone-foto { width: 100%; aspect-ratio: 1; }
.cortina-video { align-items: center; }
.cortina-video .folha { border-radius: 24px; margin: 16px; width: calc(100% - 32px); }

/* ===== v1.2 · Apresentação em tela cheia (painel e noivos) ===== */
.apresentacao { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; background: #1F211A; }
.apresentacao-palco { display: flex; align-items: center; justify-content: center; max-width: 100%; transition: opacity 350ms ease; }
.apresentacao-palco.trocando { opacity: 0; }
.apresentacao-midia { max-width: 100%; max-height: calc(100vh - 170px); object-fit: contain; padding: 14px 14px 48px; background: #FFFFFF; border-radius: 3px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
video.apresentacao-midia { padding: 0; background: #000000; border-radius: 10px; }
.apresentacao-legenda { margin: 0; font-family: var(--fonte-titulo); font-weight: 600; font-size: 1.4rem; color: #F3E9D9; text-align: center; }
.apresentacao-controles { display: flex; gap: 12px; }
.apresentacao-controles button { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ouro); background: transparent; color: #F3E9D9; font-size: 1.3rem; cursor: pointer; }


/* ===== v1.3 · Monograma e folhas reais ===== */
.monograma-imagem { display: block; width: 168px; height: auto; margin: 0 auto; }
.celebracao .monograma-imagem { width: 230px; animation: letra 1.4s 300ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tela { position: relative; }
.folhas-canto {
  position: absolute; z-index: 0; top: -6px; right: -18px; width: 132px; height: auto;
  pointer-events: none; opacity: 0.9; transform: scaleY(-1);
}
.tela > *:not(.folhas-canto) { position: relative; z-index: 1; }
.celebracao .folhas-canto { position: fixed; top: auto; right: auto; bottom: -10px; left: -14px; width: 190px; transform: scaleX(-1); z-index: 1; animation: aparece 1.6s 600ms ease both; }
.celebracao .folhas-canto.direita { left: auto; right: -14px; top: -10px; bottom: auto; transform: scaleY(-1); }

/* Carimbo com o monograma */
.carimbo { border-color: var(--terracota); background: rgba(255, 255, 255, 0.88); }
.carimbo img { width: 76%; height: auto; }
.selo-cumprida { background: var(--terracota); box-shadow: inset 0 0 0 3px #FFFFFF, 0 0 0 2px var(--terracota); }
.cartao-cumprido, .cartao-final { border-color: var(--terracota); background: #FBF0EB; }
.palco.feito, .palco:has(.carrossel), .palco-video.feito { border-color: var(--terracota); }
.palco:has(.carrossel) { background: #FBF0EB; }

/* ===== v1.3 · Como funciona (câmera → galeria) ===== */
.como-funciona { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 14px 10px; list-style: none; background: var(--cartao); border: 2px solid var(--linha); border-radius: var(--raio); }
.como-funciona li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 0.85rem; font-weight: 700; line-height: 1.25; }
.como-funciona svg { width: 34px; height: 34px; fill: none; stroke: var(--terracota); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.como-funciona b { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--terracota); color: #FFFFFF; font-size: 0.8rem; }
.passos-missao { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.passos-missao li { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; }
.passos-missao b { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--terracota); color: #FFFFFF; font-size: 0.95rem; }

/* ===== v1.4 · Recompensa com a foto enviada + carimbo ===== */
.palco-foto { height: 360px; background: #FBF0EB; overflow: hidden; }
.palco-foto .carimbo { z-index: 3; right: 14px; bottom: 22px; }
.palco-foto .carimbo.cai { animation-delay: 1s; }
.recompensa-foto { --giro: -2deg; }
.recompensa-foto .icone-foto { width: 216px; height: 252px; padding: 30%; fill: none; stroke: var(--tinta-suave); stroke-width: 1.6; background: var(--placeholder); }

/* ===== v1.5 · Apagar direto na missão ===== */
.botao-apagar-atual { align-self: center; min-height: 48px; margin-top: -10px; font-size: 0.95rem; color: var(--tinta-suave); }
.botao-apagar-atual svg { width: 22px; height: 22px; }

/* ===== v1.6 · Sem rolagem horizontal no celular ===== */
html, body { max-width: 100%; overflow-x: hidden; }
.tela { overflow-x: clip; }

/* ===== v1.6 · Tira de miniaturas das fotos já enviadas ===== */
.tira-fotos { display: flex; gap: 12px; overflow-x: auto; padding: 8px 4px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.tira-foto {
  flex: 0 0 64px; height: 74px; padding: 5px 5px 13px; border: 0; border-radius: 3px; cursor: pointer;
  background: #FFFFFF; box-shadow: 0 4px 10px rgba(59, 63, 49, 0.25); transform: rotate(var(--giro, 0deg));
  scroll-snap-align: start; transition: transform 250ms ease, box-shadow 250ms ease;
}
.tira-foto img, .tira-foto .icone-foto { width: 100%; height: 100%; object-fit: cover; border-radius: 1px; background: var(--placeholder); }
.tira-foto.ativa { transform: rotate(0deg) translateY(-4px) scale(1.06); box-shadow: 0 0 0 3px var(--terracota), 0 8px 16px rgba(59, 63, 49, 0.3); }

/* ===== v1.6 · Vídeo enviado com carimbo ===== */
.palco-video.feito { position: relative; }
.palco-video.feito .carimbo { z-index: 3; right: 8px; bottom: 8px; width: 84px; height: 84px; }

/* ===== v1.6 · Convite para instalar (PWA) ===== */
.cartao-instalar {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 44px 14px 14px;
  background: #FBF0EB; border: 2px solid var(--terracota); border-radius: var(--raio);
}
.cartao-instalar > img { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; box-shadow: 0 2px 6px rgba(59, 63, 49, 0.2); }
.cartao-instalar strong { display: block; font-size: 1rem; }
.cartao-instalar small { display: block; margin-top: 2px; font-size: 0.85rem; line-height: 1.35; color: var(--tinta-suave); }
.cartao-instalar small svg { width: 18px; height: 18px; vertical-align: -3px; fill: none; stroke: var(--destaque-escuro); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cartao-instalar .botao { min-height: 48px; padding: 0 14px; font-size: 0.95rem; flex-shrink: 0; }
.cartao-instalar.ios { padding-right: 44px; }
.fechar-instalar { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--tinta-suave); cursor: pointer; }
.palco-video.feito .carimbo { top: 8px; bottom: auto; }
