html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}
body {
  font-family: 'Arial', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: black;
  overflow: hidden;
  position: relative;
}
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('images/back.webp') no-repeat center center;
  background-size: cover;
  z-index: -1;
}
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: left;
  z-index: 2;
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 1080px;
  height: 100%;
  max-height: 1900px;
  padding-bottom: 90px;
}
img {
  display: block;
  margin: 100px auto 20px auto;
  width: 60%;
  max-width: 400px;
  height: auto;
}
.slot-machine {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
  justify-content: center;
}
.reel {
  width: 100px;
  height: 300px;
  border: 5px solid gold;
  border-radius: 10px;
  background-color: darkred;
  box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.3), 0 8px 25px rgba(0, 0, 0, 0.7);
  height: 300px;
  overflow: hidden;
  position: relative;
}
.reel-content {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 1s ease-out;
}
.shake {
  animation: tremor 0.15s ease-in-out infinite;
}
@keyframes tremor {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}
.symbol {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: left;
}
.bet-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}
.bet-controls button {
  width: 30px;
  height: 30px;
  font-size: 1em;
  border-radius: 50%;
}
.spin-button {
  position: relative;
  width: 75px;
  height: 75px;
  font-size: 1.2em;
  background-color: red;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 5px 0 darkred;
  transition: all 0.1s ease-in-out;
  overflow: visible;
  z-index: 10;
}
.spin-button:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 darkred;
}
.particle {
  position: absolute;
  width: 25px;
  height: 25px;
  background: radial-gradient(circle, yellow 0%, orange 60%, red 100%);
  border-radius: 50%;
  animation: fly 0.8s ease-out forwards;
  opacity: 0.9;
  pointer-events: none;
  box-shadow: 0 0 15px rgba(255,255,0,0.9);
  z-index: 20;
}
@keyframes fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% {
    transform: translate(calc(-300px + 600px * var(--x)), calc(-300px + 600px * var(--y))) scale(0.3);
    opacity: 0;
  }
}
.credits, .bet {
  font-size: 0.9em;
  color: white;
  text-shadow: 1px 1px 2px #000;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99;
}
.modal-content {
  background: #111;
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 350px;
  box-shadow: 0 0 25px rgba(255, 255, 0, 0.5);
}
.modal-content button {
  margin: 10px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
}
.watch-ad {
  background-color: gold;
  color: black;
}
.close-modal {
  background-color: darkred;
  color: white;
}
.winning {
  border: 4px solid white;
  box-shadow: 0 0 20px white, 0 0 30px #fff;
  animation: bounce 0.6s ease infinite;
  border-radius: 8px;
}

@keyframes bounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}
.symbol.winning {
  animation: zoom 0.6s ease-in-out infinite alternate;
  box-shadow: 0 0 20px 5px white;
  border: 3px solid white;
  border-radius: 10px;
  z-index: 2;
  animation: popZoom 0.6s ease-in-out infinite alternate;
  box-shadow: 0 0 20px 5px white;
  border: 3px solid white;
  border-radius: 10px;
  z-index: 2;
  position: relative;
}

@keyframes zoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.15);
  }
}
@keyframes popZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.25); /* Zoom mais forte para "sair do rolo" */
  }
}
.reel {
  overflow: hidden; /* Impede que a imagem ultrapasse o rolo */
  position: relative;
}

.symbol-wrapper {
  position: relative;
  display: flex;
  width: 100px;
  height: 100px;
  justify-content: center;
  align-items: center;
}

.symbol {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.symbol.winning::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 112px;
  height: 112px;
  border: 3px solid white;
  border-radius: 12px;
  box-shadow: 0 0 20px 8px white;
  animation: popZoom 0.6s ease-in-out infinite alternate;
  z-index: 2;
  pointer-events: none;
}

@keyframes popZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.3);
  }
}
.symbol.winning {
  animation: zoomBounce 0.6s ease-in-out infinite alternate;
  box-shadow: 0 0 20px 5px white;
  border: 3px solid white;
  border-radius: 10px;
  z-index: 2;
  
}

@keyframes zoomBounce {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}


@keyframes pulseGold {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px gold, 0 0 20px gold;
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 20px gold, 0 0 40px gold;
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 10px gold, 0 0 20px gold;
  }
}

@keyframes spinBounce {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(10deg) scale(1.05);
  }
  100% {
    transform: rotate(-10deg) scale(1);
  }
}

