:root {
  --rosa: #ff6fa5;
  --rosa-escuro: #e0518a;
  --roxo: #8a5fd6;
  --amarelo: #ffcf5c;
  --texto: #3a2e4d;
  --branco: #fffaf5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #ffdce8 0%, #e8d9ff 50%, #ffe9c2 100%);
  background-attachment: fixed;
  color: var(--texto);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

.container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.tela {
  display: none;
  width: 100%;
  justify-content: center;
  animation: aparecer .5s ease;
}

.tela.ativa {
  display: flex;
}

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

.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border-radius: 24px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(120, 60, 130, 0.25);
}

.titulo-especial {
  font-family: 'Pacifico', cursive;
  font-size: 2rem;
  color: var(--rosa-escuro);
  margin-bottom: 12px;
}

h2 {
  color: var(--roxo);
  margin-bottom: 12px;
}

p {
  line-height: 1.6;
  font-size: 1.05rem;
}

.pergunta {
  font-weight: 600;
  color: var(--roxo);
  margin-top: 20px;
}

.btn {
  margin-top: 24px;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rosa), var(--roxo));
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 20px rgba(224, 81, 138, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(224, 81, 138, 0.45);
}

.btn-secundario {
  background: #f1f1f1;
  color: var(--texto);
  box-shadow: none;
}

.opcoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.opcao {
  padding: 14px;
  border-radius: 14px;
  border: 2px solid #f0d9ea;
  background: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all .15s ease;
}

.opcao:hover {
  border-color: var(--rosa);
  background: #fff1f6;
}

.caixas {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.caixa {
  font-size: 3.5rem;
  background: linear-gradient(160deg, #fff, #ffe9f2);
  border: 3px solid var(--rosa);
  border-radius: 20px;
  width: 110px;
  height: 110px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 10px 20px rgba(224, 81, 138, 0.2);
}

.caixa:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 16px 26px rgba(224, 81, 138, 0.3);
}

.caixa:disabled {
  opacity: .4;
  cursor: not-allowed;
  transform: none;
}

.final {
  border: 3px solid var(--amarelo);
}

.assinatura {
  margin-top: 20px;
  font-family: 'Pacifico', cursive;
  color: var(--roxo);
  font-size: 1.2rem;
}

/* Modais */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(58, 46, 77, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 10;
  padding: 20px;
}

.modal-overlay.ativo {
  display: flex;
}

.modal {
  background: white;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  animation: aparecer .3s ease;
}

.modal-botoes {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.valor {
  font-size: 2.6rem;
  color: var(--rosa-escuro);
  margin: 10px 0;
}

.detalhe {
  color: #7a6b8f;
  font-size: 0.95rem;
}

/* Confete de fundo simples (bolinhas flutuantes) */
.fundo-confete {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.fundo-confete span {
  position: absolute;
  top: -10px;
  border-radius: 50%;
  opacity: 0.6;
  animation: cair linear infinite;
}

@keyframes cair {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
  }
  .caixa {
    width: 90px;
    height: 90px;
    font-size: 2.8rem;
  }
}
