:root {
  --primary-color: #0bb20a;
  --secondary-color: #2a1d5e;
  --accent-color: #e03e2d;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.bg-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-color);
}

.prize-image {
  width: 100%;
  max-width: 800px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.progress-container {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.progress-bar {
  height: 35px;
  background: #e9ecef;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #4cd964);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  transition: width 0.5s ease;
}

.progress-stats {
  text-align: center;
  font-weight: bold;
  color: #333;
}

.numeros-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  max-height: 500px;
  overflow-y: auto;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 10px;
}

.numero-item {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  user-select: none;
  font-size: 14px;
}

.numero-item:hover {
  border-color: var(--primary-color);
  transform: scale(1.05);
}

.numero-item.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.numero-item.vendido {
  background: #dc3545;
  color: white;
  cursor: not-allowed;
  opacity: 0.6;
}

.selected-tickets-container {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin: 20px 0;
}

.selected-tickets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.ticket-badge {
  background: var(--secondary-color);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
}

.selection-summary {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  border: 2px solid #e9ecef;
  position: sticky;
  top: 20px;
}

.selected-numbers {
  max-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sorteo-info {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .numeros-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .numero-item {
    font-size: 12px;
  }
}