@keyframes wiggleScale {
  0% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.05) rotate(2deg);
  }
  50% {
    transform: scale(1.1) rotate(-2deg);
  }
  75% {
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

.win-tigre {
  animation: pulseGold 1s ease-in-out infinite;
  border: 2px solid gold;
  box-shadow: 0 0 15px gold;
  border-radius: 10px;
  z-index: 2;
}

.win-aranha {
  animation: spinBounce 1s ease-in-out infinite;
  border: 2px solid red;
  box-shadow: 0 0 15px red;
  border-radius: 10px;
  z-index: 2;
}

.win-perereca {
  animation: wiggleScale 1s ease-in-out infinite;
  border: 2px solid lime;
  box-shadow: 0 0 15px lime;
  border-radius: 10px;
  z-index: 2;
}
@keyframes goldFlash {
  0%, 100% { box-shadow: 0 0 10px gold; }
  50% { box-shadow: 0 0 30px gold; }
}

.win-checa {
  animation: pecking 0.4s ease-in-out infinite;
  border: 2px solid rgb(255, 5, 255);
  border-radius: 10px;
  z-index: 2;
}
@keyframes parrotFlap {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.1) rotate(3deg); }
  100% { transform: scale(1) rotate(-3deg); }
}

.win-arara {
  animation: parrotFlap 0.8s ease-in-out infinite;
  border: 2px solid cyan;
  box-shadow: 0 0 15px cyan;
  border-radius: 10px;
  z-index: 2;
}
@keyframes pecking {
  0% { transform: scale(1); }
  25% { transform: scale(1.05); }
  50% { transform: scale(0.95); }
  75% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.win-pinto {
  animation: pecking 0.4s ease-in-out infinite;
  border: 2px solid orange;
  box-shadow: 0 0 15px orange;
  border-radius: 10px;
  z-index: 2;
}
@keyframes snakeSlither {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.05) rotate(2deg); }
  50% { transform: scale(1.1) rotate(-2deg); }
  75% { transform: scale(1.05) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.win-cobra {
  animation: snakeSlither 1s ease-in-out infinite;
  border: 2px solid rgb(255, 115, 0);
  box-shadow: 0 0 15px limegreen;
  border-radius: 10px;
  z-index: 2;
}
/* Animações específicas por símbolo */

@keyframes pulse-zoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

@keyframes glow-spin {
  0% { transform: rotate(0deg) scale(1); box-shadow: 0 0 10px #fff; }
  50% { transform: rotate(5deg) scale(1.15); box-shadow: 0 0 20px #fff; }
  100% { transform: rotate(0deg) scale(1); box-shadow: 0 0 10px #fff; }
}

@keyframes bounce-glow {
  0% { transform: translateY(0) scale(1); box-shadow: 0 0 10px #fff; }
  50% { transform: translateY(-5px) scale(1.15); box-shadow: 0 0 25px #fff; }
  100% { transform: translateY(0) scale(1); box-shadow: 0 0 10px #fff; }
}

@keyframes wiggle {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(2deg) scale(1.1); }
  50% { transform: rotate(-2deg) scale(1.1); }
  75% { transform: rotate(2deg) scale(1.1); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Estilos personalizados por tipo de símbolo vencedor */

/* Partículas para vitórias */
.win-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: win-particle-float 1s ease-out forwards;
  pointer-events: none;
  opacity: 0.9;
  z-index: 3;
}

@keyframes win-particle-float {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-20px) scale(0.5);
    opacity: 0;
  }
}

/* TIGRE: zoom com rotação */
@keyframes tigre-zoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(5deg); }
  100% { transform: scale(1); }
}
.win-tigre {
  animation: tigre-zoom 0.8s ease-in-out;
}

/* ARANHA: pulinho nervoso */
@keyframes aranha-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px) scale(1.1); }
}
.win-aranha {
  animation: aranha-bounce 0.8s ease-in-out;
}

/* PERERECA: giro e esticada */
@keyframes perereca-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(360deg) scale(1.2); }
  100% { transform: rotate(720deg) scale(1); }
}
.win-perereca {
  animation: perereca-spin 1s ease-in-out;
}

/* COBRA: ondulação lateral */
@keyframes cobra-wiggle {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.win-cobra {
  animation: cobra-wiggle 0.6s ease-in-out;
}

/* PINTO: estica e volta com zoom */
@keyframes pinto-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4, 0.8); }
  100% { transform: scale(1); }
}
.win-pinto {
  animation: pinto-pop 0.7s ease-in-out;
}

/* ARARA: gira e dá zoom */
@keyframes arara-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.3); }
  100% { transform: rotate(360deg) scale(1); }
}
.win-arara {
  animation: arara-spin 1s ease-in-out;
}

