/* ---------- EMOJI DE PRESENTE FLUTUANDO COM PISCA-PISCA COLORIDO ---------- */

/* Contêiner principal para os presentes flutuantes */
.gift-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

/* Estilo base para o emoji de presente */
.gift {
  position: absolute;
  font-size: 3em;
  /* Aplica a animação de flutuação e a animação de pisca-pisca */
  animation: floatGift linear forwards, colorBlink 3s infinite;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
  cursor: pointer;
  user-select: none;
  pointer-events: auto; /* Permite clique */
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.gift:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.7));
}

/* Durações variadas para naturalidade na flutuação */
.gift { animation-duration: 18s, 3s; } /* floatGift 18s, colorBlink 3s */
.gift:nth-child(2n) { animation-duration: 22s, 3s; }
.gift:nth-child(3n) { animation-duration: 15s, 3s; }
.gift:nth-child(4n) { animation-duration: 20s, 3s; }

/* Animação principal: sobe da parte inferior para o topo (Flutuação) */
@keyframes floatGift {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 1;
    transform: translateY(85vh) rotate(8deg);
  }
  85% {
    opacity: 1;
    transform: translateY(15vh) rotate(-8deg);
  }
  100% {
    transform: translateY(-15vh) rotate(0deg);
    opacity: 0;
  }
}

/* Animação de Pisca-Pisca Colorido */
@keyframes colorBlink {
  0%   { color: #C41F3B; filter: drop-shadow(0 0 10px #C41F3B); } /* Vermelho */
  25%  { color: #157437; filter: drop-shadow(0 0 10px #157437); } /* Verde */
  50%  { color: #FFD700; filter: drop-shadow(0 0 10px #FFD700); } /* Amarelo/Dourado */
  75%  { color: #1E90FF; filter: drop-shadow(0 0 10px #1E90FF); } /* Azul */
  100% { color: #C41F3B; filter: drop-shadow(0 0 10px #C41F3B); }
}

/* Efeito ao clicar: some suavemente */
.gift.clicked {
  opacity: 0 !important;
  transform: scale(0.5) !important;
  transition: opacity 0.4s ease, transform 0.4s ease !important;
  pointer-events: none;
}

/* --- O restante do CSS original (não relacionado aos emojis flutuantes) é mantido abaixo --- */

/* Responsivo */
@media (max-width: 768px) {
  .gift {
    font-size: 2.2em;
  }
}

/* Mini presentes (se for usado no JS) */
.gift.mini {
  font-size: 1.8em;
  opacity: 0.7;
  animation-duration: 14s, 3s;
}

/* ---------- ANIMAÇÕES DINÂMICAS (partículas e texto) - Mantidas, mas não afetam os emojis flutuantes ---------- */
@keyframes particleFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 0px), -80px) scale(0);
    opacity: 0;
  }
}

@keyframes floatUp {
  0% {
    transform: translate(-50%, 0);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50px);
    opacity: 0;
  }
}

/* ---------- CORES E ESTILOS GERAIS ---------- */
:root {
  --vermelho-natal: #C41F3B;
  --verde-natal: #157437;
  --dourado: #b10824; /* letra de titulo */
  --branco: #ffffff;
  --cinza-escuro: #157437;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--cinza-escuro);
  color: var(--branco);
  text-align: center;
}

.content-section {
  padding: 20px;
  background: url('https://i.imgur.com/EXAMPLE_NATAL_BG.jpg') no-repeat center center / cover; /* Troque por uma URL real de fundo natalino */
  color: var(--branco);
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background-color: rgba(42, 45, 48, 0.9);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.content-section h1 {
  font-size: 2em;
  color: var(--dourado);
  margin-bottom: 20px;
  display: inline-block;
  vertical-align: middle;
}

.content-section img.logo {
  width: 60px;
  height: 60px;
  vertical-align: middle;
  margin-left: 10px;
}

.content-section h2 {
  font-size: 1.5em;
  color: var(--dourado);
  margin: 15px 0 10px;
}

.content-section p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.content-section ul {
  list-style-type: none;
  padding: 0;
  text-align: left;
  margin: 0 auto;
  max-width: 700px;
}

.content-section ul li {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 10px;
}

.content-section ul li strong {
  color: var(--dourado);
}

.content-section a {
  color: var(--dourado);
  text-decoration: none;
}

.content-section a:hover {
  text-decoration: underline;
}

code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

/* ---------- REWARDS ---------- */
.rewards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 15px;
}

.reward-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 12px;
  width: 260px;
  text-align: center;
}

.reward-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
  object-fit: contain;
}

.reward-item .cost {
  font-weight: 600;
  color: var(--dourado);
  margin-bottom: 4px;
}

.reward-item .desc {
  font-size: 0.95em;
}

/* ---------- ICONS ---------- */
.natal-icon {
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 6px;
  object-fit: contain;
  background-color: rgba(0, 0, 0, 0.2);
}

.natal-icon.insignia {
  width: 45px;
  height: 80px;
}

.natal-icon.background {
  width: 80px;
  height: 45px;
}

/* As animações particleFloat e floatUp foram mantidas no bloco anterior para evitar duplicação */
