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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.container {
  text-align: center;
  padding: 20px;
}

.logo {
  max-width: 200px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 40px;
}

.wheel-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.wheel-container {
  width: 400px;
  height: 400px;
}

.wheel-pointer {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-top: 40px solid #f0c14b;
  z-index: 10;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 20px;
}

.legend-emoji {
  font-size: 1.3rem;
}

.legend-text {
  font-size: 0.9rem;
  opacity: 0.9;
}

.spin-btn {
  display: block;
  margin: 0 auto;
  background: linear-gradient(135deg, #f0c14b 0%, #e8a317 100%);
  color: #1a1a2e;
  border: none;
  padding: 18px 50px;
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 4px 15px rgba(240, 193, 75, 0.4);
}

.spin-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(240, 193, 75, 0.6);
}

.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.result {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  animation: fadeIn 0.5s ease;
}

.result-content {
  background: linear-gradient(135deg, #2d3436 0%, #1a1a2e 100%);
  padding: 50px;
  border-radius: 20px;
  text-align: center;
  border: 3px solid #f0c14b;
  box-shadow: 0 0 30px rgba(240, 193, 75, 0.3);
  animation: scaleIn 0.5s ease;
  max-width: 90%;
}

.result-emoji {
  font-size: 5rem;
  display: block;
  margin-bottom: 20px;
  animation: bounce 1s infinite;
}

.result-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #f0c14b;
}

.result-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 30px;
}

.close-btn {
  background: #f0c14b;
  color: #1a1a2e;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  transform: scale(1.05);
}

.already-played {
  text-align: center;
  padding: 40px;
}

.already-played h2 {
  margin-bottom: 15px;
  color: #f0c14b;
}

.already-played p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.hidden {
  display: none !important;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Responsive */
@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding-top: 10px;
  }

  .container {
    padding: 5px;
  }

  h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .logo {
    max-width: 100px;
  }

  .wheel-wrapper {
    margin-bottom: 10px;
  }

  .legend {
    margin-bottom: 10px;
  }

  .wheel-container {
    width: 280px;
    height: 280px;
  }

  .wheel-pointer {
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid #f0c14b;
  }

  .spin-btn {
    padding: 14px 35px;
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .legend {
    gap: 10px;
  }

  .legend-item {
    padding: 6px 10px;
  }

  .legend-text {
    font-size: 0.8rem;
  }

  .result-content {
    padding: 30px 20px;
    margin: 20px;
  }

  .result-emoji {
    font-size: 4rem;
  }

  .result-content h2 {
    font-size: 1.5rem;
  }

  .result-content p {
    font-size: 1rem;
  }
}

@media (max-width: 350px) {
  .wheel-container {
    width: 250px;
    height: 250px;
  }

  h1 {
    font-size: 1.5rem;
  }
}
