/* Identidade do convite: fundo do mar em tons pastel (rosa, lilás, água e amarelo), letras arredondadas. */
:root {
  --rosa: #e8479a;
  --rosa-escuro: #c42f7d;
  --rosa-claro: #ffe3f1;
  --lilas: #8a5cf0;
  --lilas-claro: #efe7ff;
  --agua: #57c6ee;
  --agua-claro: #dff5ff;
  --amarelo: #ffd23f;
  --amarelo-claro: #fff6cf;
  --verde: #2f9e6e;
  --texto: #41305e;
  --suave: #7b6a95;
  --borda: #eadcf6;
  --cartao: #ffffffeb;
  --sombra: 0 10px 30px -12px #8a5cf055, 0 2px 6px #8a5cf01a;
  --raio: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.55 "Nunito", system-ui, sans-serif;
  color: var(--texto);
  background: linear-gradient(170deg, #d9f3ff 0%, #f1e6ff 40%, #ffe4f2 75%, #fff3d9 100%) fixed;
  background-color: #f1e6ff;
}
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.15; margin: 0 0 .5em; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bolhas decorativas subindo ao fundo */
.bolhas { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.bolhas i {
  position: absolute; bottom: -80px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0 12%, #ffffff66 22%, #c9ecff33 60%, #e9c8ff55 100%);
  border: 1px solid #ffffff99; box-shadow: inset -4px -6px 12px #d6b8ff44;
  animation: subir linear infinite;
}
.bolhas i:nth-child(1) { left: 4%; width: 34px; height: 34px; animation-duration: 17s; }
.bolhas i:nth-child(2) { left: 18%; width: 18px; height: 18px; animation-duration: 12s; animation-delay: -6s; }
.bolhas i:nth-child(3) { left: 33%; width: 46px; height: 46px; animation-duration: 22s; animation-delay: -3s; }
.bolhas i:nth-child(4) { left: 52%; width: 22px; height: 22px; animation-duration: 15s; animation-delay: -9s; }
.bolhas i:nth-child(5) { left: 67%; width: 38px; height: 38px; animation-duration: 19s; animation-delay: -12s; }
.bolhas i:nth-child(6) { left: 80%; width: 16px; height: 16px; animation-duration: 11s; animation-delay: -2s; }
.bolhas i:nth-child(7) { left: 90%; width: 52px; height: 52px; animation-duration: 25s; animation-delay: -15s; }
.bolhas i:nth-child(8) { left: 44%; width: 12px; height: 12px; animation-duration: 10s; animation-delay: -5s; }
@keyframes subir { to { transform: translateY(-115vh) translateX(20px); } }
@media (prefers-reduced-motion: reduce) { .bolhas i { animation: none; display: none; } }

/* ---- Página do convidado ---- */
.hero { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 16px 16px 0; }
.hero img {
  display: block; width: 100%; height: auto; border-radius: 28px;
  box-shadow: 0 18px 40px -18px #8a5cf088; border: 4px solid #fff;
}
.pagina { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; padding: 0 16px 24px; display: grid; gap: 18px; }
.pagina > .cartao:first-child { margin-top: -28px; }
.cartao {
  background: var(--cartao); backdrop-filter: blur(6px);
  border: 2px solid #fff; border-radius: var(--raio); box-shadow: var(--sombra);
  padding: 24px 22px;
}
.mensagem { text-align: center; position: relative; }
.mensagem h1 { font-size: clamp(28px, 7vw, 38px); color: var(--rosa); text-shadow: 0 2px 0 #fff; }
.mensagem p { margin: 0 0 12px; font-size: 17px; }
.mensagem .assinatura { font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--lilas); margin: 18px 0 0; font-size: 19px; }
.cartao h2 { font-size: 26px; color: var(--lilas); text-align: center; }

.info { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.info li { display: flex; gap: 14px; align-items: center; }
.info b { display: block; font-size: 18px; font-weight: 800; }
.info small { color: var(--suave); font-size: 15px; }
.ico { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; }
.ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico.rosa { background: var(--rosa-claro); color: var(--rosa); }
.ico.lilas { background: var(--lilas-claro); color: var(--lilas); }
.ico.agua { background: var(--agua-claro); color: #1e94c2; }
.como-chegar { font-weight: 800; margin: 0 0 10px; text-align: center; }
.mapas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mapa {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; border-radius: 18px; background: #fff; border: 2px solid var(--borda);
  text-decoration: none; color: var(--texto); font-weight: 800; transition: transform .15s, border-color .15s;
}
.mapa:hover, .mapa:focus-visible { transform: translateY(-2px); border-color: var(--agua); }
.mapa svg { width: 34px; height: 34px; flex: none; }
.mapa span { white-space: nowrap; }

/* RSVP */
.sarah {
  display: block; width: 116px; height: 116px; margin: -6px auto 10px; border-radius: 50%;
  object-fit: cover; object-position: 50% 4%; background: #fff;
  border: 5px solid #fff; box-shadow: 0 0 0 4px var(--amarelo), 0 12px 24px -10px #8a5cf088;
}
.dica { text-align: center; color: var(--suave); margin: 0 0 16px; }
.aviso { color: var(--rosa-escuro); font-weight: 700; text-align: center; margin: 12px 0 0; min-height: 1em; }
.aviso:empty { display: none; }
.busca { display: flex; gap: 10px; }
.busca input { flex: 1; min-width: 0; }
input[type=text], input[type=password], select {
  padding: 13px 16px; border-radius: 16px; border: 2px solid var(--borda); background: #fff; font-size: 17px; outline: none;
}
input:focus, select:focus { border-color: var(--lilas); box-shadow: 0 0 0 4px var(--lilas-claro); }

.botao {
  border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 800; font-size: 17px; cursor: pointer;
  transition: transform .12s, filter .12s, background .12s;
}
.botao:active { transform: scale(.97); }
.botao:disabled { opacity: .6; cursor: default; }
.botao.principal { background: linear-gradient(135deg, #f35fab, var(--rosa-escuro)); color: #fff; box-shadow: 0 8px 18px -8px var(--rosa); }
.botao.principal:hover { filter: brightness(1.06); }
.botao.secundario { background: #fff; color: var(--lilas); border: 2px solid var(--lilas-claro); }
.botao.secundario:hover { background: var(--lilas-claro); }
.botao.grande { font-size: 19px; padding: 16px 22px; }
.link { background: none; border: 0; color: var(--lilas); font-weight: 700; text-decoration: underline; cursor: pointer; display: block; margin: 16px auto 0; padding: 6px; }

.opcoes { display: grid; gap: 10px; }
.opcao { text-align: left; padding: 14px 18px; border-radius: 18px; border: 2px solid var(--borda); background: #fff; cursor: pointer; font-weight: 700; }
.opcao:hover { border-color: var(--rosa); }

.selo { border-radius: 16px; padding: 12px 14px; font-weight: 700; text-align: center; margin: 0 0 14px; }
.selo.sim { background: #e3f7ec; color: var(--verde); }
.selo.nao { background: var(--amarelo-claro); color: #8a6a00; }

.pessoas { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.pessoa { background: #fff; border: 2px solid var(--borda); border-radius: 20px; padding: 10px; display: grid; gap: 8px; }
.linha-nome { display: flex; gap: 8px; }
.linha-nome input { flex: 1; min-width: 0; padding: 10px 12px; font-weight: 700; }
.remover { flex: none; width: 46px; border-radius: 14px; border: 0; background: var(--rosa-claro); color: var(--rosa-escuro); font-size: 18px; cursor: pointer; }
.remover:hover { background: #ffd0e7; }
.idade { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #f7f2ff; border-radius: 14px; padding: 4px; }
.idade button { border: 0; border-radius: 11px; padding: 8px 6px; background: transparent; color: var(--suave); font-weight: 800; cursor: pointer; }
.idade button.ativo { background: var(--lilas); color: #fff; box-shadow: 0 4px 10px -4px var(--lilas); }
.idade button[data-v="<5"].ativo { background: var(--agua); box-shadow: 0 4px 10px -4px var(--agua); }
.vazio { text-align: center; color: var(--suave); padding: 12px; }
.adicionar { width: 100%; background: var(--agua-claro); color: #1678a0; border: 2px dashed #9fdcf3; }
.adicionar:hover { background: #cdeefc; }
.total { text-align: center; color: var(--suave); font-weight: 700; margin: 10px 0 0; }
.acoes { display: grid; gap: 10px; margin-top: 16px; }

.feito { text-align: center; }
.feito h3 { font-size: 26px; color: var(--rosa); }
.grande-emoji { font-size: 40px; margin: 0 0 4px; }
.confirmados { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
.confirmados li { background: #fff; border-radius: 14px; padding: 8px 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feito + .botao { display: block; margin: 18px auto 0; }
.chip { font-size: 13px; font-weight: 800; border-radius: 999px; padding: 2px 10px; background: var(--lilas-claro); color: var(--lilas); white-space: nowrap; }
.chip.crianca { background: var(--agua-claro); color: #1678a0; }

.rodape { position: relative; z-index: 1; text-align: center; color: var(--suave); font-size: 14px; padding: 8px 16px 32px; }

@media (min-width: 560px) {
  .pessoa { grid-template-columns: 1fr 230px; align-items: center; }
  .acoes { grid-template-columns: 1.4fr 1fr; }
}
@media (max-width: 420px) {
  .busca { flex-direction: column; }
  .cartao { padding: 20px 16px; }
}
