/* Roleta de desconto — visual premium. Estilos carregados no <head> (index.html)
   para sobreviver à reconstrução do body pelo Vue. */
.tui-roleta-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(10, 10, 16, 0.82);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  animation: tuiRoletaFade 0.25s ease-out;
}
.tui-roleta-box {
  position: relative;
  background: #fff;
  border-radius: 22px;
  padding: 22px 18px 22px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  animation: tuiRoletaPop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.tui-roleta-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #e02424, #f5b40a, #e02424);
}
.tui-roleta-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: #f2f3f5;
  color: #5f6368;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.tui-roleta-close:hover {
  background: #e6e8eb;
  color: #1d1d1f;
}
.tui-roleta-badge {
  display: inline-block;
  background: #fff4d6;
  color: #8a5a00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.tui-roleta-title {
  margin: 0 0 4px;
  font-size: 25px;
  font-weight: 900;
  color: #1d1d1f;
  letter-spacing: -0.5px;
}
.tui-roleta-sub {
  margin: 0 0 14px;
  font-size: 14px;
  color: #5f6368;
  line-height: 1.4;
}
.tui-roleta-sub strong {
  color: #e02424;
}
.tui-roleta-wheel-wrap {
  position: relative;
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
}
.tui-roleta-pointer {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 22px solid #e02424;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
}
#tui-roleta-canvas {
  display: block;
  width: 100%;
  cursor: pointer;
}
.tui-roleta-hub {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 30% 30%, #ffffff, #f1f1f1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), inset 0 0 0 4px #e02424;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  color: #e02424;
  letter-spacing: 0.5px;
  cursor: pointer;
}
.tui-roleta-hub:disabled {
  cursor: default;
}
.tui-roleta-spin-btn {
  margin-top: 18px;
  width: 100%;
  background: linear-gradient(180deg, #f03232, #c81a1a);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 15px 22px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 1px;
  box-shadow: 0 10px 22px rgba(224, 36, 36, 0.35);
  animation: tuiRoletaPulse 1.6s ease-in-out infinite;
}
.tui-roleta-spin-btn.is-spinning {
  animation: none;
  opacity: 0.6;
  cursor: default;
}
.tui-roleta-result {
  margin-top: 16px;
  animation: tuiRoletaFade 0.4s ease-out;
}
.tui-roleta-won {
  font-size: 14px;
  font-weight: 700;
  color: #5f6368;
}
.tui-roleta-won span {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: #1a9e57;
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.tui-roleta-note {
  font-size: 13px;
  color: #6b7280;
  margin: 6px 0 14px;
}
.tui-roleta-cta {
  background: linear-gradient(180deg, #25b868, #17914a);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 15px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  letter-spacing: 1px;
  box-shadow: 0 10px 22px rgba(34, 164, 93, 0.3);
}
.tui-roleta-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.tui-roleta-confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 13px;
  border-radius: 2px;
  animation: tuiConfettiFall linear forwards;
}
@keyframes tuiRoletaFade {
  from {
    opacity: 0;
  }
}
@keyframes tuiRoletaPop {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(14px);
  }
}
@keyframes tuiRoletaPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 22px rgba(224, 36, 36, 0.35);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 12px 28px rgba(224, 36, 36, 0.5);
  }
}
@keyframes tuiConfettiFall {
  to {
    transform: translateY(460px) rotate(720deg);
    opacity: 0.9;
  }
}
