@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Baloo+2:wght@600;700&display=swap');

:root {
  --rosa: #ff80ab;
  --azul: #81d4fa;
  --amarelo: #fff176;
  --verde: #a5d6a7;
  --roxo: #ce93d8;
  --branco: #fff;
  --sombra: rgba(0, 0, 0, 0.15);
}

/* ==================== FUNDO ANIMADO ==================== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ffecd2, #fcb69f, #f6d365, #fda085);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  z-index: 0;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==================== BALÕES ANIMADOS ==================== */
.balao {
  position: absolute;
  bottom: -150px;
  width: 40px;
  height: 55px;
  border-radius: 50%;
  opacity: 0.85;
  animation: flutuar 12s linear infinite;
  z-index: 0;
}

.balao::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  width: 2px;
  height: 15px;
  background: rgba(0,0,0,0.2);
  transform: translateX(-50%);
}

@keyframes flutuar {
  0% { transform: translateY(0) rotate(0deg); opacity: 0.9; }
  50% { opacity: 1; transform: translateY(-50vh) rotate(3deg); }
  100% { transform: translateY(-100vh) rotate(-3deg); opacity: 0; }
}

.b1 { left: 10%; background: var(--rosa); animation-delay: 0s; animation-duration: 14s; }
.b2 { left: 25%; background: var(--azul); animation-delay: 2s; animation-duration: 13s; }
.b3 { left: 40%; background: var(--amarelo); animation-delay: 4s; animation-duration: 15s; }
.b4 { left: 60%; background: var(--verde); animation-delay: 1s; animation-duration: 16s; }
.b5 { left: 75%; background: var(--roxo); animation-delay: 3s; animation-duration: 12s; }
.b6 { left: 85%; background: var(--rosa); animation-delay: 5s; animation-duration: 18s; }

/* ==================== TELA INICIAL ==================== */
#perguntaSom {
  background: rgba(255, 255, 255, 0.9);
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  transition: opacity 1s ease;
  position: relative;
  z-index: 2;
}
#perguntaSom.fadeOut { opacity: 0; pointer-events: none; }

.boasVindas {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(26px, 6vw, 36px);
  color: #ff5e9f;
  text-shadow: 0 0 8px rgba(255, 192, 203, 0.6);
  margin-bottom: 25px;
  animation: aparecer 1.2s ease;
}
@keyframes aparecer {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== COMPONENTES ==================== */
button {
  background: linear-gradient(135deg, #ff80ab, #ffb74d);
  color: var(--branco);
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-family: 'Baloo 2', cursive;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--sombra);
  font-size: clamp(15px, 3.5vw, 17px);
  transition: all 0.3s ease;
}
button:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(255, 182, 193, 0.6);
}

input[type="text"] {
  border: 2px solid #ffb6c1;
  border-radius: 25px;
  padding: 12px;
  width: 80%;
  max-width: 280px;
  text-align: center;
  font-size: 16px;
  margin-bottom: 15px;
  outline: none;
  transition: 0.3s;
  background-color: #fffafc;
}
input[type="text"]:focus {
  border-color: #ff80ab;
  box-shadow: 0 0 10px rgba(255, 182, 193, 0.4);
}

/* ==================== CONVITE ==================== */
.convite {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px) saturate(150%) brightness(110%);
  -webkit-backdrop-filter: blur(10px) saturate(150%) brightness(110%);
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  padding: 35px 25px;
  width: min(92%, 480px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  text-align: center;
  margin: 50px auto;
  animation: fadeIn 1s ease;
  position: relative;
  overflow: hidden;
  z-index: 3;
}

/* brilho animado */
.convite::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: brilho 6s infinite;
}

@keyframes brilho {
  0% { left: -150%; }
  60% { left: 150%; }
  100% { left: 150%; }
}

.convite::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 6px;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, #ff80ab, #81d4fa, #fff176, #a5d6a7, #ce93d8);
  border-radius: 25px 25px 0 0;
  opacity: 0.8;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.foto-topo {
  width: clamp(130px, 35vw, 200px);
  height: clamp(130px, 35vw, 200px);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(255, 182, 193, 0.6);
  margin-bottom: 20px;
  cursor: pointer;
  border: 5px solid #fff;
  transition: transform 0.3s;
}
.foto-topo:hover { transform: scale(1.08) rotate(2deg); }

h1 {
  color: #ff5e9f;
  font-family: 'Baloo 2', cursive;
  font-size: clamp(24px, 5vw, 30px);
  margin: 10px 0;
}

.nomeLisete {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 700;
  color: #ff4081;
  margin-bottom: 12px;
}

/* ==================== TEXTOS ==================== */
.info, .mensagem {
  font-size: clamp(15px, 3.8vw, 17px);
  color: #555;
  margin: 6px 0;
}
.mensagem {
  font-style: italic;
  color: #666;
}

/* ==================== NOMES CONFIRMADOS ==================== */
#nomesConfirmados {
  font-family: 'Baloo 2', cursive;
  font-weight: bold;
  font-size: clamp(18px, 5vw, 22px);
  color: #ff4081;
  margin-top: 25px;
  cursor: pointer;
  text-shadow: 0 0 20px rgba(255,105,180,0.6);
  transition: all 0.4s ease;
  position: relative;
}

#nomesConfirmados:hover { transform: scale(1.06) rotate(-1deg); }

#nomesConfirmados::after {
  content: "✨";
  position: absolute;
  right: -20px;
  top: 0;
  animation: brilhoNome 1.5s infinite;
}
@keyframes brilhoNome {
  0%,100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* contador */
#contador {
  margin-top: 18px;
  font-size: clamp(16px, 4vw, 20px);
  color: #ff4081;
  font-weight: bold;
  font-family: 'Baloo 2', cursive;
}

/* ==================== MODAL ==================== */
.modal-bg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal-content {
  background: var(--branco);
  border-radius: 20px;
  padding: 25px;
  max-width: 400px;
  width: 85%;
  max-height: 70vh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 0 25px rgba(255,182,193,0.4);
  animation: fadeInModal 0.4s ease;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.modal-content h2 {
  color: #ff5e9f;
  margin-bottom: 15px;
  font-family: 'Baloo 2', cursive;
}
.modal-content ul {
  list-style: none;
  padding: 0;
}
.modal-content li {
  background: #fff4fa;
  margin: 8px 0;
  border-radius: 12px;
  padding: 10px;
  font-weight: 600;
  color: #c2185b;
  font-family: 'Poppins', sans-serif;
  transition: 0.3s;
}
.modal-content li:hover {
  background: #ffe6f0;
  transform: scale(1.03);
}

/* ==================== IMAGEM AMPLIADA ==================== */
#imgAmpliada {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#imgAmpliada img {
  max-width: 90%; max-height: 85%;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255,255,255,0.4);
  animation: zoom 0.4s ease;
}
#imgAmpliada span {
  position: absolute;
  top: 20px; right: 35px;
  color: #fff; font-size: 32px;
  cursor: pointer; font-weight: bold;
}
@keyframes zoom {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
