* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html {
  overflow: hidden;
  height: 100%;
  position: fixed;
  width: 100%;
}

body {
  height: 100vh;
  width: 100vw;
  background: #000000;
  overflow: hidden;
  position: fixed;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Efeito holográfico */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent 0%,
    rgba(0, 255, 255, 0.05) 25%,
    rgba(255, 0, 255, 0.05) 50%,
    rgba(255, 255, 0, 0.05) 75%,
    transparent 100%
  );
  background-size: 400% 400%;
  animation: holoEffect 15s ease infinite;
  pointer-events: none;
}

body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 255, 255, 0.03) 0px,
      transparent 2px,
      transparent 4px,
      rgba(255, 0, 255, 0.03) 6px
    );
  animation: scanlines 8s linear infinite;
  pointer-events: none;
}

@keyframes holoEffect {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes scanlines {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(10px);
  }
}

.wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: transparent;
  position: relative;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
  padding: 2em 1em;
  gap: 2em;
  overflow-x: hidden;
}

.logo-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-shrink: 0;
}

.wheel-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  width: 100%;
  flex-grow: 1;
  max-width: 600px;
}

.container {
  position: relative;
  width: min(450px, 85vw);
  height: min(450px, 85vw);
  flex-shrink: 0;
}
#wheel {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
#spin-btn {
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  height: 26%;
  width: 26%;
  border-radius: 50%;
  cursor: pointer;
  border: 0;
  background: radial-gradient(#fdcf3b 50%, #d88a40 85%);
  color: #c66e16;
  text-transform: uppercase;
  font-size: clamp(1.2em, 3vw, 2em);
  letter-spacing: 0.1em;
  font-weight: 600;
  z-index: 10;
}
.container img {
  position: absolute;
  width: clamp(50px, 10vw, 80px);
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  z-index: 5;
}
#final-value {
  font-size: 1.5em;
  text-align: center;
  margin-top: 1.5em;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.logo {
  width: min(300px, 60vw);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5))
          drop-shadow(0 0 50px rgba(255, 0, 255, 0.3));
  animation: logoGlow 3s ease-in-out infinite;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(145deg, #1a1a2e, #16213e);
  padding: 2em;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(139, 53, 188, 0.5);
  animation: slideUp 0.4s ease;
  position: relative;
}

/* Custom scrollbar para modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8b35bc, #b163da);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #b163da, #8b35bc);
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-content h2 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 0.5em;
  font-size: 1.8em;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.prize-text {
  text-align: center;
  color: #fdcf3b;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 1em;
  text-shadow: 0 0 15px rgba(253, 207, 59, 0.6);
}

/* Pergunta sobre cliente */
.client-question {
  margin-bottom: 1em;
  padding: 0.8em;
  background: rgba(139, 53, 188, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(139, 53, 188, 0.3);
}

.client-label {
  display: block;
  color: #ffffff;
  font-size: 1em;
  font-weight: 600;
  margin-bottom: 0.6em;
  text-align: center;
}

.radio-group {
  display: flex;
  justify-content: center;
  gap: 1em;
  flex-wrap: wrap;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
  padding: 0.5em 1em;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.radio-option:hover {
  background: rgba(139, 53, 188, 0.3);
}

.radio-option input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #8b35bc;
}

.radio-option span {
  color: #ffffff;
  font-size: 1em;
  font-weight: 500;
}

/* Aviso para clientes */
.client-warning {
  margin-bottom: 0.8em;
  padding: 0.8em;
  background: rgba(255, 165, 0, 0.2);
  border: 2px solid rgba(255, 165, 0, 0.6);
  border-radius: 10px;
  animation: warningGlow 2s ease-in-out infinite;
}

.client-warning p {
  color: #ffa500;
  font-size: 0.9em;
  font-weight: 600;
  margin: 0;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
}

@keyframes warningGlow {
  0%, 100% {
    border-color: rgba(255, 165, 0, 0.6);
  }
  50% {
    border-color: rgba(255, 165, 0, 1);
  }
}

#data-form {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

#data-form input {
  padding: 0.8em;
  border: 2px solid rgba(139, 53, 188, 0.3);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  transition: all 0.3s ease;
}

#data-form input:focus {
  outline: none;
  border-color: #8b35bc;
  box-shadow: 0 0 20px rgba(139, 53, 188, 0.6);
  background: #ffffff;
}

