/* ---------- logo e algas (compartilhados com o site) ---------- */
.logo {
  display: inline-flex; align-items: center;
  font-family: 'Outfit', system-ui, sans-serif; font-weight: 400; letter-spacing: .26em;
  line-height: 1; white-space: nowrap; color: #fff;
}
.logo__tri {
  display: inline-block; width: .82em; height: 1.36em;
  margin: -.32em .2em 0 -.02em; color: #45F0E4;
  filter: drop-shadow(0 0 6px rgba(69, 240, 228, .8));
}
.logo__tri svg { display: block; width: 100%; height: 100%; }
.logo__g { margin-left: .5em; }

.alga { transform-box: fill-box; transform-origin: 50% 100%; animation: alga 4.5s ease-in-out infinite alternate; }
.alga--2 { animation-duration: 3.6s; animation-delay: -1s; }
.alga--3 { animation-duration: 5.2s; animation-delay: -2s; }
@keyframes alga { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }

/* =========================================================
   Convite digital (cartão 9:16). Tudo em cqw: o cartão
   escala junto com a caixa onde está (prévia ou página).
   O pai precisa ter container-type: inline-size.
   ========================================================= */
.cv {
  --cv-acento: #5CF5EA;
  position: absolute; inset: 0; overflow: hidden; isolation: isolate;
  color: #fff; text-align: center;
  font-family: 'Outfit', system-ui, sans-serif;
  background: linear-gradient(180deg, #1286C4 0%, #0A4A86 45%, #04173A 100%);
  transition: background .5s;
}
.cv--neon { background: linear-gradient(180deg, #3A22A0 0%, #1A1158 50%, #07071F 100%); }
.cv--sol { --cv-acento: #FFE3A3; background: linear-gradient(180deg, #FF9F6E 0%, #E2604E 32%, #6A2458 70%, #26103A 100%); }

.cv__raios { position: absolute; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen; }
.cv__raios i {
  position: absolute; top: -5%; height: 80%; width: 16%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent);
  filter: blur(2cqw); transform-origin: top;
  animation: cv-raio 9s ease-in-out infinite alternate;
}
.cv__raios i:nth-child(1) { left: 10%; transform: rotate(14deg); }
.cv__raios i:nth-child(2) { left: 46%; width: 9%; transform: rotate(5deg); animation-duration: 11s; }
.cv__raios i:nth-child(3) { left: 76%; width: 14%; transform: rotate(-8deg); animation-duration: 7s; }
@keyframes cv-raio { to { transform: rotate(-4deg); opacity: .4; } }

.cv__bolhas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.cv__bolhas i { border-width: max(1px, .35cqw); }
.cv__bolhas i:nth-child(1) { --x: 8%; --s: 4cqw; --d: 7s; }
.cv__bolhas i:nth-child(2) { --x: 22%; --s: 2.4cqw; --d: 5.5s; --atraso: -2s; }
.cv__bolhas i:nth-child(3) { --x: 35%; --s: 3.2cqw; --d: 8s; --atraso: -4s; }
.cv__bolhas i:nth-child(4) { --x: 52%; --s: 2cqw; --d: 6s; --atraso: -1s; }
.cv__bolhas i:nth-child(5) { --x: 66%; --s: 3.8cqw; --d: 9s; --atraso: -6s; }
.cv__bolhas i:nth-child(6) { --x: 78%; --s: 2.6cqw; --d: 6.5s; --atraso: -3s; }
.cv__bolhas i:nth-child(7) { --x: 90%; --s: 3cqw; --d: 7.5s; --atraso: -5s; }
.cv__bolhas i:nth-child(8) { --x: 44%; --s: 1.8cqw; --d: 5s; --atraso: -2.5s; }

/* as bolhas do convite usam a mesma animação da torre, mas em altura do cartão */
.cv__bolhas i {
  position: absolute; bottom: -6cqw; left: var(--x, 50%);
  width: var(--s, 3cqw); height: var(--s, 3cqw); border-radius: 50%;
  border-style: solid; border-color: rgba(220, 248, 255, .6);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .7) 0 14%, transparent 18%);
  animation: cv-bolha var(--d, 6s) ease-in var(--atraso, 0s) infinite;
}
@keyframes cv-bolha {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(2cqw, -90cqw); }
  100% { transform: translate(-1.5cqw, -185cqw); opacity: .15; }
}

.cv__conteudo {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; align-items: center;
  padding: 11cqw 8cqw 40cqw;
}
.cv__logo { font-size: 3.7cqw; }
.cv__logo .logo { letter-spacing: .26em; }
.cv__logo .logo__tri { color: var(--cv-acento); filter: drop-shadow(0 0 1.4cqw var(--cv-acento)); }
.cv__mascote {
  width: 52cqw; height: 46cqw; margin: 6cqw 0 4cqw;
  display: grid; place-items: center;
  animation: cv-flutua 4s ease-in-out infinite;
  filter: drop-shadow(0 3cqw 4cqw rgba(0, 0, 0, .35));
}
.cv__mascote svg { width: 100%; height: 100%; }
.cv--polvo .cv__mascote { width: 46cqw; }
.cv--aguaviva .cv__mascote { width: 36cqw; height: 50cqw; margin-top: 3cqw; }
@keyframes cv-flutua { 50% { transform: translateY(-2.4cqw) rotate(-2deg); } }

.cv__kicker {
  margin: 0; font-weight: 600; font-size: 3.3cqw; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cv-acento);
}
.cv__titulo {
  margin: 2.4cqw 0 0;
  font-family: 'Unbounded', system-ui, sans-serif; font-weight: 800;
  font-size: 10.4cqw; line-height: 1.04; letter-spacing: -.02em;
  text-wrap: balance; overflow-wrap: anywhere;
  text-shadow: 0 1cqw 3cqw rgba(0, 0, 0, .25);
}
.cv__titulo.longo { font-size: 8.4cqw; }
.cv__titulo.muito-longo { font-size: 6.8cqw; }
.cv__data {
  margin: 5cqw 0 0; padding: 2.4cqw 5cqw; border-radius: 99px;
  font-weight: 600; font-size: 4cqw; line-height: 1.2;
  background: rgba(255, 255, 255, .14); border: max(1px, .25cqw) solid rgba(255, 255, 255, .35);
}
.cv__msg { margin: 4cqw 0 0; font-size: 3.9cqw; line-height: 1.35; opacity: .93; max-width: 78cqw; overflow-wrap: anywhere; }

.cv__local {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: 21cqw;
  display: grid; gap: .6cqw; font-size: 3.2cqw; color: rgba(255, 255, 255, .88);
  text-shadow: 0 .5cqw 2cqw rgba(0, 0, 0, .5);
}
.cv__local b { font-size: 3.7cqw; color: #fff; }
.cv__fundo { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 33cqw; }
.cv__fundo svg { width: 100%; height: 100%; }
