#adivina-numero-game {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: linear-gradient(135deg, #D9CAB3, #E8D0A4);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Abel', sans-serif;
    text-align: center;
    position: relative;
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

#intentos {
    font-size: 24px;
    font-weight: bold;
    color: #00a8cc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.settings-icon {
    width: 40px;
    height: 40px;
    background: #00a8cc;
    border-radius: 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-icon:hover {
    transform: rotate(90deg);
    background: #0088aa;
}

.settings-icon::before {
    content: '⚙';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
}

.game-body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    gap: 20px;
}

#limite-inferior, #limite-superior {
    font-size: 48px;
    font-weight: bold;
    color: #666;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 15px;
    min-width: 100px;
}

#numero-introducido {
    font-size: 72px;
    font-weight: bold;
    color: #00a8cc;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 20px;
    min-width: 120px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#numero-introducido:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.4);
}

.simbolo {
    font-size: 48px;
    font-weight: bold;
    color: #00a8cc;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.game-controls {
    margin: 30px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#comprobar, #borrar {
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#comprobar {
    background: #00a8cc;
}

#comprobar:hover {
    background: #0088aa;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

#borrar {
    background: #00a8cc;
}

#borrar:hover {
    background: #0088aa;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}

.number-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.num-btn {
    width: 80px;
    height: 80px;
    font-size: 32px;
    font-weight: bold;
    color: #00a8cc;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid #00a8cc;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.num-btn:hover {
    background: #00a8cc;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.num-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
    #adivina-numero-game {
        margin: 10px;
        padding: 20px;
    }
    
    .game-body {
        flex-direction: column;
        gap: 15px;
    }
    
    #limite-inferior, #limite-superior {
        font-size: 36px;
        min-width: 80px;
    }
    
    #numero-introducido {
        font-size: 56px;
        min-width: 100px;
        min-height: 60px;
    }
    
    .simbolo {
        font-size: 36px;
        transform: rotate(90deg);
    }
    
    .number-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 10px;
    }
    
    .num-btn {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    #comprobar, #borrar {
        padding: 12px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .number-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .num-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    #comprobar, #borrar {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }
}



/* Estilos para la tabla de clasificación */
.adivina-numero-leaderboard-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: linear-gradient(135deg, #ff9500, #ff7b00);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: 'Arial', sans-serif;
    text-align: center;
}

.adivina-numero-leaderboard-container h2 {
    color: white;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
}

.adivina-numero-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.adivina-numero-leaderboard-table thead {
    background: #00a8cc;
    color: white;
}

.adivina-numero-leaderboard-table th,
.adivina-numero-leaderboard-table td {
    padding: 15px 20px;
    text-align: center;
    font-weight: bold;
}

.adivina-numero-leaderboard-table th {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.adivina-numero-leaderboard-table tbody tr {
    transition: all 0.3s ease;
}

.adivina-numero-leaderboard-table tbody tr:nth-child(odd) {
    background: rgba(255, 255, 255, 0.8);
}

.adivina-numero-leaderboard-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.6);
}

.adivina-numero-leaderboard-table tbody tr:hover {
    background: rgba(0, 168, 204, 0.1);
    transform: scale(1.02);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.adivina-numero-leaderboard-table tbody tr:first-child {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
    font-weight: bold;
}

.adivina-numero-leaderboard-table tbody tr:first-child:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

.adivina-numero-leaderboard-table tbody tr:nth-child(2) {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
    font-weight: bold;
}

.adivina-numero-leaderboard-table tbody tr:nth-child(3) {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    color: white;
    font-weight: bold;
}

.adivina-numero-leaderboard-table td:first-child {
    font-size: 20px;
    font-weight: bold;
    color: #00a8cc;
}

.adivina-numero-leaderboard-table td:last-child {
    font-size: 18px;
    font-weight: bold;
    color: #ff7b00;
}

/* Responsive design para la tabla de clasificación */
@media (max-width: 768px) {
    .adivina-numero-leaderboard-container {
        margin: 10px;
        padding: 20px;
    }
    
    .adivina-numero-leaderboard-container h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .adivina-numero-leaderboard-table th,
    .adivina-numero-leaderboard-table td {
        padding: 10px 8px;
        font-size: 14px;
    }
    
    .adivina-numero-leaderboard-table th {
        font-size: 16px;
    }
    
    .adivina-numero-leaderboard-table td:first-child {
        font-size: 16px;
    }
    
    .adivina-numero-leaderboard-table td:last-child {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .adivina-numero-leaderboard-table th,
    .adivina-numero-leaderboard-table td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .adivina-numero-leaderboard-table th {
        font-size: 14px;
    }
    
    .adivina-numero-leaderboard-table td:first-child,
    .adivina-numero-leaderboard-table td:last-child {
        font-size: 14px;
    }
}