.claim-btn {
  padding: 1em;
  background: linear-gradient(135deg, #fdcf3b, #d88a40);
  color: #1a1a2e;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3em;
  box-shadow: 0 5px 20px rgba(253, 207, 59, 0.4);
}

.claim-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(253, 207, 59, 0.7);
  background: linear-gradient(135deg, #ffe066, #e09a52);
}

.claim-btn:active {
  transform: translateY(-1px);
}

/* Modal de Opções */
.options-info {
  text-align: center;
  color: #ffffff;
  font-size: 1em;
  margin: 0.8em 0 1em 0;
}

.options-info span {
  color: #fdcf3b;
  font-weight: 700;
  font-size: 1.2em;
}

.options-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8em;
}

.option-btn {
  padding: 1em;
  border: none;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.option-btn small {
  display: block;
  font-size: 0.75em;
  margin-top: 0.3em;
  text-transform: none;
  opacity: 0.9;
}

.spin-more-btn {
  background: linear-gradient(135deg, #8b35bc, #b163da);
  color: white;
  box-shadow: 0 5px 20px rgba(139, 53, 188, 0.4);
}

.spin-more-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(139, 53, 188, 0.6);
}

.claim-now-btn {
  background: linear-gradient(135deg, #fdcf3b, #d88a40);
  color: #1a1a2e;
  box-shadow: 0 5px 20px rgba(253, 207, 59, 0.4);
}

.claim-now-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(253, 207, 59, 0.7);
  background: linear-gradient(135deg, #ffe066, #e09a52);
}

/* Container de aviso de limite */
.limit-warning {
  text-align: center;
  margin-top: 1.5em;
  padding: 1.5em;
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.2), rgba(255, 140, 0, 0.2));
  border-radius: 15px;
  border: 2px solid rgba(255, 80, 80, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(255, 80, 80, 0.3);
  animation: warningPulse 2s ease-in-out infinite;
}

.limit-warning h3 {
  color: #ff5050;
  font-size: 1.5em;
  margin: 0 0 0.5em 0;
  text-shadow: 0 0 10px rgba(255, 80, 80, 0.8);
}

.limit-warning p {
  color: #ffffff;
  font-size: 1.1em;
  margin: 0.3em 0;
  line-height: 1.5;
}

@keyframes warningPulse {
  0%, 100% {
    border-color: rgba(255, 80, 80, 0.6);
    box-shadow: 0 8px 20px rgba(255, 80, 80, 0.3);
  }
  50% {
    border-color: rgba(255, 140, 0, 0.8);
    box-shadow: 0 8px 30px rgba(255, 140, 0, 0.5);
  }
}

/* Contador de giros */
.spin-counter {
  text-align: center;
  margin-bottom: 1em;
  padding: 0.8em 1.5em;
  background: rgba(139, 53, 188, 0.2);
  border-radius: 20px;
  border: 2px solid rgba(139, 53, 188, 0.5);
  backdrop-filter: blur(5px);
}

.spin-counter p {
  color: #ffffff;
  font-size: 1.1em;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.spin-counter #spin-count {
  color: #fdcf3b;
  font-size: 1.3em;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(253, 207, 59, 0.8);
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5))
            drop-shadow(0 0 50px rgba(255, 0, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 40px rgba(0, 255, 255, 0.8))
            drop-shadow(0 0 60px rgba(255, 0, 255, 0.5));
  }
}
/* Responsividade para tablets */
@media screen and (max-width: 768px) {
  .wrapper {
    padding: 1.5em 1em;
    gap: 1.5em;
  }

  .logo {
    width: min(250px, 55vw);
  }

  .container {
    width: min(400px, 80vw);
    height: min(400px, 80vw);
  }

  #final-value {
    font-size: 1.3em;
  }
}

/* Responsividade para mobile */
@media screen and (max-width: 480px) {
  .wrapper {
    padding: 1em 0.5em;
    gap: 1em;
  }

  .logo {
    width: min(200px, 50vw);
  }

  .wheel-section {
    gap: 1em;
  }

  .container {
    width: min(350px, 85vw);
    height: min(350px, 85vw);
  }

  #spin-btn {
    font-size: clamp(1em, 2.5vw, 1.5em);
  }

  #final-value {
    font-size: 1.1em;
    margin-top: 0.5em;
  }
}