@keyframes checa-crazy {
  0% { transform: rotate(0deg) translate(0, 0); }
  10% { transform: rotate(15deg) translate(-2px, 2px); }
  20% { transform: rotate(-15deg) translate(2px, -2px); }
  30% { transform: rotate(20deg) translate(-3px, 3px); }
  40% { transform: rotate(-20deg) translate(3px, -3px); }
  50% { transform: rotate(25deg) translate(-4px, 4px); }
  60% { transform: rotate(-25deg) translate(4px, -4px); }
  70% { transform: rotate(30deg) translate(-5px, 5px); }
  80% { transform: rotate(-30deg) translate(5px, -5px); }
  90% { transform: rotate(10deg) translate(-3px, 3px); }
  100% { transform: rotate(0deg) translate(0, 0); }
}

.win-checa {
  animation: checa-crazy 1.2s ease-in-out;
}

.bonus-zoom {
  animation: zoomBonus 1s ease-out forwards;
}

@keyframes zoomBonus {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.spark {
  position: fixed;
  width: 8px;
  height: 8px;
  background: yellow;
  border-radius: 50%;
  animation: sparkle 0.8s ease-out forwards;
  z-index: 10000;
  pointer-events: none;
}

@keyframes sparkle {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@keyframes bonusBounceZoom {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

.bounce-zoom {
  animation: bonusBounceZoom 1s ease-in-out infinite;
}

.bonus-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  background: yellow;
  border-radius: 50%;
  animation: sparkle 0.8s ease-out forwards;
  z-index: 10000;
  pointer-events: none;
}

.banner-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: #000;
  z-index: -1; /* ou -2 para ficar atrás de tudo, exceto o .background */
}

.banner-content {
  margin-top: 220px;
  display: flex;
  width: 400%; /* ou quanto precisar */
  animation: scroll-banner 20s linear infinite;
}

@keyframes scroll-banner {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.win-symbol {
  z-index: 10;
}
.coin-explosion {
  position: fixed;
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at center, gold, #ffcc00);
  border-radius: 50%;
  z-index: 1000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: explodeCoin 1.2s ease-out forwards;
}

@keyframes explodeCoin {
  0% {
    transform: translate(-50%, -50%) scale(0.6) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1) rotate(720deg);
    opacity: 0;
  }
}
#tsparticles-fogo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
#loading-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('images/loading-bg.jpg') no-repeat center center;
  background-size: cover;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  animation: fadeIn 0.5s ease-in-out;
}
#loading-view {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#loading-background {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#loading-container {
  width: 80%;
  max-width: 400px;
  background-color: #333;
  border-radius: 20px;
  overflow: hidden;
}

#loading-bar {
  width: 0%;
  height: 20px;
  background-color: orange;
  transition: width 0.3s ease;
  margin-top: 100px;
}

#loading-text {
  text-align: center;
  color: #fff;
  margin-top: 10px;
}
/* Estilo global para o Loading View */
#loading-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%; /* usa 100% da largura da tela */
  height: 100%; /* usa 100% da altura */
  overflow-x: hidden;
  z-index: 9999;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Background do Loading View */
#loading-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/seu-background.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  z-index: 0;
}

/* Container de Partículas */
#loading-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Conteúdo do Loading (logo e barra) */
.loading-logo,
#loading-bar-container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 10px;
}

/* Ajuste do Logo */
.loading-logo {
  font-size: 2rem;  /* use rem para escalabilidade */
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Container da Barra de Loading */
#loading-bar-container {
  width: 90%; /* ocupa quase toda a largura disponível */
  max-width: 400px; /* define um valor máximo para telas maiores */
}

/* Barra de Loading */
#loading-bar {
  width: 100%;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

#loading-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(to right, #ffdd00, #ffa500);
  transition: width 0.1s ease-out;
}

/* Exibição da porcentagem */
#loading-percent {
  font-size: 1rem;
}

/* Estilos para o modal de compra de créditos */
#buyCreditsModal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#buyCreditsModal .modal-content {
  background-color: #1a1a1a;
  padding: 20px;
  border: 2px solid #FFD700;
  border-radius: 10px;
  text-align: center;
  max-width: 350px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
  color: #fff;
}

#buyCreditsModal select,
#buyCreditsModal button {
  padding: 10px;
  margin: 5px;
  font-size: 16px;
  border-radius: 5px;
  border: none;
  background-color: #333;
  color: #fff;
}

#buyCreditsModal button {
  background-color: #FFD700;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s;
}

#buyCreditsModal button:hover {
  background-color: #ffcc00;
}

#qrCode img {
  max-width: 200px;
  margin-top: 10px;
}

#status {
  margin-top: 10px;
  color: #FFD700;
  font-size: 14px;
}