* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url('images/background_mobile.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.wheel-container {
  position: relative;
  width: 95vw;
  max-width: 500px;
  margin: 0 auto;
}

#wheel {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  border: 15px solid #2a75bb;
  border-radius: 50%;
  background: white;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.spin-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  background: #ffcb05;
  border-radius: 50%;
  border: 5px solid white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.spin-center img {
  width: 50px;
  height: 50px;
  margin-bottom: 5px;
}

.spin-text {
  font-weight: bold;
  color: #1a3e72;
  font-size: 18px;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  width: 90%;
  max-width: 400px;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  border: 4px solid #ffcb05;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: popIn 0.3s ease-out;
}

@keyframes popIn {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.popup-content h2 {
  color: #2a75bb;
  margin-bottom: 15px;
  font-size: 28px;
}

#resultText {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin: 10px 0;
}

.prize-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 15px auto;
  display: block;
  border: 3px solid #ffcb05;
  border-radius: 10px;
  padding: 10px;
  background: white;
}

.offer-note {
  color: #ff0000;
  font-weight: bold;
  font-size: 16px;
  margin: 15px 0;
}

.claim-btn {
  background: linear-gradient(to right, #4CAF50, #2ECC71);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 18px;
  border-radius: 50px;
  cursor: pointer;
  margin: 10px auto 0;
  font-weight: bold;
  display: block;
  width: 80%;
  max-width: 250px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
  transition: all 0.3s;
}

.claim-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  opacity: 0;
  z-index: 10;
}

@keyframes confettiFall {
  0% { transform: translateY(-100px) rotate(0deg) scale(1); opacity: 1; }
  100% { transform: translateY(600px) rotate(360deg) scale(0.5); opacity: 0; }
}

@media (max-width: 600px) {
  #wheel {
    border-width: 12px;
  }
  
  .spin-center {
    width: 80px;
    height: 80px;
  }
  
  .spin-center img {
    width: 40px;
    height: 40px;
  }
  
  .spin-text {
    font-size: 16px;
  }
  
  .popup-content {
    padding: 25px;
    width: 85%;
  }
  
  .popup-content h2 {
    font-size: 24px;
  }
  
  #resultText {
    font-size: 20px;
  }
  
  .prize-img {
    width: 120px;
    height: 120px;
  }
  
  .offer-note {
    font-size: 15px;
  }
  
  .claim-btn {
    padding: 10px 25px;
    font-size: 16px;
  }
}