/* BrasaOT - temas de datas especiais (Dia das Criancas, Natal). Liga sozinho pela data. */

/* ---------- bandeirinhas / luzinhas no topo ---------- */
.tema-topo {
  position: absolute; top: 0; left: 0; right: 0; height: 46px; z-index: 40; pointer-events: none;
  background-repeat: repeat-x; background-size: 180px 46px;
}
.tema-criancas .tema-topo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='46'%3E%3Cpath d='M0 6 Q90 22 180 6' fill='none' stroke='%23fff' stroke-opacity='.7' stroke-width='1.5'/%3E%3Cpath d='M6 8 L30 12 L16 40Z' fill='%23ff4d6d'/%3E%3Cpath d='M42 13 L66 16 L52 44Z' fill='%23ffd23f'/%3E%3Cpath d='M78 15 L102 15 L90 44Z' fill='%233ec1d3'/%3E%3Cpath d='M114 16 L138 13 L128 44Z' fill='%236bd425'/%3E%3Cpath d='M150 12 L174 8 L166 40Z' fill='%23a45cff'/%3E%3C/svg%3E");
}
.tema-natal .tema-topo { height: 34px; background: none; display: flex; justify-content: space-around; }
.tema-luz {
  width: 10px; height: 14px; border-radius: 50% 50% 45% 45%; margin-top: 12px;
  box-shadow: 0 0 10px 3px currentColor; background: currentColor; animation: tema-pisca 1.6s infinite alternate;
}
@keyframes tema-pisca { from { opacity: 1; } to { opacity: .35; } }

/* ---------- baloes ---------- */
.tema-ceu { position: fixed; inset: 0; pointer-events: none; z-index: 45; overflow: hidden; }
.tema-balao {
  position: absolute; bottom: -120px; width: 46px; height: 58px; border-radius: 50% 50% 48% 48%;
  pointer-events: auto; cursor: pointer; animation: tema-subir linear forwards;
  box-shadow: inset -7px -9px 0 rgba(0,0,0,.14);
}
.tema-balao::before { /* brilho */
  content: ""; position: absolute; top: 9px; left: 11px; width: 10px; height: 15px; border-radius: 50%;
  background: rgba(255,255,255,.55); transform: rotate(25deg);
}
.tema-balao::after { /* barbante */
  content: ""; position: absolute; top: 58px; left: 22px; width: 1px; height: 55px; background: rgba(255,255,255,.6);
}
@keyframes tema-subir {
  0% { transform: translate(0, 0) rotate(-4deg); }
  25% { transform: translate(14px, -30vh) rotate(4deg); }
  50% { transform: translate(-10px, -60vh) rotate(-4deg); }
  75% { transform: translate(12px, -90vh) rotate(4deg); }
  100% { transform: translate(0, -130vh) rotate(-2deg); }
}

/* ---------- confete / neve ---------- */
#tema-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 46; }

