/*
 * temas/aquarela.css — Modelo 3: aquarela e flores.
 * Tons de rosa antigo e verde-sálvia sobre papel; flores pintadas em SVG.
 */

.tema-aquarela {
  --papel: #FAF4EE;
  --papel-claro: #FFFCF8;
  --linha: #E6D3C8;
  --tinta: #3A3433;
  --tinta-suave: #6B5F5C;
  --lacre: #9A5650;
  --aq-salvia: #4F6B57;
  background:
    radial-gradient(60% 40% at 0% 0%, rgba(240, 196, 186, 0.35), transparent 70%),
    radial-gradient(50% 35% at 100% 30%, rgba(157, 176, 142, 0.22), transparent 70%),
    radial-gradient(60% 40% at 0% 80%, rgba(246, 220, 200, 0.4), transparent 70%),
    var(--papel);
  color: var(--tinta);
}

/* ---------- abertura ---------- */

.aqua-abertura { overflow: hidden; justify-content: space-between; }
.aqua-abertura .abertura__topo { position: relative; z-index: 3; }
.aqua-palco { position: relative; width: 100%; max-width: 360px; height: 360px; }

.aqua-flor { position: absolute; display: block; transition: transform 1.4s cubic-bezier(0.25, 0.8, 0.2, 1), opacity 1.2s ease; }
.aqua-flor--esq { width: 250px; left: -26px; top: 70px; transform: rotate(-8deg); }
.aqua-flor--dir { width: 210px; right: -24px; top: 10px; transform: rotate(12deg); }
.aqua-flor--folhas { width: 260px; left: 70px; top: 120px; opacity: 0.9; }

.aqua-lacre {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 4;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 5px 7px rgba(120, 60, 55, 0.3));
  animation: aqua-respira 3s ease-in-out infinite;
}
.aqua-lacre:focus-visible { outline: 2px solid var(--ouro); outline-offset: 4px; }
.aqua-lacre .cera { display: block; overflow: visible; }
@keyframes aqua-respira { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.05); } }

.aqua-revela {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.96);
  transition: opacity 1.2s ease 0.7s, filter 1.4s ease 0.7s, transform 1.4s ease 0.7s;
}
.aqua-revela__nomes { font-style: normal; font-size: clamp(2.6rem, 13vw, 3.2rem); line-height: 1.1; color: var(--tinta); }
.aqua-revela__data { font-style: normal; font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; font-family: var(--fonte-texto); color: var(--tinta-suave); }

.cera__metade { transform-box: fill-box; transition: transform 0.7s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.6s ease 0.15s; }

/* abrindo */
.aqua-abertura.abertura--aberta .aqua-lacre { animation: none; pointer-events: none; }
.aqua-abertura.abertura--aberta .cera__metade--esq { transform: translate(-14px, 40px) rotate(-24deg); opacity: 0; }
.aqua-abertura.abertura--aberta .cera__metade--dir { transform: translate(14px, 46px) rotate(20deg); opacity: 0; }
.aqua-abertura.abertura--aberta .aqua-flor--esq { transform: translate(-46%, 34%) rotate(-28deg) scale(0.9); }
.aqua-abertura.abertura--aberta .aqua-flor--dir { transform: translate(44%, -38%) rotate(30deg) scale(0.9); }
.aqua-abertura.abertura--aberta .aqua-flor--folhas { transform: translate(20%, 52%) rotate(14deg); opacity: 0.55; }
.aqua-abertura.abertura--aberta .aqua-revela { opacity: 1; filter: none; transform: none; }
.aqua-abertura.abertura--aberta .abertura__ver { animation: aqua-surge 0.7s ease 2s both; }
@keyframes aqua-surge { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.aqua-abertura .abertura__ver { background: var(--aq-salvia); border-color: var(--aq-salvia); border-radius: 999px; }

/* ---------- convite ---------- */

.aqua-cantos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aqua-canto { position: absolute; width: 150px; opacity: 0.5; will-change: transform; }
.aqua-canto--topo { top: -40px; right: -50px; }
.aqua-canto--baixo { bottom: -50px; left: -55px; }
.tema-aquarela .convite { position: relative; z-index: 1; }

.aqua-capa { position: relative; padding-top: 1.5rem; }
.aqua-capa__guirlanda { width: 230px; margin-bottom: -2.4rem; }
.tema-aquarela .capa__e { color: var(--lacre); }
.tema-aquarela .contagem__item { border-color: var(--linha); border-radius: 999px 999px 18px 18px; background: rgba(255, 252, 248, 0.7); }

.tema-aquarela .ramo path { stroke: #8CA27E; }
.tema-aquarela .saudacao { background: rgba(255, 252, 248, 0.75); }
.tema-aquarela .evento { background: rgba(255, 252, 248, 0.8); border-color: var(--linha); border-radius: 18px; }
.tema-aquarela .btn { border-radius: 999px; }
.tema-aquarela .depois { border-radius: 18px; }
.tema-aquarela .rsvp { background: var(--aq-salvia); border-radius: 28px 28px 0 0; }
.tema-aquarela .rsvp__enviar { border-radius: 999px; }
.tema-aquarela .cota { border-radius: 14px; }

.com-revelar .tema-aquarela [data-revelar] { opacity: 0; filter: blur(4px); transition: opacity 1s ease, filter 1s ease; }
.com-revelar .tema-aquarela [data-revelar].revelado { opacity: 1; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .aqua-lacre { animation: none; }
  .aqua-flor, .aqua-revela, .cera__metade { transition: none; }
}

/* os cantos só aparecem depois de abrir o envelope */
.aqua-cantos { transition: opacity 1.2s ease 1.2s; }
.rolagem-travada .aqua-cantos { opacity: 0; transition: none; }
