.maquina-tragamonedas {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50, #4a6491);
    border-radius: 15px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
}

.tragamonedas-container {
    position: relative;
}

.cabina {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    padding: 15px;
    border-radius: 10px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.panel-frontal {
    background: #34495e;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.ranuras-container {
    background: #000;
    padding: 15px;
    border-radius: 5px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.ranuras-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
    z-index: 2;
}

.ranuras-container:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
    z-index: 2;
}

.ranuras {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ranura {
    width: 80px;
    height: 80px;
    margin: 0 5px;
    background: #fff;
    border: 3px solid #d4af37;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    position: relative;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.simbolos {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.base-maquina {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 20px;
}

.palanca-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.soporte-palanca {
    position: relative;
    width: 60px;
    height: 120px;
    display: flex;
    justify-content: center;
}

.palanca-btn {
    position: absolute;
    bottom: 0;
    width: 60px;
    height: 100px;
    background: #d4af37;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.palanca-btn.activada {
    height: 70px;
    background: #f1c40f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.palanca-btn:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: scale(1);
}

.palanca-texto {
    font-size: 12px;
    font-weight: bold;
    color: #000;
    margin-bottom: 5px;
}

.mango-palanca {
    width: 10px;
    height: 40px;
    background: #7f8c8d;
    border-radius: 5px;
    margin-top: 5px;
}

.controles-adicionales {
    flex: 1;
    display: flex;
    justify-content: center;
}

.btn-secundario {
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secundario:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-secundario:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
}

.resultado {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    min-height: 30px;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.resultado.ganador {
    color: #d4af37;
    font-size: 22px;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.celebracion {
    animation: celebracion 0.5s infinite alternate;
}

@keyframes celebracion {
    0% { transform: scale(1); box-shadow: 0 0 5px #d4af37; }
    100% { transform: scale(1.05); box-shadow: 0 0 20px #d4af37; }
}

.tabla-ganadores-container {
    margin: 20px 0;
}

.contador-probabilidades {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.configurador {
    max-width: 500px;
    margin: 0 auto;
}

.config-item {
    margin-bottom: 15px;
}

.config-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.config-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn-config {
    padding: 10px 20px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-config:hover {
    background: #1a252f;
}

.config-mensaje {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
}

.config-mensaje .cargando {
    color: #3498db;
}

.config-mensaje .exito {
    color: #27ae60;
    background: #e8f6ef;
    padding: 10px;
    border-radius: 4px;
}

.config-mensaje .error {
    color: #e74c3c;
    background: #fdedec;
    padding: 10px;
    border-radius: 4px;
}

.tabla-ganadores {
    overflow-x: auto;
}

.tabla-ganadores table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tabla-ganadores th, .tabla-ganadores td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.tabla-ganadores th {
    background-color: #2c3e50;
    color: white;
}

.tabla-ganadores tr:hover {
    background-color: #f5f5f5;
}

/* Efectos de luz para la máquina */
.ranuras-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 3;
}