/* ---------- faixa da promocao no conteudo ---------- */
.tema-faixa {
  position: relative; margin: 0 0 10px; padding: 14px 44px 14px 16px; border-radius: 10px; color: #fff;
  font-family: Verdana, Arial, sans-serif; font-size: 12px; line-height: 1.5; overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.tema-criancas .tema-faixa { background: linear-gradient(110deg, #ff4d6d, #ff9f1c 35%, #3ec1d3 70%, #a45cff); }
.tema-natal .tema-faixa { background: linear-gradient(110deg, #0f5132, #b3001b); }
.tema-faixa h3 { margin: 0 0 4px; font-size: 17px; text-shadow: 0 2px 3px rgba(0,0,0,.35); color: #fff; }
.tema-faixa p { margin: 0 0 8px; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.tema-promo { display: inline-block; background: #fff; color: #c2185b; font-weight: bold; padding: 3px 10px; border-radius: 12px; margin: 2px 0 8px; }
.tema-contagem { font-weight: bold; background: rgba(0,0,0,.25); padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.tema-acoes a {
  display: inline-block; margin: 2px 6px 2px 0; padding: 6px 14px; border-radius: 16px; font-weight: bold;
  text-decoration: none !important; background: #fff; color: #7a1fa2 !important; box-shadow: 0 2px 0 rgba(0,0,0,.2);
}
.tema-acoes a.tema-sec { background: rgba(255,255,255,.2); color: #fff !important; border: 1px solid rgba(255,255,255,.7); }
.tema-fechar {
  position: absolute; top: 6px; right: 8px; border: 0; background: rgba(0,0,0,.25); color: #fff; width: 26px; height: 26px;
  border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 26px; padding: 0;
}
.tema-emoji { position: absolute; right: 44px; bottom: -6px; font-size: 54px; opacity: .9; pointer-events: none; }

/* ---------- selo de bonus nos pacotes (pagina Comprar Coins) ---------- */
.tema-bonus {
  display: block; margin: 4px auto 0; width: fit-content; background: #c2185b; color: #fff; font-size: 11px;
  font-weight: bold; padding: 2px 8px; border-radius: 10px;
}
.tema-riscado { text-decoration: line-through; opacity: .6; font-size: 13px; margin-right: 4px; }

@media (max-width: 700px) {
  .tema-emoji { display: none; }
  .tema-faixa { padding-right: 38px; }
  .tema-balao { width: 34px; height: 43px; }
  .tema-balao::after { top: 43px; left: 16px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .tema-balao, .tema-luz { animation: none !important; }
}

/* ---------- popup da promocao ---------- */
.promo-fundo {
  position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(20, 6, 30, .72); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s;
}
.promo-fundo.aberto { opacity: 1; }
.promo-caixa {
  position: relative; width: min(470px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 18px;
  padding: 26px 22px 20px; text-align: center; color: #fff; font-family: Verdana, Arial, sans-serif;
  background: radial-gradient(circle at 50% -10%, #ffd23f 0, transparent 45%), linear-gradient(160deg, #ff4d6d, #a45cff 55%, #3ec1d3);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255, 255, 255, .35);
  transform: scale(.85) translateY(20px); transition: transform .35s cubic-bezier(.2, 1.4, .4, 1);
}
.promo-fundo.aberto .promo-caixa { transform: none; }
.promo-fechar {
  position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .25); color: #fff; font-size: 20px; line-height: 32px; cursor: pointer;
}
.promo-fechar:hover { background: rgba(0, 0, 0, .45); }
.promo-baloes { font-size: 34px; letter-spacing: 6px; margin-bottom: 2px; }
.promo-baloes span { display: inline-block; animation: promo-flutua 2.4s ease-in-out infinite; }
.promo-baloes span:nth-child(2) { animation-delay: .4s; }
.promo-baloes span:nth-child(3) { animation-delay: .8s; }
@keyframes promo-flutua { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-8px) rotate(6deg); } }
.promo-etiqueta {
  display: inline-block; background: #fff; color: #c2185b; font-weight: bold; font-size: 11px; letter-spacing: 1px;
  padding: 3px 12px; border-radius: 12px; text-transform: uppercase;
}
.promo-titulo { margin: 8px 0 0; font: bold 22px Georgia, "Times New Roman", serif; text-shadow: 0 3px 8px rgba(0, 0, 0, .35); }
.promo-grande {
  margin: 4px 0 0; font: 900 64px/1 Verdana, Arial, sans-serif; color: #ffe066; letter-spacing: -2px;
  text-shadow: 0 4px 0 #c2185b, 0 8px 18px rgba(0, 0, 0, .4); animation: promo-pulsa 1.6s ease-in-out infinite;
}
@keyframes promo-pulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.promo-sub { margin: 6px 0 12px; font-weight: bold; font-size: 14px; text-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.promo-pacotes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.promo-pac { background: rgba(255, 255, 255, .95); color: #4a1a5c; border-radius: 10px; padding: 8px 6px; }
.promo-pac s { color: #999; font-size: 11px; }
.promo-pac b { display: block; font-size: 17px; color: #c2185b; }
.promo-pac small { color: #2e7d32; font-weight: bold; font-size: 13px; }
.promo-tempo { font-size: 12px; margin-bottom: 14px; }
.promo-tempo b { background: rgba(0, 0, 0, .3); padding: 3px 10px; border-radius: 10px; white-space: nowrap; }
.promo-cta {
  display: block; width: 100%; box-sizing: border-box; padding: 13px; border-radius: 12px; font: bold 16px Verdana, Arial, sans-serif;
  color: #4a1a5c !important; text-decoration: none !important; background: linear-gradient(180deg, #fff6b3, #ffd23f);
  box-shadow: 0 5px 0 #c79a00, 0 10px 22px rgba(0, 0, 0, .3); transition: transform .12s;
}
.promo-cta:hover { transform: translateY(-2px); }
.promo-depois { margin-top: 10px; background: none; border: 0; color: #fff; opacity: .85; text-decoration: underline; cursor: pointer; font-size: 12px; }
.promo-rodape { margin-top: 8px; font-size: 10px; opacity: .85; }
@media (max-width: 420px) { .promo-grande { font-size: 52px; } .promo-titulo { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) {
  .promo-baloes span, .promo-grande { animation: none !important; }
  .promo-fundo, .promo-caixa { transition: none !important; }
}
