* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: "Segoe UI", Arial, sans-serif;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Caixa que acompanha exatamente o retângulo do vídeo exibido */
#camada-botoes {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}

.bt-flutuante {
  position: absolute;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  border-radius: 12px;
}

.bt-flutuante:active {
  opacity: 0.7;
}

/* Modo de edição: contorna as áreas clicáveis e mostra as coordenadas */
body.modo-edicao .bt-flutuante {
  background: rgba(255, 0, 0, 0.25);
  outline: 2px dashed rgba(255, 255, 255, 0.9);
}

body.modo-edicao .bt-flutuante::after {
  content: attr(data-info);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 4px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 5;
}

/* Controle de som */
#btn-silenciar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
}

/* ---------- Tela inicial (tema fadinha Tinkerbell) ---------- */
#tela-inicio {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 82% 8%, rgba(118, 104, 255, 0.35), transparent 60%),
    radial-gradient(900px 550px at 10% 92%, rgba(255, 106, 190, 0.30), transparent 60%),
    radial-gradient(ellipse at center, rgba(16, 8, 42, 0.62) 0%, rgba(5, 3, 18, 0.92) 100%);
  backdrop-filter: blur(10px) brightness(0.8);
  -webkit-backdrop-filter: blur(10px) brightness(0.8);
}

#tela-inicio.oculta {
  display: none;
}

.ceu-estrelas,
.fada-poeira {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.estrela {
  position: absolute;
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 18px rgba(180, 220, 255, 0.6);
  animation: piscar 3s infinite ease-in-out;
}

@keyframes piscar {
  0%, 100% { opacity: 0.12; transform: scale(0.6) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

.fada-poeira i {
  position: absolute;
  bottom: -20px;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  animation: subir linear infinite;
}

@keyframes subir {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.9; }
  85% { opacity: 0.6; }
  100% { transform: translateY(-110vh); opacity: 0; }
}

.balao {
  position: absolute;
  opacity: 0.85;
  animation: flutuar 6s ease-in-out infinite;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

@keyframes flutuar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

.inicio-conteudo {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.inicio-fada {
  font-size: 58px;
  line-height: 1;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(255, 224, 170, 0.95));
  animation: flutuar 4s ease-in-out infinite;
}

.inicio-chamada {
  color: #f4e4ff;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.55);
}

.inicio-nome {
  font-family: "Great Vibes", "Dancing Script", "Segoe Script", cursive;
  font-size: clamp(54px, 12vw, 92px);
  line-height: 1.05;
  color: #fff;
  margin: 8px 0;
  text-shadow:
    0 0 16px rgba(255, 214, 255, 0.9),
    0 0 44px rgba(255, 150, 220, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.4);
}

.inicio-festa {
  color: #ffd9ec;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 30px;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#btn-iniciar {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, #ff8fc4, #b06ad4);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  padding: 17px 38px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: transform 0.15s ease;
  animation: pulsar 2.4s infinite ease-in-out;
}

#btn-iniciar:hover {
  transform: translateY(-2px) scale(1.04);
}

@keyframes pulsar {
  0%, 100% {
    box-shadow: 0 0 18px rgba(255, 120, 200, 0.55), 0 0 42px rgba(255, 200, 120, 0.30);
  }
  50% {
    box-shadow: 0 0 32px rgba(255, 120, 200, 0.9), 0 0 72px rgba(255, 200, 120, 0.5);
  }
}

.inicio-nota {
  margin-top: 28px;
  display: inline-block;
  color: #ffe9f6;
  font-size: 14.5px;
  letter-spacing: 0.5px;
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.inicio-nota .nota-data {
  display: block;
  margin-top: 3px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffd166;
  text-shadow: 0 0 12px rgba(255, 209, 102, 0.7);
}

/* ---------- Aba (modal) de sugestão de presente ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-caixa {
  position: relative;
  width: min(440px, 100%);
  max-height: 85vh;
  overflow: auto;
  background: linear-gradient(160deg, #fff6fb 0%, #ffe9f5 100%);
  border-radius: 20px;
  padding: 32px 24px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.modal-fechar {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(190, 80, 150, 0.12);
  color: #a34d84;
  font-size: 16px;
  cursor: pointer;
}

.modal-fechar:hover {
  background: rgba(190, 80, 150, 0.25);
}

.modal-caixa h2 {
  color: #a34d84;
  font-size: 24px;
  margin-bottom: 4px;
}

.modal-caixa p {
  color: #c97fb0;
  font-size: 14px;
  margin-bottom: 20px;
}

.modal-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(190, 80, 150, 0.08);
}

.modal-item-icone {
  font-size: 26px;
  line-height: 1.2;
}

.modal-item-corpo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-item-corpo strong {
  color: #8c3a70;
  font-size: 15px;
}

.modal-item-corpo span {
  color: #6b5566;
  font-size: 14px;
}

#modal-whatsapp {
  margin-top: 18px;
  width: 100%;
  border: none;
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease;
}

#modal-whatsapp:hover {
  transform: translateY(-2px);
}