/* Landscape mode for mobile */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .wrapper {
    flex-direction: row;
    padding: 1em;
    gap: 2em;
  }

  .logo-section {
    width: 30%;
    flex-shrink: 0;
  }

  .wheel-section {
    width: 70%;
    gap: 1em;
  }

  .container {
    width: min(350px, 60vh);
    height: min(350px, 60vh);
  }

  #final-value {
    font-size: 1em;
    margin-top: 0.5em;
  }

  .logo {
    width: min(150px, 80%);
  }

  /* Modais responsivos para mobile */
  .modal-content {
    padding: 1.5em;
    width: 95%;
    max-height: 85vh;
  }

  .modal-content h2 {
    font-size: 1.5em;
    margin-bottom: 0.4em;
  }

  .prize-text {
    font-size: 1.3em;
    margin-bottom: 0.8em;
  }

  .client-label {
    font-size: 0.9em;
  }

  .radio-option {
    padding: 0.4em 0.8em;
  }

  .radio-option span {
    font-size: 0.9em;
  }

  .client-warning p {
    font-size: 0.85em;
  }

  #data-form {
    gap: 0.7em;
  }

  #data-form input {
    padding: 0.7em;
    font-size: 0.95em;
  }

  .claim-btn {
    padding: 0.9em;
    font-size: 1em;
    letter-spacing: 0.5px;
  }

  .options-info {
    font-size: 0.95em;
    margin: 0.6em 0 0.8em 0;
  }

  .options-info span {
    font-size: 1.1em;
  }

  .option-btn {
    padding: 0.9em;
    font-size: 0.95em;
  }

  .option-btn small {
    font-size: 0.7em;
  }
}

/* Extra small devices (phones em landscape e telas pequenas) */
@media only screen and (max-height: 600px) {
  .modal-content {
    padding: 1em;
    max-height: 90vh;
    width: 95%;
  }

  .modal-content h2 {
    font-size: 1.3em;
    margin-bottom: 0.3em;
  }

  .prize-text {
    font-size: 1.2em;
    margin-bottom: 0.5em;
  }

  .client-question {
    margin-bottom: 0.6em;
    padding: 0.6em;
  }

  .client-label {
    font-size: 0.85em;
    margin-bottom: 0.4em;
  }

  .radio-group {
    gap: 0.8em;
  }

  .radio-option {
    padding: 0.4em 0.7em;
  }

  .radio-option input[type="radio"] {
    width: 16px;
    height: 16px;
  }

  .radio-option span {
    font-size: 0.85em;
  }

  .client-warning {
    margin-bottom: 0.6em;
    padding: 0.6em;
  }

  .client-warning p {
    font-size: 0.8em;
  }

  #data-form {
    gap: 0.6em;
  }

  #data-form input {
    padding: 0.6em;
    font-size: 0.9em;
  }

  .claim-btn {
    padding: 0.8em;
    font-size: 0.95em;
    margin-top: 0.2em;
  }

  .options-info {
    font-size: 0.9em;
    margin: 0.5em 0 0.6em 0;
  }

  .options-info span {
    font-size: 1em;
  }

  .options-buttons {
    gap: 0.6em;
  }

  .option-btn {
    padding: 0.8em;
    font-size: 0.9em;
  }

  .option-btn small {
    font-size: 0.65em;
    margin-top: 0.2em;
  }
}

/* Telas muito pequenas (altura < 500px) */
@media only screen and (max-height: 500px) {
  .modal-content {
    padding: 0.8em;
    max-height: 95vh;
    font-size: 0.9em;
  }

  .modal-content h2 {
    font-size: 1.2em;
    margin-bottom: 0.2em;
  }

  .prize-text {
    font-size: 1.1em;
    margin-bottom: 0.4em;
  }

  .client-question {
    margin-bottom: 0.5em;
    padding: 0.5em;
  }

  .client-label {
    font-size: 0.8em;
    margin-bottom: 0.3em;
  }

  .radio-group {
    gap: 0.6em;
  }

  .radio-option {
    padding: 0.3em 0.6em;
  }

  .radio-option input[type="radio"] {
    width: 14px;
    height: 14px;
  }

  .radio-option span {
    font-size: 0.8em;
  }

  .client-warning {
    margin-bottom: 0.5em;
    padding: 0.5em;
  }

  .client-warning p {
    font-size: 0.75em;
  }

  #data-form {
    gap: 0.5em;
  }

  #data-form input {
    padding: 0.5em;
    font-size: 0.85em;
  }

  .claim-btn {
    padding: 0.7em;
    font-size: 0.9em;
    margin-top: 0.2em;
  }

  .options-info {
    font-size: 0.85em;
    margin: 0.4em 0 0.5em 0;
  }

  .options-info span {
    font-size: 0.95em;
  }

  .options-buttons {
    gap: 0.5em;
  }

  .option-btn {
    padding: 0.7em;
    font-size: 0.85em;
  }

  .option-btn small {
    font-size: 0.6em;
    margin-top: 0.2em;
  }
}