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

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

body {
  background: radial-gradient(circle at center, #115e2a 0%, #062610 100%);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow-x: hidden;
}

.casino-panel {
  margin-top: 30px;
  margin-bottom: 30px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  width: 95%;
}

h1 {
  color: #FFDF00;
  font-size: 2.2rem;
  text-shadow: 0 0 15px rgba(255, 223, 0, 0.4);
  margin-bottom: 5px;
  text-align: center;
}

.badges-container {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 5px;
}

.dinero-badge {
  background: linear-gradient(135deg, #FFDF00, #B8860B);
  color: #000;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(255, 223, 0, 0.3);
  display: inline-block;
  width: max-content;
}

.ruleta-container {
  position: relative;
  width: 350px;
  height: 350px;
  margin: 20px auto;
}

.flecha {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 30px solid #FFDF00;
  filter: drop-shadow(0 5px 5px rgba(0,0,0,0.8));
  z-index: 10;
}

.flecha::after {
  content: '';
  position: absolute;
  top: 5px;
  left: -6px;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #fff;
}

.ruleta {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  border: 12px solid #FFDF00;
  box-shadow:
      0 0 0 8px #8B6508 inset,
      0 15px 35px rgba(0,0,0,0.8),
      inset 0 0 40px rgba(0,0,0,0.9);
}

.ruleta::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #E5C158, #8B6508);
  border-radius: 50%;
  border: 5px solid #332305;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8), 0 0 20px rgba(0,0,0,0.6);
  z-index: 5;
}

.numero-ruleta {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
  z-index: 2;
}

.controles {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

input, select {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #E5C158;
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s;
}

input:focus, select:focus {
  box-shadow: 0 0 10px rgba(229, 193, 88, 0.5);
  border-color: #FFDF00;
}

button {
  background: linear-gradient(145deg, #FFDF00, #B8860B);
  color: #111;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 223, 0, 0.4);
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 223, 0, 0.6);
  background: linear-gradient(145deg, #ffee55, #d4a31e);
}

button:disabled {
  background: #555;
  color: #888;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

#resultado {
  font-size: 1.3rem;
  min-height: 35px;
  font-weight: 600;
  text-align: center;
}

.ganaste {
  color: #4CAF50;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.perdiste {
  color: #FF5252;
  text-shadow: 0 0 10px rgba(255, 82, 82, 0.5);
}