/* ==========================================================================
   ROLETA PLUGTOOLS - COMPONENTS (GOOGLE GEMINI V2 THEME)
   ========================================================================== */
 
 /* --------------------------------------------------------------------------
    CELEBRATION OVERLAY (GOOGLE DIALOG PATTERN)
    -------------------------------------------------------------------------- */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 15, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.celebration-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.celebration-watermark {
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 360px;
  height: 360px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 1;
}

/* Celebration Card Modal */
.celebration-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 520px;
  background: linear-gradient(160deg, #161e33 0%, #0d1222 100%);
  border: 1px solid rgba(150, 157, 255, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(72, 147, 252, 0.2);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.celebration-overlay.active .celebration-card {
  transform: scale(1) translateY(0);
}

.celebration-pill-tag {
  margin-bottom: 16px;
}

.celebration-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.2;
}

.celebration-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

/* CONTAINER LIMPO PARA A IMAGEM DO PRÊMIO NO MODAL - 100% VISÍVEL */
.celebration-prize-showcase {
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #080d18;
  border: 1px solid color-mix(in srgb, var(--white) 10%, transparent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebration-prize-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.celebration-prize-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.celebration-prize-details {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 400px;
}

/* Botão WhatsApp de Resgate */
.btn-whatsapp-claim {
  width: 100%;
  max-width: 380px;
  height: 56px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-smooth);
  margin-bottom: 12px;
}

.btn-whatsapp-claim:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

.btn-whatsapp-claim svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.btn-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 6px 14px;
  transition: color var(--transition-smooth);
}

.btn-modal-close:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   FLOATING AUDIO CONTROLLER
   -------------------------------------------------------------------------- */
.floating-audio-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(18, 24, 41, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-smooth);
}

.floating-audio-btn:hover {
  transform: scale(1.08);
  border-color: var(--border-hover);
}

.floating-audio-btn.muted {
  color: var(--text-muted);
}

.floating-audio-btn svg {
  width: 22px;
  height: 22px;
}

/* Ícone e texto de "som ativo" / "mudo" nos dois botões de áudio: o JS só alterna a classe .muted */
.audio-off,
.muted .audio-on {
  display: none;
}

.muted .audio-off {
  display: inline;
}
